/* ================================================================
   BARGAIN BOOK HUT — COMPLETE MOBILE RESPONSIVE STYLESHEET
   Version: 3.0 Production Ready
   No desktop styles altered. Fonts, colors, visuals untouched.
   Fixes: Heritage section (image clipping, logos out of frame, centering)
   All sections fully responsive across 1024px → 375px.
================================================================ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   0. GLOBAL RESET & OVERFLOW PREVENTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /** {
        max-width: 100vw;
    }*/
}

/*@media (max-width: 900px){
    html,
    body {
       overflow-x: unset;
    }
}*/

@media (max-width: 768px) {
    .container,
    .bs__inner,
    .dotm__inner,
    .lr__inner,
    .wylt__inner,
    .bundles__inner,
    .cant-find__inner,
    .footer__grid,
    .heritage__inner {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. SEARCH BAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    #searchBar {
        padding: 12px 0;
        background: #ffffff;
    }

    #searchBarInner {
        padding: 0 16px;
        gap: 10px;
    }

    #searchPill {
        height: 48px;
        padding: 0 10px 0 16px;
    }

    #searchInput {
        font-size: 0.95rem;
    }

    #searchHints {
        padding: 0 16px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .search-tag {
        height: 30px;
        padding: 0 12px;
        font-size: 0.74rem;
    }
}

@media (max-width: 480px) {
    #searchBarInner {
        padding: 0 12px;
    }

    #searchPill {
        height: 44px;
    }

    #searchSubmit,
    #searchClose {
        width: 36px;
        height: 36px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. TOP TICKER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .ticker {
        height: 34px;
    }

    .ticker__item {
        font-size: 0.7rem;
        padding: 0 20px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .ticker {
        height: 30px;
    }

    .ticker__item {
        font-size: 0.65rem;
        padding: 0 16px;
    }

    .ticker__dot {
        width: 3px;
        height: 3px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. HERO SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
    .hero {
        min-height: 520px;
        max-height: none;
    }

    .hero__right {
        display: flex;
    }

    .hero__content {
        padding: 0 32px 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero__left {
        max-width: 100%;
    }

    .hero__reader {
        object-position: 65% 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 460px;
        height: auto;
    }

    .hero__content {
        padding: 0 20px 32px;
        gap: 20px;
    }

    .hero__headline {
        font-size: clamp(32px, 8vw, 52px);
    }

    .hero__sub {
        font-size: clamp(13px, 3.5vw, 15px);
    }

    .hero__dots {
        bottom: 16px;
        gap: 8px;
    }

    .hero__dot {
        width: 7px;
        height: 7px;
    }

    .hero__dot.is-active {
        width: 22px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }

    .hero__content {
        padding: 0 16px 28px;
    }

    .hero__headline {
        font-size: clamp(28px, 9vw, 42px);
    }

    .hero__reader {
        object-position: 60% 100%;
    }
}

@media (max-width: 375px) {
    .hero {
        min-height: 360px;
    }

    .hero__headline {
        font-size: clamp(24px, 10vw, 36px);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. SALE TICKER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .sale-ticker {
        height: 36px;
    }

    .sale-ticker__item {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        padding: 0 16px;
        gap: 14px;
    }
}

@media (max-width: 426px) {
    .sale-ticker {
        height: 32px;
    }

    .sale-ticker__item {
        font-size: 0.65rem;
        padding: 0 12px;
        gap: 10px;
    }

    .bundles__head {
        padding: 0px !important;
    }

    .bundles__title {
        font-size: 36px;
    }

    .bundles__sub,
    .bundles__explore {
        font-size: 16px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. DEALS OF THE MONTH (.dotm)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .dotm__head {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100%;
        margin: 0 auto 20px;
        padding: 0 !important;
    }

    .dotm__title,
    .dotm__sub,
    .dotm__link {
        width: 100%;
        text-align: left !important;
    }

    .dotm__filters {
        display: flex;
        justify-content: center !important;
        align-items: center;
        /* flex-wrap: wrap; */
        width: 100%;
        margin: 24px auto 0;
    }

    .dotm__head {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .dotm__title,
    .dotm__sub,
    .dotm__link {
        text-align: center;
    }

    .dotm__filters {
        justify-content: center;
        /* flex-wrap: wrap; */
    }
}

@media (max-width: 1024px) {
    .dotm__inner {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .dotm {
        padding: 52px 0 64px;
    }

    .dotm__inner {
        padding: 0 20px;
    }

    .dotm__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .dotm__filters {
        margin-bottom: 28px;
    }

    .dotm__row {
        gap: 24px;
    }

    .dotm__card {
        /*flex: 0 0 175px; */
    }

    .dotm__badge {
        width: 58px;
        height: 58px;
        margin-left: -20px;
        margin-top: -6px;
    }

    .dotm__badge-pct {
        font-size: 0.65rem;
    }

    .dotm__badge-off {
        font-size: 0.5rem;
    }
}

@media (max-width: 600px) {
    .dotm__card {
        /* flex: 0 0 165px; */
    }
}

@media (max-width: 426px) {
    .dotm {
        padding: 40px 0 52px;
    }

    .dotm__inner {
        padding: 0 16px;
    }

    .dotm__head {
        align-items: flex-start !important;
    }

    .dotm__title {
        font-size: 36px !important;
        text-align: left !important;
    }

    .dotm__sub {
        font-size: 16px !important;
        text-align: left !important;
    }

    .dotm__explore {
        font-size: 16px;
    }

    .dotm__pill {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .dotm__filterssr {
        margin-bottom: 16px;
    }

    .dotm__badge {
        width: 50px;
        height: 50px;
        margin-left: -16px;
        margin-top: -4px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. EVENT BANNER
   Strategy:
     ≥ 900px  → horizontal layout, author + book side-by-side
     768–900px → tighter horizontal, author scaled down
     < 768px  → VERTICAL STACK: author hidden, content full-width
                top, book centred below. Text is always fully readable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── 1200px — subtle scale-down ─────────────────────────────── */
@media (max-width: 1200px) {
    .event-banner__author {
        max-height: 480px;
        right: calc(32px + 105px);
    }

    .event-banner__book {
        max-height: 320px;
        right: 24px;
    }
}

/* ── 1024px ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .event-banner-wrap {
        padding: 40px 24px 0;
    }

    .event-banner__content {
        width: 42%;
        padding: 32px 12px 32px 32px;
        gap: 14px;
    }

    .event-banner__title {
        font-size: clamp(20px, 2.6vw, 30px);
    }

    .event-banner__desc {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .event-banner__detail-icon {
        width: 42px;
        height: 42px;
    }

    .event-banner__detail-value {
        font-size: 0.84rem;
    }

    .event-banner__author {
        display: block !important;
        height: calc(100% + 10px);
        max-height: 400px;
        right: calc(24px + 82px);
    }

    .event-banner__book {
        right: 18px;
        bottom: 14px;
        height: 76%;
        max-height: 280px;
    }
}

/* ── 900px ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .event-banner-wrap {
        padding: 36px 20px 0;
    }

    .event-banner__content {
        width: 44%;
        padding: 28px 12px 28px 26px;
        gap: 12px;
    }

    .event-banner__title {
        font-size: clamp(18px, 2.4vw, 24px);
    }

    .event-banner__desc {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .event-banner__detail-icon {
        width: 38px;
        height: 38px;
    }

    .event-banner__author {
        max-height: 330px;
        right: calc(20px + 72px);
    }

    .event-banner__book {
        right: 12px;
        max-height: 230px;
        height: 74%;
    }
}

/* ── 768px — VERTICAL STACK (mobile portrait breakpoint) ────── */
/*
   KEY FIX: At ≤768px the author image physically overlaps
   the text content because it is absolutely positioned
   outside the card. Solution: hide author, stack vertically,
   show book image below the text instead.
*/
@media (max-width: 768px) {

    /* 1. Remove top bleed padding — no author to bleed upward */
    .event-banner-wrap {
        padding: 0 16px !important;
        overflow: visible;
        background: #fff;
    }

    /* 2. Card stacks top-to-bottom */
    .event-banner {
        flex-direction: column !important;
        min-height: auto !important;
        align-items: stretch !important;
        border-radius: 16px !important;
        margin: 16px 0 0 !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    /* 3. Content takes full width at top — text fully readable */
    .event-banner__content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 28px 22px 22px !important;
        gap: 14px !important;
        order: 1;
        flex: none;
    }

    .event-banner__title {
        font-size: clamp(22px, 5.8vw, 30px) !important;
        line-height: 1.15;
    }

    .event-banner__desc {
        font-size: 0.875rem !important;
        line-height: 1.6;
    }

    .event-banner__details {
        gap: 12px;
    }

    .event-banner__detail-row {
        align-items: center;
        gap: 12px;
    }

    .event-banner__detail-icon {
        width: 44px !important;
        height: 44px !important;
        flex-shrink: 0;
    }

    .event-banner__detail-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .event-banner__detail-label {
        font-size: 0.6rem !important;
    }

    .event-banner__detail-value {
        font-size: 0.85rem !important;
    }

    .event-banner__actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 4px;
    }

    .event-banner__spots {
        font-size: 0.62rem !important;
        padding: 5px 12px !important;
    }

    .event-banner__cta {
        padding: 12px 24px !important;
        font-size: 0.88rem !important;
        flex: 1;
        text-align: center;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 4. Book image sits in a contained box below the text */
    .event-banner__visuals {
        order: 2 !important;
        position: relative !important;
        flex: none !important;
        height: 210px !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .event-banner__book {
        position: static !important;
        height: 100% !important;
        width: auto !important;
        max-height: 210px !important;
        display: block !important;
        margin: 0 auto !important;
        object-fit: contain !important;
        filter: drop-shadow(-4px 8px 20px rgba(0, 0, 0, 0.45));
    }

    /* 5. Author image — HIDDEN on mobile (no space; was covering text) */
    .event-banner__author {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* 6. Decorative circles stay subtle */
    .event-banner__circles svg {
        max-width: 120px;
    }
}

/* ── 480px ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .event-banner-wrap {
        padding: 0 12px !important;
    }

    .event-banner {
        border-radius: 14px !important;
        margin: 12px 0 0 !important;
    }

    .event-banner__content {
        padding: 22px 16px 16px !important;
        gap: 12px !important;
    }

    .event-banner__title {
        font-size: clamp(19px, 5.2vw, 24px) !important;
    }

    .event-banner__desc {
        font-size: 0.82rem !important;
    }

    .event-banner__detail-icon {
        width: 40px !important;
        height: 40px !important;
    }

    .event-banner__visuals {
        height: 185px !important;
    }

    .event-banner__book {
        max-height: 185px !important;
    }

    .event-banner__actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .event-banner__cta {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ── 375px ──────────────────────────────────────────────────── */
@media (max-width: 375px) {
    .event-banner-wrap {
        padding: 0 10px !important;
    }

    .event-banner {
        border-radius: 12px !important;
        margin: 10px 0 0 !important;
    }

    .event-banner__content {
        padding: 18px 14px 14px !important;
    }

    .event-banner__title {
        font-size: 18px !important;
    }

    .event-banner__visuals {
        height: 160px !important;
    }

    .event-banner__book {
        max-height: 160px !important;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. HERITAGE SECTION — FIXED
   (CTA overlap, image clipping, logos out of frame, centering)

   ROOT CAUSE: Inline CSS sets gap:100px + flex-wrap:nowrap on
   heritage__bottom-row. At tablet widths logos (~280px) + 100px
   gap + CTA exceeds available space → CTA overlaps Wilco logo.
   FIX: Scale gap responsively, allow wrap below 900px.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── 1200px — start scaling gap down ────────────────────────── */
@media (max-width: 1200px) {
    .heritage__bottom-row {
        gap: 48px !important;
    }
}

/* ── 1024px ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .heritage__bottom-row {
        gap: 32px !important;
    }

    .heritage__logo--wood,
    .heritage__logo--wilco {
        height: 80px;
    }
}

/* ── 900px — wrap CTA below logos, no overlap ───────────────── */
@media (max-width: 900px) {
    .heritage__bottom-row {
        gap: 20px !important;
        flex-wrap: wrap !important;
        align-items: flex-start;
    }

    .heritage__logos {
        gap: 16px;
        width: 100%;
    }

    .heritage__cta {
        flex-shrink: 0;
    }

    .heritage__logo--wood,
    .heritage__logo--wilco {
        height: 70px;
    }

    .heritage__shelf {
        max-width: 300px;
    }
}

/* ── 768px (mobile) ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .heritage {
        overflow-x: hidden;
        width: 100%;
    }

    .heritage__inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
        margin: 0 auto;
        width: 100%;
    }

    .heritage__left {
        width: 100%;
        padding: 32px 20px 20px;
        text-align: center;
        gap: 20px;
        align-items: center;
    }

    .heritage__headline {
        font-size: clamp(28px, 6vw, 38px);
        text-align: center;
        margin-bottom: 8px;
    }

    .heritage__bottom-row {
        flex-direction: column;
        gap: 20px !important;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .heritage__logos {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 24px;
        width: 100%;
    }

    .heritage__logo {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .heritage__logo--wood,
    .heritage__logo--wilco {
        height: 70px;
        width: auto;
        max-width: 180px;
    }

    .heritage__cta {
        white-space: normal;
        text-align: center;
        padding: 8px 0;
    }

    .heritage__right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        overflow: hidden;
        margin-top: 0;
    }

    .heritage__shelf {
        width: 53%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .heritage__left {
        padding: 24px 16px 16px;
    }

    .heritage__headline {
        font-size: clamp(24px, 5.5vw, 32px);
    }

    .heritage__logo--wood,
    .heritage__logo--wilco {
        height: 55px;
        max-width: 140px;
    }

    .heritage__cta {
        font-size: 0.9rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .heritage__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .heritage__left {
        width: 50%;
        text-align: left;
        padding: 20px;
    }

    .heritage__right {
        width: 50%;
    }

    .heritage__shelf {
        max-height: 180px;
        width: auto;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   20. GLOBAL CONTAINER PADDING
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. BESTSELLERS SECTION (.bs)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
    .bs {
        padding: 48px 0;
    }

    .bs__inner {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .bs__inner {
        padding: 0 20px;
    }

    .bs__card {
        max-width: none !important;
    }

    /* Card (560px) is wider than the screen on mobile. With mandatory
       snap, lifting a finger mid-scroll forced an immediate jump to the
       next card's start, so the right portion of the current card was
       never reachable. Proximity lets scroll move freely and only
       snaps when it naturally comes to rest near a card edge. */
    .bs__row {
        scroll-snap-type: x proximity;
    }

    .bs__head {
        flex-wrap: wrap;
    }

    .bs__title {
        font-size: 36px;
    }

    .bs__sub,
    .bs__browse {
        font-size: 16px;
        margin-bottom: 0;
    }

    .bs__filters{
        margin-bottom: 20px;
    }
}

@media (max-width: 426px){
    .bs__inner {
        padding: 0 16px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   22. HERO SECTION — ENHANCED MOBILE FIXES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .hero {
        min-height: 460px;
        height: auto;
        max-height: none;
    }

    .hero__left {
        gap: 14px;
    }

    .hero__cta-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero__cta-row .btn,
    .hero__cta-row a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 380px;
        height: auto;
    }

    .hero__video-overlay {
        background:
            linear-gradient(to right,
                rgba(10, 14, 24, 0.88) 0%,
                rgba(10, 14, 24, 0.6) 50%,
                rgba(10, 14, 24, 0.3) 100%),
            linear-gradient(to top, rgba(10, 14, 24, 0.82) 0%, transparent 40%);
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   23. DOTM SECTION — INNER PADDING FIX
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .dotm__inner {
        padding: 0 20px;
        overflow: hidden;
    }

    .dotm__row {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .dotm__inner {
        padding: 0 16px;
    }

    .dotm__row {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   24. EVENT BANNER — handled fully in Section 8 above
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* All event banner mobile rules are in Section 8 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   25. BUNDLES SECTION — ROW EDGE FIXES (row bleed handled in section 12)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Bundles fully handled in Section 12 above */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   26. LR / WYLT HEAD + ROW EDGE FIXES (row bleed padding)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {

    .lr__row,
    .wylt__row {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .lr__head,
    .wylt__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 480px) {

    .lr__row,
    .wylt__row {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   27. CANT-FIND & FOOTER — FULL STACK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .cant-find {
        padding: 32px 0 16px;
    }

    .cant-find__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 0 20px 20px;
    }

    .cant-find__cta {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .cant-find__inner {
        padding: 0 16px 16px;
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px 32px;
    }
}

@media (max-width: 480px) {
    .footer__grid {
        padding: 0 16px 28px;
    }

    .footer__bottom {
        padding: 16px 16px;
        font-size: 0.72rem;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   28. SALE TICKER — EDGE CASES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 375px) {
    .sale-ticker {
        height: 28px;
    }

    .sale-ticker__item {
        font-size: 0.6rem;
        padding: 0 10px;
    }

    .ticker {
        height: 28px;
    }

    .ticker__item {
        font-size: 0.62rem;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   29. OVERFLOW HARDENING — PREVENT HORIZONTAL SCROLL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {

    section,
    .event-banner-wrap,
    .heritage {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Ensure images don't bust layout */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Prevent wide tables or pre elements from causing overflow */
    table,
    pre {
        overflow-x: auto;
        max-width: 100%;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. FOR THE LITTLE READERS (.lr)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
    .lr__inner {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .lr {
        padding: 52px 0 0;
    }

    .lr__inner {
        padding: 0 20px;
    }

    .lr__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .lr__filters {
        gap: 6px;
        margin-bottom: 28px;
    }

    .lr__row {
        gap: 24px;
    }

    .lr__card {
        /* flex: 0 0 170px; */
    }

    .lr__cover {
        /*  height: 210px; */
    }

    .lr__badge {
        width: 56px;
        height: 56px;
        margin-left: -20px;
        margin-top: -6px;
    }

    .lr__badge-pct {
        font-size: 0.65rem;
    }

    .lr__badge-off {
        font-size: 0.5rem;
    }

    .lr__body {
        padding: 12px 14px 14px;
    }
}

@media (max-width: 600px) {
    .lr__card {
        /*  flex: 0 0 160px;*/
    }
}

@media (max-width: 426px) {
    .lr {
        padding: 40px 0 0;
    }

    .lr__inner {
        padding: 0 16px;
    }

    .lr__title {
        font-size: 36px;
    }

    .lr__badge {
        width: 48px;
        height: 48px;
        margin-left: -16px;
        margin-top: -4px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. LR ILLUSTRATION & QUOTE SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {

    .lr-quote__text,
    .lr-quote__text em {
        font-size: 60px !important;
    }

    .lr-quote__inner svg {
        top: 30px;
        width: 185px;
    }
}

@media (max-width: 768px) {
    .lr-illo__img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .lr-quote {
        padding: 0px 20px;
    }

    .lr-quote__inner svg {
        top: 10px;
        left: 12px;
        width: 140px;
    }

    .lr-quote__text,
    .lr-quote__text em {
        font-size: 44px !important;
    }
}

@media (max-width: 426px) {
    .lr-quote {
        padding: 24px 16px;
    }

    .lr-quote__inner {
        padding: 0;
        margin-left: 0;
    }

    .lr-quote__inner svg {
        top: -45px;
        left: -5px;
        width: 85px;
    }

    .lr-quote__text,
    .lr-quote__text em {
        font-size: 36px !important;
    }

    .lr-quote__cite {
        font-size: 16px;
        margin-top: 12px;
    }

    .lr-quote__inner svg {
        width: 180px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. WOODPECKER SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1024px) {
    .wpb__inner {
        padding: 0 24px;
    }

    .wpb__banner {
        height: 220px !important;
    }

    .wpb__logo {
        width: 360px !important;
        height: 154px !important;
    }

    .wpb__row {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .wpb {
        padding: 40px 0 64px 0;
    }

    .wpb__inner {
        padding: 0 20px;
    }

    .wpb__banner {
        height: 160px !important;
        border-radius: 8px !important;
    }

    .wpb__logo {
        width: 250px !important;
        height: 111px !important;
        left: 12px !important;
        bottom: 12px !important;
    }

    .wpb__browse-dekstop {
        right: 12px;
        bottom: 12px;
        font-size: 14px;
    }

    .wpb__sub {
        font-size: 14px;
    }

    .wpb__pill,
    .wpb__pill.active {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 426px) {
    .wpb {
        padding: 0;
        padding-bottom: 48px;
    }

    .wpb__inner {
        padding: 0 16px;
    }

    .wpb__banner {
        height: 120px !important;
    }

    .wpb__head {
        padding: 0 !important;
        align-items: flex-start;
        gap: 8px;
    }

    .wpb__logo {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        bottom: 0 !important;
    }

    .wpb__browse-dekstop {
        display: none;
    }

    .wpb__browse-mobile {
        display: block;
    }

    .wpb__sub__div {
        margin: 12px auto 0 auto;
    }

    .wpb__sub,
    .wpb__explore {
        font-size: 16px;
    }

    .wpb__filters {
        margin-left: 0;
        margin-bottom: 20px;
        margin-top: 24px;
    }

    .wpb__pill,
    .wpb__pill.active {
        font-size: 12px;
    }

    .wpb__row {
        gap: 16px;
        margin-left: 0;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. CURATED BUNDLES (.bundles)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
    .bundles__inner {
        padding: 0 24px;
    }
}

@media (max-width: 900px) {
    .bundles__head {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .bundles {
        padding: 48px 0 56px;
    }

    .bundles__inner {
        padding: 0 20px;
    }

    .bundles__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 24px !important;
        /* was missing/commented out — critical fix */
    }

    .bundles__title {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .bundles__row {
        gap: 18px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .bundle__card {
        flex: 0 0 280px;
    }

    .bundle__covers {
        height: 200px;
        padding-top: 0;
        /* remove any top padding that was causing the gap */
    }

    .bundle__cover--back,
    .bundle__cover--mid {
        width: 95px;
        height: 145px;
    }

    .bundle__cover--front {
        width: 105px;
        height: 160px;
    }

    .bundle__name {
        font-size: 1.2rem;
    }

    .bundle__desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .bundle__card {
        flex: 0 0 260px;
    }

    .bundle__cover--back,
    .bundle__cover--mid {
        width: 85px;
        height: 130px;
    }

    .bundle__cover--front {
        width: 95px;
        height: 145px;
    }
}

@media (max-width: 480px) {
    .bundles {
        padding: 40px 0 48px;
    }

    .bundles__inner {
        padding: 0 16px;
    }

    .bundle__card {
        flex: 0 0 240px;
    }

    .bundle__covers {
        height: 180px;
    }

    .bundle__cover--back,
    .bundle__cover--mid {
        width: 75px;
        height: 115px;
    }

    .bundle__cover--front {
        width: 85px;
        height: 130px;
    }

    .bundle__body {
        padding: 14px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. WE THINK YOU'LL LOVE THESE (.wylt)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
    .wylt__inner {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .wylt {
        padding: 0 0 72px;
    }

    .wylt__inner {
        padding: 0 20px;
    }

    .wylt__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 20px;
    }

    .wylt__filters {
        margin-bottom: 28px;
    }

    .wylt__row {
        gap: 24px;
    }

    .wylt__card {
        /*flex: 0 0 170px; */
    }

    .wylt__cover {
        /* height: 210px; */
    }

    .wylt__badge {
        width: 56px;
        height: 56px;
        margin-left: -20px;
        margin-top: -6px;
    }

    .wylt__badge-pct {
        font-size: 0.65rem;
    }

    .wylt__body {
        padding: 12px 14px 14px;
    }

    .wylt__title {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .wylt__card {
        /* flex: 0 0 160px; */
    }
}

@media (max-width: 480px) {
    .wylt__inner {
        padding: 0 16px;
    }

    .wylt__card {
        /* flex: 0 0 154px;  */
    }

    .wylt__cover {
        /*  height: 195px; */
    }

    .wylt__pill {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .wylt__badge {
        width: 48px;
        height: 48px;
        margin-left: -16px;
        margin-top: -4px;
    }
}

@media (max-width: 375px) {
    .wylt__card {
        /* flex: 0 0 144px; */
    }

    .wylt__cover {
        /*height: 180px; */
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. FOOTER & CAN'T FIND SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        padding-bottom: 36px;
    }

    .footer {
        padding: 48px 0 0;
    }
}

@media (max-width: 768px) {
    .cant-find {
        padding: 36px 0 2px;
    }

    .cant-find__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 0 20px;
    }

    .cant-find__title {
        font-size: 1.6rem;
    }

    .cant-find__sub {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .footer__grid {
        gap: 28px;
        padding: 0 20px 32px;
    }

    .footer__logo-name {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .cant-find {
        padding: 28px 0 2px;
    }

    .cant-find__title {
        font-size: 1.4rem;
    }

    .cant-find__sub {
        font-size: 0.85rem;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer__grid {
        padding: 0 16px 28px;
    }

    .footer__logo-name {
        font-size: 24px;
    }

    .footer__desc {
        font-size: 0.75rem;
    }

    .footer__col h4 {
        font-size: 0.7rem;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. PRODUCT PAGE COMPONENTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Section 1 - Product Details */
@media (max-width: 1439px) and (min-width: 1025px) {
    .product__grid {
        grid-template-columns: minmax(360px, 500px) minmax(0, 1fr) !important;
        gap: 20px !important;
    }

    .gallery {
        width: 100% !important;
    }

    .gallery__stage {
        width: 100% !important;
    }

    .gallery__main-wrap {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .gallery__thumbs {
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        gap: 12px !important;
        scrollbar-width: none !important;
    }

    .gallery__thumbs::-webkit-scrollbar {
        display: none !important;
    }

    .gallery__thumb {
        flex: 0 0 108px !important;
        width: 108px !important;
        min-width: 108px !important;
        max-width: none !important;
    }

    .gallery__zoom-panel {
        display: none !important;
    }

    .pinfo {
        width: 100% !important;
        min-width: 0 !important;
    }

    .pinfo__title {
        font-size: clamp(36px, 3.5vw, 60px) !important;
    }

    .pinfo__price {
        font-size: clamp(38px, 4vw, 60px) !important;
    }

    .buy-bar {
        width: 100% !important;
    }

    .btn-bag {
        width: 100% !important;
        max-width: 416px !important;
        flex: 1 1 auto !important;
    }

    .member-strip {
        width: 100% !important;
    }

    .perks {
        width: 100% !important;
    }

    .perk {
        min-width: 0 !important;
    }

    .perk__heading,
    .perk__sub {
        word-break: break-word !important;
    }
}

@media (max-width: 1024px) and (min-width: 901px) {
    .product__grid {
        grid-template-columns: minmax(320px, 420px) minmax(0, 1fr) !important;
        gap: 20px !important;
    }

    .gallery {
        width: 100% !important;
    }

    .gallery__stage {
        width: 100% !important;
    }

    .gallery__main-wrap {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
    }

    .gallery__thumbs {
        width: 100% !important;
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        scrollbar-width: none !important;
    }

    .gallery__thumbs::-webkit-scrollbar {
        display: none !important;
    }

    .gallery__thumb {
        flex: 0 0 150px !important;
        width: 150px !important;
        min-width: 150px !important;
        max-width: none !important;
    }

    .gallery__zoom-panel {
        display: none !important;
    }

    .pinfo {
        width: 100% !important;
        min-width: 0 !important;
    }

    .pinfo__title {
        font-size: 38px !important;
        line-height: 1.15 !important;
    }

    .pinfo__price {
        font-size: 44px !important;
    }

    .buy-bar {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .qty {
        flex-shrink: 0 !important;
    }

    .btn-bag {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
    }

    .btn-wish {
        flex-shrink: 0 !important;
    }

    .member-strip {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .perks {
        width: 100% !important;
        gap: 8px !important;
    }

    .perk {
        min-width: 0 !important;
    }

    .perk__heading,
    .perk__sub {
        font-size: 11px !important;
        word-break: break-word !important;
    }
}

@media (max-width: 900px) {
    .product__grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .gallery {
        position: static !important;
        width: 100% !important;
        max-width: 380px !important;
        margin: 0 auto !important;
    }

    .gallery__stage {
        width: 100% !important;
    }

    .gallery__main-wrap {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        max-width: 380px !important;
        margin: 0 auto !important;
    }

    .gallery__thumbs {
        width: 100% !important;
        max-width: 380px !important;
        margin: 0 auto !important;
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        scrollbar-width: none !important;
    }

    .gallery__thumbs::-webkit-scrollbar {
        display: none !important;
    }

    .gallery__thumb {
        flex: 0 0 120px !important;
        width: 120px !important;
        min-width: 120px !important;
        max-width: none !important;
    }

    .gallery__zoom-panel,
    .gallery__track-box,
    .gallery__zoom-hint {
        display: none !important;
    }

    .pinfo {
        width: 100% !important;
        min-width: 0 !important;
    }

    .badge {
        font-size: 10px !important;
        padding: 5px 12px !important;
    }

    .pinfo__title {
        font-size: clamp(26px, 5vw, 36px) !important;
        line-height: 1.15 !important;
    }

    .pinfo__meta {
        font-size: 13px !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .pinfo__author-link {
        font-size: 13px !important;
    }

    .pinfo-divider {
        display: none !important;
    }

    .pinfo-publisher {
        width: 100% !important;
        margin-top: 2px !important;
    }

    .pinfo__goodreads {
        flex-wrap: wrap !important;
        gap: 4px !important;
    }

    .gr-divider {
        display: none !important;
    }

    .gr-count {
        width: 100% !important;
        height: auto !important;
    }

    .pinfo__price {
        font-size: clamp(32px, 6vw, 42px) !important;
    }

    .format-tabs {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }

    .format-tab {
        width: 112px !important;
        min-width: 112px !important;
        flex: 0 0 112px !important;
    }

    .buy-bar {
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .qty {
        flex-shrink: 0 !important;
    }

    .qty__minus,
    .qty__plus {
        width: 34px !important;
        height: 46px !important;
        font-size: 20px !important;
        padding: 0 !important;
    }

    .qty__val-div {
        width: 34px !important;
        padding: 0 !important;
        justify-content: center !important;
    }

    .qty__val {
        font-size: 13px !important;
    }

    .btn-bag {
        flex: 1 !important;
        width: auto !important;
        max-width: none !important;
        height: 46px !important;
        font-size: 13px !important;
        padding: 0 8px !important;
    }

    .btn-wish {
        flex-shrink: 0 !important;
        width: 40px !important;
        height: 46px !important;
    }

    .member-strip {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    .member-strip__left,
    .member-strip strong,
    .member-strip__cta {
        font-size: 11px !important;
    }

    .perks {
        width: 100% !important;
        gap: 12px !important;
    }

    .perk__heading,
    .perk__sub {
        font-size: 11px !important;
    }
}

@media (max-width: 375px) {
    .buy-bar {
        flex-wrap: wrap !important;
    }

    .qty {
        width: 100% !important;
        flex: 0 0 100% !important;
        justify-content: space-between !important;
    }

    .btn-bag {
        flex: 1 !important;
        height: 46px !important;
    }

    .btn-wish {
        width: 44px !important;
        height: 46px !important;
    }
}

@media (max-width: 480px) {

    .gallery,
    .gallery__main-wrap,
    .gallery__thumbs {
        max-width: 280px !important;
    }

    .gallery__thumb {
        flex: 0 0 100px !important;
        width: 100px !important;
        min-width: 100px !important;
        max-width: none !important;
    }

    .perks {
        grid-template-columns: 1fr !important;
    }

    .pinfo__title {
        font-size: 24px !important;
    }

    .pinfo__price {
        font-size: 30px !important;
    }
}

/* Section 2 - About */
@media (max-width: 900px) and (min-width: 769px) {
    .about__label h4 {
        font-size: 50px !important;
    }

    .dropcap {
        font-size: 68px !important;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 40px 0 !important;
    }

    .about__grid {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
    }

    .about__label {
        max-width: 100% !important;
        width: 100% !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .about__label h4 {
        font-size: clamp(32px, 7vw, 42px) !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    .about__label h4 br {
        display: none !important;
    }

    .about__body {
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        overflow-x: visible !important;
    }

    .about__body-inner {
        gap: 16px !important;
    }

    .dropcap {
        font-size: 58px !important;
    }
}

/* Section 3 - Author */
@media (max-width: 1439px) and (min-width: 901px) {
    .author__grid {
        grid-template-columns: 280px 1fr !important;
        gap: 32px !important;
    }

    .author__photo img {
        height: auto !important;
        aspect-ratio: 320 / 480 !important;
    }

    .author__bio {
        height: auto !important;
    }

    .author__name {
        font-size: clamp(38px, 4vw, 50px) !important;
    }

    .author__text {
        width: 100% !important;
    }

    .author__stats {
        width: 100% !important;
        gap: 40px !important;
    }

    .book-scroll {
        width: 100% !important;
        gap: 32px !important;
    }
}

@media (max-width:1200px) {
    .astat__val {
        font-size: 20px !important;
    }
}

@media (max-width: 900px) {
    .author {
        padding: 40px 0 !important;
    }

    .author__grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding-bottom: 36px !important;
    }

    .author__photo {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }

    .author__photo img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 320 / 480 !important;
    }

    .author__bio {
        height: auto !important;
        align-items: center !important;
        text-align: center !important;
    }

    .author__label {
        text-align: center !important;
    }

    .author__name {
        font-size: clamp(32px, 6vw, 42px) !important;
        text-align: center !important;
    }

    .author__tagline {
        font-size: 14.5px !important;
        text-align: center !important;
        margin-bottom: 16px !important;
    }

    .author__bio-inner {
        height: auto !important;
        overflow: visible !important;
        overflow-x: visible !important;
    }

    .author__text {
        width: 100% !important;
        font-size: 14.5px !important;
        line-height: 155% !important;
        text-align: center !important;
        margin-bottom: 16px !important;
    }

    .author__stats {
        width: 100% !important;
        justify-content: center !important;
        gap: 24px !important;
        padding: 16px 0 !important;
        flex-wrap: wrap !important;
    }

    .astat {
        align-items: center !important;
    }

    .more-label {
        text-align: center !important;
    }

    .book-scroll {
        width: 100% !important;
        gap: 20px !important;
        padding-bottom: 8px !important;
    }

    .bk img {
        width: 120px !important;
    }

    .bk p,
    .bk p s {
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .author__photo {
        max-width: 220px !important;
    }

    .author__stats {
        gap: 16px !important;
    }

    .astat__key {
        font-size: 11px !important;
    }

    .astat__val {
        font-size: 18px !important;
    }

    .bk img {
        width: 105px !important;
    }

    .bk p,
    .bk p s {
        font-size: 15px !important;
        gap: 8px !important;
    }
}

@media (max-width: 375px) {
    .author__stats {
        flex-direction: column;
    }
}

/* Section 4 - Reviews */

@media (max-width: 1439px) and (min-width: 901px) {
    .reviews__title {
        font-size: clamp(40px, 4.5vw, 56px) !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .reviews__logo {
        width: clamp(180px, 20vw, 250px) !important;
        height: auto !important;
    }

    .reviews__body {
        grid-template-columns: 280px 1fr !important;
        gap: 24px !important;
    }

    .rcard {
        max-width: 100% !important;
    }
}

@media (max-width: 900px) {
    .reviews {
        padding: 40px 0 20px 0 !important;
    }

    .reviews__header {
        margin-bottom: 24px !important;
    }

    .reviews__title {
        font-size: clamp(28px, 6vw, 40px) !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .reviews__logo {
        width: clamp(150px, 45vw, 220px) !important;
        height: auto !important;
    }

    .reviews__sub-div {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .reviews__sub {
        font-size: 13.5px !important;
    }

    .reviews__all-link {
        font-size: 14px !important;
        white-space: normal !important;
    }

    .reviews__body {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .rsum {
        width: 100% !important;
        box-sizing: border-box !important;
        align-items: center !important;
        text-align: center !important;
        padding: 24px 20px !important;
    }

    .rsum__bars {
        width: 100% !important;
    }

    .rlist {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .rcard {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 18px !important;
    }

    .rcard__top {
        flex-wrap: wrap !important;
    }

    .mention-box {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px 18px !important;
    }
}

@media (max-width: 480px) {
    .rsum__big {
        font-size: 64px !important;
    }

    .rsum__stars,
    .rsum__stars span {
        font-size: 18px !important;
    }

    .rcard__footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .mention-box__tags span {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }
}

/* Section 5 - Recommended */

@media (max-width: 1439px) and (min-width: 901px) {
    .reco__header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        margin-bottom: 24px !important;
    }

    .reco__title {
        font-size: clamp(36px, 4vw, 48px) !important;
    }

    .reco__sub {
        font-size: 15px !important;
    }

    .reco__browse {
        font-size: 15px !important;
    }
}

@media (max-width: 900px) {
    .reco {
        padding: 40px 0 !important;
    }

    .reco__header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
    }

    .reco__title {
        font-size: clamp(26px, 5.5vw, 36px) !important;
        line-height: 1.2 !important;
    }

    .reco__sub {
        font-size: 13.5px !important;
        margin-top: 4px !important;
    }

    .reco__browse {
        font-size: 14px !important;
        white-space: nowrap !important;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. TOUCH-FRIENDLY TARGETS & CAROUSEL SCROLL BEHAVIOR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {


    
    .wpb__pill,
    .lr__pill,
    .gtbtg__pill,
    .wilco-house__pill,
    .wilco-house__pill,
    .dotm__pill {
        min-height: 30px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    button,
    .bs__atb,
    .lr__atb,
    .dotm__atb,
    .wylt__atb,
    .bundle__atb,
    .bcard__atb,
    .hero__browse,
    .filter-pill,
    .bs__pill,

    .lr__pill,
    .wylt__pill {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero__browse {
        padding: 8px 0;
    }

    .dotm__row,
    .lr__row,
    .wylt__row,
    .bundles__row {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 20px;
    }

    /* bs__card (560px) is wider than the screen — mandatory snap here
       forces a jump to the next card before the current wide card can
       be scrolled through. Keep this on proximity (see section 5 above)
       and just add the touch-scroll tuning the other rows get. */
    .bs__row {
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 20px;
    }
}

@media (max-width: 480px) {

    .bs__row,
    .dotm__row,
    .lr__row,
    .wylt__row,
    .bundles__row {
        scroll-padding-left: 16px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   17. DISABLE PARALLAX ON MOBILE FOR PERFORMANCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {

    .bs__inner,
    .dotm__inner,
    .lr__inner,
    .wylt__inner,
    .lr-illo__img {
        will-change: auto;
        transform: none !important;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   18. ACCESSIBILITY: REDUCED MOTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (prefers-reduced-motion: reduce) {

    .ticker__track,
    .sale-ticker__track,
    .hero__books-track {
        animation: none !important;
    }

    .hero__video,
    .hero__bg-slide {
        transition: none !important;
    }

    .sr {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .bs__card,
    .dotm__card,
    .lr__card,
    .wylt__card {
        transition: none !important;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19. LANDSCAPE MODE FIXES (small height devices)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 380px;
    }

    .hero__content {
        padding-bottom: 20px;
    }

    .ticker,
    .sale-ticker {
        height: 28px;
    }
}


@media (max-width: 1024px) {

    .mday-title,
    .mday-title em,
    .mday-percentage {
        font-size: 45px;
    }

    .mday-subtitle {
        font-size: 18px;
    }

    .mday-save-text,
    .mday-select-titles,
    .mday-btn {
        font-size: 14px;
    }

    .mday-discount-box {
        margin: 30px 0;
    }

    .mday-slide {
        padding: 30px;
    }

    .mday-image-wrapper {
        height: 85%;
    }

    .mday-dots {
        width: 40px;
        margin-top: 18px;
    }
}

@media (max-width: 768px) {

    .mday-title,
    .mday-title em,
    .mday-percentage {
        line-height: 120%;
        font-size: 35px;
    }

    .mday-title {
        margin: 15px 0;
    }

    .mday-subtitle {
        font-size: 14px;
    }

    .mday-save-text,
    .mday-select-titles,
    .mday-btn {
        font-size: 10px;
    }

    .mday-btn {
        padding: 12px 18px;
    }

    .mday-discount-box {
        margin: 12px 0;
    }

    .mday-slide {
        padding: 20px;
    }

    .mday-image-wrapper {
        height: 75%;
    }

    .mday-arrow {
        height: 30px;
    }

    .mday-dots {
        width: 36px;
        margin-top: 16px;
    }
}

@media (max-width: 426px) {
    .mday-carousel {
        width: calc(100% - 40px);
        margin: 20px auto 0;
    }

    .mday-image-wrapper {
        height: auto;
        justify-content: space-evenly;
    }

    .mday-dekstop-img {
        display: none;
    }

    .mday-mobile-img {
        display: block;
    }

    .mday-slide {
        padding: 16px;
    }

    .mday-title,
    .mday-title em {
        font-size: 36px;
        line-height: 100%;
        margin: 10px 0;
    }

    .mday-subtitle {
        line-height: 1;
        font-size: 16px;
    }

    .mday-percentage {
        font-size: 60px;
        margin-top: -6px;
    }

    .mday-save-text,
    .mday-select-titles,
    .mday-btn {
        font-size: 16px;
    }

    .mday-btn {
        padding: 8px 16px;
        height: auto;
    }

    .mday-discount-box {
        margin: 40px 0;
    }

    .mday-arrow {
        height: 24px;
    }

    .mday-dots {
        width: 32px;
        margin-top: 14px;
    }
}

@media (max-width: 362px) {

    .mday-title,
    .mday-title em {
        font-size: 30px;
    }
}

@media (max-width: 1240px) {
    .hk-meetup-card {
        width: calc(100% - 40px);
        height: auto;
        aspect-ratio: auto;
    }
}

@media (max-width: 992px) {
    .hk-meetup-card {
        padding: 40px 36px;
        background-position: 30% 50%;
    }

    .hk-meetup-title {
        font-size: 44px;
    }

    .hk-meetup-subtitle,
    .hk-meetup-info-desc {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hk-meetup-card {
        background-position: 15% 50%;
        padding: 36px 24px;
    }

    .hk-meetup-content {
        width: 100%;
        gap: 16px;
    }

    .hk-meetup-title {
        font-size: 30px;
    }

    .hk-meetup-subtitle-bold {
        font-size: 16px;
    }

    .hk-meetup-subtitle {
        font-size: 16px;
        max-width: 100%;
    }

    .hk-meetup-info-strip {
        gap: 20px;
        margin: 20px 0;
    }

    .hk-meetup-info-desc {
        font-size: 16px;
        max-width: 80%;
    }

    .hk-meetup-info-label {
        font-size: 12px;
        font-weight: 600;
    }

    .hk-meetup-info-icon-box {
        width: 48px;
        height: 48px;
    }

    .hk-meetup-icon {
        width: 26px;
        height: 26px;
    }

    .hk-meetup-info-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 426px) {
    .hk-meetup-card {
        padding: 16px;
        background-position: 2% 50%;
        margin: 48px auto;
    }

    .hk-meetup-title {
        font-size: 36px;
        line-height: 130%;
    }

    .hk-meetup-subtitle-bold {
        font-size: 16px;
    }

    .hk-meetup-subtitle {
        font-size: 16px;
        max-width: 100%;
    }

    .hk-meetup-info-strip {
        gap: 12px;
    }

    .hk-meetup-info-desc {
        max-width: 100%;
    }

    .hk-meetup-info-icon-box {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .hk-meetup-icon {
        width: 22px;
        height: 22px;
    }

    .hk-meetup-badge {
        width: 160px;
        font-size: 12px;
        padding: 8px;
    }

    .hk-meetup-btn {
        font-size: 12px;
        padding: 12px 18px;
    }
}

@media (max-width: 370px) {
    .hk-meetup-title {
        font-size: 24px;
    }

    .hk-meetup-subtitle-bold {
        font-size: 14px;
    }

    .hk-meetup-subtitle {
        font-size: 14px;
    }

    .hk-meetup-info-desc {
        font-size: 14px;
    }

    .hk-meetup-badge {
        width: 140px;
        font-size: 10px;
        padding: 6px;
    }

    .hk-meetup-btn {
        font-size: 14px;
        padding: 16px 24px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. HEADER & NAVIGATION (touch-friendly, no layout shift)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1024px) {
    .header__container {
        padding: 0 24px;
        gap: 20px;
    }

    .header__nav-list,
    .header__actions {
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }

    .header__container {
        padding: 0 24px;
        gap: 12px;
    }

    .header__logo-svg img {
        height: 50px;
        width: auto;
    }

    .header__nav {
        display: none;
    }

    .header__hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .header__hamburger span {
        display: block;
        height: 2px;
        width: 20px;
        background: #ffffff;
        border-radius: 2px;
        transition: 0.2s;
    }

    .header__hamburger.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header__hamburger.is-open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .header__hamburger.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header__icon-ham-loc,
    .header__icon-ham-auth {
        display: block;
    }

    .header__icon-btn {
        width: 28px;
        height: 28px;
    }

    .header__actions {
        gap: 16px;
    }

    .header__nav.is-open {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #2a3141;
        border-bottom: 1px solid #3a4255;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        z-index: 199;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header__nav.is-open .header__nav-list {
        flex-direction: column;
        padding: 8px 0;
    }

    .header__nav.is-open .header__nav-link {
        line-height: 1;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 0.95rem;
        color: #ffffff;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .cant-find__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .header__container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: 0 16px;
        gap: 16px;
    }

    .header__logo-svg img {
        height: 40px;
        width: auto;
    }

    .header__icon-btn,
    .header__hamburger {
        width: 24px;
        height: 24px;
    }

    .header__actions {
        gap: 12px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .header__nav.is-open {
        max-height: 80vh;
    }
}