/* ========================================
   JETAMBAR - Modern E-Commerce CSS
   White Navbar, Vibrant Red Accent, Dark/Light Theme, Responsive
   ======================================== */

/* --- CSS Custom Properties --- */
:root,
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
    --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
    --shadow-lg: 0 10px 25px -5px rgba(15,23,42,0.1), 0 8px 10px -6px rgba(15,23,42,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.15), 0 8px 10px -6px rgba(15,23,42,0.1);
    
    /* Red Accent Brand Palette */
    --color-primary: #dc2626;
    --color-primary-dark: #b91c1c;
    --color-primary-light: #ef4444;
    --color-primary-bg: rgba(220, 38, 38, 0.08);
    
    --color-accent: #0f172a;
    --color-success: #10b981;
    --color-danger: #dc2626;
    --color-warning: #f59e0b;
    --color-info: #2563eb;
    
    /* White Navbar in Light Theme */
    --nav-bg: #ffffff;
    --nav-text: #1e293b;
    --nav-border: #e2e8f0;
    --topbar-bg: #f8fafc;
    --topbar-text: #475569;
    --topbar-border: #e2e8f0;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-card: #161f30;
    --bg-input: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #27354a;
    --border-light: #1e293b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.45);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.6);

    /* Red Accent Brand Palette in Dark */
    --color-primary: #ef4444;
    --color-primary-dark: #dc2626;
    --color-primary-light: #f87171;
    --color-primary-bg: rgba(239, 68, 68, 0.15);

    --nav-bg: #111827;
    --nav-text: #f8fafc;
    --nav-border: #1f2937;
    --topbar-bg: #0b0f19;
    --topbar-text: #94a3b8;
    --topbar-border: #1f2937;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--bg-secondary); }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--text-primary); }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }

.text-muted { color: var(--text-muted); }
.text-danger { color: var(--color-danger); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 600; border: none; cursor: pointer;
    transition: all var(--transition); text-decoration: none;
    font-family: inherit; line-height: 1.4;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.38);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-bg);
}
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 30px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; transition: color var(--transition); }
.btn-icon:hover { color: var(--color-danger); }

/* --- Top Bar --- */
.top-bar {
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    padding: 9px 0;
    font-size: 13px;
    color: var(--topbar-text);
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 24px; }
.top-link { display: flex; align-items: center; gap: 7px; color: var(--topbar-text); font-weight: 500; }
.top-link svg { color: var(--color-primary); }
.top-link:hover { color: var(--color-primary); }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch a { color: var(--topbar-text); font-weight: 600; font-size: 12px; letter-spacing: 0.5px; }
.lang-switch a.active { color: var(--color-primary); font-weight: 700; }
.lang-switch a:hover { color: var(--color-primary); }
.lang-divider { color: var(--topbar-text); opacity: 0.3; }

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); color: var(--text-primary);
}
.theme-toggle:hover {
    background: var(--color-primary-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
}
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* --- White Main Navigation --- */
.main-nav {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--nav-border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 16px 20px;
    min-height: 76px;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img {
    height: 50px;
    width: auto;
    max-height: 58px;
    object-fit: contain;
    display: block;
    transition: transform var(--transition);
}
.logo:hover .logo-img { transform: scale(1.03); }
.footer-logo-img { height: 44px; width: auto; max-height: 50px; object-fit: contain; display: block; }

/* Dual Logo Switch for Light / Dark Theme */
.logo-dark { display: none !important; }
.logo-light { display: block !important; }
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark { display: block !important; }

/* Search Bar in White Nav */
.search-bar { flex: 1; max-width: 480px; position: relative; margin: 0 12px; }
.search-form { display: flex; position: relative; }
.search-form input {
    width: 100%; height: 44px; padding: 0 44px 0 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px; font-family: inherit;
    transition: all var(--transition);
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.search-form button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 8px;
    transition: color var(--transition);
}
.search-form button:hover { color: var(--color-primary); }
.search-results {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md); box-shadow: var(--shadow-xl); z-index: 1001;
    display: none; overflow: hidden; margin-top: 6px;
}
.search-results.active { display: block; }
.search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
.search-result-item:hover { background: var(--bg-secondary); }
.search-result-item img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; }
.search-result-item .sr-info { flex: 1; }
.search-result-item .sr-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.search-result-item .sr-price { font-size: 13px; color: var(--color-primary); font-weight: 700; }

/* Nav Actions - Right Aligned on PC */
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.nav-action {
    display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary);
    padding: 0 16px; height: 42px; border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    transition: all var(--transition); font-size: 13.5px; font-weight: 600;
}
.nav-action svg { color: var(--color-primary); }
.nav-action:hover {
    background: var(--color-primary-bg);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-1px);
}
.nav-action-label { display: inline-block; }

.cart-action { position: relative; padding-right: 18px; }
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    padding: 0;
    box-shadow: none;
    border: 2px solid #ffffff;
}
[data-theme="dark"] .cart-badge {
    border-color: #1e293b;
}

.admin-link { color: var(--color-primary) !important; border-color: rgba(220, 38, 38, 0.35); }
.mobile-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 8px; }

/* Sub Menu / Category Bar (Desktop) */
.nav-menu { background: var(--bg-secondary); border-top: 1px solid var(--border-light); }
.nav-links { display: flex; list-style: none; gap: 4px; padding: 0; }
.nav-links li a {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 20px; color: var(--text-secondary);
    font-size: 14.5px; font-weight: 600;
    border-radius: 6px 6px 0 0;
    transition: all var(--transition);
    position: relative;
}
.nav-links li a:hover, .nav-links li.active a {
    color: var(--color-primary);
    background: var(--color-primary-bg);
    border-radius: 6px 6px 0 0;
}
.nav-links li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--color-primary);
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-xl);
    padding: 6px; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--transition); z-index: 1001;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: block; padding: 10px 14px; color: var(--text-primary); border-radius: 0; font-size: 14px; font-weight: 500; }
.dropdown-menu li a:hover { background: var(--color-primary-bg); color: var(--color-primary); }

/* --- Alerts --- */
.alert {
    display: flex; align-items: center; gap: 12px; padding: 14px 20px;
    border-radius: var(--radius-md); margin: 16px auto; max-width: 1240px;
    font-size: 14px; font-weight: 500; animation: slideDown 0.3s ease;
}
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #059669; }
.alert-error { background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.3); color: #dc2626; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #d97706; }
.alert-close { background: none; border: none; font-size: 20px; cursor: pointer; margin-left: auto; color: inherit; opacity: 0.6; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Hero Slider (Visual Banner Format) --- */
.hero-slider-section {
    padding-top: 16px;
    padding-bottom: 8px;
}
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--bg-card);
}
.slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1672 / 311;
    overflow: hidden;
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.6s ease; z-index: 0;
}
.slide.active { opacity: 1; z-index: 1; }
.slide-banner-link {
    display: block;
    width: 100%;
    height: 100%;
}
.slide-banner-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: var(--radius-lg);
}
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e293b;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.hero-slider:hover .slider-arrow {
    opacity: 1;
    visibility: visible;
}
.slider-arrow:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}
.slider-prev { left: 18px; }
.slider-next { right: 18px; }
.slider-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.7); background: rgba(0,0,0,0.3); cursor: pointer; transition: all var(--transition); padding: 0; }
.dot.active { background: var(--color-primary); border-color: var(--color-primary); width: 28px; border-radius: 6px; }

/* --- Categories Grid (Compact & Modern Visual Cards) --- */
.categories-section {
    padding-top: 24px;
    padding-bottom: 20px;
}
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-link { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--color-primary); }
.section-link:hover { color: var(--color-primary-dark); }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
.category-card {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 12px 10px; background: var(--bg-card); border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md); text-align: center; font-weight: 700;
    font-size: 13px; color: var(--text-primary); transition: all var(--transition);
    text-decoration: none;
}
.category-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
}
.category-img-box {
    width: 100%;
    height: 78px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}
[data-theme="dark"] .category-img-box {
    background: #1e293b;
    border-color: var(--border-color);
}
.category-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}
.category-card:hover .category-img {
    transform: scale(1.1);
}
.category-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}
.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-icon svg {
    width: 26px;
    height: 26px;
}
.category-card:hover .category-icon {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.12) rotate(3deg);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

/* ========================================
   HOMEPAGE SECTION CAROUSELS
   Max 6 items per row, Autoplay & Hover Active Arrows
   ======================================== */
.carousel-wrapper {
    position: relative;
    margin: 0 -4px;
    padding: 4px 0;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 14px;
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Categories Carousel (6 items per row on Desktop) */
.categories-carousel-track {
    gap: 16px;
}
.categories-carousel-track .carousel-item {
    flex: 0 0 calc((100% - (5 * 16px)) / 6);
    max-width: calc((100% - (5 * 16px)) / 6);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Products Carousel (4 items per row on Desktop) */
.products-carousel-track {
    gap: 20px;
}
.products-carousel-track .carousel-item {
    flex: 0 0 calc((100% - (3 * 20px)) / 4);
    max-width: calc((100% - (3 * 20px)) / 4);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.carousel-item .category-card {
    height: 100%;
    width: 100%;
    padding: 14px 10px;
}

.carousel-item .product-card {
    height: 100%;
    width: 100%;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.85);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-arrow.carousel-prev {
    left: -20px;
}
.carousel-arrow.carousel-next {
    right: -20px;
}

/* Activate and show arrows when hovering over the carousel container */
.carousel-wrapper:hover .carousel-arrow,
.carousel-wrapper:focus-within .carousel-arrow {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
}

.carousel-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
}
.carousel-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

/* Responsive breakdowns */
@media (min-width: 1201px) {
    .categories-carousel-track .carousel-item {
        flex: 0 0 calc((100% - (5 * 16px)) / 6);
        max-width: calc((100% - (5 * 16px)) / 6);
    }
    .products-carousel-track .carousel-item {
        flex: 0 0 calc((100% - (3 * 20px)) / 4);
        max-width: calc((100% - (3 * 20px)) / 4);
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .categories-carousel-track {
        gap: 16px;
    }
    .categories-carousel-track .carousel-item {
        flex: 0 0 calc((100% - (4 * 16px)) / 5);
        max-width: calc((100% - (4 * 16px)) / 5);
    }
    .products-carousel-track {
        gap: 18px;
    }
    .products-carousel-track .carousel-item {
        flex: 0 0 calc((100% - (2 * 18px)) / 3);
        max-width: calc((100% - (2 * 18px)) / 3);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .categories-carousel-track {
        gap: 14px;
    }
    .categories-carousel-track .carousel-item {
        flex: 0 0 calc((100% - (3 * 14px)) / 4);
        max-width: calc((100% - (3 * 14px)) / 4);
    }
    .products-carousel-track {
        gap: 16px;
    }
    .products-carousel-track .carousel-item {
        flex: 0 0 calc((100% - (2 * 16px)) / 3);
        max-width: calc((100% - (2 * 16px)) / 3);
    }
    .carousel-arrow.carousel-prev {
        left: -12px;
    }
    .carousel-arrow.carousel-next {
        right: -12px;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .categories-carousel-track {
        gap: 12px;
    }
    .categories-carousel-track .carousel-item {
        flex: 0 0 calc((100% - (2 * 12px)) / 3);
        max-width: calc((100% - (2 * 12px)) / 3);
    }
    .products-carousel-track {
        gap: 14px;
    }
    .products-carousel-track .carousel-item {
        flex: 0 0 calc((100% - 14px) / 2);
        max-width: calc((100% - 14px) / 2);
    }
    .carousel-track {
        padding-bottom: 8px;
    }
    .carousel-arrow {
        display: none;
    }
}

@media (max-width: 479px) {
    .categories-carousel-track {
        gap: 10px;
    }
    .categories-carousel-track .carousel-item {
        flex: 0 0 calc((100% - 10px) / 2);
        max-width: calc((100% - 10px) / 2);
    }
    .products-carousel-track {
        gap: 12px;
    }
    .products-carousel-track .carousel-item {
        flex: 0 0 calc((100% - 12px) / 2);
        max-width: calc((100% - 12px) / 2);
    }
    .carousel-track {
        padding-bottom: 8px;
    }
    .carousel-arrow {
        display: none;
    }
}

/* --- Products Grid --- */
.products-section { padding-top: 24px; padding-bottom: 32px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.product-card {
    background: var(--bg-card); border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition); display: flex; flex-direction: column;
}
.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #ffffff;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
}
.product-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.product-card:hover .product-card-image img { transform: scale(1.06); }
/* Modern Product Placeholder (No Image) */
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-muted);
    padding: 16px;
    gap: 8px;
    border-radius: 8px;
    transition: all var(--transition);
    user-select: none;
}
[data-theme="dark"] .product-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.product-placeholder-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-placeholder-icon {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.product-placeholder-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.85;
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Product Detail Large Placeholder */
.product-detail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    gap: 14px;
    text-align: center;
    user-select: none;
}
[data-theme="dark"] .product-detail-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.product-detail-placeholder-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.15);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.product-detail-placeholder-brand {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.product-detail-placeholder-tag {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.cart-img-placeholder,
.admin-thumb-empty {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 10px;
    border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.product-badge.sale { background: var(--color-danger); color: #ffffff; }
.product-badge.featured { background: var(--color-accent); color: #ffffff; }

.product-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.product-title { margin: 6px 0 8px; flex: 1; }
.product-title a { color: var(--text-primary); font-size: 15px; font-weight: 700; line-height: 1.4; }
.product-title a:hover { color: var(--color-primary); }
.product-brand { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.product-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border-light); }
.price-old { text-decoration: line-through; color: var(--text-muted); font-size: 13px; margin-right: 6px; }
.price-current { font-size: 18px; font-weight: 800; color: var(--color-primary); }
.btn-add-cart {
    width: 42px; height: 42px; border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary); color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all var(--transition); flex-shrink: 0;
}
.btn-add-cart:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.35);
}

/* --- Products Page with Toggleable Filter & Scrollable Brands --- */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
    transition: all 0.3s ease;
}

.products-layout.filters-hidden {
    grid-template-columns: 1fr;
}

.products-layout.filters-hidden .filter-sidebar {
    display: none;
}

.products-layout.filters-hidden .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* --- Filter Backdrop (Hidden on Desktop) --- */
.filter-backdrop {
    display: none;
}

/* --- Filter Sidebar (Desktop Layout) --- */
.filter-sidebar {
    position: sticky;
    top: 95px;
    align-self: start;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    max-height: calc(100vh - 115px);
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
    z-index: 20;
    display: flex;
    flex-direction: column;
}

/* Custom Sleek Scrollbar */
.filter-sidebar::-webkit-scrollbar,
.filter-scroll-box::-webkit-scrollbar {
    width: 6px;
}
.filter-sidebar::-webkit-scrollbar-track,
.filter-scroll-box::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}
.filter-sidebar::-webkit-scrollbar-thumb,
.filter-scroll-box::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
.filter-sidebar::-webkit-scrollbar-thumb:hover,
.filter-scroll-box::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

.filter-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 18px; 
    padding-bottom: 12px; 
    border-bottom: 1px solid var(--border-light); 
}
.filter-header h3 { 
    font-size: 16px; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin: 0;
    color: var(--text-primary);
}

/* Close button inside sidebar is ONLY for mobile drawer */
.filter-close-btn { 
    display: none; 
}

.filter-group { 
    margin-bottom: 22px; 
}
.filter-group:last-of-type { 
    margin-bottom: 14px; 
}
.filter-group h4 { 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 0.6px; 
    color: var(--text-muted); 
    margin-bottom: 12px; 
    font-weight: 800; 
}

/* Scrollable Box for Brands / Categories */
.filter-scroll-box {
    max-height: 185px;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Custom Checkbox Items */
.filter-checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background var(--transition);
    user-select: none;
    text-decoration: none;
}
.filter-checkbox-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
}
.filter-checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.filter-count-badge {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 7px;
    border-radius: 10px;
}

.price-filter-full {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.price-filter-full .input-price-box {
    flex: 1;
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 600;
    transition: all var(--transition);
}
.price-filter-full .input-price-box:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-bg);
}
.price-filter-full .price-separator {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 16px;
}
.price-filter { display: flex; align-items: center; gap: 8px; }
.input-sm { width: 90px; padding: 8px 10px; border: 1.5px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text-primary); font-size: 13px; font-family: inherit; font-weight: 600; }

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
}
.toolbar-left { display: flex; align-items: center; gap: 14px; }
.desktop-filter-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-secondary); border: 1.5px solid var(--border-color);
    padding: 8px 14px; border-radius: var(--radius-md);
    font-size: 13.5px; font-weight: 700; cursor: pointer;
    color: var(--text-primary); transition: all var(--transition);
}
.desktop-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-bg);
}
.filter-toggle { display: none; }
.result-count { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.sort-select { padding: 8px 14px; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-input); color: var(--text-primary); font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; }

/* --- Slide-Out Cart Drawer --- */
.cart-drawer-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px); z-index: 9998;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.cart-drawer-backdrop.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100vh;
    background: var(--bg-card); z-index: 9999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
    display: flex; flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open { right: 0; }

.cart-drawer-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-secondary);
}
.cart-drawer-header h3 { font-size: 16.5px; font-weight: 800; }
.cart-drawer-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 4px; transition: color var(--transition); }
.cart-drawer-close:hover { color: var(--color-danger); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-drawer-empty { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.cart-drawer-empty svg { margin-bottom: 14px; color: var(--color-primary); }
.cart-drawer-empty p { margin-bottom: 18px; font-size: 14.5px; font-weight: 500; }

.cart-drawer-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}
.cd-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-color); flex-shrink: 0; }
.cd-img-empty { background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.cd-info { flex: 1; min-width: 0; }
.cd-title { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.cd-title:hover { color: var(--color-primary); }
.cd-price-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.cd-price { color: var(--text-muted); }
.cd-total { color: var(--color-primary); font-weight: 800; }
.cd-remove { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); padding: 4px 8px; line-height: 1; transition: color var(--transition); }
.cd-remove:hover { color: var(--color-danger); }

.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border-color); background: var(--bg-secondary); }
.cart-drawer-total { display: flex; justify-content: space-between; align-items: center; font-size: 15.5px; margin-bottom: 16px; }
.cart-drawer-total strong { font-size: 19px; color: var(--color-primary); font-weight: 900; }
.cart-drawer-actions { display: flex; flex-direction: column; gap: 10px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.page-link { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-md); border: 1.5px solid var(--border-color); color: var(--text-secondary); font-size: 14px; font-weight: 600; transition: all var(--transition); }
.page-link:hover, .page-link.active { background: var(--color-primary); color: #ffffff; border-color: var(--color-primary); box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state svg { margin: 0 auto 16px; color: var(--color-primary); }
.empty-state h3 { color: var(--text-primary); margin-bottom: 8px; font-size: 1.3rem; }
.empty-state p { margin-bottom: 24px; }

/* --- Product Detail --- */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-detail-image img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.product-detail-cat { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); font-weight: 700; }
.product-detail-title { font-size: 1.9rem; margin: 8px 0 12px; }
.product-detail-brand { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); margin-bottom: 18px; font-weight: 500; }
.product-detail-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.price-old-lg { font-size: 1.25rem; color: var(--text-muted); text-decoration: line-through; }
.price-current-lg { font-size: 2.2rem; font-weight: 900; color: var(--color-primary); }
.price-discount { background: var(--color-danger); color: #ffffff; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 800; }
.product-detail-short { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }
.product-detail-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; padding: 18px; background: var(--bg-secondary); border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.meta-item { display: flex; gap: 8px; font-size: 14px; }
.meta-label { color: var(--text-muted); font-weight: 600; }
.in-stock { color: var(--color-success); font-weight: 700; }
.out-of-stock { color: var(--color-danger); font-weight: 700; }

.product-detail-actions { display: flex; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-card); }
.qty-btn { width: 44px; height: 46px; background: var(--bg-secondary); border: none; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--text-primary); transition: background var(--transition); }
.qty-btn:hover { background: var(--color-primary-bg); color: var(--color-primary); }
.qty-input { width: 54px; text-align: center; border: none; font-size: 16px; font-weight: 700; background: var(--bg-card); color: var(--text-primary); font-family: inherit; }
.qty-input:focus { outline: none; }
.btn-add-to-cart { flex: 1; min-width: 220px; }
.qty-selector-sm { border-width: 1px; }
.qty-selector-sm .qty-btn { width: 34px; height: 34px; font-size: 14px; }
.qty-val { padding: 0 12px; font-weight: 700; font-size: 14px; }

.product-detail-desc { border-top: 1px solid var(--border-color); padding-top: 28px; }
.product-detail-desc h3 { margin-bottom: 14px; }
.product-detail-desc p { color: var(--text-secondary); line-height: 1.8; }

.related-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.related-section h2 { margin-bottom: 24px; }

/* --- Breadcrumb --- */
.breadcrumb-bar { background: var(--bg-secondary); padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { color: var(--text-primary); font-weight: 600; }

/* --- Cart --- */
.cart-layout { display: grid; grid-template-columns: 1fr 370px; gap: 36px; align-items: start; }
.cart-table { border: 1.5px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.cart-header-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 40px; gap: 12px; padding: 14px 18px; background: var(--bg-secondary); font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.cart-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 40px; gap: 12px; padding: 18px; border-top: 1px solid var(--border-light); align-items: center; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-color); }
.cart-img-placeholder { width: 64px; height: 64px; border-radius: 8px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.cart-product a { font-weight: 600; color: var(--text-primary); font-size: 14.5px; }
.cart-product a:hover { color: var(--color-primary); }
.cart-price, .cart-item-total { font-size: 14.5px; font-weight: 600; }
.cart-item-total { font-weight: 800; color: var(--color-primary); }

.cart-summary { background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 110px; box-shadow: var(--shadow-sm); }
.cart-summary h3 { margin-bottom: 20px; font-size: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; font-size: 14.5px; color: var(--text-secondary); border-bottom: 1px solid var(--border-light); font-weight: 500; }
.summary-total { font-size: 19px; font-weight: 800; color: var(--text-primary); border-bottom: none; margin-top: 8px; }
.summary-total span:last-child { color: var(--color-primary); }
.cart-summary .btn { margin-top: 18px; }
.free-shipping-note { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-info); margin-top: 14px; padding: 12px; background: rgba(37,99,235,0.08); border-radius: var(--radius-sm); }

/* --- Checkout --- */
.checkout-layout { display: grid; grid-template-columns: 1fr 390px; gap: 40px; align-items: start; }
.checkout-form-area h2 { margin-bottom: 24px; }
.checkout-summary { background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 110px; }
.checkout-summary h3 { margin-bottom: 18px; font-size: 1.2rem; }
.checkout-items { margin-bottom: 16px; border-bottom: 1px solid var(--border-light); padding-bottom: 12px; }
.checkout-item { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; font-weight: 500; }
.checkout-item-name { color: var(--text-secondary); flex: 1; }

/* --- Auth --- */
.auth-section { display: flex; align-items: center; justify-content: center; min-height: 65vh; padding: 40px 0; }
.auth-card { max-width: 460px; width: 100%; background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-xl); padding: 40px; box-shadow: var(--shadow-lg); }
.auth-card h1 { text-align: center; margin-bottom: 28px; font-size: 1.7rem; }
.auth-link { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.auth-link a { font-weight: 700; color: var(--color-primary); }

/* --- Account --- */
.account-layout { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
.account-sidebar { background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 110px; }
.account-user { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border-light); margin-bottom: 14px; }
.account-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--color-primary-bg); display: flex; align-items: center; justify-content: center; color: var(--color-primary); flex-shrink: 0; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 14px; font-weight: 600; transition: all var(--transition); }
.account-nav a:hover, .account-nav a.active { background: var(--color-primary-bg); color: var(--color-primary); }
.account-card { background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 24px; }
.account-card h2 { font-size: 1.15rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }

.orders-table .order-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }

/* --- Order Detail --- */
.order-detail-card { background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-lg); padding: 36px; }
.order-detail-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--border-light); flex-wrap: wrap; gap: 14px; }
.order-detail-header h1 { font-size: 1.5rem; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 26px; }
.order-items-list { border: 1.5px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; }
.order-item-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-light); font-size: 14.5px; }
.order-totals { max-width: 320px; margin-left: auto; }

/* --- Status Badges --- */
.status-badge { display: inline-block; padding: 4px 11px; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.status-pending { background: rgba(245,158,11,0.12); color: #b45309; }
.status-confirmed { background: rgba(37,99,235,0.12); color: #1d4ed8; }
.status-preparing { background: rgba(139,92,246,0.12); color: #7c3aed; }
.status-shipped { background: rgba(6,182,212,0.12); color: #0e7490; }
.status-delivered { background: rgba(16,185,129,0.12); color: #047857; }
.status-cancelled { background: rgba(220,38,38,0.12); color: #b91c1c; }
.status-paid { background: rgba(16,185,129,0.12); color: #047857; }
.status-failed { background: rgba(220,38,38,0.12); color: #b91c1c; }
.status-refunded { background: rgba(107,114,128,0.12); color: #4b5563; }

/* --- Contact --- */
.contact-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; }
.contact-form-area h1 { margin-bottom: 10px; }
.page-intro { margin-bottom: 24px; color: var(--text-secondary); }
.contact-info-card { background: var(--bg-card); border: 1.5px solid var(--border-color); border-radius: var(--radius-lg); padding: 26px; }
.contact-info-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .contact-icon-badge {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--color-primary); color: #ffffff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item h4 { font-size: 14.5px; margin-bottom: 3px; }
.contact-info-item p { font-size: 14px; color: var(--text-secondary); }
.contact-map { margin-top: 24px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); }

/* --- CTA Section --- */
.cta-section { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); text-align: center; }
.cta-content h2 { color: #ffffff; font-size: 1.9rem; margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 28px; }

/* --- Page Content --- */
.page-content { max-width: 840px; }
.page-content h1 { margin-bottom: 26px; }
.page-content h2, .page-content h3 { margin: 26px 0 12px; }
.page-content p { color: var(--text-secondary); margin-bottom: 18px; line-height: 1.8; font-size: 15px; }
.page-content ul, .page-content ol { padding-left: 24px; margin-bottom: 18px; color: var(--text-secondary); }
.page-content li { margin-bottom: 8px; }

/* --- Forms --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-full { grid-column: 1 / -1; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--text-secondary); }
.form-input {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md); background: var(--bg-input); color: var(--text-primary);
    font-size: 14.5px; font-family: inherit; transition: all var(--transition);
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-bg); background: var(--bg-card); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 90px; }
select.form-input { cursor: pointer; }
.form-row { display: flex; gap: 20px; margin-bottom: 18px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text-secondary); }
.form-actions { display: flex; gap: 14px; margin-top: 22px; }

/* --- Error Page --- */
.error-section { min-height: 55vh; display: flex; align-items: center; }
.error-content { text-align: center; }
.error-code { font-size: 6.5rem; font-weight: 900; color: var(--color-primary); line-height: 1; margin-bottom: 10px; }
.error-message { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 26px; }

/* --- Footer with FILLED Icons --- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 65px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 44px; }
.footer-logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; color: #ffffff; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-logo .footer-logo-badge {
    width: 38px; height: 38px; border-radius: 9px;
    background: var(--color-primary); color: #ffffff;
    display: flex; align-items: center; justify-content: center;
}
.footer-about p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 24px; }

/* Filled Social Icons */
.footer-social { display: flex; gap: 12px; }
.footer-social .social-btn-filled {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.08); color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); border: 1px solid rgba(255,255,255,0.12);
}
.footer-social .social-btn-filled:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.footer-col h4 { font-size: 14.5px; font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 22px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--color-primary); }

/* Filled Footer Contact Badges */
.footer-contact li { display: flex; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.footer-icon-filled {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--color-primary); color: #ffffff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; text-align: center; font-size: 13.5px; color: rgba(255,255,255,0.4); }

/* --- Responsive --- */
/* ==========================================================================
   Mobile Sidebar Drawer (Off-Canvas with Modern Animation)
   ========================================================================== */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.mobile-drawer-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-card);
    z-index: 9999;
    transform: translateX(-105%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.mobile-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}
.mobile-drawer-logo .logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}
.mobile-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.mobile-drawer-close:active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
    transform: scale(0.92);
}

/* User Card in Drawer */
.mobile-drawer-user {
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.drawer-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.drawer-user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.drawer-user-details strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drawer-user-details span {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.drawer-user-links {
    display: flex;
    gap: 8px;
}
.drawer-user-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition);
}
.drawer-user-btn:active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
    transform: scale(0.96);
}
.drawer-user-btn.logout {
    color: var(--color-danger);
}
.drawer-guest-card p {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.35;
}
.drawer-guest-btns {
    display: flex;
    gap: 8px;
}
.drawer-guest-btns .btn {
    font-size: 12.5px;
    padding: 7px 12px;
}

/* Drawer Body & Mobile Touch Effects */
.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    -webkit-overflow-scrolling: touch;
}
.drawer-nav-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 0 10px;
    margin-bottom: 8px;
}
.mobile-drawer-nav,
.mobile-drawer-categories {
    list-style: none;
}
.mobile-drawer-nav li,
.mobile-drawer-categories li {
    margin-bottom: 4px;
}
.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.15s ease;
    text-decoration: none;
    position: relative;
}
.drawer-nav-link svg {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.15s ease;
}
.drawer-nav-link:hover,
.drawer-nav-link:active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
    transform: scale(0.98);
}
.drawer-nav-link:hover svg,
.drawer-nav-link:active svg {
    color: var(--color-primary);
}
.drawer-nav-link.active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-weight: 700;
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.drawer-nav-link.active svg {
    color: var(--color-primary);
}
.drawer-nav-link.admin-nav-link {
    color: #f59e0b;
}

.drawer-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    text-decoration: none;
}
.drawer-category-link svg {
    color: var(--text-muted);
    transition: transform 0.15s ease;
}
.drawer-category-link:hover,
.drawer-category-link:active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
    padding-left: 16px;
}
.drawer-category-link:hover svg,
.drawer-category-link:active svg {
    color: var(--color-primary);
    transform: translateX(3px);
}

/* Drawer Footer */
.mobile-drawer-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.drawer-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-footer-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}
.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
}
.lang-switch-pills {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}
.lang-switch-pills a {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
}
.lang-switch-pills a.active {
    background: var(--color-primary);
    color: #ffffff;
}

/* ==========================================================================
   Mobile Fixed Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    background: var(--bg-card);
    border-top: 1.5px solid var(--border-color);
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.09);
    padding: 6px 4px max(8px, env(safe-area-inset-bottom));
}

.mobile-bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: var(--text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.mobile-bottom-item .mb-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}
.mobile-bottom-item svg {
    color: var(--text-muted);
    transition: all 0.15s ease;
}
.mobile-bottom-item span {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.1px;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

/* Touch & Active States */
.mobile-bottom-item:active .mb-icon-wrap {
    transform: scale(0.85);
}
.mobile-bottom-item.active {
    color: var(--color-primary);
}
.mobile-bottom-item.active .mb-icon-wrap {
    transform: translateY(-1px);
}
.mobile-bottom-item.active svg {
    color: var(--color-primary);
    stroke: var(--color-primary);
    stroke-width: 2.5;
}
.mobile-bottom-item.active span {
    color: var(--color-primary);
    font-weight: 800;
}

/* Active indicator pill */
.mb-indicator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 1px;
}
.mobile-bottom-item.active .mb-indicator {
    background: var(--color-primary);
    width: 14px;
    height: 3px;
    border-radius: 4px;
}

.mb-cart-badge {
    position: absolute;
    top: -5px;
    right: -9px;
    background: var(--color-danger);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-card);
}

/* --- Responsive Layout & Products Grid --- */
@media (max-width: 1024px) {
    .products-layout { grid-template-columns: 1fr; }
    
    .filter-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    }
    .filter-backdrop.open {
        opacity: 1;
        visibility: visible;
    }
    
    .filter-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 86% !important;
        max-width: 320px !important;
        height: 100% !important;
        max-height: 100vh !important;
        background: var(--bg-card) !important;
        z-index: 9999 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.25) !important;
        transform: translateX(-105%) !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    .filter-sidebar.open {
        transform: translateX(0) !important;
    }
    .filter-sidebar .filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
        background: var(--bg-card);
        flex-shrink: 0;
    }
    .filter-close-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all var(--transition);
    }
    .filter-close-btn:active {
        background: var(--color-primary-bg);
        color: var(--color-primary);
        transform: scale(0.92);
    }
    .filter-sidebar #filter-form {
        padding: 18px;
        overflow-y: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .account-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Generous space for taller bottom navigation */
    }
    .mobile-bottom-nav {
        display: flex !important;
    }
    .top-bar {
        padding: 6px 0;
    }
    .top-bar-left { display: none; }
    .search-bar { display: none; }
    .nav-menu { display: none !important; }
    
    .container {
        padding: 0 14px;
    }

    /* Main Nav Mobile Bar */
    .main-nav {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    .nav-inner {
        min-height: 62px;
        padding: 10px 14px;
        gap: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .logo {
        max-width: 140px;
        margin-right: auto;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .logo-img {
        height: 38px;
        max-height: 42px;
        width: auto;
        max-width: 135px;
        object-fit: contain;
    }
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        flex-shrink: 0;
    }
    .nav-action-label {
        display: none !important;
    }
    .nav-action {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        border-radius: 10px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: var(--bg-secondary);
        border: 1.5px solid var(--border-color);
    }
    .nav-action svg {
        width: 19px;
        height: 19px;
    }
    .cart-action {
        padding: 0 !important;
        position: relative;
    }
    .cart-badge {
        top: -4px;
        right: -4px;
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 10px;
        font-weight: 800;
        border: 2px solid var(--bg-card);
    }
    .mobile-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 10px;
        border: 1.5px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-primary);
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
    }
    .mobile-toggle svg {
        width: 20px;
        height: 20px;
    }

    /* Product grid 2-column mobile layout */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card {
        border-radius: var(--radius-md);
    }
    .product-card-image {
        padding: 10px;
    }
    .product-card-body {
        padding: 10px 8px;
    }
    .product-category {
        font-size: 10.5px;
    }
    .product-title {
        margin: 4px 0 6px;
    }
    .product-title a {
        font-size: 12.5px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.7em;
    }
    .product-brand {
        font-size: 11px;
    }
    .product-price-row {
        margin-top: 8px;
        padding-top: 8px;
    }
    .price-current {
        font-size: 14.5px;
        font-weight: 800;
    }
    .price-old {
        font-size: 11px;
    }
    .btn-add-cart {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    .btn-add-cart svg {
        width: 16px;
        height: 16px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
    }
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .sort-select {
        width: 100%;
    }

    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .category-card { padding: 12px 8px; }
    .category-name { font-size: 12px; }

    .slider-arrow { width: 32px; height: 32px; }
    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }
    .slider-dots { bottom: 8px; gap: 5px; }
    .dot { width: 7px; height: 7px; }
    .dot.active { width: 18px; }

    .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
    .cart-header-row { display: none; }
    .cart-row { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
    .cart-product { margin-bottom: 8px; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    h1 { font-size: 1.32rem !important; line-height: 1.25; }
    h2, .section-header h2 { font-size: 1.15rem !important; letter-spacing: -0.2px; line-height: 1.25; font-weight: 800; }
    h3 { font-size: 1.05rem !important; }
    h4 { font-size: 0.92rem !important; }
    .section-header { margin-bottom: 12px; }
    .section-link { font-size: 12px; }
    .section { padding: 24px 0 !important; }
}

@media (max-width: 380px) {
    .container {
        padding: 0 10px;
    }
    .products-grid {
        gap: 6px !important;
    }
    .product-card-body {
        padding: 8px 6px;
    }
    .price-current {
        font-size: 13.5px;
    }
}

/* --- Dealership CTA Banner (Ultra Compact & Slim) --- */
.dealership-cta-section {
    padding: 16px 0 24px;
}
.dealership-cta-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.dealership-cta-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.dealership-cta-left h2 {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 3px;
}
.dealership-cta-left p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 0;
    max-width: 700px;
    line-height: 1.4;
}
.dealership-cta-right {
    flex-shrink: 0;
}
.dealership-cta-right .btn {
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dealership-cta-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 14px;
    }
    .dealership-cta-right {
        width: 100%;
    }
    .dealership-cta-right .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Minimalist Theme-Aware Splash & Bot Verification
   ========================================================================== */
.jet-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.45s ease;
    user-select: none;
}
[data-theme="dark"] .jet-preloader {
    background: #090d16;
}
.jet-preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-standalone-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.preloader-splash-img {
    width: 95px;
    height: auto;
    max-width: 140px;
    display: block;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.92);
    animation: smoothLogoEntrance 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothLogoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.90);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
}

/* --- Address Autocomplete Suggestions Dropdown --- */
.address-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    margin-top: 6px;
    display: none;
}
.address-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
}
.address-suggestion-item:last-child {
    border-bottom: none;
}
.address-suggestion-item:hover {
    background: var(--color-primary-bg);
}
.address-suggestion-item .addr-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.address-suggestion-item .addr-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.address-suggestion-item .addr-content strong {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.3;
}
.address-suggestion-item .addr-content small {
    font-size: 11.5px;
    color: var(--text-secondary);
}

