/* ============================================
   SPR SHOP - Main Stylesheet
   Created by: امیراحسان رمزی
   Phone: 09226083183
   Location: ساوه
   ============================================ */
@keyframes slideOutRight {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

/* ==========================================================================
   متغیرها و تنظیمات اصلی
   ========================================================================== */

/* فونت فارسی */
/* فونت ایران‌سنس (Vazirmatn) - نسخه آپلود شده */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  /* اعمال فونت به کل سایت */
  :root {
      --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  * {
      font-family: var(--font-family);
  }
  
  /* برای اطمینان بیشتر */
  body, input, textarea, select, button, h1, h2, h3, h4, h5, h6, p, span, div, a, li, td, th {
      font-family: var(--font-family);
  }
  
  /* تنظیم وزن فونت برای عناوین */
  h1, h2, h3, h4, h5, h6 {
      font-weight: 700;
  }
  
  /* تنظیم وزن فونت برای دکمه‌ها */
  .btn {
      font-weight: 500;
  }
  
  /* تنظیم وزن فونت برای لینک‌های ناوبری */
  .nav-link {
      font-weight: 500;
  }
  
  /* تنظیم وزن فونت برای متن معمولی */
  body {
      font-weight: 400;
      line-height: 1.8;
  }



/* ============================================
   SPR SHOP - Complete Modern Stylesheet
   Created by: امیراحسان رمزی
   Version: 3.0 Professional
   ============================================ */

/* ============================================
   CSS Custom Properties (Root Variables)
   ============================================ */
   :root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    /* Secondary */
    --secondary: #f97316;
    --secondary-dark: #ea580c;
    --secondary-light: #ffedd5;
    
    /* Accent */
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --accent-light: #ede9fe;
    
    /* Success, Warning, Danger, Info */
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #d97706;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #dc2626;
    --info: #06b6d4;
    --info-light: #cffafe;
    --info-dark: #0891b2;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-hover: #f8fafc;
    --bg-overlay: rgba(15, 23, 42, 0.8);
    --bg-glass: rgba(255, 255, 255, 0%);
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    --text-link: #2563eb;
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 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.1), 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-2xl: 0 25px 50px rgba(0, 0, 0, 0.12);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-3xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 9900;
    --z-story: 999;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Layout */
    --header-height: 72px;
    --nav-height: 52px;
    --top-bar-height: 36px;
    --container-max: 1320px;
}

/* ============================================
   Dark Theme
   ============================================ */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #1e3a5f;
    --primary-50: #0f1f3d;
    --primary-100: #1a2f5a;
    
    --secondary: #f97316;
    --secondary-light: #3d2a14;
    
    --accent: #8b5cf6;
    --accent-light: #2a1f4d;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --bg-glass: rgba(30, 41, 59, 0%);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --text-link: #60a5fa;
    
    --border-color: #334155;
    --border-light: #1e293b;
    --border-medium: #475569;
    
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'IRANSans', 'Vazirmatn', 'Tahoma', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 1px;
    height: 1px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: var(--primary-200);
    color: var(--primary-800);
}

[data-theme="dark"] ::selection {
    background: var(--primary-800);
    color: var(--primary-100);
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ============================================
   Animations Keyframes
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scaleInCenter {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotate3d {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(360deg); }
}

@keyframes skeleton {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* ============================================
   Utility Classes
   ============================================ */
.fade-in { animation: fadeIn var(--transition-normal) ease forwards; }
.fade-in-up { animation: fadeInUp var(--transition-slow) ease forwards; }
.fade-in-down { animation: fadeInDown var(--transition-slow) ease forwards; }
.scale-in { animation: scaleIn var(--transition-spring) ease forwards; }
.scale-in-center { animation: scaleInCenter var(--transition-spring) ease forwards; }
.slide-up { animation: slideUp var(--transition-normal) ease forwards; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.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-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }

/* ============================================
   Skeleton Loading
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-lg);
}

/* ============================================
   Loading Overlay
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: var(--z-modal);
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: 90%;
    pointer-events: none;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    pointer-events: auto;
    animation: slideDown 0.4s ease, fadeOut 0.3s ease 2.7s forwards;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.toast i {
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.toast span {
    flex: 1;
}

.toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.toast-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.toast-info {
    background: linear-gradient(135deg, #0284c7, #06b6d4);
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    height: var(--top-bar-height);
    font-size: var(--text-xs);
    z-index: var(--z-sticky);
    position: relative;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--top-bar-height);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-left span {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-left i {
    color: var(--primary);
    font-size: var(--text-sm);
}

.separator {
    color: var(--border-color);
    font-weight: var(--font-light);
}

.top-bar-right a {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-bar-right a:hover {
    color: var(--primary);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
}

.theme-toggle:hover {
    background: var(--primary-100);
    color: var(--primary);
    transform: rotate(30deg);
}

[data-theme="light"] .theme-toggle .fa-sun,
[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

/* ============================================
   Main Header
   ============================================ */
.main-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

/* Logo */
.logo a {
    display: block;
}

.logo h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    color: var(--primary);
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}

.logo h1 span {
    color: #df324e;
    position: relative;
}

.logo h1 span::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #df324e;
    border-radius: var(--radius-full);
    opacity: 0.3;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: -2px;
    font-weight: var(--font-medium);
    letter-spacing: 0.5px;
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 560px;
    position: relative;
}

.search-form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--bg-primary);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Search Suggestions */
.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-dropdown);
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    cursor: pointer;
}

.suggestion-item:hover {
    background: var(--bg-hover);
}

.suggestion-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.suggestion-item strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.suggestion-item span {
    font-size: var(--text-xs);
    color: var(--secondary);
    font-weight: var(--font-bold);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon {
    position: relative;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-secondary);
    font-size: var(--text-xl);
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
}

.icon-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.icon-text {
    font-size: 10px;
    font-weight: var(--font-medium);
}

/* Badge */
.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-weight: var(--font-bold);
    border: 2px solid var(--bg-primary);
    animation: scaleIn 0.3s ease;
}

/* User Dropdown */
.user-menu-wrapper {
    position: relative;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-dropdown);
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

.user-menu-wrapper:hover .user-dropdown {
    display: block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: var(--text-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: var(--bg-hover);
    color: var(--primary);
    padding-right: 20px;
}

.dropdown-menu li a i {
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.dropdown-menu li a:hover i {
    color: var(--primary);
}

.dropdown-menu .divider {
    border-top: 1px solid var(--border-light);
    margin: 4px 0;
}

.logout-link {
    color: var(--danger) !important;
}

.logout-link:hover {
    background: var(--danger-light) !important;
    color: var(--danger-dark) !important;
}

/* Cart Preview */
.cart-wrapper {
    position: relative;
}

.cart-preview {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-dropdown);
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

.cart-wrapper:hover .cart-preview {
    display: block;
}

.cart-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
}

.view-cart {
    color: var(--primary);
    font-weight: var(--font-medium);
    font-size: var(--text-xs);
}

.cart-preview-items {
    max-height: 280px;
    overflow-y: auto;
}

.cart-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.cart-preview-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-preview-total {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-top: 2px solid var(--border-color);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    background: var(--bg-secondary);
}

/* ============================================
   Navigation
   ============================================ */
.main-nav {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    height: var(--nav-height);
    position: sticky;
    top: var(--header-height);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-xs);
}

.nav-list {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    gap: 4px;
}

.nav-item {
    position: relative;
    height: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 100%;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
    border-radius: var(--radius-md);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full) var(--radius-full) 0 0;
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link i {
    font-size: var(--text-base);
    transition: transform var(--transition-fast);
}

.nav-link:hover i {
    transform: translateY(-2px);
}

.hot-offer {
    color: var(--secondary) !important;
    font-weight: var(--font-bold) !important;
}

.nav-badge {
    background: var(--danger);
    color: white;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
    font-weight: var(--font-bold);
}

/* Mega Menu */
.has-megamenu .mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 800px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-dropdown);
    padding: 24px;
    animation: fadeInDown 0.25s ease;
}

.has-megamenu:hover .mega-menu {
    display: block;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.mega-menu-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: var(--font-bold);
    color: var(--primary);
    margin-bottom: 12px;
    font-size: var(--text-sm);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.category-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.mega-menu-links li a {
    display: block;
    padding: 6px 0;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.mega-menu-links li a:hover {
    color: var(--primary);
    padding-right: 8px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none !important;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: var(--z-modal);
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: var(--bg-primary);
    overflow-y: auto;
    animation: slideRight 0.3s ease;
    box-shadow: var(--shadow-2xl);
}

@keyframes slideRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1;
}

.close-mobile-menu {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.close-mobile-menu:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    white-space: nowrap;
    user-select: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: var(--danger-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-warning:hover {
    background: var(--warning-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.btn-sm {
    padding: 6px 14px;
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--primary-200);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* ============================================
   Form Controls
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--bg-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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 d='M6 8L1 3h10z' fill='%2394a3b8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-right: 16px;
    padding-left: 40px;
}

/* Checkbox & Radio */
.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: var(--text-sm);
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: var(--text-sm);
    border: 1px solid transparent;
    animation: fadeInDown 0.3s ease;
}

.alert i {
    font-size: var(--text-lg);
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-light);
    color: var(--success-dark);
    border-color: #a7f3d0;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger-dark);
    border-color: #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border-color: #fde68a;
}

.alert-info {
    background: var(--primary-50);
    color: var(--primary-800);
    border-color: var(--primary-200);
}

/* ============================================
   Badges & Status
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    white-space: nowrap;
}

.status-success { background: var(--success-light); color: var(--success-dark); }
.status-warning { background: var(--warning-light); color: var(--warning-dark); }
.status-error { background: var(--danger-light); color: var(--danger-dark); }
.status-info { background: var(--info-light); color: var(--info-dark); }
.status-primary { background: var(--primary-100); color: var(--primary-700); }

/* ============================================
   Product Card
   ============================================ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--primary-200);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: white;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
}

.discount-badge {
    background: var(--danger);
    left: 12px;
    right: auto;
    animation: heartbeat 1.5s infinite;
}

.special-badge {
    background: var(--warning);
}

.new-badge {
    background: var(--success);
}

.product-image-wrapper {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a:hover {
    color: var(--primary);
}

.product-prices {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.old-price {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-decoration: line-through;
}

.current-price {
    font-size: var(--text-base);
    font-weight: var(--font-extrabold);
    color: var(--secondary);
}

.product-meta {
    margin-bottom: 8px;
}

.product-sold {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-wishlist {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-wishlist.active i {
    animation: heartbeat 0.4s ease;
}

.stock-warning {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--warning-light);
    color: var(--warning-dark);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    font-size: var(--text-2xl);
    color: var(--primary);
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
}

.section-subtitle {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--font-normal);
}

.view-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--primary);
    transition: all var(--transition-fast);
}

.view-all:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(4px);
}

/* ادامه CSS در بخش بعدی... */

/* ============================================
   SPR SHOP - Complete Modern Stylesheet Part 2
   Created by: امیراحسان رمزی
   ============================================ */

/* ============================================
   Hero Slider
   ============================================ */
   .hero-slider {
    padding: 20px 0 30px;
}

.slider-container {
    position: relative;
    height: 420px;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 50px 70px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 50%;
}

.slide-content h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-black);
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.slide-content p {
    font-size: var(--text-lg);
    margin-bottom: 28px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.slide-content .btn-light {
    animation: fadeInUp 0.6s ease 0.6s both;
    display: inline-flex;
}

.slide-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 8s ease;
}

.slide.active .slide-bg-image img {
    transform: scale(1.05);
}

.slide-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, transparent 60%);
}

.btn-light {
    background: white;
    color: #0f172a;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 3;
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    font-size: var(--text-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    right: 24px;
}

.slider-arrow.next {
    left: 24px;
}

.slider-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 2px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dot.active {
    background: white;
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ============================================
   Countdown Timer
   ============================================ */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.timer-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
}

.timer-digits {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    font-family: 'Courier New', monospace;
    direction: ltr;
}

.timer-digit {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
}

/* ============================================
   Stories Section
   ============================================ */
.stories-section {
    padding: 20px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.stories-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 12px 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.story-item:hover {
    transform: scale(1.06);
}

.story-ring {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.story-item:first-child .story-ring {
    animation: pulseRing 2s infinite;
}

.story-image {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    background: white;
}

.story-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    z-index: 2;
    pointer-events: none;
}

.story-username {
    font-size: 0.7rem;
    color: var(--text-secondary);
    max-width: 80px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: var(--font-medium);
}

/* Story Viewer */
.story-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-story);
    display: none;
    align-items: center;
    justify-content: center;
}

.story-viewer-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-viewer-close {
    position: absolute;
    top: -50px;
    left: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.story-viewer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.story-viewer-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.story-progress-bar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    z-index: 5;
    overflow: hidden;
}

.story-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.story-viewer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-2xl);
    transition: opacity 0.4s ease;
}

.story-viewer-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-2xl);
}

.story-viewer-link {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.story-viewer-link:hover {
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) translateY(-2px);
}

.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.story-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.story-prev { right: -60px; }
.story-next { left: -60px; }

/* ============================================
   Announcement Banner
   ============================================ */
.announcement-banner {
    background: linear-gradient(135deg, var(--warning), var(--secondary));
    color: white;
    padding: 14px 0;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.announcement-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.announcement-content > i {
    font-size: var(--text-xl);
    animation: pulse 2s infinite;
}

.announcement-text {
    flex: 1;
    overflow: hidden;
    height: 24px;
    position: relative;
}

.announcement-item {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    white-space: nowrap;
    animation: announcementSlide 12s infinite;
    font-weight: var(--font-medium);
}

.announcement-item:nth-child(2) { animation-delay: 4s; }
.announcement-item:nth-child(3) { animation-delay: 8s; }

@keyframes announcementSlide {
    0%, 28% { transform: translateY(0); opacity: 1; }
    33%, 94% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

.announcement-link {
    color: white;
    font-size: var(--text-xs);
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
}

.announcement-link:hover {
    opacity: 1;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 40px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
    border: 1px solid transparent;
}

.feature-item:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: var(--text-2xl);
    color: var(--primary);
    width: 64px;
    height: 64px;
    background: var(--primary-100);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

.feature-text strong {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin-bottom: 4px;
}

.feature-text span {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
    padding: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition-normal);
    display: block;
}

.category-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--primary-300);
}

.category-image-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--border-light);
    transition: all var(--transition-normal);
}

.category-card:hover .category-image-wrapper {
    border-color: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-100);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-icon-placeholder {
    font-size: var(--text-3xl);
    color: var(--primary);
}

.category-name {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    margin-bottom: 4px;
}

.category-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ============================================
   Brands Slider
   ============================================ */
.brands-section {
    padding: 40px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.brands-slider-wrapper {
    position: relative;
}

.brands-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.brands-slider::-webkit-scrollbar {
    display: none;
}

.brand-card {
    flex-shrink: 0;
    width: 180px;
    height: 110px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.brand-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
    transform: translateY(-6px);
}

.brand-card img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    transition: all var(--transition-normal);
}

.brand-card:hover img {
    filter: grayscale(0%) !important;
    transform: scale(1.1);
}

/* ============================================
   Products Slider
   ============================================ */
.products-slider {
    position: relative;
}

.products-grid-wrapper {
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slider-track .product-card {
    min-width: 250px;
    flex-shrink: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    border: 2px solid var(--border-color);
}

.slider-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl);
}

.slider-nav.prev { right: -24px; }
.slider-nav.next { left: -24px; }

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-section {
    padding: 16px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-xs);
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 0.6rem;
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail-section {
    padding: 32px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-3xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 24px);
}

.main-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 16px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-image-wrapper:hover .main-image {
    transform: scale(1.8);
}

.gallery-discount-badge,
.gallery-special-badge {
    position: absolute;
    top: 16px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
}

.gallery-discount-badge {
    left: 16px;
    background: var(--danger);
}

.gallery-special-badge {
    right: 16px;
    background: var(--warning);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    opacity: 0.7;
}

.gallery-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: var(--shadow-md);
}

.gallery-thumbnail:hover {
    opacity: 1;
    border-color: var(--primary-300);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-detail-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    margin-bottom: 16px;
    line-height: 1.4;
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-category-badge {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #e2e8f0;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.stars i.active {
    color: #f59e0b;
}

.seller-info {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-light);
}

.seller-info i {
    color: var(--primary);
    font-size: var(--text-lg);
}

/* Price Section */
.product-detail-prices {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-old-price {
    font-size: var(--text-lg);
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-current-price {
    font-size: var(--text-3xl);
    font-weight: var(--font-black);
    color: var(--secondary);
}

.detail-discount-badge {
    background: var(--danger);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    animation: pulse 2s infinite;
}

/* Stock Status */
.stock-status {
    margin-bottom: 16px;
    font-size: var(--text-sm);
}

.in-stock {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--font-semibold);
}

.low-stock {
    color: var(--warning-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--font-bold);
    animation: pulse 1.5s infinite;
}

.out-of-stock {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--font-semibold);
}

/* Product Stats */
.product-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.stat-item {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--font-medium);
}

.stat-item i {
    color: var(--primary);
}

/* Product Options */
.product-option-section {
    margin-bottom: 20px;
}

.option-title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    margin-bottom: 10px;
}

.color-options,
.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option input,
.size-option input {
    display: none;
}

.color-circle {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-option input:checked + .color-circle {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-200);
    transform: scale(1.15);
}

.color-circle:hover {
    border-color: var(--primary-300);
    transform: scale(1.1);
}

.size-label {
    display: block;
    padding: 10px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.size-option input:checked + .size-label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.size-label:hover {
    border-color: var(--primary-300);
}

/* Add to Cart */
.add-to-cart-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.quantity-selector button {
    width: 42px;
    height: 48px;
    background: var(--bg-secondary);
    border: none;
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    cursor: pointer;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.quantity-selector button:hover {
    background: var(--primary);
    color: white;
}

.quantity-selector input {
    width: 56px;
    height: 48px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-add-to-cart-large {
    flex: 1;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-to-cart-large:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.btn-add-to-cart-large:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-wishlist-large {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist-large:hover,
.btn-wishlist-large.active {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

/* Guarantee */
.guarantee-info {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    flex-wrap: wrap;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
}

.guarantee-item i {
    color: var(--success);
    font-size: var(--text-lg);
}

/* ============================================
   Product Tabs
   ============================================ */
.product-tabs-section {
    padding: 32px 0;
}

.product-tabs {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    overflow-x: auto;
    background: var(--bg-secondary);
    scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 16px 28px;
    background: none;
    border: none;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg-card);
}

.tab-panel {
    display: none;
    padding: 28px;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

/* ============================================
   Footer
   ============================================ */
.main-footer {
    background: var(--bg-primary);
    margin-top: 48px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    padding: 56px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 36px;
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.footer-about {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    padding: 4px 0;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-right: 8px;
}

.footer-links li a i {
    font-size: 0.6rem;
    color: var(--primary);
}

.footer-contact .contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-item i {
    font-size: var(--text-lg);
    color: var(--primary);
    margin-top: 4px;
    width: 20px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.contact-item p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.8;
}

.copyright strong {
    color: var(--primary);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-xl);
    color: var(--text-muted);
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

/* ============================================
   Chat Float Button
   ============================================ */
.chat-float-btn {
    position: fixed;
    bottom: 100px;
    right: 32px;
    background: var(--success);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    z-index: var(--z-fixed);
    animation: bounce 3s infinite;
    transition: all var(--transition-fast);
}

.chat-float-btn:hover {
    background: var(--success-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
}

/* ============================================
   Modal Overlay (Base)
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: scaleInCenter 0.4s ease;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: var(--text-lg);
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
    position: sticky;
    bottom: 0;
}

/* ============================================
   Bank Card
   ============================================ */
.bank-card-display {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.bank-card {
    width: 360px;
    height: 200px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #2563eb 70%, #1e3a8a 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
    position: relative;
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.5);
    overflow: hidden;
}

.bank-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.bank-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -10px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.bank-card-front {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.bank-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
}

.bank-logo i {
    font-size: var(--text-2xl);
}

.bank-card-number {
    font-size: var(--text-2xl);
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    text-align: center;
    direction: ltr;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bank-card-owner {
    font-size: var(--text-sm);
    text-align: left;
    opacity: 0.9;
}

/* ============================================
   Cart Page
   ============================================ */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    align-items: start;
}

.cart-items-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-items-count {
    font-weight: var(--font-bold);
    font-size: var(--text-base);
}

.btn-clear-cart {
    color: var(--danger);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
}

.btn-clear-cart:hover {
    background: var(--danger-light);
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.cart-item:hover {
    background: var(--bg-hover);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    display: block;
    margin-bottom: 4px;
}

.cart-item-name:hover {
    color: var(--primary);
}

.cart-item-variant {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.cart-item-price-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-item-quantity button,
.cart-item-quantity span {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cart-item-quantity button:hover {
    background: var(--primary);
    color: white;
}

.cart-item-quantity span {
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.cart-item-total-price {
    font-weight: var(--font-bold);
    color: var(--secondary);
    font-size: var(--text-base);
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 24px);
}

.cart-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.summary-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: var(--text-sm);
}

.summary-divider {
    border-top: 2px solid var(--border-color);
    margin: 12px 0;
}

.total-row {
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.total-amount {
    color: var(--secondary);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.2s ease;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
}

/* ============================================
   Review Images
   ============================================ */
.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.review-image-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.review-image-item:hover {
    border-color: var(--primary);
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

.review-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.pagination a:hover,
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .top-bar, .main-header, .main-nav, .footer,
    .chat-float-btn, .back-to-top, .btn,
    .product-actions, .add-to-cart-section,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ادامه در بخش responsive... */

/* ============================================
   SPR SHOP - Responsive Design (Complete)
   Created by: امیراحسان رمزی
   ============================================ */

/* ============================================
   Extra Large Screens (1400px+)
   ============================================ */
   @media screen and (min-width: 1401px) {
    .container {
        max-width: 1320px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    .hero-slider .slider-container {
        height: 480px;
    }
    
    .slide-content h2 {
        font-size: var(--text-5xl);
    }
}

/* ============================================
   Large Desktop (1200px - 1400px)
   ============================================ */
@media screen and (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .cart-content {
        grid-template-columns: 1fr 360px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr 360px;
    }
}

/* ============================================
   Desktop (992px - 1200px)
   ============================================ */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .header-content {
        gap: 16px;
    }
    
    .search-box {
        max-width: 400px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .hero-slider .slider-container {
        height: 380px;
    }
    
    .slide {
        padding: 40px 50px;
    }
    
    .slide-content {
        max-width: 55%;
    }
    
    .slide-content h2 {
        font-size: var(--text-3xl);
    }
    
    .product-detail-grid {
        gap: 30px;
        padding: 24px;
    }
    
    .cart-content {
        grid-template-columns: 1fr 340px;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Tablet Landscape (768px - 992px)
   ============================================ */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Hide top bar */
    .top-bar {
        display: none;
    }
    
    /* Header */
    .main-header {
        position: sticky;
        top: 0;
    }
    
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }
    
    .logo {
        order: 1;
    }
    
    .logo h1 {
        font-size: var(--text-xl);
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
        flex-basis: 100%;
    }
    
    .header-icons {
        order: 2;
        margin-right: auto;
        gap: 4px;
    }
    
    .icon-text {
        display: none;
    }
    
    .icon-link {
        padding: 6px 8px;
        font-size: var(--text-lg);
    }
    
    /* Navigation */
    .main-nav {
        top: 0;
        height: auto;
        min-height: 48px;
    }
    
    .nav-list {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        gap: 10px;
        height: 48px;
        width: 100%;
        font-size: var(--text-sm);
        font-weight: var(--font-bold);
        color: var(--text-primary);
        padding: 0 16px;
    }
    
    /* Hero Slider */
    .hero-slider .slider-container {
        height: 320px;
        border-radius: var(--radius-2xl);
    }
    
    .slide {
        padding: 30px 40px;
    }
    
    .slide-content {
        max-width: 65%;
    }
    
    .slide-content h2 {
        font-size: var(--text-2xl);
    }
    
    .slide-content p {
        font-size: var(--text-base);
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    /* Product Detail */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .main-image-wrapper {
        aspect-ratio: 4/3;
    }
    
    /* Cart */
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    /* Checkout */
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary-card {
        position: static;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
    
    /* Stories */
    .story-ring {
        width: 70px;
        height: 70px;
    }
    
    .story-image {
        width: 64px;
        height: 64px;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
    }
}

/* ============================================
   Tablet Portrait (576px - 768px)
   ============================================ */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 16px;
    }
    
    /* Hero Slider */
    .hero-slider .slider-container {
        height: 260px;
    }
    
    .slide {
        padding: 20px 30px;
        text-align: center;
        justify-content: center;
    }
    
    .slide-content {
        max-width: 100%;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: var(--text-xl);
    }
    
    .slide-content p {
        font-size: var(--text-sm);
        margin-bottom: 20px;
    }
    

    
    .btn-light {
        padding: 10px 24px;
        font-size: var(--text-sm);
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: var(--text-sm);
    }
    
    .slider-arrow.prev { right: 8px; }
    .slider-arrow.next { left: 8px; }
    
    /* Section Header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-title {
        font-size: var(--text-lg);
    }
    
    .countdown-timer {
        font-size: var(--text-xs);
        padding: 8px 16px;
    }
    
    .timer-digits {
        font-size: var(--text-lg);
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-image-wrapper {
        aspect-ratio: 1;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: var(--text-xs);
    }
    
    .current-price {
        font-size: var(--text-sm);
    }
    
    .btn-add-cart {
        padding: 8px;
        font-size: 0.65rem;
    }
    
    .btn-wishlist {
        width: 34px;
        height: 34px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 20px 12px;
    }
    
    .category-image-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .category-name {
        font-size: var(--text-xs);
    }
    
    /* Product Detail */
    .product-detail-grid {
        padding: 20px;
        border-radius: var(--radius-2xl);
    }
    
    .product-detail-title {
        font-size: var(--text-xl);
    }
    
    .detail-current-price {
        font-size: var(--text-2xl);
    }
    
    .add-to-cart-section {
        flex-wrap: wrap;
    }
    
    .btn-wishlist-large {
        width: 100%;
        height: 48px;
    }
    
    .product-stats {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .stat-item {
        font-size: 0.7rem;
    }
    
    /* Tabs */
    .tabs-header {
        gap: 0;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: var(--text-xs);
    }
    
    .tab-panel {
        padding: 20px;
    }
    
    /* Cart */
    .cart-item {
        flex-wrap: wrap;
        padding: 16px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-price-section {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    
    .cart-steps {
        display: none;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Stories */
    .story-ring {
        width: 62px;
        height: 62px;
    }
    
    .story-image {
        width: 56px;
        height: 56px;
    }
    
    .story-viewer-content {
        width: 95%;
        height: 70vh;
    }
    
    .story-prev { right: 4px; }
    .story-next { left: 4px; }
    
    .story-nav {
        width: 36px;
        height: 36px;
        background: rgba(255,255,255,0.1);
    }
    
    /* Bank Card */
    .bank-card {
        width: 300px;
        height: 170px;
    }
    
    .bank-card-number {
        font-size: var(--text-xl);
    }
    
    /* Brands Slider */
    .brand-card {
        width: 140px;
        height: 90px;
    }
    
    /* Chat */
    .chat-float-btn {
        bottom: 80px;
        right: 16px;
        padding: 10px 18px;
        font-size: var(--text-xs);
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
    
    /* Alert */
    .alert {
        padding: 12px 16px;
        font-size: var(--text-xs);
    }
}

/* ============================================
   Mobile Landscape (480px - 576px)
   ============================================ */
@media screen and (max-width: 576px) {
    .container {
        padding: 0 12px;
    }
    
    .header-content {
        gap: 6px;
    }
    
    .header-icons {
        gap: 2px;
    }
    
    .icon-link {
        padding: 4px 6px;
        font-size: var(--text-base);
    }
    
    .badge {
        font-size: 8px;
        min-width: 16px;
        height: 16px;
    }
    
    /* Hero Slider */
    .hero-slider .slider-container {
        height: 200px;
        border-radius: var(--radius-xl);
    }
    
    .slide {
        padding: 16px 20px;
    }
    
    .slide-content h2 {
        font-size: var(--text-lg);
    }
    
    .slide-content p {
        display: none;
    }
    
    .btn-light {
        padding: 8px 18px;
        font-size: var(--text-xs);
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: var(--text-xs);
    }
    
    .dot {
        width: 8px;
        height: 1px;
    }
    
    /* Products Grid - 2 columns tight */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-image-wrapper {
        aspect-ratio: 1;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 0.65rem;
        -webkit-line-clamp: 2;
    }
    
    .current-price {
        font-size: 0.7rem;
    }
    
    .old-price {
        font-size: 0.6rem;
    }
    
    .product-prices {
        gap: 4px;
        margin-bottom: 8px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-add-cart {
        padding: 6px;
        font-size: 0.6rem;
    }
    
    .btn-wishlist {
        width: 100%;
        height: 30px;
        font-size: var(--text-xs);
    }
    
    .product-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 16px 10px;
    }
    
    .category-image-wrapper {
        width: 50px;
        height: 50px;
    }
    
    /* Product Detail */
    .product-detail-grid {
        padding: 16px;
        border-radius: var(--radius-xl);
    }
    
    .main-image-wrapper {
        aspect-ratio: 1;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-detail-title {
        font-size: var(--text-lg);
    }
    
    .detail-current-price {
        font-size: var(--text-xl);
    }
    
    .detail-old-price {
        font-size: var(--text-sm);
    }
    
    .quantity-selector button {
        width: 36px;
        height: 42px;
    }
    
    .quantity-selector input {
        width: 44px;
        height: 42px;
        font-size: var(--text-base);
    }
    
    .btn-add-to-cart-large {
        padding: 12px;
        font-size: var(--text-sm);
    }
    
    .guarantee-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-stats {
        gap: 6px;
        padding: 12px;
    }
    
    /* Tabs */
    .tab-btn {
        padding: 10px 14px;
        font-size: 0.7rem;
    }
    
    .tab-panel {
        padding: 16px;
    }
    
    /* Ratings */
    .rating-summary-box {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* Cart */
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-name {
        font-size: var(--text-xs);
    }
    
    /* Footer */
    .footer-top {
        padding: 32px 0 24px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }
    
    /* Modal */
    .modal-content {
        width: 98%;
        border-radius: var(--radius-xl);
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        flex-direction: column;
        padding: 12px 16px;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Bank Card */
    .bank-card {
        width: 260px;
        height: 150px;
        padding: 16px;
    }
    
    .bank-card-number {
        font-size: var(--text-lg);
        letter-spacing: 2px;
    }
    
    .bank-logo {
        font-size: var(--text-sm);
    }
    
    /* Address Cards */
    .address-card {
        padding: 14px;
    }
    
    /* Form Row */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Announcement */
    .announcement-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .announcement-link {
        width: 100%;
        text-align: left;
    }
}

/* ============================================
   Small Mobile (320px - 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    .logo h1 {
        font-size: var(--text-lg);
    }
    
    .search-input {
        font-size: var(--text-xs);
        padding: 10px 14px;
    }
    
    .search-btn {
        padding: 10px 14px;
        font-size: var(--text-base);
    }
    
    .hero-slider .slider-container {
        height: 180px;
    }
    
    .slide-content h2 {
        font-size: var(--text-base);
        margin-bottom: 8px;
    }
    
    .slide-content .btn-light {
        padding: 6px 14px;
        font-size: 0.65rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .product-image-wrapper {
        aspect-ratio: 0.9;
    }
    
    .product-info {
        padding: 6px;
    }
    
    .product-title {
        font-size: 0.6rem;
        margin-bottom: 4px;
    }
    
    .current-price {
        font-size: 0.65rem;
    }
    
    .btn-add-cart {
        padding: 5px;
        font-size: 0.55rem;
    }
    
    .stock-warning {
        font-size: 0.55rem;
        padding: 4px 6px;
    }
    
    .section-title {
        font-size: var(--text-base);
    }
    
    .section-icon {
        width: 36px;
        height: 36px;
        font-size: var(--text-lg);
    }
    
    .countdown-timer {
        padding: 6px 12px;
        font-size: 0.6rem;
        gap: 6px;
    }
    
    .timer-digits {
        font-size: var(--text-base);
    }
    
    .timer-digit {
        padding: 2px 6px;
    }
    
    .bank-card {
        width: 220px;
        height: 130px;
        padding: 12px;
    }
    
    .bank-card-number {
        font-size: var(--text-base);
        letter-spacing: 2px;
    }
    
    .toast-container {
        width: 95%;
        top: 8px;
    }
    
    .toast {
        padding: 10px 14px;
        font-size: var(--text-xs);
        gap: 8px;
    }
    
    .story-ring {
        width: 56px;
        height: 56px;
    }
    
    .story-image {
        width: 50px;
        height: 50px;
    }
    
    .story-username {
        font-size: 0.6rem;
        max-width: 56px;
    }
    
    .brand-card {
        width: 120px;
        height: 80px;
    }
}

/* ============================================
   Dark Mode Print
   ============================================ */
@media print {
    [data-theme="dark"] {
        --bg-primary: #fff !important;
        --text-primary: #000 !important;
    }
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Accessibility - High Contrast
   ============================================ */
@media (prefers-contrast: high) {
    .product-card,
    .card,
    .cart-summary-card,
    .order-summary-card {
        border-width: 3px;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .text-muted,
    .old-price {
        color: #555 !important;
    }
}

/* ============================================
   Touch Devices
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
    
    .btn:hover {
        transform: none;
    }
    
    .category-card:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .nav-link,
    .btn,
    .tab-btn {
        min-height: 44px;
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }
}

/* ============================================
   iPad Pro & Large Tablets
   ============================================ */
@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1366px) 
  and (-webkit-min-device-pixel-ratio: 2) {
    .hero-slider .slider-container {
        height: 400px;
    }
}

/* ============================================
   iPhone X / Notched Devices
   ============================================ */
@supports (padding: env(safe-area-inset-top)) {
    .main-header {
        padding-top: env(safe-area-inset-top);
    }
    
    .mobile-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   Internet Explorer 11 Fallbacks
   ============================================ */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .slide {
        transition: none;
    }
    
    .product-card {
        transition: none;
    }
    
    .backdrop-blur {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* ============================================
   SPR SHOP - Complete Stylesheet Part 4
   Missing Sections & Final Polish
   Created by: امیراحسان رمزی
   ============================================ */

/* ============================================
   Footer Pages (Static Pages)
   ============================================ */
   .static-page {
    padding: 40px 0 60px;
    min-height: 60vh;
}

.static-content {
    max-width: 850px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-3xl);
    padding: 40px 48px;
    box-shadow: var(--shadow-sm);
    line-height: 2;
}

.static-content h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--primary);
    color: var(--text-primary);
    position: relative;
}

.static-content h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 80px;
    height: 3px;
    background: var(--secondary);
    border-radius: var(--radius-full);
}

.static-section {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.static-section:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.static-section h2 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 14px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.static-section h2 i {
    width: 36px;
    height: 36px;
    background: var(--primary-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
}

.static-section p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 10px;
}

.static-section ul {
    list-style: none;
    padding-right: 0;
}

.static-section ul li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 8px;
    padding-right: 28px;
    position: relative;
}

.static-section ul li::before {
    content: '*';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 2px;
    color: var(--success);
    font-size: var(--text-xs);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary-200);
}

.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    cursor: pointer;
    text-align: right;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-hover);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: var(--text-sm);
    width: 32px;
    height: 32px;
    background: var(--primary-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-question.active i {
    transform: rotate(180deg);
    background: var(--primary);
    color: white;
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    animation: fadeIn 0.3s ease;
}

.faq-answer.open {
    display: block;
}

/* ============================================
   Product Tabs - Complete Styles
   ============================================ */
.product-description {
    font-size: var(--text-sm);
    line-height: 2.2;
    color: var(--text-secondary);
}

.product-description p {
    margin-bottom: 16px;
}

.product-description img {
    max-width: 100%;
    border-radius: var(--radius-lg);
    margin: 16px 0;
}

/* Features Table */
.features-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.features-table tr {
    transition: background var(--transition-fast);
}

.features-table tr:hover {
    background: var(--bg-hover);
}

.features-table tr:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.features-table td {
    padding: 14px 20px;
    font-size: var(--text-sm);
}

.feature-name {
    font-weight: var(--font-bold);
    color: var(--text-secondary);
    width: 35%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-light);
}

.feature-value {
    color: var(--text-primary);
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.video-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.video-card video {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: block;
}

.video-title {
    padding: 14px 16px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

/* ============================================
   Reviews Section - Complete
   ============================================ */
.reviews-section {
    /* Container already styled */
}

.rating-summary-box {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    border-radius: var(--radius-2xl);
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.rating-average {
    text-align: center;
    min-width: 120px;
}

.rating-number {
    font-size: 4rem;
    font-weight: var(--font-black);
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.rating-number span {
    font-size: var(--text-base);
    color: var(--text-muted);
}

.rating-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.rating-bar-row span:first-child {
    width: 30px;
    text-align: left;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* Review Form */
.review-form-wrapper {
    margin-bottom: 32px;
    padding: 28px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    background: var(--bg-secondary);
    transition: border-color var(--transition-fast);
}

.review-form-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.05);
}

.review-form-wrapper h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Star Rating Input */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 2rem;
    color: #e2e8f0;
    transition: all var(--transition-fast);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f59e0b;
    transform: scale(1.15);
}

.star-rating label:hover i,
.star-rating label:hover ~ label i {
    animation: heartbeat 0.4s ease;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    transition: all var(--transition-fast);
}

.review-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.review-item.new-review {
    border-right: 3px solid var(--primary);
    background: var(--primary-50);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary-200);
}

.review-avatar.small {
    width: 36px;
    height: 36px;
}

.review-user-info {
    flex: 1;
}

.review-user-info strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
}

.review-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating i {
    color: #e2e8f0;
    font-size: var(--text-sm);
}

.review-rating i.active {
    color: #f59e0b;
}

.review-title {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin-bottom: 10px;
    color: var(--text-primary);
}

.review-content {
    font-size: var(--text-sm);
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.review-image-item {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.review-image-item:hover {
    border-color: var(--primary);
    transform: scale(1.06);
    box-shadow: var(--shadow-lg);
}

.review-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.btn-reply {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--primary);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-reply:hover {
    background: var(--primary);
    color: white;
}

/* Review Reply */
.review-reply {
    margin-top: 16px;
    margin-right: 52px;
    padding: 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
}

.review-reply::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 24px;
    width: 16px;
    height: 16px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    border-top: 1px solid var(--border-light);
    transform: rotate(45deg);
}

.reply-form {
    margin-top: 12px;
    margin-right: 52px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--primary-300);
    animation: fadeIn 0.3s ease;
}

.reply-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    font-size: var(--text-sm);
    resize: vertical;
    min-height: 80px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.login-to-review {
    text-align: center;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    margin-bottom: 24px;
    border: 2px dashed var(--border-color);
}

.login-to-review p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.login-to-review a {
    color: var(--primary);
    font-weight: var(--font-bold);
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.no-data i {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* ============================================
   Order Progress (User Side)
   ============================================ */
.order-progress {
    padding: 20px 0;
}

.progress-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-muted);
    transition: all var(--transition-fast);
    position: relative;
}

.progress-step.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.progress-step.completed .step-circle::after {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.progress-step.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    animation: pulseRing 2s infinite;
}

.step-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    font-weight: var(--font-medium);
    max-width: 80px;
}

.progress-step.completed .step-label,
.progress-step.active .step-label {
    color: var(--text-primary);
    font-weight: var(--font-bold);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin-top: 22px;
    transition: background var(--transition-normal);
}

.progress-line.completed {
    background: var(--success);
}

/* ============================================
   Order Cards (User Orders)
   ============================================ */
.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.order-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.order-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.order-number {
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    color: var(--primary);
    font-family: monospace;
    direction: ltr;
}

.order-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-card-body {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.order-items-preview {
    display: flex;
    gap: 8px;
}

.order-item-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
}

.order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-thumb.more-items {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.order-summary {
    text-align: left;
}

.order-amount strong {
    display: block;
    font-size: var(--text-lg);
    color: var(--secondary);
    font-weight: var(--font-extrabold);
}

.order-tracking {
    margin-top: 6px;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.order-tracking strong {
    color: var(--primary);
    font-family: monospace;
    direction: ltr;
}

.order-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   Order Detail Page (User)
   ============================================ */
.order-detail-page {
    padding: 32px 0;
}

.order-progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 28px;
    margin-bottom: 24px;
}

.order-progress-card h3 {
    margin-bottom: 20px;
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

.order-detail-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 28px;
    overflow-x: auto;
}

.order-detail-section h3 {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

.order-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 24px);
}

.order-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 24px;
}

.order-info-card h3 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    font-size: var(--text-base);
    font-weight: var(--font-bold);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    color: var(--text-muted);
}

.info-row.total {
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    border-top: 2px solid var(--border-color);
    padding-top: 14px;
    margin-top: 6px;
}

.info-row.total strong {
    color: var(--secondary);
    font-size: var(--text-lg);
}

/* ============================================
   Order Success Page
   ============================================ */
.order-success-page {
    padding: 48px 0;
}

.success-card {
    max-width: 650px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-3xl);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.success-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 24px;
    animation: scaleIn 0.6s ease;
    display: inline-block;
    width: 100px;
    height: 100px;
    background: var(--success-light);
    border-radius: 50%;
    line-height: 100px;
}

.success-card h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    margin-bottom: 12px;
    color: var(--success-dark);
}

.success-message {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: var(--text-base);
    line-height: 1.8;
}

.success-message strong {
    color: var(--primary);
}

.order-info-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    text-align: right;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--text-sm);
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-row .price {
    color: var(--secondary);
    font-weight: var(--font-extrabold);
    font-size: var(--text-lg);
}

.order-items-summary {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    text-align: right;
}

.order-items-summary h3 {
    margin-bottom: 16px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-row img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.item-details {
    flex: 1;
}

.item-name {
    display: block;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
}

.item-details small {
    display: block;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.item-price {
    font-weight: var(--font-bold);
    color: var(--secondary);
    font-size: var(--text-sm);
    white-space: nowrap;
}

.shipping-address-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 28px;
    text-align: right;
}

.shipping-address-box h3 {
    margin-bottom: 16px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-address-box h3 i {
    color: var(--primary);
}

.shipping-address-box p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Checkout Page Additional
   ============================================ */
.address-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.address-option {
    cursor: pointer;
}

.address-option input {
    display: none;
}

.address-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.address-option input:checked + .address-card {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .address-option input:checked + .address-card {
    background: rgba(37, 99, 235, 0.1);
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
}

.address-card-header i {
    color: var(--primary);
}

.address-card-body p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-card-body p i {
    color: var(--text-muted);
    width: 16px;
}

.new-address {
    border-style: dashed;
    text-align: center;
    color: var(--primary);
    padding: 32px;
}

.new-address i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.7;
}

.new-address-form {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.new-address-form h4 {
    margin-bottom: 16px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
}

.delivery-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.delivery-card i {
    font-size: 2.5rem;
    color: var(--primary);
}

.delivery-card strong {
    display: block;
    font-size: var(--text-base);
    margin-bottom: 6px;
}

.delivery-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.btn-show-discount {
    background: none;
    border: 2px dashed var(--primary);
    color: var(--primary);
    padding: 14px 24px;
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.btn-show-discount:hover {
    background: var(--primary-50);
    border-style: solid;
}

.discount-input-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    animation: fadeIn 0.3s ease;
}

.discount-input-wrapper input {
    flex: 1;
}

/* ============================================
   Payment Instructions
   ============================================ */
.payment-instructions {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    border-radius: var(--radius-xl);
    border: 2px solid #fbbf24;
}

[data-theme="dark"] .payment-instructions {
    background: linear-gradient(135deg, #3d2a14, #4a3720);
    border-color: #7c5e34;
}

.payment-instructions i {
    color: var(--warning-dark);
    font-size: var(--text-lg);
}

.payment-instructions p {
    margin-bottom: 8px;
    font-size: var(--text-sm);
}

.payment-instructions strong {
    color: var(--secondary);
    font-size: var(--text-xl);
    font-weight: var(--font-extrabold);
}

.payment-report-form {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.payment-report-form h4 {
    margin-bottom: 16px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-report-form textarea {
    background: var(--bg-card);
    font-size: var(--text-sm);
    line-height: 1.8;
    direction: rtl;
    border-radius: var(--radius-lg);
}

/* ============================================
   Tracking Page
   ============================================ */
.tracking-page {
    padding: 48px 0;
    min-height: 60vh;
}

.tracking-content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-3xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.tracking-content h1 {
    margin-bottom: 12px;
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tracking-content > p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.tracking-input-group {
    display: flex;
    gap: 10px;
    max-width: 450px;
    margin: 0 auto;
}

.tracking-input-group input {
    flex: 1;
    font-family: monospace;
    direction: ltr;
    font-size: var(--text-sm);
}

.tracking-result {
    margin-top: 32px;
    text-align: right;
}

.order-status-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.order-status-card h3 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    font-size: var(--text-lg);
}

.order-status-card p {
    margin-bottom: 10px;
    font-size: var(--text-sm);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-page {
    padding: 40px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 28px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-fast);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-6px);
    border-color: var(--primary-200);
}

.contact-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: var(--text-2xl);
    color: var(--primary);
    transition: all var(--transition-fast);
}

.contact-info-card:hover .contact-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.contact-info-card h3 {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin-bottom: 8px;
}

.contact-detail {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-note {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.contact-info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 32px;
}

.contact-info-box h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box p {
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-social-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link-large {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.social-link-large:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.chat-cta {
    margin-top: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-2xl);
    padding: 28px 32px;
    color: white;
}

.chat-cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chat-cta-content > i {
    font-size: 3.5rem;
    opacity: 0.8;
}

.chat-cta-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: 6px;
}

.chat-cta-content p {
    opacity: 0.9;
    font-size: var(--text-sm);
}

.chat-cta .btn {
    background: white;
    color: var(--primary);
    white-space: nowrap;
    font-weight: var(--font-bold);
}

/* ============================================
   Chat Page
   ============================================ */
.chat-page {
    padding: 32px 0;
    min-height: 75vh;
}

.chat-page-container {
    max-width: 750px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-3xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 72vh;
    box-shadow: var(--shadow-lg);
}

.chat-page-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chat-header-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.chat-header-info h3 {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin-bottom: 3px;
}

.chat-status {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.chat-subtitle {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.chat-messages-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--bg-secondary);
}

.chat-start-message {
    text-align: center;
    color: var(--text-muted);
    margin: auto;
    padding: 24px;
}

.chat-start-message i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    opacity: 0.4;
}

.chat-bubble {
    max-width: 78%;
    padding: 14px 18px;
    border-radius: var(--radius-2xl);
    position: relative;
    word-wrap: break-word;
    animation: fadeInUp 0.3s ease;
}

.chat-bubble.sent {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.chat-bubble.received {
    background: var(--bg-card);
    align-self: flex-start;
    border-bottom-right-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.chat-bubble p {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin: 0;
}

.chat-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 6px;
    display: block;
    text-align: left;
}

.chat-input-container {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background: var(--bg-card);
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    resize: none;
    min-height: 46px;
    max-height: 120px;
    font-family: inherit;
    line-height: 1.5;
    transition: all var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--bg-card);
}

.chat-send-button {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    border: none;
    font-size: var(--text-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-button:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Auth Pages (Login/Register)
   ============================================ */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea15, #764ba215);
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-3xl);
    padding: 40px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-black);
    color: var(--primary);
    margin-bottom: 12px;
}

.auth-logo h2 span {
    color: var(--secondary);
}

.auth-header h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--text-lg);
    padding: 8px;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: var(--text-xs);
}

.forgot-link {
    color: var(--primary);
    font-weight: var(--font-semibold);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: var(--text-sm);
}

.auth-footer a {
    color: var(--primary);
    font-weight: var(--font-bold);
}

.auth-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--bg-card);
    padding: 0 20px;
    position: relative;
    color: var(--text-muted);
    font-size: var(--text-xs);
}

.auth-info {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-info-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
}

.auth-info-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.auth-info h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-black);
    margin-bottom: 12px;
}

.auth-info p {
    font-size: var(--text-base);
    opacity: 0.9;
    margin-bottom: 32px;
}

.auth-features {
    list-style: none;
    text-align: right;
}

.auth-features li {
    padding: 10px 0;
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.9);
}

.auth-features li i {
    color: #4ade80;
    font-size: var(--text-lg);
}

/* ============================================
   Profile Page
   ============================================ */
.profile-page {
    padding: 40px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    margin-top: 24px;
}

.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 24px);
    box-shadow: var(--shadow-sm);
}

.profile-avatar-section {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.profile-avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.4);
    transition: all var(--transition-fast);
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--text-sm);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    border: 2px solid var(--primary);
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

.profile-avatar-section h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 4px;
}

.profile-username {
    font-size: var(--text-xs);
    opacity: 0.8;
}

.profile-menu {
    padding: 8px 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    border-right: 3px solid transparent;
}

.profile-menu-item:hover,
.profile-menu-item.active {
    background: var(--bg-hover);
    color: var(--primary);
    border-right-color: var(--primary);
}

.profile-menu-item i {
    width: 20px;
    text-align: center;
    font-size: var(--text-base);
}

.profile-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 32px;
}

.profile-section-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-section-title i {
    color: var(--primary);
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================
   Wishlist Page
   ============================================ */
.wishlist-page {
    padding: 40px 0;
}

.wishlist-count {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ============================================
   Notifications Page
   ============================================ */
.notifications-page {
    padding: 40px 0;
}

.notifications-actions {
    display: flex;
    gap: 10px;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    position: relative;
}

.notification-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-200);
}

.notification-item.unread {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(37, 99, 235, 0.08);
}

.notification-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--primary);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.notification-header strong {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
}

.notification-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
}

.notification-content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.unread-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    animation: pulse 2s infinite;
}

/* ============================================
   Search Page
   ============================================ */
.search-page {
    padding: 32px 0;
}

.search-header {
    margin-bottom: 28px;
}

.search-header h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    margin-bottom: 6px;
}

.search-count {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.search-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
}

.search-filters {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 24px);
}

.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 20px;
}

.filter-card h3 {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.filter-list li {
    margin-bottom: 6px;
}

.filter-list a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.filter-list a:hover,
.filter-list a.active {
    background: var(--primary);
    color: white;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
}

.price-inputs span {
    color: var(--text-muted);
    font-weight: var(--font-bold);
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.sort-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: var(--font-semibold);
}

.sort-options {
    display: flex;
    gap: 6px;
}

.sort-option {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-weight: var(--font-medium);
}

.sort-option:hover,
.sort-option.active {
    background: var(--primary);
    color: white;
}

/* ============================================
   Category Page
   ============================================ */
.category-page {
    padding: 24px 0 40px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    margin-bottom: 24px;
}

.category-header-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.category-header h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    margin-bottom: 8px;
}

.category-header p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: 8px;
}

.category-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.sub-categories-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.sub-category-chip {
    padding: 8px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.sub-category-chip:hover,
.sub-category-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Special Offers Page
   ============================================ */
.special-offers-page {
    padding: 32px 0 48px;
}

.special-header {
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
    padding: 28px 32px;
    border-radius: var(--radius-2xl);
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

[data-theme="dark"] .special-header {
    background: linear-gradient(135deg, #3d2a14, #4a3720);
}

.special-offer-card {
    border: 2px solid var(--warning);
    position: relative;
    overflow: visible;
}

.special-offer-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: var(--radius-xl);
    background: linear-gradient(45deg, var(--warning), var(--secondary), var(--warning));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.special-offer-card:hover::before {
    opacity: 1;
    animation: borderGlow 2s infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.stock-progress {
    padding: 0 4px;
    margin-top: 8px;
}

.progress-bar-small {
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning), var(--secondary));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* ============================================
   Custom Slider Cards
   ============================================ */
.custom-slider-wrapper {
    position: relative;
}

.custom-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-slider::-webkit-scrollbar {
    display: none;
}

.custom-slide-card {
    flex-shrink: 0;
    width: 280px;
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Final Polish & Utilities
   ============================================ */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea, .btn, .card, .product-card {
    transition: all var(--transition-fast);
}

/* ============================================
   Print Styles (Final)
   ============================================ */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .top-bar, .main-header, .main-nav, .footer, .footer-top, .footer-bottom,
    .chat-float-btn, .back-to-top, .btn, .product-actions, .add-to-cart-section,
    .no-print, .stories-section, .hero-slider, .announcement-banner,
    .mobile-menu-toggle, .mobile-menu-overlay {
        display: none !important;
    }
    
    a {
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
        padding: 0;
    }
    
    .product-detail-grid, .cart-content, .checkout-content,
    .order-detail-grid, .profile-grid, .contact-grid {
        display: block !important;
    }
    
    .product-card, .order-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 200px !important;
    }
    
    @page {
        margin: 1.5cm;
    }
}

/* ============================================
   Auth Pages Responsive - Fixed
   ============================================ */

   @media screen and (max-width: 992px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .auth-card {
        padding: 32px 24px;
        border-radius: var(--radius-2xl);
    }
    
    .auth-info {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .auth-page {
        padding: 20px 0;
        min-height: auto;
        align-items: flex-start;
    }
    
    .auth-wrapper {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .auth-card {
        padding: 28px 20px;
        border-radius: var(--radius-xl);
    }
    
    .auth-logo h2 {
        font-size: var(--text-2xl);
    }
    
    .auth-header h3 {
        font-size: var(--text-xl);
    }
    
    .auth-header p {
        font-size: var(--text-xs);
    }
    
    .auth-form .form-group {
        margin-bottom: 16px;
    }
    
    .auth-form .form-control {
        padding: 10px 14px;
        font-size: var(--text-sm);
    }
    
    .auth-form .btn-lg {
        padding: 12px 24px;
        font-size: var(--text-base);
    }
    
    .form-options {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media screen and (max-width: 576px) {
    .auth-page {
        padding: 12px 0;
        background: var(--bg-primary);
    }
    
    .auth-wrapper {
        padding: 0 10px;
    }
    
    .auth-card {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
        box-shadow: none;
        border: none;
    }
    
    .auth-logo h2 {
        font-size: var(--text-xl);
    }
    
    .auth-header {
        margin-bottom: 24px;
    }
    
    .auth-header h3 {
        font-size: var(--text-lg);
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-form .form-control {
        padding: 10px 12px;
        font-size: var(--text-xs);
        border-radius: var(--radius-md);
    }
    
    .auth-form .btn-lg {
        padding: 12px;
        font-size: var(--text-sm);
        border-radius: var(--radius-lg);
    }
    
    .auth-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .password-input-wrapper .password-toggle {
        left: 8px;
        font-size: var(--text-base);
    }
    
    .auth-divider span {
        padding: 0 12px;
        font-size: 0.7rem;
    }
    
    .auth-footer {
        font-size: var(--text-xs);
    }
    
    .auth-features li {
        font-size: var(--text-xs);
        padding: 6px 0;
    }
}

@media screen and (max-width: 380px) {
    .auth-card {
        padding: 20px 12px;
    }
    
    .auth-logo h2 {
        font-size: var(--text-lg);
    }
    
    .auth-header h3 {
        font-size: var(--text-base);
    }
    
    .auth-form .form-control {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
    
    .auth-form .btn {
        padding: 10px;
        font-size: var(--text-xs);
    }
    
    .checkbox-label {
        font-size: 0.7rem;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Profile Page Responsive
   ============================================ */
@media screen and (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: static;
        border-radius: var(--radius-xl);
    }
    
    .profile-menu {
        display: flex;
        overflow-x: auto;
        padding: 0;
        scrollbar-width: none;
    }
    
    .profile-menu::-webkit-scrollbar {
        display: none;
    }
    
    .profile-menu-item {
        white-space: nowrap;
        border-right: none;
        border-bottom: 3px solid transparent;
        flex-shrink: 0;
    }
    
    .profile-menu-item:hover,
    .profile-menu-item.active {
        border-right-color: transparent;
        border-bottom-color: var(--primary);
    }
}

@media screen and (max-width: 576px) {
    .profile-content {
        padding: 20px 16px;
    }
    
    .profile-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ============================================
   Cart Steps Responsive
   ============================================ */
@media screen and (max-width: 768px) {
    .cart-steps {
        display: none;
    }
    
    .step-divider {
        max-width: 30px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .step-title {
        font-size: 0.65rem;
    }
}

/* ============================================
   Contact Page Responsive
   ============================================ */
@media screen and (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .chat-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .chat-cta {
        padding: 24px 20px;
    }
}

@media screen and (max-width: 480px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-info-card {
        padding: 20px 16px;
    }
    
    .contact-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }
}

/* ============================================
   Checkout Page Responsive
   ============================================ */
@media screen and (max-width: 992px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary-card {
        position: static;
    }
}

@media screen and (max-width: 576px) {
    .checkout-section {
        padding: 16px;
    }
    
    .address-card {
        padding: 14px;
    }
    
    .new-address-form {
        padding: 16px;
    }
}

/* ============================================
   Order Detail Responsive
   ============================================ */
@media screen and (max-width: 992px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .order-detail-sidebar {
        position: static;
    }
}

@media screen and (max-width: 576px) {
    .order-detail-section,
    .order-info-card {
        padding: 16px;
    }
    
    .progress-bar {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .progress-line {
        display: none;
    }
    
    .progress-step {
        flex: 1;
        min-width: 50px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.65rem;
    }
    
    .step-label {
        font-size: 0.55rem;
        max-width: 60px;
    }
}

/* ============================================
   Tracking Page Responsive
   ============================================ */
@media screen and (max-width: 576px) {
    .tracking-content {
        padding: 24px 16px;
    }
    
    .tracking-input-group {
        flex-direction: column;
    }
    
    .tracking-input-group .btn {
        width: 100%;
    }
}

/* ============================================
   Chat Page Responsive
   ============================================ */
@media screen and (max-width: 768px) {
    .chat-page-container {
        height: 80vh;
        border-radius: 0;
        border: none;
    }
    
    .chat-bubble {
        max-width: 88%;
    }
    
    .chat-input-container {
        padding: 12px;
    }
}

/* ============================================
   Search Layout Responsive
   ============================================ */
@media screen and (max-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        position: static;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    
    .search-filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-card {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    .sort-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sort-options {
        flex-wrap: wrap;
    }
}

/* ============================================
   Category Header Responsive
   ============================================ */
@media screen and (max-width: 768px) {
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-header-image {
        width: 100px;
        height: 100px;
    }
}

/* ============================================
   Order Success Page Responsive
   ============================================ */
@media screen and (max-width: 576px) {
    .success-card {
        padding: 28px 16px;
        border-radius: var(--radius-xl);
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 3rem;
        line-height: 70px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Stories Responsive
   ============================================ */
@media screen and (max-width: 480px) {
    .stories-container {
        gap: 12px;
    }
    
    .story-viewer-content {
        width: 100%;
        height: 80vh;
        border-radius: 0;
    }
    
    .story-viewer-image-wrapper {
        border-radius: 0;
    }
    
    .story-viewer-close {
        top: 12px;
        left: 12px;
    }
    
    .story-prev { right: 8px; }
    .story-next { left: 8px; }
}

/* ============================================
   Admin Panel Responsive
   ============================================ */
@media screen and (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        width: 280px;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-2xl);
    }
    
    .admin-main {
        margin-right: 0;
    }
    
    .admin-menu-toggle {
        display: block;
    }
    
    .admin-header {
        padding: 12px 16px;
    }
    
    .admin-header-title h1 {
        font-size: var(--text-base);
    }
    
    .admin-content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .admin-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .admin-card-body {
        padding: 16px;
    }
    
    .admin-table {
        font-size: 0.75rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 10px;
    }
}

@media screen and (max-width: 576px) {
    .admin-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .admin-header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-sidebar {
        width: 260px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
    }
    
    .stat-value {
        font-size: var(--text-base);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .admin-search-bar .flex {
        flex-direction: column;
        gap: 8px;
    }
    
    .admin-search-bar .form-control {
        max-width: 100%;
    }
    
    .admin-search-bar select {
        width: 100% !important;
    }
}

/* ============================================
   Cart Page - Complete Missing Styles
   ============================================ */

/* Cart Page Layout */
.cart-page {
    padding: 32px 0 48px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Cart Steps */
.cart-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 20px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow-x: auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
    animation: pulseRing 2s infinite;
}

.step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.step-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
    white-space: nowrap;
}

.step.active .step-title {
    color: var(--primary);
    font-weight: var(--font-bold);
}

.step.completed .step-title {
    color: var(--success);
}

.step-divider {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin: 0 8px;
    flex-shrink: 0;
    transition: background var(--transition-fast);
}

.step.completed + .step-divider {
    background: var(--success);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 64px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 2px dashed var(--border-color);
}

.empty-cart-icon {
    font-size: 5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-cart h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: 10px;
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: var(--text-sm);
}

/* Cart Content Layout */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 28px;
    align-items: start;
}

/* Cart Items Section */
.cart-items-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-items-count {
    font-weight: var(--font-bold);
    font-size: var(--text-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-items-count i {
    color: var(--primary);
}

.btn-clear-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    color: var(--danger);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    border: 1px solid transparent;
}

.btn-clear-cart:hover {
    background: var(--danger-light);
    border-color: var(--danger);
}

/* Cart Item */
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: var(--bg-hover);
}

.cart-item-image {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    display: block;
    margin-bottom: 6px;
    line-height: 1.5;
    transition: color var(--transition-fast);
}

.cart-item-name:hover {
    color: var(--primary);
}

.cart-item-variant {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    vertical-align: middle;
}

.cart-item-price-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.cart-item-unit-price {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
}

/* Quantity Selector in Cart */
.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
}

.cart-item-quantity button {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: none;
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-item-quantity button:hover {
    background: var(--primary);
    color: white;
}

.cart-item-quantity span {
    width: 44px;
    text-align: center;
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    height: 36px;
    line-height: 36px;
    user-select: none;
}

.cart-item-total-price {
    font-weight: var(--font-extrabold);
    color: var(--secondary);
    font-size: var(--text-base);
    white-space: nowrap;
    min-width: 100px;
    text-align: left;
}

/* Remove Button */
.cart-item-remove {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--text-base);
}

.cart-item-remove:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Cart Summary Sidebar */
.cart-summary {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 24px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.summary-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-title i {
    color: var(--primary);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.summary-row span:last-child {
    font-weight: var(--font-semibold);
}

.summary-divider {
    border-top: 2px solid var(--border-color);
    margin: 14px 0;
}

.total-row {
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: var(--text-primary);
    padding: 14px 0;
}

.total-amount {
    color: var(--secondary) !important;
    font-size: var(--text-2xl) !important;
    font-weight: var(--font-extrabold) !important;
}

.discount-row {
    color: var(--danger) !important;
}

/* Discount Code Section */
.discount-code-section {
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.discount-code-label {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.discount-code-input-group {
    display: flex;
    gap: 8px;
}

.discount-code-input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.discount-code-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-card);
}

.btn-apply-discount {
    padding: 10px 18px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.btn-apply-discount:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    padding: 16px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    justify-content: center;
    margin-top: 16px;
    border-radius: var(--radius-xl);
}

.btn-back-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
}

.btn-back-shop:hover {
    color: var(--primary);
}

/* Guarantee Box */
.guarantee-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.guarantee-box-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.guarantee-box-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.guarantee-box-item:first-child {
    padding-top: 0;
}

.guarantee-box-item i {
    font-size: var(--text-xl);
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: var(--primary-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guarantee-box-item strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    margin-bottom: 2px;
}

.guarantee-box-item small {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ============================================
   Checkout Page - Complete Missing Styles
   ============================================ */

.checkout-page {
    padding: 32px 0 48px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.checkout-section:hover {
    box-shadow: var(--shadow-md);
}

.section-header-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.section-header-mini i {
    font-size: var(--text-xl);
    color: var(--primary);
    width: 44px;
    height: 44px;
    background: var(--primary-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header-mini h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
}

/* Address Options */
.address-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.address-option {
    cursor: pointer;
    display: block;
}

.address-option input[type="radio"] {
    display: none;
}

.address-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: var(--bg-card);
}

.address-option input[type="radio"]:checked + .address-card {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

[data-theme="dark"] .address-option input[type="radio"]:checked + .address-card {
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.address-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
}

.address-card-header i {
    color: var(--primary);
    font-size: var(--text-lg);
}

.address-card-body p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
}

.address-card-body p i {
    color: var(--text-muted);
    width: 16px;
    flex-shrink: 0;
}

/* New Address Card */
.address-card.new-address {
    border-style: dashed;
    text-align: center;
    color: var(--primary);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.address-card.new-address i {
    font-size: 2.5rem;
    opacity: 0.7;
}

.address-card.new-address strong {
    font-size: var(--text-base);
}

/* New Address Form */
.new-address-form {
    margin-top: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.new-address-form h4 {
    margin-bottom: 20px;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Delivery Section */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.delivery-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.delivery-card i {
    font-size: 2rem;
    color: var(--primary);
    width: 48px;
    height: 48px;
    background: var(--primary-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-card strong {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    margin-bottom: 4px;
}

.delivery-card p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Discount Code in Checkout */
.discount-code-checkout {
    padding: 8px 0;
}

.btn-show-discount {
    background: none;
    border: 2px dashed var(--primary);
    color: var(--primary);
    padding: 14px 24px;
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
}

.btn-show-discount:hover {
    background: var(--primary-50);
    border-style: solid;
}

.discount-input-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    animation: fadeIn 0.3s ease;
}

.discount-input-wrapper input {
    flex: 1;
}

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 24px);
}

.order-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.order-summary-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary-card h3 i {
    color: var(--primary);
}

.order-items-mini {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.order-item-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.order-item-mini:last-child {
    border-bottom: none;
}

.order-item-mini img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.order-item-mini-details {
    flex: 1;
    min-width: 0;
}

.order-item-mini-name {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    margin-bottom: 3px;
}

.order-item-mini-details small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.order-item-mini-price {
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    color: var(--secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================
   Cart & Checkout Responsive
   ============================================ */
@media screen and (max-width: 1200px) {
    .cart-content {
        grid-template-columns: 1fr 360px;
        gap: 20px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr 360px;
        gap: 20px;
    }
}

@media screen and (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
    }
    
    .order-summary-card {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .cart-steps {
        padding: 14px 16px;
        gap: 4px;
    }
    
    .step-divider {
        width: 30px;
        margin: 0 4px;
    }
    
    .step-title {
        font-size: 0.7rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .cart-item {
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }
    
    .cart-item-image {
        width: 90px;
        height: 90px;
    }
    
    .cart-item-details {
        flex: 1;
        min-width: 150px;
    }
    
    .cart-item-price-section {
        width: 100%;
        /*justify-content: space-between;*/
    }
    
    .cart-item-remove {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 32px;
        height: 32px;
    }
    
    .checkout-section {
        padding: 20px;
    }
    
    .address-card {
        padding: 16px;
    }
    
    .cart-summary-card,
    .order-summary-card {
        padding: 20px;
    }
    
    .discount-code-input-group {
        flex-direction: column;
    }
    
    .btn-apply-discount {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .cart-steps {
        display: none;
    }
    
    .cart-items-header {
        padding: 14px 16px;
    }
    
    .cart-item {
        padding: 14px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-name {
        font-size: var(--text-xs);
    }
    
    .cart-item-quantity button {
        width: 30px;
        height: 30px;
        font-size: var(--text-base);
    }
    
    .cart-item-quantity span {
        width: 36px;
        height: 30px;
        line-height: 30px;
        font-size: var(--text-xs);
    }
    
    .cart-item-total-price {
        font-size: var(--text-sm);
    }
    
    .total-amount {
        font-size: var(--text-xl) !important;
    }
    
    .checkout-section {
        padding: 16px;
    }
    
    .section-header-mini {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .section-header-mini i {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }
    
    .section-header-mini h3 {
        font-size: var(--text-base);
    }
    
    .address-card-body p {
        font-size: var(--text-xs);
    }
    
    .new-address-form {
        padding: 16px;
    }
    
    .delivery-card {
        padding: 14px;
        gap: 10px;
    }
    
    .delivery-card i {
        width: 36px;
        height: 36px;
        font-size: var(--text-lg);
    }
    
    .btn-checkout {
        padding: 14px;
        font-size: var(--text-sm);
    }
}

@media screen and (max-width: 380px) {
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-item-quantity button {
        width: 28px;
        height: 28px;
    }
    
    .cart-item-quantity span {
        width: 32px;
        height: 28px;
        line-height: 28px;
    }
}

/* ============================================
   SPR SHOP - Mobile Fix Complete
   All Mobile Issues Resolved
   ============================================ */

/* ============================================
   Global Mobile Fixes
   ============================================ */
   @media screen and (max-width: 768px) {
    /* Fix container padding */
    .container {
        padding: 0 12px;
    }
    
    /* Fix horizontal scroll on body */
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Fix all grid layouts to prevent overflow */
    .products-grid,
    .categories-grid,
    .features-grid,
    .footer-grid,
    .admin-grid-2col,
    .stats-grid,
    .videos-grid {
        width: 100%;
        max-width: 100%;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix table overflow */
    .table-responsive,
    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix modal on mobile */
    .modal-content {
        width: 92%;
        max-width: 92vw;
        max-height: 88vh;
        margin: 0 auto;
        border-radius: var(--radius-xl);
    }
    
    .modal-overlay {
        padding: 10px;
    }
    
    /* Fix toast notification position */
    .toast-container {
        width: 90%;
        left: 5%;
        transform: none;
        top: 10px;
    }
    
    .toast {
        width: 100%;
        font-size: var(--text-xs);
        padding: 12px 16px;
    }
}

/* ============================================
   Small Mobile Fix (320px - 576px)
   ============================================ */
@media screen and (max-width: 576px) {
    /* Reset base font for better readability */
    html {
        font-size: 14px;
    }
    
    /* Fix buttons on mobile */
    .btn {
        padding: 10px 18px;
        font-size: var(--text-xs);
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: var(--text-sm);
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.65rem;
        min-height: 32px;
    }
    
    /* Fix form controls */
    .form-control {
        padding: 10px 14px;
        font-size: var(--text-xs);
        min-height: 42px;
    }
    
    /* Fix header */
    .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    
    .header-content {
        padding: 8px 0;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .logo h1 {
        font-size: var(--text-lg);
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .search-box {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .search-form {
        border-radius: var(--radius-full);
    }
    
    .search-input {
        padding: 10px 14px;
        font-size: var(--text-xs);
    }
    
    .search-btn {
        padding: 10px 14px;
    }
    
    .header-icons {
        order: 2;
        margin-right: auto;
        gap: 2px;
    }
    
    .icon-link {
        padding: 4px 6px;
        font-size: var(--text-base);
    }
    
    .icon-text {
        display: none;
    }
    
    .badge {
        font-size: 8px;
        min-width: 16px;
        height: 16px;
        top: 0;
        right: 0;
    }
    
    /* Fix navigation */
    .main-nav {
        height: auto;
        min-height: 44px;
    }
    
    .mobile-menu-toggle {
        font-size: var(--text-sm);
        padding: 8px 12px;
    }
    
    .mobile-menu {
        width: 80%;
        max-width: 300px;
    }
    
    .mobile-menu-link {
        padding: 14px 16px;
        font-size: var(--text-sm);
    }
    
    /* Fix hero slider */
    .hero-slider .slider-container {
        height: 180px;
        border-radius: var(--radius-lg);
    }
    
    .slide {
        padding: 16px 20px;
    }
    
    .slide-content {
        max-width: 100%;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: var(--text-lg);
        margin-bottom: 6px;
    }
    
    .slide-content p {
        display: none;
    }
    
    .slide-content .btn-light {
        padding: 8px 16px;
        font-size: var(--text-xs);
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: var(--text-sm);
    }
    
    .slider-arrow.prev { right: 6px; }
    .slider-arrow.next { left: 6px; }
    
    /* Fix product cards */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-card {
        border-radius: var(--radius-lg);
    }
    
    .product-image-wrapper {
        aspect-ratio: 0.95;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
        margin-bottom: 4px;
    }
    
    .product-prices {
        gap: 4px;
        margin-bottom: 6px;
    }
    
    .current-price {
        font-size: 0.75rem;
    }
    
    .old-price {
        font-size: 0.6rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn-add-cart {
        padding: 7px;
        font-size: 0.65rem;
        border-radius: var(--radius-md);
    }
    
    .btn-wishlist {
        width: 100%;
        height: 32px;
        font-size: var(--text-xs);
    }
    
    .product-badge {
        font-size: 0.55rem;
        padding: 3px 6px;
        top: 6px;
    }
    
    .discount-badge {
        left: 6px;
    }
    
    /* Fix section headers */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .section-title {
        font-size: var(--text-base);
    }
    
    .section-icon {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }
    
    .view-all {
        font-size: var(--text-xs);
        padding: 6px 14px;
    }
    
    /* Fix countdown timer */
    .countdown-timer {
        padding: 6px 12px;
        font-size: 0.65rem;
        border-radius: var(--radius-lg);
        gap: 4px;
    }
    
    .timer-digits {
        font-size: var(--text-sm);
        gap: 1px;
    }
    
    .timer-digit {
        padding: 2px 5px;
        border-radius: var(--radius-sm);
    }
    
    /* Fix categories */
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .category-card {
        padding: 14px 8px;
        border-radius: var(--radius-lg);
    }
    
    .category-image-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .category-name {
        font-size: 0.65rem;
    }
    
    .category-desc {
        display: none;
    }
    
    /* Fix features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .feature-item {
        padding: 14px;
        flex-direction: row;
        text-align: right;
    }
    
    .feature-icon {
        width: 44px;
        height: 44px;
        font-size: var(--text-lg);
    }
    
    /* Fix stories */
    .stories-container {
        gap: 10px;
        padding: 8px 4px;
    }
    
    .story-ring {
        width: 58px;
        height: 58px;
        padding: 2px;
    }
    
    .story-image {
        width: 54px;
        height: 54px;
        border-width: 2px;
    }
    
    .story-username {
        font-size: 0.6rem;
        max-width: 60px;
    }
    
    /* Fix brands slider */
    .brand-card {
        width: 130px;
        height: 85px;
        border-radius: var(--radius-lg);
        padding: 12px;
    }
    
    /* Fix footer */
    .footer-top {
        padding: 28px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-title {
        font-size: var(--text-base);
        margin-bottom: 14px;
    }
    
    .footer-about {
        font-size: var(--text-xs);
    }
    
    .footer-links li a {
        font-size: var(--text-xs);
        padding: 6px 0;
    }
    
    .footer-contact .contact-item {
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        padding: 16px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .copyright {
        font-size: 0.65rem;
    }
    
    /* Fix back to top */
    .back-to-top {
        bottom: 16px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
    
    /* Fix chat float button */
    .chat-float-btn {
        bottom: 70px;
        right: 12px;
        padding: 10px 16px;
        font-size: var(--text-xs);
        gap: 6px;
    }
    
    /* Fix product detail */
    .product-detail-grid {
        padding: 14px;
        gap: 16px;
        border-radius: var(--radius-lg);
    }
    
    .main-image-wrapper {
        aspect-ratio: 1;
    }
    
    .gallery-thumbnail {
        width: 56px;
        height: 56px;
    }
    
    .product-detail-title {
        font-size: var(--text-lg);
    }
    
    .detail-current-price {
        font-size: var(--text-xl);
    }
    
    .add-to-cart-section {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .quantity-selector button {
        width: 36px;
        height: 40px;
    }
    
    .quantity-selector input {
        width: 40px;
        height: 40px;
    }
    
    .btn-add-to-cart-large {
        padding: 12px;
        font-size: var(--text-sm);
    }
    

    
    /* Fix tabs */
    .tabs-header {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    .tab-panel {
        padding: 14px;
    }
    
    /* Fix reviews */
    .review-item {
        padding: 14px;
    }
    
    .review-avatar {
        width: 36px;
        height: 36px;
    }
    
    .review-reply {
        margin-right: 24px;
    }
    
    .reply-form {
        margin-right: 24px;
    }
    
    /* Fix cart */
    .cart-items-header {
        padding: 12px 14px;
    }
    
    .cart-item {
        padding: 12px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-name {
        font-size: var(--text-xs);
    }
    
    .cart-item-price-section {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .cart-item-quantity button {
        width: 30px;
        height: 30px;
    }
    
    .cart-item-quantity span {
        width: 36px;
        height: 30px;
        line-height: 30px;
    }
    
    /* Fix checkout */
    .checkout-section {
        padding: 14px;
    }
    
    .address-card {
        padding: 14px;
    }
    
    .address-card-body p {
        font-size: var(--text-xs);
    }
    
    /* Fix order cards */
    .order-card-header {
        padding: 12px 14px;
    }
    
    .order-card-body {
        padding: 14px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-card-footer {
        padding: 12px 14px;
    }
    
    .order-item-thumb {
        width: 50px;
        height: 50px;
    }
    
    /* Fix order progress */
    .progress-bar {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .progress-line {
        display: none;
    }
    
    .progress-step {
        flex: 1;
        min-width: 50px;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.6rem;
    }
    
    .step-label {
        font-size: 0.55rem;
        max-width: 55px;
    }
    
    /* Fix search layout */
    .search-layout {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-card {
        min-width: 170px;
        flex-shrink: 0;
        padding: 14px;
    }
    
    .sort-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 14px;
    }
    
    .sort-options {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .sort-option {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
    
    /* Fix pagination */
    .pagination a,
    .pagination span {
        width: 34px;
        height: 34px;
        font-size: var(--text-xs);
    }
    
    /* Fix empty state */
    .empty-state {
        padding: 40px 16px;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h2 {
        font-size: var(--text-lg);
    }
    
    /* Fix alerts */
    .alert {
        padding: 12px 14px;
        font-size: var(--text-xs);
        border-radius: var(--radius-lg);
    }
    
    /* Fix bank card */
    .bank-card {
        width: 100%;
        max-width: 280px;
        height: 155px;
        padding: 16px;
        margin: 0 auto;
    }
    
    .bank-card-number {
        font-size: var(--text-lg);
        letter-spacing: 2px;
    }
    
    .bank-logo {
        font-size: var(--text-xs);
    }
    
    /* Fix static pages */
    .static-content {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }
    
    .static-content h1 {
        font-size: var(--text-lg);
    }
    
    .static-section {
        padding: 14px;
    }
    
    /* Fix FAQ */
    .faq-question {
        padding: 14px 16px;
        font-size: var(--text-sm);
    }
    
    .faq-answer {
        padding: 0 16px 14px;
        font-size: var(--text-xs);
    }
    
    /* Fix auth pages */
    .auth-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }
    
    .auth-header h3 {
        font-size: var(--text-lg);
    }
    
    /* Fix profile */
    .profile-content {
        padding: 16px;
    }
    
    .profile-section-title {
        font-size: var(--text-base);
    }
    
    /* Fix notifications */
    .notification-item {
        padding: 14px;
    }
    
    .notification-icon {
        width: 38px;
        height: 38px;
        font-size: var(--text-base);
    }
    
    .notification-header strong {
        font-size: var(--text-xs);
    }
    
    /* Fix chat */
    .chat-messages-container {
        padding: 14px;
    }
    
    .chat-bubble {
        max-width: 90%;
        padding: 10px 14px;
    }
    
    .chat-bubble p {
        font-size: var(--text-xs);
    }
    
    .chat-input-container {
        padding: 10px 14px;
    }
    
    .chat-input {
        padding: 10px 14px;
        font-size: var(--text-xs);
    }
    
    /* Fix contact */
    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-info-card {
        padding: 16px;
    }
    
    .contact-icon-wrapper {
        width: 48px;
        height: 48px;
        font-size: var(--text-lg);
    }
    
    /* Fix success card */
    .success-card {
        padding: 24px 14px;
    }
    
    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 2.5rem;
        line-height: 64px;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Very Small Mobile (320px - 400px)
   ============================================ */
@media screen and (max-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .product-image-wrapper {
        aspect-ratio: 0.85;
    }
    
    .product-info {
        padding: 6px;
    }
    
    .product-title {
        font-size: 0.6rem;
    }
    
    .current-price {
        font-size: 0.65rem;
    }
    
    .btn-add-cart {
        padding: 5px;
        font-size: 0.6rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .header-content {
        gap: 4px;
    }
    
    .search-input {
        padding: 8px 10px;
        font-size: 0.65rem;
    }
    
    .cart-item-image {
        width: 65px;
        height: 65px;
    }
    
    .cart-item-name {
        font-size: 0.65rem;
    }
    
    .cart-item-total-price {
        font-size: var(--text-xs);
    }
    
    .modal-content {
        width: 96%;
        max-width: 96vw;
    }
    
    .modal-header {
        padding: 14px 16px;
    }
    
    .modal-body {
        padding: 14px;
    }
    
    .modal-footer {
        padding: 12px 14px;
    }
    
    .bank-card {
        max-width: 240px;
        height: 135px;
        padding: 12px;
    }
    
    .bank-card-number {
        font-size: var(--text-base);
        letter-spacing: 1px;
    }
}

/* ============================================
   Fix iOS Safari Issues
   ============================================ */
@supports (-webkit-touch-callout: none) {
    /* Fix input zoom on iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Fix sticky hover states on iOS */
    @media (hover: none) {
        .btn:hover,
        .product-card:hover,
        .category-card:hover,
        .nav-link:hover {
            transform: none;
        }
    }
    
    /* Fix momentum scrolling */
    .mobile-menu,
    .chat-messages-container,
    .cart-preview-items,
    .order-items-mini,
    .stories-container,
    .brands-slider,
    .custom-slider,
    .tabs-header,
    .search-filters,
    .admin-sidebar {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix sticky positioning */
    .main-header,
    .main-nav,
    .cart-summary,
    .checkout-sidebar,
    .order-detail-sidebar,
    .profile-sidebar,
    .search-filters {
        position: relative;
        top: auto;
    }
}

/* ============================================
   Fix Android Chrome Issues
   ============================================ */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    /* Fix tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix button active states */
    .btn:active,
    .nav-link:active,
    .tab-btn:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
}

/* ============================================
   Fix for devices with notch
   ============================================ */
@supports (padding: env(safe-area-inset-top)) {
    .main-header {
        padding-top: env(safe-area-inset-top);
    }
    
    .mobile-menu {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .chat-input-container {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
    
    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .chat-float-btn {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

/* ============================================
   Fix landscape mode on mobile
   ============================================ */
@media screen and (max-width: 900px) and (orientation: landscape) {
    .hero-slider .slider-container {
        height: 250px;
    }
    
    .modal-content {
        max-height: 80vh;
    }
    
    .chat-page-container {
        height: 85vh;
    }
    
    .auth-page {
        padding: 10px 0;
    }
    
    .auth-wrapper {
        max-width: 600px;
    }
}

/* ============================================
   Mobile Menu - Perfect & Beautiful
   ============================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none !important;
    align-items: center;
    gap: 8px;
    height: 48px;
    width: 100%;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    padding: 0 16px;
    background: var(--bg-primary);
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle i {
    font-size: var(--text-xl);
    color: var(--primary);
}

@media screen and (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-list {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 340px;
    height: 100%;
    height: 100dvh;
    background: var(--bg-primary);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10000;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
    -webkit-overflow-scrolling: touch;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-header span {
    font-size: var(--text-lg);
    font-weight: var(--font-black);
    color: var(--primary);
}

.close-mobile-menu {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-mobile-menu:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}

/* Mobile Menu User Section */
.mobile-menu-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .mobile-menu-user {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.08));
}

.mobile-menu-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.mobile-menu-user-info strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
}

.mobile-menu-user-info span {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Mobile Menu List */
.mobile-menu-list {
    padding: 8px 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

.mobile-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-menu-link:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.mobile-menu-link i.fa-chevron-left {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.submenu-open > .mobile-menu-link i.fa-chevron-left {
    transform: rotate(-90deg);
}

/* Mobile Submenu */
.mobile-submenu {
    /*display: none;*/
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.submenu-open > .mobile-submenu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.mobile-submenu li {
    border-bottom: 1px solid var(--border-light);
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px 13px 36px;
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-submenu li a:hover {
    color: var(--primary);
    background: var(--bg-hover);
    padding-right: 24px;
}

.mobile-submenu li a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    flex-shrink: 0;
}

/* Mobile Menu Special Items */
.mobile-menu-item.special-item .mobile-menu-link {
    color: var(--secondary);
    font-weight: var(--font-bold);
}

.mobile-menu-item.special-item .mobile-menu-link i {
    color: var(--secondary);
}

/* Mobile Menu Divider */
.mobile-menu-divider {
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* Mobile Menu Icons */
.mobile-menu-link i:first-child {
    width: 24px;
    text-align: center;
    font-size: var(--text-base);
    color: var(--primary);
    margin-left: 10px;
}

.mobile-menu-link .menu-icon-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Menu Badge */
.mobile-menu-badge {
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    margin-right: auto;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
}

.mobile-menu-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Fix for RTL */
.mobile-menu-link {
    text-align: right;
}

/* Animation for submenu */
@keyframes submenuSlideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.mobile-submenu {
    overflow: hidden;
}

.submenu-open > .mobile-submenu {
    animation: submenuSlideDown 0.3s ease forwards;
}



/* ============================================
   Splash Screen - Ultra Professional
   ============================================ */
   .splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #df324e;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Logo Wrapper */
.splash-logo-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 36px;
}

/* Animated Ring */
.splash-logo-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(255,255,255,0.8);
    border-right-color: rgba(255,255,255,0.4);
    animation: ringSpin 1.5s linear infinite;
}

.splash-logo-ring::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: rgba(255,255,255,0.5);
    border-left-color: rgba(255,255,255,0.3);
    animation: ringSpin 2s linear infinite reverse;
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

/* Logo Image */
.splash-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.1);
    padding: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Logo Text Fallback */
.splash-logo-text {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.2;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.splash-logo-text span:last-child {
    color: #ffd166;
}

/* Loader */
.splash-loader-container {
    max-width: 220px;
    margin: 0 auto;
}

.splash-loader-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.splash-loader-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    animation: loaderFill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 75%; }
    90% { width: 95%; }
    100% { width: 100%; }
}

.splash-loader-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    animation: fadeText 1.5s ease infinite;
}

@keyframes fadeText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Particles */
.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.splash-particles span {
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: particleFloat 4s infinite;
}

.splash-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; width: 6px; height: 6px; }
.splash-particles span:nth-child(2) { left: 25%; top: 60%; animation-delay: 0.5s; width: 10px; height: 10px; }
.splash-particles span:nth-child(3) { left: 40%; top: 30%; animation-delay: 1s; width: 4px; height: 4px; }
.splash-particles span:nth-child(4) { left: 55%; top: 70%; animation-delay: 1.5s; width: 12px; height: 12px; }
.splash-particles span:nth-child(5) { left: 70%; top: 15%; animation-delay: 2s; width: 5px; height: 5px; }
.splash-particles span:nth-child(6) { left: 80%; top: 50%; animation-delay: 2.5s; width: 7px; height: 7px; }
.splash-particles span:nth-child(7) { left: 15%; top: 80%; animation-delay: 3s; width: 9px; height: 9px; }
.splash-particles span:nth-child(8) { left: 60%; top: 40%; animation-delay: 0.8s; width: 6px; height: 6px; }
.splash-particles span:nth-child(9) { left: 35%; top: 85%; animation-delay: 1.8s; width: 11px; height: 11px; }
.splash-particles span:nth-child(10) { left: 90%; top: 25%; animation-delay: 2.2s; width: 5px; height: 5px; }

@keyframes particleFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-40px) scale(1.5); opacity: 0.8; }
    100% { transform: translateY(0) scale(1); opacity: 0.4; }
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 576px) {
    .splash-logo-wrapper {
        width: 90px;
        height: 90px;
    }
    .splash-logo,
    .splash-logo-text {
        width: 90px;
        height: 90px;
    }
    .splash-loader-container {
        max-width: 180px;
    }
}