/* v-core.css — Global base + Header / Footer / Nav / Auth / Toast / Side Cart / Coupon (template MVP)
   Load after core.css. Newsletter → v-components.css
*/

/* ==========================================================================
   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;

    /* Radius */
    --gl-radius-button: 4px;
    --gl-radius-field: 8px;
    --gl-radius-surface: 8px;

    /* 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: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    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: "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01rem;
}

h2,
h3,
h4,
h5,
h6 {
    font-family: "Inter", sans-serif;
    font-weight: 400;
}

a {
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

/* v-core reset policy: see docs/gatekeeper-workflow.md §4.2 */

/* 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;
}

/* Modifier on .gl-container — e.g. gl-container gl-shop-layout gl-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;
    }
}

/* ==========================================================================
   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 */

.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: 'Inter', sans-serif;
    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: 'Inter', sans-serif;
    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: 'Inter', sans-serif;
    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
    }
}

/* Top Bar (desktop only) — fused into header, no independent bg/border */
.gl-top-bar {
    background: #262626;
    /* Dark theme background */
    border-bottom: 1px solid #404040;
    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: 8px 0;
    }

    .gl-top-bar .gl-top-right {
        display: none;
    }

    .gl-top-inner {
        justify-content: center;
        width: 100%;
    }

    .gl-top-msg {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        width: 100%;
        line-height: 1.5;
        padding: 4px 10px;
    }
}

.gl-top-msg {
    font-size: var(--gl-text-base);
    color: #e5e5e5;
    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: #e5e5e5;
    letter-spacing: .02em;
    transition: color .2s;
    cursor: pointer;
}

.gl-locale-trigger:hover {
    color: var(--gl-text-inverse);
}

.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: #e5e5e5;
    /* Adjusted for dark theme */
    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: #e5e5e5;
    /* Adjusted for dark theme */
}

.gl-top-right .gl-action-btn:hover {
    color: var(--gl-text-inverse);
    background: rgba(255, 255, 255, 0.1);
    /* Subtle white circle for dark background hover */
}

.gl-top-link {
    padding-left: 0;
    font-size: var(--gl-text-xs);
    color: #e5e5e5;
    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-inverse);
}

/* 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: 80px;
}

.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 — fused into header, minimal vertical spacing */
.gl-main-bar {
    padding: 20px 0;
    /* Substantially increased padding to make the header taller and more premium */
    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;
}

@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: 10px;
    pointer-events: none;
}

/* Cart in Top Bar positioning adjustment for the larger button */
.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)
   Moved from core.css — header cart badge above; drawer below.
   ============================================================ */

/* 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);
}

/* Minimized cart tab — desktop only; trigger: .gl-cart-trigger (not styled here) */
@media (min-width: 992px) {
    .gl-side-cart-tab {
        position: fixed;
        top: 50%;
        right: 0;
        z-index: 9990;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 18px 20px 22px;
        border: none;
        border-radius: 10px 0 0 10px;
        background-color: var(--gl-color-accent) !important;
        background-image: none !important;
        color: var(--gl-text-inverse);
        box-shadow: -2px 0 14px 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.25s 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(-50%) translateX(-2px);
        color: var(--gl-text-inverse);
    }

    .gl-side-cart-tab__icon-wrap {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .gl-side-cart-tab__icon-wrap i {
        font-size: 24px;
        line-height: 1;
    }

    .gl-side-cart-tab__badge {
        position: absolute;
        top: -6px;
        right: -10px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        background: var(--gl-text-inverse);
        color: var(--gl-color-accent);
        font-size: 11px;
        font-weight: 700;
        line-height: 20px;
        text-align: center;
        border-radius: 10px;
        border: 2px solid var(--gl-color-accent);
        pointer-events: none;
    }

    /* Side tab: white pill even if AJAX fragment drops __badge class */
    .gl-side-cart-tab .gl-cart-count {
        top: -6px;
        right: -10px;
        background: var(--gl-text-inverse);
        color: var(--gl-color-accent);
        font-size: 11px;
        font-weight: 700;
        border: 2px solid var(--gl-color-accent);
    }
}

@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;
}

.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: 6px;
    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 (trash icon) */
.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: 6px !important;
    transition: all 0.2s ease;
    text-decoration: none !important;
    font-size: var(--gl-text-base) !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 */
.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;
}

/* 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: Tailwind CDN preflight [type=button],button { background: transparent } loads after core.css */
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: Inter, sans-serif;
    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);
}


/* ── 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;
}


/* ── Section titles inside drawer ── */
.gl-coupon-drawer__section-title {
    font-size: var(--gl-text-sm);
    font-weight: 600;
    color: var(--gl-text-primary);
    letter-spacing: 0;
    margin: 0 0 10px;
    padding: 0;
}

.gl-coupon-drawer__section-title:not(:first-child) {
    margin-top: 20px;
}


/* ── Coupon Card (label + radio layout) ── */
.gl-coupon-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gl-coupon-card:last-child {
    margin-bottom: 0;
}

.gl-coupon-card:hover {
    border-color: #d4d4d4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gl-coupon-card__main {
    flex: 1;
    min-width: 0;
}

.gl-coupon-card__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--gl-text-xs);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
    margin-bottom: 6px;
}

.gl-coupon-card__badge--welcome {
    background: #f0fdf4;
    color: #166534;
}

.gl-coupon-card__badge--seasonal {
    background: #fff7ed;
    color: #c2410c;
}

.gl-coupon-card__badge--reward {
    background: #eef2ff;
    color: #4338ca;
}

.gl-coupon-card__badge--exclusive {
    background: #262626;
    color: var(--gl-text-inverse);
}

.gl-coupon-card__headline {
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.gl-coupon-card__amount {
    font-size: var(--gl-text-xl);
    font-weight: 700;
    color: var(--gl-text-primary);
    letter-spacing: 0;
    line-height: 1.2;
}

.gl-coupon-card__desc {
    font-size: var(--gl-text-sm);
    color: var(--gl-text-secondary);
    letter-spacing: 0;
    margin: 2px 0 0;
    line-height: 1.4;
}

.gl-coupon-card__condition {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    letter-spacing: 0;
    margin: 2px 0 0;
}

.gl-coupon-card__detail {
    font-size: var(--gl-text-xs);
    color: var(--gl-color-accent);
    font-weight: 500;
    letter-spacing: 0;
    margin: 2px 0 0;
    line-height: 1.4;
}

.gl-coupon-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
}

.gl-coupon-card__code-line {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    letter-spacing: 0;
}

.gl-coupon-card__date {
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    letter-spacing: 0;
}

.gl-coupon-card__note {
    font-size: var(--gl-text-xs);
    color: #d97706;
    letter-spacing: 0;
    margin: 4px 0 0;
    line-height: 1.4;
}


/* ── Radio selector (right side) ── */
.gl-coupon-card__radio {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.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-color-accent);
}

.gl-coupon-card__radio-input:checked~.gl-coupon-card__radio-dot {
    border-color: var(--gl-color-accent);
}

.gl-coupon-card__radio-input:checked~.gl-coupon-card__radio-dot::after {
    background: #5a8219;
}

.gl-coupon-card.is-selected {
    border-color: var(--gl-color-accent);
    background: #fafff5;
}

.gl-coupon-card.is-selected .gl-coupon-card__radio-dot {
    border-color: var(--gl-color-accent);
}

.gl-coupon-card.is-selected .gl-coupon-card__radio-dot::after {
    background: #5a8219;
}


/* ── 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 (not logged in) ── */
.gl-coupon-drawer__guest {
    display: flex;
    align-items: center;
    justify-content: center;
}

.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);
}

.gl-coupon-remove-link {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: var(--gl-text-xs);
    color: var(--gl-text-muted);
    cursor: pointer;
    letter-spacing: 0;
    transition: color 0.2s ease;
}

.gl-coupon-remove-link:hover {
    color: #dc2626;
    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: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gl-coupon-drawer__retry:hover {
    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;
        padding: 25px 12px
    }

    .gl-mega-col {
        width: 25%;
        padding-right: 20px;
        flex-shrink: 0
    }

    .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)
    }

    .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-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: #fafafa;
}

.gi-footer-main {
    border-top: 1px solid #e5e5e7;
    background-color: #fafafa;
}

.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;
}

@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 hover */
.gl-search-zero-product-img img {
    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, shop filter (unified) */
.gl-nav-close,
.gl-mobile-search-close,
.gl-side-cart-close,
.gl-coupon-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-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-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--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: 6px;
    overflow: hidden;
}

.gl-search-zero-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.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: 6px;
    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 — Override & Supplement
   ========================================================================== */

.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;
    }
}

.gl-top-msg-promo {
    font-weight: 500;
    color: var(--gl-text-inverse);
}

/* Optional helpers — use in JSON html, or use inline styles / custom classes */
.gl-top-msg-highlight {
    color: var(--gl-color-accent);
    font-weight: 600;
}

.gl-top-msg :where(strong, b) {
    font-weight: 600;
    color: var(--gl-text-inverse);
}

.gl-top-msg-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-left: 8px;
    font-weight: 600;
    color: var(--gl-color-accent);
    white-space: nowrap;
    transition: color 0.2s ease;
}

.gl-top-msg-link:hover {
    color: var(--gl-text-inverse);
}

.gl-top-bar-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.2);
    margin-left: 20px;
    margin-right: 12px;
}

/* ==========================================================================
   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: 300px;
    }
}

#glDesktopSearchContainer .gl-header-search {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    background: #efefef;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 20;
}

#glDesktopSearchContainer .gl-header-search:hover {
    background: #ebebeb;
}

#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 (Plan D)
   ═══════════════════════════════════════════════════════════════ */

/* ── 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: 16px;
    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: 12px;
    }

    .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: 10px !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 Button */

.gi-back-to-top {
    display: inline-block;
    background-color: var(--gl-text-primary);
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 4px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    z-index: 16;
    border: 1px solid #fff;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.5s, visibility 0.5s;
}

.gi-back-to-top:after {
    content: "\f125";
    font-family: "uicons-regular-rounded" !important;
    font-weight: normal;
    font-style: normal;
    font-size: var(--gl-text-lg);
    line-height: 40px;
    color: var(--gl-text-inverse);
}

.gi-back-to-top:hover {
    background-color: var(--gl-text-primary);
    opacity: 0.8;
}

.gi-back-to-top:active {
    background-color: #555;
}

.gi-back-to-top.show {
    opacity: 0.8;
    visibility: visible;
}

@media (max-width: 767px) {
    .gi-back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

