/* v-core.css — Global base + Header / Footer / Nav / Auth / Toast / Side Cart / Coupon / Newsletter */

/* ==========================================================================
   FONTS + BODY BASE
   ========================================================================== */

/* 1. Font Declarations */
@font-face {
    font-family: "Inter";
    src: url("./../fonts/inter/inter-300.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./../fonts/inter/inter-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./../fonts/inter/inter-500.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./../fonts/inter/inter-600.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("./../fonts/inter/inter-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* 2. CSS Variables & Body */
:root {
    /* Text colors */
    --gl-text-body: #262626;
    --gl-text-primary: var(--gl-text-body);
    --gl-text-secondary: #525252;
    --gl-text-tertiary: #737373;
    --gl-text-muted: #999999;
    --gl-text-inverse: #ffffff;
    --gl-color-accent: #5a8219; /* Logo 绿：交互强调 / CTA / 链接 */
    --gl-color-accent-soft: #758d71; /* 莫兰迪绿：可选辅色，不替代 accent */

    /*
     * 暖咖轴（莫兰迪咖 #c8b7a6）
     * — mid：色块 / 占位；surface：大面积浅底（顶栏、氛围段）
     * — 大面积只用 surface，避免整页铺满 mid
     */
    --gl-color-warm: #c8b7a6;
    --gl-surface-warm: #f8f4f3;
    --gl-surface-warm-border: #e8e0dc;
    /* Footer — neutral utility surface (not warm cream) */
    --gl-surface-footer: #f5f5f5;
    --gl-surface-footer-border: #e5e5e7;

    --gl-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Radius — badges/avatars stay 50%; paired input+submit share field radius */
    --gl-radius-button: 4px;
    --gl-radius-field: 8px;
    --gl-radius-surface: 8px;
    /* 50% 在非正方角标上会变成扁椭圆（如侧车「32」）；用满圆胶囊 */
    --gl-radius-badge: 999px;

    /* Type scale */
    --gl-text-xs: 12px;
    --gl-text-sm: 13px;
    --gl-text-base: 14px;
    --gl-text-md: 15px;
    --gl-text-lg: 16px;
    --gl-text-xl: 18px;
    --gl-text-2xl: 22px;
    --gl-text-3xl: 26px;

    /* Line height */
    --gl-leading-tight: 1.25;
    --gl-leading-compact: 1.4;
    --gl-leading-normal: 1.6;
    --gl-leading-relaxed: 1.7;

    /* Mobile shell — .gl-main-bar row: 5px padding + 44px touch + 5px padding */
    --gl-mobile-touch: 44px;
    --gl-mobile-bar-height: 54px;

    /* Legacy aliases */
    --brand-dark-gray: var(--gl-text-body);
    --brand-light-gray: #545454;
    --brand-bg-gray: #f5f5f5;
}

body {
    font-family: var(--gl-font-sans);
    color: var(--gl-text-body);
    font-size: var(--gl-text-base);
    line-height: var(--gl-leading-normal);
    -webkit-font-smoothing: antialiased;
}

/* Remove default focus outline on mouse click (global),
   keep :focus-visible for keyboard navigation (a11y) */
a:focus,
button:focus {
    outline: none;
    box-shadow: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #5a8219;
    outline-offset: 2px;
}

/* 3. Global Typography & Link Reset */
h1 {
    font-family: var(--gl-font-sans);
    font-weight: 700;
    letter-spacing: 0.01rem;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: var(--gl-font-sans);
    font-weight: 400;
}

a {
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

/* Body base — replaces Tailwind on <body> */
.gl-body {
    width: 100%;
    height: 100%;
    position: relative;
    font-weight: 400;
    overflow-x: hidden;
}


/* Utilities */
.hidden { display: none; }

.gl-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Scrollbar hide — keep scroll, hide bar (aliases: .no-scrollbar = .scrollbar-hide) */
.no-scrollbar,
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar,
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Spacing utilities — gl-pt / gl-pb / gl-mt / gl-mb (px scale; gl- avoids Tailwind CDN collision)
   Scale: 80 60 40 30 20 10
   Responsive: .gl-pt-60-40 = PC 60px / mobile 40px; .gl-pt-40-30 = PC 40px / mobile 30px;
   .gl-pt-30-20 = PC 30px / mobile 20px (768px+)
   Use on page-level sections in HTML; do not set vertical margin/padding on sections in component CSS.
   -------------------------------------------------------------------------- */

.gl-pt-80 { padding-top: 80px; }
.gl-pt-60 { padding-top: 60px; }
.gl-pt-40 { padding-top: 40px; }
.gl-pt-30 { padding-top: 30px; }
.gl-pt-20 { padding-top: 20px; }
.gl-pt-10 { padding-top: 10px; }

.gl-pb-80 { padding-bottom: 80px; }
.gl-pb-60 { padding-bottom: 60px; }
.gl-pb-40 { padding-bottom: 40px; }
.gl-pb-30 { padding-bottom: 30px; }
.gl-pb-20 { padding-bottom: 20px; }
.gl-pb-10 { padding-bottom: 10px; }

.gl-mt-80 { margin-top: 80px; }
.gl-mt-60 { margin-top: 60px; }
.gl-mt-40 { margin-top: 40px; }
.gl-mt-30 { margin-top: 30px; }
.gl-mt-20 { margin-top: 20px; }
.gl-mt-10 { margin-top: 10px; }

.gl-mb-80 { margin-bottom: 80px; }
.gl-mb-60 { margin-bottom: 60px; }
.gl-mb-40 { margin-bottom: 40px; }
.gl-mb-30 { margin-bottom: 30px; }
.gl-mb-20 { margin-bottom: 20px; }
.gl-mb-10 { margin-bottom: 10px; }

.gl-pt-60-40 { padding-top: 40px; }
.gl-pt-40-30 { padding-top: 30px; }
.gl-pt-30-20 { padding-top: 20px; }
.gl-pb-60-40 { padding-bottom: 40px; }
.gl-pb-40-30 { padding-bottom: 30px; }
.gl-pb-30-20 { padding-bottom: 20px; }
.gl-mt-60-40 { margin-top: 40px; }
.gl-mt-40-30 { margin-top: 30px; }
.gl-mt-30-20 { margin-top: 20px; }
.gl-mb-60-40 { margin-bottom: 40px; }
.gl-mb-40-30 { margin-bottom: 30px; }
.gl-mb-30-20 { margin-bottom: 20px; }

@media (min-width: 768px) {
    .gl-pt-60-40 { padding-top: 60px; }
    .gl-pt-40-30 { padding-top: 40px; }
    .gl-pt-30-20 { padding-top: 30px; }
    .gl-pb-60-40 { padding-bottom: 60px; }
    .gl-pb-40-30 { padding-bottom: 40px; }
    .gl-pb-30-20 { padding-bottom: 30px; }
    .gl-mt-60-40 { margin-top: 60px; }
    .gl-mt-40-30 { margin-top: 40px; }
    .gl-mt-30-20 { margin-top: 30px; }
    .gl-mb-60-40 { margin-bottom: 60px; }
    .gl-mb-40-30 { margin-bottom: 40px; }
    .gl-mb-30-20 { margin-bottom: 30px; }
}

/* Typography & text color utilities (HTML one-offs; component CSS prefers var(--gl-*)) */
.gl-text-xs { font-size: var(--gl-text-xs); }
.gl-text-sm { font-size: var(--gl-text-sm); }
.gl-text-base { font-size: var(--gl-text-base); }
.gl-text-md { font-size: var(--gl-text-md); }
.gl-text-lg { font-size: var(--gl-text-lg); }
.gl-text-xl { font-size: var(--gl-text-xl); }
.gl-text-2xl { font-size: var(--gl-text-2xl); }
.gl-text-3xl { font-size: var(--gl-text-3xl); }

.gl-text-primary { color: var(--gl-text-primary); }
.gl-text-secondary { color: var(--gl-text-secondary); }
.gl-text-tertiary { color: var(--gl-text-tertiary); }
.gl-text-body { color: var(--gl-text-body); }
.gl-text-muted { color: var(--gl-text-muted); }
.gl-text-accent { color: var(--gl-color-accent); }

.gl-leading-normal { line-height: var(--gl-leading-normal); }
.gl-leading-relaxed { line-height: var(--gl-leading-relaxed); }

/* gicons fi-rr-* — layout, inherit color, Tailwind group-hover bridge */
i[class^="fi-rr-"],
i[class*=" fi-rr-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

a i[class^="fi-rr-"],
a i[class*=" fi-rr-"],
button i[class^="fi-rr-"],
button i[class*=" fi-rr-"] {
    color: inherit;
    transition: color 0.2s ease;
}

.group:hover .group-hover\:text-\[\#262626\] i[class^="fi-rr-"],
.group:hover .group-hover\:text-\[\#262626\] i[class*=" fi-rr-"] {
    color: var(--gl-text-primary);
}

.group:hover .group-hover\:text-\[\#5a8219\] i[class^="fi-rr-"],
.group:hover .group-hover\:text-\[\#5a8219\] i[class*=" fi-rr-"] {
    color: var(--gl-color-accent);
}

.group:hover .group-hover\:text-\[\#fff\] i[class^="fi-rr-"],
.group:hover .group-hover\:text-\[\#fff\] i[class*=" fi-rr-"] {
    color: var(--gl-text-inverse);
}

/* Containers — header / footer / breadcrumb / shop (width: pair .gl-container + .gl-shop-layout) */
.gl-container,
.gl-page-container,
.gi-breadcrumb-container,
.storefront-breadcrumb .col-full {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .gl-container,
    .gl-page-container,
    .gi-breadcrumb-container,
    .storefront-breadcrumb .col-full {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .gl-container,
    .gl-page-container,
    .gi-breadcrumb-container,
    .storefront-breadcrumb .col-full {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .gl-container,
    .gl-page-container,
    .gi-breadcrumb-container,
    .storefront-breadcrumb .col-full {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .gl-container,
    .gl-page-container,
    .gi-breadcrumb-container,
    .storefront-breadcrumb .col-full {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .gl-container,
    .gl-page-container,
    .gi-breadcrumb-container,
    .storefront-breadcrumb .col-full {
        max-width: 1320px;
    }
}

@media (min-width: 1488px) {
    .gl-container,
    .gl-page-container,
    .gi-breadcrumb-container,
    .storefront-breadcrumb .col-full {
        max-width: 1488px;
    }
}

@media (max-width: 991px) {
    .gl-container,
    .gl-page-container,
    .gl-header .gl-container,
    .sub-page-nav .gl-container,
    .gi-breadcrumb-container,
    .storefront-breadcrumb .col-full,
    .gi-footer-main-container {
        max-width: none;
    }
}

/* Full-width container — no max-width at any breakpoint (12px gutter unchanged) */
.gl-container-full {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

/*
 * Full-bleed modifier — strip breakpoint max-width, keep 12px side padding.
 *   <div class="gl-container gl-container--full">
 *   <div class="gl-page-container gl-page-container--full">
 */
.gl-container--full,
.gl-page-container--full {
    max-width: none;
}

/* ============================================================
   GL ROW / COL — 12px gutter grid (legacy mx-[-12px] + px-[12px])
   Use ONLY as a direct child of .gl-container or .gl-page-container.
   Row negates container padding → columns align to content edges;
   col padding 12px → 24px gutter between columns.
   ============================================================ */

.gl-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.gl-row--stretch {
    align-items: stretch;
}

.gl-row--center {
    align-items: center;
}

.gl-row--nowrap {
    flex-wrap: nowrap;
}

/* Negative margin only (carousels / strip wrappers — no flex row) */
.gl-bleed-x {
    margin-left: -12px;
    margin-right: -12px;
}

.gl-col {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

.gl-col-auto {
    flex: 1 1 0;
    width: auto;
}

@media (min-width: 992px) {
    .gl-col-md-6 {
        width: 50%;
    }

    .gl-col-md-4 {
        width: 33.333333%;
    }

    .gl-col-md-8 {
        width: 66.666667%;
    }

    .gl-col-md-3 {
        width: 25%;
    }
}

@media (min-width: 1200px) {
    .gl-col-lg-7 {
        width: 58.333333%;
    }

    .gl-col-lg-5 {
        width: 41.666667%;
    }

    /* Home deals–style 60 / 40 split */
    .gl-col-lg-60 {
        width: 60%;
    }

    .gl-col-lg-40 {
        width: 40%;
    }
}

/* 7. Responsive Helpers */
.gl-desktop-only {
    display: none
}

.gl-mobile-only {
    display: block
}

@media (min-width: 992px) {
    .gl-desktop-only {
        display: block;
    }

    .gl-mobile-only {
        display: none !important;
    }
}

/* ==========================================================================
   SITE ALERT — urgent / operational notice under header
   Plain text + optional link. Variants: --neutral | --urgent
   ========================================================================== */

.gl-site-alert {
    width: 100%;
    margin: 0;
    border: 0;
}

.gl-site-alert__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
}

.gl-site-alert__body {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.gl-site-alert__label {
    display: inline-block;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    line-height: 1.35;
}

.gl-site-alert__text {
    font-weight: 500;
}

.gl-site-alert__link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    white-space: nowrap;
}

.gl-site-alert__link:hover {
    opacity: 0.8;
}

/* Neutral — calm operational update */
.gl-site-alert--neutral {
    background: #f5f5f5;
    color: #303030;
}

.gl-site-alert--neutral .gl-site-alert__label {
    background: #e5e5e7;
    color: #404040;
}

.gl-site-alert--neutral .gl-site-alert__link {
    color: #262626;
}

/* Urgent — high-visibility service / safety notice */
.gl-site-alert--urgent {
    background: #fff8e8;
    color: #303030;
}

.gl-site-alert--urgent .gl-site-alert__label {
    background: #ffdb00;
    color: #111111;
}

.gl-site-alert--urgent .gl-site-alert__link {
    color: #111111;
}

/* ==========================================================================
   SUB-PAGE NAV + BREADCRUMB
   ========================================================================== */

/* 9. Sub-Page Navigation */

.sub-page-nav ul::-webkit-scrollbar {
    display: none;
}

.sub-page-nav ul {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sub-Page Navigation Link Styles */
.sub-page-nav-link {
    display: inline-block;
    padding: 16px 0;
    font-size: var(--gl-text-base);
    font-weight: 500;
    color: #7a7a7a;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.sub-page-nav-link:hover {
    color: var(--gl-text-primary);
    border-bottom-color: var(--gl-text-primary);
}

/* Active state for current page */
.sub-page-nav-link.active {
    color: var(--gl-text-primary);
    border-bottom-color: var(--gl-text-primary);
}

/* Sub-Page Navigation — Mobile Dropdown Mode */

/* Dropdown trigger button — hidden on PC */
.sub-page-nav-trigger {
    display: none;
}

@media only screen and (max-width: 991px) {

    /* Show dropdown trigger */
    .sub-page-nav-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
        font-size: var(--gl-text-base);
        font-weight: 600;
        color: var(--gl-text-primary);
        background: none;
        border: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .sub-page-nav-trigger i {
        font-size: var(--gl-text-xl);
        color: var(--gl-text-muted);
        transition: transform 0.25s ease;
    }

    .sub-page-nav.mobile-open .sub-page-nav-trigger i {
        transform: rotate(180deg);
    }

    /* Hide horizontal list, convert to vertical dropdown */
    .sub-page-nav ul {
        display: none !important;
        flex-direction: column !important;
        gap: 0 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 0 8px 0 !important;
        transform: none !important;
        border-top: 1px solid #f5f5f5;
    }

    .sub-page-nav.mobile-open ul {
        display: flex !important;
    }

    /* Reset last-child padding */
    .sub-page-nav ul li {
        padding-right: 0 !important;
    }

    /* Dropdown link overrides */
    .sub-page-nav ul .sub-page-nav-link {
        display: block;
        padding: 10px 0;
        border-bottom: none;
    }

    .sub-page-nav ul .sub-page-nav-link:hover {
        color: var(--gl-text-primary);
        border-bottom: none;
    }

    .sub-page-nav ul .sub-page-nav-link.active {
        color: var(--gl-color-accent);
        font-weight: 600;
        border-bottom: none;
    }

    /* Hide gradient overlay — no longer needed */
    .sub-page-nav::after {
        display: none !important;
    }
}

/* 16. Sub-Page Nav — Tailwind-free overrides */

.sub-page-nav {
    background-color: var(--gl-text-inverse);
}

.sub-page-nav>.gl-container {
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 992px) {
    .sub-page-nav ul {
        border-bottom: 1px solid #f5f5f5;
    }
}

@media (max-width: 991px) {
    .sub-page-nav {
        border-bottom: 1px solid #f5f5f5;
    }
}

.sub-page-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    overflow-x: auto;
    transform: translateY(1px);
}

.sub-page-nav li {
    flex-shrink: 0;
}

.sub-page-nav li:last-child {
    padding-right: 0;
}

@media (max-width: 991px) {
    .sub-page-nav ul {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .sub-page-nav li:last-child {
        padding-right: 12px;
    }
}

/* 15. Breadcrumb */

.gi-breadcrumb-list li.active {
    color: var(--gl-text-secondary);
}

.gi-breadcrumb-list li {
    display: flex;
}

.gi-breadcrumb-list li+li {
    padding-left: 0;
}

/* Force clear any existing separators */
.gi-breadcrumb-list li::before,
.gi-breadcrumb-list li::after {
    content: none !important;
}

/* "/" separator — match Yoast (components.css / immunity storefront gap) */
.gi-breadcrumb-list li+li::before {
    content: "/" !important;
    font-size: 10px;
    color: var(--gl-text-muted);
    margin: 0 7px;
}

/* 17. Breadcrumb — Tailwind-free overrides
   Global shell: .gi-breadcrumb
   Placement options:
   - After header / sub-nav (list pages, template.html)
   - Before footer (PDP / long pages — preferred for detail4+)
   Markup:
   <nav class="gi-breadcrumb" aria-label="Breadcrumb">
     <div class="gl-container">  <!-- or .gi-breadcrumb-container -->
       <ul class="gi-breadcrumb-list">
         <li><a href="…">Home</a></li>
         <li><a href="…">…</a></li>
         <li class="active" aria-current="page">Current</li>
       </ul>
     </div>
   </nav>
*/

.gi-breadcrumb {
    background-color: var(--gl-text-inverse);
}

/* Width/padding: .gi-breadcrumb-container / .storefront-breadcrumb .col-full = .gl-container */

.gi-breadcrumb-row {
    width: 100%;
}

.gi-breadcrumb-list {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    display: flex;
    align-items: center;
    list-style: none;
    width: 100%;
}

.gi-breadcrumb-list li a,
.gi-breadcrumb-list li.active {
    color: var(--gl-text-secondary);
    font-size: var(--gl-text-xs);
    letter-spacing: 0.01em;
}

.gi-breadcrumb-list li a {
    transition: color 0.2s ease;
    white-space: nowrap;
}

.gi-breadcrumb-list li a:hover {
    color: var(--gl-text-primary);
}

.gi-breadcrumb-list li.active {
    font-weight: 400;
    min-width: 0;
}

/* Mobile: full-width bar, single-line trail, ellipsis on last item */
@media (max-width: 991px) {

    .gi-breadcrumb,
    .storefront-breadcrumb {
        width: 100%;
    }

    .gi-breadcrumb .gl-container,
    .gi-breadcrumb-container,
    .storefront-breadcrumb .col-full {
        width: 100%;
        max-width: none;
    }

    .storefront-breadcrumb .woo-breadcrumbs,
    .storefront-breadcrumb .breadcrumb,
    .storefront-breadcrumb .breadcrumbs,
    .storefront-breadcrumb .breadcrumb-trail {
        width: 100%;
    }

    .gi-breadcrumb-list {
        flex-wrap: nowrap;
        overflow: hidden;
        width: 100%;
    }

    .gi-breadcrumb-list li:not(.active) {
        flex-shrink: 0;
    }

    .gi-breadcrumb-list li.active {
        display: block;
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }

    .storefront-breadcrumb .breadcrumb-trail>span {
        flex-wrap: nowrap;
        overflow: hidden;
        width: 100%;
    }

    .storefront-breadcrumb .breadcrumb-trail>span>span:not(.breadcrumb_last) {
        flex-shrink: 0;
    }

    .storefront-breadcrumb .breadcrumb_last {
        display: block;
        flex: 1 1 auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
}

/* Desktop: long product titles may wrap (match Yoast / immunity .breadcrumb_last) */
@media (min-width: 992px) {
    .gi-breadcrumb-list {
        flex-wrap: wrap;
    }

    .gi-breadcrumb-list li.active {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
}

/* 15b. storefront-breadcrumb — legacy WC/Yoast trail (class retained from old child theme; lite is not SF) */
.storefront-breadcrumb {
    background-color: var(--gl-text-inverse);
    padding: 0;
    margin: 0;
}

.storefront-breadcrumb .woo-breadcrumbs,
.storefront-breadcrumb .breadcrumb,
.storefront-breadcrumb .breadcrumbs {
    margin: 0;
    padding: 0;
}

.storefront-breadcrumb .breadcrumb-trail {
    padding-top: 12px;
    padding-bottom: 12px;
    margin: 0;
    font-family: var(--gl-font-sans);
    font-size: var(--gl-text-xs);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.storefront-breadcrumb .breadcrumb-trail>span {
    display: flex;
    align-items: center;
    color: var(--gl-text-muted);
    font-size: 10px;
    gap: 7px;
}

.storefront-breadcrumb .breadcrumb-trail>span>span:not(.breadcrumb_last) {
    display: flex;
    align-items: center;
    font-size: var(--gl-text-xs);
}

.storefront-breadcrumb .breadcrumb-trail .breadcrumb_last {
    font-size: var(--gl-text-xs);
}

.storefront-breadcrumb .breadcrumb-trail a {
    color: var(--gl-text-secondary);
    font-size: var(--gl-text-xs);
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.storefront-breadcrumb .breadcrumb-trail a:hover {
    color: var(--gl-text-primary);
}

.storefront-breadcrumb .breadcrumb-trail .breadcrumb_last {
    color: var(--gl-text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
    min-width: 0;
}

@media (min-width: 992px) {
    .storefront-breadcrumb .breadcrumb-trail>span {
        flex-wrap: wrap;
    }

    .storefront-breadcrumb .breadcrumb_last {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }
}

/* WC native fallback — when Yoast breadcrumbs disabled or bridge not active */
.storefront-breadcrumb .woocommerce-breadcrumb {
    padding-top: 12px;
    padding-bottom: 12px;
    margin: 0;
    font-family: var(--gl-font-sans);
    font-size: var(--gl-text-xs);
    letter-spacing: 0.01em;
    line-height: 1.5;
    color: var(--gl-text-secondary);
}

.storefront-breadcrumb .woocommerce-breadcrumb a {
    color: var(--gl-text-secondary);
    font-size: var(--gl-text-xs);
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.storefront-breadcrumb .woocommerce-breadcrumb a:hover {
    color: var(--gl-text-primary);
}

.storefront-breadcrumb .breadcrumb-separator {
    font-size: 10px;
    color: var(--gl-text-muted);
    margin: 0 7px;
}

/* 8. GL Header System — Unified Navigation */

/* Reset UA / WC styles on semantic UI buttons (pair with component class) */
.gl-btn-reset {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    margin: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    cursor: pointer;
    box-shadow: none;
}

.gl-header button.gl-btn-reset {
    font-family: inherit;
}

/* Global CTA — buttons + text links (content pages; not header chrome) */
button.gl-btn-primary,
a.gl-btn-primary,
.gl-btn-primary {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--gl-color-accent) !important;
    background-image: none !important;
    color: var(--gl-text-inverse) !important;
    font-size: var(--gl-text-base) !important;
    font-weight: 600 !important;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: var(--gl-radius-button) !important;
    transition: opacity 0.3s ease;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

button.gl-btn-primary:hover,
a.gl-btn-primary:hover,
.gl-btn-primary:hover {
    opacity: 0.7 !important;
    color: var(--gl-text-inverse) !important;
    background-color: var(--gl-color-accent) !important;
}

button.gl-btn-secondary,
a.gl-btn-secondary,
.gl-btn-secondary {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--gl-text-inverse) !important;
    background-image: none !important;
    color: var(--gl-color-accent) !important;
    font-size: var(--gl-text-base) !important;
    font-weight: 600 !important;
    padding: 14px 28px !important;
    border: 1px solid #5a8219 !important;
    border-radius: var(--gl-radius-button) !important;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    font-family: inherit;
}

button.gl-btn-secondary:hover,
a.gl-btn-secondary:hover,
.gl-btn-secondary:hover {
    background-color: var(--gl-color-accent) !important;
    color: var(--gl-text-inverse) !important;
}

.gl-link-narrative {
    display: inline-flex;
    align-items: center !important;
    font-size: var(--gl-text-base) !important;
    color: var(--gl-text-primary) !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #262626 !important;
    padding-bottom: 5px !important;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.gl-link-narrative:hover {
    opacity: 0.7 !important;
    color: var(--gl-text-primary) !important;
}

.gl-link-arrow {
    display: inline-flex;
    align-items: center !important;
    font-size: var(--gl-text-base) !important;
    color: var(--gl-text-primary) !important;
    font-weight: 600 !important;
    transition: color 0.3s ease;
    text-decoration: none;
}

.gl-link-arrow:hover {
    color: var(--gl-color-accent) !important;
}

.gl-link-arrow.hidden {
    display: none;
}

.gl-header {
    background: #fff;
    position: relative;
    font-family: var(--gl-font-sans);
    border-bottom: 1px solid #e5e5e7;
}

@media(max-width:991px) {
    .gl-header {
        position: sticky;
        top: 0;
        z-index: 999;
        background-color: var(--gl-text-inverse);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05)
    }

    body {
        scroll-padding-top: 70px
    }
}

/* Promo bar — pending reserves height (transparent); show = instant cut (no bar fade).
   Optional light fade on copy only. Empty → is-promo-hidden collapses. */
.gl-promo-bar {
    --gl-promo-bar-bg: #dcecc8;
    --gl-promo-bar-fg: #1a1a1a;
    --gl-promo-bar-h: 36px;
    background: var(--gl-promo-bar-bg);
    color: var(--gl-promo-bar-fg);
    position: relative;
    z-index: 150;
    min-height: var(--gl-promo-bar-h);
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* no opacity transition on the bar — color block must not “fade in” */
    transition: none;
}

/* First paint: keep layout height, no color until configured / session bootstrap */
.gl-promo-bar.is-promo-pending {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: transparent;
}

.gl-promo-bar.is-promo-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Soften copy only (bar color/height already instant) */
.gl-promo-bar.is-promo-visible .gl-top-msg {
    animation: gl-promo-msg-in 0.16s ease;
}

@keyframes gl-promo-msg-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .gl-promo-bar.is-promo-visible .gl-top-msg {
        animation: none;
    }
}

.gl-promo-bar[hidden],
.gl-promo-bar.is-promo-hidden {
    display: none !important;
    min-height: 0;
    opacity: 0;
    visibility: hidden;
}

@media (min-width: 992px) {
    .gl-promo-bar.is-promo-pc-hidden {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .gl-promo-bar.is-promo-m-hidden {
        display: none !important;
    }

    /* Keep bar = --gl-promo-bar-h. Do not add vertical padding on top of
       line-height: 36px — that was bloating mobile height (~52px). */
    .gl-promo-bar {
        min-height: var(--gl-promo-bar-h);
        height: var(--gl-promo-bar-h);
        padding: 0;
        box-sizing: border-box;
    }

    .gl-promo-bar .gl-top-msg {
        line-height: var(--gl-promo-bar-h);
        gap: 4px 8px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .gl-promo-bar .gl-top-msg-promo,
    .gl-promo-bar .gl-top-msg-link {
        white-space: nowrap;
        font-size: 13px;
    }

    .gl-promo-bar .gl-top-msg-label {
        padding: 2px 8px;
        font-size: 11px;
    }
}

.gl-promo-bar .gl-top-msg {
    width: 100%;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    line-height: 36px;
    color: inherit;
}

/*
 * Promo / notice bar types — site-dynamic.topBar.type → gl-promo-bar--{type}
 * 四类：default(绿) | notice(灰 Notice) | urgent(琥珀 Urgent) | sale(黑)
 */

.gl-promo-bar .gl-top-msg-label {
    display: inline-block;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    line-height: 1.35;
}

.gl-promo-bar--default {
    --gl-promo-bar-bg: #dcecc8;
    --gl-promo-bar-fg: #1a1a1a;
}

.gl-promo-bar--default .gl-top-msg {
    font-size: inherit;
}

/* = site-alert--neutral */
.gl-promo-bar--notice {
    --gl-promo-bar-bg: #f5f5f5;
    --gl-promo-bar-fg: #303030;
}

.gl-promo-bar--notice .gl-top-msg-label {
    background: #e5e5e7;
    color: #404040;
}

.gl-promo-bar--notice .gl-top-msg-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #262626;
}

/* = site-alert--urgent */
.gl-promo-bar--urgent {
    --gl-promo-bar-bg: #fff8e8;
    --gl-promo-bar-fg: #303030;
}

.gl-promo-bar--urgent .gl-top-msg-label {
    background: #ffdb00;
    color: #111111;
}

.gl-promo-bar--urgent .gl-top-msg-link {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #111111;
}

.gl-promo-bar--sale {
    --gl-promo-bar-bg: #1a1a1a;
    --gl-promo-bar-fg: #f5f5f5;
}

.gl-promo-bar--sale .gl-top-msg-link {
    color: #c8e09a;
    font-weight: 600;
}

/* Top Bar — same shell as before; no warm bg; left msg removed from HTML */
.gl-top-bar {
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 150;
    height: 38px;
    display: flex;
    align-items: center;
}

.gl-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media (max-width: 991px) {
    .gl-top-bar {
        height: auto;
        padding: 0;
    }

    .gl-top-bar .gl-top-right {
        display: none;
    }
}

.gl-top-msg {
    font-size: var(--gl-text-base);
    color: var(--gl-text-secondary);
    letter-spacing: .02em;
    display: flex;
    align-items: center;
}

.gl-top-msg-item {
    display: none;
}

.gl-top-msg-item.active {
    display: inline-flex;
    align-items: center;
    animation: glTopFade 0.5s ease;
}

.gl-top-msg-item.us-delivery::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 13.5px;
    background-image: url('../images/flags/us.svg');
    background-size: cover;
    background-position: center;
    margin-right: 6px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes glTopFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Locale Dropdown */
.gl-locale-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    margin-right: 20px;
}

.gl-locale-trigger {
    display: inline-flex;
    align-items: center;
    height: 32px;
    font-size: var(--gl-text-xs);
    color: var(--gl-text-secondary);
    letter-spacing: .02em;
    transition: color .2s;
    cursor: pointer;
}

.gl-locale-trigger:hover {
    color: var(--gl-text-primary);
}

.gl-locale-trigger .gl-flag-icon {
    width: 18px;
    height: 13.5px;
    margin: 0 4px 0 6px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.gl-locale-arrow {
    font-size: var(--gl-text-base);
    color: var(--gl-text-tertiary);
    display: flex;
    transition: all .2s;
}

.gl-locale-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    padding: 10px;
    z-index: 160;
    list-style: none;
}

.gl-locale-wrap:hover .gl-locale-menu,
.gl-locale-wrap.is-open .gl-locale-menu {
    display: block;
}

.gl-locale-menu li {
    border-bottom: 1px solid #f5f5f5;
    padding: 5px 0;
}

.gl-locale-menu li:last-child {
    border-bottom: none;
}

.gl-locale-menu a {
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: var(--gl-text-xs);
    color: var(--gl-text-secondary);
    text-decoration: none;
    transition: color .2s;
    white-space: nowrap;
}

.gl-locale-menu a:hover {
    color: var(--gl-text-primary);
}

.gl-locale-menu .gl-flag-icon {
    width: 18px;
    height: 13.5px;
    margin-right: 8px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.gl-top-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* Specific sizing for action buttons (icons) inside the top bar */
.gl-top-right .gl-action-btn {
    font-size: var(--gl-text-xl);
    min-width: 32px;
    min-height: 32px;
    padding: 6px;
    color: var(--gl-text-secondary);
}

.gl-top-right .gl-action-btn:hover {
    color: var(--gl-text-primary);
    background: rgba(38, 38, 38, 0.06);
}

.gl-top-link {
    padding-left: 0;
    font-size: var(--gl-text-xs);
    color: var(--gl-text-secondary);
    letter-spacing: .02em;
    transition: color .2s;
    display: flex;
    align-items: center;
    height: 32px;
}

a.gl-top-link {
    text-decoration: none;
}

.gl-top-link:hover {
    color: var(--gl-text-primary);
}

/* Account dropdown */
.gl-account-wrap {
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: center;
}

.gl-account-trigger {
    padding-left: 0;
    cursor: pointer
}

.gl-account-arrow {
    font-size: var(--gl-text-base);
    margin-left: 5px;
    color: var(--gl-text-tertiary);
    display: flex;
    transition: all .2s
}

.gl-account-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    padding: 10px;
    z-index: 160;
    list-style: none;
}

.gl-account-wrap:hover .gl-account-menu {
    display: none
}

.gl-account-wrap.is-logged-in:hover .gl-account-menu {
    display: block
}

.gl-account-menu li {
    border-bottom: 1px solid #f5f5f5;
    padding: 5px 0
}

.gl-account-menu li:last-child {
    border-bottom: none
}

.gl-account-menu a {
    display: block;
    padding: 5px;
    font-size: var(--gl-text-xs);
    color: var(--gl-text-secondary);
    text-decoration: none;
    transition: color .2s
}

.gl-account-menu a:hover {
    color: var(--gl-text-primary)
}

/* Account auth three-state: loading → guest | logged-in (glAuth) */
.gl-account-wrap [data-gl-auth="trigger"],
.gl-account-wrap [data-gl-guest="trigger"] {
    display: none;
}

.gl-account-wrap li[data-gl-auth="menu"] {
    display: none;
}

.gl-account-wrap [data-gl-loading="trigger"] {
    display: flex;
    cursor: default;
}

.gl-account-wrap [data-gl-loading="menu"] {
    display: list-item;
}

.gl-account-wrap.is-auth-ready:not(.is-logged-in) [data-gl-guest="trigger"] {
    display: flex;
}

.gl-account-wrap.is-auth-ready.is-logged-in [data-gl-auth="trigger"] {
    display: flex;
}

.gl-account-wrap.is-auth-ready.is-logged-in li[data-gl-auth="menu"] {
    display: list-item;
}

.gl-account-wrap.is-auth-ready.is-logged-in [data-gl-guest="trigger"] {
    display: none;
}

.gl-account-wrap.is-auth-ready [data-gl-loading] {
    display: none !important;
}

.gl-skeleton {
    background: #e5e5e5;
    border-radius: 4px;
    animation: gl-skeleton-block 1.5s ease-in-out infinite;
}

@keyframes gl-skeleton-block {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.gl-account-skeleton--avatar {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 6px;
}

.gl-account-skeleton--name {
    width: 60px;
    height: 14px;
}

.gl-account-skeleton--menu {
    display: block;
    width: 90px;
    height: 12px;
    margin: 4px 0;
}

.gl-account-arrow--loading {
    opacity: 0.3;
}

.gl-account-trigger[data-gl-auth="trigger"] .fi-rr-user {
    font-size: var(--gl-text-xl);
    margin-right: 6px;
}

[data-gl-auth="name"].gl-truncate,
.gl-account-user-name.gl-truncate {
    max-width: 120px;
    min-width: 0;
}

.gl-account-trigger[data-gl-auth="trigger"] [data-gl-auth="name"]:not(:empty) {
    margin-right: 2px;
}

.gl-account-menu li.gl-account-menu-logout {
    border-bottom: none;
}

.gl-account-menu a[data-gl-auth="logout-link"] {
    color: var(--gl-color-accent);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.gl-account-menu a[data-gl-auth="logout-link"] i {
    margin-right: 6px;
}

/* Main Bar — PC: slightly tighter under .gl-top-bar; mobile unchanged */
.gl-main-bar {
    padding: 6px 0 16px;
    border-bottom: none;
    background: transparent;
    position: relative;
    z-index: 140;
}

@media (max-width: 991px) {
    .gl-main-bar {
        padding: 5px 0;
        z-index: 160;
    }
}

.gl-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between
}

/* Logo */
.gl-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    margin-right: 40px;
    transform: translateY(-2px);
    /* Optical adjustment to align visually with the text cap-height */
}

.gl-logo-img {
    display: block;
    width: 150px;
}

/* Max container breakpoint — logo steps up */
@media (min-width: 1488px) {
    .gl-logo-img {
        width: 160px;
    }
}

@media(max-width:991px) {
    .gl-main-inner {
        position: relative
    }

    .gl-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%)
    }

    .gl-logo-img {
        width: 100px
    }
}

/* Menu Toggle (hamburger) */
.gl-menu-toggle {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
    color: var(--gl-text-primary);
    font-size: var(--gl-text-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .3s
}

.gl-menu-toggle:hover {
    color: var(--gl-color-accent)
}

/* Actions (search, user) */
.gl-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0
}

.gl-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gl-text-primary);
    font-size: var(--gl-text-2xl);
    transition: all .3s ease;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border-radius: 50%;
}

a.gl-action-btn {
    text-decoration: none;
}

.gl-action-btn:hover {
    color: var(--gl-color-accent);
    background: #f5f5f5;
}

@media(max-width:991px) {
    .gl-action-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .gl-actions {
        gap: 4px;
    }
}


.gl-cart-wrap,
.gl-cart-mount {
    position: relative;
    display: flex;
    align-items: center;
}

.gl-cart-mount__btn[disabled] {
    cursor: default;
    opacity: 1;
}

/* Cart count badge */
.gl-cart-count {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #5a8219;
    color: var(--gl-text-inverse);
    font-size: var(--gl-text-xs);
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    border-radius: var(--gl-radius-badge);
    pointer-events: none;
}

.gl-top-bar .gl-cart-count {
    top: 0;
    right: -2px;
}

.gl-top-bar .gl-cart-wrap,
.gl-top-bar .gl-cart-mount {
    padding-left: 0;
    margin-left: 4px;
}

/* ============================================================
   SIDE CART DRAWER + COUPON / SAVINGS DRAWER (Global)
   ============================================================ */

/* Side Cart Drawer */

/* Badge bounce animation (triggered after AJAX add-to-cart) */
.gl-cart-bounce {
    animation: glCartBounce 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes glCartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.4);
    }

    50% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1.15);
    }
}

/* Overlay */
.gl-side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gl-side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer panel */
.gl-side-cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: none;
}

.gl-side-cart.active {
    transform: translateX(0);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.06);
}

/* Right FAB stack: cart tab (above) + back-to-top (below) — 50×50 */
:root {
    --gl-fab-w: 50px;
    --gl-fab-h: 50px;
    --gl-fab-gap: 10px;
    --gl-fab-right: 24px;
    --gl-fab-bottom: 100px;
}

/* Minimized cart tab — desktop only; sits above back-to-top */
.gl-side-cart-tab {
    display: none;
}

/* Never show floating cart FAB on cart / checkout / order endpoints */
body.woocommerce-cart .gl-side-cart-tab,
body.woocommerce-checkout .gl-side-cart-tab,
body.woocommerce-order-pay .gl-side-cart-tab,
body.woocommerce-order-received .gl-side-cart-tab {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (min-width: 992px) {
    .gl-side-cart-tab {
        position: fixed;
        top: auto;
        right: var(--gl-fab-right);
        bottom: calc(var(--gl-fab-bottom) + var(--gl-fab-h) + var(--gl-fab-gap));
        z-index: 9990;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: var(--gl-fab-w);
        height: var(--gl-fab-h);
        padding: 0;
        border: none;
        border-radius: 4px;
        background-color: var(--gl-color-accent) !important;
        background-image: none !important;
        color: var(--gl-text-inverse);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
        text-decoration: none;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        overflow: visible;
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease;
        -webkit-appearance: none;
        appearance: none;
        font-family: inherit;
    }

    .gl-side-cart-tab.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .gl-side-cart-tab:hover {
        transform: translateY(-2px);
        color: var(--gl-text-inverse);
    }

    .gl-side-cart-tab__icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .gl-side-cart-tab__icon-wrap i {
        font-size: 20px;
        line-height: 1;
    }

    .gl-side-cart-tab__badge {
        position: absolute;
        top: -8px;
        right: -10px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        background: var(--gl-text-inverse);
        color: var(--gl-color-accent);
        font-size: 10px;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        border-radius: 999px;
        border: 2px solid var(--gl-color-accent);
        box-sizing: border-box;
        pointer-events: none;
    }

    /* Side tab: white pill even if AJAX fragment drops __badge class */
    .gl-side-cart-tab .gl-cart-count {
        top: -8px;
        right: -10px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        line-height: 16px;
        background: var(--gl-text-inverse);
        color: var(--gl-color-accent);
        font-size: 10px;
        font-weight: 700;
        border: 2px solid var(--gl-color-accent);
        border-radius: 999px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .gl-side-cart {
        width: 320px;
    }
}

/* Inner flex layout */
.gl-side-cart-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Drawer Header */
.gl-side-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e5e7;
    flex-shrink: 0;
}

/* PC: tighter header (was padded + 44px close → too tall) */
@media (min-width: 992px) {
    .gl-side-cart-header {
        padding: 14px 20px;
    }

    .gl-side-cart-close {
        width: 32px;
        height: 32px;
    }

    .gl-side-cart-close i {
        font-size: 18px;
    }
}

.gl-side-cart-title,
.gl-mobile-search-header-title {
    font-size: var(--gl-text-lg);
    font-weight: 600;
    color: var(--gl-text-primary);
    line-height: 1;
}

.gl-side-cart-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.gl-side-cart-viewcart {
    display: none;
    font-size: var(--gl-text-xs);
    font-weight: 500;
    color: var(--gl-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.gl-side-cart.is-viewcart-visible .gl-side-cart-viewcart {
    display: inline;
}

.gl-side-cart-viewcart:hover {
    color: var(--gl-color-accent);
}

/* Drawer Body — flex shell, does NOT scroll itself */
.gl-side-cart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-height: 0;
}

/* Inner div — WC replaces this via AJAX */
.gl-side-cart-body .widget_shopping_cart_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* WooCommerce Mini Cart Overrides */

/* Cart item list — WC override (plugin injects ul/li margins) */
.gl-side-cart-body .woocommerce-mini-cart {
    list-style: none;
    margin: 0;
    padding: 16px 24px;
    border: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.gl-side-cart-body .woocommerce-mini-cart::-webkit-scrollbar {
    width: 4px;
}

.gl-side-cart-body .woocommerce-mini-cart::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 2px;
}

/* Single cart item — WC override */
.gl-side-cart-body .woocommerce-mini-cart-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    margin: 0;
    list-style: none;
    background: none;
    border-bottom: 1px solid #f0f0f0;
}

.gl-side-cart-body .woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.gl-side-cart-body .woocommerce-mini-cart-item:first-child {
    padding-top: 0;
}

/* Top row: thumbnail + info */
.gl-mini-cart-item-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

/* Product thumbnail */
.gl-mini-cart-thumb {
    display: block;
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    border-radius: var(--gl-radius-surface);
    background: #f9f9f9;
    flex-shrink: 0 !important;
    overflow: hidden;
    position: relative;
    border: 1px solid #eee;
}

.gl-mini-cart-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    display: block;
}

/* Info column */
.gl-mini-cart-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Product name */
.gl-mini-cart-name {
    font-size: var(--gl-text-lg);
    font-weight: 400;
    color: var(--gl-text-primary);
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-mini-cart-name:hover {
    color: var(--gl-color-accent);
}

/* Variation dl — WC override */
.gl-side-cart-body .woocommerce-mini-cart-item .variation {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    margin: 2px 0 0;
    padding: 0;
    font-size: var(--gl-text-xs);
    line-height: 1.4;
    color: var(--gl-text-muted);
}

.gl-side-cart-body .woocommerce-mini-cart-item .variation dt {
    font-weight: 400;
    margin: 0;
    float: none;
}

.gl-side-cart-body .woocommerce-mini-cart-item .variation dd {
    margin: 0;
    padding: 0;
}

.gl-side-cart-body .woocommerce-mini-cart-item .variation dd p {
    margin: 0;
    display: inline;
}

/* Price area */
.gl-mini-cart-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.gl-mini-cart-price .amount {
    font-size: var(--gl-text-md);
    font-weight: 600;
    color: #dc2626;
    letter-spacing: 0;
}

.gl-mini-cart-price ins {
    text-decoration: none;
}

.gl-mini-cart-price ins .amount {
    color: #dc2626;
}

.gl-mini-cart-price del {
    order: 1;
}

.gl-mini-cart-price del .amount {
    font-size: var(--gl-text-xs);
    font-weight: 400;
    color: #b0b0b0;
}

/* Bottom row: qty selector + remove */
.gl-mini-cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-left: 0;
}

/* Quantity selector */
.gl-mini-cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid #d4d4d4;
    border-radius: var(--gl-radius-button);
    overflow: hidden;
    height: 32px;
}

.gl-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--gl-text-lg);
    color: var(--gl-text-secondary);
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.gl-qty-btn:hover {
    background: #f5f5f5;
    color: var(--gl-text-primary);
}

.gl-qty-btn:active {
    background: #e5e5e5;
}

.gl-qty-input {
    width: 36px;
    height: 32px;
    text-align: center;
    font-size: var(--gl-text-base);
    font-weight: 500;
    color: var(--gl-text-primary);
    border: none !important;
    background: #fff !important;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.gl-qty-input::-webkit-outer-spin-button,
.gl-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove button — always visible (qty row right); hide WC ::before glyph */
.gl-mini-cart-remove {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: 1px solid #e5e5e5 !important;
    color: #b0b0b0 !important;
    cursor: pointer;
    border-radius: var(--gl-radius-button) !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    overflow: visible !important;
}

.gl-mini-cart-remove::before {
    display: none !important;
    content: none !important;
}

.gl-mini-cart-remove:hover {
    color: #ef4444 !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

@media (max-width: 480px) {
    .gl-mini-cart-thumb {
        width: 72px;
        height: 72px;
    }

    .gl-mini-cart-actions {
        padding-left: 0;
    }

    .gl-mini-cart-name {
        font-size: var(--gl-text-base);
    }
}

@keyframes glSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* Full side cart loading overlay (qty update etc.) */
.gl-side-cart.gl-cart-overlay-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

.gl-side-cart.gl-cart-overlay-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--gl-text-inverse);
    border-radius: 50%;
    z-index: 10000;
    animation: glSpinner 0.6s linear infinite;
}

/*
 * ATC optimistic pending — drawer opens immediately; body shows skeleton + spinner
 * until fragments arrive. Markup lives outside .widget_shopping_cart_content.
 */
.gl-side-cart-atc-pending {
    display: none;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
    background: #fff;
    z-index: 5;
}

.gl-side-cart.is-atc-pending .gl-side-cart-atc-pending {
    display: flex;
}

.gl-side-cart.is-atc-pending .widget_shopping_cart_content,
.gl-side-cart.is-atc-pending .gl-side-cart-empty {
    display: none !important;
}

.gl-side-cart-atc-pending__head {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gl-side-cart-atc-pending__spinner {
    width: 28px;
    height: 28px;
    border: 2px solid #e5e5e7;
    border-top-color: #5a8219;
    border-radius: 50%;
    flex-shrink: 0;
    animation: glSpinner 0.65s linear infinite;
}

.gl-side-cart-atc-pending__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gl-side-cart-atc-skel-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.gl-side-cart-atc-skel-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: gl-skeleton-block 1.4s ease-in-out infinite;
}

.gl-side-cart-atc-skel-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.gl-side-cart-atc-skel-line {
    height: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: gl-skeleton-block 1.4s ease-in-out infinite;
}

.gl-side-cart-atc-skel-line--title {
    width: 78%;
    height: 14px;
}

.gl-side-cart-atc-skel-line--sub {
    width: 42%;
}

.gl-side-cart-atc-skel-line--price {
    width: 28%;
}

.gl-side-cart-atc-pending__foot {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gl-side-cart-atc-skel-line--foot {
    width: 100%;
    height: 44px;
    border-radius: 6px;
}

/* Footer wrapper: trust bar + subtotal + buttons, pinned to bottom */
.gl-mini-cart-footer {
    flex-shrink: 0;
    border-top: 1px solid #e5e5e7;
}

/* Cart Summary breakdown */
.gl-side-cart-body .gl-cart-summary {
    padding: 0 24px;
    margin: 0;
    border-top: 1px solid #e5e5e7;
    flex-shrink: 0;
}

.gl-cart-summary-zone {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.gl-cart-summary-zone:last-child {
    border-bottom: none;
}

.gl-cart-summary-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: var(--gl-text-sm);
    color: var(--gl-text-secondary);
}

.gl-cart-summary-val {
    font-weight: 500;
    color: var(--gl-text-primary);
}

/* Strikethrough original price when discount exists */
.has-discount .gl-original-price {
    text-decoration: line-through;
    color: var(--gl-text-muted);
    font-weight: 400;
}

.has-discount .gl-original-price .amount {
    font-size: var(--gl-text-sm);
    font-weight: 400;
    color: var(--gl-text-muted);
}

/* No-discount: hide discount & after-discount rows */
.gl-cart-summary:not(.has-discount) .gl-cart-discount,
.gl-cart-summary:not(.has-discount) .gl-cart-after-discount {
    display: none;
}

/* No-discount: normal price style */
.gl-cart-summary:not(.has-discount) .gl-original-price {
    text-decoration: none;
    color: var(--gl-text-primary);
    font-weight: 500;
}

.gl-cart-discount .gl-cart-summary-val {
    color: #dc2626;
    font-weight: 500;
}

.gl-cart-after-discount .gl-cart-summary-val {
    font-weight: 600;
    color: var(--gl-text-primary);
}

.gl-cart-shipping .gl-free {
    color: var(--gl-text-secondary);
    font-weight: 400;
    font-size: var(--gl-text-sm);
    letter-spacing: 0;
}

.gl-cart-tax-note {
    color: var(--gl-text-muted);
    font-size: var(--gl-text-sm);
    font-weight: 400;
}

/* Grand total zone */
.gl-cart-total-zone {
    padding-bottom: 14px !important;
}

.gl-cart-total>span:first-child {
    font-size: var(--gl-text-base);
    font-weight: 600;
    color: var(--gl-text-primary);
}

.gl-cart-total .gl-cart-summary-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--gl-text-primary);
}

.gl-cart-total .gl-cart-summary-val .amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--gl-text-primary);
}

/* Action buttons — stacked vertically, Checkout on top */
.gl-side-cart-body .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0 24px 12px;
    flex-shrink: 0;
}

.gl-side-cart-body .woocommerce-mini-cart__buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    font-size: var(--gl-text-base);
    font-weight: 600;
    border-radius: var(--gl-radius-button);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #d4d4d4;
    background: #fff;
    color: var(--gl-text-secondary);
}

.gl-side-cart-body .woocommerce-mini-cart__buttons .button:hover {
    border-color: var(--gl-color-accent);
    color: var(--gl-color-accent);
}

/* Checkout: Primary-two black style */
.gl-side-cart-body .woocommerce-mini-cart__buttons .checkout {
    order: -1;
    background: #262626;
    color: var(--gl-text-inverse);
    border-color: var(--gl-text-primary);
}

.gl-side-cart-body .woocommerce-mini-cart__buttons .checkout:hover {
    background: #525252;
    border-color: var(--gl-text-secondary);
    color: var(--gl-text-inverse);
}

/* Empty cart states — guest + member (title + CTA only) */
.gl-side-cart-empty {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 24px;
}

.gl-side-cart-body .widget_shopping_cart_content > .gl-side-cart-empty {
    flex: 1;
}

.gl-side-cart-empty.hidden {
    display: none !important;
}

.gl-side-cart-empty__prompt {
    text-align: center;
    padding: 32px 0 24px;
    width: 100%;
}

.gl-side-cart-empty__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
}

.gl-side-cart-empty__icon i {
    font-size: var(--gl-text-3xl);
    color: #a3a3a3;
}

.gl-side-cart-empty__title {
    font-size: var(--gl-text-lg);
    font-weight: 400;
    color: var(--gl-text-primary);
    margin: 0 0 20px;
    letter-spacing: 0;
}

/* Specificity + !important: beat Tailwind CDN preflight on [type=button], button { background: transparent } */
button.gl-side-cart-empty__cta,
.gl-side-cart-empty__cta {
    display: block !important;
    width: 100%;
    height: 44px;
    background-color: var(--gl-color-accent) !important;
    background-image: none !important;
    color: var(--gl-text-inverse) !important;
    font-size: var(--gl-text-base);
    font-weight: 600;
    border: none !important;
    border-radius: var(--gl-radius-button);
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: inherit;
    letter-spacing: 0;
    -webkit-appearance: none;
    appearance: none;
}

button.gl-side-cart-empty__cta:hover,
.gl-side-cart-empty__cta:hover {
    opacity: 0.85;
    background-color: var(--gl-color-accent) !important;
}

/* WC legacy empty line (if fragment still injects p.woocommerce-mini-cart__empty-message) */
.gl-side-cart-body .woocommerce-mini-cart__empty-message {
    margin: 0;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: var(--gl-text-base);
    font-weight: 500;
    color: var(--gl-text-secondary);
    text-align: center;
    line-height: 1.5;
}

.gl-side-cart-body .woocommerce-mini-cart__empty-message::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
}

/* Guest empty: hide WC widget — only show sign-in prompt */
#glSideCart.is-guest-empty .widget_shopping_cart_content {
    display: none !important;
}

/* Member empty: hide WC widget — only show continue-shopping prompt */
#glSideCart.is-member-empty .widget_shopping_cart_content {
    display: none !important;
}

#glSideCart.is-guest-empty .gl-mini-cart-footer {
    display: none !important;
}

/* Member empty: WC empty message must respect .hidden (specificity beats display:flex) */
.gl-side-cart-body .woocommerce-mini-cart__empty-message.hidden,
.gl-side-cart-body .gl-side-cart-empty.hidden,
.gl-side-cart-body [data-gl-cart-empty-auth].hidden {
    display: none !important;
}

#glSideCart.is-member-empty .gl-mini-cart-footer {
    display: none !important;
}

/* Prevent body scroll when drawer open */
body.gl-cart-open {
    overflow: hidden;
}

/* ---- Trust Bar (vertical list, icon left + text right) ---- */
.gl-side-cart-trust {
    flex-shrink: 0;
}

.gl-side-cart-trust-inline {
    padding: 14px 24px;
    border-top: 1px solid #e5e5e7;
}

.gl-side-cart-trust-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gl-side-cart-trust-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: var(--gl-text-sm);
    font-weight: 500;
    color: var(--gl-text-secondary);
}

.gl-side-cart-trust-item:last-child {
    border-bottom: none;
}

.gl-side-cart-trust-item>i:first-child {
    font-size: var(--gl-text-md);
    color: var(--gl-color-accent);
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.gl-side-cart-trust-text {
    display: inline;
}

/* Tooltip question mark icon */
.gl-trust-tip {
    position: static;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    font-size: 13px !important;
    color: #c0c0c0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
    transition: color 0.2s ease;
}

.gl-trust-tip:hover {
    color: var(--gl-color-accent) !important;
}

/* Tip wrapper — inline, anchors the bubble */
.gl-tip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.gl-tip-bubble {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    padding: 10px 12px;
    font-family: var(--gl-font-sans);
    font-size: var(--gl-text-xs);
    font-weight: 400;
    line-height: 1.5;
    color: var(--gl-text-secondary);
    background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: var(--gl-radius-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease 0.1s, visibility 0.15s ease 0.1s;
    z-index: 10;
}

.gl-tip-wrap:hover .gl-tip-bubble {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.gl-tip-bubble a {
    color: var(--gl-color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gl-tip-bubble a:hover {
    color: var(--gl-text-primary);
}

/* Payment icons strip */
.gl-side-cart-payments {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px 16px;
    border-top: none;
    flex-shrink: 0;
}

.gl-side-cart-payments .gi-footer-payment-icons {
    gap: 5px 8px;
}

.gl-side-cart-payments .gi-footer-payment-icon {
    height: 20px;
    max-width: 34px;
    opacity: 1;
    filter: none;
}

.gl-side-cart-payments .gi-footer-payment-icon:hover {
    opacity: 0.85;
}

/* Legacy single image in mini-cart footer */
.gl-side-cart-payments img:not(.gi-footer-payment-icon) {
    height: 20px;
    opacity: 0.45;
    transition: opacity 0.2s ease;
}

.gl-side-cart-payments:hover img:not(.gi-footer-payment-icon) {
    opacity: 0.7;
}

/* Hide footer when cart is empty */
.gl-side-cart-body:has(.woocommerce-mini-cart__empty-message)+.gl-mini-cart-footer,
.gl-side-cart-body:has([data-gl-cart-empty-auth]:not(.hidden))+.gl-mini-cart-footer {
    display: none;
}


/* ============================================================
   COUPON / SAVINGS DRAWER (Global Component)
   Slide-out panel — narrower than Side Cart, layers above it.
   Side Cart:    420px / z-9999    (primary panel)
   Coupon Drawer: 360px / z-10001  (secondary, layers on top)
   ============================================================ */

/* ── Overlay ── */
.gl-coupon-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gl-coupon-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ── Drawer panel ── */
.gl-coupon-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100%;
    background: #fff;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.gl-coupon-drawer.active {
    transform: translateX(0);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
}

/* Applying from card — lock drawer only; do not light side-cart loading underneath */
.gl-coupon-drawer.is-applying {
    pointer-events: none;
}

.gl-coupon-drawer.is-applying::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    z-index: 5;
}

.gl-coupon-drawer.is-applying::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-top-color: #111;
    border-radius: 50%;
    z-index: 6;
    animation: glSpinner 0.6s linear infinite;
}


/* ── Drawer header ── */
.gl-coupon-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e5e7;
    flex-shrink: 0;
}

.gl-coupon-drawer__title {
    font-size: var(--gl-text-lg);
    font-weight: 600;
    color: var(--gl-text-primary);
    letter-spacing: 0;
}


/* ── Fixed input bar (top, not scrollable) ── */
.gl-coupon-drawer__input-bar {
    flex-shrink: 0;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.gl-coupon-drawer__input-form {
    display: flex;
    gap: 8px;
}

.gl-coupon-drawer__input {
    flex: 1;
    border: 1px solid #d4d4d4 !important;
    border-radius: var(--gl-radius-field) !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    color: var(--gl-text-primary) !important;
    outline: none !important;
    background: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    letter-spacing: 0;
    height: auto !important;
    min-height: unset !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}

.gl-coupon-drawer__input:focus {
    border-color: var(--gl-color-accent) !important;
    box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.08) !important;
}

.gl-coupon-drawer__input.is-invalid {
    border-color: #dc2626;
}

button.gl-coupon-drawer__input-apply,
.gl-coupon-drawer__input-apply {
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    background-color: var(--gl-text-primary) !important;
    background-image: none !important;
    color: var(--gl-text-inverse) !important;
    font-size: var(--gl-text-sm);
    font-weight: 600;
    padding: 9px 20px;
    border: 0 !important;
    border-radius: var(--gl-radius-button);
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
    letter-spacing: 0;
    -webkit-appearance: none;
    appearance: none;
}

button.gl-coupon-drawer__input-apply:hover:not(:disabled),
.gl-coupon-drawer__input-apply:hover:not(:disabled) {
    background-color: var(--gl-text-primary) !important;
}

.gl-coupon-drawer__input-apply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gl-coupon-drawer__input-msg {
    margin: 6px 0 0;
    font-size: var(--gl-text-xs);
    line-height: 1.4;
    letter-spacing: 0;
}


/* ── Drawer body (scrollable coupon list) ── */
.gl-coupon-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px 20px;
    min-height: 0;
}

.gl-coupon-drawer__body::-webkit-scrollbar {
    width: 4px;
}

.gl-coupon-drawer__body::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 2px;
}


.gl-coupon-drawer__cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gl-coupon-drawer__cards [data-gl-preview-only] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Section titles inside drawer (legacy) ── */
.gl-coupon-drawer__section-title {
    display: none;
}


/* ── Coupon Card: code / amount / desc + radio (promo / red savings feel) ── */
.gl-coupon-card {
    --gl-coupon-red: #c41e3a;
    --gl-coupon-red-soft: #fff5f6;
    --gl-coupon-red-border: #f0c4cb;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    padding: 16px 16px;
    border: 1px dashed var(--gl-coupon-red-border);
    border-radius: var(--gl-radius-surface);
    margin-bottom: 0;
    cursor: pointer;
    background: var(--gl-coupon-red-soft);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gl-coupon-card:hover {
    border-color: var(--gl-coupon-red);
    box-shadow: 0 2px 10px rgba(196, 30, 58, 0.08);
}

.gl-coupon-card__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gl-coupon-card__code {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.1em;
    color: #5c2a35;
    line-height: 1.3;
    text-transform: uppercase;
}

.gl-coupon-card__amount {
    display: block;
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--gl-coupon-red);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.gl-coupon-card__desc {
    margin: 2px 0 0;
    font-size: var(--gl-text-sm);
    font-weight: 400;
    color: var(--gl-text-secondary);
    letter-spacing: 0;
    line-height: 1.4;
}

/* Legacy fields kept inert if old markup remains */
.gl-coupon-card__badge,
.gl-coupon-card__condition,
.gl-coupon-card__detail,
.gl-coupon-card__footer,
.gl-coupon-card__code-line,
.gl-coupon-card__date,
.gl-coupon-card__note {
    display: none;
}


/* ── Radio selector (right side) ── */
.gl-coupon-card__radio {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 0;
}

.gl-coupon-card__radio-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gl-coupon-card__radio-dot {
    width: 20px;
    height: 20px;
    border: 2px solid #d4d4d4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: #fff;
    flex-shrink: 0;
}

.gl-coupon-card__radio-dot::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

.gl-coupon-card:hover .gl-coupon-card__radio-dot {
    border-color: var(--gl-coupon-red);
}

.gl-coupon-card__radio-input:checked~.gl-coupon-card__radio-dot {
    border-color: var(--gl-coupon-red);
}

.gl-coupon-card__radio-input:checked~.gl-coupon-card__radio-dot::after {
    background: var(--gl-coupon-red);
}

.gl-coupon-card.is-selected {
    border-style: solid;
    border-color: var(--gl-coupon-red);
    background: #fff0f2;
}

.gl-coupon-card.is-selected .gl-coupon-card__radio-dot {
    border-color: var(--gl-coupon-red);
}

.gl-coupon-card.is-selected .gl-coupon-card__radio-dot::after {
    background: var(--gl-coupon-red);
}


/* ── Ineligible state ── */
.gl-coupon-card.is-ineligible {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: auto;
}

.gl-coupon-card.is-ineligible:hover {
    box-shadow: none;
    border-color: #e5e5e5;
}

.gl-coupon-card.is-ineligible:hover .gl-coupon-card__radio-dot {
    border-color: #d4d4d4;
}

.gl-coupon-card.is-ineligible .gl-coupon-card__detail {
    color: var(--gl-text-muted);
}

.gl-coupon-card.is-ineligible .gl-coupon-card__radio-dot {
    display: none;
}

.gl-coupon-card__ineligible-tip {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: var(--gl-text-xs);
    line-height: 1.4;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gl-coupon-card__ineligible-tip.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── Empty state ── */
.gl-coupon-drawer__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gl-text-muted);
}

.gl-coupon-drawer__empty i {
    font-size: 36px;
    color: #d4d4d4;
    display: block;
    margin-bottom: 12px;
}

.gl-coupon-drawer__empty-title {
    font-size: var(--gl-text-md);
    font-weight: 600;
    color: var(--gl-text-secondary);
    margin: 0 0 4px;
}

.gl-coupon-drawer__empty-text {
    font-size: var(--gl-text-sm);
    color: var(--gl-text-muted);
    margin: 0;
}


/* ── Guest prompt (removed from V-stack; hide leftover markup) ── */
.gl-coupon-drawer__guest {
    display: none !important;
}

.gl-coupon-drawer__guest-prompt {
    text-align: center;
    padding: 40px 24px;
}

.gl-coupon-drawer__guest-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
}

.gl-coupon-drawer__guest-icon i {
    font-size: 24px;
    color: var(--gl-text-muted);
}

.gl-coupon-drawer__guest-title {
    font-size: var(--gl-text-lg);
    font-weight: 600;
    color: var(--gl-text-primary);
    margin: 0 0 8px;
    letter-spacing: 0;
}

.gl-coupon-drawer__guest-desc {
    font-size: var(--gl-text-sm);
    color: var(--gl-text-secondary);
    line-height: 1.5;
    margin: 0 0 20px;
    letter-spacing: 0;
}

button.gl-coupon-drawer__guest-signin,
.gl-coupon-drawer__guest-signin {
    display: block !important;
    width: 100%;
    height: 44px;
    background-color: var(--gl-color-accent) !important;
    background-image: none !important;
    color: var(--gl-text-inverse) !important;
    font-size: var(--gl-text-base);
    font-weight: 600;
    border: none !important;
    border-radius: var(--gl-radius-button);
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: inherit;
    letter-spacing: 0;
    -webkit-appearance: none;
    appearance: none;
}

button.gl-coupon-drawer__guest-signin:hover,
.gl-coupon-drawer__guest-signin:hover {
    opacity: 0.8;
    background-color: var(--gl-color-accent) !important;
}

.gl-coupon-drawer__guest-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    margin: 14px 0 0;
    letter-spacing: 0;
}

.gl-coupon-drawer__guest-note i {
    font-size: var(--gl-text-sm);
    color: var(--gl-color-accent);
}


/* ── Coupon Drawer Responsive ── */
@media (max-width: 991px) {
    .gl-coupon-drawer {
        width: 340px;
    }
}

@media (max-width: 480px) {
    .gl-coupon-drawer {
        width: 100%;
    }

    .gl-coupon-drawer__header {
        padding: 16px;
    }

    .gl-coupon-drawer__input-bar {
        padding: 12px 16px;
    }

    .gl-coupon-drawer__body {
        padding: 12px 16px;
    }
}


/* ── Coupon Entry Row (shared style for Side Cart + Checkout) ── */
.gl-coupon-entry-action {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--gl-text-sm);
    color: #e68a00;
    transition: color 0.2s ease;
    line-height: 1;
}

.gl-coupon-entry-action:hover {
    color: #cc7a00;
}

.gl-coupon-entry-action.is-applied {
    background: none;
    padding: 0;
    color: #e68a00;
    font-weight: 600;
}

.gl-coupon-entry-action.is-applied:hover {
    background: none;
    color: #cc7a00;
}

.gl-coupon-entry-hint {
    letter-spacing: 0;
    display: inline;
    color: inherit;
}

.gl-coupon-entry-hint.hidden {
    display: none;
}

.gl-coupon-entry-arrow {
    font-size: var(--gl-text-base);
    line-height: 1;
    flex-shrink: 0;
    color: inherit;
    transition: transform 0.2s ease;
}

.gl-coupon-entry-action:hover .gl-coupon-entry-arrow {
    transform: translateX(2px);
}

/* Coupon entry: idle summary row OR offer bar (split hit targets) */
.gl-cart-summary-zone--coupon {
    padding: 12px 0; /* match sibling summary zones */
}

.gl-cart-summary-zone--coupon .gl-cart-coupon-entry {
    pointer-events: none; /* zone/borders not clickable */
    min-height: 28px;
    padding: 6px 0;
}

.gl-cart-summary-zone--coupon .gl-cart-coupon-entry .gl-coupon-entry-action {
    pointer-events: auto; /* only the text + arrow */
    line-height: 1.5;
    min-height: 24px;
}

.gl-cart-coupon-bar {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 4px 0;
    border-radius: 4px;
    background: #f7f1e8;
}

.gl-cart-coupon-bar.hidden {
    display: none;
}

/* Display-only bar (idle above opens drawer) — no trailing arrow */
.gl-cart-coupon-bar--display .gl-cart-coupon-bar__main {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
}

.gl-cart-coupon-bar--display .gl-cart-coupon-bar__gap,
.gl-cart-coupon-bar--display .gl-cart-coupon-bar__arrow {
    display: none;
}

/* Only checkbox + label are toggle targets — not the empty middle */
.gl-cart-coupon-bar__main {
    flex: 0 1 auto;
    max-width: calc(100% - 44px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 8px 12px 12px;
    border: none;
    background: transparent;
    color: #262626;
    font-family: inherit;
    font-size: var(--gl-text-sm);
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.gl-cart-coupon-bar__main:hover {
    background: transparent;
}

.gl-cart-coupon-bar__gap {
    flex: 1 1 auto;
    min-width: 8px;
    align-self: stretch;
    pointer-events: none;
}

.gl-cart-coupon-bar__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    align-self: stretch;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #262626;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.gl-cart-coupon-bar__arrow:hover {
    background: transparent;
}

.gl-cart-coupon-bar__check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid #262626;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-sizing: border-box;
}

.gl-cart-coupon-bar.is-applied .gl-cart-coupon-bar__check {
    background: #262626;
    color: #fff;
}

.gl-cart-coupon-bar.is-applied .gl-cart-coupon-bar__check::after {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.gl-cart-coupon-bar__text {
    flex: 1;
    min-width: 0;
    color: #262626;
}

.gl-cart-coupon-bar__saved {
    font-weight: 700;
    color: #c41e3a;
}

.gl-coupon-entry-action.hidden {
    display: none;
}

.gl-coupon-remove-link,
a.gl-sc-coupon-remove {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 11px;
    color: #9a6b74;
    cursor: pointer;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gl-coupon-remove-link:hover,
a.gl-sc-coupon-remove:hover {
    color: #c41e3a;
    text-decoration: underline;
}

/* Coupon Drawer Loading Skeleton */
.gl-coupon-drawer__loading {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gl-coupon-skeleton {
    height: 72px;
    border-radius: var(--gl-radius-surface);
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: gl-skeleton-pulse 1.5s ease-in-out infinite;
}

.gl-coupon-skeleton--short {
    width: 60%;
    height: 48px;
}

@keyframes gl-skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.gl-coupon-drawer__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--gl-text-secondary);
}

.gl-coupon-drawer__error i {
    font-size: 28px;
    color: var(--gl-text-muted);
}

.gl-coupon-drawer__error p {
    font-size: var(--gl-text-sm);
    line-height: 1.5;
    margin: 0;
}

.gl-coupon-drawer__retry {
    margin-top: 4px;
    padding: 8px 20px;
    font-size: var(--gl-text-sm);
    font-weight: 500;
    color: var(--gl-text-primary);
    border: 1px solid #d4d4d4;
    border-radius: var(--gl-radius-button);
    border-color: var(--gl-color-accent);
    color: var(--gl-color-accent);
}


/* Nav lists — bullets off only (preflight handles box model) */
.gl-nav-list,
.gl-sub-menu,
.gl-mega-links {
    list-style: none;
}

.gl-nav-list {
    display: flex
}

/* Overlay */
.gl-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5);
    z-index: 199
}

.gl-nav-overlay.gl-visible {
    display: block
}

/* Desktop (≥992px) */
@media(min-width:992px) {
    .gl-nav {
        display: flex;
        align-items: center;
        flex: 1;
        min-width: 0;
    }

    .gl-nav-header {
        display: none
    }

    .gl-nav-toggle {
        display: none
    }

    .gl-nav-list {
        align-items: center
    }

    .gl-nav-item {
        position: relative;
        margin-left: 12px;
        margin-right: 12px
    }

    .gl-nav-link {
        display: flex;
        align-items: center;
        font-size: var(--gl-text-base);
        font-weight: 600;
        color: var(--gl-text-primary);
        text-decoration: none;
        line-height: 40px;
        padding: 0 5px;
        position: relative;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: all .3s ease;
        white-space: nowrap
    }

    .gl-nav-link::after {
        content: '';
        position: absolute;
        left: 5px;
        bottom: 4px;
        /* Lowered from 12px to account for the compact 40px line-height, ensuring it sits strictly under the text */
        width: 0;
        height: 2px;
        background: #5a8219;
        transition: width .3s ease
    }

    .gl-nav-link:hover,
    .gl-nav-item.gl-active>.gl-nav-link {
        color: var(--gl-color-accent)
    }

    .gl-nav-link:hover::after,
    .gl-nav-item.gl-active>.gl-nav-link::after {
        width: calc(100% - 10px)
    }

    /* Full-width mega */
    .gl-has-mega {
        position: static
    }

    /* Sub-menu dropdown */
    .gl-sub-menu {
        position: absolute;
        top: 100%;
        left: 5px;
        min-width: 220px;
        background: #fff;
        box-shadow: 2px 2px 15px 0 rgba(0, 0, 0, 0.07);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .2s ease-in-out, visibility .2s ease-in-out, transform .2s ease-in-out;
        padding: 15px 0;
        z-index: 160;
        display: block;
        text-align: left
    }

    .gl-nav-item:hover>.gl-sub-menu,
    .gl-nav-item:hover>.gl-mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0)
    }

    .gl-sub-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        font-size: var(--gl-text-base);
        font-weight: 400;
        line-height: 20px;
        color: var(--gl-text-secondary);
        text-decoration: none;
        text-transform: capitalize;
        transition: all .25s ease;
        border-left: 2px solid transparent;
        white-space: nowrap;
    }

    .gl-sub-link:hover {
        color: var(--gl-color-accent);
        padding-left: 24px;
        border-left-color: var(--gl-color-accent);
        background: #fafafa;
    }

    /* Mega-menu panel */
    .gl-mega-panel {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 2px 2px 15px 0 rgba(0, 0, 0, 0.07);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .2s ease-in-out, visibility .2s ease-in-out, transform .2s ease-in-out;
        z-index: 155
    }

    .gl-mega-grid {
        display: flex;
        margin: 0 auto;
        /* horizontal padding comes from .gl-container — don't double it */
        padding: 25px 0;
        box-sizing: border-box;
        min-width: 0;
    }

    /* Was width:25% + flex-shrink:0 → 5 cols = 125%, overflow past global grid */
    .gl-mega-col {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding-right: 20px;
    }

    .gl-mega-col:last-child {
        padding-right: 0
    }

    .gl-mega-title {
        font-size: var(--gl-text-xs);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        color: var(--gl-text-primary);
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e5e5e5
    }

    .gl-mega-title--spaced {
        margin-top: 20px;
    }

    .gl-mega-links li {
        margin-bottom: 10px
    }

    .gl-mega-link {
        display: inline-block;
        position: relative;
        font-size: var(--gl-text-base);
        color: var(--gl-text-secondary);
        text-decoration: none;
        transition: color .2s
    }

    .gl-mega-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 1px;
        background: #5a8219;
        transition: width .3s
    }

    .gl-mega-link:hover {
        color: var(--gl-color-accent)
    }

    .gl-mega-link:hover::after {
        width: 100%
    }

    .gl-mega-link-primary {
        color: var(--gl-text-primary);
        font-weight: 500;
        display: flex;
        align-items: center
    }

    .gl-mega-link-primary i {
        margin-left: 5px;
        font-size: 16px
    }

    .gl-mega-link-primary::after {
        display: none
    }

    .gl-mega-link-deals {
        color: #db4444;
        font-weight: 600;
        display: flex;
        align-items: center
    }

    .gl-mega-link-deals i {
        margin-left: 5px;
        font-size: 16px
    }

    .gl-mega-link-deals::after {
        display: none
    }

    .gl-mega-link-deals:hover {
        color: var(--gl-text-primary)
    }

    /* Mobile mega panel footer */
    .gl-mega-footer {
        padding: 8px 16px;
        border-top: 1px solid #f5f5f5
    }

    .gl-mega-viewall {
        display: flex;
        align-items: center;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 500;
        color: #262626;
        text-decoration: none;
        transition: color .2s
    }

    .gl-mega-viewall:hover {
        color: #5a8219
    }

    .gl-mega-viewall i {
        margin-left: 4px;
        font-size: 16px
    }

    .gl-color-link {
        display: flex;
        align-items: center
    }

    .gl-color-link::after {
        display: none
    }

    .gl-color-dot {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        border: 1px solid #d4d4d4;
        margin-right: 8px;
        flex-shrink: 0;
        transition: transform .2s
    }

    .gl-color-link:hover .gl-color-dot {
        transform: scale(1.1)
    }

    /* Responsive spacing — Logo + Nav + Search (992–1199 narrow desktop) */
    @media (max-width: 1399px) {
        .gl-nav-item {
            margin-left: 8px;
            margin-right: 8px;
        }
    }

    @media (max-width: 1299px) {
        .gl-logo {
            margin-right: 30px;
        }

        .gl-nav-item {
            margin-left: 6px;
            margin-right: 6px;
        }

        .gl-actions {
            gap: 14px;
        }
    }

    @media (max-width: 1199px) {
        .gl-logo {
            margin-right: 24px;
        }

        .gl-logo-img {
            width: 130px;
        }

        .gl-nav-item {
            margin-left: 4px;
            margin-right: 4px;
        }

        .gl-nav-link {
            font-size: 13px;
            letter-spacing: 0.3px;
        }

        .gl-actions {
            gap: 10px;
        }
    }

    @media (max-width: 1099px) {
        .gl-logo {
            margin-right: 18px;
        }

        .gl-logo-img {
            width: 120px;
        }

        .gl-nav-item {
            margin-left: 2px;
            margin-right: 2px;
        }

        .gl-nav-link {
            font-size: 12px;
            letter-spacing: 0;
        }

        .gl-actions {
            gap: 8px;
        }
    }

}

/* Color swatches — global; slug = pa_color term (gi-color-{slug})
   Used by: mega .gl-color-dot, filter .gl-shop-filter-swatch, card .gi-pro-color-dot */
.gi-color-light-grey {
    background-color: #c8c8c8;
}

.gi-color-dark-grey {
    background-color: #4a4a4a;
}

.gi-color-beige {
    background-color: #d4c5a9;
}

.gi-color-white {
    background-color: #f4f4f2;
}

.gi-color-red {
    background-color: #b91c1c;
}

.gi-color-cactus-green {
    background-color: #5a8219;
}

.gi-color-red-black {
    background: linear-gradient(90deg, #1a1a1a 50%, #8b1a1a 50%);
}

.gi-color-leopard-print {
    background: linear-gradient(135deg, #b18057, #1a1712);
}

.gi-color-pink {
    background-color: #f7ced4;
}

/* Mobile (<992px) */
@media(max-width:991px) {
    .gl-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 340px;
        height: 100vh;
        background: #fdfdfd;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform .3s ease;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        padding: 0 0 20px;
        scrollbar-width: thin;
        scrollbar-color: #d4d4d4 transparent
    }

    .gl-nav::-webkit-scrollbar {
        width: 4px
    }

    .gl-nav::-webkit-scrollbar-track {
        background: transparent
    }

    .gl-nav::-webkit-scrollbar-thumb {
        background: #d4d4d4;
        border-radius: 4px
    }

    .gl-nav::-webkit-scrollbar-thumb:hover {
        background: #999
    }

    .gl-nav.gl-open {
        transform: translateX(0)
    }

    .gl-nav-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-height: var(--gl-mobile-bar-height);
        padding: 0 16px;
        border-bottom: 1px solid #e5e5e5;
        flex-shrink: 0;
        box-sizing: border-box
    }

    .gl-nav-list {
        flex-direction: column;
        padding: 0 20px
    }

    .gl-nav-item {
        border-bottom: 1px solid #f5f5f5
    }

    /* Items with dropdowns: flex-wrap so sub/mega goes below */
    .gl-nav-item.gl-has-sub,
    .gl-nav-item.gl-has-mega {
        display: flex;
        flex-wrap: wrap
    }

    .gl-nav-link {
        display: flex;
        align-items: center;
        padding: 14px 0;
        font-size: var(--gl-text-lg);
        font-weight: 600;
        color: var(--gl-text-primary);
        text-decoration: none;
        transition: color .2s;
        flex: 1;
        min-width: 0
    }

    .gl-nav-link:hover {
        color: var(--gl-color-accent)
    }

    /* Toggle button (separate from link) */
    .gl-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        background: none;
        border: none;
        border-left: 1px solid #f5f5f5;
        cursor: pointer;
        color: var(--gl-text-secondary);
        font-size: var(--gl-text-xl);
        padding: 0;
        transition: color .2s
    }

    .gl-nav-toggle:hover {
        color: var(--gl-color-accent)
    }

    .gl-nav-toggle i {
        transition: transform .3s
    }

    .gl-active>.gl-nav-toggle i {
        transform: rotate(180deg)
    }

    /* Sub-menu/mega take full width below */
    .gl-sub-menu,
    .gl-mega-panel {
        width: 100%
    }

    /* Sub-menu accordion */
    .gl-sub-menu {
        display: none;
        padding: 0 0 10px
    }

    .gl-nav-item.gl-active>.gl-sub-menu,
    .gl-nav-item.gl-active>.gl-mega-panel {
        display: block
    }

    .gl-sub-link {
        display: block;
        padding: 10px 0;
        font-size: var(--gl-text-base);
        color: var(--gl-text-secondary);
        text-decoration: none;
        transition: color .2s
    }

    .gl-sub-link:hover {
        color: var(--gl-color-accent)
    }

    /* Mega-panel accordion */
    .gl-mega-panel {
        display: none;
        padding-top: 4px;
        padding-bottom: 10px;
        padding-left: 0;
        padding-right: 0;
    }

    .gl-mega-grid {
        display: flex;
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
        max-width: none;
    }

    .gl-mega-col {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 12px;
    }

    .gl-mega-col:last-child {
        margin-bottom: 0;
    }

    .gl-mega-title {
        font-size: var(--gl-text-xs);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 600;
        color: var(--gl-text-muted);
        margin-bottom: 4px;
        padding-top: 8px;
        padding-bottom: 4px;
        padding-left: 0;
        padding-right: 0;
        border-bottom: none
    }

    .gl-mega-links li {
        margin-bottom: 0
    }

    .gl-mega-link {
        display: block;
        padding: 10px 0;
        font-size: var(--gl-text-base);
        color: var(--gl-text-secondary);
        text-decoration: none;
        transition: color .2s
    }

    .gl-mega-link:hover {
        color: var(--gl-color-accent)
    }

    .gl-mega-link::after {
        display: none
    }

    .gl-mega-link-primary {
        color: var(--gl-text-primary);
        font-weight: 500;
        display: flex;
        align-items: center
    }

    .gl-mega-link-primary i {
        margin-left: 6px;
        font-size: 16px
    }

    .gl-mega-link-deals {
        color: #db4444;
        font-weight: 500;
        display: flex;
        align-items: center
    }

    .gl-mega-link-deals i {
        margin-left: 6px;
        font-size: 16px
    }
}

@media(max-width:480px) {
    .gl-nav {
        width: 300px
    }
}

/* Footer — gl-* layout + gi-footer WP shell; section spacing via pt/pb utilities in HTML */

.gi-footer {
    background-color: var(--gl-surface-footer);
}

.gi-footer-main {
    border-top: 1px solid var(--gl-surface-footer-border);
    background-color: var(--gl-surface-footer);
}

.gi-footer-main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.gi-footer-brand-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.gi-footer-brand-logo {
    display: inline-block;
}

.gi-footer-logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.gi-footer-brand-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
}

.gi-footer-social-list {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
}

/* Social — circular brand icons, muted via filter */
.gi-footer-social-link {
    display: block;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: transparent;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.gi-footer-social-link:hover {
    transform: translateY(-1px);
}

.gi-footer-social-icon {
    display: block;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: grayscale(0.4) saturate(0.75);
    transition: filter 0.2s ease;
}

.gi-footer-social-link:hover .gi-footer-social-icon {
    filter: grayscale(0) saturate(1);
}

.gi-footer-social-link--youtube .gi-footer-social-icon {
    background-image: url('../images/social/youtube.svg');
}

.gi-footer-social-link--facebook .gi-footer-social-icon {
    background-image: url('../images/social/facebook.svg');
}

.gi-footer-social-link--tiktok .gi-footer-social-icon {
    background-image: url('../images/social/tiktok.svg');
}

.gi-footer-action-divider {
    width: 1px;
    height: 20px;
    background-color: #e5e5e7;
    flex-shrink: 0;
}

.gi-footer-service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--gl-text-base);
    font-weight: 500;
    color: var(--gl-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.gi-footer-service-link i {
    font-size: var(--gl-text-md);
    line-height: 1;
}

.gi-footer-service-link:hover {
    color: var(--gl-color-accent);
}

.gi-footer-legal-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: center;
}

.gi-copy {
    line-height: var(--gl-leading-normal);
    max-width: 920px;
    color: var(--gl-text-secondary);
    font-size: var(--gl-text-xs);
    letter-spacing: 0.01em;
    text-align: center;
}

.gi-copy .site-name {
    color: inherit;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid #e5e5e7;
    transition: color 0.3s ease;
    text-decoration: none;
}

.gi-copy .site-name:hover {
    color: var(--gl-color-accent);
}

.gi-footer-payment-icons {
    max-width: 420px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 575px) {
    .gi-footer-action-divider {
        display: none;
    }

    .gi-copy .site-name {
        display: inline-block;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 4px;
    }

    .gi-copy .site-name:not(:last-child)::after {
        content: " · ";
        color: #a3a3a3;
    }
}

.gi-footer-payment-icon {
    display: block;
    height: 24px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gi-footer-payment-icon:hover {
    opacity: 0.85;
}

/* ==========================================================================
   Header Search Robust Styles & Reset
   ========================================================================== */

/* 1. Complete reset for input & button inside custom header search */
.gl-header-search input,
.gl-header-search button {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Form container reset */
.gl-header-search {
    margin: 0 !important;
}

/* Focus state: brand green border + glow (overrides Tailwind inline) */
.gl-header-search:focus-within {
    border-color: var(--gl-color-accent) !important;
    box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.08) !important;
}

/* 2. Base styles */
.gl-header-search input {
    font-family: inherit !important;
    font-size: var(--gl-text-base) !important;
    color: var(--gl-text-primary) !important;
    line-height: normal !important;
    padding-left: 16px !important;
}

.gl-header-search input::placeholder {
    color: var(--gl-text-muted) !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

.gl-header-search button {
    color: var(--gl-text-primary) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding-right: 16px !important;
    padding-left: 10px !important;
    transition: color 0.2s ease !important;
}

.gl-header-search button:hover {
    color: var(--gl-color-accent) !important;
}

/* 3. Layout for Flex (Wide & Mobile) */
.gl-header-search:not(.group) input {
    width: 0 !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
    height: 100% !important;
}

.gl-header-search:not(.group) button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

/* 4. Layout for Absolute (Intermediate .group) */
.gl-header-search-input-fade {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease 0.1s !important;
    pointer-events: none;
    padding-right: 40px !important;
}

.gl-header-search.group:focus-within .gl-header-search-input-fade {
    opacity: 1 !important;
    pointer-events: auto;
}

.gl-header-search button.gl-header-search-btn-icon {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 40px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.gl-header-search button i {
    font-size: 18px !important;
    color: inherit !important;
}

/* 5. Search Category Selector — Borderless text+arrow, right-aligned before search icon */
.gl-search-category {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-color: transparent !important;
    border: none !important;
    border-left: 1px solid #e5e5e5 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--gl-text-muted) !important;
    padding: 0 24px 0 10px !important;
    height: 20px !important;
    align-self: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23999999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 8px 5px !important;
    transition: color 0.2s ease, background-image 0.2s ease !important;
    letter-spacing: 0.02em !important;
}

.gl-search-category:hover,
.gl-search-category:focus {
    color: var(--gl-text-primary) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23262626' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.gl-search-category option {
    font-size: var(--gl-text-sm);
    color: var(--gl-text-primary);
    background: #fff;
}

/* Intermediate expandable: hide category entirely (space is too tight) */
.gl-header-search.group .gl-search-category {
    display: none !important;
}

@media (max-width: 991px) {
    .gl-header-search input {
        padding-left: 14px !important;
    }

    .gl-header-search button {
        padding-right: 16px !important;
    }
}

/* ==========================================================================
   MEGA SEARCH ZERO-STATE STYLES
   ========================================================================== */

/* Show search panel only when JS has rendered non-empty content */
#glDesktopSearchContainer.is-active .gl-search-zero-host--desktop:not(:empty):not(:has(.gl-search-zero-state.is-empty)) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Ensure the Search Form stays elevated over the panel if needed */
#glDesktopSearchContainer.is-active .gl-header-search {
    border-color: #d4d4d4;
    background-color: var(--gl-text-inverse);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Style the scope selector dropdown to look native but clean */
.gl-header-search select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.gl-header-search select option {
    background-color: var(--gl-text-inverse);
    color: var(--gl-text-primary);
}

/* Search zero-state product image — clamp so global img rules cannot blow it up */
.gl-search-zero-product img,
.gl-search-zero-product-img img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

/* ==========================================================================
   MOBILE SEARCH DRAWER
   ========================================================================== */

.gl-mobile-search-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: #ffffff;
    z-index: 300;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gl-mobile-search-drawer.is-open {
    transform: translateY(0);
}

/* Panel / drawer close — nav, search, cart, coupon, info, shop filter */
.gl-nav-close,
.gl-mobile-search-close,
.gl-side-cart-close,
.gl-coupon-drawer__close,
.gl-info-drawer__close,
.gl-shop-filter-close {
    width: var(--gl-mobile-touch);
    height: var(--gl-mobile-touch);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    color: var(--gl-text-secondary);
    cursor: pointer;
    line-height: 1;
    border-radius: var(--gl-radius-button);
    flex-shrink: 0;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.gl-nav-close:hover,
.gl-mobile-search-close:hover,
.gl-side-cart-close:hover,
.gl-coupon-drawer__close:hover,
.gl-info-drawer__close:hover,
.gl-shop-filter-close:hover {
    background: #f5f5f5;
    color: var(--gl-text-primary);
}

.gl-nav-close i,
.gl-mobile-search-close i,
.gl-side-cart-close i,
.gl-coupon-drawer__close i,
.gl-info-drawer__close i,
.gl-shop-filter-close i {
    font-size: 20px;
    line-height: 1;
}

.gl-coupon-drawer__close i {
    display: inline-block;
    color: inherit;
}

.gl-mobile-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .gl-side-cart-header,
    .gl-mobile-search-header {
        height: var(--gl-mobile-bar-height);
        min-height: var(--gl-mobile-bar-height);
        box-sizing: border-box;
        border-bottom-color: #f5f5f5;
    }

    .gl-side-cart-header {
        padding: 0 15px 0 20px;
    }

    .gl-mobile-search-header {
        padding: 0 15px;
    }

    .gl-side-cart-title {
        white-space: nowrap;
    }
}

.gl-mobile-search-form-wrap {
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    flex-shrink: 0;
}

.gl-mobile-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    background: #efefef;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gl-mobile-search-form:hover {
    background: #ebebeb;
}

.gl-mobile-search-form:focus-within {
    background: #ffffff;
    border-color: #d4d4d4;
}

.gl-mobile-search-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: var(--gl-text-base);
    color: var(--gl-text-primary);
}

button.gl-mobile-search-submit,
.gl-mobile-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    min-width: 44px;
    padding: 0 12px;
    background-color: var(--gl-color-accent) !important;
    background-image: none !important;
    border: none !important;
    cursor: pointer;
    transition: opacity 0.2s ease;
    -webkit-appearance: none;
    appearance: none
}

button.gl-mobile-search-submit:hover,
.gl-mobile-search-submit:hover {
    opacity: 0.85
}

button.gl-mobile-search-submit i,
.gl-mobile-search-submit i {
    font-size: var(--gl-text-md);
    color: var(--gl-text-inverse) !important
}

/* ==========================================================================
   SEARCH ZERO-STATE — shared HTML, desktop + mobile hosts
   ========================================================================== */

.gl-search-zero-depot {
    display: none;
}

.gl-search-zero-host--mobile {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.gl-search-zero-host--desktop {
    position: absolute;
    top: 100%;
    right: 0;
    width: 700px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* ── Shared content block ── */

.gl-search-zero-state {
    width: 100%;
}

.gl-search-zero-keywords-col {
    min-width: 0;
}

.gl-search-zero-products-col {
    min-width: 0;
}

.gl-search-zero-heading {
    font-weight: 600;
    color: var(--gl-text-primary);
    margin: 0 0 16px;
}

.gl-search-zero-keywords {
    display: flex;
    flex-direction: column;
}

.gl-search-zero-keyword {
    color: var(--gl-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.gl-search-zero-keyword--image {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 6px !important;
    box-sizing: border-box;
}

.gl-search-zero-keyword--image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
}

.gl-search-zero-keyword--hot {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gl-search-zero-keyword--hot .gl-hot-text {
    color: #ef4444;
    font-weight: 500;
}

.gl-search-zero-keyword--hot .gl-hot-emoji {
    font-size: var(--gl-text-base);
    transition: transform 0.2s ease;
}

.gl-search-zero-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.gl-search-zero-products-header .gl-search-zero-heading {
    margin-bottom: 0;
}

.gl-search-zero-viewall {
    font-size: var(--gl-text-sm);
    font-weight: 500;
    color: var(--gl-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gl-search-zero-viewall:hover {
    color: var(--gl-color-accent);
}

.gl-search-zero-viewall i {
    font-size: var(--gl-text-md);
    transition: transform 0.2s ease;
}

.gl-search-zero-viewall:hover i {
    transform: translateX(3px);
}

.gl-search-zero-product-list {
    display: flex;
    flex-direction: column;
}

.gl-search-zero-product {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.gl-search-zero-product-img {
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: var(--gl-radius-surface);
    overflow: hidden;
}

.gl-search-zero-product-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.gl-search-zero-product-name {
    font-weight: 500;
    color: var(--gl-text-primary);
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.gl-search-zero-product-price {
    font-weight: 600;
    color: #ef4444;
}

.gl-search-zero-product-price del {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 4px;
}

.gl-search-zero-loading {
    font-size: var(--gl-text-base);
    color: var(--gl-text-muted);
    margin: 0;
    padding: 8px 0;
}

.gl-search-zero-keywords-col.is-empty,
.gl-search-zero-products-col.is-empty {
    display: none;
}

.gl-search-zero-state.is-empty {
    display: none;
}

/* ── Desktop presentation ── */

.gl-search-zero-state.is-desktop {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    padding: 32px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e5e5;
    border-top: 0;
}

.gl-search-zero-state.is-desktop .gl-search-zero-keywords-col {
    border-right: 1px solid #f5f5f5;
    padding-right: 40px;
}

.gl-search-zero-state.is-desktop .gl-search-zero-heading {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gl-search-zero-state.is-desktop .gl-search-zero-keywords {
    gap: 2px;
}

.gl-search-zero-state.is-desktop .gl-search-zero-keyword {
    font-size: var(--gl-text-base);
    font-weight: 500;
    color: var(--gl-text-primary);
    padding: 8px 12px;
    margin-left: -12px;
    border-radius: var(--gl-radius-button);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gl-search-zero-state.is-desktop .gl-search-zero-keyword:hover {
    color: var(--gl-color-accent);
    background-color: #f9f9f9;
}

.gl-search-zero-state.is-desktop .gl-search-zero-keyword--hot:hover .gl-hot-emoji {
    transform: scale(1.1);
}

.gl-search-zero-state.is-desktop .gl-search-zero-product-list {
    gap: 12px;
}

.gl-search-zero-state.is-desktop .gl-search-zero-product {
    gap: 16px;
    padding: 10px;
    margin-left: -10px;
    border-radius: var(--gl-radius-surface);
}

.gl-search-zero-state.is-desktop .gl-search-zero-product:hover {
    background-color: #f9f9f9;
}

.gl-search-zero-state.is-desktop .gl-search-zero-product:hover .gl-search-zero-product-name {
    color: var(--gl-color-accent);
}

.gl-search-zero-state.is-desktop .gl-search-zero-product:hover .gl-search-zero-product-img img {
    transform: scale(1.05);
}

.gl-search-zero-state.is-desktop .gl-search-zero-product-img {
    width: 76px;
    height: 76px;
    border: 1px solid #f0f0f0;
}

.gl-search-zero-state.is-desktop .gl-search-zero-product-name {
    font-size: var(--gl-text-md);
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: normal;
}

.gl-search-zero-state.is-desktop .gl-search-zero-product-price {
    font-size: var(--gl-text-base);
}

/* ── Mobile presentation ── */

.gl-search-zero-state.is-mobile {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 15px;
    padding-bottom: 40px;
}

.gl-search-zero-state.is-mobile .gl-search-zero-heading {
    font-size: var(--gl-text-lg);
    color: var(--gl-text-primary);
}

.gl-search-zero-state.is-mobile .gl-search-zero-keywords {
    gap: 16px;
}

.gl-search-zero-state.is-mobile .gl-search-zero-keyword {
    font-size: var(--gl-text-md);
}

.gl-search-zero-state.is-mobile .gl-search-zero-product-list {
    gap: 12px;
}

.gl-search-zero-state.is-mobile .gl-search-zero-product {
    gap: 12px;
    padding: 8px;
    margin-left: -8px;
    border-radius: var(--gl-radius-surface);
}

.gl-search-zero-state.is-mobile .gl-search-zero-product:active {
    background-color: #f5f5f5;
}

.gl-search-zero-state.is-mobile .gl-search-zero-product-img {
    width: 60px;
    height: 60px;
}

.gl-search-zero-state.is-mobile .gl-search-zero-product-name {
    font-size: var(--gl-text-base);
}

.gl-search-zero-state.is-mobile .gl-search-zero-product-price {
    font-size: var(--gl-text-base);
}

/* ==========================================================================
   TOP BAR / PROMO — Override & Supplement
   ========================================================================== */

.gl-promo-bar .gl-top-msg-promo,
.gl-promo-bar .gl-top-msg-link,
.gl-promo-bar .gl-top-msg :where(strong, b),
.gl-promo-bar a {
    color: inherit;
}

.gl-top-msg-promo {
    font-weight: 500;
}

.gl-top-msg-link {
    margin-left: 10px;
    text-decoration: none;
    font-weight: 500;
}

.gl-top-msg-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gl-top-msg-highlight {
    color: var(--gl-color-accent);
    font-weight: 600;
}

/* Preview-only: stack type variants for visual sign-off (template.html) */
.gl-sd-preview-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 40px;
}

.gl-sd-preview-stack__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 6px;
}

.gl-sd-preview-stack .gl-promo-bar {
    position: relative;
    z-index: 1;
}

.gl-sd-preview-keywords {
    max-width: 420px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.gl-sd-preview-keywords .gl-search-zero-heading {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.gl-sd-preview-keywords .gl-search-zero-keywords {
    gap: 2px;
}

.gl-sd-preview-keywords .gl-search-zero-keyword {
    font-size: 15px;
    font-weight: 500;
    color: #262626;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.gl-sd-preview-keywords .gl-search-zero-keyword:hover {
    color: #5a8219;
    background: #f9f9f9;
}

.gl-sd-preview-keywords .gl-search-zero-keyword--hot {
    justify-content: space-between;
}

.gl-sd-preview-keywords .gl-search-zero-keyword--image {
    width: 100%;
}

.gl-sd-preview-keywords .gl-search-zero-keyword--image img {
    width: 100%;
    height: auto;
}

.gl-top-msg :where(strong, b) {
    font-weight: 600;
}

.gl-top-msg-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-left: 8px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.gl-top-msg-link:hover {
    opacity: 0.8;
}

.gl-top-bar-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: var(--gl-text-secondary);
    margin-left: 20px;
    margin-right: 12px;
}

/* Tools stay readable on transparent top-bar */
.gl-top-bar .gl-locale-trigger,
.gl-top-bar .gl-locale-arrow,
.gl-top-bar .gl-top-link,
.gl-top-bar .gl-action-btn,
.gl-top-bar .gl-account-arrow {
    color: var(--gl-text-secondary);
}

.gl-top-bar .gl-locale-trigger:hover,
.gl-top-bar .gl-top-link:hover,
.gl-top-bar .gl-action-btn:hover {
    color: var(--gl-text-primary);
}

/* Old combined top-bar pages: hide empty left slot if still present */
.gl-top-bar.is-promo-empty [data-gl-top-msg] {
    display: none;
}

@media (max-width: 991px) {
    .gl-top-bar.is-topbar-m-hidden {
        display: none;
    }
}

/* ==========================================================================
   MAIN BAR — Mobile Left Actions
   ========================================================================== */

.gl-mobile-left-actions {
    display: none;
}

@media (max-width: 991px) {
    .gl-mobile-left-actions {
        display: flex;
        align-items: center;
    }

    .gl-menu-toggle {
        border: 1px solid #ebebeb;
    }
}

.gl-mobile-left-actions .gl-menu-toggle {
    margin-right: 15px;
}

.gl-mobile-left-actions .gl-action-btn i {
    font-size: 20px;
}

/* ==========================================================================
   DESKTOP SEARCH CONTAINER
   ========================================================================== */

#glDesktopSearchContainer {
    display: none;
    position: relative;
    z-index: 200;
    margin: 0;
    height: 42px;
    width: 220px;
}

@media (min-width: 992px) {
    #glDesktopSearchContainer {
        display: block;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    #glDesktopSearchContainer {
        width: 180px;
    }
}

@media (min-width: 992px) and (max-width: 1099px) {
    #glDesktopSearchContainer {
        width: 160px;
    }
}

@media (min-width: 1200px) {
    #glDesktopSearchContainer {
        width: 260px;
    }
}

@media (min-width: 1488px) {
    #glDesktopSearchContainer {
        width: 340px;
    }
}

/*
 * Below max breakpoint: hide search_type UI only.
 * display:none keeps the <select> enabled → default value still submits with the form.
 */
@media (max-width: 1487px) {
    #glDesktopSearchContainer .gl-search-category {
        display: none !important;
    }
}

#glDesktopSearchContainer .gl-header-search {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    background: #f5f5f5;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 20;
}

#glDesktopSearchContainer .gl-header-search:hover {
    background: #f0f0f0;
}

#glDesktopSearchContainer .gl-header-search:focus-within {
    background: #ffffff;
    border-color: #d4d4d4;
}

#glDesktopSearchContainer .gl-header-search-input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: var(--gl-text-base);
    color: var(--gl-text-primary);
}

#glDesktopSearchContainer .gl-header-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 12px;
    background: none;
    border: none;
    cursor: pointer;
}

#glDesktopSearchContainer .gl-header-search-submit i {
    font-size: var(--gl-text-md);
    color: var(--gl-text-secondary);
}

/* ==========================================================================
   MOBILE ACTION BUTTONS (in header right)
   ========================================================================== */

.gl-actions .gl-mobile-only i {
    font-size: 20px;
}

/* Locale in mobile nav drawer */
@media (max-width: 991px) {
    .gl-locale-wrap:hover .gl-locale-menu {
        display: none;
    }

    .gl-nav-locale {
        margin-top: auto;
        flex-shrink: 0;
        padding: 16px 20px 8px;
        border-top: 1px solid #e5e5e5;
        position: relative;
        overflow: visible;
    }

    .gl-locale-wrap--nav-drawer {
        width: 100%;
        margin-right: 0;
        height: auto;
        display: block;
    }

    .gl-locale-wrap--nav-drawer .gl-locale-trigger {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 10px 0;
        height: auto;
        font-size: var(--gl-text-base);
        font-weight: 600;
        color: var(--gl-text-primary);
    }

    .gl-locale-wrap--nav-drawer .gl-locale-trigger:hover,
    .gl-locale-wrap--nav-drawer.is-open .gl-locale-trigger {
        color: var(--gl-color-accent);
    }

    .gl-locale-wrap--nav-drawer .gl-locale-trigger .gl-flag-icon {
        width: 18px;
        height: 13.5px;
        margin: 0 10px 0 0;
        border-color: rgba(0, 0, 0, 0.08);
    }

    .gl-locale-wrap--nav-drawer .gl-locale-label {
        flex: 1;
        text-align: left;
    }

    .gl-locale-wrap--nav-drawer .gl-locale-arrow {
        font-size: var(--gl-text-lg);
        color: var(--gl-text-tertiary);
        transition: transform .2s;
    }

    .gl-locale-wrap--nav-drawer.is-open .gl-locale-arrow {
        transform: rotate(180deg);
    }

    /* Same dropdown panel as PC; opens upward (locale sits at drawer footer) */
    .gl-locale-wrap--nav-drawer .gl-locale-menu {
        position: absolute;
        top: auto;
        bottom: 100%;
        left: 0;
        right: 0;
        display: none;
        width: 100%;
        min-width: 0;
        margin-bottom: 4px;
        padding: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
        border-top: none;
        z-index: 10;
    }

    .gl-locale-wrap--nav-drawer.is-open .gl-locale-menu {
        display: block;
    }
}

/* ==========================================================================
   AUTH MODAL
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════════
   AUTH MODAL — Global Sign-in / Register Modal
   ═══════════════════════════════════════════════════════════════ */

/* ── Overlay wrapper ── */
.gl-auth-modal-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10100;
    display: none;
    font-family: inherit;
}

.gl-auth-modal-overlay.gl-auth-visible {
    display: block;
}

/* ── Backdrop ── */
.gl-auth-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gl-auth-modal-backdrop.gl-auth-show {
    opacity: 1;
}

/* ── Modal card ── */
.gl-auth-modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100% - 32px);
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--gl-radius-surface);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gl-auth-modal-card.gl-auth-show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* ── Modal header row ── */
.gl-auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 36px;
}

/* ── Title (inside header) ── */
.gl-auth-modal-title {
    font-size: var(--gl-text-2xl);
    font-weight: 600;
    color: var(--gl-text-primary);
    margin: 0;
    line-height: 1.3;
}

/* ── Close button ── */
.gl-auth-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gl-text-secondary);
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.gl-auth-modal-close:hover {
    background: #e5e5e5;
}

.gl-auth-modal-close i {
    font-size: var(--gl-text-xs);
}

/* ── Inner container ── */
.gl-auth-modal-inner {
    padding: 24px 36px 40px;
}

/* ── Trust / Promo area ── */
.gl-auth-modal-trust {
    margin-bottom: 24px;
    padding: 18px 0 0;
}

.gl-auth-trust-icons {
    display: flex;
    justify-content: space-evenly;
}

.gl-auth-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.gl-auth-trust-item img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

.gl-auth-trust-label {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-secondary);
    line-height: 1.3;
    font-weight: 500;
}

/* Nextend / Social Login Button (Refined v3)
 * DOM: .gl-auth-social > .nsl-container > .nsl-container-buttons > a > .nsl-button
 * Target: 48px row, white bg, gray border, Google logo, label weight 500
 * !important overrides Nextend inline styles
 */
.gl-auth-social {
    margin: 8px 0 0;
}

/* Reset Nextend container box model inside modal */
.gl-auth-social .nsl-container,
.gl-auth-social .nsl-container-block,
.gl-auth-social .nsl-container-buttons {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
}

/* Outer anchor: border, background, hover */
.gl-auth-social .nsl-container-buttons>a,
.gl-auth-social .nsl-container-buttons a[data-plugin="nsl"] {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    border: 1px solid #a3a3a3 !important;
    border-radius: var(--gl-radius-button) !important;
    background: #fff !important;
    color: var(--gl-text-primary) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.gl-auth-social .nsl-container-buttons>a:hover,
.gl-auth-social .nsl-container-buttons a[data-plugin="nsl"]:hover {
    border-color: var(--gl-text-primary) !important;
    background: #fafafa !important;
    color: var(--gl-text-primary) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* Inner .nsl-button flex row (icon + label) */
.gl-auth-social .nsl-container-buttons a .nsl-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 52px !important;
    height: auto !important;
    padding: 0 16px !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
    font-family: inherit !important;
    line-height: 1 !important;
}

/* SVG icon slot 24×24 */
.gl-auth-social .nsl-button-svg-container {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.gl-auth-social .nsl-button-svg-container svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* Label */
.gl-auth-social .nsl-button-label-container {
    font-size: var(--gl-text-base) !important;
    font-weight: 500 !important;
    color: var(--gl-text-primary) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

/* Nextend wraps provider name in <b>/<strong> — normalize weight */
.gl-auth-social .nsl-button-label-container b,
.gl-auth-social .nsl-button-label-container strong {
    font-weight: 500 !important;
}

.gl-auth-social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── OR Divider ── */
.gl-auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.gl-auth-divider::before,
.gl-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.gl-auth-divider span {
    padding: 0 16px;
    font-size: var(--gl-text-sm);
    color: var(--gl-text-muted);
    font-weight: 500;
}

/* ── Form Input ── */
#gl-auth-modal .gl-auth-input-group {
    margin-bottom: 16px;
}

#gl-auth-modal .gl-auth-input-group label {
    display: block;
    font-size: var(--gl-text-lg);
    font-weight: 500;
    color: var(--gl-text-primary);
    margin-bottom: 8px;
}

/* Email label row: label + Edit link */
.gl-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gl-auth-label-row label {
    font-size: var(--gl-text-lg);
    font-weight: 500;
    color: var(--gl-text-primary);
    margin-bottom: 0 !important;
}

.gl-auth-edit-link {
    font-size: var(--gl-text-base);
    font-weight: 500;
    color: var(--gl-color-accent);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: none;
    transition: color 0.3s;
}

.gl-auth-edit-link:hover {
    color: #476b14;
    text-decoration: underline;
}

.gl-auth-edit-link.visible {
    display: inline;
}

#gl-auth-modal .gl-auth-input {
    width: 100% !important;
    height: 48px !important;
    padding: 0 16px !important;
    font-size: 16px !important;
    color: var(--gl-text-primary) !important;
    background-color: var(--gl-text-inverse) !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: var(--gl-radius-field) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#gl-auth-modal .gl-auth-input:focus {
    border-color: var(--gl-color-accent) !important;
    box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.1) !important;
    background-color: var(--gl-text-inverse) !important;
    outline: none !important;
}

#gl-auth-modal .gl-auth-input::placeholder {
    color: var(--gl-text-muted) !important;
}

/* Locked (readonly) email state */
#gl-auth-modal .gl-auth-input.locked {
    background-color: #f5f5f5 !important;
    color: var(--gl-text-tertiary) !important;
    border-color: #e5e5e5 !important;
    cursor: default;
}

#gl-auth-modal .gl-auth-input.locked:focus {
    border-color: #e5e5e5 !important;
    box-shadow: none !important;
}

/* OTP expand area */
.gl-auth-otp-area {
    display: none;
    margin-top: 16px;
    animation: glFadeSlideIn 0.3s ease;
}

.gl-auth-otp-area.visible {
    display: block;
}

@keyframes glFadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Buttons ── */
.gl-auth-dual-btns {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.gl-auth-btn-primary {
    flex: 1;
    height: 48px;
    background: #5a8219;
    color: var(--gl-text-inverse);
    font-size: var(--gl-text-md);
    font-weight: 600;
    border: none;
    border-radius: var(--gl-radius-button);
    cursor: pointer;
    transition: opacity 0.3s;
}

.gl-auth-btn-primary:hover {
    opacity: 0.7;
}

.gl-auth-btn-secondary {
    flex: 1;
    height: 48px;
    background: #fff;
    color: var(--gl-text-primary);
    font-size: var(--gl-text-md);
    font-weight: 500;
    border: 1px solid #d4d4d4;
    border-radius: var(--gl-radius-button);
    cursor: pointer;
    transition: all 0.3s;
}

.gl-auth-btn-secondary:hover {
    border-color: var(--gl-text-primary);
}

#gl-auth-modal .gl-auth-btn-submit {
    display: block;
    width: 100%;
    height: 48px;
    background-color: var(--gl-color-accent);
    color: var(--gl-text-inverse);
    font-size: var(--gl-text-lg);
    font-weight: 600;
    border: none;
    border-radius: var(--gl-radius-button);
    cursor: pointer;
    transition: opacity 0.3s;
    margin-top: 4px;
    -webkit-appearance: none;
    appearance: none;
}

#gl-auth-modal .gl-auth-btn-submit:hover {
    opacity: 0.7;
}

#gl-auth-modal .gl-auth-btn-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#gl-auth-modal .gl-auth-btn-submit:disabled:hover {
    opacity: 0.45;
}

#gl-auth-modal .gl-auth-btn-submit.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

#gl-auth-modal .gl-auth-btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--gl-text-inverse);
    border-radius: 50%;
    animation: gl-auth-spin 0.6s linear infinite;
}

@keyframes gl-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── OTP code input ── */
#gl-auth-modal .gl-auth-otp-input {
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    font-size: 24px !important;
    font-weight: 600;
    letter-spacing: 10px;
    text-align: center;
    color: var(--gl-text-primary) !important;
    background-color: var(--gl-text-inverse) !important;
    border: 1px solid #d4d4d4 !important;
    border-radius: var(--gl-radius-field) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

#gl-auth-modal .gl-auth-otp-input:focus {
    border-color: var(--gl-color-accent) !important;
    box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.1) !important;
    background-color: var(--gl-text-inverse) !important;
    outline: none !important;
}

#gl-auth-modal .gl-auth-otp-input::placeholder {
    font-size: 20px !important;
    letter-spacing: 8px;
    font-weight: 300;
    color: #d4d4d4 !important;
}

/* ── Neutral step hints (OTP sent, register intro — not error/success) ── */
.gl-auth-hint,
.gl-auth-register-intro {
    font-size: var(--gl-text-base);
    font-weight: 400;
    color: var(--gl-text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.gl-auth-hint strong {
    color: var(--gl-text-tertiary);
    font-weight: 500;
}

/* ── Sub-hint below email input ── */
.gl-auth-hint-sub {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ── Sub-actions row ── */
.gl-auth-sub-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.gl-auth-sub-actions--end {
    justify-content: flex-end;
}

.gl-auth-sub-actions--start {
    justify-content: flex-start;
}

.gl-auth-sub-actions--between {
    justify-content: space-between;
}

.gl-auth-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--gl-text-base);
    font-weight: 500;
    color: var(--gl-text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s;
}

.gl-auth-link i {
    font-size: var(--gl-text-lg);
    transition: transform 0.2s ease;
}

.gl-auth-link:hover {
    color: var(--gl-color-accent);
}

.gl-auth-link--forward:hover i {
    transform: translateX(3px);
}

.gl-auth-link--back:hover i {
    transform: translateX(-3px);
}

.gl-auth-link--disabled {
    color: #bbb;
    cursor: default;
    pointer-events: none;
}

/* ── Forgot password link (inline with Password label) ── */
.gl-auth-forgot {
    font-size: var(--gl-text-base);
    color: var(--gl-text-muted);
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s;
}

.gl-auth-forgot:hover {
    color: var(--gl-color-accent);
}

/* ── Inline hint (compact, muted) ── */
.gl-auth-hint-inline {
    font-size: var(--gl-text-base);
    color: var(--gl-text-muted);
    white-space: nowrap;
}

/* ── Password toggle ── */
.gl-auth-input-wrap {
    position: relative;
    display: block;
}

#gl-auth-modal .gl-auth-input-wrap .gl-auth-input {
    padding-right: 48px;
}

.gl-pw-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gl-text-muted);
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
    font-size: var(--gl-text-xl);
}

.gl-pw-toggle:hover {
    color: var(--gl-text-primary);
}

/* ── Legal footer (New here + Terms) ── */
.gl-auth-modal-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.gl-auth-legal {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    text-align: left;
    line-height: 1.5;
}

.gl-auth-modal-footer .gl-auth-legal + .gl-auth-legal {
    margin-top: 8px;
}

/* Legacy pages: single .gl-auth-legal direct under .gl-auth-modal-inner */
.gl-auth-modal-inner > .gl-auth-legal {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.gl-auth-legal a {
    color: var(--gl-text-primary);
    text-decoration: underline;
}

.gl-auth-legal a:hover {
    color: var(--gl-color-accent);
}

/* ── Step views ── */
.gl-auth-step {
    display: none;
}

.gl-auth-step.active {
    display: block;
}

/* ── Error message ── */
.gl-auth-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--gl-radius-surface);
    padding: 10px 14px;
    font-size: var(--gl-text-sm);
    color: #dc2626;
    margin-bottom: 16px;
    display: none;
}

.gl-auth-error.visible {
    display: block;
}

/* ── Register step ── */
#gl-auth-step-register .gl-auth-link {
    padding: 0;
    font-size: var(--gl-text-base);
    color: var(--gl-color-accent);
}

#gl-auth-step-register .gl-auth-link:hover {
    text-decoration: underline;
}

/* ── Password strength indicator ── */
.gl-auth-pw-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gl-auth-pw-strength.visible {
    opacity: 1;
}

.gl-auth-pw-strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.gl-auth-pw-strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.gl-auth-pw-strength-label {
    font-size: var(--gl-text-xs);
    font-weight: 600;
    white-space: nowrap;
    min-width: 40px;
}

.gl-auth-pw-strength.level-weak .gl-auth-pw-strength-bar span {
    width: 33%;
    background: #d97706;
}

.gl-auth-pw-strength.level-weak .gl-auth-pw-strength-label {
    color: #d97706;
}

.gl-auth-pw-strength.level-medium .gl-auth-pw-strength-bar span {
    width: 66%;
    background: #2563eb;
}

.gl-auth-pw-strength.level-medium .gl-auth-pw-strength-label {
    color: #2563eb;
}

.gl-auth-pw-strength.level-strong .gl-auth-pw-strength-bar span {
    width: 100%;
    background: #5a8219;
}

.gl-auth-pw-strength.level-strong .gl-auth-pw-strength-label {
    color: var(--gl-color-accent);
}

/* ── Auth Modal Responsive ── */
@media (max-width: 575px) {
    .gl-auth-modal-card {
        border-radius: var(--gl-radius-surface);
    }

    .gl-auth-modal-header {
        padding: 20px 16px 0 24px;
    }

    .gl-auth-modal-inner {
        padding: 16px 24px 32px !important;
    }

    .gl-auth-modal-title {
        font-size: 20px;
    }

    .gl-auth-modal-trust {
        padding: 14px 0 0;
    }

    .gl-auth-trust-icons {
        gap: 0;
    }

    .gl-auth-dual-btns {
        flex-direction: column;
        gap: 8px;
    }

    #gl-auth-modal .gl-auth-modal-card {
        max-width: calc(100% - 24px);
        max-height: 95vh;
    }
}

/* ==========================================================================
   TOAST + BACK TO TOP
   ========================================================================== */

/* Global Toast Notification */
.gl-toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: center;
    width: 100%;
    max-width: 800px;
    /* Match the max-width of the actual static blocks */
    padding: 0 16px;
}

body #glToastContainer .gl-toast-item {
    pointer-events: auto;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy entrance */
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
    border: 1px solid #eaeaea;
    border-radius: var(--gl-radius-surface) !important;
    margin-bottom: 12px !important;
    width: 100%;
    display: block !important;
    padding: 20px 24px 20px 64px !important;
    /* Large left padding for the icon */
    background: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--gl-text-primary) !important;
    line-height: 1.5 !important;
    position: relative;
    overflow: hidden;
}

body #glToastContainer .gl-toast-item::before {
    /* Perfectly center the native WooCommerce icon vertically in the blank space */
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: 24px !important;
    margin: 0 !important;
    font-size: 20px !important;
}

body #glToastContainer .gl-toast-item.gl-toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* State-specific prominent left borders */
body #glToastContainer .woocommerce-message {
    border-left: 5px solid #5a8219 !important;
}

body #glToastContainer .woocommerce-error {
    border-left: 5px solid #ef4444 !important;
}

body #glToastContainer .woocommerce-info {
    border-left: 5px solid #737373 !important;
}

/* Inline Action Link ("View cart") inside Toast */
body #glToastContainer .gl-toast-item a,
body #glToastContainer .gl-toast-item a.button,
body #glToastContainer .gl-toast-item a.wc-forward {
    float: none !important;
    display: inline !important;
    font-weight: inherit !important;
    color: inherit !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 0 5px !important;
    white-space: normal !important;
    text-transform: none !important;
    font-size: inherit !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

body #glToastContainer .gl-toast-item a:hover,
body #glToastContainer .gl-toast-item a.button:hover,
body #glToastContainer .gl-toast-item a.wc-forward:hover {
    color: var(--gl-color-accent) !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    .gl-toast-container {
        top: 20px;
        max-width: 100%;
        padding: 0 16px;
    }

    body #glToastContainer .gl-toast-item {
        padding: 16px 20px 16px 54px !important;
        font-size: var(--gl-text-base) !important;
    }

    body #glToastContainer .gl-toast-item::before {
        left: 20px !important;
        font-size: 18px !important;
    }
}

/* 13. Back to Top — pairs with .gl-side-cart-tab above it (FAB stack) */

.gi-back-to-top {
    display: inline-block;
    background-color: var(--gl-text-primary);
    width: var(--gl-fab-w, 50px);
    height: var(--gl-fab-h, 50px);
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: var(--gl-fab-bottom, 100px);
    right: var(--gl-fab-right, 24px);
    opacity: 0;
    visibility: hidden;
    z-index: 9989;
    border: 1px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.5s, visibility 0.5s, transform 0.2s ease;
}

.gi-back-to-top:after {
    content: "\f125";
    font-family: "uicons-regular-rounded" !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: var(--gl-fab-h, 50px);
    color: var(--gl-text-inverse);
}

.gi-back-to-top:hover {
    background-color: var(--gl-text-primary);
    opacity: 0.9;
    transform: translateY(-2px);
}

.gi-back-to-top:active {
    background-color: #555;
}

.gi-back-to-top.show {
    opacity: 0.9;
    visibility: visible;
}

@media (max-width: 767px) {
    .gi-back-to-top {
        right: 15px;
        width: 40px;
        height: 40px;
        /* bottom 沿用 --gl-fab-bottom，避开底栏 */
    }

    .gi-back-to-top:after {
        font-size: 18px;
        line-height: 40px;
    }
}


/* ==========================================================================
   SITE FOOTER SHELL
   ========================================================================== */

/* 12. Site Footer Section */

/* 12.1 Footer Base Styles (PC) */

/* Footer contact link first item alignment */
.gi-footer .footer-top .gi-footer-contact .gi-footer-widget .gi-footer-links li:first-child {
    align-items: self-start;
}

/* Mobile toggle button - hidden on desktop */
.gi-heading-res {
    display: none;
}

/* Hover Effect: Premium Underline for Footer Links */
.premium-hover {
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.premium-hover::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.premium-hover:hover::after {
    width: 100%;
}

/* Footer widget icon hover fix */
.gi-footer-widget li:hover i[class^="fi-rr-"],
.gi-footer-widget li:hover i[class*=" fi-rr-"] {
    color: #5a8219;
}

/* 12.2 Footer Heading Styles (H4) */

/* Footer section heading - replaces Tailwind inline classes */
.gi-footer-heading {
    font-size: 14px;
    /* Increased from 13px for better readability */
    font-weight: 600;
    margin-bottom: 24px;
    /* Increased to separate heading from the list */
    color: #262626;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: block;
    width: 100%;
}

@media (max-width: 991px) {
    .gi-footer-heading {
        margin-bottom: 16px;
        /* Adjusted for mobile accordions */
    }
}

/* 12.3 Footer Link List Styles (LI + A) */

/* Footer link list item - replaces Tailwind inline classes */
.gi-footer-link {
    margin: 0;
    line-height: 1.5;
    border: 0;
    padding: 0;
    font-weight: 400;
    font-size: 16px;
    color: #666666;
    /* Lightened to contrast with headings */
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Footer link anchor - replaces Tailwind inline classes */
.gi-footer-links a {
    transition: all 0.2s ease-in-out;
    font-size: 14px;
    line-height: 24px;
    padding: 0;
    color: #737373;
    /* Lightened to contrast with headings */
    margin-bottom: 0;
    display: inline-block;
    position: relative;
    word-break: break-all;
    letter-spacing: 0.01em;
    font-weight: 400;
    text-decoration: none;
}

.gi-footer-links a:hover {
    color: #5a8219;
}

/* 12.4 Footer Social Icons Styles */

/* Social link item spacing */
.gi-footer-social .gi-footer-link {
    margin-right: 6px;
    margin-bottom: 0;
}

.gi-footer-social .gi-footer-link:last-child {
    margin-right: 0;
}

/* Social icon link button */
.gi-footer-social .gi-footer-link a {
    height: 36px;
    width: 36px;
    background: transparent;
    border: 1px solid #d4d4d4;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
}

.gi-footer-social .gi-footer-link a:hover {
    background-color: transparent;
    border-color: #5a8219;
}

/* Social icon styles */
.gi-footer-social .gi-footer-link i {
    font-size: 16px;
    color: #525252;
    transition: color 0.3s ease;
}

.gi-footer-social .gi-footer-link a:hover i {
    color: #5a8219;
}

/* 12.5 Footer Bottom Links Styles */

/* Footer bottom copy text */
.gi-copy {
    color: #525252;
    font-size: 12px;
    letter-spacing: 0.01em;
    text-align: center;
    font-weight: 400;
}

/* Footer bottom legal links */
.gi-copy a.site-name {
    color: #525252;
    margin-left: 8px;
    padding-left: 12px;
    border-left: 1px solid #e5e5e7;
    transition: color 0.3s ease;
    text-decoration: none;
}

.gi-copy a.site-name:hover {
    color: #5a8219;
}

/* 12.6 Footer Responsive Styles (Mobile ≤991px) */

@media (max-width: 991px) {

    /* Mobile toggle button - visible on mobile */
    .gi-heading-res {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        text-align: right;
    }

    .gi-heading-res i {
        font-size: 18px;
        color: #525252;
    }

    /* Accordion panels only — do not hide brand social links */
    .footer-top .gi-footer-col:not(.gi-footer-col-brand) .gi-footer-links.gi-footer-dropdown {
        display: none;
        padding: 0 0 14px 0;
    }
}

/* 12.7 Footer Dark Input Styles */

/* Dark theme variant — footer newsletter underline style */
.gi-input-dark {
    width: 100%;
    height: 40px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #404040;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    padding-right: 30px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

.gi-input-dark::placeholder {
    color: #525252;
}

.gi-input-dark:focus {
    border-bottom-color: #ffffff;
}

.gi-input-dark.gi-field-error {
    border-bottom-color: #f87171;
}

.gi-input-dark.gi-field-error:focus {
    border-bottom-color: #f87171;
}

.gi-input-dark.gi-field-valid {
    border-bottom-color: #5a8219;
}

.gi-input-dark.gi-field-valid:focus {
    border-bottom-color: #5a8219;
}

/* Dark theme variant — boxed with full border + radius */
.gi-input-dark-box {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background-color: #0a0a0a;
    border: 1px solid #404040;
    border-radius: var(--gl-radius-field);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

.gi-input-dark-box::placeholder {
    color: #525252;
}

.gi-input-dark-box:focus {
    border-color: #5a8219;
    box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.15);
}

.gi-input-dark-box.gi-field-error {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.gi-input-dark-box.gi-field-error:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.gi-input-dark-box.gi-field-valid {
    border-color: #5a8219;
}

.gi-input-dark-box.gi-field-valid:focus {
    border-color: #5a8219;
    box-shadow: 0 0 0 3px rgba(90, 130, 25, 0.15);
}

/* Footer error message styling */
.gi-footer .gi-error-msg {
    color: #f87171;
}

.gi-footer .gi-field-error {
    border-color: #f87171 !important;
}

/* 18. Footer — Tailwind-free overrides */

.gi-footer {
    background-color: var(--gl-surface-footer);
}

@media (max-width: 991px) {
    .gi-footer {
        background-color: var(--gl-surface-footer);
        background-image: none;
    }
}

.footer-top {
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 1px solid var(--gl-surface-footer-border);
}

@media (max-width: 767px) {
    .footer-top {
        padding-top: 24px;
        padding-bottom: 20px;
    }
}

.gi-footer-top-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .gi-footer-top-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .gi-footer-top-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .gi-footer-top-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .gi-footer-top-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .gi-footer-top-container {
        max-width: 1320px;
    }
}

@media (min-width: 1488px) {
    .gi-footer-top-container {
        max-width: 1488px;
    }
}

.gi-footer-grid {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.gi-footer-col {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 0;
}

/* Desktop: nav columns 18% each */
@media (min-width: 992px) {
    .gi-footer-col {
        width: 18%;
    }
}

/* Mobile footer accordion — after container/col base rules so it wins cascade */
@media (max-width: 991px) {
    .gi-footer-top-container {
        width: 100%;
        max-width: none;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
        align-items: stretch;
    }

    .gi-footer-grid {
        width: 100%;
    }

    .footer-top .gi-footer-col {
        padding-left: 0;
        padding-right: 0;
    }

    /* One top border per accordion row — no extra bottom (footer-bottom already has a line) */
    .footer-top .gi-footer-col:not(.gi-footer-col-brand) .gi-footer-heading {
        display: block;
        margin-bottom: 0;
        padding: 14px 0;
        min-height: 48px;
        line-height: 20px;
        box-sizing: border-box;
        border-top: 1px solid #e5e5e7;
    }
}

/* Brand column overrides */
.gi-footer-col-brand {
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .gi-footer-col-brand {
        width: 100%;
        margin-bottom: 28px;
        padding-bottom: 16px;
        /* No brand border here — mobile/tablet accordion rows own the dividers */
        border-bottom: none;
    }
}

@media (min-width: 992px) {
    .gi-footer-col-brand {
        width: 28%;
        margin-bottom: -20px;
        padding-bottom: 0;
        border-bottom: none;
    }
}

.gi-footer-account-stack {
    margin-top: 0;
}

@media (min-width: 992px) {
    .gi-footer-account-stack {
        margin-top: 20px;
    }
}

/* Footer Newsletter Bar — full-width section between nav and copyright */
.gi-footer-newsletter-bar {
    background-color: #f5f5f5;
    padding: 28px 0;
}

.gi-footer-newsletter-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 576px) {
    .gi-footer-newsletter-bar-inner {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .gi-footer-newsletter-bar-inner {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .gi-footer-newsletter-bar-inner {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .gi-footer-newsletter-bar-inner {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .gi-footer-newsletter-bar-inner {
        max-width: 1320px;
    }
}

@media (min-width: 1488px) {
    .gi-footer-newsletter-bar-inner {
        max-width: 1488px;
    }
}

@media (max-width: 767px) {
    .gi-footer-newsletter-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.gi-footer-newsletter-bar-label {
    flex-shrink: 0;
}

.gi-footer-newsletter-bar-title {
    font-size: 20px;
    font-weight: 600;
    color: #262626;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.gi-footer-newsletter-bar-desc {
    font-size: 14px;
    color: #525252;
    font-weight: 400;
    letter-spacing: 0;
}

/* Footer Brand Identity */
.gi-footer-brand {
    margin-bottom: 16px;
}

/* Tablet: brand column horizontal layout when full-width */
@media (min-width: 768px) and (max-width: 991px) {
    .gi-footer-col-brand {
        display: flex;
        align-items: flex-start;
        gap: 40px;
    }

    .gi-footer-brand {
        flex-shrink: 0;
        margin-bottom: 0;
    }
}

.gi-footer-brand-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.gi-footer-logo-img {
    height: 28px;
    width: auto;
    display: block;
}

/* Beat WC: body.woocommerce-page img { height: auto } */
body.woocommerce-page .gi-footer-logo-img,
body.woocommerce .gi-footer-logo-img {
    height: 28px;
}

.gi-footer-brand-tagline {
    font-size: 14px;
    /* Increased from 13px */
    color: #525252;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0;
}

/* Footer CTA Button */
.gi-footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid #d4d4d4;
    border-radius: var(--gl-radius-button);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 4px;
    margin-bottom: 20px;
}

.gi-footer-cta-btn:hover {
    border-color: #5a8219;
    color: #5a8219;
    background-color: transparent;
}

.gi-footer-cta-btn i {
    font-size: 14px;
}

.gi-footer-social {
    margin-top: 0;
    margin-bottom: 16px;
}

/* Social icons list */
.gi-footer-social ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}


@media (max-width: 991px) {
    .gi-footer-social ul {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    /* Brand: centered logo + social only */
    .footer-top {
        padding-top: 20px;
        padding-bottom: 8px;
    }

    .footer-top .gi-footer-col-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0 0 4px;
        padding: 0 0 16px;
    }

    .gi-footer-brand {
        margin: 0 0 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gi-footer-brand-logo {
        margin: 0;
    }

    .gi-footer-brand-tagline {
        display: none;
    }

    .gi-footer-col-brand .gi-footer-cta-btn {
        display: none;
    }

    .gi-footer-social {
        margin: 0;
    }

    .gi-footer-social .gi-footer-widget,
    .gi-footer-social .gi-footer-links {
        margin: 0;
        padding: 0;
    }

    .gi-footer-social ul {
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .gi-footer-social .gi-footer-link {
        margin: 0 5px;
    }

    .gi-footer-social .gi-footer-link a {
        height: 32px;
        width: 32px;
        border: 1px solid #e5e5e7;
        border-radius: 50%;
        color: #525252;
    }
}

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid var(--gl-surface-footer-border);
    background-color: var(--gl-surface-footer);
}

@media (max-width: 991px) {
    .footer-bottom {
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

.gi-footer-bottom-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .gi-footer-bottom-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .gi-footer-bottom-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .gi-footer-bottom-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .gi-footer-bottom-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .gi-footer-bottom-container {
        max-width: 1320px;
    }
}

@media (min-width: 1488px) {
    .gi-footer-bottom-container {
        max-width: 1488px;
    }
}

@media (max-width: 991px) {
    .gi-footer-bottom-container {
        width: 100%;
        max-width: none;
    }
}

/* reuses .gi-footer-grid */

.gi-bottom-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

@media (max-width: 991px) {
    .gi-bottom-info {
        flex-direction: column;
    }
}

.footer-copy {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .footer-copy {
        margin-bottom: 15px;
    }
}

.footer-bottom-payment {
    display: flex;
    justify-content: center;
}

.gi-footer-payment-img {
    height: 24px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Beat WC: body.woocommerce-page img { height: auto } */
body.woocommerce-page .gi-footer-payment-img,
body.woocommerce .gi-footer-payment-img {
    height: 24px;
}

.gi-footer-payment-img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* 14. Mobile Bottom Navigation */

.gi-mobile-nav {
    display: none;
}

@media (max-width: 991px) {
    .gi-mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }

    .gi-mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        color: var(--gl-text-secondary, #525252);
        transition: color 0.2s ease;
        padding: 6px 0;
    }

    .gi-mobile-nav-item i {
        font-size: 22px;
        line-height: 1;
    }

    .gi-mobile-nav-item span {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    .gi-mobile-nav-item:hover,
    .gi-mobile-nav-item.active {
        color: var(--gl-color-accent, #5a8219);
    }

    .gi-mobile-nav-item.active i {
        color: var(--gl-color-accent, #5a8219);
    }

    .footer-bottom,
    .gi-footer {
        padding-bottom: 80px !important;
    }

    .gi-back-to-top {
        bottom: var(--gl-fab-bottom, 100px);
    }
}

@media (max-width: 575px) {
    .gi-mobile-nav-item span {
        font-size: 10px;
    }

    .gi-mobile-nav-item i {
        font-size: 20px;
    }
}

/* ==========================================================================
   NEWSLETTER SECTION — outside footer
   Form classes: .gl-newsletter-form / __field / __input / __submit / __btn
   ========================================================================== */

.gl-newsletter-section {
    background: none;
    border: none;
}

.gl-newsletter-section-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.gl-newsletter-section-panel {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
    .gl-newsletter-section-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 280px;
    }
}

.gl-newsletter-section-media {
    position: relative;
    min-height: 200px;
    background-color: #e5e5e7;
    background-image: url('../images/common/subscribe.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    .gl-newsletter-section-media {
        min-height: 100%;
    }
}

.gl-newsletter-section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 28px;
    padding-left: 24px;
    padding-right: 24px;
    background-color: #f2f6ec;
}

.gl-newsletter-section-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gl-newsletter-section-title {
    font-size: var(--gl-text-2xl);
    font-weight: 600;
    color: var(--gl-text-primary);
    line-height: var(--gl-leading-tight);
}

@media (min-width: 992px) {
    .gl-newsletter-section-title {
        font-size: var(--gl-text-3xl);
    }
}

.gl-newsletter-section-desc {
    font-size: var(--gl-text-base);
    color: var(--gl-text-body);
    font-weight: 400;
    line-height: var(--gl-leading-relaxed);
}

/* Form — split input + button (gap 8px); independent of V1 .gl-subscribe--dark */
.gl-newsletter-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    width: 100%;
    max-width: none;
}

.gl-newsletter-form__field {
    flex: 1 1 auto;
    min-width: 0;
}

.gl-newsletter-form__input,
.gl-newsletter-form input.wpcf7-form-control[type="email"] {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    color: var(--gl-text-primary);
    font-size: var(--gl-text-base);
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.gl-newsletter-form__input::placeholder,
.gl-newsletter-form input.wpcf7-form-control::placeholder {
    color: var(--gl-text-muted);
}

.gl-newsletter-form__input:focus,
.gl-newsletter-form input.wpcf7-form-control:focus {
    border-color: var(--gl-color-accent);
    outline: none;
}

.gl-newsletter-form input.wpcf7-not-valid,
.gl-newsletter-form input.wpcf7-form-control.wpcf7-not-valid {
    border-color: #dc2626;
}

.gl-newsletter-form__submit {
    flex: 0 0 auto;
}

/* button. prefix + !important: beat Tailwind CDN preflight (script injects after CSS) */
button.gl-newsletter-form__btn,
.gl-newsletter-form__btn,
.gl-newsletter-form input.wpcf7-submit,
.gl-newsletter-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    background-color: #262626 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0;
    font-size: var(--gl-text-base);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

button.gl-newsletter-form__btn:hover,
.gl-newsletter-form__btn:hover,
.gl-newsletter-form input.wpcf7-submit:hover,
.gl-newsletter-form .wpcf7-submit:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.gl-newsletter-form .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    top: 48px;
    color: #dc2626;
    font-size: var(--gl-text-xs);
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .gl-newsletter-form {
        flex-wrap: wrap;
    }

    .gl-newsletter-form__field,
    .gl-newsletter-form__submit {
        flex: 1 1 100%;
        width: 100%;
    }

    .gl-newsletter-form__btn,
    .gl-newsletter-form .wpcf7-submit {
        width: 100%;
    }
}
