
/* page:digikala-product */
/* Digikala PRODUCT page replica — blue edition */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: var(--sx-ink);          /* headings / strong */
  --body: var(--sx-ink);         /* body text */
  --gray: var(--sx-ink-3);
  --line: #e0e0e2;
  --line2: var(--sx-surface-2);
  --chip: var(--sx-surface-2);
  --panel: #f8f8f9;
  --blue: var(--sx-brand);         /* brand accent (was red) */
  --blue-deep: var(--sx-brand-deep);
  --link: #2e7cd6;
  --gold: #f7a824;
  --green: #1f8354;
  --green-bg: #ecf7f0;
}
html { background: var(--sx-brand-soft); }
body{width:100%;
  font-family: Vazirmatn, Vazir, Tahoma, 'Segoe UI', sans-serif;
  color: var(--body);
  max-width:1366px; margin: 0 auto; background: var(--sx-brand-soft);
  overflow-x: hidden;
}
img { display: block; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; }
a { text-decoration: none; color: inherit; cursor: pointer; }
.chev { font-weight: 700; }

/* =============== header (same as homepage — روی پس‌زمینهٔ ملایم مثل دیجی‌کالا) =============== */
/* هدر چسبان است؛ پس‌زمینهٔ همرنگ صفحه می‌گیرد تا مثل خود دیجی‌کالا با پس‌زمینه یکدست شود.
   (body .hdr برای غلبه بر extras.css که بعد از این فایل لود می‌شود) */
body .hdr { background: var(--sx-brand-soft); }
.hdr-in { display: flex; align-items: center; height: 90px; padding: 0 20px 0 30px; }
.logo img { height: 50px; width: auto; }
.search {
  flex: 1; height: 44px; background: var(--sx-surface-2); border-radius: 10px;
  margin: 0 26px 0 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
}
.s-in {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--body); padding: 0;
}
.s-in::placeholder { color: var(--sx-ink-3); }
.icon-btn { display: flex; align-items: center; }
.v-div { width: 1px; height: 26px; background: var(--sx-line); margin: 0 18px; }
.login {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--sx-line); border-radius: 9px; height: 40px; padding: 0 14px;
  font-size: 12.5px; color: var(--sx-ink); margin-left: 26px;
}
.cart { margin-right: 2px; }
.nav { border-bottom: 1px solid #e5eaf3; background: transparent; }
.nav-in { display: flex; align-items: center; height: 36px; padding: 0 18px 0 20px; gap: 26px; }
.nav-cat { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; }
.nav-it { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sx-ink-2); }
.addr {
  margin-right: auto; display: flex; align-items: center; gap: 5px;
  background: #fef2e7; color: #f28e28; font-size: 11.5px; border-radius: 9px; padding: 5px 11px;
}

/* =============== stories strip (below search box) =============== */
.stories-wrap { background: transparent; }
.stories {
  display: flex; gap: 15px;
  overflow-x: auto; scrollbar-width: none;
  padding: 12px 20px 6px;
  touch-action: pan-x pan-y;
  cursor: grab;
}
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; width: 80px; display: flex; flex-direction: column; align-items: center; }
.st-ring {
  display: block; width: 80px; height: 80px; border-radius: 50%; padding: 3px;
  background: linear-gradient(135deg, var(--sx-brand-2) 0%, var(--sx-brand) 55%, var(--sx-brand-deep) 100%);
}
.st-ring img {
  width: 100%; height: 100%; border-radius: 50%;
  border: 4px solid #fff; object-fit: cover; background: var(--sx-surface);
}
.st-lb { font-size: 11px; color: var(--sx-ink); margin-top: 7px; white-space: nowrap; }

/* =============== story viewer (fullscreen, Instagram-style) =============== */
body.stv-lock { overflow: hidden; }
.stv {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center; gap: 16px;
  background: rgba(7,9,20,.93); direction: ltr;
}
.stv.open { display: flex; }
.stv-nav {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  background: var(--sx-surface); color: var(--sx-ink); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 18px rgba(0,0,0,.4); cursor: pointer;
}
.stv-nav:hover { background: #f0f0f3; }
.stv-card {
  position: relative; direction: rtl; overflow: hidden;
  width: min(560px, 96vw); height: min(93vh, 860px);
  border-radius: 16px; background: #0d1430;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.stv-bg {
  position: absolute; inset: -46px;
  background-size: cover; background-position: center;
  filter: blur(30px) brightness(.42) saturate(1.2);
  transform: scale(1.18);
}
.stv-top { position: absolute; top: 0; right: 0; left: 0; padding: 13px 14px 0; z-index: 5; }
.stv-bars { display: flex; gap: 4px; }
.stv-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.34); overflow: hidden; }
.stv-bar i { display: block; height: 100%; width: 0; background: var(--sx-surface); border-radius: 4px; transition: width .12s linear; }
.stv-hdr { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: #fff; }
.stv-av { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; padding: 2.5px; background: linear-gradient(135deg,var(--sx-brand-2),var(--sx-brand) 55%,var(--sx-brand-deep)); }
.stv-av img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.stv-who { font-size: 13px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.stv-x {
  margin-right: auto; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s;
}
.stv-x:hover { background: rgba(255,255,255,.32); }
/* تصویر استوری: تمام‌کارت و بزرگ (مثل اینستاگرام) */
.stv-mid { position: absolute; inset: 0; z-index: 2; }
.stv-ph { position: absolute; inset: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.stv-ph img { width: 100%; height: 100%; border-radius: 0; border: 0; object-fit: cover; display: block; }
.stv-ttl {
  position: absolute; bottom: 96px; right: 0; left: 0; text-align: center;
  color: #fff; font-size: 22px; font-weight: 800; line-height: 1.7;
  padding: 34px 20px 0; text-shadow: 0 2px 14px rgba(0,0,0,.55);
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.28) 55%, transparent);
}
.stv-cta {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--sx-brand); color: #fff; font-size: 13px; font-weight: 700;
  border-radius: 26px; padding: 11px 34px; box-shadow: 0 8px 22px rgba(232,80,31,.45);
}
.stv-cta:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
  .stv { gap: 0; }
  .stv-nav { display: none; }
  .stv-card { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .stv-ttl { font-size: 18px; bottom: 92px; }
  .stv-cta { bottom: 22px; }
}

/* =============== breadcrumb =============== */
.crumbs {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0 0; font-size: 12px; color: var(--sx-ink-3);
}
.crumbs .sep { margin: 0 10px; color: #b5b8bd; }
.crumbs .cur { color: var(--ink); }
.crumbs .sell { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #8a8d93; }

/* =============== product main — کارت سفید سه‌ستونی مثل دیجی‌کالا =============== */
/* پس‌زمینهٔ صفحه روی حالت روشن، ملایم و آبی‌فام است (در حالت شب خودکار تیره می‌شود) */
.pmain {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) minmax(0, 386px);
  gap: 18px;
  direction: ltr;
  max-width: 1286px;
  margin: 10px auto 0;
  padding: 16px;
  background: var(--sx-surface);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(23, 43, 99, .05);
}
.pmain > * { direction: rtl; min-width: 0; }

/* در عرض‌های میانی، کارت مانند خود دیجی‌کالا ۱۴px از لبه‌ها فاصله می‌گیرد */
@media (min-width: 900px) and (max-width: 1313px) {
  .pmain { margin-left: 14px; margin-right: 14px; }
}

/* ---------- کادر خرید (ستون چپ) ---------- */
.buy-col { display: flex; flex-direction: column; }
.buy {
  border: 1px solid #eceef4; border-radius: 12px; background: var(--sx-surface);
  overflow: hidden;
}
/* کادر فروشنده — بخش آبی‌فامِ بالای کادر خرید (دقیقاً مثل دیجی‌کالا) */
.dk-sellcard { background: var(--sx-brand-soft); border-radius: 12px 12px 0 0; padding: 14px 16px 6px; }
.dk-sellcard .buy-top { display: flex; align-items: center; justify-content: space-between; }
.dk-sellcard .buy-top .t { font-size: 14px; font-weight: 700; color: var(--ink); }
.dk-sellcard .buy-top .chev { color: var(--blue); display: flex; }
.dk-srow { display: flex; align-items: center; gap: 10px; padding: 13px 0; }
.dk-srow .ic {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: var(--sx-surface);
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  font-size: 17px; box-shadow: 0 1px 2px rgba(23, 43, 99, .06); overflow: hidden;
}
.dk-srow .ic img { width: 100%; height: 100%; object-fit: cover; }
.dk-srow .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dk-srow .who .nm { font-size: 13.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.dk-srow .who .nm .vfy { color: var(--sx-brand-2); display: flex; }
.dk-srow .who .sub { font-size: 11.5px; color: #9b9ea6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-srow .more { margin-right: auto; font-size: 11.5px; color: var(--link); white-space: nowrap; }
.dk-srow .more:hover { color: var(--blue); }
/* ردیف عملکرد */
.dk-perf { display: flex; align-items: center; gap: 8px; padding: 12px 2px; font-size: 12.5px; }
.dk-perf + .dk-srow { border-top: 1px solid #e5e9f1; }
.dk-perf .sm { width: 22px; height: 22px; border-radius: 50%; background: #e8f7ef; color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 22px; }
.dk-perf .lb { color: var(--body); }
.dk-perf .sep { width: 3px; height: 3px; border-radius: 50%; background: #c3c7cf; }
.dk-perf .vl { color: var(--green); font-weight: 700; }
/* گارانتی — ردیف انتخاب‌شدهٔ رادیویی */
.dk-warr { padding: 2px 0 10px; }
.dk-warr-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); padding: 10px 0 8px; }
.dk-warr-h .ic { color: var(--sx-ink-3); font-size: 15px; display: flex; }
.dk-warr-opt { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; background: var(--sx-surface); font-size: 12.5px; color: var(--ink); font-weight: 600; border: 1px solid transparent; }
.dk-warr-opt .rd { width: 17px; height: 17px; border-radius: 50%; border: 1.6px solid #c3c7cf; flex: 0 0 17px; }
.dk-warr-opt.sel { border-color: #cfdcf6; }
.dk-warr-opt.sel .rd { border-color: var(--blue); background: radial-gradient(circle at center, #fff 0 4.5px, var(--blue) 4.6px 100%); }
/* موجودی و ارسال */
.dk-stock { display: flex; align-items: center; gap: 8px; padding: 12px 2px; font-size: 12.5px; border-top: 1px solid #e5e9f1; }
.dk-stock .ic { color: var(--green); display: flex; font-size: 13px; }
.dk-stock .ok { color: var(--green); font-weight: 600; }
.dk-stock .cnt { color: #9b9ea6; font-size: 11.5px; }
.dk-stock .ic.no, .dk-stock .no { color: #d9534f; }
.dk-stock .no { font-weight: 700; }
.dk-ship { display: flex; align-items: center; gap: 8px; padding: 2px 2px 14px; font-size: 12.5px; color: var(--body); flex-wrap: wrap; }
.dk-ship .ic { color: var(--sx-ink-3); display: flex; font-size: 15px; }
.dk-ship .sub { color: #9b9ea6; }
.dk-ship .sep { width: 3px; height: 3px; border-radius: 50%; background: #c3c7cf; }

/* ---------- قیمت و دکمهٔ خرید ---------- */
.dk-buyact { padding: 14px 16px 16px; }
.dk-offrow { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 6px; }
.dk-old { color: var(--sx-ink-3); text-decoration: line-through; font-size: 13px; }
.pill-off {
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 12px; padding: 3px 8px 4px;
}
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price-row .pr { display: flex; align-items: flex-end; gap: 6px; }
.price-row .num { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.price-row .tom { font-size: 11px; color: var(--gray); padding-bottom: 3px; }
.dk-qty { display: inline-flex; align-items: center; border: 1px solid var(--sx-line); border-radius: 10px; overflow: hidden; background: var(--sx-surface); }
.dk-qty button { width: 36px; height: 36px; border: 0; background: var(--sx-surface); font-size: 18px; cursor: pointer; color: var(--sx-ink); transition: background .15s; }
.dk-qty button:hover { background: var(--sx-surface-2); }
.dk-qty input { width: 42px; height: 36px; border: 0; text-align: center; font-size: 14px; font-family: inherit; -moz-appearance: textfield; appearance: textfield; outline: none; background: var(--sx-surface); color: var(--ink); }
.dk-qty input::-webkit-outer-spin-button, .dk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cta {
  width: 100%; height: 44px; margin-top: 12px; border-radius: 9px;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.cta:hover { background: var(--blue-deep); }
/* جعبهٔ بازگشت کالا (سبز ملایم) */
.dk-retbox { margin-top: 12px; border-radius: 9px; background: #f5fdf0; border: 1px solid #e3f2e3; padding: 10px 12px; display: flex; align-items: center; gap: 9px; }
.dk-retbox .ic { width: 26px; height: 26px; border-radius: 50%; background: #e8f7ef; color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 13px; flex: 0 0 26px; }
.dk-retbox .tx { display: flex; flex-direction: column; gap: 1px; }
.dk-retbox .tx b { font-size: 12px; color: var(--ink); }
.dk-retbox .tx span { font-size: 10.5px; color: #7ea88f; }

/* ---------- ستون وسط: اطلاعات کالا ---------- */
.pinfo { padding-top: 2px; }
.pinfo h1 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.7; margin-bottom: 8px; }
.subtitle { color: var(--sx-ink-3); font-size: 12px; line-height: 2; margin: -2px 0 10px; }
.rating-row { display: flex; align-items: center; justify-content: flex-start; gap: 8px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line2); }
.rating-row .cnt { color: var(--sx-ink-3); font-size: 12px; }
.rating-row .chip {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 18px; background: var(--chip); font-size: 12px; color: var(--body);
}
.rating-row .chip:hover { background: #e6e7ea; }
.color-row { display: flex; align-items: center; justify-content: flex-start; gap: 7px; margin-top: 18px; font-size: 13px; color: var(--ink); font-weight: 600; }
.color-row .dot { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.swatches { display: flex; justify-content: flex-start; gap: 14px; margin-top: 12px; }
.sw {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sx-line); cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: var(--sx-surface); padding: 0; position: relative;
}
.sw i { width: 27px; height: 27px; border-radius: 50%; display: block; }
.sw.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); position: relative; }
.sw.sel::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 15px; height: 15px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-11'/%3E%3C/svg%3E");
}
/* ویژگی‌ها — کارت‌های سه‌ستونی */
.sec-h { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 20px 0 10px; }
.spec-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spec-chip { background: #f5f6f8; border-radius: 12px; padding: 9px 13px 10px; min-width: 0; }
.spec-chip .l { font-size: 11px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-chip .v { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.all-feats {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--sx-surface); height: 40px; width: 100%;
  font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: .15s;
}
.all-feats:hover { border-color: #c6d6f3; color: var(--blue); }

/* ---------- گالری (ستون راست) ---------- */
.pmain-r { position: relative; }
.rail { position: absolute; right: 0; top: 0; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.rail a { display: flex; opacity: .85; }
.gal { padding: 0 44px 0 6px; }
.gal img { width: 100%; max-width: 340px; aspect-ratio: 336 / 428; max-height: 428px; object-fit: contain; margin: 0 auto; }
.thumbs { display: flex; justify-content: flex-start; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.thumbs button {
  width: 72px; height: 52px; border: 1px solid var(--sx-line); border-radius: 9px; background: var(--sx-surface);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0;
}
.thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button.on { border-color: #b9bcc4; }
.gal-foot { display: flex; align-items: center; gap: 26px; margin-top: 16px; padding-right: 14px; font-size: 11.5px; color: var(--sx-ink-3); }
.gal-foot .dkp { letter-spacing: .3px; }
.gal-foot .legal { display: flex; align-items: center; gap: 6px; color: #8a8d93; }

/* ---------- perks row ---------- */
.perks { display: flex; justify-content: space-between; margin: 40px 6px 0; padding: 0 4px; }
.perk { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--body); }
.perk img { height: 44px; width: 44px; object-fit: contain; }

/* ---------- حالت شب برای بخش‌های جدید ---------- */
html.dk-dark .pmain { background: var(--dkd-surface); box-shadow: none; }
html.dk-dark .buy { background: var(--dkd-surface); border-color: var(--dkd-line); }
html.dk-dark .dk-sellcard { background: #1e2338; }
html.dk-dark .dk-sellcard .buy-top .t { color: var(--dkd-ink); }
html.dk-dark .dk-sellcard .buy-top .chev { color: var(--sx-brand-2); }
html.dk-dark .dk-srow .ic { background: var(--dkd-surface-2); color: var(--sx-brand-2); }
html.dk-dark .dk-srow .who .nm { color: var(--dkd-ink); }
html.dk-dark .dk-srow .who .sub { color: var(--dkd-ink-3); }
html.dk-dark .dk-perf { color: var(--dkd-ink-2); }
html.dk-dark .dk-perf .vl { color: #58c28b; }
html.dk-dark .dk-perf .sm { background: #1d3a2e; color: #58c28b; }
html.dk-dark .dk-warr-h { color: var(--dkd-ink); }
html.dk-dark .dk-warr-h .ic { color: var(--dkd-ink-3); }
html.dk-dark .dk-warr-opt { background: var(--dkd-surface-2); color: var(--dkd-ink); border-color: transparent; }
html.dk-dark .dk-warr-opt.sel { border-color: #38508c; }
html.dk-dark .dk-warr-opt .rd { border-color: #4a4f78; }
html.dk-dark .dk-warr-opt.sel .rd { border-color: var(--sx-brand-2); background: radial-gradient(circle at center, var(--dkd-surface-2) 0 4.5px, var(--sx-brand-2) 4.6px 100%); }
html.dk-dark .dk-stock { color: var(--dkd-ink-2); }
html.dk-dark .dk-stock .ok { color: #58c28b; }
html.dk-dark .dk-stock .ic { color: #58c28b; }
html.dk-dark .dk-stock .ic.no, html.dk-dark .dk-stock .no { color: #e07a76; }
html.dk-dark .dk-stock .cnt { color: var(--dkd-ink-3); }
html.dk-dark .dk-ship { color: var(--dkd-ink-2); }
html.dk-dark .dk-ship .ic { color: var(--dkd-ink-3); }
html.dk-dark .dk-ship .sub { color: var(--dkd-ink-3); }
html.dk-dark .dk-retbox { background: #16261c; border-color: #245236; }
html.dk-dark .dk-retbox .ic { background: #1d3a2e; color: #58c28b; }
html.dk-dark .dk-retbox .tx b { color: var(--dkd-ink); }
html.dk-dark .dk-retbox .tx span { color: #6fa384; }
html.dk-dark .pinfo h1 { color: var(--dkd-ink); }
html.dk-dark .rating-row .chip { background: var(--dkd-surface-2); color: var(--dkd-ink-2); }
html.dk-dark .spec-chip { background: var(--dkd-surface-2); }
html.dk-dark .all-feats { background: var(--dkd-surface-2); border-color: var(--dkd-line); color: var(--dkd-ink); }
html.dk-dark .thumbs button { background: var(--dkd-surface-2); border-color: var(--dkd-line); }
html.dk-dark .dk-qty { background: var(--dkd-surface-2); border-color: var(--dkd-line); }
html.dk-dark .dk-qty button { background: transparent; color: var(--dkd-ink); }
html.dk-dark .dk-qty input { background: transparent; color: var(--dkd-ink); }


/* ---------- section headings ---------- */
.sec-title { display: inline-block; font-size: 16px; font-weight: 700; color: var(--ink); }
.sec-title::after { content: ''; display: block; width: 62px; height: 3px; border-radius: 2px; background: var(--blue); margin-top: 10px; }

/* ---------- sellers ---------- */
.sellers { margin-top: 30px; max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.sellers h2 { margin-bottom: 26px; }
.srow {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 250px) minmax(0, 1fr) minmax(0, 240px) minmax(0, 170px);
  gap: 12px; align-items: center; padding: 18px 4px; font-size: 12px;
}
.srow.hl { background: var(--panel); border-radius: 4px; }
.seller-id { display: flex; align-items: flex-start; gap: 10px; }
.seller-id .col { display: flex; flex-direction: column; gap: 7px; }
.seller-id .nm { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.seller-id .chip-sel { background: var(--green-bg); color: var(--green); font-size: 11px; border-radius: 12px; padding: 3px 10px; font-weight: 600; }
.seller-id .stats { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.seller-id .stats .sat { color: var(--green); }
.seller-id .stats .div { width: 1px; height: 11px; background: var(--sx-line); }
.seller-id .stats .perf { color: var(--ink); font-weight: 600; }
.seller-id img { width: 36px; height: 36px; border-radius: 50%; }
.seller-ship { color: var(--gray); font-size: 11.5px; line-height: 2; display: flex; gap: 8px; align-items: flex-start; }
.seller-ship svg { flex: 0 0 18px; margin-top: 4px; }
.seller-war { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--body); line-height: 1.9; white-space: pre-line; }
.seller-price { text-align: left; white-space: nowrap; }
.seller-price .num { font-size: 16px; font-weight: 800; color: var(--ink); }
.seller-price .tom { font-size: 10px; color: var(--gray); margin-right: 4px; }
.srow .cta { width: 132px; height: 36px; font-size: 12px; margin: 0; }
.plus-bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  background: linear-gradient(270deg, var(--sx-brand-soft) 0%, var(--sx-surface-2) 60%, #fff 100%);
  border-radius: 8px; height: 42px; padding: 0 16px; margin: 4px 0;
  font-size: 11.5px; color: var(--gray);
}
.plus-bar .t { display: flex; align-items: center; gap: 7px; color: var(--blue); font-size: 12.5px; font-weight: 600; }

/* ---------- videos ---------- */
.videos {
  border: 1px solid var(--line); border-radius: 16px; margin-top: 44px;
  padding: 26px 24px 20px; position: relative;
}
.videos .sec-h { margin: 0 0 20px; }
.vid-row { display: flex; gap: 30px; overflow: hidden; position: relative; }
.vid { flex: 0 0 281px; }
.vid .im { width: 281px; height: 280px; border-radius: 4px; overflow: hidden; background: #000; position: relative; cursor: pointer; }
.vid .im img { width: 100%; height: 100%; object-fit: cover; }
.vid .im::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 46px; height: 46px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Ccircle cx='24' cy='24' r='23' fill='white' fill-opacity='.92'/%3E%3Cpath d='M20 16l12 8-12 8z' fill='%2323254b'/%3E%3C/svg%3E");
}
.vid .cap { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 11.5px; color: var(--sx-ink-3); direction: ltr; justify-content: flex-end; }
.vid .cap img { width: 24px; height: 24px; border-radius: 50%; }
.edge-arrow {
  position: absolute; width: 40px; height: 40px; border-radius: 50%; background: var(--sx-surface);
  box-shadow: 0 3px 12px rgba(35, 37, 75, .16); color: var(--sx-ink); font-size: 20px;
  display: flex; align-items: center; justify-content: center; z-index: 6;
  top: 50%; transform: translateY(-50%);
  transition: color .15s, box-shadow .15s;
}
.edge-arrow:hover { color: var(--blue); }
.edge-arrow[disabled] { opacity: .35; cursor: not-allowed; }
.videos .edge-arrow[data-prev] { right: 10px; left: auto; }
.videos .edge-arrow[data-next] { left: 10px; right: auto; }
.cbox { position: relative; }
.cbox .edge-arrow[data-prev] { right: 10px; left: auto; }
.cbox .edge-arrow[data-next] { left: 10px; right: auto; }

/* ---------- tags + tabs ---------- */
.tags { margin-top: 40px; max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.tags .sec-title { margin-bottom: 18px; }
.tag-pills { display: flex; gap: 10px; margin-top: 16px; }
.tag-pill {
  border: 1px solid #d7e3f8; color: var(--link); background: #f7fafe;
  border-radius: 20px; height: 38px; padding: 0 20px; font-size: 12.5px; display: flex; align-items: center;
}
.tabs { margin-top: 40px; display: flex; gap: 42px; border-bottom: 1px solid var(--line2); max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.tab {
  padding: 12px 2px 14px; font-size: 13.5px; color: var(--gray); position: relative; cursor: pointer;
}
.tab.on { color: var(--blue); font-weight: 700; }
.tab.on::after {
  content: ''; position: absolute; right: 0; left: 0; bottom: -1px; height: 4px;
  border-radius: 3px; background: var(--blue);
}
.moarefi { margin-top: 30px; max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.moarefi h3 { font-size: 15px; color: var(--ink); }
.moarefi h3::after { content: ''; display: block; width: 46px; height: 3px; border-radius: 2px; background: var(--blue); margin-top: 10px; }
.moarefi p { margin-top: 18px; font-size: 13.5px; line-height: 2.3; text-align: justify; color: var(--body); }
/* جدول مشخصات (ویژگی‌های سفارشی محصول) */
.dk-specs .dk-spec-table { width: 100%; max-width: 945px; margin-top: 18px; border-collapse: collapse; background: var(--sx-surface); border: 1px solid var(--line, var(--sx-line)); border-radius: 12px; overflow: hidden; }
.dk-specs .dk-spec-table th, .dk-specs .dk-spec-table td { padding: 13px 18px; font-size: 13px; line-height: 1.9; text-align: right; vertical-align: top; border-bottom: 1px solid var(--line, var(--sx-line)); }
.dk-specs .dk-spec-table tr:last-child th, .dk-specs .dk-spec-table tr:last-child td { border-bottom: 0; }
.dk-specs .dk-spec-table th { width: 240px; color: var(--ink, var(--sx-ink)); font-weight: 700; background: #fafafa; white-space: nowrap; }
.dk-specs .dk-spec-table td { color: var(--body, #62666d); }
html.dk-dark .dk-specs .dk-spec-table { background: #1a1c2e; border-color: #2c2f45; }
html.dk-dark .dk-specs .dk-spec-table th { background: #12141f; color: #d7d9e4; }
html.dk-dark .dk-specs .dk-spec-table td { color: #b9bcca; }
html.dk-dark .dk-specs .dk-spec-table th, html.dk-dark .dk-specs .dk-spec-table td { border-bottom-color: #2c2f45; }
.more-lnk { display: flex; align-items: center; gap: 3px; color: var(--link); font-size: 12.5px; margin-top: 16px; }
.baresi { margin-top: 46px; max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.article { width: 100%; max-width: 945px; margin: 24px auto 0; }
.article img { width: 945px; height: auto; border-radius: 6px; }

/* ---------- specs ---------- */
.specs { margin-top: 46px; max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.spec-table { margin: 26px 0 0; }
.spec-row { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); min-height: 49px; align-items: center; gap: 12px; }
.spec-row .val { text-align: right; padding: 14px 0; border-bottom: 1px solid var(--line2); font-size: 13px; color: var(--body); }
.spec-row .lbl { text-align: center; font-size: 13px; color: var(--sx-ink-3); }
.specs .more-lnk { margin-top: 20px; }
.hmta { display: flex; gap: 8px; align-items: flex-start; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line2); font-size: 11.5px; color: var(--sx-ink-3); line-height: 2; }

/* ---------- rating & reviews ---------- */
.rating-sec { max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.reviews { max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.qa { max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.cbox { max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.perks { max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; }
.rating-sec { margin-top: 50px; }
.rating-sec > h2 { margin-bottom: 30px; }
.rate-grid { display: grid; grid-template-columns: 1fr 287px; gap: 20px; direction: ltr; }
.rate-grid > * { direction: rtl; }
.rate-side { text-align: center; }
.rate-side .big { font-size: 34px; font-weight: 800; color: var(--ink); }
.rate-side .big span { font-size: 13px; font-weight: 400; color: var(--gray); margin-right: 8px; }
.rate-side .stars { display: flex; justify-content: center; align-items: center; gap: 3px; margin-top: 14px; }
.rate-side .cnt { font-size: 11.5px; color: var(--gray); margin-top: 8px; }
.rate-side .line { font-size: 12.5px; color: var(--body); margin-top: 26px; }
.outline-btn {
  width: 100%; height: 52px; border: 1px solid var(--blue); border-radius: 12px;
  color: var(--blue); background: var(--sx-surface); font-size: 13.5px; font-weight: 600; margin-top: 16px;
  transition: background .2s;
}
.outline-btn:hover { background: var(--sx-brand-soft); }
.rate-main .photos { display: flex; justify-content: flex-start; gap: 33px; }
.rate-main .photos img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.rate-main .more-lnk { margin-top: 22px; }
.ai-head { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 40px; }
.ai-ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sx-brand-2) 0%, var(--sx-brand) 100%);
  position: relative; flex: 0 0 48px;
}
.ai-ico::after {
  content: ''; position: absolute; inset: 0;
  background: no-repeat center/58% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 3l1.7 4.6L18 9.3l-4.3 1.7L12 15.6l-1.7-4.6L6 9.3l4.3-1.7z'/%3E%3Cpath d='M18.5 14l.9 2.4 2.4.9-2.4.9-.9 2.4-.9-2.4-2.4-.9 2.4-.9z'/%3E%3C/svg%3E");
}
.ai-head .t { font-size: 15px; font-weight: 700; color: var(--ink); }
.ai-head .s { font-size: 11px; color: var(--sx-ink-3); margin-top: 5px; }
.ai-card {
  background: #f5f6ff; border-radius: 16px; margin-top: 22px; padding: 26px 28px 20px;
}
.ai-card p { font-size: 13px; line-height: 2.25; text-align: justify; color: var(--body); }
.ai-card .more { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.ai-chips { display: flex; justify-content: flex-start; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ai-chip {
  display: flex; align-items: center; gap: 7px; background: var(--sx-surface); border: 1px solid #e8e9f4;
  border-radius: 20px; height: 38px; padding: 0 14px; font-size: 11.5px; color: var(--body);
}
.ai-chip .ic { width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ai-chip .ic.pos { background: #21a45d; }
.ai-chip .ic.neg { background: #ef5350; }
.ai-note { font-size: 10.5px; color: #b9bcc2; margin-top: 16px; }
.ai-fb { display: flex; align-items: center; justify-content: flex-start; gap: 16px; margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--ink); }
.ai-fb .tb {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; background: var(--sx-surface);
}
.ai-fb .tx { margin-left: auto; }

/* reviews list */
.reviews { margin-top: 36px; }
.reviews > .dk-empty-state { margin-top: 18px; }
.rev-toolbar { display: flex; align-items: center; gap: 22px; font-size: 12.5px; }
.rev-toolbar .st { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.rev-toolbar .op { color: var(--gray); }
.rev-toolbar .op.on { color: var(--blue); }
.rev-toolbar .n { margin-right: auto; color: var(--gray); font-size: 12px; }
.rev { padding: 26px 0; border-bottom: 1px solid var(--line2); }
.rev-head { display: flex; align-items: center; }
.rev-head .r { display: flex; align-items: center; gap: 10px; }
.rev-head .nm { font-size: 13px; font-weight: 700; color: var(--ink); }
.rev-head .buyer { background: var(--green-bg); color: var(--green); font-size: 11px; border-radius: 12px; padding: 4px 12px; }
.rev-head .role { font-size: 11.5px; color: var(--green); }
.rev-head .avatar { width: 48px; height: 48px; border-radius: 50%; }
.rev-head .l { display: flex; align-items: center; gap: 10px; color: var(--gray); font-size: 11.5px; margin-right: auto; }
.rev-head .dots { color: var(--sx-line); letter-spacing: 2px; }
.rev-stars { display: flex; gap: 3px; margin-top: 16px; }
.rev-text { margin-top: 14px; font-size: 13px; line-height: 2.3; color: var(--body); text-align: justify; }
.rev-photos { display: flex; justify-content: flex-start; gap: 12px; margin-top: 16px; }
.rev-photos img { width: 46px; height: 52px; border-radius: 8px; object-fit: cover; }
.rev-foot { display: flex; align-items: center; margin-top: 16px; font-size: 11.5px; color: var(--gray); }
.rev-foot .r { display: flex; align-items: center; gap: 8px; }
.rev-foot .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--sx-line); }
.rev-foot .votes { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.rev-foot .votes span { display: flex; align-items: center; gap: 6px; }
.rev-more { display: flex; align-items: center; gap: 4px; color: var(--link); font-size: 12.5px; margin: 26px 0 0; }

/* ---------- Q&A ---------- */
.qa { margin-top: 50px; }
.qa > h2 { margin-bottom: 26px; }
.qa-grid { display: grid; grid-template-columns: 1fr 287px; gap: 20px; direction: ltr; }
.qa-grid > * { direction: rtl; }
.qa-side { text-align: center; }
.qa-side .line { font-size: 12.5px; color: var(--body); margin-top: 6px; }
.qa-toolbar { display: flex; align-items: center; gap: 22px; font-size: 12.5px; margin-bottom: 4px; }
.q { padding: 24px 0; border-bottom: 1px solid var(--line2); }
.q .qt { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 2; }
.q .ans { margin-top: 18px; }
.q .who { display: flex; align-items: center; }
.q .who .r { display: flex; align-items: center; gap: 10px; }
.q .who img { width: 44px; height: 44px; border-radius: 50%; }
.q .who .nm { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.q .atext { margin-top: 12px; font-size: 13px; color: var(--body); }
.q .adate { margin-top: 12px; font-size: 11.5px; color: var(--gray); }
.q .afoot { display: flex; align-items: center; margin-top: 14px; }
.q .afoot .votes { display: flex; align-items: center; gap: 20px; font-size: 11.5px; color: var(--gray); margin-right: auto; }
.q .afoot .votes span { display: flex; align-items: center; gap: 6px; }
.q .alink { display: flex; align-items: center; gap: 5px; color: var(--link); font-size: 12.5px; }
.qa-more { display: flex; align-items: center; gap: 4px; color: var(--link); font-size: 12.5px; margin-top: 26px; }

/* ---------- carousel boxes ---------- */
.cbox {
  border: 1px solid var(--line); border-radius: 16px; margin-top: 40px;
  padding: 22px 24px 24px; position: relative;
}
.cbox .sec-h { margin: 0 0 18px; font-size: 15px; }
.card-row { display: flex; gap: 24px; overflow: hidden; position: relative; }
.pcard { flex: 0 0 154px; }
.pcard.bordered { border: 1px solid #ececee; border-radius: 12px; padding: 5px 8px 12px; }
.pcard .im { width: 136px; height: 138px; margin: 0 auto; }
.pcard .im img { width: 100%; height: 100%; object-fit: contain; }
.pcard .ti {
  font-size: 11.5px; color: var(--body); text-align: center; line-height: 1.95;
  height: 45px; overflow: hidden; margin-top: 8px;
}
.pcard .off-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; height: 18px; }
.pcard .off-row .old { color: #b9bcc2; text-decoration: line-through; font-size: 10.5px; }
.pcard .price { display: flex; align-items: flex-end; justify-content: center; gap: 5px; margin-top: 8px; }
.pcard .price .tom { font-size: 9.5px; color: var(--gray); padding-bottom: 2px; }
.pcard .price .num { font-size: 13.5px; font-weight: 800; color: var(--ink); }
/* moved to [data-prev]/[data-next] below */
.cbox .track { gap: 24px; }

/* =============== footer (same as homepage) =============== */
footer { margin-top: 70px; border-top: 1px solid var(--line2); }
.ft-top { position: relative; padding: 36px 0 8px; }
.ft-logo { height: 42px; width: auto; margin: 0 auto; }
.back-top {
  position: absolute; left: 20px; top: 34px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--sx-surface);
  height: 40px; padding: 0 16px; font-size: 12px; color: var(--sx-ink);
}
.ft-contact { text-align: center; font-size: 11.5px; color: var(--sx-ink-3); margin-top: 18px; }
.ft-feats { display: flex; justify-content: space-between; padding: 34px 30px 10px; }
.ft-feat { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--sx-ink); }
.ft-feat img { height: 48px; width: 48px; object-fit: contain; }
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding: 30px 4px 10px; }
.ft-h { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.ft-col a { display: block; font-size: 11.5px; color: var(--sx-ink-3); padding: 8px 0; }
.ft-col.follow img.social { height: 26px; width: auto; }
.ft-col.follow .social.dk-social a { display: inline-flex; padding: 0; }
.nl-row { display: flex; margin-top: 12px; }
.nl-row input {
  flex: 1; height: 44px; border: 0; outline: none; background: var(--chip);
  border-radius: 0 8px 8px 0; padding: 0 14px; font-family: inherit; font-size: 12px; color: var(--body);
}
.nl-row button {
  width: 68px; height: 44px; background: var(--sx-ink-3); color: #fff; font-size: 12px;
  border-radius: 8px 0 0 8px;
}
.appbar { margin-top: 26px; }
.appbar img { width: 100%; height: 82px; object-fit: cover; border-radius: 8px; }
.about { display: flex; justify-content: space-between; gap: 60px; margin-top: 30px; }
.ab-col { flex: 1; }
.ab-h { font-size: 13px; font-weight: 700; color: var(--ink); }
.ab-p { font-size: 11px; line-height: 2.2; color: var(--sx-ink-3); margin-top: 12px; text-align: justify; }
.ab-more { display: flex; align-items: center; gap: 3px; color: var(--link); font-size: 11.5px; margin-top: 10px; }
.ab-badges { display: flex; gap: 12px; align-items: flex-start; }
.ab-badges img { width: 118px; height: 96px; object-fit: contain; border: 1px solid var(--line2); border-radius: 10px; padding: 6px; background: var(--sx-surface); }
.ab-link { color: var(--link); font-size: 12px; margin-top: 26px; }
.copyright { text-align: center; font-size: 11px; color: var(--sx-ink-3); margin: 30px 0; }
.bgrid {
  display: grid; grid-template-columns: repeat(9, minmax(0, 1fr));
  background: var(--sx-surface-2); border-top: 1px solid var(--sx-line);
}
.bcell { height: 80px; border: 1px solid var(--sx-line); margin: -0.5px; display: flex; align-items: center; justify-content: center; }
.bcell span { font-size: 15px; font-weight: 700; color: var(--sx-ink-3); letter-spacing: .2px; }
.bcell:nth-child(6) span::first-letter { font-size: 17px; }
.bcell:nth-child(7) span { letter-spacing: 2px; font-size: 14px; }
.bcell:nth-child(17) span { letter-spacing: 3px; font-size: 13px; }
.chat-fab {
  position: fixed; left: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--sx-brand); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(40, 90, 200, .35); z-index: 50;
}

/* =============== dynamic: drag =============== */
.track { display: flex; transition: transform .45s ease; will-change: transform; }
[data-car] { touch-action: pan-y; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }

/* =============== Desktop fine-tuning (1200-1399px) — header overflow =============== */
@media (min-width: 900px) and (max-width: 1399px) {
  .hdr-in { padding: 0 12px 0 14px; gap: 8px; }
  .hdr-in .search { margin: 0 10px; }
  .hdr-in .search .s-in { font-size: 12px; }
  .hdr-in .login { margin-left: 12px; padding: 0 10px; font-size: 11.5px; }
  .hdr-in .v-div { margin: 0 10px; }
  .nav-in { gap: 18px; padding: 0 12px; }
  .nav-it { font-size: 11px; }
  .nav-it svg { width: 15px; height: 15px; flex: 0 0 15px; }
  .addr { font-size: 11px; padding: 5px 9px; }
}
@media (min-width: 900px) and (max-width: 1024px) {
  .nav-it span { display: none; }
  .nav-it svg + span,
  .nav-it span { display: none; }
  .nav-cat span { font-size: 11px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .hdr-in { padding: 0 14px; }
  .search { margin: 0 16px; height: 40px; }
  .nav-in { gap: 14px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
  .nav-in::-webkit-scrollbar { display: none; }
  .nav-it { font-size: 11px; }
  .nav-it svg { width: 15px; height: 15px; flex: 0 0 15px; }

  .pmain { grid-template-columns: 264px minmax(0, 1fr) minmax(0, 320px); gap: 14px; padding: 14px; }
  .pmain h1 { font-size: 15px; }
  .spec-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gal { padding: 0 40px 0 4px; }
  .gal img { max-width: 272px; }
  .thumbs { gap: 8px; }
  .thumbs button { width: 58px; height: 40px; }

  .vid { flex: 0 0 220px; }
  .vid .im { width: 220px; height: 220px; }
  .videos .edge-arrow { width: 32px; height: 32px; font-size: 18px; }
  .videos .edge-arrow[data-prev] { right: 6px; left: auto; }
  .videos .edge-arrow[data-next] { left: 6px; right: auto; }

  .srow { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 10px; row-gap: 6px; padding: 16px 8px; }
  .srow > .seller-ship, .srow > .seller-war { grid-column: 1 / -1; }
  .srow > .cta { width: 100%; }
  .plus-bar { flex-wrap: wrap; padding: 8px 14px; height: auto; min-height: 42px; }

  .rate-grid, .qa-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; }
  .rate-side .big { font-size: 28px; }
  .rate-main .photos { gap: 14px; flex-wrap: wrap; }

  .pcard { flex: 0 0 140px; }
  .pcard .im { width: 124px; height: 124px; }
  .pcard .ti { font-size: 11px; height: 42px; }

  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .bgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ft-feats { flex-wrap: wrap; gap: 18px 26px; padding: 30px 14px 8px; justify-content: space-around; }
  .perks { flex-wrap: wrap; gap: 14px 22px; margin: 32px 0 0; }
  .about { gap: 30px; }
  .ab-badges { flex-wrap: wrap; gap: 8px; }
}

/* =============== Ultra-wide centering (>=1600px) =============== */
@media (min-width: 1600px) {
  .pmain { max-width: 1286px; margin-left: auto; margin-right: auto; }
  .crumbs { max-width: 1286px; margin-left: auto; margin-right: auto; }
}

/* =============== mobile =============== */
.m-hdr, .m-addr, .m-nav, .m-ft, .m-accs { display: none; }
@media (max-width: 899px) {
  html { -webkit-text-size-adjust: 100%; }
  body { width: 100%; min-width: 0; padding-bottom: 64px; }
  .stories { padding: 10px 14px 8px; gap: 14px; }
  .hdr, .nav { display: none; }
  .m-hdr {
    display: flex; align-items: center; gap: 10px; background: var(--sx-surface-2); padding: 12px 14px 10px;
  }
  .m-search {
    flex: 1; height: 46px; background: var(--sx-surface); border-radius: 12px; border: 1px solid var(--sx-line);
    box-shadow: 0 1px 3px rgba(0,0,0,.04); display: flex; align-items: center; gap: 8px; padding: 0 12px;
    position: relative; cursor: text;
  }
  .m-in { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-family: inherit; font-size: 13px; color: var(--body); padding: 0; }
  .m-ph { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); color: var(--sx-ink-2); font-size: 13px; pointer-events: none; white-space: nowrap; }
  .m-ph b { color: var(--sx-brand); font-weight: 800; }
  .m-in:focus ~ .m-ph, .m-in:not(:placeholder-shown) ~ .m-ph { display: none; }
  .m-slogo { width: 26px; height: 26px; border-radius: 6px; margin-right: auto; background: linear-gradient(var(--sx-brand),var(--sx-brand)); position: relative; }
  .m-slogo::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 7px; height: 7px; border: 1.8px solid #fff; border-top: 0; border-radius: 0 0 8px 8px; }
  .m-bell { width: 46px; height: 46px; border-radius: 50%; background: var(--sx-surface); border: 1px solid var(--sx-line); box-shadow: 0 1px 3px rgba(0,0,0,.04); display: flex; align-items: center; justify-content: center; flex: 0 0 46px; }
  .m-addr { display: flex; align-items: center; gap: 5px; background: var(--sx-surface-2); padding: 2px 16px 12px; font-size: 12.5px; color: var(--sx-ink); }

  .m-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--sx-surface); z-index: 60;
    height: 58px; box-shadow: 0 -2px 12px rgba(0,0,0,.08); border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .m-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9.5px; color: var(--sx-ink-3); }
  .m-nav a.on { color: var(--sx-ink); font-weight: 700; }

  .crumbs { padding: 12px 14px 0; }
  /* موبایل مثل دیجی‌کالا: گالری ← عنوان/رنگ/ویژگی‌ها ← کادر خرید */
  .pmain { display: flex; flex-direction: column; margin: 10px 14px 0; padding: 14px; }
  .pmain h1 { font-size: 15px; }
  .rail { display: none; }
  .pmain-r { order: -1; }
  .pinfo { order: 0; }
  .buy-col { order: 1; }
  .gal { padding: 0; }
  .gal img { width: 100%; max-width: 320px; height: auto; }
  .thumbs { padding-right: 0; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .spec-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy { margin-top: 18px; }
  .dk-qty { align-self: stretch; justify-content: space-between; }
  .dk-qty input { flex: 1; }
  .dlv { height: auto; padding: 12px; }
  .perks { flex-wrap: wrap; gap: 14px 22px; margin: 26px 14px 0; }
  .srow { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 10px; }
  .seller-ship, .seller-war { grid-column: 1 / -1; }
  .sellers { margin: 30px 14px 0; }
  .videos { margin: 34px 14px 0; padding: 18px 14px; }
  .vid-row { overflow-x: auto; scrollbar-width: none; }
  .vid { flex: 0 0 200px; }
  .vid .im { width: 200px; height: 200px; }
  .videos .edge-arrow { display: none; }
  .tags, .tabs, .moarefi, .baresi, .specs,
  .rating-sec, .reviews, .qa, .cbox, .sellers, .videos, .perks { padding-left: 14px; padding-right: 14px; max-width: 100%; }
  .article { width: 100%; }
  .article img { width: 100%; }
  .rate-grid, .qa-grid { display: block; }
  .videos, .cbox { position: relative; }
  .spec-table { margin: 26px 0 0; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .rate-side { text-align: right; margin-bottom: 20px; margin-top: 20px; }
  .rate-side .stars { justify-content: flex-start; }
  .rating-sec, .reviews, .qa { margin-left: 14px; margin-right: 14px; }
  .photos { gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .ai-chips { gap: 8px; }
  .card-row { overflow-x: auto; scrollbar-width: none; }
  [data-car] { touch-action: auto; }
  .cbox .edge-arrow { display: none; }
  .cbox { margin: 30px 14px 0; padding: 16px 14px; }
  .pcard { flex: 0 0 150px; }
  footer { margin-top: 40px; }
  .ft-logo, .ft-feats, .ft-cols, .appbar, .ab-badges, .bgrid, .ft-contact { display: none; }
  .back-top { position: static; margin: 0 auto; }
  .about { display: block; margin: 20px 16px 0; }
  .copyright { font-size: 10px; margin: 12px 16px 18px; }
  .chat-fab { left: 14px; bottom: 74px; }
}

/* =============== افزوده‌های پروژه روی قالب محصول =============== */
/* ستاره‌های امتیاز */
.dk-stars { display: inline-flex; gap: 2px; direction: ltr; }
.dk-stars i { font-size: var(--sz, 14px); color: #dcdde1; }
.dk-stars i.on { color: #f9a825; }
.dk-ratingrow { display: flex; align-items: center; gap: 8px; margin: 12px 0 16px; flex-wrap: wrap; }
.dk-ratingrow b { font-size: 14px; color: var(--ink); }
.dk-ratingrow .cnt { font-size: 12px; color: var(--gray); }

/* دکمه‌های کنار گالری (علاقه‌مندی/اشتراک) */
.dk-railbtn { background: none; border: 0; cursor: pointer; width: 38px; height: 38px; border-radius: 50%; color: var(--sx-ink); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; transition: .15s; }
.dk-railbtn:hover, .dk-railbtn.wished { color: var(--sx-brand); background: var(--sx-surface-2); }
.rail { display: flex; flex-direction: column; gap: 6px; }

/* ردیف تخفیف + قیمت قبلی */
.dk-offrow { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.dk-old { color: var(--sx-ink-3); text-decoration: line-through; font-size: 13px; }

/* فرم ثبت سفارش + تعداد */
.dk-buyform { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.dk-qty { display: inline-flex; align-items: center; border: 1px solid var(--sx-line); border-radius: 10px; align-self: flex-start; overflow: hidden; background: var(--sx-surface); }
.dk-qty button { width: 38px; height: 38px; border: 0; background: var(--sx-surface); font-size: 18px; cursor: pointer; color: var(--sx-ink); transition: background .15s; }
.dk-qty button:hover { background: var(--sx-surface-2); }
.dk-qty input { width: 48px; height: 38px; border: 0; text-align: center; font-size: 14px; font-family: inherit; -moz-appearance: textfield; appearance: textfield; outline: none; background: var(--sx-surface); color: var(--ink); }
.dk-qty input::-webkit-outer-spin-button, .dk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cta { cursor: pointer; font-family: inherit; }

/* متن معرفی */
.dk-desc { line-height: 2.1; color: var(--sx-ink); font-size: 13.5px; overflow-wrap: anywhere; }
.dk-desc img { max-width: 100%; height: auto; border-radius: 8px; }
.dk-desc table { max-width: 100%; }

/* نمودار توزیع امتیازها */
.dk-dist { margin-bottom: 18px; }
.dk-dist-row { display: flex; align-items: center; gap: 10px; font-size: 12px; margin: 5px 0; color: var(--sx-ink-3); }
.dk-dist-row .bar { flex: 1; height: 7px; background: #eee; border-radius: 4px; overflow: hidden; }
.dk-dist-row .bar i { display: block; height: 100%; background: #f9a825; border-radius: 4px; }
.dk-dist-row span:first-child { width: 36px; }
.dk-dist-row span:last-child { width: 26px; text-align: left; }
.dk-dist-row i.fa-star { color: #f9a825; font-size: 10px; }

/* تصاویر دیدگاه‌ها */
.dk-rphotos { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.dk-rphotos a { display: block; border-radius: 8px; overflow: hidden; }
.dk-rphotos img { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; transition: transform .15s; }
.dk-rphotos img:hover { transform: scale(1.05); }

/* دکمه‌های لینکی/فرم دیدگاه */
.dk-linkbtn { display: flex; align-items: center; justify-content: center; text-decoration: none; width: 100%; font-family: inherit; cursor: pointer; }
.dk-starpick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 12px; }
.dk-starpick input { display: none; }
.dk-starpick label { font-size: 26px; color: #dcdde1; cursor: pointer; transition: color .12s; }
.dk-starpick input:checked ~ label, .dk-starpick label:hover, .dk-starpick label:hover ~ label { color: #f9a825; }
.dk-revform .dk-field textarea { min-height: 110px; }

/* ---------- انتخاب تصویر دیدگاه — کامپوننت دیجی‌کالایی ---------- */
.dk-imgpick { margin-top: 4px; }
.dk-imgpick-add {
  width: 100%; border: 1.6px dashed #c9ccd6; border-radius: 12px; background: #fafbfc;
  min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  color: var(--sx-ink-3); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.dk-imgpick-add svg { transition: transform .18s ease; }
.dk-imgpick-add:hover { border-color: var(--blue); color: var(--blue); background: #f2f6ff; }
.dk-imgpick-add:hover svg { transform: scale(1.08); }
.dk-imgpick-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.dk-imgpick-hint { font-size: 11px; color: var(--sx-ink-3); margin: 8px 2px 0; }
.dk-imgpick .dk-img-thumb { position: relative; width: 84px; height: 84px; }
.dk-imgpick .dk-img-thumb img { width: 84px; height: 84px; object-fit: cover; border-radius: 11px; border: 1px solid var(--line2); }
.dk-imgpick .dk-img-thumb .rm {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sx-err); color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); line-height: 1;
}
.dk-imgpick .dk-img-thumb .sz { position: absolute; bottom: 3px; right: 3px; left: 3px; background: rgba(35,37,75,.62); color: #fff; border-radius: 6px; font-size: 9.5px; text-align: center; padding: 2px 0; direction: ltr; }
.dk-imgpick.err .dk-imgpick-add { border-color: var(--sx-err); background: #fff5f6; color: var(--sx-err); }
.dk-imgpick.drag .dk-imgpick-add { border-color: var(--blue); background: #f2f6ff; color: var(--blue); }

/* تب‌ها و کاروسل مشابه‌ها */
.tabs .tab { text-decoration: none; }
.card-row { overflow-x: auto; scrollbar-width: none; }
.pcard { text-decoration: none; color: inherit; }

/* ---------- گالری: نمایش بزرگ (لایت‌باکس) با ناوبری قبلی/بعدی ---------- */
.dk-lb {
  position: fixed; inset: 0; z-index: 1000; background: rgba(7,9,20,.94);
  display: none; align-items: center; justify-content: center; direction: ltr;
}
.dk-lb.open { display: flex; }
.dk-lb-img {
  width: min(92vw, 1060px); height: min(82vh, 840px);
  border-radius: 12px; object-fit: contain; box-shadow: 0 24px 80px rgba(0,0,0,.55);
  user-select: none; -webkit-user-drag: none;
}
.dk-lb-count { position: absolute; top: 16px; right: 60px; color: #fff; font-size: 12.5px; background: rgba(255,255,255,.14); border-radius: 20px; padding: 5px 14px; }
.dk-lb-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.dk-lb-x:hover { background: rgba(255,255,255,.3); }
.dk-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  background: var(--sx-surface); color: var(--sx-ink); font-size: 22px; cursor: pointer; border: 0;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.dk-lb-nav:hover { background: #f0f0f3; }
/* RTL: «بعدی» = چپ، «قبلی» = راست */
.dk-lb-next { left: 18px; }
.dk-lb-prev { right: 18px; }
.dk-lb-thumbs { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; padding: 0 60px; overflow-x: auto; scrollbar-width: none; }
.dk-lb-thumbs::-webkit-scrollbar { display: none; }
.dk-lb-thumbs button { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .6; background: none; }
.dk-lb-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-lb-thumbs button.on { border-color: #fff; opacity: 1; }
@media (max-width: 899px) {
  .dk-lb-img { width: 96vw; height: 76vh; border-radius: 8px; }
  .dk-lb-nav { width: 42px; height: 42px; }
  .dk-lb-next { left: 8px; }
  .dk-lb-prev { right: 8px; }
  .dk-lb-count { right: 56px; font-size: 11.5px; }
  .dk-qty { align-self: stretch; justify-content: space-between; }
  .dk-qty input { flex: 1; }
  .crumbs .sell { display: none; }
}
@media (min-width: 900px) {
  .crumbs { max-width: 1286px; margin-left: auto; margin-right: auto; padding-left: 14px; padding-right: 14px; box-sizing: border-box; }
}