/* ==========================================================================
   Green Leaf theme — Sabujsathi
   Loaded only when "greenleaf" is the selected homepage theme.
   Every rule is scoped to body.gl-theme so other themes are unaffected.
   ========================================================================== */

body.gl-theme {
    --gl-primary: #0e6b43;
    --gl-primary-dark: #0a5133;
    --gl-primary-deep: #073823;
    --gl-leaf: #2fa866;
    --gl-lime: #a8d672;
    --gl-mint: #e8f4ec;
    --gl-mint-soft: #f3f9f5;
    --gl-page: #f6f9f7;
    --gl-ink: #13261c;
    --gl-body: #3b4d43;
    --gl-muted: #6b7c72;
    --gl-line: #e2ebe5;
    --gl-accent: #f2b33d;
    --gl-sale: #e2553f;
    --gl-radius: 14px;
    --gl-radius-sm: 10px;
    --gl-shadow-sm: 0 1px 2px rgba(16, 48, 32, .06), 0 1px 3px rgba(16, 48, 32, .05);
    --gl-shadow: 0 6px 24px -8px rgba(16, 48, 32, .18);
    --gl-shadow-lg: 0 18px 40px -16px rgba(16, 48, 32, .28);

    /* Re-map the core framework palette to the green brand */
    --primary: var(--gl-primary);
    --hov-primary: var(--gl-primary-dark);
    --soft-primary: rgba(14, 107, 67, .12);
    --secondary-base: var(--gl-leaf);
    --hov-secondary-base: #23894f;
    --soft-secondary-base: rgba(47, 168, 102, .14);
    --success: var(--gl-leaf);
    --soft-success: rgba(47, 168, 102, .14);
    --blue: var(--gl-primary);
    --hov-blue: var(--gl-primary-dark);

    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--gl-body);
    background: var(--gl-page);
    -webkit-font-smoothing: antialiased;
}

body.gl-theme .aiz-main-wrapper { background: var(--gl-page) !important; overflow-x: clip; }
body.gl-theme h1, body.gl-theme h2, body.gl-theme h3,
body.gl-theme h4, body.gl-theme h5, body.gl-theme h6 { color: var(--gl-ink); letter-spacing: -.01em; }
body.gl-theme a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
body.gl-theme ::selection { background: var(--gl-lime); color: var(--gl-primary-deep); }

/* ---------- Buttons & form controls (site-wide for this theme) ---------- */
body.gl-theme .btn { border-radius: 10px; font-weight: 600; }
body.gl-theme .btn-primary,
body.gl-theme .btn-soft-primary:hover { background-color: var(--gl-primary); border-color: var(--gl-primary); color: #fff; }
body.gl-theme .btn-primary:hover,
body.gl-theme .btn-primary:focus { background-color: var(--gl-primary-dark); border-color: var(--gl-primary-dark); }
body.gl-theme .btn-secondary-base { background-color: var(--gl-leaf); border-color: var(--gl-leaf); color: #fff; }
body.gl-theme .btn-outline-primary { color: var(--gl-primary); border-color: var(--gl-primary); }
body.gl-theme .btn-outline-primary:hover { background: var(--gl-primary); color: #fff; }
body.gl-theme .form-control,
body.gl-theme .custom-select,
body.gl-theme .bootstrap-select .btn { border-radius: 10px; border-color: var(--gl-line); }
body.gl-theme .form-control:focus { border-color: var(--gl-leaf) !important; box-shadow: 0 0 0 3px rgba(47, 168, 102, .15); }
body.gl-theme .modal-content { border-radius: 18px !important; overflow: hidden; }
body.gl-theme .dropdown-menu { border: 1px solid var(--gl-line); border-radius: 12px; box-shadow: var(--gl-shadow); }
body.gl-theme .dropdown-item.active,
body.gl-theme .dropdown-item:active { background: var(--gl-mint); color: var(--gl-primary); }
body.gl-theme .badge-primary { background-color: var(--gl-leaf); }
body.gl-theme .pagination .page-link,
body.gl-theme .page-item.disabled .page-link { border-radius: 10px !important; }
body.gl-theme .pagination .page-item.active .page-link { background: var(--gl-primary); border-color: var(--gl-primary); color: #fff; }
body.gl-theme .breadcrumb { background: transparent; }

/* ---------- Top bar ---------- */
body.gl-theme .gl-topbar { background: var(--gl-primary-deep); color: rgba(255, 255, 255, .78); font-size: 12px; }
body.gl-theme .gl-topbar > .container > div { min-height: 36px; }
body.gl-theme .gl-topbar-note { color: rgba(255, 255, 255, .85); font-weight: 500; }
body.gl-theme .gl-topbar-note i { color: var(--gl-lime); font-size: 15px; }
body.gl-theme .gl-topbar-right .list-inline-item { margin: 0 0 0 18px; }
body.gl-theme .gl-topbar-link { color: rgba(255, 255, 255, .78); display: inline-flex; align-items: center; padding: 8px 0; font-size: 12px; }
body.gl-theme .gl-topbar-link:hover { color: #fff; }
body.gl-theme .gl-topbar .dropdown-menu { font-size: 13px; }

/* ---------- Main header ---------- */
body.gl-theme .gl-header { background: #fff; box-shadow: 0 1px 0 var(--gl-line); }
body.gl-theme .gl-mainbar { background: #fff; }
body.gl-theme .gl-mainbar-inner { min-height: 84px; }
body.gl-theme .gl-logo img { height: 44px; width: auto; }
body.gl-theme .gl-icon-btn {
    width: 40px; height: 40px; border-radius: 12px; background: var(--gl-mint);
    color: var(--gl-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
}

body.gl-theme .gl-search-box {
    background: var(--gl-mint-soft); border: 1.5px solid var(--gl-line); border-radius: 999px;
    padding: 4px 4px 4px 18px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body.gl-theme .gl-search-box:focus-within { background: #fff; border-color: var(--gl-leaf); box-shadow: 0 0 0 4px rgba(47, 168, 102, .14); }
body.gl-theme .gl-search-icon { color: var(--gl-muted); font-size: 20px; }
body.gl-theme .gl-search-box .form-control {
    border: 0 !important; background: transparent; box-shadow: none !important; height: 42px; font-size: 14px; padding-left: 10px;
}
body.gl-theme .gl-search-btn {
    background: var(--gl-primary); color: #fff; border-radius: 999px; padding: 0 26px; height: 42px; font-size: 14px; white-space: nowrap;
}
body.gl-theme .gl-search-btn:hover { background: var(--gl-primary-dark); color: #fff; }
body.gl-theme .gl-search-results { border-radius: 16px; margin-top: 8px; border: 1px solid var(--gl-line); overflow: hidden; }

body.gl-theme .gl-actions { gap: 6px; }
body.gl-theme .gl-action { position: relative; }
body.gl-theme .gl-action > a,
body.gl-theme #compare > a,
body.gl-theme #wishlist > a {
    width: 44px; height: 44px; border-radius: 12px; display: inline-flex !important; align-items: center; justify-content: center;
    color: var(--gl-ink);
}
body.gl-theme .gl-action > a:hover,
body.gl-theme #compare > a:hover,
body.gl-theme #wishlist > a:hover { background: var(--gl-mint); }
body.gl-theme #compare svg path,
body.gl-theme #wishlist svg path { fill: var(--gl-ink); }
body.gl-theme #compare svg,
body.gl-theme #wishlist svg { width: 19px; height: 19px; }
body.gl-theme .gl-action-icon { font-size: 22px; color: var(--gl-ink); }
body.gl-theme .gl-user { padding: 6px 10px 6px 6px; border-radius: 14px; cursor: pointer; margin-left: 4px; }
body.gl-theme .gl-user:hover { background: var(--gl-mint); }
body.gl-theme .gl-avatar { background: var(--gl-mint); color: var(--gl-primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gl-line); }

body.gl-theme .gl-cart { margin-left: 8px; }
body.gl-theme .gl-cart > .nav-cart-box > a {
    background: var(--gl-primary); border-radius: 14px; height: 46px; padding: 0 16px !important; box-shadow: 0 8px 18px -10px rgba(14, 107, 67, .8);
}
body.gl-theme .gl-cart > .nav-cart-box > a:hover { background: var(--gl-primary-dark); }
body.gl-theme .gl-cart > .nav-cart-box > a svg { width: 21px; height: 18px; }
body.gl-theme .gl-cart > .nav-cart-box > a svg path { fill: #fff; }
body.gl-theme .gl-cart .dropdown-menu { border-radius: 16px !important; margin-top: 10px; }

body.gl-theme .gl-dropdown { border-radius: 16px !important; border: 1px solid var(--gl-line); overflow: hidden; }
body.gl-theme .gl-menu-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--gl-ink); font-size: 14px; font-weight: 500;
}
body.gl-theme .gl-menu-link i { font-size: 18px; color: var(--gl-primary); width: 20px; text-align: center; }
body.gl-theme .gl-menu-link:hover { background: var(--gl-mint-soft); color: var(--gl-primary); }
body.gl-theme .gl-menu-link.text-danger i { color: var(--gl-sale); }

/* ---------- Menu bar ---------- */
body.gl-theme .gl-menubar { height: 52px; background: #fff; border-top: 1px solid var(--gl-line); }
body.gl-theme .gl-cat-btn {
    width: 260px; height: 40px; border-radius: 12px; background: var(--gl-primary); color: #fff; cursor: pointer;
}
body.gl-theme .gl-cat-btn:hover { background: var(--gl-primary-dark); }
body.gl-theme #category-menu-bar-icon { font-size: 16px; }
body.gl-theme #category-menu-bar-icon.show { transform: rotate(180deg); }
body.gl-theme .gl-menu .list-inline-item a {
    display: inline-block; padding: 8px 14px; margin-right: 2px; font-size: 14px; font-weight: 600; color: var(--gl-ink);
    border-radius: 10px; white-space: nowrap;
}
body.gl-theme .gl-menu .list-inline-item a:hover,
body.gl-theme .gl-menu .list-inline-item a.active { color: var(--gl-primary); background: var(--gl-mint); }
body.gl-theme .gl-deal-link {
    color: var(--gl-primary); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; background: var(--gl-mint);
}
body.gl-theme .gl-deal-link:hover { background: var(--gl-primary); color: #fff; }
body.gl-theme .gl-deal-link i { color: var(--gl-accent); }
body.gl-theme .gl-cat-menu .aiz-category-menu,
body.gl-theme #click-category-menu .aiz-category-menu { border-radius: 0 0 16px 16px; box-shadow: var(--gl-shadow-lg); overflow: hidden; }
body.gl-theme .aiz-category-menu .category-nav-element > a:hover { color: var(--gl-primary) !important; background: var(--gl-mint-soft); }

/* ---------- Mobile sidebar ---------- */
body.gl-theme .gl-sidebar { background: #fff; }
body.gl-theme .gl-sidebar-head { background: var(--gl-primary); padding: 18px 16px 18px 20px; }
body.gl-theme .gl-sidebar-menu li a {
    display: flex; align-items: center; gap: 12px; padding: 12px 22px; color: var(--gl-ink); font-weight: 600; font-size: 14px;
}
body.gl-theme .gl-sidebar-menu li a i { font-size: 18px; color: var(--gl-primary); width: 20px; }
body.gl-theme .gl-sidebar-menu li a.active,
body.gl-theme .gl-sidebar-menu li a:hover { background: var(--gl-mint); color: var(--gl-primary); }
body.gl-theme .gl-sidebar-sep { height: 1px; background: var(--gl-line); margin: 8px 20px; }
body.gl-theme .gl-sidebar-help {
    display: flex; align-items: center; gap: 12px; background: var(--gl-mint); border-radius: 14px; padding: 14px; color: var(--gl-ink);
}
body.gl-theme .gl-sidebar-help i { font-size: 26px; color: var(--gl-primary); }

/* ---------- Generic section scaffolding ---------- */
body.gl-theme .gl-section { padding: 28px 0; }
body.gl-theme .gl-section-soft { background: var(--gl-mint-soft); border-top: 1px solid var(--gl-line); }
body.gl-theme .gl-section-head {
    display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px;
}
body.gl-theme .gl-eyebrow {
    display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--gl-leaf); margin-bottom: 4px;
}
body.gl-theme .gl-eyebrow-light { color: var(--gl-lime); }
body.gl-theme .gl-section-title { font-size: 24px; font-weight: 800; margin: 0; line-height: 1.2; }
body.gl-theme .gl-link { color: var(--gl-primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
body.gl-theme .gl-link:hover { color: var(--gl-leaf); }
body.gl-theme .gl-link i { transition: transform .2s ease; }
body.gl-theme .gl-link:hover i { transform: translateX(3px); }
body.gl-theme .gl-arrows { display: flex; gap: 8px; }
body.gl-theme .gl-arrows .slide-arrow {
    width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gl-line); background: #fff; color: var(--gl-ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px;
}
body.gl-theme .gl-arrows .slide-arrow:hover { background: var(--gl-primary); border-color: var(--gl-primary); color: #fff; }
body.gl-theme .gl-arrows .slide-arrow.link-disable { opacity: .4; pointer-events: none; }
body.gl-theme .gl-panel { background: #fff; border: 1px solid var(--gl-line); border-radius: 20px; padding: 22px 22px 8px; }
body.gl-theme .gl-btn-light { background: #fff; color: var(--gl-primary); border-radius: 999px; padding: 10px 26px; font-weight: 700; }
body.gl-theme .gl-btn-ghost-light {
    display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 13px;
    border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 7px 16px;
}
body.gl-theme .gl-btn-ghost-light:hover { background: #fff; color: var(--gl-primary); border-color: #fff; }

/* ---------- Hero ---------- */
body.gl-theme .gl-hero { padding: 24px 0 8px; }
body.gl-theme .gl-hero-slider { border-radius: 22px; overflow: hidden; box-shadow: var(--gl-shadow); }
/* Show slider images in full (never crop); side cards stretch to match */
body.gl-theme .gl-hero-slider img { display: block; width: 100%; height: auto !important; object-fit: contain; }
body.gl-theme .gl-hero-slider .slick-slide > div { line-height: 0; }
body.gl-theme .gl-hero-slider .slick-list { padding: 0 !important; }
body.gl-theme .gl-hero-fallback {
    min-height: 420px; border-radius: 22px; padding: 48px; color: #fff; display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(circle at 85% 20%, rgba(168, 214, 114, .35), transparent 45%),
                linear-gradient(135deg, var(--gl-primary) 0%, var(--gl-primary-deep) 100%);
}
body.gl-theme .gl-hero-fallback h1 { color: #fff; font-size: 44px; font-weight: 800; margin: 8px 0 0; }
body.gl-theme .gl-hero-side { display: flex; flex-direction: column; gap: 12px; height: 100%; }
body.gl-theme .gl-promo {
    flex: 1; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
    min-height: 120px; transition: transform .25s ease, box-shadow .25s ease;
}
body.gl-theme .gl-promo::after {
    content: ''; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}
body.gl-theme .gl-promo:hover { transform: translateY(-3px); box-shadow: var(--gl-shadow-lg); color: #fff; }
body.gl-theme .gl-promo-a { background: linear-gradient(135deg, #2fa866, #0e6b43); }
body.gl-theme .gl-promo-b { background: linear-gradient(135deg, #12805c, #073823); }
body.gl-theme .gl-promo-c { background: linear-gradient(135deg, #5a9e3a, #2c6a1f); }
body.gl-theme .gl-promo-icon {
    width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; background: rgba(255, 255, 255, .18);
    display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
}
body.gl-theme .gl-promo-text { position: relative; z-index: 1; }
body.gl-theme .gl-promo-title { display: block; font-size: 16px; font-weight: 800; }
body.gl-theme .gl-promo-sub { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
body.gl-theme .gl-promo-arrow { margin-left: auto; font-size: 18px; position: relative; z-index: 1; transition: transform .2s ease; }
body.gl-theme .gl-promo:hover .gl-promo-arrow { transform: translateX(4px); }

/* ---------- Service features ---------- */
body.gl-theme .gl-features { padding: 16px 0 4px; }
body.gl-theme .gl-features-inner {
    display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--gl-line); border-radius: 18px;
}
body.gl-theme .gl-feature { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
body.gl-theme .gl-feature + .gl-feature { border-left: 1px solid var(--gl-line); }
body.gl-theme .gl-feature i {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--gl-mint); color: var(--gl-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 24px;
}
body.gl-theme .gl-feature strong { display: block; color: var(--gl-ink); font-size: 14px; }
body.gl-theme .gl-feature span { display: block; color: var(--gl-muted); font-size: 12px; }

/* ---------- Category tiles ---------- */
body.gl-theme .gl-cat-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 10px 16px; background: #fff;
    border: 1px solid var(--gl-line); border-radius: 18px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.gl-theme .gl-cat-tile:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow); border-color: transparent; }
body.gl-theme .gl-cat-img {
    width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--gl-mint); display: block;
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--gl-line);
}
body.gl-theme .gl-cat-tile:hover .gl-cat-img img { transform: scale(1.08); }
body.gl-theme .gl-cat-name {
    margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--gl-ink); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px;
}
body.gl-theme .gl-cat-tile:hover .gl-cat-name { color: var(--gl-primary); }

body.gl-theme .gl-cat-feature { position: relative; display: block; height: 100%; min-height: 360px; border-radius: 20px; overflow: hidden; }
body.gl-theme .gl-cat-feature img { position: absolute; inset: 0; }
body.gl-theme .gl-cat-feature:hover img { transform: scale(1.05); }
body.gl-theme .gl-cat-feature-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 24px; color: #fff;
    background: linear-gradient(180deg, rgba(7, 56, 35, 0) 35%, rgba(7, 56, 35, .85) 100%);
}

/* ---------- Product card ---------- */
body.gl-theme .gl-card {
    background: #fff; border: 1px solid var(--gl-line); border-radius: var(--gl-radius); overflow: hidden; height: 100%;
    display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.gl-theme .gl-card:hover { transform: translateY(-4px); box-shadow: var(--gl-shadow-lg); border-color: transparent; }
body.gl-theme .gl-card-media { position: relative; aspect-ratio: 1 / 1; background: var(--gl-mint-soft); overflow: hidden; }
body.gl-theme .gl-card-media img { object-fit: cover; }
body.gl-theme .gl-card:hover .gl-card-media img { transform: scale(1.06); }
body.gl-theme .gl-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
body.gl-theme .gl-badge { font-size: 11px; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 999px; line-height: 1.4; }
body.gl-theme .gl-badge-sale { background: var(--gl-sale); }
body.gl-theme .gl-badge-dark { background: var(--gl-ink); }
body.gl-theme .gl-card-tools {
    position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 1;
    opacity: 0; transform: translateX(8px); transition: opacity .25s ease, transform .25s ease;
}
body.gl-theme .gl-card:hover .gl-card-tools { opacity: 1; transform: none; }
body.gl-theme .gl-card-tools a {
    width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--gl-ink); box-shadow: var(--gl-shadow-sm);
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
body.gl-theme .gl-card-tools a:hover { background: var(--gl-primary); color: #fff; }
body.gl-theme .gl-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
body.gl-theme .gl-card-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin: 0; min-height: 39px; }
body.gl-theme .gl-card-title a,
body.gl-theme span.gl-card-title {
    color: var(--gl-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.gl-theme .gl-card-title a:hover { color: var(--gl-primary); }
body.gl-theme .gl-card-rating { margin-top: 4px; }
body.gl-theme .gl-card-price { line-height: 1.25; }
body.gl-theme .gl-price { display: block; font-size: 17px; font-weight: 800; color: var(--gl-primary); }
body.gl-theme .gl-price-old { display: block; font-size: 12px; color: var(--gl-muted); }
body.gl-theme .gl-cart-btn {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: var(--gl-mint); color: var(--gl-primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 20px; position: static !important;
    transform: none !important; opacity: 1 !important; overflow: visible;
}
body.gl-theme .gl-cart-btn:hover,
body.gl-theme .gl-cart-btn.active { background: var(--gl-primary); color: #fff; }
/* Neutralise legacy card hover animations inside carousels */
body.gl-theme .gl-section .hov-animate-outline::before,
body.gl-theme .gl-section .hov-animate-outline::after { display: none; }
body.gl-theme .aiz-carousel .slick-list { padding-top: 6px; padding-bottom: 14px; }

/* ---------- Today's deal & flash sale ---------- */
body.gl-theme .gl-deal,
body.gl-theme .gl-flash {
    border-radius: 22px; overflow: hidden;
    background: radial-gradient(circle at 92% 8%, rgba(168, 214, 114, .25), transparent 40%),
                linear-gradient(135deg, var(--gl-primary) 0%, var(--gl-primary-deep) 100%);
}
body.gl-theme .gl-flash { padding: 26px 26px 12px; }
body.gl-theme .gl-deal-banner img { min-height: 100%; }
body.gl-theme .gl-deal-body { padding: 26px 26px 12px; }
body.gl-theme .gl-deal-item {
    display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 10px; height: 100%; color: var(--gl-ink);
    transition: transform .25s ease;
}
body.gl-theme .gl-deal-item:hover { transform: translateY(-4px); color: var(--gl-ink); }
body.gl-theme .gl-deal-img { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--gl-mint-soft); }
body.gl-theme .gl-deal-item:hover .gl-deal-img img { transform: scale(1.06); }
body.gl-theme .gl-deal-name {
    font-size: 13px; font-weight: 600; margin-top: 10px; line-height: 1.35; min-height: 35px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.gl-theme .gl-deal-price strong { display: block; color: var(--gl-primary); font-size: 15px; }
body.gl-theme .gl-deal-price del { font-size: 12px; color: var(--gl-muted); }
body.gl-theme .gl-countdown .countdown-item {
    background: rgba(255, 255, 255, .15); color: #fff; border-radius: 10px; min-width: 44px;
}

/* ---------- Banners ---------- */
body.gl-theme .gl-banner,
body.gl-theme .gl-banner a { border-radius: 18px; overflow: hidden; }
body.gl-theme .gl-banner img { transition: transform .4s ease; }
body.gl-theme .gl-banner a:hover img { transform: scale(1.03); }
body.gl-theme .gl-banner-tall .carousel-box a { height: 100%; }
body.gl-theme .gl-banner-tall img { height: 100%; min-height: 380px; }

/* ---------- Sellers & brands ---------- */
body.gl-theme .gl-seller {
    display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--gl-line);
    border-radius: 18px; padding: 22px 14px; height: 100%;
}
body.gl-theme .gl-seller:hover { box-shadow: var(--gl-shadow); }
body.gl-theme .gl-seller-logo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gl-mint); }
body.gl-theme .gl-seller-name { font-weight: 700; color: var(--gl-ink); margin: 12px 0 6px; }
body.gl-theme .gl-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
body.gl-theme .gl-brand {
    display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px; background: #fff;
    border: 1px solid var(--gl-line); border-radius: 16px;
}
body.gl-theme .gl-brand img { max-height: 56px; filter: grayscale(1); opacity: .75; }
body.gl-theme .gl-brand:hover { border-color: var(--gl-leaf); }
body.gl-theme .gl-brand:hover img { filter: none; opacity: 1; }

/* ---------- Footer ---------- */
body.gl-theme .gl-footer-about { background: #fff; border-top: 1px solid var(--gl-line); padding: 28px 0; }
body.gl-theme .gl-newsletter { padding: 36px 0 0; background: linear-gradient(180deg, var(--gl-page) 50%, var(--gl-primary-deep) 50%); }
body.gl-theme .gl-newsletter-inner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; color: #fff; border-radius: 22px;
    padding: 28px 32px; box-shadow: var(--gl-shadow-lg);
    background: radial-gradient(circle at 0% 100%, rgba(168, 214, 114, .3), transparent 45%),
                linear-gradient(120deg, var(--gl-leaf) 0%, var(--gl-primary) 100%);
}
body.gl-theme .gl-newsletter-inner h3 { color: #fff; }
body.gl-theme .gl-newsletter-icon {
    width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px; background: rgba(255, 255, 255, .18); margin-right: 16px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 28px;
}
body.gl-theme .gl-newsletter-form { display: flex; background: #fff; border-radius: 999px; padding: 5px; flex: 0 1 460px; }
body.gl-theme .gl-newsletter-form .form-control { border: 0; background: transparent; box-shadow: none !important; height: 44px; padding-left: 18px; }
body.gl-theme .gl-newsletter-form .btn { background: var(--gl-primary-deep); color: #fff; border-radius: 999px; padding: 0 26px; white-space: nowrap; }
body.gl-theme .gl-newsletter-form .btn:hover { background: var(--gl-ink); }

body.gl-theme .gl-footer { background: var(--gl-primary-deep); color: rgba(255, 255, 255, .72); padding: 48px 0 8px; }
body.gl-theme .gl-footer-logo img { height: 44px; width: auto; }
body.gl-theme .gl-footer-text { font-size: 13px; line-height: 1.7; color: rgba(255, 255, 255, .7); }
body.gl-theme .gl-footer-text * { color: inherit !important; }
body.gl-theme .gl-footer-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
body.gl-theme .gl-footer-links li { margin-bottom: 10px; }
body.gl-theme .gl-footer-links a { color: rgba(255, 255, 255, .7); font-size: 13px; }
body.gl-theme .gl-footer-links a:hover { color: var(--gl-lime); padding-left: 3px; }
body.gl-theme .gl-footer-contact li { display: flex; gap: 10px; font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
body.gl-theme .gl-footer-contact i { color: var(--gl-lime); font-size: 17px; margin-top: 1px; }
body.gl-theme .gl-footer-contact a { color: rgba(255, 255, 255, .8); word-break: break-word; }
body.gl-theme .gl-footer-contact a:hover { color: var(--gl-lime); }
body.gl-theme .gl-social .list-inline-item { margin-right: 6px; }
body.gl-theme .gl-social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
body.gl-theme .gl-social a:hover { background: var(--gl-leaf); }
body.gl-theme .gl-payments { margin-top: 32px; border-radius: 16px; overflow: hidden; background: #fff; }
body.gl-theme .gl-copyright {
    background: #052a1a; color: rgba(255, 255, 255, .6); padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .06);
}
body.gl-theme .gl-copyright a { color: var(--gl-lime); }

/* ---------- Mobile bottom nav ---------- */
body.gl-theme .gl-bottom-nav {
    background: rgba(255, 255, 255, .96) !important; backdrop-filter: blur(8px); border-top: 1px solid var(--gl-line);
    box-shadow: 0 -6px 20px -10px rgba(16, 48, 32, .25);
}
body.gl-theme .gl-bottom-link {
    display: flex; flex-direction: column; align-items: center; padding: 9px 0 8px; color: var(--gl-muted); font-size: 10px; font-weight: 600;
}
body.gl-theme .gl-bottom-link i { font-size: 22px; margin-bottom: 2px; }
body.gl-theme .gl-bottom-link.active { color: var(--gl-primary); }
body.gl-theme .gl-bottom-cart {
    width: 54px; height: 54px; margin: -22px 10px 0; border-radius: 50%; background: var(--gl-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 26px; position: relative;
    box-shadow: 0 8px 18px -6px rgba(14, 107, 67, .7); border: 4px solid #fff;
}
body.gl-theme .gl-bottom-cart:hover { color: #fff; background: var(--gl-primary-dark); }
body.gl-theme .gl-bottom-cart-count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--gl-accent);
    color: var(--gl-ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

/* ---------- Inner pages: listing, product details, cart, dashboard ---------- */
/* Product grids: drop the legacy bordered cells and space the cards out */
body.gl-theme .row.border-top.border-left:has(> .col > .gl-card) { border: 0 !important; }
body.gl-theme .col:has(> .gl-card) { border: 0 !important; padding-top: 8px; padding-bottom: 8px; box-shadow: none !important; }
body.gl-theme .aiz-card-box:not(.gl-card) { border-radius: var(--gl-radius); }
body.gl-theme .bg-white.border,
body.gl-theme .card { border-color: var(--gl-line) !important; }
body.gl-theme .card { border-radius: 16px; overflow: hidden; box-shadow: var(--gl-shadow-sm); }
body.gl-theme .product-gallery-thumb .carousel-box.slick-current img,
body.gl-theme .product-gallery-thumb .carousel-box img { border-radius: 10px; }
body.gl-theme .aiz-plus-minus .btn { border-radius: 10px; }
body.gl-theme .nav-tabs .nav-link.active { color: var(--gl-primary); border-bottom-color: var(--gl-primary); }
body.gl-theme .aiz-megabox .aiz-megabox-elem { border-radius: 12px; }
body.gl-theme .aiz-megabox > input:checked ~ .aiz-megabox-elem { border-color: var(--gl-primary); }
body.gl-theme .text-primary { color: var(--gl-primary) !important; }
body.gl-theme .bg-primary { background-color: var(--gl-primary) !important; }
body.gl-theme .border-primary { border-color: var(--gl-primary) !important; }
body.gl-theme .hov-text-primary:hover { color: var(--gl-primary) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
}
@media (max-width: 991.98px) {
    body.gl-theme .gl-mainbar-inner { min-height: 64px; }
    body.gl-theme .gl-logo img { height: 34px; }
    body.gl-theme .gl-search-btn { padding: 0 16px; }
    body.gl-theme .gl-hero-side { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    body.gl-theme .gl-hero-side::-webkit-scrollbar { display: none; }
    body.gl-theme .gl-promo { min-width: 240px; min-height: 92px; }
    body.gl-theme .gl-features-inner { grid-template-columns: repeat(2, 1fr); }
    body.gl-theme .gl-feature:nth-child(3) { border-left: 0; }
    body.gl-theme .gl-feature:nth-child(n+3) { border-top: 1px solid var(--gl-line); }
    body.gl-theme .front-header-search.active .gl-search-box { background: #fff; }
}
@media (max-width: 767.98px) {
    body.gl-theme .gl-section { padding: 20px 0; }
    body.gl-theme .gl-section-title { font-size: 19px; }
    body.gl-theme .gl-hero { padding-top: 14px; }
    body.gl-theme .gl-hero-slider { border-radius: 16px; }
    body.gl-theme .gl-hero-fallback { min-height: 260px; padding: 28px; }
    body.gl-theme .gl-hero-fallback h1 { font-size: 30px; }
    body.gl-theme .gl-feature { padding: 14px; gap: 10px; }
    body.gl-theme .gl-feature i { width: 38px; height: 38px; flex-basis: 38px; font-size: 20px; }
    body.gl-theme .gl-feature span { display: none; }
    body.gl-theme .gl-cat-img { width: 74px; height: 74px; }
    body.gl-theme .gl-card-tools { opacity: 1; transform: none; }
    body.gl-theme .gl-card-body { padding: 10px; }
    body.gl-theme .gl-price { font-size: 15px; }
    body.gl-theme .gl-cart-btn { width: 34px; height: 34px; flex-basis: 34px; font-size: 17px; }
    body.gl-theme .gl-panel { padding: 16px 12px 4px; border-radius: 16px; }
    body.gl-theme .gl-deal-body,
    body.gl-theme .gl-flash { padding: 18px 14px 6px; }
    body.gl-theme .gl-newsletter-inner { padding: 22px 18px; }
    body.gl-theme .gl-newsletter-form { flex-basis: 100%; }
    body.gl-theme .gl-footer { padding-top: 32px; }
}

/* Hero side cards on small laptops: keep titles on one line */
@media (min-width: 992px) and (max-width: 1199.98px) {
    body.gl-theme .gl-promo { padding: 14px; gap: 10px; min-height: 0; }
    body.gl-theme .gl-promo-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 21px; }
    body.gl-theme .gl-promo-title { font-size: 14px; white-space: nowrap; }
    body.gl-theme .gl-promo-sub { display: none; }
    body.gl-theme .gl-promo-arrow { font-size: 16px; }
}

/* ---------- Category photo cards (one row of 4) ---------- */
body.gl-theme .gl-cat-card {
    position: relative; display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 4 / 5;
    background: var(--gl-mint); box-shadow: var(--gl-shadow-sm); isolation: isolate;
    transition: transform .35s ease, box-shadow .35s ease;
}
body.gl-theme .gl-cat-card:hover { transform: translateY(-6px); box-shadow: var(--gl-shadow-lg); }
body.gl-theme .gl-cat-card-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease;
}
body.gl-theme .gl-cat-card:hover .gl-cat-card-img { transform: scale(1.08); }
body.gl-theme .gl-cat-card::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(7, 56, 35, 0) 30%, rgba(7, 56, 35, .55) 58%, rgba(5, 42, 26, .95) 100%);
}
body.gl-theme .gl-cat-card-count {
    position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); color: var(--gl-primary);
    font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
body.gl-theme .gl-cat-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; display: block; }
body.gl-theme .gl-cat-card-name { display: block; font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
body.gl-theme .gl-cat-card-subs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
body.gl-theme .gl-cat-card-subs span {
    font-size: 11px; font-weight: 600; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25);
    padding: 3px 9px; border-radius: 999px;
}
body.gl-theme .gl-cat-card-cta {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 800;
    color: var(--gl-primary-deep); background: var(--gl-lime); padding: 8px 16px; border-radius: 999px;
    transition: background .25s ease, gap .25s ease;
}
body.gl-theme .gl-cat-card:hover .gl-cat-card-cta { background: var(--gl-accent); gap: 10px; }
@media (max-width: 991.98px) {
    body.gl-theme .gl-cat-card { aspect-ratio: 3 / 4; }
}
@media (max-width: 575.98px) {
    body.gl-theme .gl-cat-card { border-radius: 16px; }
    body.gl-theme .gl-cat-card-body { padding: 12px; }
    body.gl-theme .gl-cat-card-name { font-size: 15px; }
    body.gl-theme .gl-cat-card-subs { display: none; }
    body.gl-theme .gl-cat-card-cta { margin-top: 8px; font-size: 11px; padding: 6px 11px; }
    body.gl-theme .gl-cat-card-count { top: 10px; left: 10px; font-size: 10px; padding: 4px 9px; }
}

/* ---------- Header category menu & sub-category panel ---------- */
body.gl-theme .gl-cat-menu .aiz-category-menu,
body.gl-theme #click-category-menu .aiz-category-menu { overflow: visible !important; }
body.gl-theme .gl-catmenu {
    position: relative; background: #fff; border: 1px solid var(--gl-line); border-top: 0;
    border-radius: 0 0 18px 18px; box-shadow: var(--gl-shadow-lg); padding: 8px;
}
body.gl-theme .gl-catmenu .category-nav-element { position: static; border: 0 !important; }
body.gl-theme .gl-catmenu-link {
    display: flex; align-items: center; gap: 12px; padding: 9px 10px !important; border-radius: 12px;
    color: var(--gl-ink); font-size: 14px; font-weight: 600;
}
body.gl-theme .gl-catmenu-thumb {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; overflow: hidden; background: var(--gl-mint);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gl-line);
}
body.gl-theme .gl-catmenu-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.gl-theme .gl-catmenu-arrow { margin-left: auto; color: var(--gl-muted); font-size: 14px; transition: transform .2s ease; }
body.gl-theme .gl-catmenu .category-nav-element:hover > .gl-catmenu-link { background: var(--gl-mint); color: var(--gl-primary); }
body.gl-theme .gl-catmenu .category-nav-element:hover .gl-catmenu-arrow { color: var(--gl-primary); transform: translateX(3px); }
body.gl-theme .gl-catmenu-all { border-top: 1px solid var(--gl-line); margin-top: 6px; padding-top: 6px; }
body.gl-theme .gl-catmenu-all a {
    display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--gl-primary);
}
body.gl-theme .gl-catmenu-all a:hover { background: var(--gl-mint); }

/* Pop-out panel: sized to its content instead of the framework's fixed 553px box */
body.gl-theme .gl-catmenu .sub-cat-menu {
    top: 0; left: calc(100% + 10px); width: 640px; max-width: calc(100vw - 340px); height: auto !important; min-height: 100%;
    max-height: 520px; padding: 20px; border: 1px solid var(--gl-line) !important; border-radius: 18px; background: #fff;
    box-shadow: var(--gl-shadow-lg); opacity: 0; visibility: hidden; transform: translateX(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 9;
}
body.gl-theme .gl-catmenu .category-nav-element:hover .sub-cat-menu { opacity: 1; visibility: visible; transform: none; }
/* Invisible bridge so the panel doesn't close while the pointer crosses the gap */
body.gl-theme .gl-catmenu .sub-cat-menu::before { content: ''; position: absolute; top: 0; bottom: 0; left: -12px; width: 12px; }

body.gl-theme .gl-submenu { display: flex; gap: 20px; align-items: stretch; }
body.gl-theme .gl-submenu-main { flex: 1; min-width: 0; }
body.gl-theme .gl-submenu-head {
    display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--gl-line);
}
body.gl-theme .gl-submenu-title { font-size: 17px; font-weight: 800; color: var(--gl-ink); }
body.gl-theme .gl-submenu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
body.gl-theme .gl-submenu-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--gl-line);
    color: var(--gl-ink); font-size: 13.5px; font-weight: 600; background: var(--gl-mint-soft);
}
body.gl-theme .gl-submenu-item:hover { border-color: var(--gl-leaf); background: #fff; color: var(--gl-primary); box-shadow: var(--gl-shadow-sm); }
body.gl-theme .gl-submenu-icon {
    width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: #fff; color: var(--gl-leaf);
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
body.gl-theme .gl-submenu-item:hover .gl-submenu-icon { background: var(--gl-primary); color: #fff; }
body.gl-theme .gl-submenu-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gl-theme .gl-submenu-arrow { color: var(--gl-muted); font-size: 13px; }
body.gl-theme .gl-submenu-children { margin: 6px 0 4px 50px; }
body.gl-theme .gl-submenu-children li { margin-bottom: 4px; }
body.gl-theme .gl-submenu-children a { font-size: 13px; color: var(--gl-muted); }
body.gl-theme .gl-submenu-children a:hover { color: var(--gl-primary); }
body.gl-theme .gl-submenu-feature {
    position: relative; flex: 0 0 200px; min-height: 220px; border-radius: 16px; overflow: hidden; display: block; color: #fff;
}
body.gl-theme .gl-submenu-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body.gl-theme .gl-submenu-feature:hover img { transform: scale(1.06); }
body.gl-theme .gl-submenu-feature::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 56, 35, 0) 35%, rgba(5, 42, 26, .9) 100%);
}
body.gl-theme .gl-submenu-feature-body { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: block; }
body.gl-theme .gl-submenu-feature .gl-cat-card-cta { margin-top: 8px; padding: 6px 12px; font-size: 12px; }
@media (max-width: 1399.98px) {
    body.gl-theme .gl-catmenu .sub-cat-menu { width: 560px; }
    body.gl-theme .gl-submenu-feature { flex-basis: 170px; }
}
body.gl-theme .gl-catmenu-name { flex: 1; min-width: 0; line-height: 1.3; white-space: normal; }

/* ---------- Copyright bar ---------- */
body.gl-theme .gl-copyright { padding: 16px 0; }
body.gl-theme .gl-copyright-inner { gap: 12px; }
body.gl-theme .gl-copyright-left { gap: 12px; }
body.gl-theme .gl-copyright-badge {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(168, 214, 114, .14); color: var(--gl-lime); font-size: 17px;
}
/* Neutralise any formatting pasted into the admin copyright text */
body.gl-theme .gl-copyright-text,
body.gl-theme .gl-copyright-text * {
    font-family: inherit !important; font-size: 13.5px !important; color: rgba(255, 255, 255, .7) !important;
    background: transparent !important; margin: 0 !important; line-height: 1.6;
}
body.gl-theme .gl-copyright-text p:empty,
body.gl-theme .gl-copyright-text p:has(> br:only-child) { display: none; }
body.gl-theme .gl-copyright-text a {
    color: var(--gl-lime) !important; font-weight: 700; text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor) !important; background-size: 0 1.5px !important;
    background-position: 0 100% !important; background-repeat: no-repeat !important; transition: background-size .25s ease;
}
body.gl-theme .gl-copyright-text a:hover { background-size: 100% 1.5px !important; }
body.gl-theme .gl-copyright-links .list-inline-item { margin: 0; }
body.gl-theme .gl-copyright-links .list-inline-item + .list-inline-item::before {
    content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .3);
    margin: 0 12px; vertical-align: middle;
}
body.gl-theme .gl-copyright-links a { font-size: 13px; color: rgba(255, 255, 255, .6); }
body.gl-theme .gl-copyright-links a:hover { color: var(--gl-lime); }
@media (max-width: 991.98px) {
    body.gl-theme .gl-copyright-left { flex-direction: column; text-align: center; gap: 8px; }
}
@media (min-width: 1200px) { body.gl-theme .gl-copyright { padding-bottom: 16px !important; } }
body.gl-theme .gl-copyright-text a { white-space: nowrap; }
