/* =========================================================
   DM Gold — product.css
   صفحه‌ی تک‌محصول: گالری، کارت قیمت لحظه‌ای، خرید،
   تضمین‌ها، جدول مشخصات، تب‌ها و محصولات مرتبط
   ========================================================= */


/* =========================================================
   شروع: چیدمان کلی صفحه محصول
   ========================================================= */
.product-page { padding-block: var(--section-gap); }

.product-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 44px;
  align-items: start;
}
/* =========================================================
   پایان: چیدمان کلی
   ========================================================= */


/* =========================================================
   شروع: گالری محصول
   ========================================================= */
/* .gallery-tools بیرون از .product-main-img می‌نشیند تا مرجعِ absolute‌اش این ستون
   باشد نه آن جعبه — چون .product-main-img عمداً overflow:hidden دارد (برای کراپِ
   زوم‌شده‌ی عکس/واترمارک) و اگر تولتیپ داخلش می‌ماند، هم خودِ عکسِ بزرگ‌نمایی‌شده از
   کادر می‌زد بیرون (چون overflow دیگر پنهانش نمی‌کرد) هم تولتیپ بریده می‌شد. */
.product-gallery { position: sticky; top: calc(var(--nav-h) + 12px); }

.product-main-img {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--divider);
  background: linear-gradient(150deg, var(--accent-100), var(--surface) 70%);
}

/* ⚠ تصاویر واقعیِ محصولات (عکاسیِ خودِ فروشگاه) نباید کراپ/زوم شوند — تکنیکِ
   scale(1.3) مخصوصِ عکس‌های نمایشیِ Home-page-2 بود (برای پنهان‌کردنِ واترمارکِ
   رقیب) و روی محصول واقعی فقط لبه‌های عکس را بی‌دلیل می‌بُرید. اینجا فقط یک
   قاب مربعیِ ثابت می‌گیرد (aspect-ratio روی .product-main-img) و کل تصویر با
   نسبت اصلی‌اش، بدون برش، داخلش جا می‌شود. */
.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.product-main-img .coin-art { transform: none; }

/* مهر اصالت روی گوشه‌ی تصویر اصلی */
.product-seal {
  position: absolute;
  z-index: 2;
  bottom: 14px;
  left: 14px;
  width: 52px;
  height: 52px;
  color: var(--accent-800);
  background: rgba(251, 240, 221, .82);
  border: 1px solid rgba(125, 84, 17, .3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sealSpin 22s linear infinite;
}

.product-seal svg { width: 68%; height: 68%; }

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.product-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--divider);
  cursor: pointer;
  background: var(--surface);
  padding: 0;
  transition: border-color .2s, transform .2s;
}

.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.product-thumb:hover { transform: translateY(-2px); }
.product-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* ---- باکس تولتیپ کنار گالری (اشتراک‌گذاری/موجودی/علاقه‌مندی/شگفت‌انگیزی) ---- */
.gallery-tools {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.gallery-tool {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(246, 244, 241, .92);
  border: 1px solid var(--divider);
  color: var(--neutral-700);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.gallery-tool:hover,
.gallery-tool:focus-within { color: var(--accent-700); border-color: var(--accent-400); }

/* افزونه‌ها HTML خودشان را داخل این جعبه می‌دهند (دکمه/دیو با آیکونِ svg)؛
   استایل خودشان خنثی می‌شود تا دقیقاً هم‌اندازه‌ی بقیه‌ی آیکون‌های تم دیده شوند. */
.gallery-tool button,
.gallery-tool > div {
  all: unset;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* SVGِ اینلاین به‌طور پیش‌فرض display:inline دارد که یک فاصلهٔ خطِ-پایه (baseline gap)
   چند پیکسلی زیرش می‌گذارد — همان چیزی که آیکون‌ها را «بالاتر از وسط دایره» نشان می‌داد.
   display:block این فاصله را حذف می‌کند. */
.gallery-tool svg { display: block; width: 17px; height: 17px; stroke: currentColor; fill: none; margin: 0; }
.gallery-tool .dm-icon,
.gallery-tool .dm-amz-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin: 0;
}
.gallery-tool .dm-icon svg,
.gallery-tool .dm-amz-icon svg { width: 17px; height: 17px; }
.gallery-tool .dm-amz-text,
.gallery-tool .dm-text { display: none; } /* فقط آیکون؛ تولتیپ خودمان متن را نشان می‌دهد */

.gallery-tool.dm-active,
.gallery-tool button.active,
.gallery-tool > div.active,
.gallery-tool-amz:has(.dm-amazing-waitlist-btn.active) { color: var(--accent); border-color: var(--accent); }

/* تولتیپ خالص CSS — با هاور روی جعبه (نه فقط دکمه‌ی داخلی) ظاهر می‌شود */
.gallery-tool::after {
  content: attr(data-tip);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  background: var(--neutral-900);
  color: var(--neutral-100);
  font-size: 11.5px;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.gallery-tool:hover::after,
.gallery-tool:focus-within::after { opacity: 1; }

@media (max-width: 640px) {
  .gallery-tools { top: 10px; right: 10px; gap: 6px; }
  .gallery-tool { width: 32px; height: 32px; }
  .gallery-tool::after { display: none; } /* تولتیپ هاور در موبایل بی‌فایده است */
}
/* =========================================================
   پایان: گالری محصول
   ========================================================= */


/* =========================================================
   شروع: ستون اطلاعات و خرید
   ========================================================= */
.product-info { min-width: 0; }

.product-cat { font-size: 12.5px; color: var(--accent-700); font-weight: 600; margin-bottom: 8px; }

.product-title {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.45;
  margin-bottom: 14px;
}

.product-attrs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--neutral-600);
  margin-bottom: 18px;
}

.product-stars { display: flex; gap: 2px; color: var(--accent-400); }
.product-stars svg { width: 15px; height: 15px; }

/* کارت قیمت لحظه‌ای */
.price-card {
  border: 1px solid var(--accent-800);
  border-radius: var(--radius-lg);
  background: radial-gradient(130% 160% at 100% 0%, #3a270d 0%, var(--neutral-900) 60%);
  padding: 22px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.price-card-lbl { font-size: 12px; color: var(--neutral-400); }

.price-card-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent-300);
}

.price-card-live .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-300);
  animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.price-card-value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.price-card-now {
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 30px;
  color: var(--neutral-100);
  font-variant-numeric: tabular-nums;
}

.price-card-unit { font-size: 13px; color: var(--neutral-400); }

.price-card-old {
  font-size: 14px;
  color: var(--neutral-500);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.price-card-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(243, 242, 242, .16);
  font-size: 12px;
  color: var(--neutral-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-card-note svg { width: 14px; height: 14px; flex: none; color: var(--accent-300); }

/* ---------------------------------------------------------
   بلوکِ خرید — حالا داخلِ خودِ price-card (موجودی + تعداد + دکمه)،
   پس همه‌چیز اینجا رنگ‌بندیِ «روی زمینهٔ تیره» می‌گیرد، نه رنگ‌های
   پیش‌فرضِ روشنِ بقیهٔ صفحه.
   --------------------------------------------------------- */
.price-card-buy {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(248, 244, 244, .14);
}

/* موجودی */
.product-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.product-stock.in { color: #6fd18f; }
.product-stock.low { color: var(--accent-300); }
.product-stock.out { color: var(--danger-300); }
.product-stock svg { width: 16px; height: 16px; }

/* انتخاب تعداد + افزودن به سبد */
.product-buy { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }

.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid rgba(248, 244, 244, .22);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(248, 244, 244, .06);
  flex: none;
}

.qty-btn {
  width: 42px;
  height: 100%;
  min-height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--neutral-100);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
}

.qty-btn:hover { background: rgba(248, 244, 244, .1); }

.qty-input {
  width: 54px;
  border: none;
  text-align: center;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  background: transparent;
  color: var(--neutral-100);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input:focus { outline: none; }

/* ⚠ دکمه اینجا عمداً «روشن‌ترین» چیزِ داخلِ کارتِ تیره است، نه گرادیانِ گرمِ
   قبلی که رویِ زمینهٔ تیره کم‌تر پیدا بود: پس‌زمینهٔ توپُر و روشنِ accent-300 +
   متنِ تقریباً سیاه = بیشترین کنتراستِ ممکن، اولین چیزی که چشم می‌بیند. */
.product-buy .btn,
.price-card-buy .single_add_to_cart_button { flex: 1; min-width: 180px; }

/* ---------------------------------------------------------
   فرمِ واقعیِ افزودن به سبدِ ووکامرس (form.cart)
   ⚠ مارک‌آپش با نسخهٔ نمایشیِ بالا فرق دارد: نه .qty-box دارد نه دکمهٔ
   کم/زیاد — فقط .quantity > input.qty و بعد دکمهٔ single_add_to_cart_button.
   هر دو عنصر به‌طور پیش‌فرض بلوکی‌اند و برای همین زیرِ هم می‌افتادند و
   جعبهٔ تعداد هیچ ظاهری نداشت. اینجا همان زبانِ بصریِ نسخهٔ نمایشی به
   مارک‌آپِ واقعی داده می‌شود، در یک ردیف.
   --------------------------------------------------------- */
.product-info form.cart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.product-info form.cart .quantity {
  display: flex;
  align-items: center;
  flex: none;
  border: 1px solid rgba(248, 244, 244, .22);
  border-radius: var(--radius-md);
  background: rgba(248, 244, 244, .06);
  overflow: hidden;
}

.product-info form.cart .quantity input.qty {
  width: 84px;
  min-height: 50px;
  border: none;
  background: transparent;
  text-align: center;
  color: var(--neutral-100);
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  padding: 0 8px;
}

/* ⚠ محصولِ «فروش تکی» (یا هر محصولی که کمینه و بیشینه‌اش برابر است): ووکامرس
   به‌جای ورودیِ عددی یک input مخفی داخل .quantity.hidden چاپ می‌کند. آن جعبه
   محتوایی ندارد ولی بوردر و ارتفاعِ ما را می‌گیرد و به‌صورت یک کادرِ خالیِ
   بی‌معنی کنارِ دکمه دیده می‌شود. هر دو حالت (کلاسِ hidden و ورودیِ مخفی)
   پوشش داده می‌شود تا به نسخه‌بندیِ ووکامرس وابسته نباشیم. */
.product-info form.cart .quantity.hidden,
.product-info form.cart .quantity:has(input[type="hidden"]) { display: none; }

/* دکمه‌های کم/زیاد که با جاوااسکریپت داخلِ همین جعبه تزریق می‌شوند
   (کلاسِ .qty-btn مشترک با نسخهٔ نمایشی است، فقط اندازه‌اش اینجا با
   ارتفاعِ ورودیِ واقعیِ ووکامرس هم‌تراز می‌شود). */
.product-info form.cart .quantity .qty-btn {
  width: 38px;
  min-height: 50px;
  flex: none;
  font-size: 17px;
  line-height: 1;
}

.product-info form.cart .quantity:has(.qty-btn) input.qty { width: 52px; padding: 0 2px; }

.product-info form.cart .quantity input.qty:focus { outline: none; }
.product-info form.cart .quantity input.qty::-webkit-outer-spin-button,
.product-info form.cart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-info form.cart .single_add_to_cart_button {
  flex: 1;
  min-width: 200px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent-300);
  color: #241a08;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: filter .18s, transform .18s;
}

.product-info form.cart .single_add_to_cart_button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.product-info form.cart .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------
   محصولِ متغیر — خروجیِ پیش‌فرضِ ووکامرس (جدولِ ویژگی‌ها + قیمتِ نمونهٔ
   انتخاب‌شده + دکمهٔ بازنشانی)، الان روی زمینهٔ تیرهٔ price-card می‌نشیند
   پس رنگ‌های پیش‌فرضِ روشنِ خودِ ووکامرس اینجا کنتراست ندارند — هرکدام
   جداگانه بازنویسی شده.
   --------------------------------------------------------- */
.price-card-buy .variations { width: 100%; margin-bottom: 12px; border-collapse: separate; border-spacing: 0 10px; }
.price-card-buy .variations tr { display: flex; align-items: center; gap: 12px; }
.price-card-buy .variations td,
.price-card-buy .variations th { padding: 0; border: none; }
.price-card-buy .variations label {
  flex: none;
  min-width: 70px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-100);
}

.price-card-buy .variations select {
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(248, 244, 244, .22);
  border-radius: var(--radius-md);
  background: rgba(248, 244, 244, .06);
  color: var(--neutral-100);
  font-family: inherit;
  font-size: 13.5px;
}
.price-card-buy .variations select:focus { outline: none; border-color: var(--accent-300); }

.price-card-buy .reset_variations {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent-300);
}

.price-card-buy .woocommerce-variation-price .price,
.price-card-buy .woocommerce-variation-price .amount { color: var(--neutral-100); font-weight: 700; }

.price-card-buy .woocommerce-variation-availability { margin-bottom: 10px; font-size: 12.5px; color: var(--neutral-400); }
.price-card-buy .woocommerce-variation-availability .stock.in-stock { color: #6fd18f; }
.price-card-buy .woocommerce-variation-availability .stock.out-of-stock { color: var(--danger-300); }

.price-card-buy .woocommerce-variation-description p { color: var(--neutral-400); font-size: 12.5px; margin: 0 0 10px; }

@media (max-width: 480px) {
  .price-card-buy .variations tr { flex-wrap: wrap; }
  .price-card-buy .variations label { min-width: 100%; }
}

/* پیام‌های موجودی/خطای ووکامرس داخل همین ستون */
.product-info .stock { font-size: 13px; margin: 0 0 10px; }
.product-info .stock.out-of-stock { color: var(--danger); }

.product-actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--neutral-600);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  font-family: var(--font-b);
}

.action-link:hover { color: var(--accent-700); }
.action-link svg { width: 16px; height: 16px; }
/* =========================================================
   پایان: ستون اطلاعات و خرید
   ========================================================= */


/* =========================================================
   شروع: تضمین‌ها (زیر باکس خرید)
   ========================================================= */
.assurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.assurance-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.assurance-item svg { width: 22px; height: 22px; flex: none; color: var(--accent-700); }
.assurance-item .t { font-family: var(--font-h); font-weight: 700; font-size: 13.5px; margin-bottom: 2px; }
.assurance-item .d { font-size: 11.5px; color: var(--neutral-600); line-height: 1.7; }
/* =========================================================
   پایان: تضمین‌ها
   ========================================================= */


/* =========================================================
   شروع: تب‌های محتوای محصول
   ========================================================= */
.product-tabs { margin-top: 44px; }

.product-tabs-nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--divider);
  overflow-x: auto;
  scrollbar-width: none;
}

.product-tabs-nav::-webkit-scrollbar { display: none; }

.product-tab-btn {
  padding: 13px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-h);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--neutral-600);
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
}

.product-tab-btn:hover { color: var(--text); }
.product-tab-btn.active { color: var(--accent-700); border-bottom-color: var(--accent); font-weight: 700; }

.product-tab-panel { padding-top: 24px; }
.product-tab-panel[hidden] { display: none; }
.product-tab-panel p { font-size: 14px; line-height: 2.05; color: var(--neutral-700); margin: 0 0 14px; }

/* جدول مشخصات */
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--divider); border-radius: var(--radius-lg); overflow: hidden; }
.spec-table tr:nth-child(odd) { background: var(--surface); }
.spec-table td { padding: 13px 18px; font-size: 13.5px; border-bottom: 1px solid var(--divider); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--neutral-600); width: 40%; }
.spec-table td:last-child { font-weight: 600; }

/* دیدگاه‌ها */
.review-item { padding: 18px 0; border-bottom: 1px solid var(--divider); }
.review-item:last-child { border-bottom: none; }

.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-author { font-family: var(--font-h); font-weight: 700; font-size: 14px; }
.review-date { font-size: 11.5px; color: var(--neutral-500); }
.review-item p { font-size: 13.5px; line-height: 1.95; color: var(--neutral-700); margin: 0; }

/* پرسش و پاسخ */
.faq-item { border: 1px solid var(--divider); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; }

.faq-item > summary {
  padding: 14px 16px;
  cursor: pointer;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary svg { width: 15px; height: 15px; color: var(--neutral-600); transition: transform .25s; flex: none; }
.faq-item[open] > summary svg { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 16px 16px 46px; font-size: 13.5px; line-height: 1.95; color: var(--neutral-700); }

.faq-item .faq-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-100);
  color: var(--accent-700);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.faq-item .faq-q { flex: 1; }
.faq-item[open] > summary .faq-num { background: var(--accent); color: #fff; }
/* =========================================================
   پایان: تب‌های محتوای محصول
   ========================================================= */


/* =========================================================
   شروع: محصولات مرتبط
   ========================================================= */
.related-section { padding-block: var(--section-gap); }
.related-grid.carousel-track > * { width: 240px; }
/* =========================================================
   پایان: محصولات مرتبط
   ========================================================= */


/* =========================================================
   شروع: ریسپانسیو صفحه محصول
   ========================================================= */
@media (max-width: 980px) {
  .product-layout { grid-template-columns: 1fr; gap: 28px; }

  /* ⚠⚠ ریشهٔ باگِ «دایره‌های ابزارِ گالری رفته‌اند زیرِ هدر / در موبایل نیستند»:
     اینجا قبلاً position:static بود. هدف درستی داشت (لغوِ چسبان‌بودنِ ستونِ گالری
     در یک‌ستونه)، ولی static یعنی این عنصر دیگر «بلوکِ دربرگیرنده» نیست، و
     .gallery-tools که position:absolute است مرجعش را از دست می‌دهد و تا بالاترین
     جدِ پوزیشن‌دار (عملاً خودِ صفحه) بالا می‌رود ⇒ با top:14px/right:14px می‌رفت
     گوشهٔ بالای راستِ کلِ صفحه، یعنی درست زیرِ هدر؛ و چون z-indexش (۳) از هدر
     (۴۸) کمتر است، پشتِ هدر پنهان می‌شد و به‌نظر می‌رسید در موبایل وجود ندارد.
     relative همان لغوِ چسبان‌بودن را می‌دهد ولی مرجعِ absolute را حفظ می‌کند.
     ⚠ top هم باید صفر شود: مقدارِ calc(var(--nav-h) + 12px) برای حالتِ sticky بود،
     ولی روی یک عنصرِ relative یک جابه‌جاییِ واقعیِ رو‌به‌پایین می‌سازد (نه offsetِ
     چسبیدن) و کلِ گالری را روی محتوای پایین‌ترش می‌انداخت. */
  .product-gallery { position: relative; top: 0; }
}

@media (max-width: 640px) {
  .assurance-grid { grid-template-columns: 1fr; }
  .product-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .price-card { padding: 16px; }
  .price-card-now { font-size: 24px; }
  .product-buy .btn { min-width: 100%; }

  /* در موبایل جعبهٔ تعداد باریک می‌ماند و دکمه بقیهٔ عرض را می‌گیرد
     (همچنان یک ردیف، نه دو ردیف) */
  .product-info form.cart .quantity input.qty { width: 68px; }
  .product-info form.cart .single_add_to_cart_button { min-width: 0; }
  .product-tabs { margin-top: 28px; }
  .product-tab-btn { padding: 11px 14px; font-size: 13.5px; }
  .related-grid.carousel-track > * { width: 62vw; max-width: 220px; }
}
/* =========================================================
   پایان: ریسپانسیو صفحه محصول
   ========================================================= */
