/* STL shop, in step with the staff pages (Zee 2026-11-11: "make sure everything is congruent").
   Loaded after the shop's own stylesheets only when brand.shop_align (STL); the partner shop never
   gets it. Visual only. Day mode (html[data-theme="light"], the shop's switch) keeps working:
   the dark-only rules below say so. Counterpart: static/css/admin_glass.css. */

/* 1. One font everywhere: Outfit (static/css/fonts.css, our own server) */
body { font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif; }
:is(button, input, select, textarea) { font-family: inherit; }

/* 2. One glass colour: the staff pages' cool green-black instead of the warm brown tint
   (night mode; day mode keeps glass_core.css's white glass) */
html:not([data-theme="light"]) :is(.gs, .glass-surface, .cb-panel, .product-card, .modal-bg .modal, #attachModal > div) {
    --gs-tint: rgba(18, 24, 20, .55);
    --gs-ringc: rgb(14, 19, 15);
}
html:not([data-theme="light"]) .gs-tip { background: rgba(14, 20, 16, .72); }
html:not([data-theme="light"]) .gs-menu { background: rgba(14, 20, 16, .6); }

/* 3. Selected menu item: the neon-green pill (as on the staff pages and the shop's own tabs) */
html .gs-row[aria-current="page"], html .gs-subrow[aria-current="page"] {
    background: linear-gradient(180deg, #7dff5c, #39FF14); border-color: transparent; color: #041402;
    box-shadow: 0 0 22px rgba(57, 255, 20, .32), inset 0 1px 0 rgba(255, 255, 255, .45);
}
html[data-theme="light"] .gs-row[aria-current="page"], html[data-theme="light"] .gs-subrow[aria-current="page"] {
    background: linear-gradient(180deg, #22c40a, #0f9b00); color: #041402;
    box-shadow: 0 6px 18px -6px rgba(15, 155, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}
html .gs-row[aria-current="page"] .gs-count { background: rgba(4, 20, 2, .18); color: inherit; }

/* 4. Corners: tiles 20, buttons pill-shaped (same as the staff pages) */
html .product-card { border-radius: 20px; }
html .trust-item.glass-surface { border-radius: 20px; }
:is(.btn-cart, .btn-primary, .btn-checkout, .btn-whatsapp, .btn-share-wa, .btn-ask-wa) { border-radius: 999px; }

/* 6. Background: a fainter version of the staff pages' green glow, behind the product grid
   (the hero photo covers it at the top). Fixed and drawn once: no cost while scrolling. */
body::before {
    content: ""; position: fixed; inset: -40px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(40% 46% at 10% 30%, rgba(57, 255, 20, .10), transparent 70%),
        radial-gradient(36% 40% at 92% 55%, rgba(24, 190, 96, .08), transparent 72%),
        radial-gradient(48% 38% at 55% 100%, rgba(57, 255, 20, .07), transparent 70%);
}
html[data-theme="light"] body::before {
    background:
        radial-gradient(40% 46% at 10% 30%, rgba(15, 155, 0, .07), transparent 70%),
        radial-gradient(48% 38% at 55% 100%, rgba(15, 155, 0, .05), transparent 70%);
}

/* 7. One action colour: the brand green on every primary action (Add to Cart, Browse Devices,
   checkout, primary). Website review 2026-11-15. Sale prices and the SALE ribbon stay red: they
   are labels, not actions. Dark text on green passes contrast in both themes (white would not). */
:is(.btn-cart, .btn-primary, .btn-checkout):not(.in-cart) { background: var(--green); color: #041402; }
:is(.btn-cart, .btn-primary, .btn-checkout):not(.in-cart):hover { background: var(--green-dim); color: #041402; }
html[data-theme="light"] :is(.btn-cart, .btn-primary, .btn-checkout):not(.in-cart):hover { background: #13ad00; }

/* 8. Contrast to WCAG AA (4.5:1) on the footer's small grey text and the category counts.
   The footer is black in both themes (shop_light.css), so one colour serves both. */
.site-footer :is(.footer-heading, .footer-copy, .footer-legal), .site-footer .footer-bottom { color: #9a9a9a; }
.cat-tab:not(.active) .cat-tab-count { color: var(--text); }
.cat-tab.active .cat-tab-count { background: rgba(255, 255, 255, .3); }

/* 9. Pages without product tiles (About, cart, checkout, privacy): the sidebar opens over the page
   instead of pushing tiles aside (glass_sidebar.js only moves tiles), so it covered "Who We Are".
   Reserve the open panel's width while it is open. Desktop only; the phone drawer is unchanged. */
@media (min-width: 820px) {
    body:has(.gs.is-open) .page-main:not(:has(.product-grid, .catalog-main, .product-detail-layout)) {
        /* panel right edge (20 + 288) + 14 gap, minus the body's 112px offset and the page's centring margin */
        padding-left: max(20px, calc(210px - max(0px, (100vw - 1392px) / 2)));
    }
}
