@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Noto+Sans+Sinhala:wght@400;600&display=swap');
/* GALLE BRAND ACCENT EXPERIMENT
   Reversible: remove the <link> to this file (brand_assets.php, sun_accent_stylesheet_link) and the previous look returns.
   Loaded AFTER css/galle-theme.css. Colour/typography only on desktop; mobile also re-flows the product card body.
   Breakpoints follow galle-theme.css (body zoom .9: mobile <= 738px, desktop >= 739px). Declared sizes are divided by .9
   where a physical minimum applies (14px rendered = 15.6px declared; 12px = 13.4px; 44px = calc(44px / .9)). */

:root {
    --galle-brand-primary: #0D2040;   /* THE official GALLE navy: the only solid brand blue in this stylesheet */
    --gbs-accent: var(--galle-brand-primary);
    --gbs-accent-dark: var(--galle-brand-primary);   /* hover/focus use opacity or overlays of the same colour, not another blue */
    --gbs-accent-soft: #EEF2FA;
    --gbs-accent-ink: #FFFFFF;

    --gbs-text: #1F2937;
    --gbs-muted: #4B5563;
    --gbs-card-border: #E2E8F0;
}

/* ---------- One brand navy: re-point the theme's competing blues at --galle-brand-primary ----------
   galle-theme.css defines --brand-primary (already navy), plus --brand-primary-hover (#1450A3) and --brand-accent / -hover (#2563EB / #1D4ED8), which
   drive hover states, text links, the selected book-list choice and the mobile active tab. They now resolve to the same navy; hover is the navy
   mixed 12% with white (an overlay of the same colour, not a separate hex). Semantic colours (green stock, red errors, status blues) are untouched. ---------- */
:root:root:root,
:root:root:root body,
:root:root:root body.homepage-redesign,
:root:root:root body.gbs-content-page{
    --galle-brand-hover: color-mix(in srgb, var(--galle-brand-primary) 88%, #fff);
    --brand-primary: var(--galle-brand-primary);
    --brand-primary-dark: var(--galle-brand-primary);
    --brand-primary-hover: var(--galle-brand-hover);
    --brand-accent: var(--galle-brand-primary);
    --brand-accent-hover: var(--galle-brand-hover);
    --brand-primary-soft: var(--gbs-accent-soft);   /* pale tint behind badges / active filters (was sky-blue #E0F2FE on shop and content pages) */
}
:root:root:root body .customer-footer .footer-links i{ color: #C7D2E8; }   /* footer chevrons/icons: same light tint as the footer link text (were lavender #AEB8FF) */
/* class-less / contact-page links that fell back to the browser's default #0000EE */
:root:root:root body .contact-list a,
:root:root:root body .contact-quick-link,
:root:root:root body section.reviews p.empty a{ color: var(--gbs-accent); }
:root:root:root body .contact-list a,
:root:root:root body section.reviews p.empty a,
:root:root:root body .checkout-legal-note a{ text-decoration: underline; }
:root:root:root body .checkout-legal-note a{ color: var(--gbs-accent); }

/* ---------- Top contact strip: slim, quiet full-width navy utility bar (same colour as the footer) ----------
   The strip is .gbs-support-row, a right-aligned grid item in the header. The bar is drawn by that item's own background plus a 100vmax box-shadow
   clipped to the item's height, so it spans the viewport without adding width or scroll overflow. Its height equals the strip's own grid slot (negative top margin cancels the header row's top padding), so the header and the page below do not move. ---------- */
:root:root:root body .gbs-support-row{
    box-sizing: border-box;
    align-self: start;
    background: var(--galle-brand-primary);
    box-shadow: 0 0 0 100vmax var(--galle-brand-primary);
    clip-path: inset(0 -100vmax);
}
:root:root:root body .gbs-support-link,
:root:root:root body .gbs-support-link:visited{ color: rgba(255,255,255,.9); font-weight: 500; }   /* quiet utility-bar text: lighter weight, 90% white (~11:1 on the navy) */
:root:root:root body .gbs-support-link i{ color: rgba(255,255,255,.9); }
:root:root:root body .gbs-whatsapp-link i{ color: #4ADE80; }          /* light green WhatsApp accent, on the navy bar */
:root:root:root body .gbs-support-link:hover{ color: #C7D2E8; text-decoration: underline; }
:root:root:root body .gbs-support-link:focus-visible{ outline: 2px solid #FFFFFF; outline-offset: 2px; border-radius: 3px; }
:root:root:root body .gbs-support-link + .gbs-support-link{ border-left: 1px solid rgba(255,255,255,.22); }   /* faint hairline divider */
@media (min-width: 739px){
    :root:root:root body .gbs-support-row{ margin: -6px 0 0; padding: 5px 20px 5px 0; }    /* tablet: the header row has 6px top padding; bar = 5+16+5 = 26px declared (~23.4px rendered), exactly the strip's slot */
}
@media (min-width: 1100px){
    :root:root:root body .gbs-support-row{ margin: -4px 0 0; padding: 4px 20px 4px 0; }           /* desktop: 4px row padding; bar = 4+16+4 = 24px declared (~21.6px rendered), exactly the strip's slot */
}
@media (max-width: 738px){
    :root:root:root body .gbs-support-row{ margin: -6px 0 0; padding: 3px 0; }                      /* phone: 3+16+3 = 22px declared (~19.8px rendered), exactly the strip's slot */
}

/* ---------- Typography: Pabasara Agro stack (verified live: English text, headings, buttons, nav and inputs all "Plus Jakarta Sans"; Sinhala headings "Noto Sans Sinhala" -> "Plus Jakarta Sans" -> "Iskoola Pota").
   Plus Jakarta Sans and Noto Sans Sinhala are Google Fonts under the SIL Open Font License (free to use and serve).
   The @import covers pages that do not load galle-theme.css (login, register); elsewhere the font files are already cached. ---------- */
:root:root:root,
:root:root:root body,
:root:root:root body.homepage-redesign,
:root:root:root body.gbs-content-page{
    --font-heading: 'Plus Jakarta Sans', 'Noto Sans Sinhala', 'Iskoola Pota', 'Nirmala UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Noto Sans Sinhala', 'Segoe UI', Roboto, Arial, sans-serif;
}
:root:root:root body button,
:root:root:root body input,
:root:root:root body select,
:root:root:root body textarea{ font-family: var(--font-body); }
/* shop-name wordmark next to the logo stays as the brand set it */
:root:root:root body .gbs-brand-name{ font-family: 'Merriweather', 'Noto Sans Sinhala', Georgia, serif; }

/* ---------- Shared (all widths): primary actions ---------- */
:root:root:root body .btn:not([disabled]):not(.is-added):not(.delete-btn),
:root:root:root body .gbs-search-submit,
:root:root:root body .gbs-cart-checkout-btn:not([disabled]){
    background-color: var(--gbs-accent);
    color: var(--gbs-accent-ink);
}
:root:root:root body .btn:not([disabled]):not(.is-added):not(.delete-btn):hover,
:root:root:root body .gbs-search-submit:hover,
:root:root:root body .gbs-cart-checkout-btn:not([disabled]):hover{
    background-color: var(--gbs-accent); opacity: .88;   /* hover = the same navy at 88% opacity, not a second blue */
}
:root:root:root body .gbs-product-current-price,
:root:root:root body .gbs-book-price,
:root:root:root body .gbs-book-price-value{
    color: var(--gbs-accent);
    font-weight: 700;
}
:root:root:root body .gbs-book-meta{ color: var(--gbs-muted); }

/* quantity controls (card stepper in its in-cart state, product page, cart): pale blue surface, blue border and symbols */
:root:root:root body .qty-control.product-cart-quantity-control,
:root:root:root body .product-cart-form .gbs-book-footer .product-card-actions.product-cart-actions .qty-control.product-cart-quantity-control{
    background: var(--gbs-accent-soft);
    border-color: var(--gbs-accent);
}
:root:root:root body .qty-control.product-cart-quantity-control button,
:root:root:root body .qty-control.product-cart-quantity-control .qty,
:root:root:root body .product-cart-form .gbs-book-footer .product-cart-quantity-control .product-cart-quantity-button,
:root:root:root body .product-cart-form .gbs-book-footer .product-cart-quantity-control .qty{
    color: var(--gbs-accent);
}

/* homepage category circles: GALLE blue palette (colour only; size, glyphs, order and links come from the existing markup) */
:root:root:root body .home-category .box .category-card-icon{
    background: var(--gbs-accent-soft);
}
:root:root:root body .home-category .box .category-card-icon i{
    color: var(--gbs-accent);
}
:root:root:root body .home-category .box:hover .category-card-icon,
:root:root:root body .home-category .box:focus-visible .category-card-icon{
    background: #D5DEF1;
}
:root:root:root body .home-category .box:hover .category-card-icon i,
:root:root:root body .home-category .box:focus-visible .category-card-icon i{
    color: var(--gbs-accent-dark);
}
:root:root:root body .home-category .box:focus-visible{
    outline: 2px solid var(--gbs-accent-dark);
    outline-offset: 2px;
}

/* ---------- Product card text (all widths). The card itself is the theme's original all-white card: the two-tone container, cover frame,
   soft-blue information panel, hover lift and 6px button radius were removed. Readable title / meta / stock sizes are kept. ---------- */
:root:root:root body .gbs-book-card .gbs-book-title,
:root:root:root body .gbs-book-card .gbs-book-title a{
    color: var(--gbs-text);
    font-size: 15.6px;               /* renders 14px under body zoom .9 */
    font-weight: 600;
}
:root:root:root body .gbs-book-card .gbs-book-title{ line-height: 1.3; }
:root:root:root body .gbs-book-card .gbs-book-meta{ color: var(--gbs-muted); font-size: 13.4px; }   /* 12px rendered */
:root:root:root body .gbs-book-card .gbs-book-stock{ font-size: 13.4px; font-weight: 600; }

/* ---------- Visual consistency: section headings, category labels, product page ---------- */
:root:root:root body .section-head .title{
    color: var(--gbs-text);
    font-size: 20px;                 /* 18px rendered */
    font-weight: 700;
}
:root:root:root body .home-category .box h3{
    font-size: 13.4px;               /* 12px rendered */
    word-break: normal;
    overflow-wrap: normal;
}
:root:root:root body .gbs-product-current-price{ font-size: 24.4px; }   /* 22px rendered */

/* ---------- Homepage shelf panels (V2): real padded, bordered, rounded panels instead of an outline.
   Heading + View All + rail live inside one panel (product shelves only; the category strip stays unboxed); panels alternate white / very pale blue by their position among the shelves.
   Desktop rail cards are sized as a percentage of the rail, so the card COUNT per row (8 at the widest step) is unchanged; cards
   shrink by the padding only. Applies to the homepage only (body.homepage-redesign), never to the product-page "More in ..." rail. ---------- */
:root:root:root body.homepage-redesign{ --gbs-shelf-pad: clamp(12px, 1.2vw, 20px); }
:root:root:root body.homepage-redesign main > .home-featured-products{
    box-sizing: border-box;
    padding: var(--gbs-shelf-pad);
    background: #FFFFFF;
    border: 1px solid var(--gbs-card-border);
    border-radius: 12px;
}
:root:root:root body.homepage-redesign main > .home-featured-products:nth-child(odd of .home-featured-products){ background: #F8FAFF; }
/* Product page: the related-products panel took a 24px side margin and a narrowed width and sat inset from the page content; it now spans the same boundary as the product section above it. */
:root:root:root body main.gbs-product-shell > .home-featured-products{ margin-left: 0; margin-right: 0; width: 100%; max-width: none; box-sizing: border-box; }
/* ...and the cards keep their previous width (the rail is 48px wider now, so the same-sized cards stay left-aligned instead of stretching) */
@media (min-width: 941px){
    :root:root:root body main.gbs-product-shell > .home-featured-products .gbs-featured-grid > .gbs-book-card{ flex: 0 0 calc((100% - 48px - (var(--gbs-rail-cards) - 1) * var(--gbs-rail-gap)) / var(--gbs-rail-cards)); }
}
:root:root:root body.homepage-redesign main > .home-featured-products .section-head{
    margin: 0 0 12px;
    align-items: center;             /* heading text and the View All pill share a centre line (was bottom-aligned, which left extra air above the text) */
    position: relative;
    top: -4px;                       /* visual lift only: layout, card positions and shelf heights are unchanged */
}
/* the shelf padding is smaller below ~1400px, so the lift is too (keeps space above and below the heading about equal) */
@media (max-width: 1400px){
    :root:root:root body.homepage-redesign main > .home-featured-products .section-head{ top: -2px; }
}
:root:root:root body.homepage-redesign main > .home-featured-products .section-head > a{ color: var(--gbs-accent); }
/* rail arrows sit just inside the panel padding instead of straddling its border */
:root:root:root body.homepage-redesign main > .home-featured-products .gbs-carousel-prev{ left: -12px; }
:root:root:root body.homepage-redesign main > .home-featured-products .gbs-carousel-next{ right: -12px; }

/* ---------- Desktop colour pass (no layout change) ---------- */
@media (min-width: 739px){
    :root:root:root body .product-cart-add:not([disabled]):not(.is-added){
        background-color: var(--gbs-accent);
        color: var(--gbs-accent-ink);
    }
    :root:root:root body .product-cart-add:not([disabled]):not(.is-added):hover,
    :root:root:root body .product-cart-add:not([disabled]):not(.is-added):active{
        background-color: var(--gbs-accent); opacity: .88;   /* hover = the same navy at 88% opacity, not a second blue */
    }
}

/* ---------- Unified product-card action slot (all widths) ----------
   Markup: .product-cart-actions always contains BOTH the Add input and the .qty-control; the theme shows one and hides the other
   (.product-cart-form.is-in-cart). Here the slot is one fixed full-width 44px-rendered row under the price, and each state fills it,
   so the card does not change size or move when the state changes. ---------- */
:root:root:root body .gbs-book-footer{ grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
:root:root:root body .gbs-book-footer .gbs-book-price{ grid-column: 1 / -1; }
:root:root:root body .gbs-book-footer .product-card-actions.product-cart-actions{
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: stretch;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    height: calc(44px / .9);         /* 44px rendered under body zoom .9 */
    margin: 0;
    padding: 0;                      /* the shared .product-cart-actions padding would shorten the children */
}
/* State A: full-width GALLE-blue Add to cart (the theme draws only the bag icon; the label is the input's own value) */
:root:root:root body .gbs-book-card .gbs-book-footer .product-card-actions.product-cart-actions .product-cart-add:not(.is-added){
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    padding: 0 8px 0 30px;
    border-radius: 6px;
    background-color: var(--gbs-accent);
    background-clip: border-box;
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px 16px;
    color: var(--gbs-accent-ink);
    font-size: 13.4px;               /* 12px rendered */
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
:root:root:root body .gbs-book-card .gbs-book-footer .product-card-actions.product-cart-actions .product-cart-add:not(.is-added):not([disabled]):hover{ background-color: var(--gbs-accent); opacity: .88;   /* hover = the same navy at 88% opacity, not a second blue */ }
:root:root:root body .gbs-book-card .gbs-book-footer .product-card-actions.product-cart-actions .product-cart-add[disabled]{
    background-color: #6B7280;
    opacity: .65;
}
/* State B: the same rectangle as [ - qty + ] */
:root:root:root body .product-cart-form.is-in-cart .gbs-book-footer .product-card-actions.product-cart-actions .qty-control.product-cart-quantity-control{
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    border-radius: 6px;
    background: var(--gbs-accent-soft);
    border: 1px solid var(--gbs-accent);
}
:root:root:root body .product-cart-form.is-in-cart .gbs-book-footer .product-cart-quantity-control .product-cart-quantity-button{
    flex: 1 1 0;
    width: auto;
    height: 100%;
    color: var(--gbs-accent);
    font-size: 17.8px;
}
:root:root:root body .product-cart-form.is-in-cart .gbs-book-footer .product-cart-quantity-control .qty{
    flex: 0 0 34%;
    width: 34%;
    height: 100%;
    color: var(--gbs-accent);
    font-size: 15.6px;
    font-weight: 700;
    text-align: center;
}
/* very narrow card: keep the bag icon centred and drop only the visible label (the input keeps its aria-label) */
@container (max-width: 118px){
    :root:root:root body .gbs-book-card .gbs-book-footer .product-card-actions.product-cart-actions .product-cart-add:not(.is-added){
        padding: 0;
        font-size: 0;
        color: transparent;
        background-position: center;
    }
}

/* ---------- Compact card body (all widths) ----------
   The theme reserved THREE title lines (+4px) on every card so short titles kept the stock/price/button baseline, and always rendered an empty
   pack-size line. Stock label + footer are already pinned to the bottom of each card (margin-top:auto), so the reserved lines only produced
   blank space. Titles now take the room they need (full text, no clamp), empty pack lines collapse, and a mixed-title row still bottom-aligns. ---------- */
:root:root:root body .gbs-book-card .gbs-book-title{ min-height: 0; margin-bottom: 4px; }   /* breathing room above the stock label */
:root:root:root body .gbs-book-card .gbs-book-meta:empty{ display: none; }

/* ---------- Mobile polish ---------- */
@media (max-width: 738px){
    /* shelf panels: tighter padding, and the phone rail stops bleeding to the screen edge so cards stay inside the panel */
    :root:root:root body.homepage-redesign{ --gbs-shelf-pad: 10px; }
    :root:root:root body.homepage-redesign main > .home-featured-products .section-head{ margin-bottom: 10px; }
    :root:root:root body.homepage-redesign main > .home-featured-products .section-head{ top: 0; }
    :root:root:root body.homepage-redesign main > .home-featured-products .gbs-featured-grid{ margin: 0; padding: 0 0 6px; scroll-padding-left: 0; }
    :root:root:root body .section-head .title{ font-size: 17.8px; }   /* 16px rendered */
    /* search bar: the theme sets the form to 38px but the global 44px button min-height made the button (and input) taller than the form, so the
       button hung 6px below it. The form is now 42px and input + button fill its inner height exactly; overflow stays visible for the suggestions. */
    :root:root:root body .gbs-search-form{ height: 42px; box-sizing: border-box; }
    :root:root:root body .gbs-search-form #search-box{ height: 100%; min-height: 0; box-sizing: border-box; }
    :root:root:root body .gbs-search-form .gbs-search-submit{ height: 100%; min-height: 0; margin: 0; box-sizing: border-box; border-radius: 0 9px 9px 0; }
    /* bottom tab bar: white, light top border, blue active item */
    :root:root:root body .gbs-mobile-tabbar{ background: #fff; border-top: 1px solid #E5E7EB; }
    :root:root:root body .gbs-mobile-tab{ color: var(--gbs-muted); }
    :root:root:root body .gbs-mobile-tab.is-active{ color: var(--gbs-accent); }



    /* homepage section order: the mobile theme gave the hero order:1, the category strip 5 and the named shelves 6-8, so admin-configured shelves
       (order:0) jumped ahead of them. Resetting every direct child of <main> to the same order makes the phone follow the DOM sequence, which is
       exactly the desktop sequence (hero, category strip, promo cards, shelves); the promo cards are flex items of <main> on phones, so they are reset too. DOM and keyboard order are untouched. */
    /* :not(#_) only raises specificity above the theme's per-section #id order rules (#shop-by-category:5, #featured:6 ...) without naming any section */
    :root:root:root body.homepage-redesign main > *:not(#_){ order: 0; }
    :root:root:root body.homepage-redesign main > .gbs-promo-row > *:not(#_){ order: 0; margin-top: 0; }
    /* even, compact rhythm between homepage sections (rendered ~14px); main is a flex column on phones */
    :root:root:root body.homepage-redesign main{ gap: 16px; }
    /* the category strip's own 4px top margin + 14px top padding doubled the gap under the hero */
    :root:root:root body.homepage-redesign main > .home-category{ margin-top: 0; padding-top: 0; }
    /* the first label (e.g. CALCULATORS, unbroken at 12px) is ~6px wider than its 83px tile and was clipped by the strip's left edge and by its own tile */
    :root:root:root body.homepage-redesign main > .home-category .box-container{ padding-left: 4px; }
    :root:root:root body.homepage-redesign main > .home-category .box{ overflow: visible; }   /* tile clipped its own label (box overflow:hidden) */

    /* homepage rail cards use the same width as the 2-column category-page card, so both share one card design */
    :root:root:root body .gbs-featured-grid > .gbs-book-card{
        flex: 0 0 calc((100% - var(--m-gap, 8px)) / 2);
        width: calc((100% - var(--m-gap, 8px)) / 2);
        min-width: 0;
    }

    /* compact product card: title / meta / [price | stock] / actions.
       The footer becomes display:contents so price and the cart controls are grid items of the body; DOM and tab order are unchanged. */
    :root:root:root body .gbs-book-card .gbs-book-body{
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto 1fr auto;
        column-gap: 6px;
        row-gap: 4px;
        align-items: start;
    }
    :root:root:root body .gbs-book-card .gbs-book-title{
        grid-column: 1 / -1; grid-row: 1;
        color: var(--gbs-text);
        font-size: 15.6px;           /* renders ~14px under body zoom .9 */
        line-height: 1.3;
    }
    :root:root:root body .gbs-book-card .gbs-book-title a{ color: inherit; }
    :root:root:root body .gbs-book-card .gbs-book-meta{
        grid-column: 1 / -1; grid-row: 2;
        display: block;
        color: var(--gbs-muted);
        font-size: 13.4px;           /* renders ~12px */
        line-height: 1.3;
    }
    :root:root:root body .gbs-book-card .gbs-book-meta:empty{ display: none; }
    :root:root:root body .gbs-book-card .gbs-book-stock{
        grid-column: 2; grid-row: 3;
        align-self: end; justify-self: end;
        margin: 0;
        font-size: 13.4px;           /* renders ~12px; green/red meaning comes from the existing data-state rules */
        line-height: 1.2;
        white-space: nowrap;
    }
    :root:root:root body .gbs-book-card .gbs-book-footer{ display: contents; }
    :root:root:root body .gbs-book-card .gbs-book-price{
        grid-column: 1; grid-row: 3;
        align-self: end;
        min-width: 0;
    }
    :root:root:root body .gbs-book-card .gbs-book-price-value{ font-size: 15.6px; }   /* renders ~14px under body zoom .9 */
    :root:root:root body .gbs-book-card .product-card-actions.product-cart-actions{
        grid-column: 1 / -1; grid-row: 4;
        width: 100%;
        margin-top: 4px;
    }
}

/* ---------- Footer: compact integrated footer (link columns -> contact card -> dark-blue developer band) ----------
   Markup lives in footer.php. .gbs-contact-card (built from the Shop Settings variables the footer already used) sits INSIDE <footer>, between the link
   columns and .footer-bottom, which is the full-width navy band holding developer credit, divider and copyright. ---------- */
:root:root:root body .gbs-contact-card{
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 16px;
    padding: 14px 18px 16px;
    background: #FFFFFF;
    border: 1px solid #DCE5F5;
    border-radius: 12px;
}
:root:root:root body .gbs-contact-card h2{
    margin: 0 0 10px;
    font-size: 20px;                 /* 18px rendered */
    font-weight: 700;
    line-height: 1.3;
    color: var(--gbs-text);
}
:root:root:root body .gbs-contact-list{
    display: flex;                   /* five fields in one row while they fit; otherwise whole fields wrap to the next row */
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
:root:root:root body .gbs-contact-item{ display: flex; align-items: center; gap: 10px; flex: 1 1 max-content; max-width: 100%; min-width: 0; margin: 0; }
:root:root:root body .gbs-contact-icon{
    flex: 0 0 33px;
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: var(--gbs-accent-soft);
    color: var(--gbs-accent);
    font-size: 14px;
}
:root:root:root body .gbs-contact-text{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:root:root:root body .gbs-contact-label{
    font-size: 12.8px;               /* ~11.5px rendered */
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6B7280;
}
:root:root:root body .gbs-contact-value{
    font-size: 15.6px;               /* 14px rendered */
    font-weight: 600;
    line-height: 1.4;
    color: var(--gbs-text);
    overflow-wrap: break-word;
    text-decoration: none;
}
:root:root:root body a.gbs-contact-value{ color: var(--gbs-accent); }
:root:root:root body a.gbs-contact-value:hover{ color: var(--gbs-accent-dark); text-decoration: underline; }
:root:root:root body a.gbs-contact-value:focus-visible{ outline: 2px solid var(--gbs-accent-dark); outline-offset: 2px; border-radius: 3px; }
:root:root:root body a.gbs-contact-value{ padding: 15px 0 12px; margin: -15px 0 -12px; }   /* tap target ~44px rendered without moving anything; padding stays inside the 12px row gap */

/* dark-blue footer: link columns, developer attribution, thin divider, copyright - one continuous section */
:root:root:root body .customer-footer{ padding-top: 20px; background: var(--galle-brand-primary); }

@media (min-width: 739px){
    /* desktop footer: logo | Shop | Support (| Connect), tops aligned, compact type (rendered = x0.9) */
    :root:root:root body .customer-footer .footer-grid{ display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 clamp(24px, 4vw, 64px); align-items: start; padding: 0 0 16px; }
    :root:root:root body .customer-footer .footer-grid:has(> :nth-child(4)){ grid-template-columns: minmax(200px, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .8fr); }
    :root:root:root body .customer-footer .footer-grid > .box{ margin: 0; padding: 0; }
    :root:root:root body .customer-footer .footer-grid h3{ margin: 0 0 8px; font-size: 18px; line-height: 1.3; }   /* ~16px rendered */
    :root:root:root body .customer-footer .footer-brand img.footer-brand-logo{ margin: 0 0 6px; }
    :root:root:root body .customer-footer .footer-brand p{ margin: 0; font-size: 14.4px; line-height: 1.4; }   /* tagline ~13px rendered */
    :root:root:root body .customer-footer .footer-links a{ margin: 0; padding: 3px 0; font-size: 14.4px; line-height: 1.35; }   /* ~13px rendered */
    :root:root:root body .customer-footer .footer-links p.footer-pickup{ margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; opacity: .8; }   /* secondary note */
}
:root:root:root body .customer-footer .footer-bottom{
    display: flex; flex-direction: column; align-items: center; text-align: center;
    margin: 0; padding: 8px 0 8px;
    background: var(--galle-brand-primary); border-top: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.14);   /* same navy as the footer above, separated by an inset hairline (adds no height) */
}
:root:root:root body .customer-footer .footer-bottom .developer-credit{ width: 100%; }
:root:root:root body .customer-footer .developer-credit-title{ color: rgba(255,255,255,.72); font-size: 12px; font-weight: 400; line-height: 1.3; margin: 0; }   /* tiny understated credit (12px/11px css) */
:root:root:root body .customer-footer .developer-credit-title a{ display: inline; color: rgba(255,255,255,.88); font-weight: 500; text-decoration: underline; }
:root:root:root body .customer-footer .developer-credit-services{ display: block; margin: 0; color: rgba(255,255,255,.6); font-size: 11px; line-height: 1.3; opacity: 1; }
:root:root:root body .customer-footer .footer-bottom .credit{
    width: 100%;
    box-sizing: border-box;
    margin: 5px 0 0;
    padding: 5px 0 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.6);
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
}
:root:root:root body .customer-footer .footer-bottom .credit span{ color: rgba(255,255,255,.88); font-weight: 500; }

/* footer on phones: contact card text stays left-aligned (the theme centres footer text), the card fills the column width, and the band bleeds to the
   screen edges and carries the tab-bar clearance so the dark-blue band runs under the bar. Declared after the desktop footer rules on purpose. */
@media (max-width: 738px){
    :root:root:root body .customer-footer{ padding-bottom: 0; }
    :root:root:root body .gbs-contact-card{ width: 100%; margin: 0 0 18px; text-align: left; }   /* the theme's bare section{width;margin-inline:auto} made it narrower than the columns */
    :root:root:root body .customer-footer .footer-bottom{ margin: 0 -22px; padding: 14px 22px calc(var(--m-tabbar, 56px) + 14px); }
}

/* Mobile footer V3 (phones only; desktop footer untouched). One clean vertical flow: logo + tagline -> Shop -> Support (-> Connect when set) -> contact card
   (one column) -> compact developer credit -> copyright. Sizes below are CSS px; rendered = x0.9 (body zoom). */
@media (max-width: 738px){
    :root:root:root body .customer-footer{ margin-top: 16px; padding-top: 18px; }
    :root:root:root body .customer-footer .footer-grid{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; text-align: left; padding: 0 0 12px; }
    :root:root:root body .customer-footer .footer-grid:has(> :nth-child(4)){ grid-template-columns: minmax(0, 1fr); }
    :root:root:root body .customer-footer .footer-grid > .footer-brand{ text-align: center; margin-bottom: 8px; }
    :root:root:root body .customer-footer .footer-grid > .footer-brand .footer-brand-logo{ max-height: 44px; width: auto; margin-bottom: 4px; }
    :root:root:root body .customer-footer .footer-grid > .footer-brand h3{ margin-bottom: 2px; font-size: 19.5px; }   /* shop name ~17.5px rendered */
    :root:root:root body .customer-footer .footer-grid > .footer-brand p{ font-size: 13.5px; }   /* tagline ~12px rendered */
    :root:root:root body .customer-footer .footer-grid > .footer-links{ align-items: flex-start; text-align: left; }
    :root:root:root body .customer-footer .footer-grid > .footer-links + .footer-links{ margin-top: 12px; }
    :root:root:root body .customer-footer .footer-grid .footer-links h3{ margin: 0 0 3px; font-size: 15px; }   /* ~13.5px rendered */
    :root:root:root body .customer-footer .footer-links a{ padding: 5px 0; line-height: 1.3; font-size: 14.4px; overflow-wrap: break-word; max-width: 100%; }   /* ~13px rendered text, ~26px tap row */
    :root:root:root body .customer-footer .footer-links p.footer-pickup{ margin: 6px 0 0; font-size: 12px; line-height: 1.4; text-align: left; opacity: .85; }

    :root:root:root body .gbs-contact-card{ margin: 4px 0 12px; padding: 12px 14px 14px; }
    :root:root:root body .gbs-contact-card h2{ margin: 0 0 10px; font-size: 19.5px; }                  /* ~17.5px rendered */
    :root:root:root body .gbs-contact-list{ display: flex; flex-direction: column; flex-wrap: nowrap; gap: 14px; }
    :root:root:root body .gbs-contact-item{ flex: 0 0 auto; min-width: 0; gap: 10px; align-items: center; }
    :root:root:root body .gbs-contact-icon{ flex: 0 0 32px; width: 32px; height: 32px; font-size: 13px; }   /* ~29px rendered */
    :root:root:root body .gbs-contact-text{ gap: 0; }
    :root:root:root body .gbs-contact-label{ font-size: 12.5px; letter-spacing: .06em; }               /* ~11.3px rendered */
    :root:root:root body .gbs-contact-value{ font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }   /* ~13.5px rendered */
    :root:root:root body a.gbs-contact-value{ padding: 15px 0 14px; margin: -15px 0 -14px; }   /* hit area ~44px rendered; layout unchanged; stays inside the 14px list gap */

    :root:root:root body .customer-footer .footer-bottom{ padding: 8px 22px calc(58px + 14px + env(safe-area-inset-bottom, 0px)); }   /* clears the fixed tab bar (58px + safe area) */
    :root:root:root body .customer-footer .developer-credit-title{ font-size: 11px; line-height: 1.3; font-weight: 400; }
    :root:root:root body .customer-footer .developer-credit-title a{ font-weight: 500; }
    :root:root:root body .customer-footer .developer-credit-services{ margin-top: 0; font-size: 10px; line-height: 1.3; }
    :root:root:root body .customer-footer .footer-bottom .credit{ margin-top: 5px; padding-top: 5px; font-size: 10.5px; line-height: 1.3; }
}

/* Gentle typography refinement: only oversized text, ~4% desktop / ~6% phones. Root font size, body zoom, weights, families and the already-small
   text (stock label, footer, contact, developer credit, tab labels) are untouched. */
:root:root:root body .gbs-hero-main h1.gbs-hero-heading{ font-size: 38.4px; }
:root:root:root body.homepage-redesign h2.title{ font-size: 19.2px; }
:root:root:root body .gbs-book-card .gbs-book-title{ font-size: 15px; }
:root:root:root body .gbs-book-price{ font-size: 15.4px; }
:root:root:root body.gbs-shop-page main:not(.gbs-product-shell) h1:not([class], .gbs-blr2-head h1){ font-size: 24px; }
:root:root:root body .gbs-blr2-head h1{ font-size: 25px; }
:root:root:root body #blr-submit{ font-size: 17.3px; }
:root:root:root body label.gbs-cat-filter{ font-size: 15.4px; }
@media (max-width: 738px){
    :root:root:root body .gbs-hero-main h1.gbs-hero-heading{ font-size: 24.4px; }
    :root:root:root body.homepage-redesign h2.title{ font-size: 16.8px; }
    :root:root:root body .gbs-book-card .gbs-book-title{ font-size: 14.7px; }
    :root:root:root body .gbs-book-price{ font-size: 15px; }
    :root:root:root body.gbs-shop-page main:not(.gbs-product-shell) h1:not([class], .gbs-blr2-head h1){ font-size: 19.8px; }
    :root:root:root body .gbs-blr2-head h1{ font-size: 22.6px; }
    :root:root:root body #blr-submit{ font-size: 16.9px; }
    :root:root:root body label.gbs-cat-filter{ font-size: 15px; }
}

/* visible keyboard focus on the recoloured controls */
:root:root:root body .product-cart-add:focus-visible,
:root:root:root body .qty-control.product-cart-quantity-control button:focus-visible,
:root:root:root body .qty-control.product-cart-quantity-control .qty:focus-visible,
:root:root:root body .gbs-search-submit:focus-visible,
:root:root:root body .btn:focus-visible{
    outline: 2px solid var(--gbs-accent-dark);
    outline-offset: 2px;
}



/* ===== Homepage promo carousel (home.php, GALLE_PROMO_CAROUSEL_ENABLED; js/promo-carousel.js) =====
   Replaces the three promo cards in the same spot. Only styles .gbs-promo-carousel, so with the switch OFF none of this matches anything. */
:root body.homepage-redesign .gbs-promo-carousel{
    --pc-navy: #0D2040; --pc-deep: #0A192F; --pc-gold: #E9B949;
    position: relative; box-sizing: border-box; overflow: hidden; isolation: isolate; padding: 0; border: 0;
    width: min(var(--container-width), calc(100% - 40px)); height: 270px;
    margin: var(--gbs-space-xl, 40px) auto 0; border-radius: 18px;
    box-shadow: 0 8px 24px rgba(13, 32, 64, .16); color: #fff; background: var(--pc-navy);
}
:root body.homepage-redesign .gbs-promo-carousel [hidden]{ display: none !important; }
:root body.homepage-redesign .gbs-pc-viewport{ display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; touch-action: pan-y; }
:root body.homepage-redesign .gbs-pc-slide{
    grid-area: 1 / 1; align-self: stretch; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-rows: minmax(0, 1fr); align-items: center; column-gap: 24px;
    box-sizing: border-box; min-width: 0; min-height: 0; padding: 26px 56px 58px;
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
}
:root body.homepage-redesign .gbs-pc-slide.is-active{ opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
:root body.homepage-redesign .gbs-pc-s1{ background: linear-gradient(120deg, #0A192F 0%, #0D2040 45%, #1B3F7A 100%); color: #fff; }
:root body.homepage-redesign .gbs-pc-s2{ background: linear-gradient(120deg, #EAF2FD 0%, #DCEAFB 100%); color: var(--pc-navy); }
:root body.homepage-redesign .gbs-pc-s3{ background: radial-gradient(120% 140% at 85% 20%, #1F4A8E 0%, #0D2040 55%, #0A192F 100%); color: #fff; }
:root body.homepage-redesign .gbs-pc-copy{ min-width: 0; transform: translateX(-10px); transition: transform .45s ease; }
:root body.homepage-redesign .gbs-pc-slide.is-active .gbs-pc-copy{ transform: none; }
:root body.homepage-redesign .gbs-pc-slide h2{
    margin: 0 0 10px; max-width: 560px; font-size: 31px; line-height: 1.14; font-weight: 800; letter-spacing: -.01em; color: inherit;
}
:root body.homepage-redesign .gbs-pc-slide p{ margin: 0 0 18px; max-width: 480px; font-size: 15px; line-height: 1.5; color: inherit; opacity: .88; }
:root body.homepage-redesign .gbs-pc-cta{
    display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 22px; border-radius: 999px; box-sizing: border-box;
    font-size: 15px; font-weight: 700; text-decoration: none; background: #fff; color: var(--pc-navy);
    transition: transform .2s ease, box-shadow .2s ease;
}
:root body.homepage-redesign .gbs-pc-s2 .gbs-pc-cta{ background: var(--pc-navy); color: #fff; }
:root body.homepage-redesign .gbs-pc-cta:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
:root body.homepage-redesign .gbs-pc-cta:focus-visible{ outline: 3px solid var(--pc-gold); outline-offset: 3px; }
:root body.homepage-redesign .gbs-pc-s2 .gbs-pc-cta:focus-visible{ outline-color: #2F6FD0; }
:root body.homepage-redesign .gbs-pc-art{ display: block; justify-self: stretch; align-self: stretch; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: right center; margin-bottom: -24px; }

:root body.homepage-redesign .gbs-pc-controls{
    position: absolute; left: 56px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 4px 10px;
    border-radius: 999px; background: rgba(10, 25, 47, .72); color: #fff; backdrop-filter: blur(4px);
}
:root body.homepage-redesign .gbs-pc-btn{
    display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s ease;
}
:root body.homepage-redesign .gbs-pc-btn:hover{ background: rgba(255, 255, 255, .3); }
:root body.homepage-redesign .gbs-pc-btn:focus-visible,
:root body.homepage-redesign .gbs-pc-dot:focus-visible{ outline: 2px solid var(--pc-gold); outline-offset: 2px; }
:root body.homepage-redesign .gbs-pc-dots{ display: flex; align-items: center; gap: 2px; }
:root body.homepage-redesign .gbs-pc-dot{
    position: relative; width: 22px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff;
}
:root body.homepage-redesign .gbs-pc-dot::before{
    content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .45); transition: width .25s ease, background .25s ease, border-radius .25s ease;
}
:root body.homepage-redesign .gbs-pc-dot.is-active::before{ width: 20px; border-radius: 4px; background: var(--pc-gold); }
:root body.homepage-redesign .gbs-pc-count{ font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: .04em; opacity: .9; padding: 0 2px; }
:root body.homepage-redesign .gbs-pc-count b{ font-weight: 800; }
:root body.homepage-redesign .gbs-pc-toggle .gbs-pc-i-play{ display: none; }
:root body.homepage-redesign .gbs-pc-toggle[aria-pressed="true"] .gbs-pc-i-play{ display: block; }
:root body.homepage-redesign .gbs-pc-toggle[aria-pressed="true"] .gbs-pc-i-pause{ display: none; }
:root body.homepage-redesign .gbs-pc-progress{ position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2; background: rgba(13, 32, 64, .28); }
:root body.homepage-redesign .gbs-pc-progress i{ display: block; height: 100%; background: var(--pc-gold); transform-origin: 0 50%; transform: scaleX(0); }
:root body.homepage-redesign .gbs-pc-live{ position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 739px) and (max-width: 1000px){
    :root body.homepage-redesign .gbs-pc-slide{ padding: 22px 40px 60px; }
    :root body.homepage-redesign .gbs-pc-slide h2{ margin-bottom: 8px; font-size: 26px; }
    :root body.homepage-redesign .gbs-pc-slide p{ margin-bottom: 14px; font-size: 14px; }
    :root body.homepage-redesign .gbs-pc-controls{ left: 40px; }
}
@media (max-width: 738px){
    :root body.homepage-redesign .gbs-promo-carousel{ width: auto; height: 410px; margin: 0 var(--m-gutter, 12px); border-radius: 14px; }
    :root body.homepage-redesign .gbs-pc-slide{ grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); row-gap: 8px; align-items: start; padding: 20px 18px 58px; }
    :root body.homepage-redesign .gbs-pc-slide h2{ margin-bottom: 8px; font-size: 24px; }
    :root body.homepage-redesign .gbs-pc-slide p{ margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
    :root body.homepage-redesign .gbs-pc-cta{ min-height: 42px; padding: 0 20px; font-size: 14.5px; }
    :root body.homepage-redesign .gbs-pc-art{ justify-self: stretch; align-self: stretch; object-position: center bottom; margin-bottom: 0; }
    :root body.homepage-redesign .gbs-pc-controls{ left: 50%; transform: translateX(-50%); gap: 4px; padding: 3px 8px; white-space: nowrap; }
    :root body.homepage-redesign .gbs-pc-count{ font-size: 12px; }
}
@media (prefers-reduced-motion: reduce){
    :root body.homepage-redesign .gbs-pc-slide,
    :root body.homepage-redesign .gbs-pc-slide.is-active,
    :root body.homepage-redesign .gbs-pc-copy,
    :root body.homepage-redesign .gbs-pc-dot::before,
    :root body.homepage-redesign .gbs-pc-cta{ transition: none; }
}


/* hero benefit row (Genuine Stock / Wide Catalogue / Customer Support) removed from every carousel slide at all widths; the legacy static hero keeps it */
:root body.homepage-redesign .gbs-hero-carousel .gbs-hero-trust{ display: none; }

/* ===== Homepage hero carousel (home.php, GALLE_PROMO_CAROUSEL_ENABLED; js/promo-carousel.js) =====
   Every slide is the ORIGINAL hero markup (.gbs-hero-main: photo + white fade mask + text), stacked in one grid cell and cross-faded as a unit,
   so the photograph, headline, description and buttons always change together. All sizing, fade, radius and spacing come from the theme's
   existing hero rules; only stacking, the fade and the controls are added here. */
:root body.homepage-redesign .gbs-hero-carousel .gbs-hero-composition{ display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-hc-slide{
    grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
}
:root body.homepage-redesign .gbs-hero-carousel .gbs-hc-slide.is-active{ opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
:root body.homepage-redesign .gbs-hero-carousel [hidden]{ display: none !important; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-hc-viewport{ touch-action: pan-y; }
/* restrained light controls, bottom-right over the photo (clear of the headline and buttons on the left) */
:root body.homepage-redesign .gbs-hero-carousel .gbs-hc-controls{
    left: auto; right: 20px; bottom: 14px; z-index: 12; gap: 6px; padding: 3px 8px; transform: none;
    background: rgba(255, 255, 255, .6); color: #0D2040; border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 1px 8px rgba(13, 32, 64, .14);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-btn{ background: rgba(13, 32, 64, .06); color: #0D2040; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-btn:hover{ background: rgba(13, 32, 64, .14); }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-btn:focus-visible,
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-dot:focus-visible{ outline: 2px solid #0D2040; outline-offset: 2px; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-dot::before{ width: 5px; height: 5px; background: rgba(13, 32, 64, .3); }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-dot.is-active::before{ width: 12px; background: #0D2040; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-count{ color: #0D2040; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-progress{ z-index: 12; height: 3px; background: rgba(13, 32, 64, .08); }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-live{ position: absolute; }
@media (max-width: 940px){
    /* tablets and phones: the hero flows as a column (text, image, trust row), so the controls get their own row beneath it instead of covering the photo */
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-composition{ grid-template-rows: auto auto; row-gap: 0; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hc-controls{
        position: static; grid-area: 2 / 1; justify-self: center; margin: 4px 0 6px; background: rgba(13, 32, 64, .06); box-shadow: none; backdrop-filter: none;
    }
}
@media (prefers-reduced-motion: reduce){
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hc-slide,
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hc-slide.is-active{ transition: none; }
}


/* ===== Hero carousel refinement: round controls + phone layout (scoped to .gbs-hero-carousel; previous rules above are unchanged) ===== */
/* the theme gives every <button> a 44px min-height, which turned the 30px-wide circles into 27x39.6 ovals: pin both sides, no padding, centred icon */
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-btn{
    box-sizing: border-box; flex: 0 0 auto; position: relative; display: grid; place-items: center;
    width: 30px; height: 30px; min-width: 0; min-height: 0; padding: 0; margin: 0; border-radius: 50%; line-height: 0; aspect-ratio: 1 / 1;
}
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-btn svg{ display: block; flex: none; width: 13px; height: 13px; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-toggle .gbs-pc-i-play{ display: none; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-toggle[aria-pressed="true"] .gbs-pc-i-play{ display: block; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-toggle[aria-pressed="true"] .gbs-pc-i-pause{ display: none; }
/* hit areas ~44px on touch without growing the visible circles */
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-btn::after{ content: ""; position: absolute; inset: -7px; border-radius: 50%; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-dot::after{ content: ""; position: absolute; inset: -6px 0; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-hc-controls{ box-sizing: border-box; align-items: center; gap: 8px; padding: 3px 9px; }
:root body.homepage-redesign .gbs-hero-carousel .gbs-pc-dot{ width: 15px; height: 30px; min-height: 0; }

@media (max-width: 940px){
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hc-controls{ margin: 6px 0 8px; }
}
@media (max-width: 738px){
    /* compact phone layout: heading, text, buttons side by side, photo that fades up into the text, benefits, centred controls */
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-main{ padding: 14px 0 0; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-main .content > .hero-actions{ flex-direction: row; flex-wrap: wrap; gap: 8px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-main .hero-actions .btn,
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-main .hero-actions .option-btn{ flex: 1 1 0; min-width: 0; width: auto; padding-left: 10px; padding-right: 10px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-main .hero-actions .btn:only-child{ flex-basis: 100%; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-visual{ margin-top: 12px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-visual img{ height: 176px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-mask{
        display: block; background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, .72) 14%, rgba(255, 255, 255, 0) 48%);
    }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-main .content > .gbs-hero-trust{ margin-top: 10px; padding-bottom: 2px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hc-controls{ gap: 6px; padding: 3px 10px; margin: 6px 0 8px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-pc-btn{ width: 28px; height: 28px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-pc-toggle{ margin-left: 6px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-pc-dot{ width: 13px; height: 28px; }
}


/* ===== Phone hero: carousel controls float over the photo's bottom-right corner (<=738px only; tablet/desktop untouched) =====
   The controls are a sibling of the slides, not of each photo, so the pill is pinned to the composition's bottom edge at a fixed distance:
   the photo is the last element of every slide (the benefit row is gone), so its bottom edge sits a fixed tail above the composition bottom, and the photo flexes to absorb any spare height of shorter
   slides, so the photo's bottom/right edges always sit the same distance from the composition's. */
@media (max-width: 738px){
    :root body.homepage-redesign .gbs-hero-carousel{ --hc-tail: 4px; --hc-inset: 12px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-composition{ grid-template-rows: auto; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-main{ padding-bottom: var(--hc-tail); }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-visual{ flex: 1 1 176px; min-height: 176px; height: auto; margin-bottom: 0; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-hero-visual img{ position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
        :root body.homepage-redesign .gbs-hero-carousel .gbs-hc-controls{
        position: absolute; grid-area: auto; justify-self: auto; left: auto; transform: none; margin: 0; z-index: 12;
        right: var(--hc-inset); bottom: calc(var(--hc-tail) + var(--hc-inset));
        gap: 8px; padding: 3px 7px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 8px rgba(13, 32, 64, .14);
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-pc-count,
    :root body.homepage-redesign .gbs-hero-carousel .gbs-pc-progress{ display: none; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-pc-dot{ width: 13px; }
    :root body.homepage-redesign .gbs-hero-carousel .gbs-pc-dot::after{ inset: -6px 0; }
}


/* ===== Product card OFFER badge (catalogue_components.php, shown when item.is_offer = 1; a label only - no price logic) ===== */
:root body .gbs-book-card .gbs-book-cover .gbs-offer-badge{
    position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; box-sizing: border-box;
    padding: 4px 8px 4px 6px; border-radius: 6px; background: #0D2040; color: #fff; pointer-events: none;
    font-size: 10.5px; font-weight: 800; letter-spacing: .07em; line-height: 1; text-transform: uppercase; box-shadow: 0 2px 6px rgba(13, 32, 64, .25);
}
:root body .gbs-book-card .gbs-book-cover .gbs-offer-badge svg{ display: block; flex: none; }
@media (max-width: 738px){
    :root body .gbs-book-card .gbs-book-cover .gbs-offer-badge{ top: 6px; left: 6px; padding: 3px 6px 3px 5px; font-size: 9.5px; }
}
