/* ===================================================================
   CONNECT | فروشگاه لوازم جانبی دیجیتال
   style.css — تم روشن (سفید و آبی آسمونی) - چیدمان دیجیکالا
=================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 2. Design tokens (تم روشن) ---------- */
:root {
  --bg: #f0f4f8;
  --bg-alt: #e8edf3;
  --surface: #ffffff;
  --surface-2: #f5f8fa;
  --border: #d0d8e0;
  --border-soft: #e0e6ed;
  
  --primary: #2a7de1;
  --primary-light: #5a9af5;
  --primary-dark: #1a5fb4;
  --cyan: #38bdf8;
  --cyan-light: #7dd3fc;
  --cyan-dark: #0ea5e9;
  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --amber: #f59e0b;
  --red: #ef4444;
  --green: #22c55e;
  
  --text: #1a2330;
  --text-muted: #5a6a7a;
  --text-dim: #8a9aaa;
  
  --font-display: "Rajdhani", "Vazirmatn", sans-serif;
  --font-body: "Vazirmatn", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1240px;
  --header-h: 128px;
  
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

/* ---------- 3. Base ---------- */
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  direction: rtl;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.25;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }
::selection { background: var(--primary); color: #ffffff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* ---------- 4. کامپوننت‌ها ---------- */
.port-tab {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px 5px 7px;
  z-index: 2;
}
.port-tab .pins { display: flex; gap: 2px; }
.port-tab .pins span { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); }
.port-tab .led { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px currentColor; }
.port-tab .led.in { background: var(--green); color: var(--green); }
.port-tab .led.low { background: var(--amber); color: var(--amber); }
.port-tab .led.out { background: var(--text-dim); color: var(--text-dim); box-shadow: none; }

/* ---------- 5. دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(42,125,225,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42,125,225,0.45);
}
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-icon { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--surface); }
.btn-icon:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-icon svg { width: 17px; height: 17px; }

/* ---------- 6. هدر ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-main { display: flex; align-items: center; gap: 16px; height: 76px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; flex-shrink: 0; }
.logo .mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(140deg, var(--primary), var(--violet)); display: flex; align-items: center; justify-content: center; }
.logo .mark svg { width: 20px; height: 20px; color: #ffffff; }
.logo .name b { color: var(--primary); }
.logo .tagline { display: none; }

/* نوار دسته‌بندی افقی */
.cat-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}
.cat-nav .container {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}
.cat-nav .container::-webkit-scrollbar { display: none; }
.cat-nav a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cat-nav a:hover { color: var(--text); background: var(--surface-2); }
.cat-nav a .icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
.cat-nav a .icon svg { width: 100%; height: 100%; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; color: var(--text-muted); position: relative; transition: color .15s; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ""; position: absolute; bottom: 2px; left: 14px; right: 14px; height: 2px; background: var(--primary); border-radius: 2px; }

.search-form { flex: 1; max-width: 500px; position: relative; }
.search-form input {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 42px 10px 16px;
  font-size: 14px;
  color: var(--text);
}
.search-form input:focus { border-color: var(--cyan); outline: none; }
.search-form input::placeholder { color: var(--text-dim); }
.search-form button { position: absolute; inset-inline-start: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.search-form svg { width: 17px; height: 17px; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .login-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
}
.header-actions .login-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.header-actions .login-btn svg { width: 16px; height: 16px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: -5px;
  inset-inline-end: -5px;
  background: var(--primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-mono);
}
.menu-toggle { display: none; }

/* ---------- 7. اسلایدر (صفحه اصلی) ---------- */
.slider-section {
  padding: 16px 0 0;
}
.slider-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
}
.slider-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slider-banner .badge-top {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.slider-banner h2 {
  font-size: 32px;
  margin-bottom: 8px;
}
.slider-banner h2 span {
  color: var(--primary);
}
.slider-banner p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 400px;
}
.slider-banner .bg-icon {
  position: absolute;
  inset-inline-end: -20px;
  bottom: -20px;
  width: 200px;
  height: 200px;
  opacity: 0.06;
}
.slider-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slider-side .side-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s;
  min-height: 72px;
}
.slider-side .side-item:hover {
  border-color: var(--primary);
}
.slider-side .side-item .ic {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.slider-side .side-item .ic svg {
  width: 18px;
  height: 18px;
}

/* ---------- 8. دسته‌بندی آیکونی ---------- */
.category-icons {
  padding: 24px 0 8px;
}
.category-icons .container {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.category-icons .cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: var(--radius);
  transition: background 0.15s;
  cursor: pointer;
  text-align: center;
}
.category-icons .cat-item:hover {
  background: var(--surface-2);
}
.category-icons .cat-item .circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.category-icons .cat-item:hover .circle {
  border-color: var(--primary);
  background: var(--surface-2);
}
.category-icons .cat-item .circle svg {
  width: 24px;
  height: 24px;
}
.category-icons .cat-item .label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- 9. پیشنهاد شگفت‌انگیز ---------- */
.flash-sale {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 30px;
}
.flash-sale .flash-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.flash-sale .flash-header h3 {
  font-size: 22px;
  color: var(--red);
}
.flash-sale .flash-header h3 span {
  color: var(--text);
}
.flash-sale .timer {
  display: flex;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.flash-sale .timer .unit {
  background: var(--bg-alt);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  min-width: 32px;
  text-align: center;
}
.flash-sale .timer .sep {
  color: var(--text-dim);
}
.flash-sale .flash-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.flash-sale .flash-grid .product-card {
  border-radius: var(--radius);
}
.flash-sale .see-all-flash {
  margin-top: 16px;
  text-align: center;
}
.flash-sale .see-all-flash a {
  color: var(--cyan);
  font-weight: 600;
  font-size: 14px;
}

/* ---------- 10. بخش‌های عمومی ---------- */
section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; }
.section-head p { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.section-head .see-all { font-size: 13px; font-weight: 600; color: var(--cyan); display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.section-head .see-all svg { width: 15px; height: 15px; }

/* گرید محصولات و کارت محصول */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.product-media {
  position: relative;
  aspect-ratio: 1.15 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--surface-2);
}
.product-card.computer .product-media { background: radial-gradient(circle at 30% 20%, rgba(42,125,225,0.08), var(--surface-2) 70%); }
.product-card.mobile .product-media { background: radial-gradient(circle at 30% 20%, rgba(56,189,248,0.08), var(--surface-2) 70%); }
.product-card.console .product-media { background: radial-gradient(circle at 30% 20%, rgba(139,92,246,0.08), var(--surface-2) 70%); }
.product-media svg { width: 45%; height: 45%; }
.product-card.computer .product-media svg { color: var(--primary); }
.product-card.mobile .product-media svg { color: var(--cyan); }
.product-card.console .product-media svg { color: var(--violet); }

/* تگ‌های محصول */
.badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-best { background: var(--amber); color: #ffffff; }
.badge-off { background: var(--red); color: #ffffff; }
.badge-original { background: var(--primary); color: #ffffff; }
.badge-out { background: var(--text-dim); color: #ffffff; }

/* وضعیت موجودی */
.stock-status {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
}
.stock-status.in { color: var(--green); }
.stock-status.low { color: var(--amber); }
.stock-status.out { color: var(--text-dim); }

/* اطلاعات محصول */
.product-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-info .brand-name {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-info .product-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-info .product-name a:hover { color: var(--primary); }
.rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
}
.rating-row .stars { display: flex; gap: 1px; color: var(--amber); }
.rating-row .stars svg { width: 12px; height: 12px; fill: var(--amber); }
.rating-row .reviews-count { color: var(--text-dim); }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}
.price-row .price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.price-row .old-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: line-through;
}
.price-row .discount-badge {
  background: var(--red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
}
.product-info .add-btn {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  font-size: 12px;
}
.product-info .add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- 11. بخش‌های تکمیلی ---------- */
.features-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.features-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 24px 24px;
}
.feature-item { display: flex; align-items: center; gap: 14px; }
.feature-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.feature-item .ic svg { width: 20px; height: 20px; }
.feature-item b { display: block; font-size: 14px; margin-bottom: 2px; }
.feature-item span { font-size: 12px; color: var(--text-dim); }

.banner-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0;
}
.promo-banner {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
}
.promo-banner.b1 { background: linear-gradient(135deg, rgba(42,125,225,0.12), var(--surface)); }
.promo-banner.b2 { background: linear-gradient(135deg, rgba(139,92,246,0.12), var(--surface)); }
.promo-banner .eyebrow { margin-bottom: 10px; }
.promo-banner h3 { font-size: 20px; margin-bottom: 6px; }
.promo-banner p { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; max-width: 280px; }
.promo-banner .ghost-icon { position: absolute; inset-inline-end: -10px; bottom: -18px; width: 150px; height: 150px; opacity: .08; }

.newsletter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}
.newsletter h2 { font-size: 24px; margin-bottom: 8px; }
.newsletter p { color: var(--text-muted); margin-bottom: 20px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input { flex: 1; background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: 999px; padding: 12px 18px; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 12px 0;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.testimonial-card .stars { display: flex; gap: 2px; color: var(--amber); margin-bottom: 10px; }
.testimonial-card .stars svg { width: 14px; height: 14px; }
.testimonial-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.testimonial-card .who { display: flex; align-items: center; gap: 10px; }
.testimonial-card .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: var(--primary); flex-shrink: 0; }
.testimonial-card .who b { font-size: 13px; display: block; }
.testimonial-card .who span { font-size: 11px; color: var(--text-dim); }

/* ---------- 12. صفحه فروشگاه ---------- */
.page-shop { padding: 20px 0 60px; }
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.filters h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 12px;
}
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; }
.filter-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.check-row:hover { color: var(--text); }
.check-row input { width: 16px; height: 16px; accent-color: var(--primary); }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  width: 100%;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  font-family: var(--font-mono);
}
.filters .clear-filters {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--cyan);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}
.filters .clear-filters:hover { color: var(--primary); }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.toolbar .result-count { font-size: 13.5px; color: var(--text-muted); }
.toolbar .result-count b { color: var(--text); }
.toolbar .sort { display: flex; align-items: center; gap: 10px; }
.toolbar select {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
}

.shop-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.shop-banner {
  border-radius: var(--radius);
  padding: 20px 28px;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--border);
}
.shop-banner.b1 { background: linear-gradient(135deg, rgba(42,125,225,0.12), var(--surface)); }
.shop-banner.b2 { background: linear-gradient(135deg, rgba(139,92,246,0.12), var(--surface)); }
.shop-banner .eyebrow { font-size: 11px; color: var(--cyan); font-weight: 600; margin-bottom: 4px; }
.shop-banner h3 { font-size: 18px; margin-bottom: 2px; }
.shop-banner p { color: var(--text-muted); font-size: 12px; margin-bottom: 10px; }
.shop-banner .ghost-icon { position: absolute; inset-inline-end: -10px; bottom: -18px; width: 120px; height: 120px; opacity: 0.06; }

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}
.pagination button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- 13. صفحه جزئیات محصول ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 30px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb svg { width: 12px; height: 12px; transform: scaleX(-1); }
.product-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; margin-bottom: 90px; }
.pd-gallery { position: relative; }
.pd-media-main { aspect-ratio: 1/1; border-radius: var(--radius-lg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--surface); }
.pd-media-main svg { width: 34%; height: 34%; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.pd-thumbs .thumb { width: 68px; height: 68px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; opacity: .55; transition: opacity .15s, border-color .15s; background: var(--surface); }
.pd-thumbs .thumb.active { opacity: 1; border-color: var(--primary); }
.pd-thumbs .thumb svg { width: 46%; height: 46%; }
.pd-info .brand-line { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; }
.pd-info h1 { font-size: 26px; margin-bottom: 14px; font-family: var(--font-body); }
.pd-info .price-row { margin-bottom: 20px; }
.pd-info .price-row .price { font-size: 27px; }
.pd-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 24px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.pd-stock .led { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.pd-specs { list-style: none; margin-bottom: 26px; }
.pd-specs li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border-soft); font-size: 14px; color: var(--text-muted); }
.pd-specs li svg { width: 15px; height: 15px; margin-top: 3px; color: var(--cyan); flex-shrink: 0; }
.pd-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty-control button { width: 40px; height: 46px; font-size: 18px; color: var(--text-muted); background: var(--surface); }
.qty-control button:hover { color: var(--cyan); background: var(--surface-2); }
.qty-control input { width: 44px; height: 46px; text-align: center; background: var(--surface); border: none; border-inline: 1.5px solid var(--border); font-family: var(--font-mono); color: var(--text); }
.pd-actions .btn-primary { flex: 1; height: 46px; }
.pd-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-perks .perk { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12.5px; color: var(--text-muted); }
.pd-perks svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

/* ---------- 14. سبد خرید ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto auto; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border-soft); }
.cart-row:last-child { border-bottom: none; }
.cart-row .thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.cart-row .thumb svg { width: 55%; height: 55%; }
.cart-row .ci-name { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.cart-row .ci-sub { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.cart-row .ci-price { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.cart-row .remove-btn { color: var(--text-dim); background: none; border: none; cursor: pointer; }
.cart-row .remove-btn:hover { color: var(--red); }
.cart-row .remove-btn svg { width: 18px; height: 18px; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.cart-summary h3 { font-size: 17px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); padding: 10px 0; }
.summary-row.total { border-top: 1px solid var(--border-soft); margin-top: 8px; padding-top: 16px; font-size: 16px; font-weight: 700; color: var(--text); }
.summary-row.total .mono { color: var(--primary); font-size: 19px; }
.promo-row { display: flex; gap: 8px; margin: 18px 0; }
.promo-row input { flex: 1; background: var(--bg-alt); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.cart-empty { text-align: center; padding: 90px 20px; }
.cart-empty svg { width: 64px; height: 64px; color: var(--text-dim); margin: 0 auto 20px; }
.cart-empty h3 { font-size: 20px; margin-bottom: 10px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 26px; }

/* ---------- 15. صفحه‌ها ---------- */
.page-hero { padding: 52px 0 40px; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- 16. فوتر ---------- */
footer.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding-top: 48px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid p { color: var(--text-muted); font-size: 13.5px; margin: 14px 0 18px; max-width: 280px; }
.footer-col h4 { font-size: 14px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--cyan); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--surface);
}
.social-row a:hover { color: var(--cyan); border-color: var(--cyan); }
.social-row svg { width: 15px; height: 15px; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 10px;
}
.payment-badges { display: flex; gap: 8px; }
.payment-badges span {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  color: var(--text-dim);
  background: var(--surface);
}

/* ---------- 17. واکنش‌گرا ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slider-main { grid-template-columns: 1fr; }
  .slider-side { display: grid; grid-template-columns: 1fr 1fr; }
  .category-icons .container { grid-template-columns: repeat(4, 1fr); }
  .flash-sale .flash-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-banners { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 900px) {
  .search-form { display: none; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .header-main { gap: 12px; }
  .cat-nav .container { height: 40px; }
  .cat-nav a { font-size: 12px; padding: 6px 10px; }
  .slider-banner { padding: 24px 28px; min-height: 200px; }
  .slider-banner h2 { font-size: 24px; }
  .category-icons .container { grid-template-columns: repeat(4, 1fr); }
  .flash-sale .flash-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-split { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .features-strip .container { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .pd-perks { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .category-icons .container { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .category-icons .cat-item .circle { width: 44px; height: 44px; }
  .category-icons .cat-item .circle svg { width: 20px; height: 20px; }
  .category-icons .cat-item .label { font-size: 10px; }
  .flash-sale .flash-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flash-sale { padding: 16px; }
  .flash-sale .flash-header h3 { font-size: 18px; }
  .slider-side { grid-template-columns: 1fr; }
  section { padding: 28px 0; }
  .slider-banner { padding: 18px 20px; min-height: 160px; }
  .slider-banner h2 { font-size: 20px; }
  .slider-banner p { font-size: 12px; }
  .header-main { height: 60px; gap: 8px; }
  .logo { font-size: 18px; }
  .logo .mark { width: 32px; height: 32px; }
  .logo .mark svg { width: 16px; height: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-nav a { font-size: 11px; padding: 4px 8px; }
  .features-strip .container { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .newsletter { padding: 24px; }
  .newsletter-form { flex-direction: column; }
  .cart-row { grid-template-columns: 56px 1fr; row-gap: 10px; }
  .cart-row .ci-price, .cart-row .qty-control, .cart-row .remove-btn { grid-column: 2; justify-self: start; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar .sort { justify-content: space-between; }
}

/* ---------- 18. منوی موبایل ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: var(--surface);
  border-inline-start: 1px solid var(--border);
  padding: 24px;
  transform: translateX(100%);
  transition: transform .25s ease;
}
[dir="rtl"] .mobile-nav-panel { transform: translateX(-100%); }
.mobile-nav.open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-panel a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 700;
  color: var(--text);
}
.mobile-nav-panel a:hover { color: var(--primary); }
.mobile-nav-close { margin-bottom: 20px; }

/* ---------- 19. توست ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  z-index: 200;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.3);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
