/* ============================================================
   Raagvan Store — site.css
   1. Tokens  2. Base  3. Buttons/badges  4. Header v2 (3-tier)
   5. Mobile header  6. Components  7. Footer  8. Responsive
   ============================================================ */

/* ------------------ 1. Design tokens ------------------ */
:root {
    --brand-primary: #198754;
    --brand-primary-dark: #146C43;
    --brand-accent: #FFC107;
    --brand-accent-hover: #E0A800;
    --brand-bg: #FFFFFF;
    --brand-text: #212529;
    --bs-warning: #FFC107;
    --bs-warning-rgb: 255, 193, 7;

    --green-darkest: #0F5132;
    --green-mid: #4EA87C;
    --mint: #D1E7DD;
    --mint-soft: #F0F7F3;

    --ink-900: #0f172a;
    --ink-800: #1f2937;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-400: #94a3b8;

    --surface: #f8fafc;
    --surface-tint: #fbfdff;
    --line-soft: #eef2f7;
    --line-mid: #e2e8f0;

    --danger: #dc3545;
    --logout-red: #dc2626;

    --shadow-rest: 0 4px 14px rgba(15, 23, 42, .07);
    --shadow-hover: 0 1rem 2rem rgba(25, 135, 84, .18);
    --shadow-float: 0 1.5rem 3rem rgba(15, 23, 42, .16);
    --shadow-sticky: 0 6px 24px rgba(15, 23, 42, .14);
    --ring-focus: 0 0 0 4px rgba(25, 135, 84, .15);

    /* legacy aliases */
    --toy-primary: var(--brand-primary);
    --toy-primary-dark: var(--brand-primary-dark);
    --toy-primary-light: var(--green-mid);
    --toy-accent: var(--brand-accent);
    --toy-bg: var(--brand-bg);
    --toy-dark: var(--ink-900);
}

/* ------------------ 2. Base ------------------ */
body {
    font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-text);
}
a { text-decoration: none; }
body.menu-open { overflow: hidden; }

/* ------------------ 3. Buttons / badges ------------------ */
.btn-toy {
    background: linear-gradient(135deg, var(--brand-primary), var(--green-mid));
    color: #fff; border: none; border-radius: 50rem; padding: .55rem 1.5rem;
    font-weight: 500; transition: all .25s ease;
}
.btn-toy:hover, .btn-toy:focus { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline-toy { border: 2px solid var(--brand-primary); color: var(--brand-primary); border-radius: 50rem; font-weight: 500; transition: all .2s ease; }
.btn-outline-toy:hover { background: var(--brand-primary); color: #fff; }

.bg-purple { background-color: var(--brand-primary) !important; color: #fff !important; }
.text-purple { color: var(--brand-primary) !important; }
.badge.bg-orange { background-color: var(--brand-accent) !important; color: var(--ink-800) !important; }

.dropdown-menu { border-radius: 14px; border: none; box-shadow: var(--shadow-float); }
.dropdown-item:active { background: var(--brand-primary); }

/* ------------------ 4. Header v2 (Shopwise-style 3-tier) ------------------ */
.site-header { position: sticky; top: 0; z-index: 1030; transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sticky); }
.site-header *:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 4px; }

/* Tier 1 — topbar */
.top-header {
    background: linear-gradient(135deg, var(--green-darkest) 0%, var(--brand-primary-dark) 100%);
    border-bottom: 2px solid var(--brand-accent);
    font-size: .78rem;
    color: #cbd5e1;
}
.top-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.top-header-item { display: inline-flex; align-items: center; gap: .45rem; letter-spacing: .3px; color: #cbd5e1; }
.top-header-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.top-header-link {
    display: inline-flex; align-items: center; gap: .4rem; padding: .35rem 0;
    color: #cbd5e1; font-weight: 500; letter-spacing: .3px; transition: color .2s ease;
}
.top-header-link:hover { color: var(--brand-accent); }

/* Tier 2 — main bar */
.main-header { background: #fff; border-bottom: 1px solid var(--line-soft); }
.main-header-inner { display: flex; align-items: center; gap: 1.1rem; min-height: 72px; }

.mobile-menu-toggle {
    width: 42px; height: 42px; border: none; background: transparent; border-radius: .75rem;
    font-size: 1.45rem; color: var(--ink-700); line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease, color .2s ease;
}
.mobile-menu-toggle:hover { background: var(--mint); color: var(--brand-primary); }

.header-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.header-brand-logo {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
    background: #fff; border: 2px solid var(--line-mid);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .12);
    transition: transform .3s ease;
}
.header-brand:hover .header-brand-logo { transform: scale(1.06) rotate(-4deg); }
.header-brand-text { font-weight: 800; font-size: 1.35rem; letter-spacing: -.3px; color: var(--ink-900); white-space: nowrap; }
.header-brand-text span { color: var(--brand-primary); }

.bottom-nav { display: flex; align-items: center; gap: .15rem; margin-left: .35rem; }
.bottom-nav-link {
    position: relative; display: inline-flex; align-items: center; gap: .35rem;
    padding: .55rem .8rem; border-radius: .6rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
    color: var(--ink-700); white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}
.bottom-nav-link:hover { color: var(--brand-primary); background: var(--mint); }
.bottom-nav-link.active { color: var(--brand-primary); }
.bottom-nav-link.active::after {
    content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 1px;
    height: 2.5px; border-radius: 2px; background: var(--brand-primary);
}
.nav-drop > .bottom-nav-link .bi-chevron-down { font-size: .65rem; transition: transform .25s ease; }
.nav-drop:hover > .bottom-nav-link .bi-chevron-down { transform: rotate(180deg); }

/* Mega menus */
.mega-menu {
    position: absolute; top: 100%; left: 50%; z-index: 1050;
    transform: translate(-50%, 12px);
    background: #fff; border-radius: 1rem; border-top: 3px solid var(--brand-accent);
    box-shadow: var(--shadow-float);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.nav-drop { position: relative; }
.nav-drop:hover .mega-menu,
.nav-drop:focus-within .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 8px); }

.mega-menu-categories { width: 560px; padding: 1rem 1rem .55rem; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; max-height: 400px; overflow-y: auto; padding-right: 2px; }
.mega-cat-tile {
    display: block; border-radius: .75rem; overflow: hidden;
    border: 1px solid var(--line-soft); background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.mega-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mega-cat-thumb { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--surface); }
.mega-cat-name { display: block; padding: .55rem .75rem; text-align: center; font-size: .78rem; font-weight: 600; color: var(--ink-800); transition: color .18s ease; }
.mega-cat-tile:hover .mega-cat-name { color: var(--brand-primary); }

.mega-menu-products { width: 700px; padding: 1.1rem; }
.mega-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.mega-product-card {
    display: block; background: #fff; border-radius: .75rem; overflow: hidden;
    border: 1px solid var(--line-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mega-product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.mega-product-thumb-wrap { aspect-ratio: 1/1; background: var(--surface); overflow: hidden; }
.mega-product-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mega-product-card:hover .mega-product-thumb { transform: scale(1.07); }
.mega-product-body { padding: .55rem .65rem .7rem; }
.mega-product-name {
    font-size: .8rem; font-weight: 600; color: var(--ink-800); margin-bottom: .15rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .18s ease;
}
.mega-product-card:hover .mega-product-name { color: var(--brand-primary); }
.mega-product-price { font-size: .84rem; font-weight: 700; color: var(--brand-primary); }
.mega-foot-strip {
    display: block; margin: .9rem -1.1rem -.9rem; padding: .6rem;
    background: var(--surface-tint); border-top: 1px solid var(--line-soft);
    text-align: center; font-size: .78rem; font-weight: 600; color: var(--ink-600);
    border-radius: 0 0 1rem 1rem; transition: color .18s ease, background .18s ease;
}
.mega-foot-strip:hover { color: var(--brand-primary); background: var(--mint-soft); }

/* Header search */
.header-search { position: relative; flex: 0 1 340px; margin-left: auto; }
.header-search-input {
    width: 100%; border: 2px solid var(--line-mid); background: var(--surface);
    border-radius: 50rem; padding: .55rem 3rem .55rem 1.15rem;
    font-size: .85rem; color: var(--ink-800); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.header-search-input::placeholder { color: var(--ink-400); }
.header-search-input:focus { border-color: var(--brand-primary); background: #fff; box-shadow: var(--ring-focus); }
.header-search-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--green-mid));
    color: #fff; font-size: .95rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: filter .2s ease, transform .2s ease;
}
.header-search-btn:hover { filter: brightness(1.08); transform: translateY(-50%) scale(1.05); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .2rem; margin-left: .35rem; }
.header-action-btn {
    position: relative; width: 42px; height: 42px;
    border: none; background: transparent; border-radius: .75rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.28rem; color: var(--ink-700);
    transition: background .2s ease, color .2s ease;
}
.header-action-btn:hover { background: var(--mint); color: var(--brand-primary); }
.header-action-btn .bi-cart3, .header-action-btn .bi-heart { line-height: 1; }

.header-badge {
    position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--brand-accent); color: var(--ink-800);
    border: 2px solid #fff; border-radius: 50rem;
    font-size: .62rem; font-weight: 700; line-height: 14px; text-align: center;
    animation: badgePop .3s ease;
}
@keyframes badgePop { 0% { transform: scale(.4); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Account area */
.account-drop { position: relative; }
.account-toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .3rem .65rem .3rem .35rem; border: none; background: transparent; border-radius: 50rem;
    transition: background .2s ease;
}
.account-toggle:hover { background: var(--surface); }
.account-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--green-mid));
    color: #fff; font-weight: 700; font-size: .95rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.account-name {
    max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: .85rem; font-weight: 600; color: var(--ink-800);
}
.account-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); width: 235px; z-index: 1060;
    background: #fff; border-radius: .9rem; border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-float); padding: .5rem;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.account-drop:hover .account-dropdown,
.account-drop:focus-within .account-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.account-drop-head {
    padding: .6rem .75rem .5rem; margin-bottom: .35rem;
    font-size: .72rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
    color: var(--ink-500); border-bottom: 1px dashed var(--line-soft);
}
.account-link {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .75rem; border-radius: .5rem;
    font-size: .86rem; font-weight: 500; color: var(--ink-700);
    transition: background .18s ease, color .18s ease;
}
.account-link:hover { background: var(--mint); color: var(--brand-primary); }
.account-link.logout { color: var(--logout-red); }
.account-link.logout:hover { background: #fee2e2; color: var(--logout-red); }

.header-signup-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--brand-primary); color: #fff; border: none; border-radius: 50rem;
    padding: .5rem 1.15rem; font-size: .8rem; font-weight: 600; letter-spacing: .3px;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.header-signup-btn:hover { background: var(--brand-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.header-login-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    background: transparent; color: var(--brand-primary); border: 2px solid var(--brand-primary);
    border-radius: 50rem; padding: .32rem 1rem; font-size: .8rem; font-weight: 600;
    white-space: nowrap; transition: background .2s ease, color .2s ease;
}
.header-login-btn:hover { background: var(--brand-primary); color: #fff; }

/* Mini-cart */
.cart-drop { position: relative; }
.mini-cart {
    position: absolute; right: 0; top: calc(100% + 10px); width: 320px; z-index: 1060;
    background: #fff; border-radius: 1rem; border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-float); padding: 1rem;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}
.cart-drop:hover .mini-cart,
.cart-drop:focus-within .mini-cart { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mini-cart-head {
    padding-bottom: .6rem; margin-bottom: .35rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    color: var(--ink-500); border-bottom: 1px solid var(--line-soft);
}
.mini-cart-list { max-height: 280px; overflow-y: auto; }
.mini-cart-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 0; border-bottom: 1px dashed var(--line-soft); }
.mini-cart-item:last-child { border-bottom: none; }
.mini-cart-thumb { width: 52px; height: 52px; border-radius: .6rem; object-fit: cover; background: var(--surface); flex-shrink: 0; }
.mini-cart-info { min-width: 0; flex: 1; }
.mini-cart-name { font-size: .84rem; font-weight: 600; color: var(--ink-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-cart-meta { font-size: .74rem; color: var(--ink-500); }
.mini-cart-price { font-size: .84rem; font-weight: 700; color: var(--brand-primary); white-space: nowrap; }
.mini-cart-empty { text-align: center; color: var(--ink-500); font-size: .84rem; padding: 1.25rem 0; }
.mini-cart-foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .75rem; }
.mini-cart-subtotal-label { font-size: .8rem; font-weight: 500; color: var(--ink-600); }
.mini-cart-subtotal { font-size: 1rem; font-weight: 800; color: var(--brand-primary); }
.btn-mini-checkout {
    display: inline-block; background: linear-gradient(135deg, var(--brand-primary), var(--green-mid));
    color: #fff; border: none; border-radius: 50rem; padding: .45rem 1.1rem;
    font-size: .8rem; font-weight: 600; white-space: nowrap;
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-mini-checkout:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: var(--shadow-hover); color: #fff; }

/* ------------------ 5. Mobile header ------------------ */
.mobile-search {
    display: none; background: #fff; border-bottom: 1px solid var(--line-soft);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
}
.mobile-search.open { max-height: 96px; }
.mobile-search-inner { padding: .75rem 0 .9rem; }

.mobile-menu {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85vw); z-index: 2000;
    background: #fff; box-shadow: var(--shadow-float);
    transform: translateX(-105%); transition: transform .3s ease;
    display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-backdrop {
    position: fixed; inset: 0; z-index: 1990;
    background: rgba(15, 23, 42, .55);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu-backdrop.open { opacity: 1; visibility: visible; }
.mobile-menu-head {
    background: linear-gradient(135deg, var(--brand-primary), var(--green-mid));
    color: #fff; padding: 1.05rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    flex-shrink: 0;
}
.mobile-menu-title {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .95rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.mobile-menu-title img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); }
.mobile-menu-close {
    width: 38px; height: 38px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.05rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.mobile-menu-close:hover { background: rgba(255, 255, 255, .3); }
.mobile-menu-body { flex: 1; overflow-y: auto; padding: 1rem; }
.mobile-menu-section {
    font-size: .7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ink-400); padding: .85rem .85rem .35rem;
}
.mobile-nav-link {
    display: flex; align-items: center; gap: .65rem;
    padding: .72rem .85rem; border-radius: .6rem; border-left: 3px solid transparent;
    font-size: .92rem; font-weight: 600; color: var(--ink-800);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.mobile-nav-link i { width: 20px; text-align: center; color: var(--ink-600); }
.mobile-nav-link:hover, .mobile-nav-link.active { background: var(--mint); color: var(--brand-primary); }
.mobile-nav-link.active { border-left-color: var(--brand-primary); }
.mobile-sub-link {
    display: block; padding: .55rem .85rem .55rem 1.9rem; border-left: 3px solid transparent;
    font-size: .86rem; font-weight: 500; color: var(--ink-600);
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.mobile-sub-link:hover, .mobile-sub-link.active { background: var(--mint-soft); color: var(--brand-primary); border-left-color: var(--brand-primary); }
.mobile-menu-divider { border: none; border-top: 1px dashed var(--line-soft); margin: .6rem 0; }
.mobile-menu .logout-link { color: var(--logout-red); }

/* ------------------ 6. Components ------------------ */
.product-card {
    background: #fff; border: none; border-radius: 18px; overflow: hidden; height: 100%;
    box-shadow: var(--shadow-rest);
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card .card-img-wrap { position: relative; padding-top: 100%; background: var(--surface); overflow: hidden; }
.product-card .card-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .stock-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.product-card .price { color: var(--brand-primary); font-weight: 700; font-size: 1.15rem; }
.product-card .p-name { color: var(--ink-900); font-weight: 500; font-size: .95rem; min-height: 44px; }

/* Shopwise-style product box (hover zoom + reveal action icon) */
.product-box {
    position: relative; background: #fff; border-radius: 18px; overflow: hidden;
    height: 100%; display: flex; flex-direction: column;
    box-shadow: var(--shadow-rest);
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-box-thumb { position: relative; padding-top: 100%; background: var(--surface); overflow: hidden; }
.product-box-thumb a { position: absolute; inset: 0; display: block; }
.product-box-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .45s ease;
}
.product-box:hover .product-box-thumb img { transform: scale(1.07); }
.product-box .stock-badge { position: absolute; top: 12px; left: 12px; z-index: 3; }
.product-box .product-box-wish {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 38px; height: 38px; border: none; border-radius: 50%;
    background: #fff; color: var(--ink-700);
    box-shadow: 0 4px 14px rgba(15,23,42,.14);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; text-decoration: none;
    opacity: 0; transform: translateX(8px);
    transition: opacity .25s ease, transform .25s ease, background .18s ease, color .18s ease;
}
.product-box:hover .product-box-wish { opacity: 1; transform: none; }
.product-box .product-box-wish:hover { background: var(--mint); color: var(--brand-primary); }
.product-box-body { padding: .95rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-box-category {
    font-size: .68rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--ink-400); margin-bottom: .3rem;
}
.product-box-name {
    color: var(--ink-900); font-weight: 500; font-size: .95rem; line-height: 1.35;
    transition: color .18s ease;
}
.product-box-name:hover { color: var(--brand-primary); }
.product-box-foot {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    margin-top: auto; padding-top: .6rem;
}
.product-box-price { color: var(--brand-primary); font-weight: 700; font-size: 1.12rem; }

/* Hero carousel (Shopwise-style full slider) */
.hero-full { margin-top: 1.5rem; }
.hero-carousel { border-radius: 24px; overflow: hidden; position: relative; }
.hero-carousel img { width: 100%; height: 600px; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0; display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(10,15,30,.55) 0%, rgba(10,15,30,.22) 50%, rgba(10,15,30,0) 100%);
}
.hero-caption { color: #fff; padding: 0 4rem; max-width: 640px; }
.hero-caption h1 { font-weight: 800; font-size: 2.9rem; line-height: 1.12; text-shadow: 0 2px 16px rgba(10,15,30,.35); }
.hero-caption p { color: rgba(255,255,255,.92); font-weight: 300; font-size: 1.05rem; max-width: 520px; }
.hero-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.38);
    border-radius: 50rem; padding: .42rem 1.05rem; margin-bottom: 1.1rem;
    color: #fff; font-size: .7rem; font-weight: 600;
    letter-spacing: 1.6px; text-transform: uppercase;
}
.hero-chip i { font-size: .8rem; color: var(--brand-accent); }
.hero-carousel .carousel-indicators { margin-bottom: 1.25rem; }
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 26px; height: 4px; border-radius: 2px; margin: 0 4px; border: none;
    background-color: var(--brand-accent); opacity: .5;
    transition: opacity .2s ease, transform .2s ease;
}
.hero-carousel .carousel-indicators .active { opacity: 1; transform: scaleX(1.15); }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    top: 50%; bottom: auto; width: 46px; height: 46px;
    border-radius: 50%; background: rgba(15,23,42,.32); opacity: 1;
    transition: background .2s ease;
}
.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover { background: rgba(15,23,42,.55); }
.carousel-indicators [data-bs-target] { background-color: var(--brand-primary); }
.carousel-control-prev-icon, .carousel-control-next-icon { filter: invert(1); }

/* Shipping info section */
.shipping_section .icon_box_style3 {
    display: flex; align-items: center; gap: 1.05rem;
    background: #fff; border-radius: 18px; padding: 1.3rem 1.2rem; height: 100%;
    box-shadow: var(--shadow-rest);
    transition: transform .25s ease, box-shadow .25s ease;
}
.shipping_section .icon_box_style3:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.shipping_section .icon_box_style3 .icon {
    flex-shrink: 0; width: 60px; height: 60px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--green-mid));
    box-shadow: 0 8px 20px rgba(25,135,84,.28);
    transition: transform .3s ease;
}
.shipping_section .icon_box_style3:hover .icon { transform: scale(1.07) rotate(-4deg); }
.shipping_section .icon_box_style3 h6 { font-weight: 700; color: var(--ink-900); margin-bottom: .15rem; }
.shipping_section .icon_box_style3 small { color: var(--ink-500); }

/* Centered section heads + yellow divider */
.section-head-center { text-align: center; margin-bottom: 2.75rem; }
.section-divider {
    width: 64px; height: 4px; border-radius: 4px;
    background: var(--brand-accent); margin: .85rem auto 0;
}

/* Category tiles (gradient overlay, white → amber name on hover) */
.category-tile {
    position: relative; display: block; border-radius: 18px; overflow: hidden;
    box-shadow: var(--shadow-rest);
    transition: transform .25s ease, box-shadow .25s ease;
}
.category-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.category-tile img { width: 100%; height: 170px; object-fit: cover; display: block; }
.category-tile::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,15,30,0) 0%, rgba(10,15,30,.78) 100%);
}
.category-name {
    position: absolute; left: .5rem; right: .5rem; bottom: .85rem; z-index: 2;
    color: #fff; font-size: .88rem; font-weight: 600; text-align: center;
    transition: color .2s ease;
}
.category-tile:hover .category-name { color: var(--brand-accent); }

/* Split gradient banners */
.split-banner {
    position: relative; display: flex; align-items: center;
    min-height: 230px; border-radius: 22px; padding: 2.25rem;
    color: #fff; overflow: hidden;
    text-shadow: 0 2px 12px rgba(15,23,42,.35);
    transition: transform .25s ease, box-shadow .25s ease;
}
.split-banner:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.split-banner-1 { background: linear-gradient(120deg, #198754 0%, #4EA87C 60%, #D1E7DD 130%); }
.split-banner-2 { background: linear-gradient(120deg, #0F5132 0%, #146C43 55%, #198754 130%); }
.split-banner-2::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 85% 20%, rgba(255,193,7,.35), transparent 45%);
}
.split-banner > * { position: relative; z-index: 2; }
.split-banner h3 { font-weight: 800; font-size: 1.75rem; margin: .9rem 0 .35rem; }
.split-banner p { color: rgba(255,255,255,.92); margin-bottom: 1.15rem; }

/* Promo banner (green → amber gradient strip) */
.promo-banner {
    position: relative; overflow: hidden; border-radius: 1.5rem;
    background: linear-gradient(135deg, #198754 0%, #4EA87C 55%, #FFC107 160%);
    color: #fff; padding: 2.4rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    text-shadow: 0 2px 12px rgba(15,23,42,.35);
    flex-wrap: wrap;
}
.promo-banner::after {
    content: ""; position: absolute; pointer-events: none;
    right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.promo-banner h2 { font-weight: 800; font-size: 1.9rem; margin: .8rem 0 .35rem; }
.promo-banner p { color: rgba(255,255,255,.92); margin-bottom: 0; }
.promo-banner > * { position: relative; z-index: 2; }
.promo-banner .promo-cta { text-align: right; }
.split-banner .hero-chip,
.promo-banner .hero-chip { margin-bottom: 0; }

/* Trending slider (scroll-snap + circular overlay nav) */
.trending-slider-wrap { position: relative; }
.trending-slider {
    display: flex; gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: .5rem;
}
.trending-slider::-webkit-scrollbar { display: none; }
.trending-slide { flex: 0 0 25%; min-width: 0; scroll-snap-align: start; display: flex; }
.trending-slide > * { width: 100%; }
.trending-nav {
    position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
    width: 46px; height: 46px; border: none; border-radius: 50%;
    background: #fff; color: var(--ink-800);
    box-shadow: 0 6px 18px rgba(15,23,42,.14);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.trending-nav:hover { background: var(--brand-primary); color: #fff; transform: translateY(-50%) scale(1.06); }
.trending-nav.trending-prev { left: -14px; }
.trending-nav.trending-next { right: -14px; }

.section-title { font-weight: 700; color: var(--ink-900); position: relative; display: inline-block; }
.section-title::after {
    content: ""; display: block; width: 55%; height: 4px; border-radius: 4px; margin: 6px auto 0;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.chip-btn {
    border: 1.5px solid var(--mint); background: #fff; color: var(--ink-800);
    border-radius: 50rem; padding: .4rem 1.1rem; font-size: .88rem; font-weight: 500;
    transition: all .2s ease;
}
.chip-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.chip-btn.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-500); }
.empty-state i { font-size: 3.5rem; color: var(--line-mid); }

.pagination .page-link { color: var(--brand-primary); border-radius: 10px !important; margin: 0 3px; border: none; }
.pagination .page-item.active .page-link { background: var(--brand-primary); color: #fff; }

.toast-container { z-index: 2000; }
.toast { border-radius: 14px; border: none; box-shadow: var(--shadow-float); }
.toast.toast-success { background: var(--brand-primary); }
.toast.toast-info { background: #2563eb; }
.toast.toast-warning { background: var(--brand-accent-hover); }
.toast.toast-error { background: var(--logout-red); }

#appLoader {
    position: fixed; inset: 0; background: #fff; z-index: 3000;
    display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.25rem;
    transition: opacity .4s ease;
}
#appLoader.hidden { opacity: 0; pointer-events: none; }
.loader-ring { position: relative; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; }
.loader-ring::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--brand-primary), var(--brand-accent), var(--brand-primary));
    animation: spin 1.1s linear infinite;
}
.loader-logo {
    position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%;
    background: #fff; overflow: hidden; padding: 3px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .25);
    animation: pulse 1s infinite ease-in-out;
}
.loader-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ------------------ 7. Footer ------------------ */
.site-footer {
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-top: 3px solid var(--brand-accent);
    color: #cbd5e1; margin-top: 4rem;
}
.site-footer h6 { color: #fff; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; font-size: .82rem; }
.site-footer a { color: #cbd5e1; font-size: .92rem; transition: color .18s ease; }
.site-footer a:hover { color: var(--brand-accent); }
.site-footer p { color: #9aa4b5; }
.site-footer hr { border-color: rgba(255, 193, 7, .35); opacity: 1; }
.feature-box { background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 1rem; height: 100%; }
.feature-box i { color: var(--brand-accent); font-size: 1.5rem; }
.social-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: #cbd5e1;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-btn:hover { background: var(--brand-primary); color: #fff; transform: translateY(-2px); }
.pay-badge {
    background: rgba(255, 255, 255, .1); border-radius: 8px; padding: .3rem .7rem;
    font-size: .78rem; font-weight: 600; color: #cbd5e1;
}

/* ------------------ 8. Responsive ------------------ */
@media (max-width: 1199.98px) {
    .header-brand-logo { width: 40px; height: 40px; }
    .header-brand-text { font-size: 1.15rem; }
    .header-search { flex-basis: 210px; }
    .header-search-input { padding-right: 2.7rem; }
    .bottom-nav-link { padding: .5rem .55rem; font-size: .74rem; letter-spacing: .4px; }
    .mega-menu-categories { width: 480px; }
    .mega-menu-products { width: clamp(480px, 56vw, 640px); }
    .account-name { display: none; }
    .trending-slide { flex-basis: 33.3333%; }
}

@media (max-width: 991.98px) {
    .top-header, .bottom-nav, .nav-drop, .header-search.d-none { display: none; }
    .main-header-inner { min-height: 64px; gap: .6rem; }
    .header-actions { margin-left: auto; }
    .hero-carousel img { height: 460px; }
    .hero-caption { padding: 0 2rem; }
    .hero-caption h1 { font-size: 2rem; }
}

@media (max-width: 767.98px) {
    .trending-slide { flex-basis: 50%; }
    .promo-banner { padding: 1.5rem; }
    .promo-banner .promo-cta { text-align: left; }
    .shipping_section .icon_box_style3 { padding: 1rem; gap: .8rem; }
    .shipping_section .icon_box_style3 .icon { width: 52px; height: 52px; font-size: 1.35rem; border-radius: 13px; }
    .site-footer { margin-top: 2.5rem; }
}

@media (max-width: 575.98px) {
    .trending-slide { flex-basis: 100%; }
    .hero-carousel img { height: 340px; }
    .hero-caption h1 { font-size: 1.55rem; }
    .hero-caption { padding: 0 1.25rem; }
    .split-banner { min-height: 190px; padding: 1.5rem; }
    .split-banner h3 { font-size: 1.35rem; }
    .promo-banner h2 { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header *, .mobile-menu, .mobile-menu-backdrop,
    .mega-menu, .mini-cart, .account-dropdown, #appLoader,
    .product-box-thumb img, .trending-nav {
        transition: none !important;
        animation: none !important;
    }
    .trending-slider { scroll-behavior: auto; }
}
