/* ============================================================
   EliteMart - Premium Design System
   Luxury White • Royal Blue • Black • Gold
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
    /* Primary Colors */
    --primary: #1a3a7e;
    --primary-dark: #0f2556;
    --primary-light: #2d5cc7;
    --primary-rgb: 26, 58, 126;

    /* Accent / Gold */
    --gold: #d4a745;
    --gold-dark: #b8912e;
    --gold-light: #e8c76b;
    --gold-rgb: 212, 167, 69;

    /* Neutrals */
    --black: #1a1a2e;
    --dark: #16213e;
    --dark-2: #0f3460;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;

    /* Semantic Colors */
    --success: #28a745;
    --success-light: #d4edda;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --info: #17a2b8;
    --info-light: #d1ecf1;

    /* Background */
    --bg-body: #f5f6fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-overlay: rgba(26, 26, 46, 0.7);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Sizing */
    --header-height: 70px;
    --topbar-height: 40px;
    --sidebar-width: 280px;
    --container-max: 1320px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 4px 20px rgba(212, 167, 69, 0.3);
    --shadow-primary: 0 4px 20px rgba(26, 58, 126, 0.3);

    /* Borders */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    --border-color: #e9ecef;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-body: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-glass: rgba(26, 26, 46, 0.85);
    --white: #1a1a2e;
    --black: #e4e4e4;
    --gray-100: #16213e;
    --gray-200: #1a2744;
    --gray-300: #243352;
    --gray-700: #b0b7c3;
    --gray-800: #d0d5dd;
    --gray-900: #e4e7eb;
    --border-color: #2a2a4a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

::selection {
    background: var(--primary);
    color: var(--white);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--gold) !important; }
.text-dark { color: var(--gray-900) !important; }
.text-muted { color: var(--gray-600) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-dark { background-color: var(--dark) !important; }
.bg-light { background-color: var(--gray-100) !important; }

.font-heading { font-family: var(--font-heading); }
.font-weight-600 { font-weight: 600; }

.gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, var(--dark) 0%, var(--black) 100%);
}

.gradient-hero {
    background: linear-gradient(135deg, #1a3a7e 0%, #0f2556 40%, #1a1a2e 100%);
}

/* Glassmorphism */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Section spacing */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-all-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.view-all-link:hover {
    color: var(--gold);
    gap: 8px;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: var(--z-sticky);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.top-bar a:hover {
    color: var(--gold);
}

.top-bar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   MAIN HEADER
   ============================================================ */
.main-header {
    background: var(--bg-card);
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
}

.main-header .container-fluid {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo span {
    color: var(--gold);
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 680px;
    position: relative;
}

.search-form {
    display: flex;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    background: var(--gray-100);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
    background: var(--bg-card);
}

.search-category-select {
    border: none;
    background: transparent;
    padding: 0 12px;
    font-size: 0.85rem;
    color: var(--gray-700);
    border-right: 1px solid var(--gray-300);
    outline: none;
    min-width: 120px;
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    color: var(--gray-800);
}

.search-input::placeholder {
    color: var(--gray-500);
}

.search-btn {
    border: none;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Live Search Results */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border-color);
}

.search-results-dropdown.show {
    display: block;
    animation: slideDown 0.2s ease;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: var(--gray-100);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-item .result-info h6 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-item .result-info .result-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-action-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.7rem;
}

.header-action-btn i {
    font-size: 1.3rem;
}

.header-action-btn:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.header-action-btn .badge-count {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.header-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.header-user-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.header-user-btn i {
    font-size: 1rem;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.nav-bar {
    background: var(--primary);
    position: relative;
    z-index: var(--z-sticky);
}

.nav-bar .container-fluid {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-dark);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-categories-btn:hover {
    background: var(--gold);
    color: var(--dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding: 0 16px;
}

.nav-right a {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.nav-right a:hover {
    color: var(--gold-light);
}

/* Mega Menu */
.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-dropdown);
    display: none;
    border-top: 3px solid var(--gold);
    animation: slideDown 0.25s ease;
}

.mega-menu-wrapper.show {
    display: block;
}

.mega-menu {
    display: grid;
    grid-template-columns: 240px 1fr;
    max-height: 500px;
}

.mega-menu-categories {
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 12px 0;
}

.mega-menu-categories a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--gray-800);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.mega-menu-categories a:hover,
.mega-menu-categories a.active {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 24px;
}

.mega-menu-categories a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.mega-menu-content {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    overflow-y: auto;
}

.mega-menu-column h5 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.mega-menu-column a {
    display: block;
    color: var(--gray-700);
    font-size: 0.85rem;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.mega-menu-column a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.hero-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    min-width: 100%;
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 58, 126, 0.4) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    padding: 0 60px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.7;
}

.hero-slider-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--gold);
    width: 36px;
    border-radius: 6px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
}

.hero-arrow:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-elite {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary-elite {
    background: var(--primary);
    color: white;
}

.btn-primary-elite:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--dark);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--dark);
}

.btn-outline-elite {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-elite:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

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

.btn-sm-elite {
    padding: 8px 18px;
    font-size: 0.8rem;
}

.btn-lg-elite {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.product-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    color: white;
}

.badge-sale { background: var(--danger); }
.badge-new { background: var(--success); }
.badge-trending { background: var(--gold); color: var(--dark); }
.badge-flash { background: linear-gradient(135deg, #ff6b6b, #ff4757); }

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--gray-700);
    font-size: 0.9rem;
}

.product-action-btn:hover {
    background: var(--primary);
    color: white;
}

.product-action-btn.wishlisted {
    background: var(--danger);
    color: white;
}

.product-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-label {
    font-size: 0.72rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-title {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-title a {
    color: inherit;
}

.product-title a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.product-rating .bi {
    font-size: 0.75rem;
}

.product-rating .rating-count {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.product-price {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

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

.product-price .original-price {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-price .discount-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--danger);
    background: var(--danger-light);
    padding: 1px 6px;
    border-radius: var(--radius-sm);
}

.product-add-cart {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-add-cart:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Quick View */
.product-quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.product-card:hover .product-quick-view {
    opacity: 1;
}

.quick-view-btn {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: white;
}

/* ============================================================
   FLASH SALE / COUNTDOWN
   ============================================================ */
.flash-sale-section {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b6b 50%, #ff4757 100%);
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.flash-sale-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

.flash-sale-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 1rem;
}

.flash-sale-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.flash-sale-title h2 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.flash-icon {
    font-size: 2rem;
    animation: pulse 1.5s ease infinite;
}

.countdown-timer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 8px 14px;
    text-align: center;
    min-width: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.countdown-unit .count-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.countdown-unit .count-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(26, 58, 126, 0.1), rgba(212, 167, 69, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.category-card h6 {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.category-card .category-count {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ============================================================
   FEATURE BOXES
   ============================================================ */
.feature-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-box:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-box h6 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-box p {
    font-size: 0.78rem;
    color: var(--gray-600);
    margin: 0;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 167, 69, 0.2) 0%, transparent 70%);
}

.newsletter-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.newsletter-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    font-size: 1rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form button {
    padding: 14px 28px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--gold-light);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-brand .logo {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-links h5 {
    color: white;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links ul li a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact li i {
    color: var(--gold);
    margin-top: 2px;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.payment-icons img {
    height: 28px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.payment-icons img:hover {
    opacity: 1;
}

.payment-icon-placeholder {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-section {
    background: var(--gray-100);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-section .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
}

.breadcrumb-section .breadcrumb-item {
    font-size: 0.85rem;
}

.breadcrumb-section .breadcrumb-item a {
    color: var(--gray-600);
}

.breadcrumb-section .breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-section .breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-elite .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.form-elite .form-control,
.form-elite .form-select {
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg-card);
}

.form-elite .form-control:focus,
.form-elite .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-elite .input-group .form-control {
    border-right: none;
}

.form-elite .input-group .btn {
    border: 2px solid var(--gray-300);
    border-left: none;
}

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.elite-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.elite-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.elite-card-header h5 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.elite-card-body {
    padding: 20px;
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
}

.status-badge.success { background: var(--success-light); color: var(--success); }
.status-badge.danger { background: var(--danger-light); color: var(--danger); }
.status-badge.warning { background: var(--warning-light); color: #856404; }
.status-badge.info { background: var(--info-light); color: var(--info); }
.status-badge.primary { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast-notification {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid;
    position: relative;
}

.toast-notification.success { border-left-color: var(--success); }
.toast-notification.error { border-left-color: var(--danger); }
.toast-notification.warning { border-left-color: var(--warning); }
.toast-notification.info { border-left-color: var(--info); }

.toast-notification .toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-notification.success .toast-icon { color: var(--success); }
.toast-notification.error .toast-icon { color: var(--danger); }
.toast-notification.warning .toast-icon { color: var(--warning); }
.toast-notification.info .toast-icon { color: var(--info); }

.toast-body {
    flex: 1;
}

.toast-body .toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.toast-body .toast-message {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.toast-close:hover {
    color: var(--gray-800);
}

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.scroll-to-top:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-4px);
}

/* ============================================================
   DARK MODE TOGGLE
   ============================================================ */
.dark-mode-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray-700);
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

[data-theme="dark"] .dark-mode-toggle {
    background: rgba(212, 167, 69, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: var(--z-modal);
    transition: var(--transition-slow);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

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

.mobile-menu-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary);
}

.mobile-menu-header .logo {
    color: white;
    font-size: 1.3rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-nav {
    padding: 12px 0;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-800);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-nav a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.mobile-menu-nav a i {
    width: 22px;
    text-align: center;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    padding: 30px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-300);
}

.social-login-btn {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-700);
}

.social-login-btn:hover {
    border-color: var(--primary);
    background: var(--gray-100);
}

/* ============================================================
   STAR RATING
   ============================================================ */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star-rating .bi-star-fill,
.star-rating .bi-star-half {
    color: #ffc107;
}

.star-rating .bi-star {
    color: var(--gray-400);
}

.rating-number {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-left: 4px;
}

/* ============================================================
   REVIEW CARDS
   ============================================================ */
.review-card {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.78rem;
    color: var(--gray-600);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--success);
    font-weight: 600;
    background: var(--success-light);
    padding: 2px 8px;
    border-radius: var(--radius-xl);
}

/* ============================================================
   DASHBOARD SIDEBAR
   ============================================================ */
.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 24px;
    min-height: calc(100vh - 200px);
}

.dashboard-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px 0;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.dashboard-sidebar .user-profile {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.dashboard-sidebar .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--gold);
    margin-bottom: 10px;
}

.dashboard-sidebar .user-name {
    font-weight: 700;
    font-size: 1rem;
}

.dashboard-sidebar .user-email {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: var(--gray-700);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.sidebar-nav a i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
}

.dashboard-content {
    min-width: 0;
}

/* ============================================================
   TESTIMONIAL SLIDER
   ============================================================ */
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 0.92rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.testimonial-position {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* ============================================================
   BRAND LOGOS
   ============================================================ */
.brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.brand-item {
    width: 120px;
    height: 70px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: var(--transition);
    cursor: pointer;
    color: var(--gray-600);
    font-weight: 700;
    font-size: 0.85rem;
}

.brand-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a {
    color: var(--gray-900);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

/* ============================================================
   PROMOTIONAL BANNERS
   ============================================================ */
.promo-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.promo-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.promo-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.promo-banner .promo-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.promo-banner-1 .promo-gradient {
    background: linear-gradient(135deg, rgba(26, 58, 126, 0.9), rgba(26, 58, 126, 0.5));
}

.promo-banner-2 .promo-gradient {
    background: linear-gradient(135deg, rgba(212, 167, 69, 0.9), rgba(212, 167, 69, 0.5));
}

.promo-banner-3 .promo-gradient {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.5));
}

.promo-banner-content h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.promo-banner-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

/* ============================================================
   PRODUCT GRID / LIST VIEW
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.products-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-toggle button {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.view-toggle button:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.view-toggle button:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.view-toggle button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Product list view */
.product-list-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: var(--transition);
}

.product-list-item:hover {
    box-shadow: var(--shadow);
}

.product-list-item .product-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.product-list-item .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-variation {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-selector button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.quantity-selector button:hover {
    background: var(--primary);
    color: white;
}

.quantity-selector input {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    outline: none;
}

/* ============================================================
   CHECKOUT STEPS
   ============================================================ */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-step .step-number {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--gray-200);
    color: var(--gray-600);
    transition: var(--transition);
}

.checkout-step.active .step-number {
    background: var(--primary);
    color: white;
}

.checkout-step.completed .step-number {
    background: var(--success);
    color: white;
}

.checkout-step .step-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.checkout-step.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-connector {
    width: 50px;
    height: 2px;
    background: var(--gray-300);
    margin: 0 8px;
}

.step-connector.completed {
    background: var(--success);
}

/* ============================================================
   ORDER TIMELINE
   ============================================================ */
.order-timeline {
    position: relative;
    padding-left: 30px;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-300);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--gray-400);
    border: 2px solid var(--bg-card);
}

.timeline-item.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

.timeline-item.completed::before {
    background: var(--success);
}

.timeline-item .timeline-date {
    font-size: 0.78rem;
    color: var(--gray-600);
}

.timeline-item .timeline-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.timeline-item .timeline-desc {
    font-size: 0.82rem;
    color: var(--gray-600);
}

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.empty-state h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-600);
    margin-bottom: 20px;
}

/* ============================================================
   MODAL OVERRIDES
   ============================================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}

.modal-header .modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
}

/* ============================================================
   TABLE STYLES
   ============================================================ */
.elite-table {
    width: 100%;
    border-collapse: collapse;
}

.elite-table thead th {
    background: var(--gray-100);
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.elite-table tbody td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.elite-table tbody tr:hover {
    background: var(--gray-100);
}

/* ============================================================
   HORIZONTAL SCROLL (PRODUCT SLIDERS)
   ============================================================ */
.products-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) transparent;
}

.products-scroll::-webkit-scrollbar {
    height: 6px;
}

.products-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.products-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.products-scroll .product-card {
    min-width: 220px;
    max-width: 220px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    min-width: 700px;
}

.comparison-table th {
    background: var(--gray-100);
    font-weight: 700;
    width: 150px;
}

/* ============================================================
   PRICE FILTER SLIDER
   ============================================================ */
.price-range-slider {
    padding: 10px 0;
}

.price-range-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    outline: none;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--primary);
    cursor: pointer;
    box-shadow: var(--shadow);
}

/* ============================================================
   IMAGE ZOOM
   ============================================================ */
.product-image-zoom {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: zoom-in;
}

.product-image-zoom img {
    transition: transform 0.3s ease;
}

.product-image-zoom:hover img {
    transform: scale(2);
}

.product-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: var(--primary);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
