/* ============================================
   ElectroStore - Main Stylesheet
   Advanced Ecommerce Platform
   Inspired by Electro Theme Design
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@400;600;700&display=swap');

/* ============================================
   CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #fed700;
    --primary-dark: #e5c200;
    --primary-hover: #f5d000;
    --primary-light: #fff8cc;
    
    /* Neutral Colors */
    --dark: #333e48;
    --dark-light: #485563;
    --gray-900: #1a1a2e;
    --gray-800: #333e48;
    --gray-700: #4a5568;
    --gray-600: #6c757d;
    --gray-500: #8a94a6;
    --gray-400: #b0b7c3;
    --gray-300: #d1d5db;
    --gray-200: #e8eaed;
    --gray-100: #f4f5f7;
    --gray-50: #f8f9fa;
    --white: #ffffff;
    
    /* Accent Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Sizes */
    --header-height: 140px;
    --sidebar-width: 260px;
    --container-max: 1200px;
    --container-wide: 1400px;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
    
    /* Borders */
    --border-color: #e8eaed;
    --border-radius: 6px;
    --border-radius-lg: 10px;
    --border-radius-xl: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* ============================================
   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;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

button {
    cursor: pointer;
}

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

/* ============================================
   CONTAINER & GRID
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

.container-wide {
    max-width: var(--container-wide);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col { padding: 0 10px; flex: 1; }
.col-2 { width: 16.666%; padding: 0 10px; }
.col-3 { width: 25%; padding: 0 10px; }
.col-4 { width: 33.333%; padding: 0 10px; }
.col-5 { width: 41.666%; padding: 0 10px; }
.col-6 { width: 50%; padding: 0 10px; }
.col-7 { width: 58.333%; padding: 0 10px; }
.col-8 { width: 66.666%; padding: 0 10px; }
.col-9 { width: 75%; padding: 0 10px; }
.col-10 { width: 83.333%; padding: 0 10px; }
.col-12 { width: 100%; padding: 0 10px; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary-dark) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.p-20 { padding: 20px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 215, 0, 0.4);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}
.btn-dark:hover {
    background: var(--dark-light);
    color: var(--white);
}

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

.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-sm { padding: 6px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; min-width: 42px; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 12px;
    color: var(--gray-600);
    padding: 8px 0;
}

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

.top-bar-left span {
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-right a {
    color: var(--gray-600);
    padding: 2px 10px;
    border-right: 1px solid var(--gray-300);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-right a:last-child {
    border-right: none;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    z-index: 100;
}

.site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
    letter-spacing: -1px;
}

.site-logo a span {
    color: var(--primary-dark);
}

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

.search-form {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
}

.search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 14px;
    background: transparent;
}

.search-form input[type="text"]::placeholder {
    color: var(--gray-400);
}

.search-form .search-category {
    padding: 0 12px;
    border-left: 1px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-600);
    font-size: 13px;
    cursor: pointer;
    min-width: 140px;
}

.search-form .search-btn {
    background: var(--primary);
    color: var(--dark);
    padding: 0 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

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

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
}

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

.search-result-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 4px;
}

.search-result-item .result-info h4 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.search-result-item .result-info .result-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.search-result-item .result-info .result-price .old-price {
    text-decoration: line-through;
    color: var(--gray-400);
    font-weight: 400;
    margin-left: 6px;
    font-size: 12px;
}

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

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

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

.header-action-btn i {
    font-size: 22px;
}

.header-action-btn .badge {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--primary);
    color: var(--dark);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.header-cart:hover {
    background: var(--gray-50);
}

.header-cart .cart-icon {
    font-size: 24px;
    color: var(--gray-600);
    position: relative;
}

.header-cart .cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: var(--dark);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cart .cart-total {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

/* ============================================
   NAVIGATION / MEGA MENU
   ============================================ */
.main-nav {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    position: relative;
    z-index: 90;
}

.main-nav .container {
    display: flex;
    align-items: stretch;
}

.nav-departments {
    position: relative;
    min-width: 260px;
}

.departments-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--primary);
    color: var(--dark);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    height: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.departments-btn i {
    font-size: 18px;
}

.departments-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
}

.departments-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

.departments-menu ul li {
    border-bottom: 1px solid var(--gray-100);
}

.departments-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.departments-menu ul li a:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
    padding-left: 25px;
}

.departments-menu ul li a i.cat-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

.departments-menu ul li a .arrow {
    font-size: 10px;
    color: var(--gray-400);
}

/* Mega Submenu */
.mega-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 500px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    display: none;
    z-index: 101;
}

.departments-menu ul li:hover .mega-submenu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    animation: fadeIn 0.2s ease;
}

.mega-submenu-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.mega-submenu-col a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 400;
}

.mega-submenu-col a:hover {
    color: var(--primary-dark);
    padding-left: 5px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    padding-left: 10px;
}

.nav-links a {
    padding: 12px 18px;
    color: var(--dark);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.nav-shipping {
    margin-left: auto;
    padding: 12px 0;
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-shipping i {
    color: var(--success);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-section {
    padding: 0;
    position: relative;
}

.hero-wrapper {
    display: flex;
    gap: 0;
}

.hero-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: none;
}

.hero-sidebar ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    font-size: 13px;
    color: var(--dark);
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
}

.hero-sidebar ul li a:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
    padding-left: 22px;
}

.hero-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    min-height: 420px;
}

.slide {
    display: none;
    padding: 50px 60px;
    min-height: 420px;
    align-items: center;
}

.slide.active {
    display: flex;
    animation: fadeSlide 0.6s ease;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}

.slide-content {
    flex: 1;
}

.slide-content .subtitle {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.slide-content h2 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--dark);
}

.slide-content .price-tag {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 5px;
}

.slide-content .price-tag .amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--dark);
    line-height: 1;
}

.slide-content .price-tag .cents {
    font-size: 24px;
    font-weight: 700;
    vertical-align: super;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.slider-dots .dot {
    width: 30px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background: var(--primary);
    width: 45px;
}

/* ============================================
   BANNER ADS (3-Column)
   ============================================ */
.banner-ads {
    padding: 30px 0;
}

.banner-ads .row {
    gap: 20px;
}

.banner-ad-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
}

.banner-ad-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.banner-ad-card img {
    width: 100px;
    height: 80px;
    object-fit: contain;
}

.banner-ad-card .ad-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.banner-ad-card .ad-content .ad-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.banner-ad-card .ad-content .discount {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-dark);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: var(--primary);
}

.section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
}

.section-tabs {
    display: flex;
    gap: 0;
}

.section-tabs .tab-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    background: none;
}

.section-tabs .tab-btn:hover,
.section-tabs .tab-btn.active {
    color: var(--dark);
    border-bottom-color: var(--primary);
}

.section-link {
    font-size: 13px;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    color: var(--primary-dark);
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.products-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.products-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.products-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: var(--primary);
}

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

.product-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-sale { background: var(--danger); color: white; }
.badge-new { background: var(--info); color: white; }
.badge-hot { background: var(--warning); color: var(--dark); }

.product-card .product-hover-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 10px 0;
    margin-top: 12px;
    border-top: 1px solid var(--gray-200);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    width: 100%;
    transition: all 0.3s ease;
}

.product-card:hover .product-hover-actions {
    max-height: 40px;
    opacity: 1;
}

.product-card .hover-action-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.product-card .hover-action-btn:hover {
    color: var(--dark);
}

.product-card .product-image {
    position: relative;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: var(--gray-50);
    overflow: hidden;
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-card .product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-category {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-card .product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.product-card .product-name a {
    color: inherit;
}
.product-card .product-name a:hover {
    color: var(--primary-dark);
}

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

.product-card .product-rating .stars {
    display: flex;
    gap: 1px;
}

.product-card .product-rating .stars i {
    font-size: 12px;
    color: #ffc107;
}

.product-card .product-rating .stars i.empty {
    color: var(--gray-300);
}

.product-card .product-rating .count {
    font-size: 12px;
    color: var(--gray-500);
}

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

.product-card .current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.product-card .original-price {
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-card .discount-percent {
    font-size: 12px;
    font-weight: 700;
    color: var(--danger);
    background: var(--danger-light);
    padding: 2px 8px;
    border-radius: 20px;
}

.product-card .add-to-cart-icon-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--gray-100);
    color: var(--gray-500);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover .add-to-cart-icon-btn {
    background: var(--primary);
    color: var(--dark);
    transform: scale(1.05);
}

.product-card .add-to-cart-icon-btn:hover {
    background: var(--primary-dark);
}

.product-card .add-to-cart-icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-100) !important;
    color: var(--gray-500) !important;
}

/* Product Card List View */
.product-card-list {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    background: var(--white);
    margin-bottom: 15px;
    transition: var(--transition);
}

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

.product-card-list .product-image {
    width: 200px;
    flex-shrink: 0;
}

.product-card-list .product-info {
    flex: 1;
}

/* ============================================
   DEAL OF THE DAY
   ============================================ */
.deal-section {
    padding: 30px 0;
}

.deal-section .deal-wrapper {
    display: flex;
    gap: 20px;
}

.deal-banner {
    width: 260px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.deal-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.deal-banner h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.deal-banner .deal-save {
    background: var(--white);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 800;
    color: var(--danger);
}

.deal-timer {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.deal-timer .timer-block {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 8px 10px;
    text-align: center;
    min-width: 48px;
}

.deal-timer .timer-block .number {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.deal-timer .timer-block .label {
    font-size: 9px;
    color: var(--gray-600);
    text-transform: uppercase;
    margin-top: 2px;
}

.deal-products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-section {
    padding: 20px 0;
}

.category-showcase {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 20px 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

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

.category-card .cat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary-dark);
    background: var(--primary-light);
    border-radius: 50%;
}

.category-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-card .count {
    font-size: 12px;
    color: var(--gray-500);
}

/* ============================================
   PROMO BANNER (Full Width)
   ============================================ */
.promo-banner {
    padding: 10px 0;
}

.promo-banner-inner {
    background: linear-gradient(135deg, var(--primary) 0%, #ffd700 50%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    padding: 25px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.promo-banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.5;
}

.promo-banner-inner h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promo-banner-inner .promo-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

/* ============================================
   BRANDS CAROUSEL
   ============================================ */
.brands-section {
    padding: 30px 0;
}

.brands-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
}

.brands-carousel::-webkit-scrollbar {
    display: none;
}

.brand-item {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: var(--white);
}

.brand-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.brand-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: var(--gray-900);
    padding: 50px 0;
    margin-top: 40px;
}

.newsletter-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-content h3 {
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 5px;
}

.newsletter-content p {
    color: var(--gray-400);
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 450px;
    flex: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 2px solid transparent;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

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

.newsletter-form input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.15);
}

.newsletter-form button {
    padding: 14px 30px;
    background: var(--primary);
    color: var(--dark);
    font-weight: 700;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-widget h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-about .footer-logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 15px;
    display: inline-block;
}

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

.footer-about p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-contact-info li i {
    color: var(--primary);
    margin-top: 3px;
    width: 16px;
}

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

.footer-widget ul li a {
    color: var(--gray-400);
    font-size: 13px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-widget ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--primary);
}

.footer-widget ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 16px;
    transition: var(--transition);
}

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

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 13px;
}

.footer-payments {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-payments img {
    height: 28px;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.footer-payments img:hover {
    opacity: 1;
}

/* ============================================
   WHATSAPP WIDGET
   ============================================ */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--white);
    padding: 10px 18px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: var(--transition);
    pointer-events: none;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: var(--white);
    transform: rotate(45deg);
    box-shadow: 2px 2px 3px rgba(0,0,0,0.05);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 15px 0;
    font-size: 13px;
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
}

.breadcrumb ul li a {
    color: var(--gray-600);
}

.breadcrumb ul li a:hover {
    color: var(--primary-dark);
}

.breadcrumb ul li.active {
    color: var(--dark);
    font-weight: 600;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
    padding: 30px 0;
}

.product-gallery {
    position: relative;
}

.main-image {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
    overflow: hidden;
    cursor: zoom-in;
}

.main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: var(--transition);
}

.thumb-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb-images .thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 5px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-images .thumb.active,
.thumb-images .thumb:hover {
    border-color: var(--primary);
}

.thumb-images .thumb img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.product-detail-info {
    padding-left: 20px;
}

.product-detail-info .product-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-detail-info .product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--gray-500);
}

.product-detail-info .product-meta .rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-detail-info .product-meta .stars i {
    color: #ffc107;
    font-size: 14px;
}

.detail-price {
    padding: 20px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.detail-price .current {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
}

.detail-price .original {
    font-size: 20px;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 12px;
}

.detail-price .save {
    display: inline-block;
    margin-left: 12px;
    padding: 4px 14px;
    background: var(--danger-light);
    color: var(--danger);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.product-short-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.product-availability.in-stock {
    color: var(--success);
}

.product-availability.out-of-stock {
    color: var(--danger);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
    font-size: 14px;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.qty-input button {
    width: 40px;
    height: 42px;
    background: var(--gray-50);
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-input button:hover {
    background: var(--primary-light);
}

.qty-input input {
    width: 60px;
    height: 42px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 16px;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-actions .btn {
    flex: 1;
}

.product-tabs {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    gap: 0;
}

.tabs-nav button {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tabs-nav button.active,
.tabs-nav button:hover {
    color: var(--dark);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    padding: 25px 0;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr:nth-child(even) {
    background: var(--gray-50);
}

.specifications-table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.specifications-table td:first-child {
    font-weight: 600;
    width: 200px;
    color: var(--gray-700);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
    padding: 30px 0;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.cart-table thead {
    background: var(--gray-50);
}

.cart-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--gray-600);
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
}

.cart-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-info img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: var(--border-radius);
    background: var(--gray-50);
    padding: 5px;
}

.cart-product-info .name {
    font-weight: 600;
    font-size: 14px;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    padding: 25px;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-200);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.cart-summary-row.total {
    border-top: 2px solid var(--gray-200);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 800;
}

.coupon-form {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.coupon-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 14px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition-fast);
    background: var(--white);
}

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

.form-control.error {
    border-color: var(--danger);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* ============================================
   ALERTS / FLASH MESSAGES
   ============================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

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

.alert-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: var(--info-light); color: #1e40af; border: 1px solid #93c5fd; }

.alert .close-alert {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.alert .close-alert:hover {
    opacity: 1;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    transition: var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--dark);
    background: var(--primary-light);
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

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

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

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

.auth-card .auth-logo h1 {
    font-size: 30px;
    font-weight: 900;
}

.auth-card .auth-logo h1 span {
    color: var(--primary-dark);
}

.auth-card h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 25px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray-600);
}

.auth-links a {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ============================================
   LICENSE REQUIRED PAGE
   ============================================ */
.license-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900) 0%, #2d1b69 50%, var(--gray-900) 100%);
    padding: 40px;
}

.license-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 60px;
    text-align: center;
    max-width: 500px;
}

.license-card .lock-icon {
    font-size: 60px;
    color: var(--danger);
    margin-bottom: 20px;
}

.license-card h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.license-card p {
    color: var(--gray-600);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* ============================================
   SIDEBAR FILTERS (Shop Page)
   ============================================ */
.shop-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.filter-widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-widget h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    position: relative;
}

.filter-widget h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list li a,
.filter-list li label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-list li a:hover,
.filter-list li label:hover {
    color: var(--primary-dark);
}

.filter-list li .count {
    margin-left: auto;
    font-size: 12px;
    color: var(--gray-400);
}

.price-range-slider {
    margin-top: 15px;
}

.price-range-slider input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 95px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

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

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 24px;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-widgets { grid-template-columns: repeat(3, 1fr); }
    .category-showcase { grid-template-columns: repeat(4, 1fr); }
    .deal-products { grid-template-columns: repeat(3, 1fr); }
    .hero-sidebar { display: none; }
    .nav-departments { display: none; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid.cols-4,
    .products-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: 1fr 1fr; }
    .category-showcase { grid-template-columns: repeat(3, 1fr); }
    .deal-products { grid-template-columns: repeat(2, 1fr); }
    .deal-banner { display: none; }
    
    .header-inner { flex-wrap: wrap; }
    .header-search { order: 3; max-width: 100%; flex-basis: 100%; }
    .search-form .search-category { display: none; }
    
    .newsletter-section .container { flex-direction: column; text-align: center; }
    .newsletter-form { max-width: 100%; }
    
    .top-bar-left { display: none; }
    
    .hero-slider { min-height: 300px; }
    .slide { padding: 30px; min-height: 300px; }
    .slide-content h2 { font-size: 28px; }
    .slide-image { display: none; }
    
    .product-detail .row { flex-direction: column; }
    .product-detail-info { padding-left: 0; margin-top: 20px; }
    
    .form-row { flex-direction: column; gap: 0; }
    
    .banner-ads .row { flex-direction: column; }
    
    .col-3, .col-4, .col-6, .col-8, .col-9 { width: 100%; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-showcase { grid-template-columns: repeat(2, 1fr); }
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    
    .product-card .product-info { padding: 10px; }
    .product-card .product-name { font-size: 12px; min-height: 30px; }
    .product-card .current-price { font-size: 15px; }
    .product-card .product-image { min-height: 140px; padding: 10px; }
    
    .auth-card { padding: 25px; }
    
    .site-logo a { font-size: 24px; }
    .header-actions .header-action-btn span { display: none; }
    
    .detail-price .current { font-size: 26px; }
    .detail-actions { flex-direction: column; }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        z-index: 100;
    }
    .nav-links.active a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--gray-100);
    }
    .nav-shipping { display: none; }
}

/* ============================================
   MINI CART DROPDOWN
   ============================================ */
.mini-cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.2s ease;
}

.mini-cart-dropdown.active {
    display: block;
}

.mini-cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 700;
    font-size: 15px;
}

.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.mini-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--gray-50);
}

.mini-cart-item .item-info {
    flex: 1;
}

.mini-cart-item .item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.mini-cart-item .item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.mini-cart-item .remove-item {
    color: var(--gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: var(--transition-fast);
}

.mini-cart-item .remove-item:hover {
    color: var(--danger);
}

.mini-cart-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-200);
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.mini-cart-actions {
    display: flex;
    gap: 8px;
}

.mini-cart-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 8px;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
    padding: 30px 0;
}

.payment-method-card {
    padding: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.payment-method-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.payment-method-card label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.payment-method-card .method-info {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 8px;
    padding-left: 28px;
    display: none;
}

.payment-method-card.selected .method-info {
    display: block;
}

/* ============================================
   ORDER TRACKING
   ============================================ */
.tracking-timeline {
    position: relative;
    padding-left: 30px;
    margin: 20px 0;
}

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

.timeline-step {
    position: relative;
    padding: 0 0 25px 25px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 3px solid var(--white);
    z-index: 1;
}

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

.timeline-step.current::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-step .step-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
}

.timeline-step .step-date {
    font-size: 12px;
    color: var(--gray-500);
}

/* ============================================
   USER DASHBOARD
   ============================================ */
.account-layout {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.account-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.account-menu {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-fast);
}

.account-menu a:hover,
.account-menu a.active {
    background: var(--primary-light);
    color: var(--dark);
    font-weight: 600;
}

.account-menu a.active {
    border-left: 3px solid var(--primary);
}

.account-menu a i {
    width: 20px;
    text-align: center;
    color: var(--gray-500);
}

.account-menu a.active i {
    color: var(--primary-dark);
}

.account-content {
    flex: 1;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card .stat-icon.blue { background: var(--info-light); color: var(--info); }
.stat-card .stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-card .stat-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-card .stat-icon.red { background: var(--danger-light); color: var(--danger); }

.stat-card .stat-info h4 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-info p {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
