/* ============================================
   CSS VARIABLES — LIGHT & DARK THEMES
   ============================================ */
:root {
    --font: 'Inter', sans-serif;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --carousel-duration: 10s;
}

[data-theme="light"] {
    --bg-body: #f0f2f7;
    --bg-header: #ffffff;
    --bg-nav: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-hero: #eef2f6;
    --bg-footer: #0f172a;
    --bg-popup: #ffffff;
    --bg-input: #f1f5f9;
    --bg-category: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --text-inverse: #ffffff;

    --border-color: #e9edf4;
    --border-light: #f1f5f9;

    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-bg: #fef3c7;

    --primary: #1a3a6b;
    --primary-light: #2d4a7a;
    --primary-dark: #0f2640;

    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.10);
}

[data-theme="dark"] {
    --bg-body: #111827;
    --bg-header: #1e293b;
    --bg-nav: #1e293b;
    --bg-card: #1e293b;
    --bg-card-hover: #2d3a4f;
    --bg-hero: #0f172a;
    --bg-footer: #0a0f1a;
    --bg-popup: #1e293b;
    --bg-input: #2d3a4f;
    --bg-category: #1e293b;

    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light: #f8fafc;
    --text-inverse: #0f172a;

    --border-color: #334155;
    --border-light: #2d3a4f;

    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-bg: #2d2a1a;

    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;

    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
ul {
    list-style: none;
}
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Full-width container — no max-width, just padding for edges */
.container {
    width: 100%;
    padding: 0 5px;
    margin: 0 auto;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* ============================================
   TOP BAR — Premium, clean, dark
   ============================================ */
.top-bar {
    background: #0b1a2f;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.top-bar a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}
.top-bar a:hover {
    color: #ffffff;
}
.top-bar .left span {
    margin-right: 18px;
}
.top-bar .left i {
    margin-right: 5px;
    color: var(--accent);
}
.top-bar .right a {
    margin-left: 16px;
}

/* ============================================
   HEADER — Elevated, spacious, minimal
   ============================================ */
.header {
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 12px 0;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
}

/* Logo — refined weight, subtle spacing */
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: color var(--transition);
    letter-spacing: -0.02em;
}
.logo span {
    color: var(--accent);
}
.logo i {
    font-size: 1.4rem;
    color: var(--accent);
}

/* Search — elevated, with focus glow */
.search-wrap {
    flex: 1;
    min-width: 160px;
    max-width: 560px;
    position: relative;
}
.search-wrap input {
    width: 100%;
    padding: 10px 48px 10px 20px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.25s ease;
    outline: none;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
}
.search-wrap input::placeholder {
    color: var(--text-muted);
}
.search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}
.search-wrap button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-wrap button:hover {
    background: var(--accent-hover);
    transform: translateY(-50%) scale(1.02);
}
.search-wrap button:active {
    transform: translateY(-50%) scale(0.96);
}

/* Header Actions — clean, spacious */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    position: relative;
}
.header-actions .icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.header-actions .icon-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.header-actions .icon-btn .badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 50px;
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    text-align: center;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
.header-actions .icon-btn .badge.pop {
    transform: scale(1.3);
}
.header-actions .icon-btn .label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}
.header-actions .icon-btn:hover .label {
    color: var(--text-primary);
}

/* Theme Toggle — subtle integration */
.theme-toggle {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.theme-toggle i {
    font-size: 0.9rem;
}

/* ============================================
   MAIN NAVIGATION — Clean, spacious, with active indicator
   ============================================ */
.main-nav {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    width: 100%;
    padding: 0;
}
.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    width: 100%;
}
.main-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    flex: 1;
    margin: 0;
    /* Firefox support */
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--border-color);
}

/* Chrome, Edge, Safari - Make the scrollbar thicker and colored */
.main-nav .nav-links::-webkit-scrollbar {
    height: 8px; /* Increased from 6px to 8px for better visibility */
}

.main-nav .nav-links::-webkit-scrollbar-track {
    background: var(--bg-body); /* Light track so the bar stands out */
    border-radius: 10px;
}

.main-nav .nav-links::-webkit-scrollbar-thumb {
    background: var(--accent); /* Uses your accent color (Orange/Gold) */
    border-radius: 10px;
    border: 2px solid var(--bg-body); /* Adds a small gap around the bar */
}

.main-nav .nav-links::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover); /* Darkens slightly on hover */
}
.main-nav .nav-links li {
    list-style: none;
    flex-shrink: 0;
}
.main-nav .nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 14px 18px;
    display: block;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
    background: transparent;
}
.main-nav .nav-links a:active {
    transform: scale(0.97);
}
.main-nav .nav-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.main-nav .nav-extra a {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
}
.main-nav .nav-extra a:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.main-nav .nav-extra .nav-deals {
    color: var(--accent);
    font-weight: 600;
}
.main-nav .nav-extra .nav-deals:hover {
    background: var(--accent-bg);
    color: var(--accent-hover);
}
.main-nav .nav-extra .nav-contact {
    background: var(--accent);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.main-nav .nav-extra .nav-contact:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* Hamburger — refined for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    z-index: 1200;
    position: relative;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text-muted);
    border-radius: 4px;
    transition: all 0.25s ease;
}
.hamburger:hover span {
    background: var(--text-primary);
}
.hamburger.active span {
    background: var(--accent);
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE NAV SIDEBAR — refined overlay & panel
   ============================================ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}
.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-popup);
    z-index: 3001;
    transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}
.mobile-nav-sidebar.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.mobile-nav-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.close-mobile-nav {
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
    background: none;
    border: none;
    padding: 4px 8px;
}
.close-mobile-nav:hover {
    color: var(--text-primary);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.mobile-nav-links li {
    list-style: none;
}
.mobile-nav-links a {
    display: block;
    padding: 12px 22px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
    text-decoration: none;
    border-radius: 0;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.mobile-nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.mobile-nav-extra {
    padding: 16px 22px;
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-nav-extra a {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-align: left;
    text-decoration: none;
    display: block;
}
.mobile-nav-extra .deal-link {
    background: var(--accent-bg);
    color: var(--accent);
}
.mobile-nav-extra .deal-link:hover {
    background: var(--accent);
    color: #fff;
}
.mobile-nav-extra .highlight {
    background: var(--primary);
    color: #fff;
}
.mobile-nav-extra .highlight:hover {
    background: var(--primary-light);
    color: #fff;
}

/* ============================================
   DESKTOP ONLY (≥821px) — No mobile overrides
   ============================================ */
@media (min-width: 821px) {
    .header {
        padding: 12px 0;
        margin-bottom: 0;
    }
    .main-nav {
        margin-top: 0;
        padding: 0;
    }
    .main-nav .container {
        padding: 0 20px;
    }
    .hamburger {
        display: none !important;
    }
    .mobile-nav-overlay,
    .mobile-nav-sidebar {
        display: none !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE (≤820px)
   ============================================ */
@media (max-width: 820px) {
    .main-nav {
        top: 60px;
    }
    .hamburger {
        display: flex !important;
    }
    .main-nav .nav-links {
        display: none !important;
    }
    .main-nav .nav-extra {
        display: none !important;
    }
    .main-nav .container {
        padding: 6px 20px;
        min-height: 44px;
    }
    .hamburger span {
        background: var(--text-primary);
        width: 24px;
        height: 2.5px;
        border-radius: 2px;
    }
    .hamburger.active span {
        background: var(--accent);
    }
    .top-bar .left span {
        display: none;
    }
    .top-bar .right a {
        margin-left: 8px;
    }
    .top-bar .right {
        display: flex;
        gap: 12px;
    }
    .mobile-nav-overlay,
    .mobile-nav-sidebar {
        display: block !important;
    }
    .mobile-nav-sidebar {
        width: 300px;
        max-width: 85vw;
    }
}

@media (max-width: 540px) {
    .header .container {
        flex-wrap: wrap;
        gap: 8px;
    }
    .logo {
        font-size: 1.2rem;
    }
    .search-wrap {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .header-actions {
        gap: 2px;
    }
    .header-actions .icon-btn {
        padding: 6px 8px;
        font-size: 1rem;
    }
    .mobile-nav-sidebar {
        width: 280px;
        max-width: 85vw;
    }
    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .top-bar .right {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }
    .top-bar .right a {
        font-size: 0.7rem;
    }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section {
    padding: 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--transition);
}
.section-header h2 i {
    color: var(--accent);
}
.section-header .see-all {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-header .see-all:hover {
    color: var(--accent);
}

/* ============================================
   CAROUSEL — NEW ARRIVALS & CATEGORIES
   ============================================ */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-popup);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}
.carousel-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    opacity: 1;
}
.carousel-btn.prev {
    left: 12px;
}
.carousel-btn.next {
    right: 12px;
}

.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-track .product-card {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

/* For page‑by‑page mode (mobile) we keep the slide grouping */
.carousel-slide {
    flex: 0 0 100%;
    display: grid;
    gap: 16px;
    padding: 0 16px;
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive columns for carousel slides */
@media (min-width: 480px) {
    .carousel-slide {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .carousel-slide {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .carousel-slide {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1400px) {
    .carousel-slide {
        grid-template-columns: repeat(6, 1fr);
    }
}
@media (min-width: 1600px) {
    .carousel-slide {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Mobile overrides for category carousels */
@media (max-width: 820px) {
    .carousel-slide {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 768px) {
    .category-carousel .carousel-slide {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
}
.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.carousel-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}
.carousel-dots .dot:hover {
    background: var(--accent-hover);
}

/* ============================================
   PRODUCT CARD — with full name display
   ============================================ */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.product-card .image-wrap {
    background: var(--bg-body);
    aspect-ratio: 1/0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    position: relative;
    transition: background var(--transition);
    overflow: hidden;
}
.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.product-card .image-wrap i {
    font-size: 2.8rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: color var(--transition);
}
.product-card .image-wrap .badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 12px;
    border-radius: 50px;
    color: #fff;
    z-index: 2;
}
.badge-new {
    background: #22c55e;
}
.badge-sale {
    background: #ef4444;
}
.badge-hot {
    background: #f59e0b;
}
/* Private badge – appears top‑right */
.badge-private {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #6b7280;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 12px;
    border-radius: 50px;
    z-index: 2;
}

.product-card .info {
    padding: 12px 14px 14px;
}
.product-card .info .name {
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
    transition: color var(--transition);
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}
.product-card .info .sku {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.product-card .info .prices {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.product-card .info .prices .current {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color var(--transition);
}
.product-card .info .prices .old {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-card .info .prices .discount {
    font-size: 0.65rem;
    font-weight: 700;
    color: #22c55e;
    background: #dcfce7;
    padding: 0 8px;
    border-radius: 50px;
}
[data-theme="dark"] .product-card .info .prices .discount {
    background: #1a3a2a;
    color: #4ade80;
}
.product-card .info .stock {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.product-card .info .stock .in {
    color: #22c55e;
    font-weight: 600;
}
.product-card .info .stock .low {
    color: #ef4444;
    font-weight: 600;
}

.product-card .info .card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.product-card .info .card-actions .btn-cart {
    flex: 1;
    padding: 7px 0;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product-card .info .card-actions .btn-cart:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}
.product-card .info .card-actions .btn-cart.added {
    background: #22c55e;
}
.product-card .info .card-actions .btn-wish {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .info .card-actions .btn-wish:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
}
.product-card .info .card-actions .btn-wish.liked {
    color: #ef4444;
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* ============================================
   DESKTOP ONLY - SMALLER PRODUCT CARDS (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    /* Reduce product card size */
    .product-card .image-wrap {
        aspect-ratio: 1/0.75;
        padding: 8px;
    }
    
    .product-card .image-wrap i {
        font-size: 1.8rem;
    }
    
    .product-card .image-wrap .badge {
        font-size: 0.45rem;
        padding: 1px 8px;
        top: 4px;
        left: 4px;
    }
    
    .badge-private {
        font-size: 0.45rem;
        padding: 1px 8px;
        top: 4px;
        right: 4px;
    }
    
    .product-card .info {
        padding: 6px 8px 8px;
    }
    
    .product-card .info .name {
        font-size: 0.7rem;
        min-height: 2em;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
    }
    
    .product-card .info .sku {
        font-size: 0.55rem;
        margin-bottom: 2px;
    }
    
    .product-card .info .prices {
        gap: 4px;
        margin-bottom: 2px;
    }
    
    .product-card .info .prices .current {
        font-size: 0.8rem;
    }
    
    .product-card .info .prices .old {
        font-size: 0.6rem;
    }
    
    .product-card .info .prices .discount {
        font-size: 0.5rem;
        padding: 0 5px;
    }
    
    .product-card .info .stock {
        font-size: 0.5rem;
    }
    
    .product-card .info .card-actions {
        gap: 4px;
        margin-top: 4px;
    }
    
    .product-card .info .card-actions .btn-cart {
        padding: 4px 0;
        font-size: 0.6rem;
        border-radius: 4px;
    }
    
    .product-card .info .card-actions .btn-cart i {
        font-size: 0.55rem;
    }
    
    .product-card .info .card-actions .btn-wish {
        padding: 4px 8px;
        font-size: 0.65rem;
        border-radius: 4px;
    }
    
    .product-card .info .card-actions .btn-wish i {
        font-size: 0.65rem;
    }

    /* Carousel track items - smaller padding */
    .carousel-track .product-card {
        padding: 0 4px;
    }
}

/* ============================================
   DESKTOP - ITEMS PER ROW (1024px+)
   ============================================ */
@media (min-width: 1024px) and (max-width: 1199px) {
    .carousel-track .product-card {
        flex: 0 0 calc(100% / 4) !important;
        max-width: calc(100% / 4) !important;
    }
    .carousel-slide {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .carousel-track .product-card {
        flex: 0 0 calc(100% / 5) !important;
        max-width: calc(100% / 5) !important;
    }
    .carousel-slide {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (min-width: 1400px) and (max-width: 1599px) {
    .carousel-track .product-card {
        flex: 0 0 calc(100% / 6) !important;
        max-width: calc(100% / 6) !important;
    }
    .carousel-slide {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (min-width: 1600px) and (max-width: 1899px) {
    .carousel-track .product-card {
        flex: 0 0 calc(100% / 7) !important;
        max-width: calc(100% / 7) !important;
    }
    .carousel-slide {
        grid-template-columns: repeat(7, 1fr) !important;
    }
}

@media (min-width: 1900px) {
    .carousel-track .product-card {
        flex: 0 0 calc(100% / 8) !important;
        max-width: calc(100% / 8) !important;
    }
    .carousel-slide {
        grid-template-columns: repeat(8, 1fr) !important;
    }
}

/* ============================================
   DESKTOP - SEARCH RESULTS GRID
   ============================================ */
@media (min-width: 1024px) and (max-width: 1199px) {
    .category-grid .product-card {
        flex: 0 0 calc(25% - 12px);
        max-width: calc(25% - 12px);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .category-grid .product-card {
        flex: 0 0 calc(20% - 12px);
        max-width: calc(20% - 12px);
    }
}

@media (min-width: 1600px) {
    .category-grid .product-card {
        flex: 0 0 calc(16.666% - 12px);
        max-width: calc(16.666% - 12px);
    }
}

/* ============================================
   DESKTOP - RELATED PRODUCTS GRID
   ============================================ */
@media (min-width: 1024px) and (max-width: 1199px) {
    .related-products .related-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .related-products .related-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1600px) {
    .related-products .related-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
}

/* ============================================
   DESKTOP - CAROUSEL BUTTON POSITION
   ============================================ */
@media (min-width: 1024px) {
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .carousel-btn.prev {
        left: 6px;
    }
    
    .carousel-btn.next {
        right: 6px;
    }
}

/* ============================================
   SIDEBARS (Cart & Wishlist)
   ============================================ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(4px);
}
.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 92vw;
    height: 100%;
    background: var(--bg-popup);
    z-index: 2001;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
}
.sidebar.open {
    right: 0;
}
.sidebar .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar .sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.sidebar .sidebar-header .close-sidebar {
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
    background: none;
    border: none;
}
.sidebar .sidebar-header .close-sidebar:hover {
    color: var(--text-primary);
}

.sidebar .sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
}
.sidebar .sidebar-body .empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}
.sidebar .sidebar-body .empty-state i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.sidebar-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.sidebar-item .si-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-body);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.sidebar-item .si-info {
    flex: 1;
}
.sidebar-item .si-info .si-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.sidebar-item .si-info .si-price {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}
.sidebar-item .si-remove {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color var(--transition);
    background: none;
    border: none;
    padding: 4px 8px;
}
.sidebar-item .si-remove:hover {
    color: #ef4444;
}

.sidebar .sidebar-footer {
    padding: 16px 22px 22px;
    border-top: 1px solid var(--border-color);
}
.sidebar .sidebar-footer .sidebar-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.sidebar .sidebar-footer .btn-primary-action {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.sidebar .sidebar-footer .btn-primary-action:hover {
    background: var(--accent-hover);
}

/* ============================================
   FOOTER — Combined: Brand, Quick Links, Support, Contact, Payment
   ============================================ */
.footer-payment {
    background: var(--bg-footer);
    color: var(--text-muted);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}
.footer-payment .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}
.footer-payment h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.footer-payment .brand-info p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 10px;
}
.footer-payment .brand-info .social-icons a {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 12px;
    transition: color var(--transition);
}
.footer-payment .brand-info .social-icons a:hover {
    color: var(--accent);
}
.footer-payment .links-column a {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 6px;
    transition: color var(--transition);
}
.footer-payment .links-column a:hover {
    color: var(--accent);
}
.footer-payment .contact-info p {
    font-size: 0.85rem;
    margin-bottom: 6px;
}
.footer-payment .contact-info i {
    color: var(--accent);
    width: 22px;
    text-align: center;
}
.footer-payment .contact-info a {
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-payment .contact-info a:hover {
    color: var(--accent);
}
.footer-payment .payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.footer-payment .payment-methods span {
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-payment .payment-methods span i {
    color: var(--accent);
}
.footer-payment .copyright {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
    text-align: center;
    font-size: 0.75rem;
}

@media (max-width: 992px) {
    .footer-payment .container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}
@media (max-width: 768px) {
    .footer-payment .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   FLOATING WHATSAPP BUTTON — right side, pulse animation
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: whatsapp-pulse 2.5s infinite;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.10);
    box-shadow: 0 6px 35px rgba(37, 211, 102, 0.6);
}
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
@media (max-width: 540px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 380px;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast i {
    color: #22c55e;
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE OVERRIDES — keep mobile exactly as before
   ============================================ */
@media (max-width: 820px) {
    .header .container {
        flex-wrap: nowrap;
    }
    .search-wrap {
        min-width: 100px;
    }
    .header-actions .icon-btn .label {
        display: none;
    }
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
        background: var(--bg-nav);
        border-top: 1px solid var(--border-color);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
        box-shadow: var(--shadow-md);
        flex-wrap: wrap;
        overflow-y: auto;
        max-height: 80vh;
    }
    .main-nav .nav-links.open {
        display: flex;
    }
    .main-nav .nav-links a {
        width: 100%;
        padding: 8px 20px;
        white-space: normal;
    }
    .hamburger {
        display: flex;
    }
    .main-nav .container {
        flex-wrap: wrap;
        position: relative;
    }
    .main-nav .nav-extra {
        display: none;
    }
    .top-bar .left span {
        display: none;
    }
    .sidebar {
        width: 92vw;
        right: -100vw;
    }
}

@media (max-width: 540px) {
    .header .container {
        flex-wrap: wrap;
        gap: 8px;
    }
    .logo {
        font-size: 1.2rem;
    }
    .search-wrap {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
    .header-actions {
        gap: 2px;
    }
    .header-actions .icon-btn {
        padding: 6px 8px;
        font-size: 1rem;
    }
    .section {
        padding: 0;
    }
    .section-header h2 {
        font-size: 1.15rem;
    }
    .product-card .info .card-actions .btn-cart {
        font-size: 0.65rem;
        padding: 6px 0;
    }
    .product-card .info .card-actions .btn-wish {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .product-card .image-wrap i {
        font-size: 2rem;
    }
    .sidebar .sidebar-body {
        padding: 12px 16px;
    }
    .sidebar .sidebar-header {
        padding: 14px 16px;
    }
    .sidebar .sidebar-footer {
        padding: 12px 16px 16px;
    }
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .carousel-btn.prev {
        left: 6px;
    }
    .carousel-btn.next {
        right: 6px;
    }
}
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-link .image-wrap {
    cursor: pointer;
}
.product-link .name {
    transition: color var(--transition);
}
.product-link:hover .name {
    color: var(--accent);
}

/* ============================================
   MODAL STYLES
============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg-popup);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
}
.modal-close:hover {
    color: var(--text-primary);
}
.modal-body .form-group {
    margin-bottom: 16px;
}
.modal-body .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.modal-body .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border var(--transition);
}
.modal-body .form-group input:focus {
    outline: none;
    border-color: var(--accent);
}
.auth-message {
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: none;
}
.auth-message.success {
    display: block;
    background: #dcfce7;
    color: #166534;
}
.auth-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.auth-switch a {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
}
.auth-switch a:hover {
    text-decoration: underline;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-popup);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 12px 0;
    z-index: 1100;
    margin-top: 4px;
}
.user-dropdown .user-info {
    padding: 0 16px 8px;
}
.user-dropdown .user-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.user-dropdown .user-info span {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: capitalize;
}
.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 6px 12px;
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    font-size: 0.9rem;
}
.user-dropdown a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.user-dropdown a i {
    width: 18px;
    text-align: center;
}

/* Account button active state */
.icon-btn .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ============================================
   USER DROPDOWN - Updated
============================================ */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-popup);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    padding: 8px 0;
    z-index: 1100;
    animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.user-avatar-large {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-info strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.user-dropdown-info span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 12px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    font-size: 0.9rem;
    text-decoration: none !important;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

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

.user-dropdown-item.logout-item {
    color: #ef4444;
}

.user-dropdown-item.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Position the dropdown relative to account button */
.header-actions {
    position: relative;
}

/* Account button active state */
.icon-btn .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 480px) {
    .user-dropdown {
        right: -10px;
        min-width: 200px;
    }
    .user-avatar-large {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .user-dropdown-info strong {
        font-size: 0.85rem;
    }
    .user-dropdown-info span {
        font-size: 0.7rem;
    }
}
/* Ensure dropdown shows when display:block is applied */
.user-dropdown {
    display: none;
}
.user-dropdown[style*="display: block"] {
    display: block !important;
}

/* ============================================
   ACCOUNT SIDEBAR
============================================ */
.account-profile {
    text-align: center;
    padding: 20px 0;
}

.account-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.account-profile h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.account-profile p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.account-role {
    display: inline-block;
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 50px;
    text-transform: capitalize;
}

.account-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    font-size: 0.9rem;
    cursor: pointer;
}

.account-menu-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.account-menu-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}
/* Account button - small when logged in */
#accountBtn .fa-user-circle {
    font-size: 1.2rem;
}

#accountBtn .label {
    font-size: 0.7rem;
    font-weight: 500;
}

#accountBtn {
    gap: 4px;
    padding: 6px 10px;
}

/* Hover effect for account button */
#accountBtn:hover .fa-user-circle {
    color: var(--accent-hover);
}

/* ============================================
   ADMIN STYLES
============================================ */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 15px;
}
.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-header .product-id {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}
.admin-header .back-link {
    color: var(--text-muted);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.admin-header .back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.admin-header .header-actions-admin {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}
.admin-form .form-group {
    margin-bottom: 20px;
}
.admin-form .form-group.full-width {
    grid-column: 1 / -1;
}
.admin-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.admin-form label .required {
    color: #ef4444;
    margin-left: 2px;
}
.admin-form input[type="text"],
.admin-form input[type="number"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border var(--transition), box-shadow var(--transition);
    font-family: var(--font);
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.admin-form textarea {
    min-height: 120px;
    resize: vertical;
}
.admin-form input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    transition: border var(--transition);
}
.admin-form input[type="file"]:hover {
    border-color: var(--accent);
}
.admin-form .help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.admin-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-form .checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}
.admin-form .checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}
.admin-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.admin-form .btn-submit {
    padding: 12px 40px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.admin-form .btn-submit:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}
.admin-form .btn-reset {
    padding: 12px 30px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.admin-form .btn-reset:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.admin-form .btn-reset.danger {
    color: #ef4444;
    border-color: #ef4444;
}
.admin-form .btn-reset.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}
.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.alert i {
    font-size: 1.2rem;
}

.category-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}
.category-input-group select {
    flex: 1;
}
.category-input-group .btn-add-category {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.category-input-group .btn-add-category:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.category-input-group .btn-add-category.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.category-input-group .btn-add-category.active:hover {
    background: var(--accent-hover);
}
.new-category-input {
    display: none;
    margin-top: 10px;
}
.new-category-input.show {
    display: block;
}
.image-preview {
    margin-top: 10px;
    max-width: 200px;
    display: none;
}
.image-preview.show {
    display: block;
}
.image-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}
.current-image {
    margin-top: 10px;
    max-width: 150px;
}
.current-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}
.current-image .image-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}
.badge-preview {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-top: 4px;
}
.badge-preview.badge-new { background: #22c55e; }
.badge-preview.badge-sale { background: #ef4444; }
.badge-preview.badge-hot { background: #f59e0b; }

@media (max-width: 768px) {
    .admin-form .form-row {
        grid-template-columns: 1fr;
    }
    .category-input-group {
        flex-direction: column;
        width: 100%;
    }
    .category-input-group select {
        width: 100%;
    }
    .category-input-group .btn-add-category {
        width: 100%;
        justify-content: center;
    }
    .admin-header {
        flex-direction: column;
        text-align: center;
    }
    .admin-header .header-actions-admin {
        flex-wrap: wrap;
        justify-content: center;
    }
    .admin-form .form-actions {
        flex-direction: column;
    }
    .admin-form .btn-submit,
    .admin-form .btn-reset {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   BANNER CAROUSEL - THREE COLUMNS - REDUCED HEIGHT
============================================ */
.banner-carousel-section {
    padding: 0;
}

.banner-header {
    margin-bottom: 12px;
}

.banner-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-carousel-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3px;
    align-items: stretch;
    background: transparent;
}

.banner-column {
    position: relative;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    height: 160px;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

/* ============================================
   SLIDE CONTAINER - Holds all slides in a row
============================================ */
.banner-slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ============================================
   EACH SLIDE - Positioned side by side
============================================ */
.banner-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    opacity: 1;
    transition: none;
}

.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.banner-slide a:hover .banner-overlay {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.banner-overlay .banner-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CAROUSEL CONTROLS - Hidden by default on desktop
============================================ */
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.2s ease, background 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

/* Show controls on hover (desktop only) */
@media (min-width: 769px) {
    .banner-carousel-wrapper:hover .banner-btn {
        opacity: 1;
        pointer-events: auto;
    }
    
    .banner-column:hover .banner-btn {
        opacity: 1;
        pointer-events: auto;
    }
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.banner-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.banner-btn.prev {
    left: 12px;
}
.banner-btn.next {
    right: 12px;
}

/* Always show controls on mobile */
@media (max-width: 768px) {
    .banner-btn {
        opacity: 0.7;
        pointer-events: auto;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .banner-btn.prev {
        left: 6px;
    }
    .banner-btn.next {
        right: 6px;
    }
}

/* ============================================
   DOTS / INDICATORS
============================================ */
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dots .dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.banner-dots .dot:hover {
    background: var(--accent);
}

/* ============================================
   RESPONSIVE CAROUSEL HEIGHT
============================================ */

.banner-column {
    height: clamp(300px, 45vh, 450px);
}

/* Phones */
@media (max-width: 768px) {
    .banner-column {
        height: clamp(280px, 38vh, 400px);
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .banner-column {
        height: clamp(340px, 42vh, 420px);
    }
}

/* Small Desktop */
@media (min-width: 1025px) and (max-width: 1399px) {
    .banner-column {
        height: clamp(360px, 44vh, 430px);
    }
}

/* Large Desktop */
@media (min-width: 1400px) and (max-width: 1799px) {
    .banner-column {
        height: clamp(380px, 46vh, 500px);
    }
}

/* Ultra-wide */
@media (min-width: 1800px) {
    .banner-column {
        height: 45vh;
    }
}

/* 4K and above */
@media (min-width: 2560px) {
    .banner-column {
        height: 50vh;
    }
}

.banner-slide a {
    -webkit-tap-highlight-color: transparent;
}
.banner-slide a:focus,
.banner-slide a:active {
    outline: none;
}

/* Mobile – hide side columns */
@media (max-width: 768px) {
    .banner-carousel-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .banner-left,
    .banner-right {
        display: none;
    }
    .banner-column {
        height: 250px;
    }
    .banner-carousel-section {
        padding: 0;
    }
    .banner-header h2 {
        font-size: 1.2rem;
    }
    .banner-overlay {
        padding: 12px 14px;
    }
    .banner-overlay .banner-title {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .banner-carousel-wrapper {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 0;
    }
}

/* ============================================
   SEARCH RESULTS GRID – left alignment
============================================ */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-start;
}
.category-grid .product-card {
    flex: 0 0 calc(25% - 16px);
    max-width: calc(25% - 16px);
}
@media (max-width: 1024px) {
    .category-grid .product-card {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}
@media (max-width: 768px) {
    .category-grid .product-card {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}
@media (max-width: 480px) {
    .category-grid .product-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   ULTIMATE LEFT ALIGNMENT FIX
   ============================================ */
@media (min-width: 769px) {
    .carousel-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left !important;
    }

    .carousel-track .product-card {
        flex: 0 0 auto !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    .carousel-wrapper {
        text-align: left !important;
        padding: 12px 0 !important;
    }
}

/* ============================================
   SECTION TITLES - PROFESSIONAL FULL-WIDTH
   ============================================ */
.section {
    padding: 0;
    margin: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    margin-bottom: 0;
    background: linear-gradient(90deg, #b91c1c 0%, #450a0a 100%);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    color: #fff;
    min-height: 40px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), transparent);
    opacity: 0.5;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

[data-theme="dark"] .section-header::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
}

.section-header h2 {
    font-size: 1.0rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.section-header h2 i {
    color: #fff;
    font-size: 0.9rem;
}

.section-header .see-all {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.75rem;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.section-header .see-all:hover {
    color: #fff;
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.4);
}

.section-header .see-all i {
    transition: transform var(--transition);
}

.section-header .see-all:hover i {
    transform: translateX(3px);
}

/* ============================================
   CAROUSEL WRAPPER - No top margin
   ============================================ */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition), border-color var(--transition);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   BANNER SECTION TITLE - Blue fading right
   ============================================ */
.banner-header {
    margin-bottom: 0;
    padding: 8px 16px;
    background: linear-gradient(90deg, #3b82f6 0%, #1e3a8a 100%);
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    min-height: 40px;
    color: #fff;
}

.banner-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #93c5fd, transparent);
    opacity: 0.6;
}

.banner-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.banner-header h2 {
    font-size: 1.0rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.banner-header h2 i {
    color: #fff;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section-header {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .section-header h2 {
        font-size: 1rem;
    }
    
    .section-header .see-all {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    .banner-header {
        padding: 10px 16px;
    }
    
    .banner-header h2 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 8px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .section-header h2 {
        font-size: 0.95rem;
        width: 100%;
    }
    
    .section-header .see-all {
        font-size: 0.7rem;
        padding: 4px 10px;
        width: 100%;
        justify-content: center;
    }
    
    .banner-header {
        padding: 8px 12px;
    }
    
    .banner-header h2 {
        font-size: 0.95rem;
    }
}

/* ============================================
   DESKTOP ONLY - FULL PRODUCT NAME (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    /* Full product name - no truncation */
    .product-card .info .name {
        font-size: 0.75rem;
        min-height: auto;
        max-height: none;
        overflow: visible;
        text-overflow: clip;
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        -webkit-box-orient: unset;
        line-height: 1.4;
        word-break: break-word;
        white-space: normal;
    }
    
    /* Ensure card can expand for long names */
    .product-card .info {
        padding: 8px 10px 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-card {
        height: auto;
        min-height: 100%;
    }
    
    .product-link {
        height: auto;
        display: block;
    }
}

/* ============================================
   DESKTOP ONLY - LARGER & ROUNDER BADGE LABELS (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    /* Product card badges - larger and rounder */
    .product-card .image-wrap .badge {
        font-size: 0.75rem;
        padding: 5px 18px;
        border-radius: 50px;
        top: 10px;
        left: 10px;
        letter-spacing: 0.5px;
        font-weight: 700;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    /* Private badge - larger and rounder */
    .badge-private {
        font-size: 0.75rem;
        padding: 5px 18px;
        border-radius: 50px;
        top: 10px;
        right: 10px;
        letter-spacing: 0.5px;
        font-weight: 700;
    }
    
    /* Badge hover effect on card hover */
    .product-card:hover .image-wrap .badge {
        transform: scale(1.05);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
}
/* ============================================================
   PROFESSIONAL HEADER REFINEMENTS
   Width and functionality remain unchanged.
============================================================ */

/* Preserve the existing full-width container exactly */
.top-bar .container,
.header .container,
.main-nav .container,
.admin-bar .container {
    max-width: none;
}

/* Top bar: cleaner contrast and spacing */
.top-bar {
    min-height: 31px;
    padding: 6px 0;
    background:
        linear-gradient(90deg, #081729, #0d223d 55%, #102946);
    color: rgba(255, 255, 255, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.top-bar .container {
    padding-inline: clamp(10px, 1.6vw, 24px);
}

.top-bar .left,
.top-bar .right {
    display: flex;
    align-items: center;
}

.top-bar .left span,
.top-bar .right a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar .left span {
    margin-right: 20px;
}

.top-bar .left i {
    color: #fbbf24;
}

.top-bar a:hover {
    color: #ffffff;
}

/* Main header: subtle premium depth */
.header {
    padding: 13px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow:
        0 1px 0 rgba(15, 23, 42, 0.02),
        0 7px 22px rgba(15, 23, 42, 0.035);
    backdrop-filter: saturate(140%) blur(10px);
}

.header .container {
    padding-inline: clamp(10px, 1.6vw, 24px);
    gap: clamp(14px, 2vw, 28px);
}

/* Logo */
.logo {
    gap: 8px;
    font-size: 1.55rem;
    letter-spacing: -0.035em;
}

.logo i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background:
        linear-gradient(145deg, var(--primary), #3b82f6);
    box-shadow: 0 8px 18px rgba(26, 58, 107, 0.18);
}

.logo:hover i {
    transform: translateY(-1px);
}

.logo i,
.logo {
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

/* Search */
.search-wrap {
    max-width: 620px;
}

.search-wrap input {
    min-height: 44px;
    padding: 10px 50px 10px 17px;
    border-width: 1px;
    border-radius: 12px;
    background:
        linear-gradient(var(--bg-input), var(--bg-input)) padding-box,
        linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.12)) border-box;
}

.search-wrap input:hover {
    border-color: rgba(59, 130, 246, 0.22);
}

.search-wrap input:focus {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

.search-wrap button {
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background:
        linear-gradient(145deg, var(--primary), var(--primary-light));
    box-shadow: 0 5px 14px rgba(26, 58, 107, 0.18);
}

.search-wrap button:hover {
    background:
        linear-gradient(145deg, var(--primary-light), #3b82f6);
}

/* Header actions */
.header-actions {
    gap: 5px;
}

.header-actions .icon-btn,
.theme-toggle {
    min-height: 43px;
    border: 1px solid transparent;
}

.header-actions .icon-btn {
    padding: 7px 10px;
    border-radius: 11px;
}

.header-actions .icon-btn > i {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.header-actions .icon-btn:hover {
    border-color: var(--border-color);
    background: var(--bg-card-hover);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.045);
}

.header-actions .icon-btn:hover > i {
    color: #ffffff;
    background: var(--primary);
    transform: translateY(-1px);
}

.header-actions .icon-btn .label {
    font-weight: 650;
}

.header-actions .icon-btn .badge {
    top: 1px;
    right: 1px;
    min-width: 19px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 5px;
    border: 2px solid var(--bg-header);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

/* Client tracking button follows the same visual language */
#trackOrderHeaderBtn > i {
    color: #15803d;
    background: rgba(34, 197, 94, 0.10);
}

#trackOrderHeaderBtn:hover > i {
    color: #ffffff;
    background: #16a34a;
}

/* Theme toggle */
.theme-toggle {
    padding: 7px 12px;
    border-radius: 11px;
    background: var(--bg-input);
}

.theme-toggle i {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--accent);
    background: var(--accent-bg);
}

.theme-toggle:hover {
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
}

/* Navigation */
.main-nav {
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.025);
}

.main-nav .container {
    padding-inline: clamp(10px, 1.6vw, 24px);
}

.main-nav .nav-links {
    scrollbar-width: thin;
}

.main-nav .nav-links::-webkit-scrollbar {
    height: 5px;
}

.main-nav .nav-links a {
    position: relative;
    padding: 13px 16px;
    border-bottom: 0;
    font-weight: 600;
}

.main-nav .nav-links a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 5px 5px 0 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.045);
}

.main-nav .nav-links a:hover::after,
.main-nav .nav-links a.active::after {
    transform: scaleX(1);
}

.main-nav .nav-extra {
    gap: 7px;
}

.main-nav .nav-extra a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 9px;
}

.main-nav .nav-extra .nav-deals {
    background: var(--accent-bg);
}

.main-nav .nav-extra .nav-contact {
    background:
        linear-gradient(145deg, var(--primary), var(--primary-light));
    box-shadow: 0 5px 14px rgba(26, 58, 107, 0.14);
}

/* Admin bar */
.admin-bar {
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.admin-bar .container {
    padding-inline: clamp(10px, 1.6vw, 24px);
}

.admin-bar-content {
    gap: 14px;
}

.admin-bar-links {
    gap: 7px;
}

.admin-bar-btn {
    border-radius: 9px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.admin-bar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 13px rgba(15, 23, 42, 0.06);
}

/* Mobile navigation polish */
.mobile-nav-sidebar {
    box-shadow: 10px 0 40px rgba(15, 23, 42, 0.18);
}

.mobile-nav-header {
    padding: 20px 22px;
    background:
        linear-gradient(145deg, var(--primary-dark), var(--primary));
}

.mobile-nav-header h3,
.mobile-nav-header .close-mobile-nav {
    color: #ffffff;
}

.mobile-nav-links {
    padding: 10px;
    gap: 4px;
}

.mobile-nav-links a {
    padding: 12px 14px;
    border-radius: 9px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: rgba(59, 130, 246, 0.09);
}

.mobile-nav-links a.active {
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--accent);
}

/* Tablet */
@media (max-width: 1000px) {
    .header .container {
        gap: 12px;
    }

    .logo {
        font-size: 1.35rem;
    }

    .logo i {
        width: 37px;
        height: 37px;
    }

    .header-actions .icon-btn,
    .theme-toggle {
        padding-inline: 8px;
    }

    .header-actions .icon-btn .label,
    .theme-toggle span {
        display: none;
    }
}

/* Mobile */
@media (max-width: 820px) {
    .top-bar .container,
    .header .container,
    .main-nav .container {
        padding-inline: 12px;
    }

    .header {
        padding: 10px 0;
    }

    .header .container {
        gap: 8px;
    }

    .logo i {
        width: 35px;
        height: 35px;
        border-radius: 9px;
    }

    .header-actions .icon-btn,
    .theme-toggle {
        min-height: 39px;
    }

    .header-actions .icon-btn > i {
        width: 29px;
        height: 29px;
    }

    .main-nav .container {
        min-height: 47px;
        padding-block: 5px;
    }

    .hamburger {
        width: 40px;
        height: 38px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        border-radius: 9px;
        background: var(--bg-card);
    }
}

/* Phones */
@media (max-width: 540px) {
    .top-bar {
        display: none;
    }

    .header .container {
        padding-inline: 10px;
    }

    .logo {
        font-size: 1.12rem;
    }

    .logo i {
        width: 33px;
        height: 33px;
        font-size: 1.05rem;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-actions .icon-btn,
    .theme-toggle {
        min-height: 37px;
        padding: 4px 5px;
        border-radius: 9px;
    }

    .header-actions .icon-btn > i,
    .theme-toggle i {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .header-actions .icon-btn .badge {
        top: -2px;
        right: -2px;
    }

    .search-wrap {
        margin-top: 2px;
    }

    .search-wrap input {
        min-height: 42px;
        font-size: 0.86rem;
    }

    .main-nav .container {
        padding-inline: 10px;
    }
}

/* Very narrow phones */
@media (max-width: 380px) {
    .logo span {
        display: inline;
    }

    .header-actions {
        gap: 0;
    }

    .header-actions .icon-btn,
    .theme-toggle {
        padding-inline: 3px;
    }

    #trackOrderHeaderBtn {
        display: none;
    }
}

/* ============================================
   MOBILE HEADER ONLY — desktop remains unchanged
   ============================================ */
@media (max-width: 820px) {
    /* The complete mobile header must scroll with the page. */
    .header,
    body.mobile-header-scrolled .header {
        position: static !important;
        top: auto !important;
        inset: auto !important;
        margin: 0 !important;
        padding: 10px 0 8px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    }

    /*
     * Two rows without adding wrapper elements:
     * row 1 = logo + actions
     * row 2 = hamburger + search
     */
    .header .container,
    body.mobile-header-scrolled .header .container {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        grid-template-areas:
            "logo logo actions"
            "menu search search";
        align-items: center;
        gap: 8px;
        padding: 0 10px !important;
    }

    .header .logo,
    body.mobile-header-scrolled .header .logo {
        grid-area: logo;
        min-width: 0;
        margin: 0;
        font-size: 1.2rem;
    }

    .header .header-actions,
    body.mobile-header-scrolled .header .header-actions {
        grid-area: actions;
        justify-self: end;
        min-width: 0;
        margin: 0;
        gap: 2px;
    }

    .header .mobile-header-hamburger,
    body.mobile-header-scrolled .header .mobile-header-hamburger {
        grid-area: menu;
        display: flex !important;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 8px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: var(--bg-input);
        box-shadow: var(--shadow-sm);
    }

    .header .mobile-header-hamburger span {
        width: 23px;
        height: 2.5px;
        background: var(--text-primary);
    }

    .header .search-wrap,
    body.mobile-header-scrolled .header .search-wrap {
        grid-area: search;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0;
    }

    .header .search-wrap input,
    body.mobile-header-scrolled .header .search-wrap input {
        width: 100%;
        height: 42px;
        min-height: 42px;
        padding: 8px 43px 8px 12px;
        border-radius: 10px;
        font-size: .8rem;
    }

    .header .search-wrap button,
    body.mobile-header-scrolled .header .search-wrap button {
        right: 5px;
        width: 33px;
        height: 33px;
        border-radius: 8px;
    }

    .header .header-actions .icon-btn,
    .header .theme-toggle,
    body.mobile-header-scrolled .header .header-actions .icon-btn,
    body.mobile-header-scrolled .header .theme-toggle {
        width: 34px;
        min-width: 34px;
        height: 34px;
        min-height: 34px;
        padding: 3px;
        justify-content: center;
        border-radius: 8px;
    }

    .header .header-actions .label,
    .header .theme-toggle span,
    body.mobile-header-scrolled .header .header-actions .label,
    body.mobile-header-scrolled .header .theme-toggle span {
        display: none !important;
    }

    /* Track Order stays available in the mobile drawer. */
    .header #trackOrderHeaderBtn {
        display: none !important;
    }

    /* Remove the empty category-navigation strip on mobile. */
    .main-nav {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .main-nav .container {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .header .container,
    body.mobile-header-scrolled .header .container {
        grid-template-columns: 39px minmax(0, 1fr) auto;
        gap: 7px 6px;
        padding: 0 7px !important;
    }

    .header .logo,
    body.mobile-header-scrolled .header .logo {
        font-size: 1.08rem;
    }

    .header .mobile-header-hamburger,
    body.mobile-header-scrolled .header .mobile-header-hamburger {
        width: 39px;
        height: 40px;
    }

    .header .search-wrap input,
    body.mobile-header-scrolled .header .search-wrap input {
        height: 40px;
        min-height: 40px;
        font-size: .74rem;
    }

    .header .search-wrap button,
    body.mobile-header-scrolled .header .search-wrap button {
        width: 31px;
        height: 31px;
    }

    .header .header-actions .icon-btn,
    .header .theme-toggle,
    body.mobile-header-scrolled .header .header-actions .icon-btn,
    body.mobile-header-scrolled .header .theme-toggle {
        width: 31px;
        min-width: 31px;
        height: 32px;
        min-height: 32px;
    }
}

@media (max-width: 350px) {
    .header #accountBtn {
        display: none !important;
    }
}
