@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════
   PARSEXPRESS — Premium Design System 2026
   دستگاه طراحی حرفه‌ای پارس اکسپرس
   Система дизайна Парс Экспресс
═══════════════════════════════════════════════ */

:root {
  /* Premium Palette */
  --primary:        #B22222; /* Crimson Red */
  --primary-dark:   #8B0000;
  --primary-light:  #DC143C;
  --primary-glow:   rgba(178, 34, 34, 0.15);
  --gold:           #D4AF37; /* Metallic Gold */
  --gold-light:     #FBF5B7;
  --gold-dark:      #996515;
  --gold-glow:      rgba(212, 175, 55, 0.25);
  --gold-gradient:  linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);

  /* Backgrounds & Glass */
  --bg:             #080C10;
  --bg-card:        #0F161E;
  --bg-card2:       #151D27;
  --bg-card3:       rgba(255, 255, 255, 0.05);
  --bg-input:       #151D27;
  --bg-glass:       rgba(15, 22, 30, 0.85);
  --glass-surface:  rgba(255, 255, 255, 0.03);
  --glass-border:   rgba(255, 255, 255, 0.08);

  /* Borders & Shadows */
  --border:         rgba(255, 255, 255, 0.08);
  --border-light:   rgba(255, 255, 255, 0.04);
  --border-focus:   var(--gold);
  --shadow-sm:      0 4px 12px rgba(0,0,0,0.2);
  --shadow:         0 10px 30px rgba(0,0,0,0.3);
  --shadow-lg:      0 20px 50px rgba(0,0,0,0.5);

  /* Text Colors */
  --text:           #F0F4F8;
  --text-soft:      #A0AEC0;
  --text-muted:     #718096;
  --text-dim:       #4E5763;

  /* Typography */
  --font-display:   'Outfit', 'Playfair Display', serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --font-fa:        'Vazirmatn', sans-serif;

  /* Spacing & Sizing */
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --space-xs:       clamp(0.5rem, 1.5vw, 0.75rem);
  --space-sm:       clamp(0.75rem, 2vw, 1rem);
  --space-md:       clamp(1rem, 3vw, 1.5rem);
  --space-lg:       clamp(1.5rem, 4vw, 2.5rem);
  --space-xl:       clamp(2.5rem, 8vw, 5rem);
  --space-fluid:    clamp(1rem, 2vw, 2.5rem);
  --safe-bottom:    env(safe-area-inset-bottom, 0px);

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

  /* Semantic Colors */
  --success:        #10B981;
  --warning:        #F59E0B;
  --error:          #EF4444;
  --info:           #3B82F6;
}

/* Light Mode / حالت روشن */
body.light-mode {
  --bg:             #F4F1EC;
  --bg-card:        #FFFFFF;
  --bg-card2:       #F8F5F0;
  --bg-card3:       #EEE9E2;
  --bg-input:       #FFFFFF;
  --bg-glass:       rgba(255,255,255,0.9);
  --border:         rgba(0,0,0,0.08);
  --border-light:   rgba(0,0,0,0.05);
  --text:           #1A1410;
  --text-muted:     #6B7280;
  --text-soft:      #4B5563;
  --text-dim:       #9CA3AF;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow:      0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.15);
}

/* Hide mobile-specific utilities by default */
.mobile-only { display: none !important; }
@media (max-width: 768px) {
  .mobile-only { display: flex !important; }
  .hide-mobile { display: none !important; }
}

/* ═══════════════════════════════════════════════
   BASE RESET / ریست پایه
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s, color 0.4s;
}
body.lang-fa {
  font-family: var(--font-fa);
  direction: rtl;
}
body.lang-ru {
  font-family: var(--font-body);
  direction: ltr;
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; min-height: 44px; }
ul, ol { list-style: none; }

/* SEO visually hidden */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}

/* Fine decorative rule */
.hr-ornament {
  display: flex; align-items: center; gap: 16px;
  margin: 32px 0; color: var(--text-dim);
}
.hr-ornament::before, .hr-ornament::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY / تایپوگرافی
═══════════════════════════════════════════════ */
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.8rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(0.9rem, 2vw, 1.1rem); }

/* Gradient Text */
.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Display Font Use */
.font-display { font-family: var(--font-display); }

/* ═══════════════════════════════════════════════
   LAYOUT / چیدمان
═══════════════════════════════════════════════ */
.container { max-width: 1340px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; }
.section-sm { padding: var(--space-lg) 0; }

/* ═══════════════════════════════════════════════
   HEADER / هدر
═══════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}
.header-promo-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--gold), transparent);
  opacity: 0.4;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 24px;
  max-width: 1340px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .header-inner { padding: 10px 16px; gap: 10px; }
  .search-bar { display: none; } /* Hide search on mobile header to save space */
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.logo img {
  height: 48px; width: auto;
  border-radius: 12px;
  filter: drop-shadow(0 2px 8px rgba(178,34,34,0.3));
}
.logo-texts { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text-ru {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); letter-spacing: 0.01em;
}
.logo-text-fa {
  font-family: var(--font-fa);
  font-size: 0.85rem; color: var(--gold);
  display: none;
}
body.lang-fa .logo-text-fa { display: block; }
body.lang-fa .logo-text-ru { display: none; }
.back-btn { background: transparent; border: none; padding: 8px; cursor: pointer; color: var(--text); display: flex; align-items: center; justify-content: center; margin-right: -4px; transition: var(--transition); }
.back-btn:hover { color: var(--primary); transform: translateX(-2px); }
body.lang-fa .back-btn svg { transform: scaleX(-1); }
body.lang-fa .back-btn:hover { transform: translateX(2px); }
@media (max-width: 500px) { .hide-mobile-sm { display: none !important; } }

/* Search Bar */
.search-bar {
  display: flex; align-items: center;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 12px 24px; gap: 12px;
  transition: var(--transition-slow);
  max-width: 540px; width: 100%;
  margin: 0 auto;
}
.search-bar:focus-within {
  border-color: rgba(212,175,55,0.5);
  box-shadow: 0 0 0 4px var(--gold-glow);
  background: var(--bg-card);
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 14px;
}
.search-bar input::placeholder { color: var(--text-muted); font-weight: 300; }
.search-bar button {
  color: var(--text-muted); font-size: 18px;
  transition: var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}
.search-bar button:hover { color: var(--gold); transform: scale(1.15); }

/* Nav Actions Enhancements */
.nav-actions { display: flex; align-items: center; gap: 16px; }

.nav-btn {
  position: relative;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text-soft);
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
}
.nav-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}
.nav-btn .badge {
  position: absolute; top: -6px; right: -6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Language Toggle */
.lang-toggle {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex; overflow: hidden;
  padding: 4px; gap: 4px;
}
.lang-toggle button {
  padding: 8px 16px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); transition: var(--transition);
  border-radius: 50px; letter-spacing: 0.5px;
}
.lang-toggle button.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111; box-shadow: 0 2px 8px var(--gold-glow);
}

/* Category Nav */
.nav-menu {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-menu ul {
  display: flex; max-width: 1340px; margin: 0 auto;
  padding: 0 24px; overflow-x: auto; scrollbar-width: none;
}
.nav-menu ul::-webkit-scrollbar { display: none; }
.nav-menu ul li a {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}
.nav-menu ul li a:hover,
.nav-menu ul li a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  background: rgba(212, 175, 55, 0.03);
}

/* Stats Strip Desktop Polish */
.stats-strip {
  background: var(--bg-card);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ═══════════════════════════════════════════════
   HERO SECTION / بخش هرو
═══════════════════════════════════════════════ */
.hero { position: relative; overflow: hidden; min-height: clamp(320px, 75vh, 680px); }
.hero-slider { display: flex; height: 100%; transition: transform 0.9s cubic-bezier(0.8, 0, 0.2, 1); }
.hero-slide {
  min-width: 100%; position: relative; overflow: hidden;
  display: flex; align-items: center; min-height: clamp(320px, 75vh, 680px);
  background: #000;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.35;
  transition: transform 12s ease-out;
}
.hero-slide:hover .hero-bg { transform: scale(1.08); }
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    var(--bg) 0%,
    rgba(4,6,8,0.95) 35%,
    rgba(4,6,8,0.5) 65%,
    transparent 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  padding: 80px 80px;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold-glow);
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold-light);
  padding: 8px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold); }

.hero-content h1 {
  font-family: var(--font-display);
  color: var(--text);
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
  font-weight: 800;
}
.hero-content p {
  color: var(--text-soft); font-size: 1.15rem;
  margin-bottom: 40px; line-height: 1.8;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Slider Controls */
.hero-controls {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25); border: none;
  transition: var(--transition);
}
.hero-dot.active { background: var(--gold); width: 28px; border-radius: 4px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text); width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; z-index: 5; transition: var(--transition);
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

/* ═══════════════════════════════════════════════
   BUTTONS / دکمه‌ها
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 15px;
  transition: var(--transition-fast); cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.03em;
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-height: 44px;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: var(--transition-fast);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
  border: 1px solid rgba(255,100,100,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(178,34,34,0.6);
  border-color: rgba(255,100,100,0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #111;
  box-shadow: 0 8px 24px var(--gold-glow);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(212,175,55,0.5);
  color: #000;
}

.btn-outline {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-outline:hover {
  border-color: var(--primary); color: #fff;
  background: var(--primary-dark);
  box-shadow: 0 8px 24px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: rgba(212,175,55,0.05);
  border-color: rgba(212,175,55,0.3);
  color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-ghost {
  background: var(--bg-card2);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-ghost:hover { background: var(--bg-card3); color: var(--text); transform: translateY(-2px); }

.btn-sm  { padding: 10px 22px; font-size: 13px; }
.btn-lg  { padding: 18px 44px; font-size: 16px; }
.btn-xl  { padding: 20px 52px; font-size: 17px; }
.btn-full{ width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ═══════════════════════════════════════════════
   SECTION HEADER / هدر بخش
═══════════════════════════════════════════════ */
.section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}
.section-header-left { flex: 1; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  position: relative; display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute; bottom: -10px; left: 0;
  width: 48px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
body.lang-fa .section-title::after { left: auto; right: 0; }

/* ═══════════════════════════════════════════════
   STATS STRIP / نوار آمار
   An elegant dark-crimson bar with white and gold accents
═══════════════════════════════════════════════ */
.stats-strip {
  background: linear-gradient(135deg, #2b0505 0%, #0d0404 100%);
  border-top: 1px solid rgba(138, 3, 3, 0.4);
  border-bottom: 1px solid rgba(138, 3, 3, 0.4);
  padding: 42px 0;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(138,3,3,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 0 16px;
}
.stat-item:last-child { border-right: none; }
body.lang-fa .stat-item { border-right: none; border-left: 1px solid rgba(255,255,255,0.06); }
body.lang-fa .stat-item:last-child { border-left: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 700; 
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1; margin-bottom: 8px;
}
.stat-label { 
  font-size: 13px; color: var(--text-soft); 
  text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 600;
}
body.lang-fa .stat-label { letter-spacing: 0; }

/* ═══════════════════════════════════════════════
   CATEGORY CARDS / کارت‌های دسته‌بندی
═══════════════════════════════════════════════ */
.categories-grid {
  display: grid; gap: var(--space-sm);
  grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 20vw, 160px), 1fr));
}
.category-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 16px;
  text-align: center; cursor: pointer;
  transition: var(--transition-slow);
  position: relative; overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-glow), transparent);
  opacity: 0; transition: var(--transition);
}
.category-card:hover {
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 30px var(--gold-glow);
}
.category-card:hover::before { opacity: 1; }
.category-card .icon {
  font-size: 3rem; margin-bottom: 16px; display: block;
  position: relative; z-index: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.category-image {
  height: 120px; width: 100%;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  position: relative; z-index: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.category-card:hover .icon,
.category-card:hover .category-image {
  transform: scale(1.05) rotate(2deg);
}
.category-card .name {
  font-size: 13px; font-weight: 600; color: var(--text);
  position: relative; z-index: 1;
}
.category-card .count {
  font-size: 11px; color: var(--text-muted);
  margin-top: 6px; position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════
   CATEGORY STRIP (HORIZONTAL MOBILE) / نوار افقی دسته‌ها
═══════════════════════════════════════════════ */
.category-strip {
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 20px;
  gap: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 900;
  margin: 0 -15px;
}
.category-strip::-webkit-scrollbar { display: none; }

.strip-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 50px;
  white-space: nowrap;
  font-size: 13px; font-weight: 600;
  color: var(--text-soft);
  transition: var(--transition-fast);
  cursor: pointer;
}
.strip-item:hover, .strip-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px var(--primary-glow);
  transform: translateY(-1px);
}
.strip-item .icon { font-size: 16px; transition: var(--transition-fast); }
.strip-item:hover .icon { transform: scale(1.2) rotate(5deg); }

@media (max-width: 900px) {
  .category-strip { 
    display: flex;
    top: 58px; /* Below standard mobile header */
    background: rgba(8, 12, 16, 0.9);
    z-index: 900;
    margin-bottom: 16px;
  }
}

/* ═══════════════════════════════════════════════
   UI POLISH / بهینه‌سازی نهایی ظاهر
═══════════════════════════════════════════════ */
/* .product-card styles moved to PRODUCT CARDS section */


/* ═══════════════════════════════════════════════
   PRODUCT CARDS / کارت‌های محصول
═══════════════════════════════════════════════ */
.products-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 900px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1600px) {
  .products-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Products Layout with Sidebar */
.products-layout { 
  display: flex; 
  gap: 32px; 
  align-items: start;
}
.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.main-products { 
  flex: 1; 
  min-width: 0; 
}

/* Sort Bar & Results Header */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  gap: 16px;
}
.results-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.sort-select {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}
.sort-select:focus { border-color: var(--gold); }

@media (max-width: 768px) {
  .sort-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
  }
  .results-info {
    text-align: center;
    font-size: 13px;
    opacity: 0.8;
  }
  .sort-select {
    width: 100%;
    height: 44px;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .sidebar { display: none; }
}

.product-card {
  background: var(--glass-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px var(--gold-glow);
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #000;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.1); }

/* Badges */
.product-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
body.lang-fa .product-badges { left: auto; right: 10px; }
.badge-new, .badge-sale, .badge-out {
  font-size: 9px; font-weight: 800;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
}
.badge-new  { background: var(--success); color: #fff; }
.badge-sale { background: var(--primary); color: #fff; }

/* Wishlist */
.product-wish {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px;
  transition: var(--transition-fast);
}
body.lang-fa .product-wish { right: auto; left: 10px; }
.product-wish:hover { background: var(--primary); transform: scale(1.1); }

/* Product Info */
.product-info { 
  padding: 12px; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
}
@media (min-width: 900px) {
  .product-info { padding: 16px; }
}

.product-cat {
  font-size: 9px; color: var(--gold); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.product-name {
  font-size: 14px; font-weight: 600; color: var(--text);
  line-height: 1.4; height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 2px;
}
@media (min-width: 768px) {
  .product-name { font-size: 15px; }
}

.product-price { 
  display: flex; 
  align-items: baseline; 
  gap: 8px; 
  margin-top: auto;
  padding-top: 8px;
}
.price-current { font-size: 1.15rem; font-weight: 800; color: #fff; }
.price-old { font-size: 11px; color: var(--text-muted); text-decoration: line-through; }

.btn-cart {
  width: 100%; 
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; min-height: 44px;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 12px;
  transition: var(--transition-fast);
}
@media (min-width: 768px) {
  .btn-cart { min-height: 48px; font-size: 14px; }
}
.btn-cart:hover { filter: brightness(1.1); box-shadow: 0 5px 15px var(--primary-glow); }

/* ═══════════════════════════════════════════════
   FEATURE CARDS / کارت‌های ویژگی
═══════════════════════════════════════════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 42px 32px;
  transition: var(--transition-slow);
  position: relative; overflow: hidden;
  text-align: center;
}
.feature-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0; transition: var(--transition-slow);
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(212,175,55,0.3); box-shadow: var(--shadow-lg); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
  font-size: 2.8rem; margin-bottom: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px;
  background: var(--bg-card2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  color: var(--gold);
  transition: var(--transition-fast);
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(5deg); background: var(--gold-glow); border-color: var(--gold); }
.feature-card h3 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 12px; font-weight: 700; }
.feature-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   PROMO BANNERS / بنرهای تبلیغاتی
═══════════════════════════════════════════════ */
.promo-section { padding: 60px 0; }
.promo-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.promo-card {
  border-radius: var(--radius-xl); overflow: hidden;
  position: relative; padding: 48px 44px;
  min-height: 240px; display: flex; align-items: center;
  border: 1px solid var(--border);
  transition: var(--transition-slow);
}
.promo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.promo-card.red {
  background: radial-gradient(circle at top right, #380a0a 0%, #0d0404 100%);
  border-color: rgba(178,34,34,0.3);
}
.promo-card.red:hover { border-color: rgba(178,34,34,0.6); box-shadow: 0 12px 40px var(--primary-glow); }
.promo-card.gold {
  background: radial-gradient(circle at bottom left, #291e0a 0%, #080602 100%);
  border-color: rgba(201,149,42,0.3);
}
.promo-card.gold:hover { border-color: rgba(212,175,55,0.6); box-shadow: 0 12px 40px var(--gold-glow); }
.promo-bg-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
}
.promo-card-content { position: relative; z-index: 2; }
.promo-card h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 12px; font-weight: 700; }
.promo-card p { color: var(--text-soft); font-size: 14px; margin-bottom: 24px; line-height: 1.6; }
@media (max-width: 900px) {
  .promo-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .promo-card { min-height: 200px; padding: 32px 24px; }
}

/* ═══════════════════════════════════════════════
   FOOTER / فوتر
═══════════════════════════════════════════════ */
.footer {
  background: #020304;
  border-top: 1px solid rgba(255,255,255,0.03);
  padding: 80px 0 40px;
  margin-top: 120px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.4), rgba(178,34,34,0.4), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.5fr 1.2fr 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr; gap: 40px; }
}
.footer-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.footer-logo img { height: 56px; width: auto; border-radius: 14px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; color: var(--text);
}
.footer-desc { color: var(--text-muted); font-size: 14px; line-height: 1.9; margin-bottom: 32px; }
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-muted); transition: var(--transition-fast);
}
.social-btn:hover { background: var(--gold); border-color: var(--gold); color: #111; transform: translateY(-3px); box-shadow: 0 4px 16px var(--gold-glow); }

.footer-col h4 {
  font-size: 14px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
}
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a {
  color: var(--text-muted); font-size: 14px;
  transition: var(--transition-fast);
  display: flex; align-items: center; gap: 8px;
}
.footer-col ul li a:hover { color: var(--gold-light); transform: translateX(6px); }
body.lang-fa .footer-col ul li a:hover { transform: translateX(-6px); }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 16px; color: var(--text-muted); font-size: 14px; line-height: 1.6;
}
.footer-contact-item .icon { font-size: 18px; margin-top: 2px; flex-shrink: 0; color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: var(--text-muted); transition: var(--transition-fast); }
.footer-bottom-links a:hover { color: var(--primary); }

/* ═══════════════════════════════════════════════
   CART PANEL / پنل سبد خرید
═══════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.4s; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-panel {
  position: fixed; top: 0; right: -480px; width: 480px; max-width: 100vw;
  height: 100vh; height: 100dvh; background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 2001; overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 50px rgba(0,0,0,0.8);
}
body.lang-fa .cart-panel {
  right: auto; left: -480px; border-left: none;
  border-right: 1px solid var(--border);
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 10px 0 50px rgba(0,0,0,0.8);
}
.cart-overlay.open .cart-panel { right: 0; }
body.lang-fa .cart-overlay.open .cart-panel { left: 0; }

.cart-header {
  padding: 24px 32px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card2);
}
.cart-header h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.cart-close {
  background: transparent; border: 1px solid var(--border);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition-fast);
  font-size: 18px;
  cursor: pointer;
}
.cart-close:hover { border-color: var(--primary); color: #fff; background: var(--primary); transform: rotate(90deg); }

.cart-body { flex: 1; overflow-y: auto; padding: 24px; }
.cart-item {
  display: flex; gap: 16px; padding: 16px;
  background: var(--bg-card2); border-radius: var(--radius-lg);
  margin-bottom: 16px; border: 1px solid var(--border);
  transition: var(--transition-fast);
}
.cart-item:hover { border-color: rgba(212,175,55,0.4); box-shadow: 0 4px 16px var(--gold-glow); }
.cart-item-img {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--bg-card3); flex-shrink: 0;
  border: 1px solid var(--border);
}
.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-item-price { font-size: 15px; color: var(--text); font-weight: 700; }
.cart-item-price-glow { color: var(--primary-light); text-shadow: 0 0 10px var(--primary-glow); }
.qty-control { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-btn {
  background: var(--bg-card3); border: 1px solid var(--border);
  color: var(--text); width: 32px; height: 32px;
  border-radius: var(--radius-xs); display: flex;
  align-items: center; justify-content: center; font-size: 18px;
  transition: var(--transition-fast); cursor: pointer;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }
.qty-val { font-weight: 700; min-width: 24px; text-align: center; font-size: 15px; }
.cart-item-remove { cursor: pointer; color: var(--error); font-size: 18px; opacity: 0.7; transition: var(--transition-fast); padding: 8px; }
.cart-item-remove:hover { opacity: 1; transform: scale(1.1); background: rgba(239, 68, 68, 0.1); border-radius: var(--radius-xs); }

.cart-footer { padding: 18px 24px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: var(--bg-card2); }
/* Fix: ensure checkout button is always visible on mobile (iOS WebKit backdrop-filter issue) */
.cart-footer .btn-primary {
  background: #B22222 !important;
  background: linear-gradient(135deg, #C0392B 0%, #8B0000 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(178,34,34,0.5) !important;
  border-color: rgba(255,100,100,0.3) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
}
.cart-total {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 18px;
  padding: 16px; background: var(--bg-card3);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.cart-total .label { color: var(--text-muted); font-size: 14px; }
.cart-total .amount { font-size: 1.25rem; font-weight: 800; color: var(--primary-light); }

/* ═══════════════════════════════════════════════
   AUTH MODAL / مودال ورود
═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  z-index: 3000; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
  padding: 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px; width: 100%; max-width: 480px;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition-fast);
  font-size: 16px; cursor: pointer; z-index: 10;
}
body.lang-fa .modal-close { right: auto; left: 20px; }
.modal-close:hover { border-color: var(--primary); color: #fff; background: var(--primary); transform: rotate(90deg); }
  .modal.bottom-sheet {
    border-radius: 32px 32px 0 0;
    padding: 32px 24px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    margin-top: auto;
  }
  .modal-overlay.open .modal.bottom-sheet { transform: translateY(0); }
  
  .lang-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
  .lang-option {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; background: var(--bg-card2);
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    transition: var(--transition-fast); width: 100%;
  }
  .lang-option:active { background: var(--bg-card3); transform: scale(0.98); }
  .lang-option .flag { font-size: 1.5rem; }
  .lang-option .name { flex: 1; font-weight: 600; text-align: left; }
  body.lang-fa .lang-option .name { text-align: right; }
  .lang-option .code { font-size: 12px; color: var(--text-muted); font-weight: 700; opacity: 0.6; }

  .modal::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--primary), var(--gold));
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 12px; }
.modal-sub { color: var(--text-soft); font-size: 15px; margin-bottom: 32px; line-height: 1.6; }

/* ═══════════════════════════════════════════════
   FORMS / فرم‌ها
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; }
.form-input {
  width: 100%; background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px;
  color: var(--text); font-size: 15px; font-family: inherit;
  outline: none; transition: var(--transition-fast);
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow); background: var(--bg-card); }
.form-input::placeholder { color: var(--text-dim); }
textarea.form-input { resize: vertical; min-height: 140px; }

/* ═══════════════════════════════════════════════
   ADDRESS AUTOCOMPLETE — Premium Style (Yandex-like)
═══════════════════════════════════════════════ */
.ac-wrapper { position: relative; width: 100%; }

.ac-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1.5px solid rgba(212,175,55,0.25);
  border-radius: 18px;
  z-index: 9000;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transition: max-height 0.35s cubic-bezier(0.16,1,0.3,1),
              opacity 0.25s ease,
              transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.ac-dropdown.ac-open {
  max-height: 480px;
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
  overflow-y: auto;
}

/* Scrollbar */
.ac-dropdown::-webkit-scrollbar { width: 4px; }
.ac-dropdown::-webkit-scrollbar-track { background: transparent; }
.ac-dropdown::-webkit-scrollbar-thumb { background: var(--bg-card3); border-radius: 4px; }

/* Header */
.ac-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  background: linear-gradient(135deg, rgba(212,175,55,0.06) 0%, transparent 100%);
}
.ac-header-icon { font-size: 14px; }

/* Each suggestion row */
.ac-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s ease, padding-left 0.2s ease;
  position: relative;
}
.ac-item:last-of-type { border-bottom: none; }

.ac-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 0 4px 4px 0;
  transition: width 0.2s ease;
}

.ac-item:hover,
.ac-item.ac-active {
  background: rgba(178,34,34,0.08);
  padding-left: 22px;
}
.ac-item:hover::before,
.ac-item.ac-active::before { width: 3px; }

/* Icon column */
.ac-item-icon {
  font-size: 20px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ac-item:hover .ac-item-icon,
.ac-item.ac-active .ac-item-icon {
  background: rgba(178,34,34,0.15);
  border-color: rgba(178,34,34,0.3);
  transform: scale(1.05);
}

/* Body */
.ac-item-body { flex: 1; min-width: 0; }

.ac-item-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}
.ac-item-main mark {
  background: rgba(212,175,55,0.25);
  color: var(--gold-light);
  border-radius: 3px;
  padding: 0 2px;
}

.ac-item-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

/* ZIP badge */
.ac-item-zip {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 7px;
  flex-shrink: 0;
  font-feature-settings: 'tnum';
  letter-spacing: 0.5px;
}

/* Loading state */
.ac-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.ac-loading-dots {
  display: flex;
  gap: 5px;
}
.ac-loading-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: acDot 1.2s ease-in-out infinite;
}
.ac-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.ac-loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes acDot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Footer */
.ac-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 8px 16px;
  font-size: 10px;
  color: var(--text-dim);
  background: rgba(0,0,0,0.15);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.ac-footer strong { color: var(--text-muted); }

/* Old class kept for backward compat */
.suggestions-wrapper { position: relative; width: 100%; }
.suggestions-list { display: none; }

.form-divider {
  display: flex; align-items: center; gap: 16px;
  color: var(--text-muted); font-size: 13px; margin: 24px 0;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ═══════════════════════════════════════════════
   TABS / تب‌ها
═══════════════════════════════════════════════ */
.tabs {
  display: flex; background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 6px;
  margin-bottom: 32px; gap: 6px;
}
.tab-btn {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: var(--transition-fast);
}
.tab-btn.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 12px var(--primary-glow); }

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS / پیام‌های کوتاه
═══════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
body.lang-fa .toast-container { right: auto; left: 28px; }
.toast {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px;
  min-width: 300px; max-width: 380px;
  display: flex; align-items: flex-start; gap: 12px;
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }
.toast.info    { border-left: 4px solid var(--info); }
.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-msg { font-size: 13px; line-height: 1.5; color: var(--text-soft); }
.toast strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
@keyframes toastIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════
   SKELETON / اسکلت بارگذاری
═══════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-card2) 37%,
    var(--bg-card) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.6s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.skeleton-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.skeleton-img { height: 210px; }
.skeleton-text { height: 13px; margin: 10px 18px; }
.skeleton-text.w60 { width: 60%; }
.skeleton-text.w80 { width: 80%; }

/* ═══════════════════════════════════════════════
   STATUS BADGES / نشانه‌های وضعیت
═══════════════════════════════════════════════ */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pending    { background: rgba(243,156,18,0.13); color: var(--warning); }
.status-confirmed  { background: rgba(52,152,219,0.13); color: var(--info); }
.status-processing { background: rgba(155,89,182,0.13); color: #9b59b6; }
.status-shipped    { background: rgba(46,204,113,0.13); color: var(--success); }
.status-delivered  { background: rgba(46,204,113,0.2);  color: var(--success); }
.status-cancelled  { background: rgba(231,76,60,0.13);  color: var(--error); }


/* ═══════════════════════════════════════════════
   SPINNER / لودر
═══════════════════════════════════════════════ */
.spinner {
  width: 36px; height: 36px; margin: 40px auto; display: block;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════
   ANIMATIONS / انیمیشن‌ها
═══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--primary-glow); }
  50%       { box-shadow: 0 0 0 12px transparent; }
}
.animate-fade-up { animation: fadeUp 0.5s ease forwards; }
.animate-float   { animation: float 3s ease-in-out infinite; }

/* ═══════════════════════════════════════════════
   SCROLLBAR / نوار پیمایش
═══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-card3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ═══════════════════════════════════════════════
   MOBILE BOTTOM NAV / ناوبری پایین موبایل
═══════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0 !important;
  left: 0;
  right: 0;
  height: calc(68px + env(safe-area-inset-bottom));
  background: var(--bg-glass);
  border-top: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(28px) saturate(2);
  -webkit-backdrop-filter: blur(28px) saturate(2);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  padding-bottom: env(safe-area-inset-bottom);
  contain: layout size;
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
}
.mobile-bottom-nav ul {
  display: flex; height: 68px; list-style: none; align-items: center;
}
/* Mobile Utilities / ابزارهای موبایل */
.mobile-only { display: none !important; }
@media (max-width: 768px) {
  .mobile-only { display: flex !important; }
  .hide-mobile { display: none !important; }
}

/* Luxury Bottom Nav / نوار ناوبری لوکس */
.mobile-bottom-nav ul {
  display: flex; height: 100%; list-style: none; align-items: center;
}
.mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; height: 100%;
  color: var(--text-muted); font-size: 11px; gap: 4px;
  transition: var(--transition); text-decoration: none;
  position: relative; -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav a .nav-icon { 
  font-size: 22px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.mobile-bottom-nav a.active { color: var(--gold-light); }
.mobile-bottom-nav a.active .nav-icon { 
  transform: translateY(-4px) scale(1.15);
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
.mobile-bottom-nav a span { font-weight: 700; font-family: var(--font-body); letter-spacing: 0.2px; }
body.lang-fa .mobile-bottom-nav a span { font-family: var(--font-fa); letter-spacing: 0; }
.mobile-bottom-nav a .badge-dot {
  position: absolute; top: 10px; right: calc(50% - 15px);
  width: 9px; height: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%; border: 2px solid #080c10;
  display: none; box-shadow: 0 0 10px var(--primary-glow);
}
.mobile-bottom-nav a .badge-dot.show { display: block; animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }

.mobile-search-overlay {
  display: none; /* Hide on Desktop */
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-glass); backdrop-filter: blur(20px);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}
@media (max-width: 768px) {
  .mobile-search-overlay.open { display: block; }
}
.search-overlay-container { padding: 80px 20px 20px; }
.search-overlay-header {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); padding: 6px 16px;
  border-radius: 16px; border: 1px solid var(--gold-glow);
  box-shadow: 0 0 20px var(--gold-glow);
}
.search-overlay-header input {
  flex: 1; border: none; background: transparent; color: var(--text);
  font-size: 1.1rem; padding: 12px 0; outline: none;
}
.search-overlay-close {
  background: none; border: none; font-size: 1.4rem; color: var(--text-muted); cursor: pointer;
}
.search-overlay-hints { margin-top: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }


/* ═══════════════════════════════════════════════
   RESPONSIVE — 1100px
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .promo-grid  { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 768px (Tablet / تبلت)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Header Optimization */
  .header-inner { grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 18px; }
  .logo img { height: 42px !important; transition: transform 0.3s; }
  .logo:active img { transform: scale(0.92); }
  .search-bar { display: none; }
  .nav-menu { display: none; }
  .logo-texts .logo-text-fa { font-size: 14px; }
  .logo-text-ru { font-size: 11px; }
  .nav-actions .nav-btn { padding: 8px 12px; border-radius: 12px; }
  .nav-actions .nav-btn span { display: none; }

  /* Main content spacing for bottom nav */
  /* Unified Drawer System handles mobile sidebar now */

  /* Main content spacing for bottom nav */
  main { padding-bottom: 80px; }
  footer { margin-bottom: 72px; }

  /* Cart panel full width on mobile */
  .cart-panel { width: 100vw; right: -100vw; }
  body.lang-fa .cart-panel { left: -100vw; }

  /* Toast at bottom, above nav */
  .toast-container { bottom: 76px; right: 16px; }
  body.lang-fa .toast-container { right: auto; left: 16px; }

  /* Product card luxury layout */
  .product-card { 
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-card2) 0%, var(--bg-card) 100%);
  }
  .product-image { height: 165px; }
  .product-info { padding: 14px; }
  .product-name { font-size: 13px; margin-bottom: 8px; }
  .price-current { font-size: 1.1rem; }
  .btn-cart { padding: 12px 10px; font-size: 12px; border-radius: 10px; }

  /* Section spacing */
  .section { padding: 32px 0; }
  .container { padding: 0 16px; }
  .page-header { margin-bottom: 24px !important; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 480px (Mobile / موبایل کوچک)
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  html { font-size: 15px; }

  /* Header */
  .header-inner { padding: 8px 14px; gap: 8px; }
  .logo img { height: 34px !important; }

  /* Hero */
  .hero { min-height: 60vw; }
  .hero-slide { min-height: 60vw; }
  .hero-content { padding: 20px 16px; }
  .hero-content h1 { font-size: clamp(1.2rem, 6vw, 1.8rem); }
  .hero-content p { display: none; }
  .hero-arrow { width: 36px; height: 36px; font-size: 16px; }

  /* Grids - Even tighter on mobile */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 8px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Cards */
  .product-name { -webkit-line-clamp: 2; height: 3.2em; }
  .category-card { padding: 20px 10px; }
  .category-card .icon { font-size: 2.2rem; margin-bottom: 10px; }

  /* Section */
  .section { padding: var(--space-md) 0; }
  .section-title { font-size: clamp(1.3rem, 5vw, 2rem); }
  
  /* Buttons */
  .btn-lg { padding: 12px 24px; font-size: 14px; }
  
  /* Toast */
  .toast { min-width: 250px; max-width: calc(100vw - 32px); }
  .pwa-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ═══════════════════════════════════════════════
   MOBILE-SPECIFIC TOUCH IMPROVEMENTS
   بهبودهای لمسی موبایل
═══════════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  .btn, button { min-height: 44px; }
  .filter-option { padding: 10px 0; }
  .profile-nav li a { padding: 14px; }
  .lang-toggle button { padding: 8px 14px; min-height: 38px; }

  /* Remove hover-only effects that don't make sense on touch */
  .product-card:hover { transform: none; }
  .product-card:active { transform: scale(0.97); }
  .btn:hover { opacity: 1; }
  .btn:active { opacity: 0.85; transform: scale(0.97); }

  /* Prevent double-tap zoom on tap areas */
  a, button { touch-action: manipulation; }
}

/* ═══════════════════════════════════════════════
   PWA STANDALONE MODE
   حالت نصب شده به عنوان اپ
═══════════════════════════════════════════════ */
@media (display-mode: standalone) {
  /* Add safe area spacing for notches/home indicators */
  .header { padding-top: env(safe-area-inset-top); }
  main { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Mobile Bottom Nav Grids for 5 items */
@media (max-width: 768px) {
  .mobile-bottom-nav ul li { flex: 1; }
  .mobile-bottom-nav a span { font-size: 10px; }
}

/* Mobile refinements moved to main product card section */

.side-menu-overlay {
  display: none; /* Hide on Desktop */
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); z-index: 1999; opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
@media (max-width: 768px) {
  .side-menu-overlay { display: block; }
  .side-menu-overlay.open { opacity: 1; pointer-events: auto; }
}
/* ═══════════════════════════════════════════════
   PREMIUM SIDEBAR DRAWER / منوی کناری پریمیوم
   ═══════════════════════════════════════════════ */
.side-menu {
  display: none; /* Hide on Desktop */
  position: fixed; top: 0; left: -320px; width: 320px; height: 100vh;
  background: var(--bg-glass); backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border-right: 1px solid var(--border);
  z-index: 2000; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-direction: column; overflow-y: auto; padding-bottom: 80px;
}
@media (max-width: 768px) {
  .side-menu { display: flex; }
  body.lang-fa .side-menu { left: auto; right: -320px; border-right: none; border-left: 1px solid var(--border); }
  .side-menu.open { transform: translateX(320px); }
  body.lang-fa .side-menu.open { transform: translateX(-320px); }
}

.side-menu-header {
  padding: 40px 30px 30px; border-bottom: 1px solid var(--border);
}
.side-menu-close {
  position: absolute; top: 20px; right: 20px; font-size: 24px; color: var(--text-muted);
}
body.lang-fa .side-menu-close { right: auto; left: 20px; }

.side-menu-content { padding: 30px; }
.side-nav-list { display: flex; flex-direction: column; gap: 8px; }
.side-nav-item {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px;
  border-radius: var(--radius-sm); font-size: 15px; font-weight: 500;
  color: var(--text-soft); transition: var(--transition-fast);
}
.side-nav-item:hover { background: var(--border); color: var(--gold); }
.side-nav-item.active { background: var(--gold-glow); color: var(--gold); }
.side-nav-icon { font-size: 20px; }

.side-menu-divider { height: 1px; background: var(--border); margin: 20px 0; }
.side-menu-footer { margin-top: auto; padding: 30px; border-top: 1px solid var(--border); }

/* Mobile bottom nav layout */
.mobile-bottom-nav ul { display: flex; height: 100%; list-style: none; align-items: center; justify-content: space-around; }

/* Product card refinements consolidated above */

/* ═══════════════════════════════════════════════
   PREMIUM ANIMATIONS & MICRO-INTERACTIONS
   ═══════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll { opacity: 0; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease; }
.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ═══════════════════════════════════════════════
   UNIFIED MOBILE DRAWER SYSTEM (NATIVE FEEL)
   ═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   MOBILE COMPONENTS — Unified System
   ═══════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%;
  height: 68px; background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(2.5); -webkit-backdrop-filter: blur(28px) saturate(2.5);
  border-top: 1px solid var(--border); z-index: 2000;
  padding-bottom: var(--safe-bottom); box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}
@media (max-width: 768px) { .mobile-bottom-nav { display: block; } }

.mobile-bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; height: 100%; color: var(--text-muted); font-size: 10px; gap: 4px;
  transition: var(--transition-fast); position: relative; -webkit-tap-highlight-color: transparent;
}
.mobile-bottom-nav a .nav-icon { font-size: 20px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.mobile-bottom-nav a.active { color: var(--gold-light); }
.mobile-bottom-nav a.active .nav-icon { transform: translateY(-4px) scale(1.15); filter: drop-shadow(0 0 8px var(--gold-glow)); }
.mobile-bottom-nav a span { font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; }

/* Unified Mobile Drawer System (Native Feel) */
.mobile-drawer {
  display: none; /* Hide on Desktop */
  position: fixed; z-index: 3000;
  background: var(--bg-glass);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

@media (max-width: 900px) {
  .mobile-drawer { display: block; }
}

/* Bottom Drawers (Filters, Language, etc.) */
#filterDrawer, #langDrawer, #authDrawer, #cartDrawer {
  bottom: 0; left: 0; width: 100%;
  border-radius: 32px 32px 0 0;
  padding: 24px 24px calc(24px + var(--safe-bottom));
  transform: translateY(105%);
  max-height: 85vh;
}
#filterDrawer.active, #langDrawer.active, #authDrawer.active, #cartDrawer.active {
  transform: translateY(0);
}

/* Side Drawers (Main Menu) */
#sideMenu {
  top: 0; left: -320px; width: 320px; height: 100vh;
  border-radius: 0 28px 28px 0;
  padding: 40px 24px;
  transform: none;
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.lang-fa #sideMenu {
  left: auto; right: -320px;
  border-radius: 28px 0 0 28px;
  transition: right 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#sideMenu.active { left: 0; }
body.lang-fa #sideMenu.active { left: auto; right: 0; }

.drawer-handle {
  width: 40px; height: 5px; background: var(--border); border-radius: 10px;
  margin: 0 auto 24px; opacity: 0.6;
}

/* Specific Drawer Styles */
.mobile-filter-group {
  margin-bottom: 24px;
}
.mobile-filter-group h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold); margin-bottom: 16px; font-weight: 800;
  border-bottom: 1px solid var(--gold-glow); padding-bottom: 8px;
}
.mobile-cat-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.mobile-cat-list .filter-option {
  background: var(--bg-card3); border: 1px solid var(--border);
  padding: 12px 14px; border-radius: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
}
.mobile-cat-list .filter-option input:checked + label { color: var(--gold-light); }

.price-inputs {
  display: flex; gap: 12px;
}
.price-inputs input {
  flex: 1; height: 48px; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 16px; color: #fff; outline: none;
}
.price-inputs input:focus { border-color: var(--gold); }
.side-nav-item:active { transform: scale(0.98); background: var(--border); }

/* Unified Drawer Overlay */
.drawer-overlay {
  display: none; /* Hide on Desktop */
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); z-index: 2500;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
@media (max-width: 900px) {
  .drawer-overlay { display: block; }
  .drawer-overlay.active { opacity: 1; pointer-events: auto; }
}

/* Auth Page Premium Glassmorphism */
.auth-page {
  background: radial-gradient(circle at top right, var(--primary-glow), transparent),
              radial-gradient(circle at bottom left, var(--gold-glow), transparent),
              var(--bg);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-card {
  background: var(--bg-glass) !important; backdrop-filter: blur(40px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(40px) saturate(1.8) !important;
  border: 1px solid var(--border) !important; border-radius: 32px !important;
  padding: 48px 40px !important; width: 100% !important; max-width: 440px !important;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6) !important;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-logo { margin-bottom: 32px; text-align: center; }
.auth-logo .logo-icon { 
  width: 64px; height: 64px; background: var(--primary-glow); 
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 16px; border: 1px solid var(--primary);
}

/* Checkout Actions — Mobile Optimization */
@media (max-width: 768px) {
  .checkout-actions-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px calc(16px + var(--safe-bottom, env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid var(--border);
    z-index: 2100; /* Above bottom nav (2000) */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
  }
  .checkout-actions-container .btn {
    margin-top: 0 !important;
  }
  .checkout-actions-container p {
    margin-top: 8px !important;
    font-size: 10px !important;
  }
  .checkout-actions-mobile-placeholder {
    height: 120px;
    display: block;
  }
  
  /* Hide the bottom nav items on checkout to focus on the action? 
     Or just ensure it's above it. The user specifically wants the button to be there. */
}
@media (min-width: 769px) {
  .checkout-actions-mobile-placeholder { display: none; }
}

/* ═══════════════════════════════════════════════
   PREMIUM UI ENHANCEMENTS (SKELETONS & ANIMS)
   ═══════════════════════════════════════════════ */

/* Skeleton Loading Shimmer */
.skeleton {
  background: var(--bg-card2);
  background-image: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.03) 50%, 
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

body.light-mode .skeleton {
  background: #E5E7EB;
  background-image: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.4) 50%, transparent 100%);
}

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

/* Skeleton Card Structure */
.skeleton-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.skeleton-img { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); margin-bottom: 12px; }
.skeleton-text { height: 14px; width: 80%; margin-bottom: 8px; }
.skeleton-price { height: 20px; width: 40%; margin-bottom: 16px; }
.skeleton-btn { height: 40px; width: 100%; border-radius: var(--radius-sm); }

/* Premium Hover & Elevation */
.product-card, .category-card {
  transition: var(--transition);
  will-change: transform, box-shadow;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: var(--gold-glow);
}

.category-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card2);
  border-color: var(--primary-glow);
}

.product-image img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .product-image img {
  transform: scale(1.08);
}

/* Image Fade-in */
.img-fade { opacity: 0; transition: opacity 0.6s ease; }
.img-fade.loaded { opacity: 1; }

/* Sticky Header Glass Refinement */
.header {
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.header.scrolled {
  background: rgba(8, 12, 16, 0.7) !important;
  backdrop-filter: blur(25px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(25px) saturate(1.8) !important;
  border-bottom: 1px solid var(--border);
  height: 64px;
}
@media (max-width: 768px) {
  .header.scrolled { height: 60px; }
}
