/* 
 * DigiMarket PRO - Complete Stylesheet v2.0
 * طراحی مدرن - بدون تداخل و باگ
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --primary: #ef4056;
    --primary-dark: #d63447;
    --primary-light: #fff0f2;
    --secondary: #2a3568;
    --bg: #f5f5f6;
    --white: #ffffff;
    --text: #232933;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --font: 'Vazir', Tahoma, Geneva, Verdana, sans-serif;
    --transition: all 0.3s ease;
}

/* ============================================
   Font Face
   ============================================ */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, button, textarea, select { font-family: var(--font); }

/* ============================================
   Container
   ============================================ */
.container { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.section { padding: 40px 0; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }

/* ============================================
   Top Bar
   ============================================ */
.top-bar { background: var(--secondary); color: #fff; font-size: 13px; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-links { display: flex; gap: 16px; align-items: center; }
.top-bar a { color: #fff; font-size: 13px; }
.top-bar a:hover { opacity: 0.8; color: #fff; }

/* ============================================
   Header - Z-Index Hierarchy
   ============================================ */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.logo-icon { font-size: 28px; }
.logo-text { font-size: 24px; font-weight: 900; }
.logo-text span { color: var(--primary); }

/* Search */
.search-form { flex: 1; display: flex; max-width: 600px; }
.search-input { flex: 1; padding: 10px 16px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 14px; transition: var(--transition); }
.search-input:focus { outline: none; border-color: var(--primary); }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius); margin-right: 8px; cursor: pointer; transition: var(--transition); }
.search-form button:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.action-link { position: relative; font-size: 22px; color: var(--text); text-decoration: none; }
.action-link:hover { color: var(--primary); }
.badge {
    position: absolute; top: -8px; right: -10px; background: var(--primary); color: #fff;
    font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-weight: 700; padding: 0 5px;
}

/* Hamburger */
.hamburger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text); }

/* ============================================
   Navigation Menu - Fixed & Clean
   ============================================ */
.category-menu {
    position: relative;
    z-index: 100;
    background: var(--white);
}
.menu-container {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

/* Menu Dropdown */
.menu-dropdown {
    position: relative;
}
.menu-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: none;
    background: var(--white);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.menu-dropdown-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.menu-dropdown-btn i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.2s;
}

/* Dropdown Content */
.menu-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    min-width: 240px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    z-index: 101;
}
.menu-dropdown:hover .menu-dropdown-content {
    display: block;
}
.brands-dropdown {
    min-width: 320px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
}
.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.dropdown-item i { width: 20px; text-align: center; font-size: 14px; }
.all-categories {
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 12px;
    color: var(--primary);
    font-weight: 600;
    justify-content: center;
}

/* Quick Links */
.menu-quick-links, .menu-extra-links {
    display: flex;
    align-items: center;
    gap: 2px;
}
.menu-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.menu-link:hover { background: var(--bg); color: var(--primary); }
.menu-link i { font-size: 14px; }
.menu-extra-links { margin-right: auto; }

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #mobileMenu {
        display: none;
        padding: 12px 16px;
        background: var(--white);
        border-top: 1px solid var(--border);
        max-height: 70vh;
        overflow-y: auto;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 101;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }
    #mobileMenu.open {
        display: block;
    }
    
    .menu-container {
        flex-direction: column;
        gap: 4px;
    }
    .menu-quick-links, .menu-extra-links {
        flex-direction: column;
        width: 100%;
    }
    .menu-link {
        width: 100%;
        padding: 12px;
        justify-content: flex-start;
    }
    
    /* Mobile dropdown fix */
    .menu-dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding: 8px 16px;
        background: var(--bg);
        border-radius: 8px;
        margin: 4px 0;
    }
    .menu-dropdown:hover .menu-dropdown-content {
        display: none;
    }
    .menu-dropdown.active .menu-dropdown-content {
        display: block;
    }
    .brands-dropdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Hero Slider
   ============================================ */
.hero-slider { height: 420px; border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.hero-slide { background: linear-gradient(135deg, #ef4056 0%, #e8533f 50%, #ff6b35 100%); display: flex; align-items: center; justify-content: center; }
.hero-content { text-align: center; color: #fff; padding: 40px; max-width: 600px; }
.hero-content h2 { font-size: 36px; font-weight: 900; margin-bottom: 12px; line-height: 1.3; }
.hero-content p { font-size: 18px; opacity: 0.9; margin-bottom: 24px; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
    color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 14px; font-weight: 600;
    margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.3);
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--primary);
    padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 700;
    text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); color: var(--primary-dark); }

/* ============================================
   Value Propositions
   ============================================ */
.value-props { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 0; }
.value-props-grid { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.value-prop-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; transition: background 0.2s; }
.value-prop-item:hover { background: var(--primary-light); }
.vp-icon { font-size: 24px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 12px; }
.vp-text { display: flex; flex-direction: column; }
.vp-text strong { font-size: 13px; color: var(--text); }
.vp-text span { font-size: 11px; color: var(--text-secondary); }

/* ============================================
   Icon Categories
   ============================================ */
.icon-categories { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.icon-cat-item { text-align: center; color: var(--text); min-width: 90px; transition: var(--transition); }
.icon-circle {
    width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: flex;
    align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 8px;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.icon-cat-item:hover .icon-circle { background: var(--primary); color: #fff; transform: scale(1.05); }
.icon-cat-item span { font-size: 12px; font-weight: 500; }

/* ============================================
   Buttons
   ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; border: none; line-height: 1.5; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }

/* ============================================
   Product Grid & Cards
   ============================================ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.product-img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 16px; background: #fafafa; }
.discount-badge { position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 900; z-index: 1; box-shadow: 0 2px 8px rgba(239,64,86,0.3); }
.popular-badge { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; z-index: 1; }
.product-info { padding: 12px 16px 16px; }
.product-info h3 { font-size: 13px; font-weight: 500; margin-bottom: 8px; line-height: 1.6; }
.product-info h3 a { color: var(--text); }
.product-info h3 a:hover { color: var(--primary); }
.product-brand { font-size: 11px; color: var(--primary); font-weight: 600; display: block; margin-bottom: 4px; }
.product-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; flex-wrap: wrap; }
.product-meta .stars { color: #f59e0b; font-weight: 700; background: #fef3c7; padding: 2px 8px; border-radius: 4px; }
.product-meta .sold-count { color: var(--text-secondary); }
.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.price { font-size: 16px; font-weight: 700; color: var(--text); }
.old-price { font-size: 13px; color: #999; text-decoration: line-through; }
.product-price .currency { font-size: 12px; color: var(--text-secondary); margin-right: 4px; }
.stock-alert { display: inline-block; background: #fef3c7; color: #92400e; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
.saved-amount { display: flex; align-items: center; gap: 6px; background: #d1fae5; color: #065f46; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; margin: 8px 0; }
.saved-amount i { font-size: 14px; }
.stock-info { margin: 8px 0; font-size: 12px; }
.in-stock-badge { color: #065f46; font-weight: 600; }
.low-stock-badge { color: #92400e; font-weight: 600; animation: pulse 1.5s ease-in-out infinite; }
.out-stock-badge { color: #991b1b; font-weight: 600; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.btn-add-cart { width: 100%; background: var(--primary); color: #fff; border: none; padding: 10px; border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,64,86,0.3); }
.btn-add-cart:disabled { background: #ccc; cursor: not-allowed; }
.btn-add-cart:disabled:hover { background: #ccc; transform: none; box-shadow: none; }
.quick-actions { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.quick-actions button, .quick-view-link { flex: 1; padding: 6px; border: 1px solid var(--border); background: var(--white); border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text-secondary); transition: all 0.2s; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
.quick-actions button:hover, .quick-view-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ============================================
   Amazing Section
   ============================================ */
.amazing-section { background: linear-gradient(135deg, #fff0f2 0%, #fff5f5 50%, #ffffff 100%); padding: 40px 0; border-radius: var(--radius-lg); margin: 24px 0; }
.amazing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.amazing-title { display: flex; align-items: center; gap: 12px; }
.amazing-title i { font-size: 28px; color: var(--primary); animation: boltPulse 1.5s ease-in-out infinite; }
@keyframes boltPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.amazing-title h2 { font-size: 22px; font-weight: 900; color: var(--text); }
.amazing-title p { font-size: 13px; color: var(--text-secondary); }
.amazing-timer { display: flex; align-items: center; gap: 4px; background: var(--primary); padding: 8px 16px; border-radius: 12px; }
.timer-block { text-align: center; }
.timer-num { font-size: 20px; font-weight: 900; color: #fff; line-height: 1; }
.timer-label { font-size: 10px; color: rgba(255,255,255,0.8); display: block; }
.timer-sep { font-size: 20px; color: #fff; font-weight: 700; }
.amazing-view-all { color: var(--primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.amazing-view-all:hover { color: var(--primary-dark); }

/* ============================================
   Section Header
   ============================================ */
.section-header-main { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.view-all-link { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--primary); transition: all 0.2s; }
.view-all-link:hover { background: var(--primary-light); }

/* ============================================
   Product Detail
   ============================================ */
.product-detail { padding: 40px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--white); border-radius: var(--radius); padding: 32px; }
.product-detail-image img { width: 100%; border-radius: var(--radius); }
.price-large { font-size: 32px; font-weight: 900; color: var(--primary); }
.discount-label { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-right: 8px; }
.stock-status { padding: 8px 16px; border-radius: 8px; margin: 16px 0; display: inline-block; font-weight: 600; }
.in-stock { background: var(--success-light); color: #065f46; }
.out-stock { background: var(--error-light); color: #991b1b; }
.qty-selector { display: flex; align-items: center; gap: 8px; margin: 16px 0; }
.qty-selector button { width: 40px; height: 40px; border: 2px solid var(--border); background: var(--white); border-radius: 8px; font-size: 18px; cursor: pointer; }
.qty-selector button:hover { border-color: var(--primary); color: var(--primary); }
.qty-selector input { width: 60px; height: 40px; text-align: center; border: 2px solid var(--border); border-radius: 8px; font-size: 16px; }

/* ============================================
   Tables
   ============================================ */
.specs-table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.specs-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; width: 30%; background: #f9fafb; color: var(--text-secondary); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.compare-table th, .compare-table td { padding: 12px; border: 1px solid var(--border); text-align: center; }
.compare-table th { background: #f9fafb; font-weight: 600; }

/* ============================================
   Cart Page
   ============================================ */
.cart-page { padding: 32px 0; min-height: 60vh; }
.cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.cart-header h1 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.cart-item-count { color: var(--text-secondary); font-size: 14px; background: var(--bg); padding: 6px 12px; border-radius: 20px; }
.empty-cart { text-align: center; padding: 60px 20px; }
.empty-cart-icon { font-size: 80px; margin-bottom: 16px; }
.empty-cart h2 { font-size: 22px; margin-bottom: 8px; color: var(--text); }
.empty-cart p { color: var(--text-secondary); margin-bottom: 24px; }
.btn-go-shop { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-go-shop:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.empty-cart-suggestions { margin-top: 60px; text-align: right; }
.empty-cart-suggestions h3 { font-size: 18px; margin-bottom: 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.free-shipping-progress { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; border: 1px solid var(--border); }
.shipping-achieved { display: flex; align-items: center; gap: 10px; color: #059669; font-size: 15px; font-weight: 600; }
.shipping-achieved i { font-size: 24px; }
.shipping-pending { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--text); }
.shipping-pending i { font-size: 20px; color: var(--primary); }
.shipping-pending strong { color: var(--primary); }
.progress-bar { width: 100%; height: 6px; background: #e5e7eb; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), #ff6b6b); border-radius: 3px; transition: width 0.5s ease; }
.cart-items-section { display: flex; flex-direction: column; gap: 12px; }
.cart-item { background: #fff; border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); transition: all 0.2s; }
.cart-item:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.cart-item-image img { width: 100px; height: 100px; object-fit: contain; border-radius: 8px; background: #fafafa; }
.cart-item-details { flex: 1; }
.cart-item-name { font-size: 15px; font-weight: 600; color: var(--text); text-decoration: none; display: block; margin-bottom: 8px; }
.cart-item-name:hover { color: var(--primary); }
.cart-stock-warning { display: inline-block; font-size: 12px; color: #92400e; background: #fef3c7; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.cart-item-actions-mobile { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.quantity-control { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.quantity-control button { width: 36px; height: 36px; border: none; background: var(--bg); font-size: 18px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; }
.quantity-control button:hover:not(:disabled) { background: var(--primary); color: #fff; }
.quantity-control button:disabled { opacity: 0.4; cursor: not-allowed; }
.quantity-display { width: 44px; text-align: center; font-size: 16px; font-weight: 700; }
.cart-item-price { font-size: 14px; color: var(--text-secondary); }
.cart-item-subtotal { text-align: center; min-width: 120px; }
.subtotal-label { font-size: 12px; color: var(--text-secondary); display: block; }
.subtotal-price { font-size: 18px; font-weight: 700; color: var(--text); }
.cart-item-remove { width: 36px; height: 36px; border: none; background: var(--bg); border-radius: 50%; cursor: pointer; color: var(--text-secondary); font-size: 16px; display: flex; align-items: center; justify-content: center; }
.cart-item-remove:hover { background: #fee2e2; color: #ef4444; }
.cart-summary-card { background: #fff; border-radius: 12px; padding: 24px; border: 1px solid var(--border); position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; }
.free-shipping { color: #059669; font-weight: 700; }
.remaining-amount { color: var(--primary); font-weight: 600; }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.total-row { font-size: 18px; font-weight: 900; }
.total-price { color: var(--primary); font-size: 22px; }
.btn-checkout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; background: var(--primary); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; margin-top: 16px; }
.btn-checkout:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(239,64,86,0.3); color: #fff; }
.btn-continue-shopping { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; color: var(--primary); text-decoration: none; font-weight: 600; margin-top: 8px; border-radius: 8px; }
.btn-continue-shopping:hover { background: var(--primary-light); }
.trust-badges { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-secondary); }
.trust-item i { font-size: 18px; color: var(--primary); }
.discount-code-box { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--border); margin-top: 12px; }
.discount-code-box h4 { font-size: 14px; margin-bottom: 12px; }
.discount-input-group { display: flex; gap: 8px; }
.discount-input-group input { flex: 1; padding: 10px 14px; border: 2px solid var(--border); border-radius: 8px; font-family: var(--font); font-size: 14px; }
.discount-input-group input:focus { outline: none; border-color: var(--primary); }
.btn-apply-coupon { padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-family: var(--font); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-apply-coupon:hover { background: var(--primary-dark); }

/* ============================================
   Shop Layout
   ============================================ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 24px 0; }
.filter-sidebar { background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); height: fit-content; position: sticky; top: 80px; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; padding: 8px; border: 2px solid var(--border); border-radius: 6px; font-size: 14px; }

/* ============================================
   Pagination
   ============================================ */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 32px 0; }
.pagination li a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 2px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; }
.pagination li.active a, .pagination li a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   Reviews
   ============================================ */
.review-card { background: var(--white); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; border: 1px solid var(--border); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.review-rating { color: #f59e0b; }

/* ============================================
   Empty State
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 64px; color: var(--border); margin-bottom: 16px; display: block; }
.empty-state h3 { margin-bottom: 16px; color: var(--text-secondary); }

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--white); margin-top: 40px; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0 20px; }
.footer-col h4 { margin-bottom: 16px; font-size: 16px; color: var(--text); }
.footer-col a, .footer-col p { display: block; color: var(--text-secondary); margin-bottom: 8px; font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a { font-size: 20px; }
.footer-bottom { text-align: center; padding: 16px 0; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 13px; }

/* ============================================
   Forms
   ============================================ */
.form-control { width: 100%; padding: 10px 16px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-left: 36px; }

/* ============================================
   Alerts & Toast
   ============================================ */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; font-size: 14px; }
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: var(--error-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: 8px; color: #fff; font-family: var(--font); z-index: 9999; font-size: 14px; font-weight: 500; animation: toastIn 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ============================================
   Auth Pages
   ============================================ */
.auth-container { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 60px auto; padding: 0 16px; }
.auth-box { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.auth-box h2 { margin-bottom: 24px; text-align: center; }

/* ============================================
   Account Page
   ============================================ */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 40px 0; }
.account-sidebar { background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.account-sidebar a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); margin-bottom: 4px; font-weight: 500; transition: var(--transition); }
.account-sidebar a:hover, .account-sidebar a.active { background: var(--primary-light); color: var(--primary); }
.account-content { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .auth-container { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; }
    .search-form { display: none; }
    .hero-slider { height: 280px; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-image img { width: 70px; height: 70px; }
    .cart-item-subtotal { min-width: auto; text-align: right; }
    .cart-summary-card { position: static; }
    .top-bar { display: none; }
    .value-props-grid { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
    .value-prop-item { min-width: 150px; flex-shrink: 0; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-slider { height: 220px; }
    .hero-content h2 { font-size: 20px; }
    .hero-content p { font-size: 14px; }
    .footer-top { grid-template-columns: 1fr; }
}