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

:root {
  --red: #ef394e;
  --red-dark: #d81a3c;
  --red-soft: #fdecef;
  --secondary: #1a1f27;
  --bg: #f7f7f7;
  --card: #ffffff;
  --ink: #1a1f27;
  --muted: #77808c;
  --border: #e5e7eb;
  --star: #ffa000;
  --good: #1e9e5a;
  --card-radius: 10px;
  --card-shadow: none;
  --header-bg: #ffffff;
  --header-text: #1a1f27;
  --header-link: #77808c;
  --footer-bg: #1a1f27;
  --footer-text: #b6bcc6;
  --font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  --base-font-size: 15px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--font-family); font-size: var(--base-font-size); background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  width: 100%;
  overflow-x: hidden;
}
.footer {
  margin-top: auto;
}

.topbar { 
  background: var(--header-bg); 
  border-bottom: 1px solid var(--border); 
  position: sticky; 
  top: 0; 
  z-index: 30; 
}
.topbar-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 14px 24px; 
  display: flex; 
  align-items: center; 
  gap: 18px; 
  flex-wrap: wrap; 
}
.brand { 
  display: flex; 
  align-items: center; 
  gap: 9px; 
}
.brand-name { 
  font-weight: 800; 
  font-size: 1.2rem; 
  color: var(--red); 
}
.brand-sub { 
  font-size: 0.7rem; 
  color: var(--muted); 
  margin-top: 1px; 
}
.brand-logo { 
  height: 42px; 
  max-height: 42px; 
  width: auto; 
  max-width: 140px; 
  border-radius: 8px; 
  object-fit: contain; 
  flex-shrink: 0; 
  display: block; 
}
.nav-links { 
  display: flex; 
  align-items: center;
  flex-wrap: wrap;
  gap: 22px; 
  font-size: 0.9rem; 
}
.nav-links a {
  position: relative;
  color: var(--header-link);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 1px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-links a:hover {
  color: var(--red);
}
.nav-links a:hover::after {
  width: 100%;
}
.cat-tab-home {
  flex-direction: column;
  gap: 2px;
  padding: 6px 16px !important;
}
.cat-tab-home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.cat-tab-home span:last-child {
  font-size: 0.74rem;
}
.cat-tab-home.active .cat-tab-home-icon,
.cat-tab-home:hover .cat-tab-home-icon {
  color: var(--red-dark);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}
.header-account-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.header-account-link:hover {
  color: var(--red);
}
.header-account-link-primary {
  color: var(--red);
}
.cart-btn { 
  background: var(--red); 
  border: none; 
  color: #fff; 
  border-radius: 8px; 
  padding: 10px 16px; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  cursor: pointer; 
  font-size: 0.9rem; 
  font-weight: 600; 
  text-decoration: none;
}
.cart-btn:hover {
  background: var(--red-dark);
}
.cart-count { 
  background: #fff; 
  color: var(--red); 
  font-weight: 800; 
  font-size: 0.7667rem; 
  border-radius: 999px; 
  padding: 1px 6px; 
}

.cat-strip { 
  background: #fff; 
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  overflow-x: hidden;
}
.cat-strip-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
  display: flex; 
  align-items: stretch;
  gap: 0;
  overflow-x: auto; 
  scrollbar-width: none;
}
.cat-strip-inner::-webkit-scrollbar {
  display: none;
}
@media (min-width: 641px) {
  .cat-strip-inner {
    justify-content: space-between;
  }
  .cat-tab {
    flex: 1 1 0;
    justify-content: center;
    border-radius: 0;
  }
  .cat-tab.active {
    transform: none;
  }
}
.cat-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.cat-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat-color, var(--red));
  flex-shrink: 0;
}
.cat-tab:hover {
  color: var(--red-dark);
  background: var(--red-soft);
  box-shadow: inset 0 -3px 0 0 var(--red);
}
.cat-tab.active {
  color: var(--red-dark);
  background: linear-gradient(180deg, var(--red-soft), #fde3e7);
  font-weight: 800;
  box-shadow: inset 0 -3px 0 0 var(--red);
  transform: translateY(-1px);
}

.grid { 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 16px; 
}
@media (max-width: 992px) { 
  .grid { 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
  } 
}
@media (max-width: 768px) { 
  .grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 12px; 
  } 
}
@media (max-width: 480px) { 
  .grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 10px; 
  } 
}

.card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--card-radius, 10px); 
  box-shadow: var(--card-shadow, none); 
  padding: 12px; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  position: relative; 
  height: 100%;
  min-height: 280px;
  min-width: 0;
  transition: all 0.2s ease;
}
.card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.thumb { 
  aspect-ratio: 1 / 1; 
  width: 100%;
  border-radius: 8px; 
  background: #ffffff; 
  border: 1px solid var(--border); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
  position: relative;
}
.thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  padding: 4px;
}
.thumb .placeholder { 
  color: var(--muted); 
  font-size: 0.8rem; 
}
.discount-badge { 
  position: absolute; 
  top: 8px; 
  right: 8px; 
  background: var(--red); 
  color: #fff; 
  font-size: 0.7rem; 
  font-weight: 800; 
  border-radius: 6px; 
  padding: 3px 8px; 
  z-index: 5;
}
.best-badge { 
  position: absolute; 
  top: 8px; 
  left: 8px; 
  background: var(--ink); 
  color: #fff; 
  font-size: 0.65rem; 
  font-weight: 700; 
  border-radius: 6px; 
  padding: 3px 8px; 
  z-index: 5;
}
.card-name { 
  font-weight: 600; 
  font-size: 0.85rem; 
  line-height: 1.5; 
  min-height: 42px; 
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  margin-top: 4px;
}
.card-name a {
  color: inherit;
  text-decoration: none;
}
.card-name a:hover {
  color: var(--red);
}
.old-price { 
  font-size: 0.7rem; 
  color: var(--muted); 
  text-decoration: line-through; 
  display: block; 
}
.card-foot { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto; 
  padding-top: 6px;
  border-top: 1px solid #f5f5f5;
}
.price { 
  font-weight: 800; 
  font-size: 0.9rem; 
  color: var(--red);
  min-width: 0;
  overflow-wrap: break-word;
}
.add-btn { 
  background: var(--red-soft); 
  color: var(--red); 
  border: none; 
  border-radius: 8px; 
  padding: 6px 12px; 
  font-size: 0.75rem; 
  font-weight: 700; 
  cursor: pointer; 
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.add-btn:hover { 
  background: var(--red); 
  color: #fff; 
}
.add-btn.out-of-stock {
  opacity: 0.5;
  pointer-events: none;
}

.section-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin: 30px 0 16px; 
}
.section-head:first-of-type { 
  margin-top: 10px; 
}
.section-head h2 { 
  font-size: 1.1333rem; 
  margin: 0; 
}
.section-head h2 span { 
  color: var(--red); 
}
.section-head-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.section-head-link:hover h2 {
  color: var(--red);
}

.form-card { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 22px; 
  max-width: 560px; 
  margin: 0 auto; 
}
.form-row { 
  margin-bottom: 14px; 
}
.qty-buy-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
  height: 50px;
}
.qty-stepper {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}
.qty-stepper:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 57, 78, 0.1);
}
.qty-btn {
  width: 38px;
  border: none;
  background: #f7f7f7;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}
.qty-btn:hover {
  background: var(--red-soft);
  color: var(--red-dark);
}
.qty-btn:active {
  background: var(--red);
  color: #fff;
}
.qty-input-compact {
  width: 68px;
  border: none;
  border-inline-start: 1.5px solid var(--border);
  border-inline-end: 1.5px solid var(--border);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty-input-compact:focus {
  outline: none;
}
.qty-input-compact::-webkit-outer-spin-button,
.qty-input-compact::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-buy-row .btn-primary {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-row label { 
  display: block; 
  font-size: 0.8667rem; 
  margin-bottom: 6px; 
  color: var(--muted); 
}
.form-row input, 
.form-row select, 
.form-row textarea { 
  width: 100%; 
  border: 1.5px solid var(--border); 
  border-radius: 8px; 
  padding: 10px 12px; 
  font-size: 0.9rem; 
  outline: none; 
}
.form-row input:focus, 
.form-row select:focus, 
.form-row textarea:focus { 
  border-color: var(--red); 
}
.btn-primary { 
  background: var(--red); 
  color: #fff; 
  border: none; 
  padding: 12px 20px; 
  border-radius: 9px; 
  font-weight: 700; 
  font-size: 0.9333rem; 
  cursor: pointer; 
  width: 100%; 
}
.btn-primary:hover { 
  background: var(--red-dark); 
}
.alert { 
  padding: 10px 14px; 
  border-radius: 8px; 
  font-size: 0.8667rem; 
  margin-bottom: 14px; 
}
.alert-error { 
  background: #fdecef; 
  color: var(--red-dark); 
}
.alert-success { 
  background: #e8f8ee; 
  color: var(--good); 
}

.table { 
  width: 100%; 
  border-collapse: collapse; 
  background: #fff; 
  border-radius: 10px; 
  overflow: hidden; 
}
.table th, 
.table td { 
  padding: 10px 12px; 
  border-bottom: 1px solid var(--border); 
  font-size: 0.8667rem; 
  text-align: right; 
}
.table th { 
  background: #fafafa; 
  color: var(--muted); 
  font-weight: 700; 
}

.footer { 
  background: var(--footer-bg); 
  color: var(--footer-text); 
  padding: 30px 24px; 
  font-size: 0.8333rem; 
  margin-top: 40px; 
  overflow-x: hidden;
}
.footer-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0; 
  display: flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: 12px; 
}

.product-top-grid { 
  display: grid; 
  grid-template-columns: minmax(0,1fr) minmax(0,1fr); 
  gap: 18px; 
  align-items: stretch; 
  margin-bottom: 22px; 
}
.product-gallery-box, 
.specs-box { 
  display: flex; 
  flex-direction: column; 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--card-radius, 10px); 
  padding: 14px; 
  height: 100%; 
  box-sizing: border-box; 
}
.product-main-img { 
  flex: 1; 
  min-height: 280px; 
  max-height: 380px; 
  background: #fff; 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
}
.product-main-img img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}
.product-main-img .placeholder { 
  color: var(--muted); 
  font-size: 0.9rem; 
}
.product-thumbs { 
  display: flex; 
  gap: 8px; 
  margin-top: 10px; 
  overflow-x: auto; 
  padding-bottom: 2px; 
}
.product-thumb { 
  width: 56px; 
  height: 56px; 
  flex-shrink: 0; 
  border: 2px solid var(--border); 
  border-radius: 8px; 
  overflow: hidden; 
  cursor: pointer; 
  background: #fff; 
  transition: border-color .15s ease; 
}
.product-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}
.product-thumb.active { 
  border-color: var(--red); 
}
.specs-box { 
  overflow-y: auto; 
}
.specs-box h3 { 
  margin: 0 0 10px; 
  font-size: 0.95rem; 
  font-weight: 800; 
  color: var(--ink); 
}
.specs-box ul { 
  margin: 0; 
  padding-inline-start: 18px; 
  font-size: 0.86rem; 
  color: var(--muted); 
  line-height: 2; 
}
.specs-box li { 
  margin-bottom: 2px; 
}
.product-description { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--card-radius, 10px); 
  padding: 18px; 
  margin-bottom: 20px; 
  line-height: 2; 
  font-size: 0.93rem; 
  color: var(--ink); 
  overflow-wrap: break-word; 
}
.product-description p { 
  margin: 0 0 10px; 
}
/* استایل‌های ویرایشگر متن ادمین (Quill) که باید تو صفحه محصول هم اعمال بشن، وگرنه تراز/اندازه متنی که ادمین انتخاب کرده نمایش داده نمیشه */
.product-description .ql-align-right { text-align: right; }
.product-description .ql-align-left { text-align: left; }
.product-description .ql-align-center { text-align: center; }
.product-description .ql-align-justify { text-align: justify; }
.product-description .ql-size-small { font-size: 0.75em; }
.product-description .ql-size-large { font-size: 1.5em; }
.product-description .ql-size-huge { font-size: 2.5em; }
.product-description ul, .product-description ol {
  padding-inline-start: 24px;
  margin: 0 0 10px;
}
.product-buy-box { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: var(--card-radius, 10px); 
  padding: 18px; 
}

.product-detail-grid { 
  display: grid; 
  grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); 
  gap: 24px; 
}

@media (max-width: 780px) {
  .product-top-grid { 
    grid-template-columns: 1fr; 
  }
  .product-main-img { 
    min-height: 220px; 
    max-height: 300px; 
  }
}
@media (max-width: 860px) {
  .product-detail-grid { 
    grid-template-columns: 1fr; 
  }
  .form-card { 
    max-width: 100%; 
  }
  .grid[style*="1.1fr"] { 
    grid-template-columns: 1fr !important; 
  }
}

.enamad-slot { 
  max-width: 1200px; 
  margin: 14px auto 0; 
  padding: 0 24px; 
  text-align: left; 
  direction: ltr; 
  overflow-x: auto;
}
.enamad-slot * {
  max-width: 100% !important;
}
.enamad-slot iframe {
  max-width: 100% !important;
}

.table-wrap { 
  width: 100%; 
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
}

.carousel-wrap { 
  position: relative; 
  margin: 0 -6px;
  padding: 0 6px;
}
.carousel-track { 
  display: flex; 
  gap: 16px; 
  overflow-x: auto; 
  scroll-snap-type: x mandatory; 
  padding: 4px 0 10px; 
  scroll-behavior: smooth; 
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}
.carousel-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel-track::-webkit-scrollbar { 
  height: 6px; 
}
.carousel-track::-webkit-scrollbar-thumb { 
  background: var(--border); 
  border-radius: 999px; 
}
.carousel-track::-webkit-scrollbar-track {
  background: transparent;
}
.carousel-track .card { 
  min-width: 210px; 
  max-width: 210px; 
  scroll-snap-align: start; 
  flex-shrink: 0; 
  min-height: 300px;
}
@media (max-width: 768px) {
  .carousel-track .card { 
    min-width: 180px; 
    max-width: 180px; 
    min-height: 260px;
  }
}
@media (max-width: 480px) {
  .carousel-track .card { 
    min-width: 155px; 
    max-width: 155px; 
    min-height: 240px;
  }
  .carousel-track .card .card-name {
    font-size: 0.75rem;
    min-height: 34px;
  }
  .carousel-track .card .price {
    font-size: 0.8rem;
  }
  .carousel-track .card .add-btn {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
}

.carousel-btn {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  width: 34px; 
  height: 34px;
  border-radius: 50%; 
  background: #fff; 
  border: 1px solid var(--border); 
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 16px; 
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
  z-index: 5;
  transition: all 0.2s ease;
}
.carousel-btn:hover { 
  background: var(--red-soft); 
  color: var(--red); 
  border-color: var(--red);
}
.carousel-btn.prev { 
  right: -8px; 
}
.carousel-btn.next { 
  left: -8px; 
}
@media (max-width: 700px) { 
  .carousel-btn { 
    display: none; 
  } 
}

.deal-timer { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background: var(--red-soft); 
  border-radius: 8px; 
  padding: 4px 10px; 
  font-size: 0.7rem; 
  color: var(--red-dark); 
  margin-top: 4px; 
}
.deal-timer span {
  font-weight: 500;
}
.deal-timer strong { 
  direction: ltr; 
  font-size: 0.8rem; 
  font-weight: 800;
  color: var(--red);
}

.service-strip { 
  background: #fff; 
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  margin-top: 30px;
}
.service-strip-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 24px 0; 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 16px; 
}
.service-item { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  text-align: center;
  gap: 10px; 
  padding: 6px;
}
.service-icon { 
  width: 40px; 
  height: 40px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0;
  color: var(--svc-color, var(--red));
  transition: transform 0.25s ease;
}
.service-item:hover .service-icon {
  transform: translateY(-2px);
}
.service-icon svg { 
  width: 34px; 
  height: 34px; 
  display: block;
  stroke: currentColor;
  stroke-width: 1.6;
}
.service-item strong { 
  display: block; 
  font-size: 0.82rem; 
  font-weight: 700; 
  color: var(--ink); 
}
.service-item span { 
  display: block; 
  font-size: 0.72rem; 
  color: var(--muted); 
  margin-top: 1px; 
}

@media (max-width: 780px) { 
  .service-strip-inner { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 18px 10px;
    padding: 18px 0;
  }
  .service-icon { 
    width: 34px; 
    height: 34px; 
  }
  .service-icon svg { 
    width: 28px; 
    height: 28px; 
  }
}
@media (max-width: 480px) {
  .service-strip-inner { 
    grid-template-columns: minmax(0,1fr) minmax(0,1fr); 
    gap: 16px 8px;
  }
  .service-item strong { 
    font-size: 0.74rem; 
  }
  .service-item span { 
    font-size: 0.62rem; 
  }
  .service-icon { 
    width: 30px; 
    height: 30px; 
  }
  .service-icon svg { 
    width: 25px; 
    height: 25px; 
  }
}

.brands-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 10px;
  padding: 24px 0;
}
.brands-strip-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
}
.brands-strip-inner h3 { 
  font-size: 0.95rem; 
  color: var(--muted); 
  margin: 0 0 14px; 
  font-weight: 700; 
}
.brands-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 14px; 
  align-items: center; 
}
.brand-item { 
  background: var(--bg); 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  padding: 10px 18px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  filter: grayscale(1); 
  opacity: 0.7; 
  transition: filter .15s ease, opacity .15s ease; 
}
.brand-item:hover { 
  filter: grayscale(0); 
  opacity: 1; 
}
.brand-item img { 
  height: 30px; 
  width: auto; 
  max-width: 100px; 
  object-fit: contain; 
}

.hero-slider { 
  position: relative; 
  max-width: 1200px; 
  margin: 18px auto 0; 
  padding: 0 24px; 
}
.hero-track { 
  display: flex; 
  overflow-x: auto; 
  scroll-snap-type: x mandatory; 
  border-radius: 14px; 
  scrollbar-width: none; 
}
.hero-track::-webkit-scrollbar { 
  display: none; 
}
.hero-slide {
  flex: 0 0 100%; 
  scroll-snap-align: start; 
  position: relative; 
  min-height: 230px;
  display: flex; 
  align-items: center; 
  background-size: cover; 
  background-position: center;
  overflow: hidden;
}
.hero-slide img.hero-bg { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  z-index: 0; 
}
.hero-slide-content { 
  position: relative; 
  z-index: 1; 
  padding: 28px 34px; 
  max-width: 480px; 
  color: #fff; 
}
.hero-slide-content h2 { 
  font-size: 1.6rem; 
  font-weight: 800; 
  margin: 0 0 10px; 
  line-height: 1.6; 
}
.hero-slide-content p { 
  font-size: 0.93rem; 
  opacity: 0.95; 
  margin: 0 0 18px; 
  line-height: 1.9; 
}
.hero-cta { 
  display: inline-block; 
  background: #fff; 
  color: var(--ink); 
  font-weight: 700; 
  padding: 10px 22px; 
  border-radius: 9px; 
  font-size: 0.9rem; 
}

.promo-strip { 
  max-width: 1200px; 
  margin: 20px auto 0; 
  padding: 0 24px; 
  display: grid; 
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 14px; 
}
.promo-banner {
  position: relative; 
  border-radius: 12px; 
  min-height: 110px; 
  overflow: hidden; 
  display: flex;
  align-items: center; 
  background-size: cover; 
  background-position: center; 
  color: #fff;
}
.promo-banner img.promo-bg { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  z-index: 0; 
}
.promo-banner-content { 
  position: relative; 
  z-index: 1; 
  padding: 16px 18px; 
}
.promo-banner-content h3 { 
  font-size: 0.95rem; 
  font-weight: 800; 
  margin: 0 0 4px; 
}
.promo-banner-content p { 
  font-size: 0.75rem; 
  opacity: 0.9; 
  margin: 0 0 8px; 
}
.promo-banner-content span { 
  font-size: 0.73rem; 
  font-weight: 700; 
  background: rgba(255,255,255,0.9); 
  color: var(--ink); 
  padding: 4px 10px; 
  border-radius: 6px; 
}

@media (max-width: 780px) { 
  .promo-strip { 
    grid-template-columns: 1fr; 
  }
}
@media (max-width: 640px) {
  .container { 
    padding: 14px 16px; 
  }
  .topbar-inner { 
    padding: 14px 18px; 
    gap: 12px; 
    justify-content: space-between;
  }
  .cat-strip-inner { 
    padding: 10px 16px; 
  }
  .section-head { 
    margin: 18px 0 12px; 
    flex-wrap: wrap; 
    gap: 8px; 
  }
  .form-card { 
    padding: 16px; 
  }
  .nav-links { 
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    justify-content: center;
    gap: 10px 18px; 
    font-size: 0.88rem;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  .header-actions {
    gap: 12px;
  }
  .header-account-link {
    font-size: 0.85rem;
  }
  .cart-btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
  .brand-name {
    font-size: 1.15rem;
  }
  .brand-sub {
    font-size: 0.74rem;
  }
  .brand-logo { 
    height: 40px; 
    max-height: 40px; 
    max-width: 130px; 
  }
  .service-strip { 
    padding: 0 16px; 
  }
  .hero-slider { 
    padding: 0 16px; 
  }
  .promo-strip { 
    padding: 0 16px; 
  }
  .brands-strip-inner { 
    padding: 0 16px; 
  }
  .enamad-slot { 
    padding: 0 16px; 
  }
  .footer { 
    padding: 20px 16px; 
  }
}

@media (max-width: 480px) {
  .grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
    gap: 10px; 
  }
  .card { 
    padding: 9px; 
  }
  .thumb { 
    aspect-ratio: 1 / 1; 
  }
  .topbar-inner { 
    flex-wrap: wrap; 
  }
  .header-account-link-primary {
    display: none;
  }
  .cart-btn span:not(.cart-count) { 
    display: none; 
  }
  .table th, 
  .table td { 
    padding: 8px 6px; 
  }
  .service-strip { 
    padding: 0 12px; 
  }
  .hero-slider { 
    padding: 0 12px; 
  }
  .promo-strip { 
    padding: 0 12px; 
  }
  .brands-strip-inner { 
    padding: 0 12px; 
  }
  .container { 
    padding: 12px 12px; 
  }
}
/* ============================================================
   انتخاب تنوع محصول (رنگ / سایز / حافظه و ...) — سبک دیجی‌کالا
   ============================================================ */
.variant-group {
  margin-bottom: 18px;
}
.variant-group-label {
  display: block;
  font-size: 0.8667rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.variant-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.variant-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.variant-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  user-select: none;
  max-width: 100%;
  box-sizing: border-box;
}
.variant-chip:hover {
  border-color: var(--red);
}
.variant-radio:checked + .variant-chip {
  border: 2px solid var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 700;
  padding: 8px 15px 8px 28px;
  box-shadow: 0 1px 6px rgba(239,57,78,0.18);
}
.variant-radio:checked + .variant-chip::before {
  content: "✓";
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--red);
}
.variant-radio:focus-visible + .variant-chip {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.variant-chip.is-disabled {
  cursor: not-allowed;
  color: #b7bcc4;
  background: #f7f7f7;
  border-color: var(--border);
}
.variant-chip.is-disabled .variant-chip-text {
  text-decoration: line-through;
}
.variant-chip-color {
  padding-inline-start: 8px;
}
.variant-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  flex-shrink: 0;
}
.variant-extra {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
.variant-radio:checked + .variant-chip .variant-extra {
  color: var(--red-dark);
}

@media (max-width: 480px) {
  .variant-chip {
    padding: 7px 11px;
    font-size: 0.75rem;
  }
  .variant-color-dot {
    width: 16px;
    height: 16px;
  }
}
