
:root {
    --primary: #156efb;
    /* Rebranded to header blue; gold accents added at the bottom of this file */
    --header-accent: #156efb;
    /* Header accent blue - login button & header button hover */
    --primary-alt: #5ca310;
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --text-main: #0f172a;
    --text-dim: #64748b;
    --text-dark: #0f172a;
    --accent: #ef4444;
    --glass: rgba(0, 0, 0, 0.03);
    --glass-border: #e2e8f0;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Global Cinematic Glow */
body::after {
    display: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.cursor-glow {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(21, 110, 251, 0.08) 0%, transparent 70%);
    position: fixed;
    margin: -300px 0 0 -300px; /* centers without transform so JS can own transform */
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform; /* GPU layer — avoids forced reflow on mousemove */
    transition: width 0.3s, height 0.3s;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Modules */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Premium Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* No backdrop-filter (see the critical CSS comment): it makes the header
       the containing block for fixed descendants, trapping the search overlay
       and category dropdown inside the header box. */
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 63px; /* header reduced ~30% (was 90px) */
    transition: height 0.3s ease;
}

header.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

header.header-scrolled .nav-wrapper {
    height: 49px; /* was 70px */
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: #0f172a;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.85);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Product-card icon buttons: no default background, only show hover color */
.product-card .icon-btn {
    background: transparent !important;
    border: 1px solid #d1d5db !important;
    color: #475569 !important;
}
.product-card .icon-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 700;
}

.top-announcement-bar {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.08) 16%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(135deg, #ff9aa8 0%, #ff6b7f 18%, #f44b63 42%, #d92d4c 68%, #b71f3f 100%);
    color: #fff1f2;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.42);
    border-bottom: 1px solid rgba(123, 10, 34, 0.55);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.36),
        inset 0 -4px 10px rgba(120, 12, 34, 0.35),
        0 10px 24px rgba(201, 33, 69, 0.24);
    position: relative;
    overflow: hidden;
}

.top-announcement-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0.18) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.top-announcement-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    /* Neutral dark shade (not red) so it adds depth over ANY custom bar color */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 100%);
    pointer-events: none;
}

.top-announcement-bar p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Multi-color flowing gradient (two or more bar colors) — mirrors the animated
   rainbow banner effect: a repeating gradient tiled at 200% and swept sideways */
@keyframes ann-flow {
    from { background-position: 0% 0; }
    to   { background-position: 100% 0; }
}

.top-announcement-bar.ann-anim-flow,
.top-announcement-bar.ann-anim-flow-fast {
    background-size: 200% 100% !important;
}

.top-announcement-bar.ann-anim-flow {
    animation: ann-flow 20s linear infinite;
}

.top-announcement-bar.ann-anim-flow-fast {
    animation: ann-flow 7s linear infinite;
}

/* Dismissed announcement bar: hidden before first paint (class added by the
   early head/body script reading localStorage) */
html.ann-bar-hidden .top-announcement-bar {
    display: none !important;
}

/* Close button on the announcement bar */
.top-announcement-bar.has-close {
    padding-right: 3rem;
}

.top-announcement-bar .ann-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    color: inherit;
    opacity: 0.75;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.4rem;
    transition: opacity 0.2s ease;
}

.top-announcement-bar .ann-close:hover {
    opacity: 1;
}

.top-announcement-bar .ann-close i {
    color: inherit;
}

.search-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8rem 1.5rem 2rem;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 12000;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-container {
    width: min(760px, 100%);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.search-icon {
    color: var(--primary);
    font-size: 1rem;
}

.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search-submit-btn,
.close-search {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit-btn {
    padding: 0.8rem 1.15rem;
    background: var(--primary);
    color: var(--text-dark);
    font-weight: 800;
}

.search-submit-btn:hover {
    transform: translateY(-2px);
}

.close-search {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.close-search:hover {
    background: rgba(255, 255, 255, 0.16);
}

.search-results-dropdown {
    margin-top: 0.75rem;
    display: none;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
    padding: 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.search-results-dropdown:not(:empty) {
    display: block;
}

.mobile-toggle-btn {
    display: none;
}

body.search-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
}

.hero-swiper {
    width: 100%;
    height: 90vh;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* Brand Grid */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.brand-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.brand-card img {
    max-width: 100%;
    height: auto;
    filter: brightness(1) opacity(0.9);
    transition: var(--transition);
}

.brand-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: var(--bg-tertiary);
    box-shadow: 0 10px 25px rgba(21, 110, 251, 0.15);
}

.brand-card:hover img {
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(21, 110, 251, 0.3));
    transform: scale(1.1);
}

/* Swiper Nav Custom */
.swiper-nav {
    display: flex;
    gap: 1rem;
}

.coll-next,
.coll-prev {
    width: 50px;
    height: 50px;
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

.coll-next:hover,
.coll-prev:hover {
    background: var(--primary);
    color: var(--text-dark);
}

.coll-next::after,
.coll-prev::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
}

.coll-next::after {
    content: "\f061";
}

.coll-prev::after {
    content: "\f060";
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(21, 110, 251, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
}

.hero h1,
.hero-slide-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0,0,0,0.5);
    position: relative;
    z-index: 10;
}

.hero .highlight {
    color: var(--primary);
    font-style: italic;
    background: linear-gradient(120deg, var(--primary) 0%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none; /* override for gradient clip */
}

.hero p {
    font-size: 1.25rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 10;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 30%, transparent);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--primary) 50%, transparent);
}

.btn-outline {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
}

/* Top Seller Poster */
.top-seller-poster {
    position: relative;
    height: 700px;
    background-image: url('../img/banners/top_seller.png');
    /* Note: URL path handled by logic */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 5rem 0;
}

.poster-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-main) 30%, transparent 100%);
    z-index: 1;
}

.poster-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.poster-badge {
    background: var(--primary);
    color: var(--text-dark);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}

.poster-title {
    font-size: 5rem !important;
    margin-bottom: 2rem;
}

.poster-text {
    font-size: 1.25rem;
    color: var(--text-dim);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.poster-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Section Styling */
.section {
    padding: 10rem 0;
}

.section-title {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title h2 {
    font-size: 3rem;
}

.section-title p {
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Premium Product Card */
.product-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: var(--bg-tertiary);
}

.product-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    aspect-ratio: 1/1;
    margin-bottom: 1.5rem;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0.5rem;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover img {
    transform: scale(1.1);
}

.quick-view {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: var(--primary);
    color: var(--text-dark);
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    transition: var(--transition);
    z-index: 5;
}

.product-card:hover .quick-view {
    bottom: 0;
}

.product-info {
    text-align: left;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: block;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.old-price {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* Floating Actions */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #25D366;
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.2);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    color: white;
}

.whatsapp-badge {
    position: absolute;
    right: 100%;
    margin-right: 1.5rem;
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--primary);
    pointer-events: none;
    letter-spacing: 1px;
}

.whatsapp-float:hover .whatsapp-badge {
    opacity: 1;
    transform: translateX(0);
}

/* ---- Back to Top button ---- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: calc(1.5rem + 64px); /* 52px WhatsApp + 12px gap — aligned stack */
    z-index: 9000;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: #1f2329;
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: #141416;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    /* No backdrop blur: the page behind stays crisp and visible — only the
       modal itself is shown. (Was blur(15px) + 0.85 black, which blurred the
       whole site.) */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    position: relative;
    padding: 4rem;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

/* Drawer & Sidebars */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 991px) {
    .sidebar-drawer {
        position: fixed;
        left: -320px;
        top: 0;
        bottom: 0;
        width: 300px;
        z-index: 10002;
        background: var(--bg-secondary);
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 2rem;
        overflow-y: auto;
        border-right: 1px solid var(--glass-border);
    }

    .sidebar-drawer.active {
        left: 0;
    }

    .drawer-close {
        display: block !important;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
        color: var(--text-dim);
    }
}

.drawer-close {
    display: none;
}

/* Responsive Layout Utilities */
.responsive-sidebar-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
}

.responsive-grid-main-sidebar {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 991px) {

    .responsive-sidebar-layout,
    .responsive-grid-main-sidebar {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sidebar-drawer {
        position: fixed;
        left: -100%;
        top: 0;
        bottom: 0;
        width: 300px;
        z-index: 10002;
        background: var(--bg-secondary);
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 2rem;
        overflow-y: auto;
        border-right: 1px solid var(--glass-border);
    }

    .sidebar-drawer.active {
        left: 0;
    }

    .drawer-close {
        display: block !important;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 1.5rem;
        color: var(--text-dim);
    }
}

.drawer-close {
    display: none;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Quick View Layout */
.qv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Product detail reviews: sliding carousel + mobile stacking */
.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Never let a grid track grow to the swiper's content: Swiper writes inline
   slide widths that mirror the container, and the grid item's default
   min-width:auto made the track follow the wrapper in an unbounded loop that
   blew the review cards thousands of px past the right edge on phones. */
.reviews-layout > * {
    min-width: 0;
}

.review-card {
    background: var(--glass);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    height: 100%;
}

.review-swiper {
    width: 100%;
    max-width: 100%;
    padding: 0.25rem 0 3rem;
    overflow: hidden;
}

.review-swiper .swiper-slide {
    height: auto;
}

.review-swiper-pagination {
    bottom: 0 !important;
}

.review-swiper-pagination .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 1;
}

.review-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
}

.review-swiper-next,
.review-swiper-prev {
    color: var(--primary);
    background: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.review-swiper-next::after,
.review-swiper-prev::after {
    font-size: 0.9rem;
    font-weight: 800;
}

.review-form-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    height: fit-content;
}

@media (max-width: 768px) {
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .review-form-card {
        padding: 1.5rem;
    }
}

/* Modals on phones: stack the quick view — image on top, then name/price,
   then the button — and shrink the card padding so it fits comfortably. */
@media (max-width: 768px) {
    .modal-container {
        width: 94%;
        max-width: 94%;
        padding: 1.25rem;
        border-radius: 20px;
        max-height: 88vh;
    }

    .modal-close {
        top: 0.9rem;
        right: 0.9rem;
        font-size: 1.1rem;
        z-index: 5;
    }

    .qv-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Mobile-only product-image zoom joystick (product detail page): press & hold
   to zoom the main image, drag while held to pan around it. Hidden on desktop
   where the hover-zoom takes over. */
.img-zoom-joy {
    display: none;
}

@media (max-width: 768px) {
    .img-zoom-joy {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 1.5rem;
        bottom: calc(1.5rem + 128px); /* above back-to-top — aligned stack */
        z-index: 950;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #ffffff;
        color: #0f172a;
        border: 1px solid #e2e8f0;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.2);
        font-size: 1.25rem;
        cursor: grab;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        /* Faded until the user touches it, then it turns solid */
        opacity: 0.5;
        transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
        will-change: transform;
    }

    .img-zoom-joy.touched,
    .img-zoom-joy.zooming,
    .img-zoom-joy.dragging {
        opacity: 1;
    }

    .img-zoom-joy.dragging {
        cursor: grabbing;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
    }

    .img-zoom-joy.zooming {
        background: var(--primary);
        color: #ffffff;
        box-shadow: 0 0 0 12px rgba(21, 110, 251, 0.16);
        /* Track the finger instantly while dragging (transform only); the
           0.25s ease returns on release for the spring-back-to-home. */
        transition: transform 0.05s linear, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    }

    /* Zoom percentage pill, attached to the left of the joystick */
    .img-zoom-level {
        position: absolute;
        right: calc(100% + 10px);
        top: 50%;
        transform: translateY(-50%);
        background: #0f172a;
        color: #ffffff;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        padding: 4px 9px;
        border-radius: 999px;
        white-space: nowrap;
        pointer-events: none;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }

    .img-zoom-level.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Image Zoom Effect */
.zoom-wrapper {
    overflow: hidden;
    position: relative;
    cursor: crosshair;
}

.zoom-wrapper img {
    transition: transform 0.2s ease-out;
    transform-origin: center;
}

.zoom-wrapper:hover img {
    transform: scale(1.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Global Responsive Base */
@media (max-width: 991px) {
    html {
        font-size: 14px;
        /* Scale down base font size for mobile */
    }

    .section {
        /* Reduce whitespace on mobile. Deliberately NOT !important: the page
           wrappers (<main class="section container">) carry an inline
           padding-top: calc(var(--header-h, …) + …) so content always clears
           the fixed header — an !important rule here was overriding that and
           hiding content (e.g. product images) under the header on phones. */
        padding-top: 6rem;
    }

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* Force images to be responsive */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Better button sizing on mobile */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        /* Full width buttons on mobile usually look better */
        justify-content: center;
    }

    /* Footer Responsiveness */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }

    .footer-grid>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-grid .logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
    }

    .payment-icons {
        justify-content: center !important;
    }

    #newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }

    /* Footer Payment Icons Fix */
    footer img {
        max-width: 100px;
        height: auto !important;
    }

    .payment-icons img {
        height: 15px !important;
    }

    /* Fix header height overlap */
    .header {
        height: 50px; /* was 70px */
    }

    /* Mobile Header Adjustments */
    header {
        max-width: 100vw;
        /* clip (not hidden): hidden forces overflow-y to auto and clips the
           search suggestions / category dropdown that open BELOW the header's
           box. clip keeps horizontal-overflow protection without creating a
           scroll container, so those panels paint normally. */
        overflow-x: clip;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--glass);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        cursor: pointer;
        color: var(--primary);
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .logo {
        font-size: 1.4rem;
        gap: 0.25rem;
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .nav-wrapper {
        height: 50px; /* was 70px */
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .nav-actions {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .mobile-toggle-btn {
        display: inline-flex !important;
    }

    .icon-btn {
        width: 38px;
        height: 38px;
    }

    /* Small Screen Specifics */
    @media (max-width: 380px) {
        .logo {
            font-size: 1.1rem;
        }

        .nav-actions {
            gap: 0.25rem;
        }

        .icon-btn {
            width: 34px;
            height: 34px;
        }
    }

    /* Ensure no horizontal scroll */
    body {
        overflow-x: hidden;
    }

    body.no-scroll {
        overflow: hidden;
    }

    .search-overlay {
        padding: 6.5rem 1rem 1.5rem;
    }

    .search-form {
        gap: 0.65rem;
        padding: 0.85rem;
        flex-wrap: wrap;
    }

    .search-form input {
        width: 100%;
        order: 2;
        flex-basis: 100%;
    }

    .search-submit-btn {
        order: 3;
        flex: 1;
    }

    .close-search {
        order: 1;
    }

    /* Mobile Menu Drawer */
    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        z-index: 11000;
        display: none;
        opacity: 0;
        transition: var(--transition);
    }

    .mobile-menu-backdrop.active {
        display: block;
        opacity: 1;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100%;
        background: var(--bg-main);
        border-right: 1px solid var(--glass-border);
        z-index: 11001;
        transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu-header {
        padding: 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .close-menu {
        font-size: 1.5rem;
        color: var(--text-dim);
        cursor: pointer;
    }

    .mobile-menu-body {
        padding: 2rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-nav-links a {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-main);
    }

    .mobile-nav-links a:hover {
        color: var(--primary);
    }

    .mobile-menu-footer {
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid var(--glass-border);
    }

    .mobile-menu-footer p {
        color: var(--text-dim);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .footer-socials {
        display: flex;
        gap: 1.5rem;
        font-size: 1.2rem;
        color: var(--primary);
    }
}

/* Base Mobile Elements (Hidden on Desktop only) */
@media (min-width: 992px) {
    .mobile-menu,
    .mobile-menu-backdrop {
        display: none !important;
    }


    /* Mobile Menu Drawer */
    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        z-index: 11000;
        display: none;
        opacity: 0;
        transition: var(--transition);
    }

    .mobile-menu-backdrop.active {
        display: block;
        opacity: 1;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100%;
        background: var(--bg-main);
        border-right: 1px solid var(--glass-border);
        z-index: 11001;
        transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu-header {
        padding: 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .close-menu {
        font-size: 1.5rem;
        color: var(--text-dim);
        cursor: pointer;
    }

    .mobile-menu-body {
        padding: 2rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .mobile-nav-links a {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--text-main);
    }

    .mobile-nav-links a:hover {
        color: var(--primary);
    }

    .mobile-menu-footer {
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid var(--glass-border);
    }

    .mobile-menu-footer p {
        color: var(--text-dim);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .footer-socials {
        display: flex;
        gap: 1.5rem;
        font-size: 1.2rem;
        color: var(--primary);
    }
}

/* Base Mobile Elements (Hidden on Desktop only) */
@media (min-width: 992px) {
    .mobile-menu,
    .mobile-menu-backdrop,
    .mobile-toggle,
    .mobile-toggle-btn {
        display: none !important;
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Custom Profile Portal Button */
.profile-portal-btn {
    height: 45px;
    padding: 0 1.25rem;
    background: var(--primary);
    color: #141416;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(118, 188, 33, 0.4);
    white-space: nowrap;
}

.profile-portal-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 25px rgba(118, 188, 33, 0.6);
    color: #141416;
}

/* Badge System */
.badge-modern {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.status-processing {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    border-color: rgba(13, 202, 240, 0.2);
}

.status-info {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.2);
}

.status-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.2);
}

.status-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

/* Card Modern Enhancements */
.card-modern {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-header-modern {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Table Modern */
.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid var(--glass-border);
}

.table-modern td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

/* Admin Badge in Frontend */
.profile-portal-btn.admin-badge {
    background: #6f42c1;
    color: white;
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.4);
}

/* Account Dropdown System */
.profile-portal-group {
    position: relative;
    display: flex;
    align-items: center;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 240px;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: dropIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}    .profile-portal-group:hover .account-dropdown {
        display: flex;
    }

    /* Invisible bridge over the 1rem gap so the menu never vanishes while the
       mouse travels from the trigger button down to the first item */
    .account-dropdown::before {
        content: '';
        position: absolute;
        top: -1rem;
        left: 0;
        right: 0;
        height: 1rem;
    }

/* Dropdown menu items stay readable on the dark floating panel (header is now light) */
.account-dropdown .dropdown-item {
    color: #cbd5e1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.dropdown-item:hover {
    background: var(--glass);
    color: var(--primary);
    transform: translateX(5px);
}

.dropdown-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quantity steppers (product page + cart): hide the browser's native up/down
   spinners — the custom + and - buttons already handle it, and the number
   stays perfectly centered. */
.product-actions-group input[type="number"],
.cart-item-qty input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-actions-group input[type="number"]::-webkit-outer-spin-button,
.product-actions-group input[type="number"]::-webkit-inner-spin-button,
.cart-item-qty input[type="number"]::-webkit-outer-spin-button,
.cart-item-qty input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media (max-width: 768px) {
    .product-actions-group {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    /* Center the quantity stepper (the - 1 + control) in its own row on
       phones — otherwise it hugs the left edge of the full-width row. */
    .product-actions-group > div:first-child {
        align-self: center;
    }

    .product-actions-group .btn {
        width: 100%;
        justify-content: center;
    }

    .info-wrapper h1 {
        font-size: 2.5rem !important;
    }

    footer {
        margin-top: 5rem !important;
    }

    .footer-grid {
        gap: 2rem !important;
    }
}

/* Fix for scrolling issue at bottom */
body {
    padding-bottom: 0;
}

.site-disclaimer {
    position: relative;
    z-index: 100;
}

/* Global Light Theme Form & Input Overrides */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(21, 110, 251, 0.15) !important;
    outline: none !important;
}

/* Auth Cards & Generic Container Light Theme Overrides */
.auth-card,
.dashboard-card,
.profile-card,
.cart-card,
.order-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}

/* Footer Styling */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    color: #ffffff !important;
    border-top: 1px solid rgba(21, 110, 251, 0.3) !important;
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
    color: #ffffff !important;
}

footer p, footer li, footer a {
    color: #cbd5e1 !important;
}

footer a:hover {
    color: var(--primary) !important;
}

footer .logo {
    color: #ffffff !important;
}

footer .logo span {
    color: var(--primary) !important;
}

/* ============================================================
   HEADER ACCENT OVERRIDES
   Hover on all header buttons uses the login-button blue
   (matches the blue Login button: #156efb)
   ============================================================ */
header .icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--header-accent);
}

.nav-links a::after {
    background: var(--header-accent);
}

.search-submit-btn {
    background: var(--header-accent);
    color: #ffffff;
}

.profile-portal-btn {
    background: var(--header-accent);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(21, 110, 251, 0.4);
}

.profile-portal-btn:hover {
    box-shadow: 0 0 25px rgba(21, 110, 251, 0.6);
    color: #ffffff;
}

.mobile-nav-links a:hover {
    color: var(--header-accent);
}

.profile-portal-group .dropdown-item:hover {
    color: var(--header-accent);
}

:root {
    --gold: #d4af37;
    --gold-light: #f9e27a;
}

/* Prevent any horizontal page scroll (phone scrollbar in header area) */
html {
    overflow-x: hidden;
}

/* Mobile: let section titles wrap so heading + button stack instead of overflowing */
@media (max-width: 640px) {
    .section-title {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ============================================================
   BLUE-GOLD BUTTON SYSTEM
   Every button: metallic BLUE glass with a glossy plate shine.
   On hover every button turns golden glass.
   ============================================================ */
.btn,
.search-submit-btn,
.coll-next,
.coll-prev,
.profile-portal-btn {
    position: relative;
}

.btn,
.quick-view,
.search-submit-btn,
.coll-next,
.coll-prev,
.profile-portal-btn,
.swiper-button-next,
.swiper-button-prev {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0) 58%), linear-gradient(120deg, #0a3fc4 0%, #156efb 28%, #4d8dff 52%, #156efb 76%, #0a3fc4 100%);
    color: #ffffff;
    border: 1px solid rgba(140, 190, 255, 0.5);
    box-shadow: 0 8px 24px rgba(21, 110, 251, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -10px 18px rgba(8, 30, 90, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* animated shine that sweeps across the button on hover */
.btn::before,
.quick-view::before,
.search-submit-btn::before,
.coll-next::before,
.coll-prev::before,
.profile-portal-btn::before,
.swiper-button-next::before,
.swiper-button-prev::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.btn:hover::before,
.quick-view:hover::before,
.search-submit-btn:hover::before,
.coll-next:hover::before,
.coll-prev:hover::before,
.profile-portal-btn:hover::before,
.swiper-button-next:hover::before,
.swiper-button-prev:hover::before {
    left: 130%;
}

@media (prefers-reduced-motion: reduce) {
    .btn::before,
    .quick-view::before,
    .search-submit-btn::before,
    .coll-next::before,
    .coll-prev::before,
    .profile-portal-btn::before,
    .swiper-button-next::before,
    .swiper-button-prev::before {
        transition: none;
    }
}

/* hover: uses dynamic --primary */
.btn:hover,
.quick-view:hover,
.search-submit-btn:hover,
.coll-next:hover,
.coll-prev:hover,
.profile-portal-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 50%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Outline buttons */
.btn-outline {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    box-shadow: none;
}

/* Hero slider arrows */
.swiper-button-next,
.swiper-button-prev {
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 50%;
    color: var(--primary) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary);
    transform: scale(1.06);
}

/* All icon buttons hover */
.icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* ============================================================
   GOLD-BLUE REBRAND
   Gold for brand/status on dark surfaces, blue for info on light
   ============================================================ */

/* Logo: metallic gold gradient (header + mobile drawer + footer) */
.logo {
    background: linear-gradient(120deg, #f9e27a 0%, #d4af37 60%, #b8860b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

footer .logo span {
    color: #d4af37 !important;
}

/* Poster "TOP SELLER" badge: gold seal */
.poster-badge {
    background: linear-gradient(120deg, #ffe9a3 0%, #f5c542 45%, #d4af37 70%, #b8860b 100%);
    color: #141416;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Poster stats: gold */
.stat-val {
    color: var(--gold);
}

/* Highlight text (section titles): gold-blue gradient */
.highlight {
    background: linear-gradient(120deg, #156efb 0%, #7db3ff 35%, #f9e27a 65%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Hero heading highlight: gold-blue gradient (overrides base green/blue-white) */
.hero .highlight {
    background: linear-gradient(120deg, #156efb 0%, #7db3ff 35%, #f9e27a 65%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Mobile drawer social icons: gold */
.footer-socials {
    color: var(--gold);
}

/* ============================================================
   MOBILE MENU DRAWER — WHITE HEADER / BLACK TEXT MATCH
   Hard-coded light values so the drawer always matches the
   white header, even if the dark theme variables win elsewhere.
   ============================================================ */
.mobile-menu {
    background: #ffffff;
    color: #0f172a;
    border-right: 1px solid #e2e8f0;
}

.mobile-menu-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

/* The gold-gradient logo (and the auto background-removal blend on .logo-img)
   already match the white header — no color overrides needed here. */
.close-menu {
    color: #0f172a;
}

.close-menu:hover {
    color: #156efb;
}

.mobile-nav-links a {
    color: #0f172a;
}

.mobile-nav-links a:hover {
    color: #156efb;
}

.mobile-menu-body {
    background: #ffffff;
}

.mobile-menu-footer {
    border-top: 1px solid #e2e8f0;
}

.mobile-menu-footer p {
    color: #64748b;
}

.mobile-menu-footer .footer-socials {
    color: #d4af37;
}

.mobile-menu-footer .footer-socials a:hover {
    color: #156efb;
}

/* Drawer scrollbar matches the light theme */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* ============================================================
   AUTOMATIC LOGO BACKGROUND REMOVAL
   A tiny script samples the logo's corner pixels and picks the
   right blend mode so only the logo mark shows (no background
   box) on the white header and the dark footer.
   ============================================================ */
.logo-img-auto-bg.blend-multiply {
    mix-blend-mode: multiply;
}

.logo-img-auto-bg.blend-screen {
    mix-blend-mode: screen;
}

.logo-img-auto-bg.blend-invert-multiply {
    filter: invert(1);
    mix-blend-mode: multiply;
}

.logo-img-auto-bg.blend-invert-screen {
    filter: invert(1);
    mix-blend-mode: screen;
}

/* Keep the blend contained inside the header/footer surfaces */
header,
footer.site-footer-new {
    isolation: isolate;
}

/* ============================================================
   HOMEPAGE LAYOUT PASS
   1) Banner smaller + shows the full image (matches the ~2.1:1
      banner aspect ratio) and starts BELOW the fixed header
      (offset accounts for the announcement bar via .has-announcement)
   2) Hero arrows: plain <> chevrons at the bottom corners (no circle)
   3) Mobile: landscape-height banner so the full image shows
   4) Product sections stretch wider (1760px) + bigger product cards
   5) Poster overlay lightened so the product image shows clearly
   6) Logged-in user name hidden on mobile (icon only)
   ============================================================ */

/* 1 + 3) Hero height & header offset (a small script also measures the real
   header height after the banner so it never hides behind it) */
.hero-slider-wrapper {
    padding-top: 71px; /* fixed header (nav) height — header now 63px */
}

.hero-slider-wrapper.has-announcement {
    padding-top: 115px; /* nav + announcement bar */
}

.hero-swiper {
    height: clamp(420px, 52vw, 870px); /* banner grown ~2in taller from the bottom */
}

/* Scope to the homepage hero slides only (the .hero class is shared globally) */
.hero-swiper .hero {
    min-height: 0 !important; /* slide fills the (shorter) swiper instead of forcing 80vh */
    padding-bottom: 6rem;
}

/* Trust badges: pull up over the banner bottom (was an inline -4rem) */
.trust-badges {
    margin-top: -3.5rem;
}

@media (max-width: 991px) {
    .hero-slider-wrapper {
        padding-top: 58px;
    }

    /* generous headroom: the announcement text can wrap to 2 lines on narrow phones */
    .hero-slider-wrapper.has-announcement {
        padding-top: 114px;
    }

    .hero-swiper {
        height: clamp(300px, 52vw, 450px); /* banner grown ~2in taller from the bottom */
    }

    .hero-swiper .hero {
        padding-bottom: 2.5rem;
    }

    .trust-badges {
        margin-top: -1.5rem;
    }
}

/* 2) Hero arrows: plain chevrons, bottom corners, no circle */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    top: auto;
    bottom: 1.1rem;
    margin-top: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #f9e27a !important;
    transform: scale(1.15);
}

.hero-swiper .swiper-button-next::before,
.hero-swiper .swiper-button-prev::before {
    display: none; /* drop the gradient-circle shine; these are plain chevrons now */
}

/* On phones lift the chevrons above the trust-badges card that overlaps the hero bottom */
@media (max-width: 768px) {
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        bottom: 3.4rem;
    }
}

/* 4) Product sections: stretch wider + bigger cards (homepage only) */
body.homepage .section.container,
body.homepage .section .container {
    max-width: min(1900px, 94vw);
    padding-left: 2rem;
    padding-right: 2rem;
}

body.homepage .nav-wrapper {
    max-width: min(1900px, 94vw); /* keep the header aligned with the wider homepage content */
}

.product-card {
    padding: 1.75rem;
}

.product-img-wrapper {
    margin-bottom: 1.75rem;
}

.product-img-wrapper img {
    padding: 0.75rem;
}

.product-title {
    font-size: 1.35rem;
}

.price {
    font-size: 1.6rem;
}

/* 5) Poster overlay: keeps the left (text) side readable but lets the
      product on the right show through clearly */
.poster-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0.10) 34%, rgba(255, 255, 255, 0) 62%);
}

.poster-text {
    color: #1e293b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.poster-content .stat-val {
    color: #a8842c; /* darker gold so it stays readable on the lighter overlay */
}

/* 6) Logged-in user name hidden on mobile — icon only, styled like the other
      header icons (grey chip, dark icon) instead of the blue gradient button */
@media (max-width: 991px) {
    .profile-portal-btn {
        width: 45px;
        height: 45px;
        padding: 0;
        justify-content: center;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px;
        box-shadow: none !important;
        color: #0f172a !important;
        text-shadow: none;
    }

    .profile-portal-btn:hover {
        background: var(--primary) !important;
        color: #ffffff !important;
        border-color: var(--primary);
    }

    .profile-portal-btn > span {
        display: none;
    }

    .profile-portal-btn .fa-chevron-down {
        display: none;
    }

    .profile-portal-btn i {
        font-size: 1.2rem;
    }
}

/* Very small phones: shrink the user icon to match the other header icons */
@media (max-width: 380px) {
    .profile-portal-btn {
        width: 34px;
        height: 34px;
    }
}

/* ============================================================
   DUAL HEADER — top search bar + dark category navigation
   ============================================================ */

/* ---- Top header (logo + site-wide search + account actions) ---- */
.header-top {
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
}

.header-top-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.header-top-logo {
    flex-shrink: 0;
}

.header-top-logo .logo-img {
    max-height: 46px;
}

.header-top-search {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    position: relative;
}

.top-search-form {
    display: flex;
    align-items: stretch;
    width: min(680px, 100%);
    height: 46px;
    background: #ffffff;
    border: 1.5px solid #d7dee7;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.top-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 110, 251, 0.12);
}

.top-search-cat {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.top-search-cat select,
.top-search-cat-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: 0;
    background: #f2f5f9;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0 2rem 0 1.05rem;
    height: 100%;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-search-cat i {
    position: absolute;
    right: 0.65rem;
    font-size: 0.7rem;
    color: #64748b;
    pointer-events: none;
}

/* Custom category dropdown panel for the search bar (replaces the native
   select's full-screen phone picker). Fixed-positioned by JS so the search
   pill's overflow:hidden can't clip it. */
.top-search-cat-menu {
    position: fixed;
    z-index: 2500;
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    padding: 0.45rem;
    margin: 0;
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
}

.top-search-cat-menu.open {
    display: block;
}

.top-search-cat-menu li {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.top-search-cat-menu li:hover,
.top-search-cat-menu li[aria-selected="true"] {
    background: #eef4ff;
    color: var(--primary);
}

.top-search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0 1.05rem;
}

.top-search-form input::placeholder {
    color: #94a3b8;
}

.top-search-btn {
    border: 0;
    outline: 0;
    cursor: pointer;
    background: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 1.5rem;
    border-radius: 0 999px 999px 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    transition: background 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.top-search-btn:hover {
    background: #0b5ce8;
}

/* ---- Live type-ahead suggestions under the top search bar ---- */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, 100%);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    z-index: 1200;
    max-height: 420px;
    overflow-y: auto;
    text-align: left;
}

.search-suggest-body {
    padding: 0.5rem;
}

.search-suggest-head {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.6rem 0.75rem 0.3rem;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: #0f172a;
    transition: background 0.15s ease;
}

.search-suggest-item:hover {
    background: #f1f5f9;
}

.search-suggest-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f5f9;
    flex-shrink: 0;
}

.search-suggest-item.sugg-cat i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef6ff;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.sugg-item-name {
    flex: 1;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sugg-item-price {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sugg-item-price .sugg-price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.sugg-cat .sugg-item-price {
    color: #64748b;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 991px) {
    .search-suggestions {
        left: 0;
        transform: none;
        width: 100%;
    }
}

.header-top-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* ---- Main navigation (dark bar with Shop by Category) ---- */
.main-nav {
    background: #1f2329;
}

.main-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: stretch;
    min-height: 48px;
}

.shop-cat-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    z-index: 1200;
}

.shop-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 0;
    cursor: pointer;
    background: var(--primary);
    color: #ffffff;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 1.4rem;
    transition: background 0.25s ease;
}

.shop-cat-btn:hover {
    background: #0b5ce8;
}

.shop-cat-caret {
    font-size: 0.7rem;
    margin-left: 0.1rem;
    transition: transform 0.25s ease;
}

.shop-cat-wrap:hover .shop-cat-caret {
    transform: rotate(180deg);
}

.main-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-left: 0.5rem;
    min-width: 0;
    /* overflow stays visible so hover dropdowns (e.g. Support -> Email/WhatsApp)
       are never clipped; on narrow widths the links wrap to a second row and
       --header-h auto-adjusts the page offset. */
    overflow: visible;
}

/* Support / Contact link: hover opens a quick-contact dropdown */
.nav-support-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-support-caret {
    font-size: 0.65rem;
    margin-left: 0.3rem;
    opacity: 0.8;
    transition: transform 0.2s ease;
}

.nav-support-wrap:hover .nav-support-caret {
    transform: rotate(180deg);
}

.nav-support-drop {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1250;
    background: #ffffff;
    min-width: 245px;
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
    padding: 0.5rem;
    border: 1px solid #eef2f7;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
    pointer-events: none;
}

.nav-support-wrap:hover .nav-support-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Specificity beats .main-nav-links a so the dropdown items use dark text
   on the white panel instead of inheriting the nav-link white text. */
.main-nav-links .nav-support-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: auto;
    padding: 0.65rem 0.85rem;
    border: 0;
    border-bottom: 0;
    border-radius: 10px;
    background: transparent;
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav-links .nav-support-item:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-bottom: 0;
}

.main-nav-links .nav-support-item i {
    color: var(--primary);
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.main-nav-links a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0 1.05rem;
    height: 48px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    border-bottom: 2px solid transparent;
}

.main-nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-color: var(--primary);
}

/* ---- Shop by Category dropdown ---- */
.cat-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1250;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
    min-width: 310px;
    /* overflow stays visible so the sub-category flyouts (positioned outside
       this box) are never clipped. The list scrolls on its own instead. */
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.cat-drop-list {
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    overflow-x: hidden;
}

.shop-cat-wrap:hover .cat-dropdown,
.shop-cat-wrap.open .cat-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.cat-drop-list {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
}

.cat-drop-item {
    position: relative;
}

.cat-drop-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 1.4rem;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease, color 0.15s ease;
}

.cat-drop-link i {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

.cat-drop-item:hover > .cat-drop-link {
    background: #f1f5f9;
    color: var(--primary);
}

.cat-drop-item:hover > .cat-drop-link i {
    color: var(--primary);
}

.cat-submenu-host {
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 1260;
}

.cat-submenu {
    position: absolute;
    left: 0;
    top: 0; /* JS aligns each flyout with its parent row */
    background: #ffffff;
    min-width: 280px;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
    padding: 0.45rem 0;
    border: 1px solid #eef2f7;
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
    pointer-events: none;
}

.cat-submenu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.cat-sub-link {
    display: block;
    padding: 0.62rem 1.35rem;
    color: #334155;
    font-size: 0.87rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.cat-sub-link:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.cat-drop-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.4rem;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.cat-drop-all:hover {
    background: #eef2f7;
}

/* Scrolled header: subtle compact state for the top bar */
header.header-scrolled .header-top-inner {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

header.header-scrolled .header-top-logo .logo-img {
    max-height: 38px;
}

/* ---- Mobile menu: categories ---- */
.mobile-cat-heading {
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}

.mobile-nav-links .mobile-cat-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dim);
    padding-left: 0.25rem;
}

.mobile-nav-links .mobile-cat-link.mobile-cat-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    padding-left: 1.25rem;
    position: relative;
}

.mobile-nav-links .mobile-cat-link.mobile-cat-child::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #94a3b8;
}

/* ---- Responsive: stack the search bar under the logo row ---- */
@media (max-width: 991px) {
    .header-top-inner {
        flex-wrap: wrap;
        gap: 0.55rem 1rem;
        padding: 0.7rem 1rem;
    }

    .header-top-logo {
        flex: 1;
    }

    .header-top-search {
        order: 3;
        flex-basis: 100%;
        justify-content: stretch;
    }

    .top-search-form {
        width: 100%;
    }

    .main-nav {
        display: none;
    }

    .header-top-actions {
        gap: 0.45rem;
    }
}

@media (max-width: 520px) {
    .top-search-cat select {
        max-width: 118px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .top-search-btn {
        padding: 0 1rem;
    }

    .top-search-btn span {
        display: none;
    }

    .top-search-btn i {
        font-size: 0.95rem;
    }
}

/* ============================================================
   MOBILE DRAWER TABS — Categories | Menu
   ============================================================ */
.mobile-menu-body {
    padding: 0 !important;
    justify-content: flex-start !important;
    overflow: hidden;
}

.mobile-menu-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.mobile-tab {
    flex: 1;
    padding: 0.9rem 1rem;
    background: #eef1f5;
    border: 0;
    border-bottom: 3px solid transparent;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #475569;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-tab.active {
    background: #ffffff;
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.mobile-panel {
    display: none;
}

.mobile-panel.active {
    display: block;
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1.25rem;
}

/* Categories list */
.mobile-cat-row {
    border-bottom: 1px solid #eef1f5;
}

.mobile-cat-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.25rem;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.98rem;
}

.mobile-cat-toggle {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #f1f5f9;
    border: 1px solid var(--glass-border);
    color: var(--primary);
    font-size: 0.75rem;
    cursor: pointer;
}

.mobile-cat-sub {
    display: none;
}

.mobile-cat-sub.open {
    display: block;
}

.mobile-cat-sub a {
    display: block;
    padding: 0.75rem 1.25rem 0.75rem 2.5rem;
    background: #f8fafc;
    border-top: 1px solid #eef1f5;
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 600;
}

/* Menu list */
.mobile-menu-list a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.25rem;
    border-bottom: 1px solid #eef1f5;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.98rem;
}

.mobile-menu-list a i {
    width: 20px;
    text-align: center;
    color: var(--primary);
    font-size: 1rem;
}

/* Need help? block */
.mobile-menu-help {
    margin: 1.5rem 1.25rem;
    padding: 1.4rem 1.5rem;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    display: grid;
    gap: 0.7rem;
}

.mobile-menu-help h4 {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

.mobile-menu-help a,
.mobile-menu-help .mobile-help-address {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

.mobile-menu-help i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

