/* ================================================================
 * GLOBAL: Font Stack (Enforce System Font - Block Only)
 * ================================================================ */
.hb-product-block,
.hb-product-block h1,
.hb-product-block h2,
.hb-product-block p,
.hb-product-block ul,
.hb-product-block li,
.hb-product-block a,
.hb-product-block span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    box-sizing: border-box;
}

/* ================================================================
 * FIX THEME CONSTRAINTS → Allow full-width for this block only
 * ================================================================ */
.hb-product-block {
    max-width: 1200px !important;
    min-width: 0;
    width: 100%;
    margin: 40px auto 20px auto;
    padding: 10px 20px;
    border: 4px solid #f4c20d;
    border-radius: 0;
    background: #ffffff;
    display: block;
    scroll-margin-top: 120px;
}

/* ================================================================
 * LAYOUT
 * ================================================================ */

/* Main layout row: Number + visual/content wrapper */
.hb-product-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    width: 100%;
    position: relative;
}


/* Wrapper that holds image + text
   → fills all remaining space next to the number */
.hb-visual-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    /* Let it stretch to fill all available width */
    flex: 1 1 auto;
    width: 100%;
    margin: 0;

    /* Flexible space between image and text */
    column-gap: clamp(40px, 6vw, 80px);
}

/* Number column */
.hb-number {
    flex: 0 0 auto;
    font-size: 52px;
    font-weight: 700;
    color: #ec4c4b;
    margin-top: 10px;
    line-height: 1;
}

/* Image column */
.hb-image {
    flex: 0 0 320px;
    text-align: center;
}

.hb-image img {
    display: block;
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto;
}

/* Image anchor wrapper (Makes image clickable) */
.hb-image a {
    display: block;
}

/* Text content */
.hb-content {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    margin-top: 0;
}

/* === TITLE (h2) === */
.hb-title {
    margin: 0 0 10px;
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.25;
}

/* === BULLETS (ul/li) === */
.hb-bullets {
    margin: 0 0 18px 1.3em;
    padding: 0;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.55;
    text-align: left;
}

.hb-bullets li {
    margin-bottom: 4px;
}

/* =============================
 * BUTTON (Shop Now)
 * ============================= */
.hb-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 22px;
    background: #ffc107;
    color: #000;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    max-width: 240px;
    box-sizing: border-box;
}

.hb-btn:hover {
    background: #e0b207;
}

.hb-content a.hb-btn,
.hb-content a.hb-btn:hover,
.hb-content a.hb-btn:focus {
    text-decoration: none !important;
}

/* =============================
 * REVIEW TEXT (INSIDE BOX)
 * ============================= */
.hb-review {
    margin: 15px 0 0 !important;
    padding-bottom: 0 !important;
    font-size: 16px !important;
    line-height: 1.55;
    font-weight: 400 !important;
    text-align: left !important;
}

.hb-review strong {
    font-weight: 700 !important;
    display: inline;
    margin-right: 4px;
}

/* ================================================================
 * RESPONSIVE ADJUSTMENTS
 * ================================================================ */

/* === Tablet / Narrow Desktop (≤900px) === */
@media (max-width: 900px) {
    .hb-product-block {
        min-width: 320px;
    }

    .hb-product-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .hb-visual-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        column-gap: 0;
        row-gap: 12px;
        width: 100%;
    }

    .hb-number {
        align-self: flex-start;
        font-size: 32px;
        margin-top: 0;
        margin-bottom: 6px;
        margin-right: 0;
    }

    .hb-image {
        width: 100%;
        max-width: 500px;
        flex-basis: auto;
        margin: 0;
    }

    .hb-image img {
        max-height: 320px;
    }

    .hb-content {
        width: 100%;
        padding-left: 0;
        margin: 0;
        text-align: left;
    }

    .hb-btn {
        width: 100%;
        max-width: 100%;
    }

    .hb-title {
        font-size: 26px !important;
    }
}

/* === Mobile (≤600px) === */
@media (max-width: 600px) {
    .wp-block-post-content.has-global-padding,
    div[class*="alignfull"],
    div[class*="alignwide"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body, html {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden;
    }

    .hb-product-block {
        padding: 24px 10px 20px;
        margin: 24px auto;
        min-width: 0;
        max-width: 100%;
    }

    .hb-number {
        align-self: center !important;
        text-align: center !important;
        width: 100%;
    }

    .hb-title {
        font-size: 22px !important;
    }

    .hb-bullets {
        font-size: 16px !important;
    }

    .hb-image img {
        max-height: 260px;
        width: 90%;
    }

    .hb-btn {
        width: 70%;
        max-width: 70%;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .hb-review {
        font-size: 14px !important;
    }
}


/* Limit text column width so bullets don't stretch too wide */
.hb-content {
    max-width: 480px;            /* adjust to taste: 440–520px works best */
}
.hb-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}



/* badge container */
/* ================================================================
 * BADGE – CENTERED ON TOP LINE
 * ================================================================ */

.hb-product-block {
    position: relative;
    overflow: visible !important; /* Required to let badge sit on the border */
}

.hb-product-block .hb-badge-outside {
    position: absolute;
    /* This sits half-on, half-off the top border */
    top: -20px !important; 
    
    /* Perfect horizontal centering */
    left: 50% !important;
    transform: translateX(-50%) !important;

    height: 40px !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99 !important;
    pointer-events: none;
}

/* Specific target for the image to override LiteSpeed/Astra */
.hb-product-block .hb-badge-outside img {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    
    /* Forces the image to ignore theme max-width resets */
    max-width: none !important; 
    
    /* Resets for Astra/LiteSpeed global img styles */
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    vertical-align: middle !important;
    border: none !important;
    box-shadow: none !important;
    object-fit: contain !important;
}

/* Animation adjustment to maintain centering */
.hb-badge-animate {
    animation: hb-pulse-center 2s infinite ease-in-out;
}

@keyframes hb-pulse-center {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Mobile Polish */
@media (max-width: 600px) {
    .hb-product-block .hb-badge-outside {
        top: -16px !important;
        height: 32px !important;
    }
    .hb-product-block .hb-badge-outside img {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
    }
}