.product-detail {
  display: grid;
  gap: var(--s-7, 40px);
  grid-template-columns: 1.05fr 1fr;
  align-items: start;
  margin-block: var(--s-6);
}
.product-detail__gallery .main-img {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--shafa-media-bg);
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 20px 48px -12px rgba(28, 25, 23, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 500ms ease;
}

/* Responsive: Stack on mobile, limit gallery height */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    margin-block: var(--s-4);
  }
  .product-detail__gallery .main-img {
    aspect-ratio: 4/3;
    max-height: 360px;
  }
  .product-detail__gallery .thumbs {
    display: flex;
    gap: var(--s-2);
    margin-top: var(--s-3);
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .product-detail__info {
    padding-top: var(--s-2);
  }
}

/* Tablet: slightly smaller gap */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-detail {
    gap: var(--s-6);
    grid-template-columns: 1fr 1fr;
  }
  .product-detail__gallery .main-img {
    aspect-ratio: 1;
  }
}
.product-detail__gallery .main-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../img/honeycomb-luxury.svg');
  background-repeat: repeat;
  background-size: 72px 125px;
  opacity: 0.15;
  mask-image: radial-gradient(circle at 50% 50%, transparent 35%, black 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 35%, black 85%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 500ms ease;
}
.product-detail__gallery .main-img::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(197, 160, 89, 0.25);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
  z-index: 2;
  transition: border-color 500ms ease;
}
.product-detail__gallery .main-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px -12px rgba(197, 160, 89, 0.25), 0 0 0 1px rgba(197, 160, 89, 0.5) inset;
}
.product-detail__gallery .main-img:hover::before {
  opacity: 0.26;
}
.product-detail__gallery .main-img:hover::after {
  border-color: rgba(197, 160, 89, 0.5);
}
.product-detail__gallery .main-img img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.product-detail__gallery .main-img:hover img {
  transform: scale(1.04);
}
.product-detail__gallery .thumbs { display: flex; gap: var(--s-2); margin-top: var(--s-3); overflow-x: auto; }
.product-detail__info h1 {
  margin-bottom: var(--s-3);
  color: var(--shafa-text-primary);
  font-family: 'Vazirmatn', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: var(--shafa-tracking-normal);
}
.product-detail__specs { display: grid; gap: var(--s-2); margin-block: var(--s-4); }
.product-detail__spec { display: flex; justify-content: space-between; padding: var(--s-2) 0; border-bottom: 1px solid var(--border); }
.product-detail__spec .label { color: var(--muted); }
.product-detail__scarcity {
  display: inline-flex; align-items: center; gap: var(--s-1);
  color: var(--danger); font-size: var(--fs-small); font-weight: 500;
  margin-top: var(--s-2); padding: var(--s-1) var(--s-2);
  background: rgba(186, 26, 26, .08); border-radius: var(--radius-pill);
}
.product-detail__stock-notice {
  display: inline-flex; align-items: center; gap: var(--s-1);
  color: var(--shafa-gold-text); font-size: var(--fs-small); font-weight: 500;
  margin-top: var(--s-2); padding: var(--s-1) var(--s-2);
  background: var(--accent-soft-bg); border-radius: var(--radius-pill);
}
.search-banner {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-3) var(--s-4); margin-bottom: var(--s-5);
  border: 1px solid rgba(197, 160, 89, 0.35); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 241, 232, 0.9) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px -4px rgba(197, 160, 89, 0.12);
  position: relative;
  overflow: hidden;
}
.search-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../img/honeycomb-luxury.svg');
  background-repeat: repeat;
  background-size: 54px 94px;
  opacity: 0.09;
  mask-image: linear-gradient(90deg, black, transparent 75%);
  -webkit-mask-image: linear-gradient(90deg, black, transparent 75%);
  pointer-events: none;
}
.search-banner__icon { color: var(--shafa-gold-satin); font-size: 24px; position: relative; z-index: 1; }
.search-banner__text { flex: 1; color: var(--text-soft); font-size: var(--fs-small); position: relative; z-index: 1; }
.search-banner__text b { color: var(--text); font-weight: 700; }
.search-banner__clear {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; color: var(--muted);
  border: 1px solid rgba(197, 160, 89, 0.2);
  background: var(--shafa-input-bg);
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.search-banner__clear:hover { background: rgba(197, 160, 89, 0.15); color: var(--accent-strong); border-color: rgba(197, 160, 89, 0.5); transform: rotate(90deg); }
.search-banner__clear .material-symbols-outlined { font-size: 20px; }
.products-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap;
  padding: var(--s-3) var(--s-4);
  background: var(--shafa-input-bg);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.products-toolbar__count { font-size: var(--fs-small); color: var(--muted); }
.products-toolbar__filter-active { color: var(--accent-strong); font-weight: 500; }
.products-toolbar__sort {
  display: flex; align-items: center; gap: var(--s-2);
}
.products-toolbar__sort label {
  font-size: var(--fs-small); color: var(--muted); white-space: nowrap;
}
.products-toolbar__sort select {
  appearance: none; background: var(--shafa-input-bg-strong); border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-pill); padding: 7px 34px 7px 14px; font-size: var(--fs-small);
  color: var(--text); cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23C5A059' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center;
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    outline var(--t-fast) var(--ease);
}
.products-toolbar__sort select:focus {
  outline: none; box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2); border-color: var(--shafa-gold-satin);
}
.products-toolbar__price-filter {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
}
.products-toolbar__price-filter label {
  font-size: var(--fs-small); color: var(--muted); white-space: nowrap;
}
.products-toolbar__price-filter input[type="number"] {
  width: 100px; background: var(--shafa-input-bg-strong); border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-pill); padding: 7px 14px; font-size: var(--fs-small);
  color: var(--text);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    outline var(--t-fast) var(--ease);
}
.products-toolbar__price-filter input[type="number"]:focus {
  outline: none; box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2); border-color: var(--shafa-gold-satin);
}
.products-toolbar__clear-price {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.products-toolbar__clear-price:hover { background: var(--surface-2); color: var(--accent-strong); }
/* 639.98 نه 640 — هم‌مرزی با min-width:640px در style.css را قطعی می‌کند */
@media (max-width: 639.98px) {
  .products-toolbar { flex-direction: column; align-items: stretch; }
  .products-toolbar__sort, .products-toolbar__price-filter { justify-content: space-between; }
  .products-toolbar__price-filter input[type="number"] { width: 80px; }
}
.products-empty {
  text-align: center; padding: var(--s-7) var(--s-4);
}
.products-empty .material-symbols-outlined {
  font-size: 64px; color: var(--muted); margin-bottom: var(--s-4);
}
.products-empty h3 { margin-bottom: var(--s-3); color: var(--text); }
.products-empty ul {
  display: inline-block; text-align: right;
  margin: var(--s-3) 0 var(--s-4); padding: 0;
  list-style: disc;
}
.products-empty li { margin-bottom: var(--s-1); }
.search-suggest {
  position: absolute; z-index: var(--z-modal));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 320px; overflow-y: auto;
  display: none; opacity: 0; transform: translateY(-4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.search-suggest.is-visible { display: block; opacity: 1; transform: translateY(0); }
.search-suggest__item {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-2) var(--s-3); color: var(--text);
  transition: background var(--t-fast) var(--ease);
}
/* focus outline واقعی — نسخهٔ قبلی فقط پس‌زمینه را عوض می‌کرد (۱٫۰۵:۱) و
   outline را none می‌گذاشت، یعنی فوکوس کیبورد نامرئی بود. */
.search-suggest__item:hover { background: var(--surface-2); }
.search-suggest__item:focus, .search-suggest__item:focus-visible {
  background: var(--surface-2);
  outline: 2px solid var(--shafa-gold-text);
  outline-offset: -2px;
}
.search-suggest__item img {
  width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0;
}
.search-suggest__title { flex: 1; font-size: var(--fs-small); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest__price { font-size: var(--fs-small); color: var(--accent-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lab-card {
  margin-top: var(--s-5); padding: var(--s-4) var(--s-5);
  border: 1px solid rgba(22, 43, 33, 0.15);
  border-inline-start: 4px solid var(--shafa-emerald-ink);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(22, 43, 33, 0.03) 0%, rgba(197, 160, 89, 0.06) 100%);
  box-shadow: 0 4px 16px rgba(22, 43, 33, 0.04);
}
.lab-card__head { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.lab-card__head .material-symbols-outlined { font-size: 26px; color: var(--shafa-emerald-ink); }
.lab-card__head h3 { color: var(--shafa-emerald-ink); font-size: 1.05rem; font-weight: 700; }
.lab-card__body { color: var(--text-soft); font-size: var(--fs-small); line-height: 1.9; margin: 0; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); overflow: hidden; background: var(--surface); }
.qty-control button { width: var(--touch); height: var(--touch); display: flex; align-items: center; justify-content: center; color: var(--accent-strong); }
.qty-control button:hover { background: var(--surface-2); }
.qty-control input { width: 56px; height: var(--touch); text-align: center; border: none; background: transparent; font-variant-numeric: tabular-nums; color: var(--text); }
.nav__compare { display: inline-flex; align-items: center; justify-content: center; position: relative; }
.nav__compare .material-symbols-outlined { font-size: 22px; color: var(--text-soft); }
/* کپی دوم style.css:2206 — رنگ‌ها با نسخهٔ زندهٔ components/nav.css:213
   یکسان شده‌اند (۷.۵۵:۱). نسخهٔ قبلی #fff روی --accent-strong بود: ۳.۰۸:۱ */
.compare-badge {
  position: absolute; top: -6px; left: -6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: var(--radius-pill);
  background: var(--shafa-gold-satin); color: var(--shafa-on-gold);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.compare-badge[hidden] { display: none; }

/* =====================================================================
 *  ۵۰ خط تعریف تکراری کارت محصول از این فایل حذف شد — نوامبر ۱۴۰۴
 *  ---------------------------------------------------------------------
 *  __cat، __identity، __summary، __price-wrap، __price-old، __stock*،
 *  __actions، __view و __compare همگی کپی دوم components/cards.css بودند
 *  با مقادیر قدیمی‌تر: __cat روی --accent-strong (۳.۰۸:۱، نقض AA)، تیک
 *  مقایسه روی --accent-strong با #fff (۳.۰۸:۱)، و __identity با --text-soft.
 *
 *  این فایل فقط اختصاصی صفحهٔ محصول است و در products.php لود نمی‌شود، پس
 *  هر تعریفی اینجا برای ۷ صفحهٔ دیگرِ مصرف‌کنندهٔ کارت بی‌اثر بود. تعریف
 *  یکتا در components/cards.css است که همراه bundle اصلی به همه می‌رسد.
 *
 *  قوانین باقی‌مانده (__body، __meta.mb-5، __meta .tag و حالت‌های hover/
 *  is-active آن) دست‌نخورده ماندند چون اختصاصی همین صفحه‌اند.
 * ===================================================================== */
.gallery-thumbs {
  display: flex; gap: var(--s-2); margin-top: var(--s-3);
  flex-wrap: wrap; overflow-x: auto; padding-bottom: 4px;
}
.gallery-thumb {
  flex: 0 0 80px; width: 80px; height: 80px; padding: 0; border: 2px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
  overflow: hidden; transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.is-active { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(141, 75, 0, .15); }
.gallery-thumb:focus-visible { outline: 2px solid var(--shafa-gold-text); outline-offset: 2px; box-shadow: var(--focus-ring); }
.product-detail__price-row {
  display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap;
  margin-top: var(--s-2); padding-block: var(--s-2);
  border-bottom: 1px solid var(--border);
}
.product-detail__price-old {
  font-size: 1.1rem; color: var(--muted); text-decoration: line-through;
  text-decoration-color: var(--danger); font-variant-numeric: tabular-nums;
}
.product-detail__summary { color: var(--text-soft); font-size: var(--fs-body); line-height: 1.8; margin-block: var(--s-3); }
.product-detail__usage { display: grid; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.product-detail__usage-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.product-detail__usage-item > .material-symbols-outlined { color: var(--accent); font-size: 28px; flex-shrink: 0; }
.product-detail__usage-item h4 { font-size: var(--fs-body); font-weight: 700; color: var(--text); margin-bottom: 4px; }
.product-detail__usage-item p { font-size: var(--fs-small); line-height: 1.7; margin: 0; }
.product-faq { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); }
.product-faq .section-head__title { font-size: 1.15rem; margin-bottom: var(--s-3); }
.product-faq__list { display: grid; gap: var(--s-2); }
.product-faq__item {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  overflow: hidden;
}
.product-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  padding: var(--s-3) var(--s-3); cursor: pointer; font-weight: 700; color: var(--text);
  list-style: none;
}
.product-faq__q::-webkit-details-marker { display: none; }
.product-faq__q .product-faq__icon {
  color: var(--accent-strong); font-size: 22px; transition: transform .2s ease; flex-shrink: 0;
}
.product-faq__item[open] .product-faq__q .product-faq__icon { transform: rotate(180deg); }
.product-faq__a { padding: 0 var(--s-3) var(--s-3); color: var(--text-soft); font-size: var(--fs-small); line-height: 1.9; }
.product-faq__a p { margin: 0; }
.product-reviews { margin-top: var(--s-6); }
.product-reviews__summary { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); flex-wrap: wrap; }
.product-reviews__stars .material-symbols-outlined { font-size: 22px; color: var(--border-strong); }
.product-reviews__stars .material-symbols-outlined.is-on { color: var(--accent-2); }
.product-reviews__count { font-size: var(--fs-small); color: var(--muted); }
.product-reviews__list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.product-review {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
}
.product-review__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: 6px; }
.product-review__author { font-weight: 700; color: var(--text); }
.product-review__stars .material-symbols-outlined { font-size: 18px; color: var(--border-strong); }
.product-review__stars .material-symbols-outlined.is-on { color: var(--accent-2); }
.product-review__title { font-size: var(--fs-body); margin: 0 0 4px; color: var(--text); }
.product-review__body { font-size: var(--fs-small); line-height: 1.8; color: var(--text-soft); margin: 0 0 6px; }
.product-review__date { font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.product-review-form {
  margin-top: var(--s-5); padding: var(--s-4); background: var(--surface-alt);
  border: 1px solid var(--border); border-radius: var(--radius); display: grid; gap: var(--s-3);
}
.product-review-form__title { font-size: 1.05rem; margin: 0; }
.product-review-form__row { display: grid; gap: 6px; }
.product-review-form__row label { font-size: var(--fs-small); color: var(--text-soft); }
.product-review-form__row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit;
}
.product-review-form__note { font-size: 0.8rem; margin: 0; }
/* ── Compare checkbox: 44×44px touch target (WCAG 2.5.5), visual 20px via scale() ── */
.product-detail__compare {
  display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-4);
  font-size: var(--fs-small); color: var(--text-soft); cursor: pointer; user-select: none;
}
.product-detail__compare input[type="checkbox"] {
  appearance: none; width: 44px; height: 44px; margin: 0;
  border: 2px solid var(--border-strong); border-radius: 5px;
  background: var(--surface); cursor: pointer; position: relative; flex-shrink: 0;
  transform: scale(0.45); transform-origin: center;
}
.product-detail__compare input[type="checkbox"]:checked {
  background: var(--accent-strong); border-color: var(--accent-strong);
}
.product-detail__compare input[type="checkbox"]:checked::after {
  content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(2.2);
  color: #fff; font-size: 14px; font-weight: 700;
}
.product-detail__compare input[type="checkbox"]:focus-visible { outline: 2px solid var(--shafa-gold-text); outline-offset: 2px; box-shadow: var(--focus-ring); }
.lab-card__reports { list-style: none; padding: 0; margin-top: var(--s-3); display: grid; gap: var(--s-2); }
.lab-card__reports li {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  padding: var(--s-2); background: var(--surface-2); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.lab-card__reports .material-symbols-outlined { color: var(--accent-strong); font-size: 24px; }
.lab-card__rep-title { font-weight: 500; color: var(--text); flex: 1; }
.lab-card__rep-lab { font-size: var(--fs-small); color: var(--muted); }
/* بلوک تکراریِ گالری حذف شد — واحد تعریف در خط ۲۶۶ است. */
.product-detail__price-row { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); margin-bottom: var(--s-2); }
.product-detail__price-old { font-size: 1.15rem; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--danger); }
.product-detail__summary { color: var(--text-soft); font-size: 1.05rem; line-height: 1.8; margin-bottom: var(--s-4); }
.product-detail__usage { display: grid; gap: var(--s-3); margin: var(--s-4) 0; }
.product-detail__usage-item { display: flex; gap: var(--s-2); align-items: flex-start; background: var(--surface-alt); padding: var(--s-3); border-radius: var(--radius); border: 1px solid var(--border); }
.product-detail__usage-item > .material-symbols-outlined { color: var(--accent-strong); font-size: 28px; flex-shrink: 0; }
.product-detail__usage-item h4 { font-size: var(--fs-body); margin: 0 0 4px; color: var(--text); }
.product-detail__usage-item p { margin: 0; font-size: var(--fs-small); line-height: 1.7; }
.product-detail__compare { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-4); font-size: var(--fs-small); color: var(--text-soft); cursor: pointer; user-select: none; }
.product-detail__compare input[type="checkbox"] { appearance: none; width: 44px; height: 44px; margin: 0; border: 2px solid var(--border-strong); border-radius: 4px; background: var(--surface); cursor: pointer; position: relative; flex-shrink: 0; transform: scale(0.45); transform-origin: center; }
.product-detail__compare input[type="checkbox"]:checked { background: var(--accent-strong); border-color: var(--accent-strong); }
.product-detail__compare input[type="checkbox"]:checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(2.2); color: #fff; font-size: 13px; font-weight: 700; }
.product-detail__compare input[type="checkbox"]:focus-visible { outline: 2px solid var(--shafa-gold-text); outline-offset: 2px; box-shadow: var(--focus-ring); }

/* ============================================================
 *  خرید — Product Buy Section (Above the fold on mobile)
 * ============================================================ */
.product-buy {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
}
.product-buy__variant-select-wrap {
  width: 100%;
}
.product-buy__variant-select {
  width: 100%;
  appearance: none;
  padding: var(--s-3) var(--s-4);
  padding-inline-end: 44px; /* space for native arrow */
  font: inherit;
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--shafa-input-bg-strong);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-pill);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23C5A059' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.product-buy__variant-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  border-color: var(--shafa-gold-satin);
}
.product-buy__add,
.product-buy__fast {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-3);
  align-items: center;
}
.product-buy__add .qty-control {
  flex-shrink: 0;
}
.product-buy__add .btn,
.product-buy__fast .btn {
  width: 100%;
  height: var(--touch-lg);
  font-size: var(--fs-body);
  font-weight: 700;
}

/* Mobile: stacked layout for buy section */
@media (max-width: 767px) {
  .product-buy {
    gap: var(--s-3);
    margin-top: var(--s-3);
    padding-top: var(--s-3);
  }
  .product-buy__add,
  .product-buy__fast {
    grid-template-columns: 1fr;
  }
  .product-buy__add .qty-control {
    width: 100%;
    justify-content: center;
  }
  .product-buy__add .btn,
  .product-buy__fast .btn {
    width: 100%;
  }
  .product-buy__variant-select {
    padding: var(--s-3) var(--s-4);
    font-size: var(--fs-body);
  }
}

/* ── License Badge — مجاز زنبورداری وزارت جهاد کشاورزی در نقطهٔ تبدیل ── */
.product-buy__license-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--touch);
  padding: var(--s-2) var(--s-3);
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.10) 0%, rgba(197, 160, 89, 0.03) 100%);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-inline-start: 3px solid var(--shafa-gold-satin);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--shafa-text-primary);
  text-decoration: none;
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.product-buy__license-badge:hover {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.18) 0%, rgba(197, 160, 89, 0.06) 100%);
  border-color: rgba(197, 160, 89, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.18);
}
.product-buy__license-badge:focus-visible {
  outline: 2px solid var(--shafa-gold-text);
  outline-offset: 2px;
  border-radius: var(--radius-pill);
}
.product-buy__license-badge__icon {
  color: var(--shafa-gold-text);
  flex-shrink: 0;
}
.product-buy__license-badge__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.product-buy__license-badge__text strong {
  color: var(--shafa-text-primary);
  font-size: var(--fs-caption);
}
.product-buy__license-badge__text span {
  color: var(--text-soft);
  font-size: var(--fs-caption);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}
.product-buy__license-badge__ext {
  color: var(--shafa-gold-text);
  flex-shrink: 0;
  opacity: 0.7;
  margin-inline-start: auto;
}
@media (max-width: 480px) {
  .product-buy__license-badge__text span {
    max-width: 100px;
  }
}

/* ── اثبات اجتماعی: خریدهای اخیر عمومی (ناشناس) ── */
.social-proof-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--touch);
  padding: var(--s-2) var(--s-3);
  background: var(--shafa-input-bg-strong);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--text);
  animation: fade-in-up 400ms var(--ease);
}
.social-proof-bar__icon {
  color: var(--shafa-gold-satin);
  font-size: 20px;
  flex-shrink: 0;
}
.social-proof-bar__text strong {
  color: var(--shafa-text-primary);
}
.social-proof-bar__dropdown {
  position: relative;
  display: flex;
  align-items: center;
  /* هدف لمسی ۴۴px برای چرخ‌کننده بدون بزرگ شدن خودِ نوار:
     حاشیه‌های منفی جعبهٔ کلیک را دقیقاً تا padding نوار گسترش می‌دهند */
  margin-block: calc(var(--s-2) * -1);
  margin-inline-start: calc(var(--s-2) * -1);
  margin-inline-end: calc(var(--s-3) * -1);
}
.social-proof-bar__toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  transition: color var(--t-fast) var(--ease);
}
.social-proof-bar__toggle:hover {
  color: var(--text);
}
.social-proof-bar__toggle:focus-visible {
  outline: 2px solid var(--shafa-gold-text);
  outline-offset: 2px;
}
.social-proof-bar__dropdown .social-proof-bar__toggle .material-symbols-outlined {
  transition: transform var(--t-fast) var(--ease);
}
.social-proof-bar__dropdown[open] .social-proof-bar__toggle .material-symbols-outlined {
  transform: rotate(180deg);
}
.social-proof-bar__list {
  position: absolute;
  bottom: calc(100% + var(--s-1));
  right: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s-2);
  min-width: 240px;
  max-height: 60vh;
  overflow-y: auto;
  list-style: none;
  z-index: 10;
  display: none;
}
.social-proof-bar__dropdown[open] .social-proof-bar__list {
  display: block;
}
.social-proof-bar__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  padding: var(--s-1) 0;
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--border);
}
.social-proof-bar__item:last-child {
  border-bottom: none;
}
.social-proof-bar__buyer {
  font-weight: 600;
  color: var(--text);
}
.social-proof-bar__city {
  color: var(--shafa-gold-text);
  font-size: var(--fs-caption);
}
.social-proof-bar__variant {
  color: var(--text-soft);
  font-size: var(--fs-caption);
}
.social-proof-bar__time {
  color: var(--muted);
  font-size: var(--fs-caption);
  margin-inline-start: auto;
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── لینک شناسنامهٔ برداشت در بخش خرید (ردیابی مستقیم از نقطهٔ تبدیل) ── */
.product-buy__track {
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px dashed var(--border);
}
.product-buy__track .btn {
  width: 100%;
  justify-content: center;
  min-height: var(--touch);
}
@media (min-width: 768px) {
  .product-buy__track .btn {
    width: auto;
    min-width: 280px;
  }
}

/* Trust strip shipping microcopy */
.trust-strip__shipping {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  font-size: var(--fs-small);
  color: var(--text-soft);
  line-height: 1.6;
}
.trust-strip__shipping::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C5A059' stroke-width='2'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}

.sticky-atc {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-3);
    padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.25s ease;
}
.sticky-atc.is-visible {
    transform: translateY(0);
}
.sticky-atc__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.sticky-atc__name {
    font-size: var(--fs-small);
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-atc__price {
    font-weight: 700;
    color: var(--text);
}
.sticky-atc__btn {
    flex-shrink: 0;
}
.sticky-atc__btn .btn {
    min-height: var(--touch-lg);
    padding: 0.75rem 1.5rem;
}
@media (max-width: 767px) {
    .sticky-atc {
        display: flex;
    }
    body:has(.sticky-atc) footer {
        padding-bottom: 96px;
    }
}
.lab-card__reports { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.lab-card__reports li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); background: var(--surface-alt); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.lab-card__reports .material-symbols-outlined { color: var(--accent-strong); font-size: 22px; }
.lab-card__rep-title { font-weight: 500; color: var(--text); }
.lab-card__rep-lab { font-size: var(--fs-small); color: var(--muted); grid-column: 2; }
.compare-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.compare-toolbar__count { color: var(--text-soft); font-weight: 500; }
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { padding: var(--s-3); text-align: right; border-bottom: 1px solid var(--border); vertical-align: middle; }
.compare-table thead th { position: sticky; top: 0; background: var(--surface-alt); z-index: 1; }
.compare-table__label-col { width: 140px; font-weight: 500; color: var(--text-soft); background: var(--surface-alt); }
.compare-table__prod-head { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-decoration: none; color: var(--text); }
.compare-table__prod-head img { border-radius: var(--radius-sm); border: 1px solid var(--border); }
.compare-table__prod-head span { font-weight: 500; }
.compare-table th { position: relative; }
.compare-table__remove { position: absolute; top: 10px; left: 10px; background: transparent; border: none; cursor: pointer; padding: 4px; border-radius: var(--radius-pill); color: var(--text-soft); }
.compare-table__remove:hover { background: var(--surface-2); color: var(--danger); }
.compare-table tbody tr:hover { background: var(--surface-alt); }
.product-trust {
  list-style: none; margin: var(--s-4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
}
.product-trust li {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-small); color: var(--text-soft);
}
.product-trust .material-symbols-outlined { font-size: 20px; color: var(--accent); }

/* ============================================================
 *  بخش گزارش‌های آزمایشگاهی — Laboratory Test Reports (PDP)
 * ============================================================ */
.lab-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.lab-report-card {
  position: relative;
  background: var(--shafa-input-bg-strong);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-inline-start: 4px solid var(--shafa-emerald-ink);
  border-radius: var(--radius-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: 0 6px 24px rgba(28, 25, 23, 0.04);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
  overflow: hidden;
}
.lab-report-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  background-image: url('../../img/honeycomb-luxury.svg');
  background-repeat: repeat;
  background-size: 52px 90px;
  opacity: 0.12;
  mask-image: radial-gradient(circle at 0% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 0% 0%, black 20%, transparent 80%);
  pointer-events: none;
  transition: opacity 300ms ease;
}
.lab-report-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 16px 40px rgba(197, 160, 89, 0.15);
}
.lab-report-card:hover::before {
  opacity: 0.22;
}
.lab-report-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  position: relative;
  z-index: 1;
}
.lab-report-card__icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(22, 43, 33, 0.08) 0%, rgba(197, 160, 89, 0.16) 100%);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: var(--shafa-emerald-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 300ms ease;
}
.lab-report-card:hover .lab-report-card__icon {
  transform: scale(1.08) rotate(4deg);
}
.lab-report-card__icon .material-symbols-outlined {
  font-size: 28px;
}
.lab-report-card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.lab-report-card__body {
  font-size: var(--fs-small);
  color: var(--text-soft);
  line-height: 1.9;
  margin: 0;
  position: relative;
  z-index: 1;
}
.lab-report-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-caption);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.lab-report-card__lab {
  font-weight: 500;
  color: var(--text-soft);
}
.lab-report-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-1);
  position: relative;
  z-index: 1;
}

/* ============================================================
 *  مستقیم از زنبوردار — Direct from Beekeeper
 * ============================================================ */
.beekeeper-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: 0 6px 24px rgba(28, 25, 23, 0.04);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.beekeeper-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 220px;
  height: 200px;
  background-image: url('../../img/honeycomb-luxury.svg');
  background-repeat: repeat;
  background-size: 60px 104px;
  opacity: 0.12;
  mask-image: radial-gradient(circle at 100% 100%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 100% 100%, black 20%, transparent 80%);
  pointer-events: none;
  transition: opacity 300ms ease;
}
.beekeeper-card:hover {
  transform: translateY(-3px);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 16px 40px rgba(197, 160, 89, 0.14);
}
.beekeeper-card:hover::after {
  opacity: 0.22;
}
.beekeeper-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
}
.beekeeper-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.beekeeper-card:hover .beekeeper-card__media img {
  transform: scale(1.04);
}
.beekeeper-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  z-index: 1;
}
.beekeeper-card__name {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.beekeeper-card__region {
  font-size: var(--fs-small);
  color: var(--shafa-gold-text);
  font-weight: 500;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.beekeeper-card__region .material-symbols-outlined {
  font-size: 18px;
}
.beekeeper-card__bio {
  font-size: var(--fs-body);
  color: var(--text-soft);
  line-height: 1.8;
  margin: 0;
}
.beekeeper-card__links {
  margin-top: auto;
  padding-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.beekeeper-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--fs-small);
  color: var(--shafa-gold-text);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.beekeeper-card__link:hover {
  color: var(--secondary);
}
.beekeeper-card__link .material-symbols-outlined {
  font-size: 18px;
}

/* ============================================================
 *  اعتماد یکپارچه — Trust Verification Flow
 * ============================================================ */
/* hex-card / hex-glow: تزئینات تکامیل‌کنندهٔ اعتماد یکپارچه.
   hex-card چارچوب شش‌ضلعی ملایم + پس‌زمینه کارت را فراهم می‌کند؛
   hex-glow هالهٔ طلایی ملایمی در حالت hover اضافه می‌کند.
   این کلاس‌ها در product.php روی trust-flow__step اعمال می‌شوند. */
.hex-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(28, 25, 23, 0.04);
  overflow: hidden;
}
.hex-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../img/honeycomb-luxury.svg');
  background-repeat: repeat;
  background-size: 36px 62px;
  opacity: 0.06;
  mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 75%);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}
.hex-glow {
  transition:
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}
.hex-glow:hover {
  box-shadow: 0 12px 36px -4px rgba(197, 160, 89, 0.20),
              0 8px 20px -4px rgba(24, 22, 20, 0.06);
  border-color: rgba(197, 160, 89, 0.45);
}
.hex-glow:hover .hex-card::before {
  opacity: 0.10;
}

.trust-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  max-width: 680px;
  margin-inline: auto;
}
.trust-flow__step {
  position: relative;
  padding: var(--s-3) var(--s-3) var(--s-3);
  max-width: 320px;
  margin-inline: auto;
  /* hex-card provides background, gold frame, shadow via pseudo-elements */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform var(--t-base) var(--ease);
  min-height: 0;
}
.trust-flow__step:hover {
  transform: translateY(-8px);
}
/* Vertical connector line between steps (desktop) */
.trust-flow__step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(50% - 18px);
  width: 2px;
  height: calc(50% + var(--s-4) / 2);
  background: linear-gradient(to bottom, var(--shafa-gold-satin), rgba(197, 160, 89, 0.15));
  transform: translateY(-50%);
  z-index: 0;
}
.trust-flow__step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--shafa-gold-gradient);
  color: var(--shafa-on-gold);
  font-weight: 700;
  font-size: var(--fs-caption);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  margin-top: 0;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
  transition: transform 300ms ease, box-shadow 300ms ease;
  z-index: 1;
}
.trust-flow__step:hover .trust-flow__step-num {
  transform: rotate(30deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.55);
}
.trust-flow__step-content {
  /* hex-card pseudo-elements handle background/frame */
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-2);
  width: 100%;
  max-width: 88%; /* stay within diagonal edges */
  flex: 1;
}
.trust-flow__step-content h3 {
  font-size: var(--shafa-fs-body);
  font-weight: 700;
  color: var(--shafa-text-primary);
  margin: 0;
  line-height: 1.4;
}
.trust-flow__step-content p {
  font-size: var(--fs-small);
  color: var(--shafa-text-secondary);
  line-height: 1.6;
  margin: 0;
}
.trust-flow__step-content .btn {
  margin-top: var(--s-1);
}

/* Mobile: single column, connector on right side */
@media (max-width: 768px) {
  .trust-flow {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    max-width: 100%;
  }
  .trust-flow__step {
    padding: var(--s-4) var(--s-3) var(--s-4);
    max-width: 100%;
    margin-inline: auto;
  }
  .trust-flow__step:not(:last-child)::before {
    top: 44px;
    right: 22px;
    height: calc(100% - 44px);
  }
  .trust-flow__step-num {
    width: 32px;
    height: 32px;
    font-size: var(--fs-caption);
    margin-top: 0;
  }
  .trust-flow__step-content {
    max-width: 92%;
    padding: 0;
  }
}

/* ============================================================
 *  واکنش‌گرا — Responsive
 * ============================================================ */
@media (max-width: 1024px) {
  .lab-reports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
  }
  .beekeeper-card {
    grid-template-columns: 1fr;
  }
  .beekeeper-card__media {
    aspect-ratio: 16/9;
    max-height: 320px;
  }
  .beekeeper-card__body {
    padding: var(--s-4);
  }
}
@media (max-width: 768px) {
  .lab-reports-grid {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .trust-flow__step {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }
  /* خط عمودی بین مراحل حذف می‌شود */
  .trust-flow__step:not(:last-child)::before {
    display: none;
  }
  .trust-flow__step-num {
    width: 36px;
    height: 36px;
    font-size: var(--fs-small);
  }
  .beekeeper-card__links {
    flex-direction: column;
    align-items: flex-start;
  }
  .beekeeper-card__links .beekeeper-card__link {
    width: 100%;
  }
  .product-reviews__summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .lab-report-card__actions {
    flex-direction: column;
  }
  .lab-report-card__actions .btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .lab-report-card {
    padding: var(--s-3);
  }
  .trust-flow__step-content {
    padding: var(--s-3);
  }
  .section-head h2 {
    font-size: var(--fs-h3);
  }
}

/* ============================================================
   Missing utility / fallback classes
   ============================================================ */
.beekeeper-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  border-radius: var(--radius, 12px);
  min-height: 280px;
  object-fit: cover;
}

.product-detail__compare-box {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  margin-left: var(--s-2, 8px);
  vertical-align: middle;
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.product-detail__compare-box.is-checked,
input[type="checkbox"]:checked + .product-detail__compare-box {
  border-color: var(--accent);
  background: var(--accent);
}

/* PDP meta row: weight + packaging after price */
.pdp-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-2);
}
.pdp-meta__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--fs-small);
  color: var(--text-soft);
  font-weight: 500;
}
.pdp-meta__item .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent);
}

/* Share product */
.share-product {
  margin-top: var(--s-7);
  text-align: center;
}
.share-product__title {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: var(--s-3);
}
.share-product__links {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
}
.share-product__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease, background var(--t-fast) ease;
  background: none;
  cursor: pointer;
}
.share-product__link:hover {
  color: var(--shafa-gold-text);
  border-color: var(--shafa-gold-text);
  background: var(--surface-2);
}
.share-product__link .material-symbols-outlined {
  font-size: 18px;
}

/* ============================================================
 *  فیلترهای دسته‌بندی و سربرگ لوکس فروشگاه
 * ============================================================ */
.product-card__meta.mb-5 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.product-card__meta .tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--shafa-input-bg-strong);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    font-weight var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.product-card__meta .tag:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 160, 89, 0.6);
  color: var(--shafa-gold-text);
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.16);
}
.product-card__meta .tag.is-active {
  background: var(--shafa-gold-gradient);
  color: var(--shafa-on-gold);
  border-color: rgba(197, 160, 89, 0.8);
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
  font-weight: 700;
}

/* ============================================================
 *  Review Images
 * ============================================================ */
.product-review__image {
  margin-top: var(--s-3);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 100%;
}
.product-review__image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  background: var(--surface-2);
}

/* Review form file input */
.product-review-form__row input[type="file"] {
  display: block;
  width: 100%;
  padding: var(--s-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-small);
}
.product-review-form__row input[type="file"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
  border-color: var(--shafa-gold-satin);
}
