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

:root {
  --primary: #8B0000;
  --primary-dark: #5c0000;
  --primary-light: #c0392b;
  --gold: #c9a227;
  --gold-light: #f0c040;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --dark2: #222;
  --dark3: #2c2c2c;
  --gray: #555;
  --gray-light: #888;
  --border: #333;
  --text: #e8e8e8;
  --text-muted: #aaa;
  --white: #fff;
  --green: #27ae60;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 20px rgba(201,162,39,0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--black);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 13px;
  color: #ddd;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar span { display: flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--gold-light); }

/* ===== HEADER ===== */
header {
  background: var(--dark);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.logo-text h1 { font-size: 20px; font-weight: 800; color: var(--white); line-height: 1.2; }
.logo-text span { font-size: 12px; color: var(--gold); }

/* Search */
.search-box {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  transition: border-color 0.3s;
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box input::placeholder { color: var(--gray-light); }
.search-box button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-light);
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s;
}
.search-box button:hover { color: var(--primary-light); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; cursor: pointer; color: var(--text-muted);
  transition: color 0.3s; font-size: 12px; position: relative;
}
.header-btn:hover { color: var(--gold-light); }
.header-btn svg { width: 24px; height: 24px; }
.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--primary-light);
  color: white;
  border-radius: 50%;
  width: 18px; height: 18px;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ===== NAV ===== */
nav {
  background: var(--dark2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 82px; /* header height: 14px+52px logo+14px padding+2px border */
  z-index: 999;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-inner a {
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav-inner a:hover,
.nav-inner a.active {
  color: var(--white);
  background: rgba(139,0,0,0.2);
}
.nav-inner a.active::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0; left: 0;
  height: 2px;
  background: var(--primary-light);
}
.nav-inner .nav-special {
  color: var(--gold);
  font-weight: 700;
}
.nav-inner .nav-special:hover { color: var(--gold-light); }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  overflow: hidden;
  height: 480px;
}
.slider-track { display: flex; height: 100%; transition: transform 0.6s ease; }
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.15), rgba(0,0,0,0.8));
}
.slide-content {
  position: relative;
  z-index: 1;
  padding: 0 60px;
  max-width: 600px;
}
.slide-content .badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 14px;
  font-weight: 600;
}
.slide-content h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--white);
}
.slide-content p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 24px;
  line-height: 1.8;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Vazirmatn', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(139,0,0,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,0,0,0.6);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Vazirmatn', sans-serif;
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 12px;
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--black);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(139,0,0,0.7);
  color: white;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: var(--primary); transform: translateY(-50%) scale(1.1); }
.slider-prev { right: 20px; }
.slider-next { left: 20px; }
.slider-dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.dot.active { background: var(--primary-light); transform: scale(1.3); }

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  padding: 10px 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-inner span {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.feature-item {
  background: var(--dark2);
  padding: 22px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: background 0.3s;
}
.feature-item:hover { background: var(--dark3); }
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(139,0,0,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(139,0,0,0.3);
}
.feature-text h4 { font-size: 14px; font-weight: 700; color: var(--white); }
.feature-text p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== SECTION ===== */
.section { padding: 56px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  display: flex; align-items: center; gap: 12px;
}
.section-title h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
}
.section-title .title-icon {
  width: 40px; height: 40px;
  background: rgba(139,0,0,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 1px solid rgba(139,0,0,0.4);
}
.section-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  margin-top: 8px;
  border-radius: 2px;
}
.see-all {
  font-size: 13px;
  color: var(--gold);
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.3s;
}
.see-all:hover { gap: 10px; color: var(--gold-light); }

/* ===== CATEGORIES (طاق / محراب) ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 130px 130px 16px 16px;
  padding: 20px 14px 18px;
  cursor: pointer;
  transition: all 0.3s;
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
/* پنل داخلی طاق‌شکل که آیکون/تصویر را نگه می‌دارد */
.cat-card-inner {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  background: linear-gradient(180deg, var(--dark3), var(--dark));
  border: 1px solid var(--border);
  border-radius: 110px 110px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  transition: all 0.3s;
}
.cat-card:hover .cat-card-inner {
  border-color: rgba(201,162,39,0.45);
  background: linear-gradient(180deg, #2f2f2f, #181818);
}
.cat-icon {
  font-size: 46px;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.cat-img { width: 64%; height: 64%; object-fit: contain; }
.cat-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.cat-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 20px;
  padding: 6px 18px;
  transition: all 0.3s;
}
.cat-card:hover .cat-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: var(--primary);
}

/* ===== PRODUCT CARD ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(139,0,0,0.2);
}
.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--dark3);
}
.product-image .img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.product-badges {
  position: absolute;
  top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.badge-new { background: var(--green); color: white; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-discount { background: var(--primary-light); color: white; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-hot { background: var(--gold); color: var(--black); padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.product-actions {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover .product-actions { opacity: 1; }
.action-btn {
  width: 36px; height: 36px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.3s;
  font-size: 16px;
}
.action-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }

.product-info { padding: 16px; }
.product-category { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.5; margin-bottom: 10px; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.stars { font-size: 14px; letter-spacing: 1px; }
.stars span { color: var(--gray); }
.stars span.on { color: var(--gold); }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-new { font-size: 18px; font-weight: 800; color: var(--gold-light); }
.price-old { font-size: 13px; color: var(--gray-light); text-decoration: line-through; }
.price-unit { font-size: 13px; color: var(--text-muted); }
.add-to-cart {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.add-to-cart:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-1px);
}
.add-to-cart.added {
  background: linear-gradient(135deg, var(--green), #1e8449);
}

/* ===== BANNER ===== */
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.banner-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 200px;
  display: flex; align-items: center;
  cursor: pointer;
  transition: transform 0.3s;
}
.banner-card:hover { transform: scale(1.02); }
.banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.banner-overlay { position: absolute; inset: 0; }
.banner-content { position: relative; z-index: 1; padding: 30px; }
.banner-content span {
  font-size: 13px; font-weight: 600;
  display: block; margin-bottom: 8px;
}
.banner-content h3 { font-size: 24px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.banner-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  font-family: 'Vazirmatn', sans-serif;
  border: none; cursor: pointer; transition: all 0.3s;
}

/* ===== SPECIAL OFFERS ===== */
.offers-section {
  background: linear-gradient(135deg, rgba(139,0,0,0.1), rgba(0,0,0,0));
  border-top: 1px solid rgba(139,0,0,0.2);
  border-bottom: 1px solid rgba(139,0,0,0.2);
}
.countdown-wrap {
  display: flex; align-items: center; gap: 20px; margin-bottom: 30px;
}
.countdown { display: flex; align-items: center; gap: 8px; }
.countdown-item {
  background: var(--primary-dark);
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
  min-width: 56px;
}
.countdown-item .num { font-size: 24px; font-weight: 800; color: var(--white); display: block; }
.countdown-item .lbl { font-size: 10px; color: #ccc; }
.countdown-sep { font-size: 24px; font-weight: 800; color: var(--primary-light); }

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 10px; right: 20px;
  font-size: 60px;
  color: rgba(139,0,0,0.2);
  font-family: serif;
  line-height: 1;
}
.testimonial-text { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.author-info h4 { font-size: 14px; font-weight: 700; color: var(--white); }
.author-info span { font-size: 12px; color: var(--text-muted); }

/* ===== NEWSLETTER ===== */
.newsletter {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #3d0000 50%, var(--primary-dark) 100%);
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.newsletter .container { position: relative; }
.newsletter h2 { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.newsletter p { font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 12px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: rgba(255,255,255,0.5); }
.newsletter-form button {
  padding: 12px 28px;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  border-top: 2px solid var(--primary-dark);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-about .logo { margin-bottom: 16px; }
.footer-about p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
}
.social-link:hover { background: var(--primary); border-color: var(--primary); color: white; }

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(139,0,0,0.3);
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -2px; right: 0;
  width: 40px; height: 2px;
  background: var(--primary-light);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col ul li a::before { content: '›'; color: var(--primary-light); }

.footer-contact li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 10px;
}
.footer-contact li span:first-child { font-size: 16px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-badges { display: flex; gap: 10px; align-items: center; }
.badge-item {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  display: flex; align-items: center; gap: 6px;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed;
  top: 0; left: -400px;
  width: 380px; height: 100vh;
  background: var(--dark2);
  z-index: 2001;
  transition: left 0.4s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  border-right: 2px solid var(--primary-dark);
  box-shadow: 4px 0 30px rgba(0,0,0,0.6);
}
.cart-sidebar.open { left: 0; }
.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.cart-header h3 { font-size: 18px; font-weight: 700; }
.close-cart {
  width: 36px; height: 36px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--text-muted);
  transition: all 0.3s;
}
.close-cart:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex; gap: 12px;
  padding: 14px;
  background: var(--dark3);
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.cart-item-img {
  width: 70px; height: 70px;
  background: var(--dark);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cart-item-info .item-price { font-size: 14px; font-weight: 700; color: var(--gold-light); }
.cart-item-qty {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.qty-btn {
  width: 26px; height: 26px;
  background: var(--dark); border: 1px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--text-muted);
  transition: all 0.3s;
}
.qty-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.qty-num { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.remove-item {
  background: none; border: none; cursor: pointer;
  color: var(--gray-light); font-size: 18px;
  transition: color 0.3s; padding: 4px;
}
.remove-item:hover { color: var(--primary-light); }
.cart-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 16px; font-weight: 700; }
.cart-total span:last-child { color: var(--gold-light); }
.checkout-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700;
  font-family: 'Vazirmatn', sans-serif;
  cursor: pointer; transition: all 0.3s;
}
.checkout-btn:hover { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.empty-cart {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 200px;
  color: var(--text-muted); gap: 12px;
}
.empty-cart span { font-size: 48px; }
.empty-cart p { font-size: 14px; }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
  min-width: 240px;
}
.toast.success { border-right: 3px solid var(--green); }
.toast.info { border-right: 3px solid var(--gold); }
.toast-icon { font-size: 20px; }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 44px; height: 44px;
  background: var(--primary); color: white; border: none;
  border-radius: 50%; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(139,0,0,0.4);
  opacity: 0; pointer-events: none; transition: all 0.3s;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(139,0,0,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .search-box { order: 3; width: 100%; max-width: 100%; }
  .hero { height: 320px; }
  .slide-content { padding: 0 24px; }
  .slide-content h2 { font-size: 26px; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .banners-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-inner { overflow-x: auto; }
  .topbar { display: none; }
  .newsletter-form { flex-direction: column; }
  nav { position: relative; top: auto; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
}
