/* ============================================================
   AutoUp - Premium Car Accessories Store
   Main Stylesheet — RTL Persian
   ============================================================ */

/* --- Variables --- */
:root {
  --gold: #dc2626;
  --gold-light: #ef4444;
  --gold-dark: #b91c1c;
  --gold-rgb: 220,38,38;
  --dark: #0a0a0a;
  --dark-2: #111111;
  --dark-3: #1a1a1a;
  --dark-4: #242424;
  --dark-5: #2e2e2e;
  --text: #e8e8e8;
  --text-muted: #888;
  --text-light: #555;
  --border: #2a2a2a;
  --border-light: #333;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font: 'Vazirmatn', sans-serif;
  --success: #48bb78;
  --warning: #ed8936;
  --danger: #e53e3e;
  --info: #4299e1;
}

/* ===== LIGHT MODE ===== */
body.light-mode {
  --dark: #f0f0f0;
  --dark-2: #ffffff;
  --dark-3: #f8f8f8;
  --dark-4: #ededed;
  --dark-5: #e4e4e4;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-light: #888;
  --border: #e0e0e0;
  --border-light: #d0d0d0;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
}
body.light-mode .site-header { background: rgba(255,255,255,0.97); border-bottom: 1px solid #e0e0e0; }
body.light-mode .logo-icon { color: #fff; }
body.light-mode .search-form { background: #f0f0f0; }
body.light-mode .admin-body { --dark: #f5f5f5; --dark-2: #fff; }

/* ── Light mode: اطمینان از خوانایی متن‌ها ── */
body.light-mode body,
body.light-mode p,
body.light-mode span,
body.light-mode li,
body.light-mode td,
body.light-mode th,
body.light-mode label,
body.light-mode div { color: inherit; }

body.light-mode .hv2-title,
body.light-mode .hv2-title * { color: #111 !important; -webkit-text-fill-color: #111 !important; }
body.light-mode .hv2-accent { color: var(--gold) !important; -webkit-text-fill-color: var(--gold) !important; }
body.light-mode .hv2-sub { color: #555 !important; }
body.light-mode .hv2-sn { color: var(--gold) !important; }
body.light-mode .hv2-sl { color: #666 !important; }

body.light-mode .section-title { color: #111 !important; }
body.light-mode .section-sub  { color: #555 !important; }

body.light-mode .why-card,
body.light-mode .brand-card,
body.light-mode .car-card,
body.light-mode .blog-card { background: #fff !important; border: 1px solid #e0e0e0; }

body.light-mode .why-card h3,
body.light-mode .car-card h3,
body.light-mode .blog-card h3 { color: #111 !important; }

body.light-mode .why-card p,
body.light-mode .blog-card p { color: #555 !important; }

body.light-mode .stats-band { background: #f0f0f0 !important; }
body.light-mode .stats-band-num { color: var(--gold) !important; -webkit-text-fill-color: var(--gold) !important; }
body.light-mode .stats-band-label { color: #555 !important; }

body.light-mode .nav-list > li > a,
body.light-mode .main-nav { color: #333 !important; }
body.light-mode .nav-list > li > a { color: #333 !important; }

body.light-mode .hero-v2 { background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%) !important; }
body.light-mode .hv2-eyebrow { background: rgba(220,38,38,.08); color: var(--gold); }
body.light-mode .hv2-badge { background: #fff; color: #111; box-shadow: 0 4px 16px rgba(0,0,0,.1); }
body.light-mode .hv2-sep { background: #ddd; }
body.light-mode .hv2-search { background: #fff; border-color: #ddd; }
body.light-mode .hv2-sel { background: #f5f5f5; color: #111; border-color: #ddd; }
body.light-mode .hero-vslide-empty { color: #888; }
body.light-mode .hero-vslide-empty a { color: var(--gold); }

body.light-mode .flash-products-scroll .pc-wrap { background: rgba(255,255,255,0.85) !important; }
body.light-mode .pc-name { color: #111 !important; }
body.light-mode .pc-brand { color: #666 !important; }
body.light-mode .pc-price-now { color: var(--gold) !important; }

body.light-mode .footer-bottom,
body.light-mode footer { background: #1a1a1a !important; }

body.light-mode .chat-toggle-btn { box-shadow: 0 8px 28px rgba(220,38,38,.4); }
body.light-mode .chat-widget { background: #fff; border-color: #e0e0e0; }
body.light-mode .chat-messages { background: #f9f9f9; }
body.light-mode .chat-msg-user .chat-bubble { background: #e8e8e8; color: #111; }
body.light-mode .chat-input-area { border-color: #e0e0e0; background: #fff; }
body.light-mode .chat-msg-input { background: #f5f5f5; border-color: #ddd; color: #111; }
body.light-mode .chat-pre-form { background: #fff; }
body.light-mode .chat-input-field { background: #f5f5f5; border-color: #ddd; color: #111; }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden; /* fallback برای مرورگرهای قدیمی */
  overflow-x: clip;   /* clip اسکرول‌کانتینر نمی‌سازد تا هدر sticky درست کار کند */
  line-height: 1.7;
  /* هاله‌های نئونی پس‌زمینه */
  position: relative;
}

/* ── هاله‌های نئونی قرمز متحرک ── */
body::before {
  content: '';
  position: fixed;
  top: -200px; right: -150px;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(220,38,38,0.055) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: neonOrb1 18s ease-in-out infinite;
}
body::after {
  content: '';
  position: fixed;
  bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(220,38,38,0.04) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: neonOrb2 14s ease-in-out infinite alternate;
}
@keyframes neonOrb1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-80px, 60px) scale(1.1); }
  50%  { transform: translate(40px, 120px) scale(0.92); }
  75%  { transform: translate(100px, -40px) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes neonOrb2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(120px, -80px) scale(1.15); }
}
/* در light mode هاله‌ها خاموش */
body.light-mode::before,
body.light-mode::after { display: none; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: var(--font); }
ul { list-style: none; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* --- Container --- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 60px; }
@media (max-width: 1024px) { .container { padding: 0 40px; } }
@media (max-width: 768px)  { .container { padding: 0 20px; } }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.3; }
.section-title { font-size: 2rem; color: var(--text); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); margin-bottom: 40px; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .gold-line {
  display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000; border-color: var(--gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,38,38,0.35); background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.btn-outline {
  background: transparent; color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-dark { background: var(--dark-3); color: var(--text); border-color: var(--border-light); }
.btn-dark:hover { background: var(--dark-4); border-color: var(--gold); color: var(--gold); }
.btn-danger { background: #e53e3e; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.full-width { width: 100%; }

/* --- Form Inputs --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-muted); font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--dark-3); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.95rem; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(220,38,38,0.15); }
.form-control::placeholder { color: var(--text-light); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-top {
  background: var(--dark-2);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.header-top-inner {
  display: flex; gap: 24px; justify-content: flex-end;
}
.header-top-inner i { color: var(--gold); margin-left: 6px; }

.header-main { padding: 16px 0; }
.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #000;
  box-shadow: 0 4px 16px rgba(220,38,38,0.3);
}
.logo-title { display: block; font-size: 1.4rem; font-weight: 900; color: var(--gold); line-height: 1; }
.logo-sub { display: block; font-size: 0.7rem; color: var(--text-muted); }

/* Search */
.header-search { flex: 1; }
.search-form {
  display: flex; align-items: center;
  background: var(--dark-3);
  border: 1.5px solid var(--border);
  border-radius: 50px; overflow: hidden;
  transition: var(--transition);
}
.search-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
.search-car-select {
  display: flex; border-left: 1px solid var(--border);
  padding: 0 4px;
}
.car-select-mini {
  background: transparent; border: none; color: var(--text-muted);
  padding: 8px 12px; font-size: 0.82rem; cursor: pointer;
  font-family: var(--font);
}
.car-select-mini:focus { outline: none; }
.car-select-mini option { background: var(--dark-3); }
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  padding: 12px 16px; color: var(--text); font-size: 0.9rem;
}
.search-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none; padding: 12px 20px;
  color: #000; cursor: pointer; font-size: 1rem;
  transition: var(--transition);
}
.search-btn:hover { opacity: 0.85; }

/* Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.action-btn {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 1.2rem;
  position: relative; transition: var(--transition); cursor: pointer;
}
.action-btn:hover { color: var(--gold); background: var(--dark-3); }
.action-label { font-size: 0.65rem; margin-top: 2px; }
.cart-action { position: relative; }
.cart-count {
  position: absolute; top: 2px; left: 2px;
  background: var(--gold); color: #000;
  width: 18px; height: 18px;
  border-radius: 50%; font-size: 0.65rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; padding: 8px; }

/* Main Nav */
.main-nav {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
}
.nav-list { display: flex; align-items: center; }
.nav-list > li > a {
  display: block; padding: 14px 18px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-muted); transition: var(--transition);
  position: relative;
}
.nav-list > li > a::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: var(--transition);
}
.nav-list > li:hover > a,
.nav-list > li > a.active { color: var(--gold); }
.nav-list > li:hover > a::after,
.nav-list > li > a.active::after { width: 100%; }
.nav-badge {
  background: #e53e3e; color: #fff;
  font-size: 0.6rem; padding: 2px 6px;
  border-radius: 20px; margin-right: 4px;
}

/* Mega Menu */
.has-mega { position: relative; }
.mega-menu {
  position: absolute; top: 100%; right: 0;
  background: var(--dark-2); border: 1px solid var(--border);
  width: 700px; border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px 0; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition);
  box-shadow: var(--shadow-lg); z-index: 100;
}
.has-mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 24px; padding: 0 24px; }
.mega-col h4 { font-size: 0.8rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.mega-col a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 5px 0; transition: var(--transition); }
.mega-col a:hover { color: var(--gold); padding-right: 6px; }
.mega-promo-item { display: flex; flex-direction: column; gap: 6px; }
.mega-promo-item img { border-radius: var(--radius-sm); height: 80px; object-fit: cover; }
.mega-promo-item strong { color: var(--gold); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section { position: relative; height: 88vh; min-height: 600px; overflow: hidden; }
.hero-swiper { width: 100%; height: 100%; }
.hero-slide {
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.swiper-slide-active .hero-slide-bg { transform: scale(1); }
.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 600px; padding: 0 60px;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000; font-size: 0.75rem; font-weight: 700;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; line-height: 1.2;
  margin-bottom: 16px;
}
.hero-title span { color: var(--gold); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-nav {
  position: absolute; bottom: 32px; right: 60px; z-index: 10;
  display: flex; gap: 8px;
}
.swiper-pagination-bullet { background: rgba(255,255,255,0.5) !important; width: 10px !important; height: 10px !important; }
.swiper-pagination-bullet-active { background: var(--gold) !important; width: 28px !important; border-radius: 5px !important; }

/* ============================================================
   SECTION PADDING
   ============================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: var(--dark-2); }
.section-darker { background: var(--dark-3); }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--dark-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 32px;
  border-left: 1px solid var(--border);
  transition: var(--transition);
}
.stat-item:last-child { border-left: none; }
.stat-item:hover { background: var(--dark-3); }
.stat-icon {
  width: 50px; height: 50px;
  background: rgba(220,38,38,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold);
  flex-shrink: 0;
}
.stat-info h3 { font-size: 1.5rem; color: var(--gold); font-weight: 800; }
.stat-info p { font-size: 0.85rem; color: var(--text-muted); }

/* ============================================================
   PRODUCT CARDS — legacy aliases (keep for any remaining uses)
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 20px; }
.products-grid-5 { grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); }

/* Legacy selectors aliased to new card so old partials still render */
.product-card { display: contents; }
.badge {
  display: inline-block; padding: 4px 10px;
  border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.badge-sale { background: #e53e3e; color: #fff; }
.badge-new  { background: var(--gold); color: #000; }
.badge-stock{ background: var(--dark-5); color: var(--text-muted); }

/* ============================================================
   BRAND CARDS
   ============================================================ */
.brands-carousel { padding: 16px 0; }
.brand-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; transition: var(--transition); cursor: pointer;
}
.brand-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.brand-logo {
  width: 80px; height: 60px; object-fit: contain;
  filter: brightness(0.8) grayscale(0.3);
  transition: var(--transition);
}
.brand-card:hover .brand-logo { filter: brightness(1) grayscale(0); }
.brand-name { font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.brand-card:hover .brand-name { color: var(--gold); }
.brand-count { font-size: 0.75rem; color: var(--text-light); }

/* ============================================================
   CAR CATEGORY CARDS
   ============================================================ */
.cars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 20px; }
.car-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); text-align: center;
}
.car-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.car-card-img {
  width: 100%; height: 120px; object-fit: cover;
  background: var(--dark-4);
}
.car-card-body { padding: 14px; }
.car-card-name { font-size: 0.9rem; font-weight: 700; }
.car-card:hover .car-card-name { color: var(--gold); }
.car-card-count { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   PROMO BANNERS
   ============================================================ */
.promo-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.promo-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 280px; display: flex; align-items: center;
  background: var(--dark-3);
}
.promo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, transparent 70%);
}
.promo-content { position: relative; z-index: 2; padding: 32px 40px; }
.promo-content h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.promo-content p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.promo-sm { min-height: 130px; }
.promo-sm .promo-content { padding: 20px 24px; }
.promo-sm h3 { font-size: 1.1rem; }
.promo-col { display: flex; flex-direction: column; gap: 24px; }

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 14px; text-align: right; color: var(--text-muted); font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 16px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-img { width: 70px; height: 70px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item-name { font-weight: 600; }
.cart-item-brand { font-size: 0.8rem; color: var(--text-muted); }
.qty-control { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 32px; height: 32px; background: var(--dark-4);
  border: 1px solid var(--border); color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
}
.qty-btn:hover { background: var(--gold); color: #000; }
.qty-input { width: 48px; height: 32px; background: var(--dark-3); border: 1px solid var(--border); border-left: 0; border-right: 0; color: var(--text); text-align: center; font-size: 0.9rem; }
.remove-btn { background: none; border: none; color: #e53e3e; cursor: pointer; font-size: 1.1rem; padding: 8px; transition: var(--transition); }
.remove-btn:hover { color: #fc8181; }

.cart-summary { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: sticky; top: 120px; }
.cart-summary h3 { margin-bottom: 24px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-total { font-size: 1.1rem; font-weight: 800; color: var(--gold); }
.coupon-form { display: flex; gap: 8px; margin: 16px 0; }
.coupon-form input { flex: 1; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.checkout-steps { display: flex; gap: 0; margin-bottom: 32px; }
.step { flex: 1; text-align: center; padding: 14px; background: var(--dark-3); border: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); position: relative; }
.step.active { background: rgba(220,38,38,0.1); border-color: var(--gold); color: var(--gold); }
.step.done { background: rgba(72,187,120,0.1); border-color: #48bb78; color: #48bb78; }
.checkout-section { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.checkout-section h3 { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.address-card { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; transition: var(--transition); margin-bottom: 12px; }
.address-card:hover, .address-card.selected { border-color: var(--gold); background: rgba(220,38,38,0.05); }
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-method { border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; display: flex; align-items: center; gap: 16px; transition: var(--transition); }
.payment-method:hover, .payment-method.selected { border-color: var(--gold); }
.payment-method input[type=radio] { accent-color: var(--gold); width: 18px; height: 18px; }
.payment-icon { font-size: 1.8rem; }
.payment-info h4 { font-weight: 700; }
.payment-info p { font-size: 0.82rem; color: var(--text-muted); }
.order-summary-mini { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 120px; }
.order-item-mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-item-mini img { width: 55px; height: 55px; border-radius: var(--radius-sm); object-fit: cover; }

/* ============================================================
   ACCOUNT DASHBOARD
   ============================================================ */
.account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.account-sidebar { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 120px; }
.account-avatar { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.avatar-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--gold); }
.account-name { font-size: 1.1rem; font-weight: 700; }
.account-email { font-size: 0.8rem; color: var(--text-muted); }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text-muted); margin-bottom: 4px; transition: var(--transition); }
.account-nav a i { width: 20px; color: var(--text-light); }
.account-nav a:hover, .account-nav a.active { background: rgba(220,38,38,0.1); color: var(--gold); }
.account-nav a.active i, .account-nav a:hover i { color: var(--gold); }
.account-content { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; min-height: 400px; }
.account-tab { display: none; }
.account-tab.active { display: block; }

.stat-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--dark-4); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.stat-card-icon { font-size: 1.8rem; color: var(--gold); margin-bottom: 8px; }
.stat-card-num { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.stat-card-label { font-size: 0.8rem; color: var(--text-muted); }

/* Orders Table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { padding: 12px; text-align: right; color: var(--text-muted); font-size: 0.82rem; border-bottom: 1px solid var(--border); }
.orders-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.order-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.status-pending { background: rgba(237,137,54,0.15); color: #ed8936; }
.status-processing { background: rgba(66,153,225,0.15); color: #4299e1; }
.status-shipped { background: rgba(128,90,213,0.15); color: #805ad5; }
.status-delivered { background: rgba(72,187,120,0.15); color: #48bb78; }
.status-cancelled { background: rgba(229,62,62,0.15); color: #e53e3e; }
.status-paid { background: rgba(72,187,120,0.15); color: #48bb78; }
.status-failed { background: rgba(229,62,62,0.15); color: #e53e3e; }

/* ============================================================
   WISHLIST
   ============================================================ */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 24px; }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 120px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--dark-3); border: 1px solid var(--border); margin-bottom: 12px; aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-item { width: 70px; height: 70px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: var(--transition); }
.thumb-item:hover, .thumb-item.active { border-color: var(--gold); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info h1 { font-size: 1.8rem; margin-bottom: 8px; }
.product-detail-meta { display: flex; gap: 16px; margin-bottom: 20px; color: var(--text-muted); font-size: 0.85rem; }
.product-detail-price { margin: 20px 0; }
.price-main { font-size: 2rem; font-weight: 900; color: var(--gold); }
.price-original { font-size: 1.1rem; text-decoration: line-through; color: var(--text-light); }
.discount-tag { background: #e53e3e; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; }
.product-desc { color: var(--text-muted); line-height: 1.8; margin: 20px 0; }
.product-cars { margin: 20px 0; }
.car-compat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.car-chip { background: var(--dark-4); border: 1px solid var(--border); padding: 4px 14px; border-radius: 20px; font-size: 0.8rem; color: var(--text-muted); }
.add-cart-section { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.qty-control-lg { display: flex; align-items: center; }
.qty-btn-lg { width: 44px; height: 44px; background: var(--dark-4); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn-lg:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.qty-display { width: 60px; height: 44px; background: var(--dark-3); border: 1px solid var(--border); border-left: 0; border-right: 0; color: var(--text); text-align: center; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wish-btn-lg { width: 44px; height: 44px; background: var(--dark-4); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; color: var(--text-muted); transition: var(--transition); }
.wish-btn-lg:hover, .wish-btn-lg.wishlisted { color: #e53e3e; border-color: #e53e3e; }

/* Product Tabs */
.product-tabs { margin-top: 48px; }
.tab-header { display: flex; gap: 0; border-bottom: 2px solid var(--border); }
.tab-btn { padding: 14px 24px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.95rem; font-weight: 600; font-family: var(--font); transition: var(--transition); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-content { padding: 28px 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ============================================================
   FILTERS SIDEBAR (SHOP)
   ============================================================ */
.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.filter-sidebar { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 120px; }
.filter-group { margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; }
.filter-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.filter-title i { color: var(--gold); }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; color: var(--text-muted); font-size: 0.88rem; transition: var(--transition); }
.filter-option:hover { color: var(--text); }
.filter-option input[type=checkbox], .filter-option input[type=radio] { accent-color: var(--gold); width: 16px; height: 16px; }
.filter-option label { cursor: pointer; flex: 1; }
.filter-count { margin-right: auto; background: var(--dark-5); border-radius: 20px; padding: 2px 8px; font-size: 0.72rem; color: var(--text-muted); }
.price-range { display: flex; flex-direction: column; gap: 12px; }
.price-range input[type=range] { width: 100%; accent-color: var(--gold); }
.price-inputs { display: flex; gap: 8px; }
.price-input { flex: 1; background: var(--dark-4); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--text); font-size: 0.82rem; font-family: var(--font); }

/* Sort Bar */
.sort-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding: 16px 20px; background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.sort-bar label { color: var(--text-muted); font-size: 0.9rem; }
.sort-select { background: var(--dark-4); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text); font-size: 0.88rem; cursor: pointer; font-family: var(--font); }
.view-toggle { display: flex; gap: 4px; }
.view-btn { background: var(--dark-4); border: 1px solid var(--border); color: var(--text-muted); padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.view-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.page-btn { background: var(--dark-3); border: 1px solid var(--border); color: var(--text-muted); padding: 10px 16px; border-radius: var(--radius-sm); transition: var(--transition); cursor: pointer; }
.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1100; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; left: 0; top: 0; bottom: 0; width: 380px; background: var(--dark-2); border-right: 1px solid var(--border); z-index: 1200; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1); }
.cart-drawer.open { transform: translateX(0); }
.drawer-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-header h3 { font-size: 1.1rem; }
.drawer-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.3rem; transition: var(--transition); padding: 4px; }
.drawer-close:hover { color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.drawer-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.drawer-item img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.drawer-item-info { flex: 1; }
.drawer-item-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.drawer-item-price { font-size: 0.9rem; color: var(--gold); font-weight: 700; }
.drawer-item-remove { background: none; border: none; color: var(--text-light); cursor: pointer; transition: var(--transition); }
.drawer-item-remove:hover { color: #e53e3e; }
.drawer-footer { padding: 20px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.drawer-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1rem; }
.drawer-total span:last-child { color: var(--gold); }
.empty-cart { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-cart i { font-size: 3rem; margin-bottom: 16px; color: var(--text-light); }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--text); padding: 14px 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
  transform: translateX(-120%); transition: transform 0.3s ease;
  max-width: 340px; box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: #48bb78; }
.toast.error { border-color: #e53e3e; }
.toast.success i { color: #48bb78; }
.toast.error i { color: #e53e3e; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark-2); border-top: 1px solid var(--border); margin-top: 80px; }
.footer-top { padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin: 16px 0 20px; line-height: 1.8; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 38px; height: 38px; background: var(--dark-4); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.social-link:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.footer-col h4 { font-size: 1rem; margin-bottom: 20px; color: var(--text); }
.footer-col ul li a { display: block; color: var(--text-muted); font-size: 0.88rem; padding: 5px 0; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); padding-right: 6px; }
.footer-contact .contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: var(--text-muted); font-size: 0.88rem; }
.footer-contact .contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-newsletter h5 { font-size: 0.9rem; margin: 20px 0 10px; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input { flex: 1; background: var(--dark-4); border: 1px solid var(--border); border-radius: var(--radius-sm) 0 0 var(--radius-sm); padding: 10px 14px; color: var(--text); font-size: 0.85rem; border-left: none; }
.newsletter-form button { background: var(--gold); border: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 14px; color: #000; cursor: pointer; transition: var(--transition); }
.newsletter-form button:hover { background: var(--gold-light); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--text-muted); }
.payment-icon-text { color: var(--text-muted); font-size: 0.8rem; }

/* Back to Top — چپ-پایین */
.back-to-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 9990;
  width: 48px; height: 48px;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: 50%; color: var(--text-muted);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all .3s ease; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.alert-success { background: rgba(72,187,120,0.1); border: 1px solid rgba(72,187,120,0.3); color: #68d391; }
.alert-error { background: rgba(229,62,62,0.1); border: 1px solid rgba(229,62,62,0.3); color: #fc8181; }
.alert-info { background: rgba(66,153,225,0.1); border: 1px solid rgba(66,153,225,0.3); color: #90cdf4; }
.alert-warning { background: rgba(237,137,54,0.1); border: 1px solid rgba(237,137,54,0.3); color: #f6ad55; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: 180px 1fr auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .promo-grid { grid-template-columns: 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-top { display: none; }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .has-mega .mega-menu { display: none !important; }
  .mega-menu { display: none !important; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-left: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .hero-content { padding: 0 24px; }
  .hero-section { height: 70vh; }
  .section { padding: 48px 0; }
  .cart-drawer { width: 100%; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .stat-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   LOADING & SKELETON
   ============================================================ */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--gold); font-size: 1.5rem; }
.skeleton { background: linear-gradient(90deg, var(--dark-3) 25%, var(--dark-4) 50%, var(--dark-3) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-16 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.badge-out-stock { background: rgba(229,62,62,0.15); color: #e53e3e; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }
.badge-in-stock { background: rgba(72,187,120,0.15); color: #48bb78; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; }
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state i { font-size: 3.5rem; color: var(--text-light); margin-bottom: 20px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 16px 0; color: var(--text-muted); font-size: 0.85rem; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.6rem; }

/* ============================================================
   DARK / LIGHT MODE TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark-3); border: 1.5px solid var(--border);
  color: var(--text-muted); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   VIDEO HERO
   ============================================================ */
.hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-section .container { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }

/* ============================================================
   FLASH SALE — DIGIKALA STYLE
   ============================================================ */
.flash-sale-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #0a0a0a 100%);
  border-top: 3px solid var(--gold);
  padding: 40px 0;
}
.flash-sale-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.flash-sale-title {
  display: flex; align-items: center; gap: 16px;
}
.flash-sale-title h2 {
  font-size: 1.5rem; font-weight: 900; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.flash-icon-pulse { width:48px;height:48px;background:var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.3rem;color:#fff;animation:pulse-fire 1s infinite alternate;flex-shrink:0 }
.flash-icon { font-size: 2rem; animation: pulse-fire 1s infinite alternate; }
@keyframes pulse-fire { from { transform: scale(1); } to { transform: scale(1.2); } }

.countdown-timer {
  display: flex; align-items: center; gap: 8px;
  background: var(--dark-3); border: 1px solid var(--gold);
  border-radius: 10px; padding: 10px 16px;
}
.countdown-unit {
  display: flex; flex-direction: column; align-items: center;
  background: var(--gold); border-radius: 6px;
  padding: 6px 12px; min-width: 52px;
}
.countdown-unit span { font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1; }
.countdown-unit small { font-size: 0.6rem; color: rgba(255,255,255,0.8); margin-top: 2px; }
.countdown-num {
  font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1;
}
.countdown-label { font-size: 0.6rem; color: rgba(255,255,255,0.8); margin-top: 2px; }
.countdown-sep { font-size: 1.2rem; color: var(--gold); font-weight: 900; }

.flash-products-scroll {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; scroll-padding: 0 20px;
}
.flash-products-scroll::-webkit-scrollbar { height: 4px; }
.flash-products-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
.flash-product-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; min-width: 220px;
  transition: var(--transition); scroll-snap-align: start; cursor: pointer;
  position: relative; flex-shrink: 0;
}
.flash-product-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.flash-discount-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--gold); color: #fff;
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900;
}
.flash-product-img {
  width: 100%; height: 160px; object-fit: cover; background: var(--dark-4);
}
.flash-product-info { padding: 14px; }
.flash-product-name {
  font-size: 0.88rem; font-weight: 700; margin-bottom: 10px;
  line-height: 1.4; height: 2.5em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.flash-price-old { font-size: 0.78rem; color: var(--text-light); text-decoration: line-through; }
.flash-price-new { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.flash-stock-bar { height: 4px; background: var(--dark-5); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.flash-stock-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; transition: width 1s ease; }
.flash-stock-text { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.flash-prices { display:flex;flex-direction:column;gap:2px;margin-top:8px }
.flash-prices del { font-size:.78rem;color:var(--text-light) }
.flash-prices strong { font-size:1rem;font-weight:800;color:var(--gold) }
.flash-product-card img { width:100%;height:160px;object-fit:cover;background:var(--dark-4);display:block }
.flash-product-name { display:block;font-size:.85rem;font-weight:700;color:var(--text);line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:6px }
.flash-product-name:hover { color:var(--gold) }

/* ============================================================
   BLOG CARDS
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 28px; }
.blog-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--dark-4); transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-img-wrap { overflow: hidden; }
.blog-card-body { padding: 20px; }
.blog-cat-tag {
  display: inline-block; background: rgba(var(--gold-rgb),0.15);
  color: var(--gold); font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.blog-card-title {
  font-size: 1rem; font-weight: 700; line-height: 1.5;
  margin-bottom: 10px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card:hover .blog-card-title { color: var(--gold); }
.blog-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.blog-card-meta {
  display: flex; align-items: center; gap: 16px;
  font-size: 0.78rem; color: var(--text-light);
  padding-top: 14px; border-top: 1px solid var(--border);
}
.blog-card-meta i { color: var(--gold); }
.blog-card-views { margin-right: auto; }

.blog-hero { background: var(--dark-2); padding: 60px 0; margin-bottom: 48px; }
.blog-hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.post-content { max-width: 860px; margin: 0 auto; line-height: 2; }
.post-content h2 { font-size: 1.5rem; color: var(--gold); margin: 36px 0 16px; }
.post-content h3 { font-size: 1.2rem; margin: 28px 0 12px; }
.post-content p { margin-bottom: 20px; color: var(--text-muted); }
.post-content img { border-radius: var(--radius); margin: 24px auto; max-width: 100%; }
.post-content ul, .post-content ol { padding-right: 24px; margin-bottom: 20px; }
.post-content li { margin-bottom: 8px; color: var(--text-muted); }
.post-content blockquote {
  border-right: 4px solid var(--gold); padding: 16px 20px;
  background: var(--dark-3); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0; color: var(--text-muted); font-style: italic;
}
.post-header { margin-bottom: 40px; }
.post-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 40px; }
.post-meta-bar {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-muted);
  padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.post-meta-bar i { color: var(--gold); margin-left: 6px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; }
.post-tag {
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--text-muted); padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; transition: var(--transition);
}
.post-tag:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   AOS SCROLL ANIMATIONS (manual fallback)
   ============================================================ */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(-30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.92); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  min-height: 50vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  position: relative; overflow: hidden;
}
.about-hero::before {
  content: '';  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(var(--gold-rgb),0.08) 0%, transparent 70%);
}
.counter-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.counter-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px; text-align: center;
  transition: var(--transition);
}
.counter-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.counter-num { font-size: 2.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.counter-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 24px; }
.team-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; text-align: center;
  transition: var(--transition);
}
.team-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.team-img { width: 100%; height: 220px; object-fit: cover; background: var(--dark-4); }
.team-body { padding: 20px; }
.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-role { font-size: 0.82rem; color: var(--gold); margin-bottom: 10px; }
.team-socials { display: flex; gap: 8px; justify-content: center; }
.team-social { width: 32px; height: 32px; border-radius: 50%; background: var(--dark-4); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; transition: var(--transition); }
.team-social:hover { background: var(--gold); color: #fff; }
.timeline { position: relative; padding: 0 0 0 32px; border-right: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 32px; padding-right: 24px; }
.timeline-item::before {
  content: ''; position: absolute; right: -9px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--dark);
}
.timeline-year { font-size: 0.75rem; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.timeline-title { font-weight: 700; margin-bottom: 4px; }
.timeline-desc { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   CONTACT PAGE v2
   ============================================================ */
.contact-hero {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  padding: 60px 0; text-align: center; position: relative; overflow: hidden;
}
.contact-hero::after {
  content: '\f095'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; bottom: -20px; left: -20px;
  font-size: 180px; opacity: 0.03; color: var(--gold);
}
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; margin-bottom: 48px; }
.contact-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: var(--transition);
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.contact-card-icon {
  width: 56px; height: 56px; background: rgba(var(--gold-rgb),0.1);
  border-radius: 14px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold);
}
.contact-card h3 { margin-bottom: 6px;font-size:1rem }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; }
.contact-card small { color: var(--text-light); font-size:.78rem }

/* ============================================================
   BLOG PAGE EXTRAS
   ============================================================ */
.blog-hero {
  background: linear-gradient(135deg, var(--dark-2) 0%, #1a0505 100%);
  padding: 64px 20px; text-align: center; position: relative;
}
.blog-hero-content { position:relative;z-index:2 }
.blog-hero h1 { font-size: 2.5rem; margin-bottom: 10px; color: var(--text); }
.blog-hero p { color: var(--text-muted); margin-bottom: 24px; }
.blog-search-form { display:flex;gap:10px;max-width:480px;margin:0 auto }
.blog-search-input { flex:1;background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);padding:10px 16px;color:var(--text);font-family:var(--font);font-size:.95rem }
.blog-search-input:focus { outline:none;border-color:var(--gold) }

.blog-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:28px }
.blog-card { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:var(--transition);display:flex;flex-direction:column }
.blog-card:hover { border-color:var(--gold);transform:translateY(-4px);box-shadow:var(--shadow) }
.blog-card-img-wrap { position:relative;overflow:hidden;aspect-ratio:16/9 }
.blog-card-img { width:100%;height:100%;object-fit:cover;transition:transform .5s }
.blog-card:hover .blog-card-img { transform:scale(1.05) }
.blog-card-img-placeholder { aspect-ratio:16/9;background:var(--dark-4);display:flex;align-items:center;justify-content:center;font-size:2.5rem;color:var(--text-light) }
.blog-card-cat { position:absolute;top:12px;right:12px;background:var(--gold);color:#fff;font-size:.75rem;padding:4px 10px;border-radius:20px;font-weight:600 }
.blog-card-body { padding:20px;flex:1;display:flex;flex-direction:column }
.blog-card-title { font-size:1.05rem;font-weight:700;margin-bottom:10px;line-height:1.5;flex:1 }
.blog-card-title a:hover { color:var(--gold) }
.blog-card-excerpt { font-size:.85rem;color:var(--text-muted);line-height:1.7;margin-bottom:16px }
.blog-card-meta { display:flex;gap:12px;flex-wrap:wrap;font-size:.78rem;color:var(--text-light);padding-top:12px;border-top:1px solid var(--border);margin-top:auto }
.blog-card-meta i { color:var(--gold);margin-left:4px }
.blog-read-more { display:inline-flex;align-items:center;gap:6px;color:var(--gold);font-size:.85rem;font-weight:600;margin-top:12px;transition:var(--transition) }
.blog-read-more:hover { gap:10px }
.post-share { display:flex;align-items:center;gap:10px;margin-right:auto }
.post-share a { color:var(--text-muted);font-size:1.1rem;transition:var(--transition) }
.post-share a:hover { color:var(--gold) }

/* Sidebar */
.blog-sidebar,.blog-layout { }
.sidebar-widget { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);padding:20px }
.sidebar-widget-title { font-size:.95rem;font-weight:700;margin-bottom:16px;display:flex;align-items:center;gap:8px;color:var(--text);padding-bottom:12px;border-bottom:1px solid var(--border) }
.sidebar-widget-title i { color:var(--gold) }
.cat-list li a { display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);color:var(--text-muted);font-size:.9rem;transition:var(--transition) }
.cat-list li a:hover,.cat-list li a.active { color:var(--gold) }
.cat-list li a span { background:var(--dark-4);padding:2px 8px;border-radius:20px;font-size:.75rem }
.popular-list li { display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--border) }
.popular-list li img { width:60px;height:44px;object-fit:cover;border-radius:6px;flex-shrink:0 }
.popular-img-placeholder { width:60px;height:44px;background:var(--dark-4);border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--text-light);font-size:.9rem;flex-shrink:0 }
.popular-list li div { flex:1 }
.popular-list li a { color:var(--text);font-size:.85rem;line-height:1.4;display:block;margin-bottom:4px }
.popular-list li a:hover { color:var(--gold) }
.popular-list li small { color:var(--text-muted);font-size:.75rem }

/* Post Single */
.post-cat-tag { display:inline-block;background:var(--gold);color:#fff;font-size:.8rem;padding:4px 14px;border-radius:20px;margin-bottom:12px;font-weight:600 }
.post-title { font-size:2rem;line-height:1.4;margin-bottom:20px }
.post-nav-link { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;display:block;color:var(--text);transition:var(--transition) }
.post-nav-link:hover { border-color:var(--gold);color:var(--gold) }
.post-nav-link small { color:var(--text-muted);font-size:.8rem;display:block;margin-bottom:4px }
.post-nav-link div { font-weight:600;font-size:.9rem }

/* ============================================================
   ABOUT PAGE EXTRAS
   ============================================================ */
.section-tag { display:inline-block;background:rgba(var(--gold-rgb),.1);color:var(--gold);border:1px solid rgba(var(--gold-rgb),.3);padding:4px 14px;border-radius:20px;font-size:.8rem;font-weight:600;margin-bottom:12px }
.about-hero { min-height:60vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0a0a0a 0%,#1a0505 100%);position:relative;overflow:hidden;text-align:center;padding:80px 20px }
.about-hero::before { content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 60%,rgba(220,38,38,.08) 0%,transparent 70%) }
.about-hero h1 { font-size:3rem;margin-bottom:12px;position:relative }
.about-hero p { color:rgba(255,255,255,.7);font-size:1.1rem;margin-bottom:24px;position:relative }
.about-hero-btns { display:flex;gap:16px;justify-content:center;flex-wrap:wrap;position:relative }
.counter-section { background:var(--dark-3);border-radius:var(--radius-lg);padding:48px;margin:0 }
.counter-icon { font-size:2rem;color:var(--gold);margin-bottom:12px }
.counter-value { font-size:2.5rem;font-weight:900;color:var(--text);line-height:1 }
.counter-label { color:var(--text-muted);font-size:.9rem;margin-top:6px }
.value-card { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);padding:28px;transition:var(--transition) }
.value-card:hover { border-color:var(--gold);transform:translateY(-4px) }
.value-icon { width:56px;height:56px;background:rgba(var(--gold-rgb),.1);border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.4rem;color:var(--gold);margin-bottom:16px }
.value-card h3 { margin-bottom:8px;font-size:1rem }
.value-card p { color:var(--text-muted);font-size:.88rem;line-height:1.7 }
.timeline-dot { position:absolute;right:-9px;top:6px;width:14px;height:14px;border-radius:50%;background:var(--gold);border:2px solid var(--dark) }
.timeline-year { font-size:.75rem;color:var(--gold);font-weight:700;margin-bottom:4px }
.team-avatar { width:80px;height:80px;border-radius:50%;background:rgba(var(--gold-rgb),.1);display:flex;align-items:center;justify-content:center;font-size:2rem;color:var(--gold);margin:0 auto 16px }
.team-socials { display:flex;gap:8px;justify-content:center;margin-top:12px }
.team-socials a { width:34px;height:34px;border-radius:50%;background:var(--dark-4);display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:var(--transition) }
.team-socials a:hover { background:var(--gold);color:#fff }
.about-cta { background:linear-gradient(135deg,var(--gold-dark),var(--gold));border-radius:var(--radius-lg);padding:60px;text-align:center;margin-top:20px }
.about-cta h2 { font-size:2rem;margin-bottom:12px;color:#fff }
.about-cta p { color:rgba(255,255,255,.8);font-size:1.05rem;margin-bottom:0 }

/* ============================================================
   CONTACT PAGE EXTRAS
   ============================================================ */
.contact-form-card { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden }
.contact-form-header { background:linear-gradient(135deg,var(--gold-dark),var(--gold));padding:28px;text-align:center }
.contact-form-header i { font-size:2rem;color:#fff;margin-bottom:8px;display:block }
.contact-form-header h2 { color:#fff;margin-bottom:4px;font-size:1.3rem }
.contact-form-header p { color:rgba(255,255,255,.8);font-size:.85rem }
.contact-form-card form { padding:28px }
.contact-hours-card { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);padding:24px }
.contact-hours-card h3 { font-size:1rem;margin-bottom:16px;display:flex;align-items:center;gap:8px }
.contact-hours-card h3 i { color:var(--gold) }
.contact-hours-card ul { display:flex;flex-direction:column;gap:8px }
.contact-hours-card li { display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:.88rem;color:var(--text-muted) }
.contact-hours-card .closed { color:var(--danger) }
.contact-social-card { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);padding:20px }
.contact-social-card h3 { font-size:1rem;margin-bottom:14px }
.contact-socials { display:flex;flex-wrap:wrap;gap:8px }
.social-pill { display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:20px;background:rgba(var(--gold-rgb),.08);border:1px solid var(--border);font-size:.85rem;transition:var(--transition) }
.social-pill:hover { background:var(--sc,var(--gold));color:#fff;border-color:transparent }
.contact-map-wrap { border-radius:var(--radius);overflow:hidden }
.contact-map-placeholder { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);padding:40px;text-align:center;color:var(--text-muted) }
.contact-map-placeholder i { font-size:3rem;color:var(--gold);margin-bottom:12px;display:block }
.faq-list { display:flex;flex-direction:column;gap:12px }
.faq-item { background:var(--dark-3);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:var(--transition) }
.faq-item.open { border-color:var(--gold) }
.faq-q { width:100%;background:none;border:none;color:var(--text);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-family:var(--font);font-size:.95rem;font-weight:600;text-align:right }
.faq-q i { color:var(--gold);transition:transform .3s;flex-shrink:0 }
.faq-item.open .faq-q i { transform:rotate(180deg) }
.faq-a { max-height:0;overflow:hidden;transition:max-height .4s ease;color:var(--text-muted);font-size:.9rem;line-height:1.8 }
.faq-item.open .faq-a { max-height:200px;padding:0 20px 16px }

/* req asterisk */
.req { color:var(--danger) }
.ltr { direction:ltr;text-align:left }

/* ============================================================
   RESPONSIVE ADDITIONS
   ============================================================ */
@media (max-width: 992px) {
  .blog-layout { grid-template-columns: 1fr !important; }
  .post-layout { grid-template-columns: 1fr !important; }
  .about-hero h1 { font-size:2.2rem }
  .contact-form-card, .contact-map-wrap { max-width:100% }
  div[style*="grid-template-columns:1.4fr 1fr"] { grid-template-columns:1fr !important }
  div[style*="grid-template-columns:1fr 1.5fr"] { grid-template-columns:1fr !important }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important }
  .about-hero-btns { flex-direction:column;align-items:center }
  .blog-grid { grid-template-columns:1fr 1fr }
}
@media (max-width: 768px) {
  .about-hero { padding:60px 20px }
  .about-hero h1 { font-size:1.8rem }
  .counter-section { padding:28px 16px }
  .counter-grid { grid-template-columns:repeat(2,1fr) }
  .blog-grid { grid-template-columns:1fr }
  .post-nav { grid-template-columns:1fr !important }
  div[style*="grid-template-columns:1fr 300px"] { grid-template-columns:1fr !important }
  div[style*="grid-template-columns:1fr 1fr;gap:60px"] { grid-template-columns:1fr !important }
  .timeline { border-right:none;padding:0 }
  .timeline-item { padding-right:0 }
  .post-title { font-size:1.5rem }
}

/* ============================================================
   FORM BUILDER FRONTEND
   ============================================================ */
.dynamic-form { background: var(--dark-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }

/* ============================================================
   SEO META PREVIEWER
   ============================================================ */
.seo-preview {
  background: var(--dark-4); border-radius: var(--radius-sm);
  padding: 16px 20px; margin-top: 12px;
  font-family: Arial, sans-serif;
}
.seo-preview-title { color: #8ab4f8; font-size: 1rem; margin-bottom: 4px; }
.seo-preview-url { color: #3dba4e; font-size: 0.8rem; margin-bottom: 4px; }
.seo-preview-desc { color: #bdc1c6; font-size: 0.85rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .header-inner { grid-template-columns: 180px 1fr auto; }
  .counter-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 992px) {
  .hero-section { height: 70vh; min-height: 500px; }
  .hero-title { font-size: clamp(1.5rem,4vw,2.5rem); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); }
  .counter-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .header-top { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }
  .action-label { display: none; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-list > li > a { padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .mega-menu { display: none !important; }
  .flash-sale-header { flex-direction: column; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2,1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cars-grid { grid-template-columns: repeat(3,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .counter-grid { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-content { padding: 0 24px; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cars-grid { grid-template-columns: repeat(2,1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2,1fr); }
  .countdown-timer { flex-wrap: wrap; justify-content: center; }
  .flash-sale-title h2 { font-size: 1.2rem; }
}

/* ============================================================
   LOGO IMAGE
   ============================================================ */
.logo-img { height: 48px; width: auto; object-fit: contain; display: block; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* ============================================================
   CUSTOM CURSOR — disabled, using default OS cursor
   ============================================================ */
.cursor-ring, .cursor-dot { display: none !important; }

/* ============================================================
   MOBILE OFFCANVAS MENU
   ============================================================ */
.offcanvas-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  z-index: 9990; opacity: 0; pointer-events: none;
  transition: opacity .3s ease; backdrop-filter: blur(2px);
}
.offcanvas-overlay.open { opacity: 1; pointer-events: auto; }

.offcanvas-menu {
  position: fixed; top: 0; right: -310px; width: 290px; height: 100%;
  background: var(--dark-2); border-left: 1px solid var(--border);
  z-index: 9991; transition: right .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; display: flex; flex-direction: column;
  scrollbar-width: thin;
}
.offcanvas-menu.open { right: 0; }
.offcanvas-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--dark-2); z-index: 2;
}
.offcanvas-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--dark-4);
  border: none; color: var(--text); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: var(--transition);
}
.offcanvas-close:hover { background: var(--gold); color: #fff; }
.offcanvas-user {
  padding: 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(var(--gold-rgb),.08), transparent);
}
.offcanvas-user-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(var(--gold-rgb),.15); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--gold); margin-bottom: 10px;
}
.offcanvas-nav { padding: 12px 0; flex: 1; }
.offcanvas-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; color: var(--text-muted); font-size: .95rem;
  transition: var(--transition); border-right: 3px solid transparent;
}
.offcanvas-nav a:hover, .offcanvas-nav a.active {
  color: var(--gold); background: rgba(var(--gold-rgb),.05);
  border-right-color: var(--gold);
}
.offcanvas-nav a i { width: 20px; text-align: center; color: var(--gold); font-size: .9rem; }
.offcanvas-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.offcanvas-theme-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
}

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.mobile-bottom-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 62px;
  background: var(--dark-2); border-top: 1px solid var(--border);
  z-index: 9950; box-shadow: 0 -6px 24px rgba(0,0,0,.5);
  safe-area-inset-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 768px) {
  .mobile-bottom-bar { display: flex; align-items: stretch; }
  body { padding-bottom: 62px; }
  .cart-drawer { bottom: 62px; }
}
.bottom-bar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; color: var(--text-muted);
  font-size: 1.15rem; background: none; border: none; padding: 6px 4px;
  transition: color .2s ease; position: relative; text-decoration: none;
  font-family: var(--font);
}
.bottom-bar-item .bar-label { font-size: .62rem; font-weight: 600; margin-top: 1px; }
.bottom-bar-item.active, .bottom-bar-item:hover { color: var(--gold); }
.bottom-bar-cart-dot {
  position: absolute; top: 6px; right: calc(50% - 14px);
  background: var(--gold); color: #fff; font-size: .6rem; font-weight: 800;
  min-width: 17px; height: 17px; border-radius: 9px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--dark-2);
}
.bottom-bar-center {
  position: relative; flex: 1.3;
}
.bottom-bar-center .bottom-bar-item {
  width: 100%;height: 100%;
}

/* ============================================================
   TRUST BADGES (stats-bar) — RESPONSIVE FIX
   ============================================================ */
.stats-bar { background: var(--dark-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.stat-item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.stat-item:first-child { border-right: none; }
.stat-item:hover { background: rgba(var(--gold-rgb),.04); }
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(var(--gold-rgb),.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--gold); flex-shrink: 0;
}
.stat-info h3 { font-size: .88rem; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.stat-info p { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 14px 12px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; font-size: 1rem; }
  .stat-info h3 { font-size: .8rem; }
  .stat-info p { font-size: .7rem; }
}

/* ============================================================
   BACKGROUND DECORATIVE TEXT
   ============================================================ */
.bg-deco {
  position: absolute; inset: 0; pointer-events: none;
  overflow: hidden; z-index: 0;
}
.bg-deco-text {
  position: absolute; font-size: clamp(60px,12vw,160px);
  font-weight: 900; color: var(--text); opacity: .025;
  white-space: nowrap; user-select: none; letter-spacing: .05em;
}
.bg-deco-icon {
  position: absolute; font-size: clamp(40px,8vw,120px);
  color: var(--gold); opacity: .04; user-select: none;
}

/* ============================================================
   TESTIMONIALS / REVIEWS
   ============================================================ */
.testimonials-section { background: var(--dark-3); position: relative; overflow: hidden; }
.testimonial-card {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  position: relative; transition: var(--transition); height: 100%;
}
.testimonial-card::before {
  content: '\201C'; position: absolute; top: 12px; right: 20px;
  font-size: 5rem; color: rgba(var(--gold-rgb),.12);
  line-height: 1; font-family: Georgia, serif; pointer-events: none;
}
.testimonial-card:hover { border-color: var(--gold); box-shadow: 0 8px 32px rgba(var(--gold-rgb),.1); }
.testimonial-stars { color: var(--gold); font-size: .85rem; margin-bottom: 14px; display: flex; gap: 2px; }
.testimonial-text {
  color: var(--text-muted); line-height: 1.9; font-size: .92rem;
  margin-bottom: 20px; min-height: 80px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(var(--gold-rgb),.1); border: 2px solid rgba(var(--gold-rgb),.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gold); flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .92rem; margin-bottom: 2px; }
.testimonial-car { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.testimonial-car i { color: var(--gold); font-size: .7rem; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 24px; }
.why-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 24px;
  text-align: center; transition: var(--transition);
  position: relative; overflow: hidden;
}
.why-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg,var(--gold-dark),var(--gold-light));
  transform: scaleX(0); transform-origin: center; transition: transform .4s ease;
}
.why-card:hover { border-color: var(--gold); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(var(--gold-rgb),.12); }
.why-card:hover::after { transform: scaleX(1); }
.why-card-icon {
  width: 68px; height: 68px; border-radius: 18px;
  background: rgba(var(--gold-rgb),.1); margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--gold);
  transition: background .3s, transform .3s;
}
.why-card:hover .why-card-icon { background: var(--gold); color: #fff; transform: scale(1.08); }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   STATS HERO COUNTER BAND
   ============================================================ */
.stats-band {
  background: linear-gradient(135deg, #0f0f0f 0%, var(--dark-3) 50%, #0f0f0f 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--gold-rgb),.06) 0%, transparent 70%);
}
.stats-band-grid { display: grid; grid-template-columns: repeat(4,1fr); position: relative; }
.stats-band-item {
  text-align: center; padding: 44px 20px;
  border-right: 1px solid var(--border); transition: var(--transition);
}
.stats-band-item:last-child { border-right: none; }
.stats-band-item:hover { background: rgba(var(--gold-rgb),.03); }
.stats-band-num {
  font-size: 2.8rem; font-weight: 900; color: var(--gold); line-height: 1;
  margin-bottom: 8px; display: block;
}
.stats-band-label { color: var(--text-muted); font-size: .88rem; }
.stats-band-icon { font-size: 1.4rem; color: var(--gold); margin-bottom: 12px; opacity: .6; }
@media (max-width: 768px) {
  .stats-band-grid { grid-template-columns: repeat(2,1fr); }
  .stats-band-item:nth-child(2) { border-right: none; }
  .stats-band-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stats-band-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .stats-band-num { font-size: 2rem; }
  .stats-band-item { padding: 28px 16px; }
}

/* ============================================================
   INTERACTIVE CATEGORY FINDER
   ============================================================ */
.cat-finder { background: var(--dark-2); }
.cat-finder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 16px; }
.cat-finder-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; transition: var(--transition); position: relative; overflow: hidden;
  text-decoration: none; color: var(--text);
}
.cat-finder-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(var(--gold-rgb),.12); }
.cat-finder-icon { font-size: 2rem; color: var(--gold); margin-bottom: 10px; display: block; }
.cat-finder-name { font-size: .88rem; font-weight: 600; }
.cat-finder-count { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter-band {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 60%, #ff6b6b 100%);
  position: relative; overflow: hidden; padding: 60px 0;
}
.newsletter-band::before {
  content: '\f0e0'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; left: -40px; top: 50%; transform: translateY(-50%);
  font-size: 200px; color: rgba(255,255,255,.06); pointer-events: none;
}
.newsletter-band-inner { text-align: center; position: relative; }
.newsletter-band h2 { color: #fff; font-size: 1.8rem; margin-bottom: 8px; }
.newsletter-band p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.newsletter-band-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-band-input {
  flex: 1; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm); padding: 12px 18px; color: #fff;
  font-family: var(--font); font-size: .95rem;
}
.newsletter-band-input::placeholder { color: rgba(255,255,255,.65); }
.newsletter-band-input:focus { outline: none; background: rgba(255,255,255,.22); border-color: #fff; }
.newsletter-band-btn {
  background: #fff; color: var(--gold-dark); border: none;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700;
  cursor: pointer; font-family: var(--font); transition: var(--transition); white-space: nowrap;
}
.newsletter-band-btn:hover { background: var(--dark); color: #fff; }

/* ============================================================
   BRANCH LOCATIONS
   ============================================================ */
.branches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; }
.branch-card {
  background: var(--dark-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: var(--transition);
  display: flex; gap: 14px;
}
.branch-card:hover { border-color: var(--gold); }
.branch-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(var(--gold-rgb),.1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gold); margin-top: 2px;
}
.branch-card-title { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.branch-card-addr { font-size: .8rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   HEADER MOBILE IMPROVEMENTS
   ============================================================ */
@media (max-width: 768px) {
  .header-actions .action-btn:not(.cart-action) { display: none; }
  .theme-toggle { display: flex; }
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(var(--gold-rgb),.1); border: 1px solid var(--border);
  color: var(--gold); font-size: .95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ============================================================
   HOMEPAGE HERO BG DECORATION
   ============================================================ */
.hero-section { position: relative; }
.hero-bg-deco {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}
.hero-bg-deco-text {
  position: absolute; bottom: -20px; left: -20px;
  font-size: clamp(80px,16vw,220px); font-weight: 900;
  color: #fff; opacity: .03; white-space: nowrap; user-select: none;
  letter-spacing: .1em;
}
.hero-slide, .hero-content { position: relative; z-index: 2; }

/* ============================================================
   RESPONSIVE OVERFLOW FIX (no horizontal scroll)
   ============================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
.container { overflow-x: hidden; }
.swiper { width: 100%; overflow: hidden; }

/* ============================================================
   CONTACT BRANCHES
   ============================================================ */
@media (max-width: 768px) {
  .branches-grid { grid-template-columns: 1fr; }
  .newsletter-band-form { flex-direction: column; }
  .stats-band-grid { grid-template-columns: repeat(2,1fr); }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .cat-finder-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
  .cat-finder-grid { grid-template-columns: repeat(2,1fr); }
  .hero-bg-deco-text { font-size: 60px; }
}

/* ============================================================
   FIX #1 — NAV SCROLLBAR
   ============================================================ */
.main-nav { overflow: visible; }
.nav-list { overflow: visible; flex-wrap: nowrap; }
.main-nav .container { overflow: visible; }

/* ============================================================
   FIX #2 — HERO SECTION: cinematic redesign
   ============================================================ */
.hero-section {
  position: relative;
  height: 92vh; min-height: 640px; overflow: hidden;
}
/* Animated gradient behind slides */
.hero-section::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 120% 100% at 20% 60%,
              rgba(220,38,38,.18) 0%, transparent 60%),
              radial-gradient(ellipse 80% 80% at 80% 30%,
              rgba(220,38,38,.07) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { opacity: .6; }
  to   { opacity: 1; }
}
/* Floating geometric shapes */
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute; border-radius: 50%;
  background: rgba(220,38,38,.06);
  border: 1px solid rgba(220,38,38,.1);
  animation: floatShape 12s ease-in-out infinite;
}
/* RTL: big shapes on LEFT (visual-end), leave RIGHT (text side) clean */
.hero-shape:nth-child(1) { width:420px;height:420px; top:-100px; left:-100px; animation-delay:0s; }
.hero-shape:nth-child(2) { width:240px;height:240px; bottom:10%; left:5%; animation-delay:-4s; animation-duration:9s; }
.hero-shape:nth-child(3) { width:150px;height:150px; top:20%; left:30%; animation-delay:-7s; animation-duration:11s; }
@keyframes floatShape {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  33%  { transform: translate(18px,-22px) rotate(60deg); }
  66%  { transform: translate(-12px,14px) rotate(120deg); }
}
/* Animated scan line */
.hero-scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,.5), transparent);
  z-index: 1; animation: scanline 6s linear infinite;
}
@keyframes scanline {
  from { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { top: 100%; opacity: 0; }
}
/* Hero slide overlay — RIGHT-heavy gradient (RTL: text on right side) */
.hero-slide-overlay {
  background: linear-gradient(to left,
    rgba(0,0,0,.94) 0%,
    rgba(0,0,0,.78) 35%,
    rgba(0,0,0,.35) 65%,
    transparent 100%);
}
/* Hero content — pinned to the right (RTL start side) */
.hero-content {
  padding: 0 0 0 0;
  max-width: 620px;
  text-align: right;
  margin-right: 0;
  margin-left: auto; /* push to right side in RTL block context = already default, but explicit */
}
/* In RTL flex, flex-start = right. Force hero container alignment */
.hero-section .container {
  justify-content: flex-start; /* = right in RTL */
}
@media (max-width: 768px) {
  .hero-content { padding: 0 20px; max-width: 100%; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220,38,38,.15);
  border: 1px solid rgba(220,38,38,.4);
  color: var(--gold-light); font-size: .75rem; font-weight: 700;
  padding: 7px 18px; border-radius: 50px;
  margin-bottom: 22px; letter-spacing: .5px;
  backdrop-filter: blur(6px);
}
.hero-badge i { animation: pulse-fire .8s ease-in-out infinite alternate; }
.hero-title {
  font-size: clamp(2.1rem,5.5vw,3.8rem);
  font-weight: 900; line-height: 1.18;
  margin-bottom: 20px; color: #fff;
  text-shadow: 0 4px 24px rgba(0,0,0,.5);
}
.hero-title span { color: var(--gold); }
.hero-title-line {
  display: block; overflow: hidden;
}
.hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  margin-bottom: 36px; max-width: 460px; line-height: 1.9;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-primary {
  background: linear-gradient(135deg,var(--gold-dark),var(--gold));
  box-shadow: 0 8px 28px rgba(220,38,38,.45);
}
.hero-actions .btn-primary:hover {
  box-shadow: 0 12px 36px rgba(220,38,38,.6);
  transform: translateY(-3px);
}
/* Mini stats in hero */
.hero-mini-stats {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.5rem; font-weight: 900; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 3px; }
.hero-stat-div { width: 1px; background: rgba(255,255,255,.15); }
/* Swiper pagination */
.hero-swiper .swiper-pagination { bottom: 28px; }
.swiper-pagination-bullet { background: rgba(255,255,255,.45) !important; width: 8px !important; height: 8px !important; }
.swiper-pagination-bullet-active {
  background: var(--gold) !important;
  width: 28px !important; border-radius: 4px !important;
}

/* ============================================================
   FIX #3 — no gap between hero and stats bar
   ============================================================ */
.hero-section { margin-bottom: 0; }
.stats-bar { margin-top: 0; }
main > .hero-section + .stats-bar { margin-top: 0; }

/* ============================================================
   FIX #6 — TRUE CENTER-ALIGN (وسط‌چین واقعی)
   Switch grids to flexbox so justify-content:center actually
   centers incomplete last rows and all cards around the page center
   ============================================================ */
.why-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.why-card {
  flex: 0 0 auto;
  width: clamp(220px, calc(25% - 24px), 280px);
}
.cars-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.car-make-card {
  flex: 0 0 auto;
  width: clamp(160px, calc(16.666% - 20px), 210px);
}
.cat-finder-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.cat-finder-card {
  flex: 0 0 auto;
  width: clamp(140px, calc(12.5% - 16px), 185px);
}
@media (max-width: 768px) {
  .why-card   { width: calc(50% - 12px); }
  .car-make-card { width: calc(33.333% - 14px); }
  .cat-finder-card { width: calc(33.333% - 11px); }
}
@media (max-width: 480px) {
  .why-card   { width: calc(100% - 0px); }
  .car-make-card { width: calc(50% - 10px); }
  .cat-finder-card { width: calc(50% - 8px); }
}

/* ============================================================
   FIX #7 — footer: remove ugly top gap
   ============================================================ */
.site-footer { margin-top: 0; }

/* ============================================================
   FIX #10 — STATS COUNTER BAND: elegant dark design
   ============================================================ */
.stats-band {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 120% at 10% 50%, rgba(220,38,38,.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 80% at 90% 50%, rgba(220,38,38,.04) 0%, transparent 60%);
  pointer-events: none;
}
.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  position: relative; z-index: 1;
}
.stats-band-item {
  text-align: center; padding: 52px 20px;
  border-right: 1px solid var(--border);
  transition: var(--transition); position: relative;
}
.stats-band-item:last-child { border-right: none; }
.stats-band-item::after {
  content: '';
  position: absolute; bottom: 0; left: 20%; right: 20%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .3s;
}
.stats-band-item:hover::after { opacity: .5; }
.stats-band-item:hover { background: rgba(var(--gold-rgb),.025); }
.stats-band-icon {
  font-size: 1.6rem; color: var(--gold); margin-bottom: 14px;
  display: block; opacity: .8;
}
.stats-band-num {
  font-size: 3rem; font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 10px; display: block;
}
.stats-band-label {
  color: var(--text-muted); font-size: .88rem; font-weight: 500;
}
@media (max-width: 768px) {
  .stats-band-grid { grid-template-columns: repeat(2,1fr); }
  .stats-band-item { padding: 32px 16px; }
  .stats-band-num { font-size: 2rem; }
  .stats-band-item:nth-child(2) { border-right: none; }
  .stats-band-item:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stats-band-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
}

/* ============================================================
   FIX #11 — PROFESSIONAL SCROLL EFFECTS
   ============================================================ */
/* Parallax float helper */
.parallax-float {
  will-change: transform;
  transition: transform .1s linear;
}
/* Section reveal: stagger children */
.stagger-children > * {
  opacity: 0; transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.stagger-children.in-view > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:.05s; }
.stagger-children.in-view > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:.12s; }
.stagger-children.in-view > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:.19s; }
.stagger-children.in-view > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:.26s; }
.stagger-children.in-view > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:.33s; }
.stagger-children.in-view > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:.40s; }
.stagger-children.in-view > *:nth-child(7) { opacity:1; transform:translateY(0); transition-delay:.47s; }
.stagger-children.in-view > *:nth-child(8) { opacity:1; transform:translateY(0); transition-delay:.54s; }
/* Reveal from left/right */
[data-reveal="left"]  { opacity:0; transform:translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal="right"] { opacity:0; transform:translateX(40px);  transition: opacity .7s ease, transform .7s ease; }
[data-reveal="up"]    { opacity:0; transform:translateY(40px);  transition: opacity .7s ease, transform .7s ease; }
[data-reveal="zoom"]  { opacity:0; transform:scale(.9);          transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity:1; transform:none; }
/* Scrolled header shadow */
.site-header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
  border-bottom-color: rgba(var(--gold-rgb),.2);
}

/* ============================================================
   FLASH SALE SECTION — DIGIKALA STYLE ENHANCED
   ============================================================ */
.flash-sale-section {
  background: linear-gradient(160deg, #0d0505 0%, #180808 45%, #0a0a0a 100%);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid rgba(var(--gold-rgb),.15);
  padding: 44px 0;
  position: relative; overflow: hidden;
}
.flash-sale-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%,
    rgba(220,38,38,.06) 0%, transparent 70%);
  pointer-events: none;
}
.flash-sale-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
  position: relative; z-index: 2;
}
.flash-product-card {
  background: var(--dark-3);
  border: 1px solid rgba(var(--gold-rgb),.1);
  border-radius: var(--radius); overflow: hidden;
  transition: var(--transition); position: relative; cursor: pointer;
}
.flash-product-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(220,38,38,.15);
}
.flash-discount-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: linear-gradient(135deg,var(--gold-dark),var(--gold));
  color: #fff; border-radius: 50%;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 900;
  box-shadow: 0 4px 12px rgba(220,38,38,.4);
}
.flash-product-card img {
  width: 100%; height: 170px; object-fit: cover;
  background: var(--dark-4); display: block;
  transition: transform .5s ease;
}
.flash-product-card:hover img { transform: scale(1.05); }
/* Flash product card — Digikala-inspired white card */
.flash-product-card {
  background: #fff; border-radius: 12px;
  border: 1px solid #f0f0f0;
  overflow: hidden; position: relative; cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.flash-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  border-color: var(--gold);
}
.flash-img-wrap {
  display: block; overflow: hidden;
  background: #f8f8f8; height: 180px;
}
.flash-product-card img {
  width: 100%; height: 180px; object-fit: contain;
  background: #f8f8f8; display: block;
  transition: transform .5s ease; padding: 8px;
}
.flash-product-card:hover img { transform: scale(1.06); }
.flash-product-info { padding: 12px 14px 14px; }
.flash-product-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: .83rem; font-weight: 600;
  color: #1a1a1a; line-height: 1.5; margin-bottom: 10px; height: 2.55em;
  text-decoration: none;
}
.flash-product-name:hover { color: var(--gold); }
.flash-prices { display: flex; flex-direction: column; gap: 2px; }
.flash-prices del { font-size: .72rem; color: #aaa; }
.flash-prices strong { font-size: 1rem; font-weight: 800; color: var(--gold); }
/* Stock bar */
.flash-stock-bar { margin-top: 10px; }
.flash-stock-bar-labels {
  display: flex; justify-content: space-between;
  margin-bottom: 5px; font-size: .67rem; color: #999;
}
.flash-stock-track {
  height: 5px; background: #e8e8e8; border-radius: 3px; overflow: hidden;
}
.flash-stock-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 1.2s ease;
}
.flash-cart-btn { margin-top: 12px; font-size: .8rem; }

/* ============================================================
   LIGHT MODE OVERRIDES FOR NEW SECTIONS
   ============================================================ */
body.light-mode .stats-band { background: #f8f8f8; }
body.light-mode .flash-sale-section { background: linear-gradient(160deg,#1a0505,#200808,#111); }
body.light-mode .hero-slide-overlay {
  background: linear-gradient(to left, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 45%, transparent 100%);
}
body.light-mode .testimonials-section { background: var(--dark-3); }
body.light-mode .stats-band-num { -webkit-text-fill-color: var(--gold); }

/* ============================================================
   HERO RIGHT-SIDE IMAGE PANEL (desktop decorative)
   ============================================================ */
.hero-right-panel {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 42%; z-index: 1; pointer-events: none;
  overflow: hidden;
}
.hero-right-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, transparent 60%);
  z-index: 2;
}
.hero-right-panel img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .3; mix-blend-mode: luminosity;
}
@media (max-width: 768px) {
  .hero-right-panel { display: none; }
}

/* ============================================================
   PAGE EDITOR OVERLAY (Issue #9)
   ============================================================ */
.page-edit-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: linear-gradient(135deg,#1e1e1e,#2d2d2d);
  border-bottom: 2px solid var(--gold); z-index: 99999;
  display: flex; align-items: center; gap: 12px; padding: 0 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.7);
}
.page-edit-bar-logo { font-size: .85rem; font-weight: 700; color: var(--gold); margin-left: auto; }
.page-edit-bar .peb-btn {
  padding: 7px 18px; border-radius: 6px; font-size: .82rem; font-weight: 600;
  border: none; cursor: pointer; font-family: var(--font); transition: var(--transition);
}
.peb-btn-save { background: var(--gold); color: #000; }
.peb-btn-save:hover { background: var(--gold-light); }
.peb-btn-exit { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.peb-btn-exit:hover { background: rgba(229,62,62,.2); border-color: #e53e3e; }
.peb-section-toggle { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255,255,255,.7); }
.peb-section-toggle input { accent-color: var(--gold); }

/* Editable block highlight */
body.page-editor-on [data-editable] {
  outline: 2px dashed rgba(220,38,38,.4); outline-offset: 4px;
  cursor: text; position: relative;
  transition: outline .2s;
}
body.page-editor-on [data-editable]:hover {
  outline-color: var(--gold); background: rgba(220,38,38,.03);
}
body.page-editor-on [data-editable]:focus {
  outline: 2px solid var(--gold); background: rgba(220,38,38,.05);
}
/* Block controls tooltip */
body.page-editor-on [data-editable]::before {
  content: attr(data-label);
  position: absolute; top: -22px; right: 0;
  background: var(--gold); color: #000;
  font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  white-space: nowrap; pointer-events: none; z-index: 100;
  opacity: 0; transition: opacity .2s;
}
body.page-editor-on [data-editable]:hover::before { opacity: 1; }

/* Widget panel */
.page-widget-panel {
  position: fixed; right: -300px; top: 56px; bottom: 0; width: 280px;
  background: #1e1e1e; border-left: 1px solid #333;
  z-index: 99998; transition: right .35s ease;
  overflow-y: auto; padding: 16px;
}
.page-widget-panel.open { right: 0; }
.page-widget-panel h4 { font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.widget-item {
  background: #2a2a2a; border: 1px solid #333; border-radius: 8px;
  padding: 12px; margin-bottom: 8px; cursor: grab;
  display: flex; align-items: center; gap: 10px; color: #ccc; font-size: .85rem;
  transition: border-color .2s;
}
.widget-item:hover { border-color: var(--gold); color: var(--gold); }
.widget-item i { font-size: 1.1rem; width: 24px; color: var(--gold); }

/* Inline TinyMCE toolbar positioning fix */
.tox-tinymce-inline { z-index: 100001 !important; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scrollProgress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 99999;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  width: 0%; transition: width .1s linear;
}

/* ============================================================
   PRODUCT QUICK-LOOK MODAL
   ============================================================ */
.quick-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.8);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
  backdrop-filter: blur(4px);
}
.quick-modal-overlay.open { opacity: 1; visibility: visible; }
.quick-modal {
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; max-width: 680px;
  width: calc(100% - 40px); max-height: 90vh; overflow-y: auto;
  transform: scale(.95); transition: transform .3s ease;
}
.quick-modal-overlay.open .quick-modal { transform: scale(1); }

/* ============================================================
   NEW PRODUCT CARD — pc-wrap
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 20px; }

.pc-wrap {
  position: relative; cursor: pointer;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pc-wrap:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(220,38,38,.18), 0 4px 16px rgba(0,0,0,.4);
}

/* ─── Image Area ─────────────────────────────────── */
.pc-img-area {
  position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--dark-4);
  flex-shrink: 0;
}
.pc-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.pc-wrap:hover .pc-img { transform: scale(1.08); }

/* Gradient overlay on hover */
.pc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.pc-wrap:hover .pc-overlay { opacity: 1; }

/* Discount + status badges */
.pc-badges-tr {
  position: absolute; top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: 5px; z-index: 3;
}
.pc-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: .68rem; font-weight: 800;
  line-height: 1.6; white-space: nowrap;
}
.pc-badge-disc {
  background: var(--gold); color: #fff;
  box-shadow: 0 2px 8px rgba(220,38,38,.4);
}
.pc-badge-out { background: #333; color: #aaa; }
.pc-badge-low { background: rgba(251,191,36,.15); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }

/* Wishlist button */
.pc-wish-btn {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  width: 34px; height: 34px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%; color: #ccc;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; cursor: pointer; transition: .2s;
}
.pc-wish-btn:hover { background: rgba(220,38,38,.8); color: #fff; border-color: transparent; }
.pc-wish-btn.pc-wished { background: rgba(220,38,38,.85); color: #fff; border-color: transparent; }

/* Hover quick actions bar (bottom of image) */
.pc-hover-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: center; padding: 10px;
  transform: translateY(100%); transition: transform .28s ease;
  z-index: 5;
}
.pc-wrap:hover .pc-hover-actions { transform: translateY(0); }
.pc-quick-view {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.92); color: #111;
  border-radius: 20px; padding: 6px 18px;
  font-size: .75rem; font-weight: 700;
  text-decoration: none; transition: background .2s;
  white-space: nowrap;
}
.pc-quick-view:hover { background: var(--gold); color: #fff; }

/* ─── Info Area ──────────────────────────────────── */
.pc-info {
  padding: 16px 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.pc-brand {
  font-size: .7rem; font-weight: 700;
  color: var(--gold); letter-spacing: .5px;
  text-transform: uppercase;
}
.pc-name {
  font-size: .9rem; font-weight: 700;
  color: var(--text); line-height: 1.45;
  text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.pc-name:hover { color: var(--gold); }

/* Rating */
.pc-rating {
  display: flex; align-items: center; gap: 3px;
  font-size: .72rem; color: #f59e0b;
}
.pc-rating .fa-star, .pc-rating .far.fa-star { font-size: .72rem; }
.pc-rating .far.fa-star { color: #444; }
.pc-rating-num { color: #f59e0b; font-weight: 700; margin-right: 4px; font-size: .75rem; }
.pc-rating-cnt { color: var(--text-muted); font-size: .7rem; }
.pc-views-row {
  display: flex; align-items: center; gap: 5px;
  font-size: .7rem; color: var(--text-muted);
}
.pc-views-row .fa-fire { color: #f97316; }
.pc-rating-placeholder { height: 16px; }

/* Prices */
.pc-price-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 6px;
  flex-wrap: wrap; margin-top: 2px;
}
.pc-prices { display: flex; flex-direction: column; gap: 1px; }
.pc-price-now {
  font-size: 1.05rem; font-weight: 900;
  color: var(--gold);
}
.pc-price-old {
  font-size: .72rem; color: var(--text-muted);
  text-decoration: line-through;
}
.pc-save-badge {
  font-size: .63rem; font-weight: 700;
  background: rgba(220,38,38,.12); color: #fc8181;
  border-radius: 6px; padding: 3px 8px;
  white-space: nowrap; align-self: flex-start;
  margin-top: 2px;
}

/* Cart button */
.pc-cart-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px 14px;
  background: linear-gradient(135deg, var(--dark-4) 0%, var(--dark-5) 100%);
  border: 1px solid var(--border);
  color: var(--text); border-radius: 10px;
  font-family: var(--font); font-size: .82rem; font-weight: 700;
  cursor: pointer; transition: .2s; margin-top: auto;
}
.pc-cart-btn:hover {
  background: var(--gold);
  color: #fff; border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(220,38,38,.35);
}
.pc-cart-btn.pc-cart-out {
  background: var(--dark-5); color: var(--text-muted);
  cursor: not-allowed; border-color: var(--border);
}
.pc-cart-btn.pc-cart-out:hover {
  background: var(--dark-5); color: var(--text-muted);
  box-shadow: none;
}

/* Light mode card */
body.light-mode .pc-wrap {
  background: #fff; border-color: #eee;
}
body.light-mode .pc-wrap:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(220,38,38,.12), 0 4px 16px rgba(0,0,0,.1);
}
body.light-mode .pc-img-area { background: #f5f5f5; }
body.light-mode .pc-name { color: #111; }
body.light-mode .pc-brand { color: var(--gold); }
body.light-mode .pc-rating .far.fa-star { color: #ddd; }
body.light-mode .pc-cart-btn {
  background: #f5f5f5; color: #222; border-color: #e0e0e0;
}
body.light-mode .pc-cart-btn:hover { background: var(--gold); color: #fff; }
body.light-mode .pc-save-badge { background: rgba(220,38,38,.08); }

/* ============================================================
   MOBILE FILTER OFFCANVAS (Shop page)
   ============================================================ */
/* Trigger button — only on mobile */
.filter-mobile-btn {
  display: none;
  align-items: center; gap: 8px;
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px;
  padding: 10px 18px; font-family: var(--font);
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: .2s;
}
.filter-mobile-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-mobile-btn .fmb-badge {
  background: var(--gold); color: #fff;
  border-radius: 50%; width: 20px; height: 20px;
  font-size: .68rem; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}
.filter-mobile-btn .fmb-badge.has-filters { display: inline-flex; }

/* Overlay */
.filter-offcanvas-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  z-index: 9100;
}
.filter-offcanvas-overlay.open { display: block; }

/* Drawer */
.filter-offcanvas {
  position: fixed; top: 0; right: -100%;
  width: min(340px, 90vw); height: 100%;
  background: var(--dark-2); border-left: 1px solid var(--border);
  z-index: 9200; overflow-y: auto;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  padding: 0 0 32px;
}
.filter-offcanvas.open { right: 0; }
.filter-offcanvas-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--dark-2); z-index: 2;
}
.filter-offcanvas-header h3 { font-size: 1rem; font-weight: 800; }
.filter-offcanvas-close {
  background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px;
  width: 34px; height: 34px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: .2s;
}
.filter-offcanvas-close:hover { border-color: var(--gold); color: var(--gold); }
.filter-offcanvas-body { padding: 16px 20px; }
.filter-offcanvas-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: var(--dark-2);
  display: flex; gap: 10px;
}

/* Activate mobile layout */
@media (max-width: 768px) {
  .filter-mobile-btn { display: inline-flex; }
  .filter-sidebar { display: none !important; }
  .shop-layout { grid-template-columns: 1fr; }

  /* Slightly smaller cards on mobile */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-info { padding: 12px 12px 14px; gap: 6px; }
  .pc-name { font-size: .82rem; }
  .pc-price-now { font-size: .95rem; }
  .pc-cart-btn { padding: 8px 10px; font-size: .78rem; }
  .pc-save-badge { display: none; }
}
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SHOP PAGE — PRICE FILTER FIX + MOBILE RESPONSIVE
   ============================================================ */

/* Price inputs always stack vertically so they don't overflow */
.price-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-input {
  width: 100%;
  box-sizing: border-box;
}

/* Mobile trigger bar (filter button + count) */
.shop-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.shop-mobile-count {
  font-size: .85rem;
  color: var(--text-muted);
}

/* Shop products column — no overflow on any device */
.shop-products-col {
  min-width: 0;
  overflow: hidden;
}

/* Sort bar wraps cleanly on small screens */
.sort-bar {
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {

  /* Show mobile filter button, hide desktop sidebar */
  .shop-mobile-bar   { display: flex; }
  .filter-sidebar    { display: none !important; }

  /* Single-column layout */
  .shop-layout {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  /* Products grid: 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Prevent any child from breaking out of viewport */
  .shop-products-col,
  .products-grid,
  .pc-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  /* Compact card on mobile */
  .pc-info         { padding: 10px 10px 12px; gap: 5px; }
  .pc-name         { font-size: .78rem; -webkit-line-clamp: 2; }
  .pc-price-now    { font-size: .88rem; }
  .pc-cart-btn     { font-size: .75rem; padding: 8px 6px; gap: 4px; }
  .pc-save-badge   { display: none; }
  .pc-badge        { font-size: .62rem; padding: 2px 7px; }
  .pc-hover-actions { display: none; } /* touch devices don't hover */

  /* Sort bar compact */
  .sort-bar {
    padding: 10px 14px;
    font-size: .82rem;
  }
  .sort-bar > span { display: none; } /* hide count — already in mobile bar */
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ============================================================
   GLOBAL OVERFLOW GUARD
   Prevents sections from creating unwanted scrollbars
   ============================================================ */
body { overflow-x: hidden; }
.container { max-width: 100%; box-sizing: border-box; }

/* ── رفع اسکرول عمودی ناخواسته در سکشن‌ها ── */
section,
.section,
.why-section,
.brands-section,
.categories-section,
.blog-reel-section,
.testimonials-section,
.cars-section,
.stats-band,
.flash-sale-section,
.amazon-section,
.loyalty-section {
  overflow-x: clip;   /* فقط horizontal overflow را قطع کن */
  overflow-y: visible; /* vertical را باز بگذار تا sticky header کار کند */
  max-width: 100vw;
}

/* اطمینان از اینکه flash-products-scroll فقط horizontal scroll دارد */
.flash-products-scroll {
  overflow-x: auto;
  overflow-y: hidden !important; /* جلوگیری از vertical scroll */
  max-height: none;
}

/* ── بهینه‌سازی رندر ── */
.pc-wrap,
.brand-card,
.car-card,
.why-card,
.blog-card {
  contain: layout style; /* کاهش reflow */
  will-change: auto;     /* حذف پیش‌بارگذاری GPU غیرضروری */
}

/* Fix: offcanvas filter — ensure it slides from right in RTL */
.filter-offcanvas {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--border);
  transition: left .3s cubic-bezier(.4,0,.2,1);
}
.filter-offcanvas.open { left: 0; }
.filter-offcanvas-overlay.open { display: block; }

/* ============================================================
   HERO SECTION — hs-* (طراحی جدید و جذاب)
   ============================================================ */
.hs-slide {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* پس‌زمینه‌های هر اسلاید */
.hs-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hs-bg-1 {
  background:
    radial-gradient(ellipse 80% 80% at 15% 50%, rgba(180,20,20,.55) 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 85% 20%, rgba(120,0,0,.35) 0%, transparent 60%),
    linear-gradient(135deg, #0d0303 0%, #1a0505 40%, #0a0a0a 100%);
}
.hs-bg-2 {
  background:
    radial-gradient(ellipse 70% 90% at 20% 60%, rgba(220,38,38,.4) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(255,107,53,.15) 0%, transparent 60%),
    linear-gradient(140deg, #0a0a0a 0%, #180404 50%, #0a0505 100%);
}
.hs-bg-3 {
  background:
    radial-gradient(ellipse 70% 80% at 20% 60%, rgba(30,64,175,.3) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(37,99,235,.2) 0%, transparent 60%),
    linear-gradient(140deg, #020610 0%, #050a1a 50%, #0a0a0a 100%);
}

/* شبکه زینتی */
.hs-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(220,38,38,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220,38,38,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 40%, transparent 80%);
}

/* حلقه‌های نئون */
.hs-rings { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hs-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(220,38,38,.12);
  animation: hsRingPulse 4s ease-in-out infinite;
}
.hs-ring-1 { width: 500px; height: 500px; top: 50%; left: -8%; transform: translateY(-50%); animation-delay: 0s; }
.hs-ring-2 { width: 700px; height: 700px; top: 50%; left: -14%; transform: translateY(-50%); animation-delay: 1s; border-color: rgba(220,38,38,.07); }
.hs-ring-3 { width: 900px; height: 900px; top: 50%; left: -22%; transform: translateY(-50%); animation-delay: 2s; border-color: rgba(220,38,38,.04); }
@keyframes hsRingPulse {
  0%, 100% { opacity: .5; transform: translateY(-50%) scale(1); }
  50%       { opacity: 1;  transform: translateY(-50%) scale(1.04); }
}

/* کانتینر اسلاید */
.hs-container {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

/* ستون متن */
.hs-text-col { display: flex; flex-direction: column; gap: 20px; }

/* عنوان کوچک بالا */
.hs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220,38,38,.12);
  border: 1px solid rgba(220,38,38,.3);
  color: #fca5a5;
  border-radius: 30px;
  padding: 7px 18px;
  font-size: .82rem; font-weight: 700;
  width: fit-content;
  animation: hsEyebrowIn .6s ease both;
}
@keyframes hsEyebrowIn { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:none; } }
.hs-eyebrow-fire { background: rgba(255,107,53,.12); border-color: rgba(255,107,53,.3); color: #fdba74; }
.hs-dot { width: 8px; height: 8px; border-radius: 50%; background: #dc2626; animation: hsDotBlink 1.4s ease-in-out infinite; }
@keyframes hsDotBlink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.7)} }

/* عنوان اصلی */
.hs-title {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.18;
  color: #fff;
  display: flex; flex-direction: column; gap: 4px;
  margin: 0;
}
.hs-title-accent {
  background: linear-gradient(90deg, #dc2626 0%, #f97316 50%, #dc2626 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hsTitleShine 3s linear infinite;
}
@keyframes hsTitleShine { to { background-position: 200% center; } }
.hs-title-pct {
  font-size: 1.3em;
  background: linear-gradient(90deg, #fbbf24, #ef4444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* توضیح */
.hs-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.9;
  max-width: 520px;
  margin: 0;
}
.hs-desc b { color: rgba(255,255,255,.9); font-weight: 700; }

/* دکمه‌ها */
.hs-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font); font-size: .9rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.hs-btn-primary {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(220,38,38,.4);
}
.hs-btn-primary:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(220,38,38,.5);
  color: #fff;
}
.hs-btn-ghost {
  background: rgba(255,255,255,.07);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.hs-btn-ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.4);
  transform: translateY(-2px);
  color: #fff;
}

/* آمار */
.hs-stats {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 14px 20px;
  width: fit-content;
  backdrop-filter: blur(6px);
}
.hs-stat { text-align: center; padding: 0 16px; }
.hs-stat-n { display: block; font-size: 1.25rem; font-weight: 900; color: #fff; line-height: 1; }
.hs-stat-l { display: block; font-size: .7rem; color: rgba(255,255,255,.45); margin-top: 4px; }
.hs-stat-sep { width: 1px; height: 30px; background: rgba(255,255,255,.12); flex-shrink: 0; }

/* ستون تصویر */
.hs-img-col { position: relative; display: flex; justify-content: center; align-items: center; }

/* ── تصویر ماشین (اسلاید ۱) ── */
.hs-car-wrap {
  position: relative; width: 100%;
  filter: drop-shadow(0 30px 60px rgba(220,38,38,.25));
}
.hs-car-img {
  width: 100%; max-width: 600px;
  animation: hsCarFloat 6s ease-in-out infinite;
}
@keyframes hsCarFloat {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-12px) rotate(.4deg); }
  66%      { transform: translateY(-6px) rotate(-.2deg); }
}
.hs-car-glow {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 70%; height: 40px;
  background: radial-gradient(ellipse, rgba(220,38,38,.5) 0%, transparent 70%);
  filter: blur(12px);
  animation: hsCarFloat 6s ease-in-out infinite;
}

/* بج‌های شناور */
.hs-float-badge {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  background: rgba(10,10,10,.85);
  border: 1px solid rgba(220,38,38,.35);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: .78rem; font-weight: 700; color: #fff;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.hs-float-badge i { color: var(--gold); }
.hs-float-1 { top: 12%; left: -5%; animation: hsFloat1 4s ease-in-out infinite; }
.hs-float-2 { bottom: 18%; right: -5%; animation: hsFloat2 4.5s ease-in-out infinite; }
@keyframes hsFloat1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes hsFloat2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* ── ویژوال فروش (اسلاید ۲) ── */
.hs-sale-visual {
  position: relative; width: 340px; height: 340px;
}
.hs-sale-card {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(15,15,15,.9);
  border: 1px solid rgba(220,38,38,.25);
  border-radius: 14px;
  padding: 18px 22px;
  backdrop-filter: blur(10px);
  text-align: center;
  animation: hsCardIn .6s ease both;
}
.hs-sale-card i { font-size: 1.8rem; color: var(--gold); }
.hs-sale-card span { font-size: .78rem; color: rgba(255,255,255,.6); }
.hs-sale-card strong { font-size: 1.2rem; font-weight: 900; color: #4ade80; }
.hs-sale-card-1 { top: 0;   left: 0;   animation-delay: .1s; }
.hs-sale-card-2 { top: 0;   right: 0;  animation-delay: .2s; }
.hs-sale-card-3 { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: .3s; }
@keyframes hsCardIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.hs-sale-card-3 { animation-name: hsCardIn3; }
@keyframes hsCardIn3 { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
.hs-sale-disc {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; color: #fff;
  box-shadow: 0 0 40px rgba(220,38,38,.5);
  animation: hsPulse 2s ease-in-out infinite;
}
.hs-sale-disc span { font-size: .75rem; font-weight: 700; }
.hs-sale-disc big { font-size: 2.2rem; font-weight: 900; line-height: 1; }
@keyframes hsPulse { 0%,100%{box-shadow:0 0 30px rgba(220,38,38,.4)} 50%{box-shadow:0 0 60px rgba(220,38,38,.7)} }

/* کارت‌های ترست */
.hs-trust-row {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hs-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; color: rgba(255,255,255,.5);
}
.hs-trust-item i { color: var(--gold); }

/* ── ویژوال برند خودرو (اسلاید ۳) ── */
.hs-brands-visual {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.hs-brand-pill {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px; padding: 14px 8px;
  transition: .2s; cursor: pointer;
  text-align: center;
  animation: hsCardIn .5s ease both;
}
.hs-brand-pill:hover { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.4); transform: translateY(-3px); }
.hs-brand-pill img { width: 42px; height: 32px; object-fit: contain; filter: brightness(.85) grayscale(.2); }
.hs-brand-pill:hover img { filter: brightness(1); }
.hs-brand-pill span { font-size: .7rem; color: rgba(255,255,255,.6); }

/* فرم جستجو هیرو */
.hs-search-form {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
}
.hs-select {
  flex: 1; min-width: 140px;
  background: rgba(0,0,0,.4); color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 10px 14px;
  font-family: var(--font); font-size: .85rem;
  outline: none; cursor: pointer;
}
.hs-select option { background: #111; }
.hs-select:focus { border-color: rgba(220,38,38,.5); }

/* ذرات متحرک اسلاید ۲ */
.hs-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hs-p {
  position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: .4;
  animation: hsPart 5s ease-in-out infinite;
}
.hs-p:nth-child(1){top:20%;left:15%;animation-delay:0s}
.hs-p:nth-child(2){top:60%;left:25%;animation-delay:.8s}
.hs-p:nth-child(3){top:35%;left:70%;animation-delay:1.6s}
.hs-p:nth-child(4){top:75%;left:80%;animation-delay:2.4s}
.hs-p:nth-child(5){top:50%;left:50%;animation-delay:3.2s}
.hs-p:nth-child(6){top:10%;left:90%;animation-delay:4s}
@keyframes hsPart {
  0%,100%{transform:translateY(0) scale(1);opacity:.4}
  50%{transform:translateY(-30px) scale(1.5);opacity:.8}
}

/* دکمه‌های ناوبری swiper */
.hs-nav-btn {
  color: var(--gold) !important;
  background: rgba(0,0,0,.5) !important;
  border: 1px solid rgba(220,38,38,.3) !important;
  border-radius: 50% !important;
  width: 42px !important; height: 42px !important;
  backdrop-filter: blur(6px);
}
.hs-nav-btn::after { font-size: .9rem !important; }

/* پیجینیشن */
.hs-pagination .swiper-pagination-bullet {
  background: rgba(255,255,255,.4);
  width: 8px; height: 8px;
}
.hs-pagination .swiper-pagination-bullet-active {
  background: var(--gold);
  width: 24px; border-radius: 4px;
  transition: width .3s;
}

/* ── موبایل هیرو ── */
@media (max-width: 900px) {
  .hs-container { grid-template-columns: 1fr; gap: 0; }
  .hs-img-col { display: none; }
  .hs-slide { min-height: 70vh; }
  .hs-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .hs-stats { padding: 10px 12px; }
  .hs-stat { padding: 0 10px; }
  .hs-stat-n { font-size: 1rem; }
}
@media (max-width: 600px) {
  .hs-slide { min-height: 75vh; }
  .hs-actions { gap: 8px; }
  .hs-btn { padding: 11px 18px; font-size: .82rem; }
  .hs-stats { flex-wrap: wrap; gap: 8px; width: 100%; }
  .hs-stat-sep { display: none; }
  .hs-search-form { flex-direction: column; }
}

/* ============================================================
   HERO V2 — Clean, lightweight, no expensive effects
   ============================================================ */
.hero-v2 {
  position: relative;
  background:
    radial-gradient(ellipse 60% 70% at 85% 40%, rgba(220,38,38,.12) 0%, transparent 60%),
    var(--dark-1);
  border-bottom: 1px solid var(--border);
}
.hv2-bg { display: none; } /* orbs disabled for performance */
.hv2-grid { display: none; }
.hv2-wrap {
  display: flex;
  align-items: center;
  gap: 48px;
  /* فقط top/bottom — left/right از .container (60px) می‌آید */
  padding-top: 80px;
  padding-bottom: 70px;
}
.hv2-text { flex: 1; min-width: 0; }
.hv2-visual {
  flex: 0 0 46%;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hv2-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 700; color: var(--gold);
  background: rgba(var(--gold-rgb),.09);
  border: 1px solid rgba(var(--gold-rgb),.22);
  border-radius: 30px; padding: 7px 16px;
  margin-bottom: 22px;
}
.hv2-pulse {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold);
  animation: hv2Pulse 2s ease-in-out infinite;
}
@keyframes hv2Pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb),.5); }
  50%      { box-shadow: 0 0 0 8px rgba(var(--gold-rgb),0); }
}
.hv2-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 900; line-height: 1.22;
  color: #fff; margin-bottom: 16px;
}
.hv2-accent {
  display: block; color: var(--gold);
}
.hv2-sub {
  font-size: .93rem; color: var(--text-muted); line-height: 1.9;
  margin-bottom: 26px; max-width: 520px;
}
.hv2-search {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: 12px; padding: 10px;
  margin-bottom: 24px;
  transition: border-color .2s;
}
.hv2-search:focus-within { border-color: rgba(var(--gold-rgb),.5); }
.hv2-search-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.hv2-search-ico {
  color: var(--gold); font-size: .95rem; padding: 0 4px; flex-shrink: 0;
}
.hv2-sel {
  flex: 1; min-width: 110px;
  background: var(--dark-4); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 10px;
  color: var(--text); font-family: 'Vazirmatn',sans-serif; font-size: .85rem;
  outline: none; transition: border-color .18s;
}
.hv2-sel:focus { border-color: var(--gold); }
.hv2-search-btn {
  padding: 9px 20px; background: var(--gold);
  color: #fff; border: none; border-radius: 8px;
  font-family: 'Vazirmatn',sans-serif; font-size: .85rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .18s;
}
.hv2-search-btn:hover { background: var(--gold-dark); }
.hv2-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hv2-stats { display: flex; align-items: center; flex-wrap: wrap; }
.hv2-stat { display: flex; flex-direction: column; gap: 2px; padding: 0 16px; }
.hv2-stat:first-child { padding-right: 0; }
.hv2-sn { font-size: 1.35rem; font-weight: 900; color: var(--gold); line-height: 1; }
.hv2-sl { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.hv2-sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }
/* Car image */
.hv2-car-glow {
  position: absolute; inset: 20% 10%;
  background: radial-gradient(ellipse, rgba(220,38,38,.14) 0%, transparent 65%);
  border-radius: 50%;
}
.hv2-car {
  position: relative; z-index: 1;
  width: 100%; max-width: 100%;
  border-radius: 18px;
  object-fit: cover;
  object-position: center;
  height: 420px;
  animation: hv2CarFloat 4s ease-in-out infinite;
}
@keyframes hv2CarFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hv2-badge {
  position: absolute; z-index: 2;
  background: var(--dark-3);
  border: 1px solid rgba(var(--gold-rgb),.3);
  border-radius: 30px; padding: 7px 14px;
  display: flex; align-items: center; gap: 7px;
  font-size: .76rem; font-weight: 600; color: #fff;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.hv2-badge i { color: var(--gold); }
.hv2-badge-a { top: 16%; right: 0; }
.hv2-badge-b { bottom: 32%; right: 0; }
.hv2-badge-c { bottom: 12%; left: 4%; }
@media (max-width: 900px) {
  .hv2-wrap { flex-direction: column; padding-top: 60px; padding-bottom: 50px; gap: 0; }
  .hv2-visual { display: none; }
  .hv2-stats { justify-content: flex-start; }
  .hv2-sub { max-width: 100%; }
}
@media (max-width: 560px) {
  .hv2-search-row { flex-direction: column; align-items: stretch; }
  .hv2-search-ico { display: none; }
  .hv2-btns { flex-direction: column; }
  .hv2-title { font-size: 1.8rem; }
}

/* ============================================================
   BLOG REEL — کاروسل مجله‌ای خلاقانه
   ============================================================ */
.blog-reel-section {
  position: relative;
  padding: 72px 0 52px;
  background: var(--dark-1);
  border-top: 1px solid var(--border);
}
.blog-reel-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(var(--gold-rgb),.05) 0%, transparent 68%);
}
.blog-reel-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 40px; flex-wrap: wrap;
}
.blog-reel-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(var(--gold-rgb),.1); border: 1px solid rgba(var(--gold-rgb),.25);
  color: var(--gold); font-size: .76rem; font-weight: 700;
  padding: 5px 13px; border-radius: 20px; margin-bottom: 8px;
}
.blog-reel-count {
  font-size: .78rem; color: var(--text-muted);
  background: var(--dark-4); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 12px; align-self: center; margin-bottom: 8px;
}
.blog-reel-title {
  font-size: clamp(1.4rem,2.4vw,2rem); font-weight: 900; color: var(--text); margin-bottom: 4px;
}
.blog-reel-title span { color: var(--gold); }
.blog-reel-sub { font-size: .84rem; color: var(--text-muted); }
/* Swiper */
.blog-reel-swiper { padding-bottom: 24px !important; overflow: visible !important; }
.blog-reel-scrollbar {
  bottom: 0 !important; height: 3px !important;
  background: var(--dark-5) !important; border-radius: 3px;
}
.blog-reel-scrollbar .swiper-scrollbar-drag {
  background: var(--gold) !important; border-radius: 3px;
}
/* Card */
.blog-reel-card {
  display: block; position: relative;
  border-radius: 18px; overflow: hidden;
  height: 340px; text-decoration: none;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s;
}
.blog-reel-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 28px 56px rgba(0,0,0,.55);
}
.blog-reel-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .55s ease;
}
.blog-reel-card:hover .blog-reel-card-bg { transform: scale(1.07); }
.blog-reel-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,0,0,.28) 35%,
    rgba(0,0,0,.88) 100%
  );
}
.blog-reel-icon {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%);
  font-size: 3.5rem; color: rgba(255,255,255,.06); pointer-events: none;
}
.blog-reel-card-body {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 20px;
}
.blog-reel-card-cat {
  display: inline-block;
  background: var(--gold); color: #fff;
  font-size: .68rem; font-weight: 700;
  padding: 3px 10px; border-radius: 12px; margin-bottom: 10px; width: fit-content;
}
.blog-reel-card-title {
  font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.5; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-reel-card-exc {
  font-size: .77rem; color: rgba(255,255,255,.58); line-height: 1.65; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-reel-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: .77rem; font-weight: 700;
  transition: gap .2s;
}
.blog-reel-card:hover .blog-reel-card-cta { gap: 10px; }
.blog-reel-notice {
  text-align: center; color: var(--text-muted); font-size: .83rem;
  margin-top: 16px; font-style: italic;
}

/* ============================================================
   LIQUID MORPHISM — Product Cards
   ============================================================ */
.pc-wrap {
  background: rgba(18, 18, 18, 0.6) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s ease,
              background .35s ease !important;
}
.pc-wrap:hover {
  transform: translateY(-6px) !important;
  background: rgba(26, 26, 26, 0.78) !important;
  box-shadow:
    0 20px 56px rgba(0,0,0,0.55),
    0 0 0 1px rgba(220,38,38,0.25),
    inset 0 1px 0 rgba(255,255,255,0.09) !important;
}
body.light-mode .pc-wrap {
  background: rgba(255,255,255,0.65) !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}
body.light-mode .pc-wrap:hover {
  background: rgba(255,255,255,0.85) !important;
  box-shadow: 0 20px 56px rgba(0,0,0,0.15) !important;
}

/* ============================================================
   LOGO FLIP ANIMATION
   ============================================================ */
.logo-flip-wrap {
  perspective: 700px;
  display: flex;
  align-items: center;
  background: transparent !important;
  overflow: hidden; /* جلوگیری از بلید پروجکشن سه‌بعدی لوگو به لبه‌های صفحه (نوار قرمز) */
}
.logo-flip-inner {
  position: relative;
  transform-style: preserve-3d;
  animation: logoYFlip 8s ease-in-out infinite;
  width: 240px;
  height: 80px;
  background: transparent;
}
.logo-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  background: transparent;
}
.logo-flip-face img {
  height: 70px;          /* ارتفاع ثابت → هر دو لوگو (فارسی و انگلیسی) دقیقاً هم‌اندازه می‌شوند */
  width: auto;
  max-width: 240px;
  object-fit: contain;
  background: transparent;
}
/* هر دو وجه (جلو/پشت) دقیقاً وسط‌چین و هم‌اندازه */
.logo-flip-face { justify-content: center; }
/* وقتی تصویر لوگو فارسی لود نشد — div خالی نمایش داده نشود */
.logo-flip-back:not(:has(img[src])),
.logo-flip-back img[style*="display:none"] ~ * { display: none; }
.logo-flip-back {
  transform: rotateY(180deg);
}
@keyframes logoYFlip {
  0%   { transform: rotateY(0deg); }
  38%  { transform: rotateY(0deg); }
  48%  { transform: rotateY(180deg); }
  85%  { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

/* ── ریسپانسیو لوگو + منوی همبرگری (رفع نشدن همبرگری در موبایل) ── */
@media (max-width: 768px) {
  .logo-flip-wrap { flex-shrink: 0; }
  .logo-flip-inner { width: 150px; height: 50px; }
  .logo-flip-face img { height: 40px; max-width: 150px; }
  .header-actions { gap: 4px; }
  .mobile-menu-btn { display: flex !important; align-items: center; justify-content: center; }
}
@media (max-width: 480px) {
  .logo-flip-inner { width: 120px; height: 44px; }
  .logo-flip-face img { height: 34px; max-width: 120px; }
  /* آزادسازی فضا برای همبرگری در صفحه‌های خیلی کوچک (این‌ها در منوی کشویی هم هستند) */
  .header-actions .theme-toggle,
  .header-actions a[title="علاقه‌مندی‌ها"] { display: none; }
}

/* ============================================================
   HERO VERTICAL SLIDER
   ============================================================ */
.hv2-visual .swiper.hero-v-swiper {
  width: 100%;
  height: 460px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: none;
}
.hero-vslide {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  background: var(--dark-3);
  display: flex; align-items: center; justify-content: center;
}
.hero-vslide-img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: transform .6s ease;
}
.hero-v-swiper .swiper-slide:hover .hero-vslide-img { transform: scale(1.04); }
.hero-vslide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, transparent 100%);
  padding: 40px 20px 20px;
  color: #fff;
}
.hero-vslide-caption h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.hero-vslide-caption p  { font-size: .82rem; opacity: .8; margin-bottom: 12px; }
.hero-vslide-empty, .hero-vslide-noimg {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; height: 100%;
  color: var(--text-muted); text-align: center; padding: 24px;
}
.hero-vslide-empty i, .hero-vslide-noimg i { font-size: 3rem; opacity: .4; }
.hero-vslide-empty a { color: var(--gold); }
/* Vertical pagination bullets on the left side */
#heroVPagi {
  position: absolute !important;
  left: 12px !important; top: 50% !important; right: auto !important;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 10;
  width: auto !important;
}
#heroVPagi .swiper-pagination-bullet {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,.35); margin: 0 !important;
  transition: all .3s ease;
}
#heroVPagi .swiper-pagination-bullet-active {
  background: var(--gold); height: 22px; border-radius: 3px;
}
@media (max-width: 900px) {
  .hv2-visual .swiper.hero-v-swiper { height: 280px; border-radius: 16px; }
}

/* ============================================================
   LOTTIE DECORATIONS
   ============================================================ */
.lottie-deco {
  pointer-events: none;
  flex-shrink: 0;
}
.lottie-section-icon {
  width: 160px; height: 160px;
  margin: 0 auto 16px;
}

/* ============================================================
   LIVE CHAT WIDGET
   ============================================================ */
/* چت — راست-پایین */
.chat-toggle-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: var(--gold); color: #fff;
  border: none; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 8px 28px rgba(220,38,38,.5);
  z-index: 9991;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; align-items: center; justify-content: center;
}
.chat-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 12px 36px rgba(220,38,38,.6); }
.chat-unread-badge {
  position: absolute; top: -4px; right: -4px;
  background: #fff; color: var(--gold);
  width: 20px; height: 20px; border-radius: 50%;
  font-size: .7rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold);
}
.chat-widget {
  position: fixed; bottom: 96px; right: 28px;
  width: 340px; max-height: 520px;
  background: var(--dark-2); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: 0 16px 56px rgba(0,0,0,.5);
  z-index: 9991; flex-direction: column; overflow: hidden;
  display: flex;
}
.chat-header {
  background: var(--gold); padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 40px; height: 40px; background: rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.chat-title { font-weight: 700; font-size: .9rem; }
.chat-status { font-size: .75rem; opacity: .85; display: flex; align-items: center; gap: 6px; }
.chat-online-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; }
.chat-close-btn { background: none; border: none; color: rgba(255,255,255,.8); font-size: 1rem; cursor: pointer; }
.chat-pre-form {
  padding: 20px 18px; display: flex; flex-direction: column; gap: 10px;
}
.chat-pre-form p { font-size: .85rem; color: var(--text-muted); margin-bottom: 4px; }
.chat-input-field {
  background: var(--dark-3); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text); font-family: var(--font); font-size: .88rem;
  outline: none; transition: border-color .2s;
}
.chat-input-field:focus { border-color: var(--gold); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex;
  flex-direction: column; gap: 10px;
  scrollbar-width: thin;
}
.chat-msg { display: flex; }
.chat-msg-user { justify-content: flex-start; }
.chat-msg-admin { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%; padding: 10px 14px;
  border-radius: 14px; font-size: .87rem; line-height: 1.6;
}
.chat-msg-user .chat-bubble { background: var(--dark-4, #1e1e1e); color: var(--text); border-radius: 14px 14px 4px 14px; }
.chat-msg-admin .chat-bubble { background: var(--gold); color: #fff; border-radius: 14px 14px 14px 4px; }
.chat-input-area {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.chat-msg-input {
  flex: 1; background: var(--dark-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; color: var(--text);
  font-family: var(--font); font-size: .88rem; outline: none;
  transition: border-color .2s;
}
.chat-msg-input:focus { border-color: var(--gold); }
.chat-send-btn {
  width: 40px; height: 40px; background: var(--gold); color: #fff;
  border: none; border-radius: 8px; font-size: .95rem; cursor: pointer;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}
.chat-send-btn:hover { background: var(--gold-dark, #b45309); }
@media (max-width: 480px) {
  .chat-widget { width: calc(100vw - 32px); right: 16px; }
  .chat-toggle-btn { right: 16px; bottom: 80px; }
  .back-to-top { left: 16px; bottom: 20px; }
}

/* ============================================================
   FLASH SALE — OUTSIDE NAVIGATION + REDESIGN
   ============================================================ */

/* Wrapper با فضا برای فلش‌های خارجی */
.flash-sale-nav-wrap {
  position: relative;
  padding: 0 56px; /* فضا برای فلش‌ها */
}

/* دکمه‌های ناوبری خارج از باکس */
.flash-nav-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 20;
  width: 46px; height: 46px;
  background: var(--dark-2);
  border: 1.5px solid rgba(var(--gold-rgb), .4);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
.flash-nav-btn:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 6px 28px rgba(var(--gold-rgb),.5);
  transform: translateY(-50%) scale(1.1);
}
.flash-nav-btn.swiper-button-disabled {
  opacity: .3; pointer-events: none;
}
.flash-nav-prev { right: 4px; }
.flash-nav-next { left: 4px; }
/* دکمه‌های ناوبری خارجی فلش‌سیل حذف شدند — با دکمه «بازگشت به بالا» تداخل می‌کردند (اسلایدر اسکرول‌بار و درگ دارد) */
.flash-nav-prev, .flash-nav-next { display: none !important; }

/* Flash scrollbar */
.flash-scrollbar {
  height: 3px !important;
  background: rgba(255,255,255,.08) !important;
  border-radius: 3px;
  margin-top: 16px !important;
}
.flash-scrollbar .swiper-scrollbar-drag {
  background: var(--gold) !important; border-radius: 3px;
}

/* طراحی جذاب‌تر باکس شگفت‌انگیز */
.flash-sale-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(220,38,38,.12) 0%, transparent 60%),
    linear-gradient(180deg, #0a0202 0%, #100505 40%, #0a0a0a 100%);
  border-top: 2px solid var(--gold);
  border-bottom: 1px solid rgba(var(--gold-rgb),.1);
  padding: 52px 0 44px;
  position: relative;
}

/* کارت محصول flash — بازطراحی */
.flash-product-card {
  background: var(--dark-3) !important;
  border: 1px solid rgba(var(--gold-rgb),.1) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.3) !important;
}
.flash-product-card:hover {
  border-color: rgba(var(--gold-rgb),.5) !important;
  box-shadow: 0 12px 40px rgba(var(--gold-rgb),.15), 0 4px 20px rgba(0,0,0,.4) !important;
  transform: translateY(-5px) !important;
}
.flash-img-wrap {
  background: var(--dark-4) !important;
}
.flash-product-card img {
  background: var(--dark-4) !important;
}
.flash-product-name {
  color: var(--text) !important;
}
.flash-product-name:hover { color: var(--gold) !important; }
.flash-prices del { color: var(--text-muted) !important; }
.flash-prices strong { color: var(--gold) !important; }

/* ستون هدر شگفت‌انگیز */
.flash-sale-title h2 {
  font-size: 1.6rem !important;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.flash-icon-pulse {
  width: 46px; height: 46px;
  background: rgba(var(--gold-rgb),.15);
  border: 1.5px solid rgba(var(--gold-rgb),.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.2rem;
  animation: flashPulse 2s ease-in-out infinite;
}
@keyframes flashPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb),.4); }
  50%       { box-shadow: 0 0 0 12px rgba(var(--gold-rgb),0); }
}

/* موبایل: padding کمتر */
@media (max-width: 600px) {
  .flash-sale-nav-wrap { padding: 0 44px; }
  .flash-nav-btn { width: 38px; height: 38px; font-size: .85rem; }
}

/* ============================================================
   AOS SAFETY FALLBACK
   اگر AOS لود نشد یا دیر اجرا شد، همه عناصر دیده شوند
   ============================================================ */
[data-aos]:not(.aos-animate) {
  /* پیش از اینکه AOS بارگذاری شود، عناصر را نمایش بده */
  opacity: 1 !important;
  transform: none !important;
}
/* وقتی AOS اجرا شد، انیمیشن را بازگردان */
.aos-init[data-aos]:not(.aos-animate) {
  opacity: 0 !important;
  transform: translateY(20px);
}
.aos-init[data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================================================
   PERFORMANCE — کاهش reflow و repaint
   ============================================================ */
/* تصاویر همیشه نمایش داده شوند */
img { display: block; }
img[loading="lazy"] { content-visibility: auto; }

/* حذف will-change از عناصری که ضرورت ندارد */
.btn, a, li { will-change: auto !important; }

/* back-to-top mobile */
@media (max-width: 480px) {
  .back-to-top { left: 16px; bottom: 20px; }
}
