/* ── SHELBY BRAND VARIABLES ── */
:root {
  --sp: #E64980;
  --sp-dark: #C2185B;
  --sb: #5CB8E4;
  --sb-dark: #1e88c9;
  --sp-lighter: #fff0f5;
  --border: #f0d6e3;
  --shadow-sm: 0 2px 8px rgba(230,73,128,.08);
  --shadow-md: 0 8px 24px rgba(230,73,128,.14);
  --r-card: 18px;
  --text-1: #1a1a2e;
  --text-2: #4a4a6a;
  --text-3: #9090a8;
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
* { font-family: 'Vazirmatn RD UI FD NL', 'Vazir', 'Arial', sans-serif !important; }

body {
  display: block !important;
  background: #fff !important;
}

/* صفحه محصول از هدر تا فوتر یک زمینهٔ سفید خالص دارد. */
html,
.dialog-off-canvas-main-canvas,
.site-page,
.site-main,
.site-header,
.site-header .sh-bar,
.site-footer,
.site-footer .sf-compact,
.site-footer .sf-compact__head,
.related-products-strip,
.recently-viewed-strip,
.home-product-strip-panel,
.sticky-bottom-menu {
  background-color: #fff !important;
  background-image: none !important;
}

.anim_background { display: none !important; }

/* نوار بارگذاری بالای هدر نیز با زمینه یکدست باشد. */
.turbo-progress-bar {
  background: #fff !important;
  box-shadow: none !important;
}

.site-container {
  display: block !important;
  width: 100% !important;
  font-size: 15px;
  padding-bottom: 96px; /* فضای کافی پشت نوار خرید چسبان */
  background: #fff;
}

.site-container > :not(style):not(script):not(link):not(template) {
  display: block !important;
  width: 100% !important;
  clear: both !important;
  float: none !important;
}

/* ── BREADCRUMB ── */
.category-breadcrumb {
  padding: 18px 0 22px;
  margin: 0 !important;
}

.category-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}

.category-breadcrumb li {
  display: flex;
  align-items: center;
  font-size: .82rem;
}

.category-breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s;
  padding: 2px 4px;
  border-radius: 4px;
}

.category-breadcrumb a:hover { color: var(--sp); }
.category-breadcrumb .separator { color: var(--border); margin: 0 1px; font-size: .75rem; }
.category-breadcrumb .current { color: var(--sp); font-weight: 700; padding: 2px 6px; background: var(--sp-lighter); border-radius: 4px; }

/* ══════════════════════════════════════════
   MAIN PRODUCT DISPLAY
══════════════════════════════════════════ */
.product-main-display-wrapper {
  display: grid !important;
  grid-template-columns: 1fr;
  grid-template-areas: "header" "gallery";
  gap: 16px;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 32px;
  max-width: 100%;
}

/* specificity guard: قانون عمومی فرزندان site-container نباید grid صفحه محصول را به block تبدیل کند. */
.site-container > .product-main-display-wrapper { display: grid !important; }

@media (min-width: 768px) {
  .product-main-display-wrapper {
    grid-template-columns: 50% 50%;
    grid-template-areas:
      "gallery header";
    align-items: start;
    gap: 20px;
  }
  /* دسکتاپ: هدر کنار گالری است، پس بدون فاصلهٔ بالا تا هم‌تراز بماند */
  .product-header-section { margin-top: 0; }
}

.product-main-display-wrapper--cip { grid-template-areas: "header" "gallery" "choice"; }
.product-main-display-wrapper--cip > .cip-choice {
  grid-area: choice;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(232, 76, 135, .16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(248,252,255,.94));
  box-shadow: 0 8px 24px rgba(45,31,46,.07);
}

@media (min-width: 768px) {
  .product-main-display-wrapper--cip {
    grid-template-areas:
      "gallery header"
      "gallery choice";
    align-items: start;
  }
}

/* ── PRODUCT HEADER ── */
.product-header-section {
  grid-area: header;
  margin-top: 14px;
  border-radius: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(232, 76, 135, .16);
  background: linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(255,249,252,.92) 52%, rgba(247,252,255,.94) 100%);
  backdrop-filter: blur(28px) saturate(135%);
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  box-shadow:
    0 10px 28px rgba(45, 31, 46, .08),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  position: relative;
  height: fit-content;
  overflow: hidden;
  overflow-anchor: none;
}

@keyframes headerBorderFlow {
  0%, 100% { background-position: 0 0, 0% 50%; }
  50%      { background-position: 0 0, 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .product-header-section { animation: none; }
}

.product-header-section .container { max-width: 100%; padding: 0; }

/* ── CIP palette selector ── */
.cip-choice { margin-top: 12px; direction: rtl; }
.cip-choice__intro { text-align: right; }
.cip-choice__kicker { color: var(--sp-dark); font-size: .72rem; font-weight: 800; }
.cip-choice__intro h2 { margin: 2px 0 4px; color: var(--text-1); font-size: .98rem; line-height: 1.5; }
.cip-choice__intro p { margin: 0; color: var(--text-2); font-size: .72rem; line-height: 1.65; }
.cip-offer-compact { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin-top: 9px; overflow: hidden; border: 1px solid rgba(30,136,201,.20); border-radius: 11px; background: #fff; }
.cip-offer-compact > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 6px; min-width: 0; padding: 8px 9px; }
.cip-offer-compact > div + div { border-right: 1px solid #e8eef2; background: linear-gradient(135deg, #fff9fb, #fff); }
.cip-offer-compact span { color: var(--text-3); font-size: .55rem; font-weight: 750; }
.cip-offer-compact strong { color: var(--text-1); font-size: .70rem; line-height: 1.45; }
.cip-offer-compact > div:last-child strong { color: var(--sp-dark); }
.cip-offer-compact small { grid-column: 1 / -1; color: var(--text-2); font-size: .53rem; line-height: 1.45; }
.cip-choice__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
.cip-option {
  width: 100%; min-width: 0; padding: 0; overflow: hidden; text-align: right; cursor: pointer;
  border: 1px solid #eadfe5; border-radius: 12px; background: #fff; color: var(--text-1);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cip-option:hover { border-color: rgba(30,136,201,.45); transform: translateY(-1px); }
.cip-option.is-selected { border-color: var(--sb-dark); background: linear-gradient(180deg, #fff, #f7fcff); box-shadow: 0 0 0 2px rgba(30,136,201,.10), 0 7px 18px rgba(33,102,140,.09); }
.cip-option:disabled { cursor: not-allowed; opacity: .55; }
.cip-option__media { position: relative; display: grid; place-items: center; aspect-ratio: 1.65/1; padding: 9px; background: #f8fafc; overflow: hidden; }
.cip-option__media img { width: auto; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: block; transform-origin: center; }
.cip-option[data-cip-key="wall"] .cip-option__media img,
.cip-option[data-cip-key="binder"] .cip-option__media img { transform: none; }
.cip-option__radio { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border: 2px solid #b9c4cf; border-radius: 50%; background: #fff; }
.cip-option.is-selected .cip-option__radio { border: 5px solid var(--sb-dark); }
.cip-option__body { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px 8px; }
.cip-option__body strong { font-size: .74rem; line-height: 1.45; }
.cip-option__body > span:not(.cip-option__eyebrow) { color: var(--text-2); font-size: .61rem; line-height: 1.55; }
.cip-option__eyebrow { color: var(--sb-dark); font-size: .57rem; font-weight: 750; }
.cip-option__body small { margin-top: 2px; color: var(--sp-dark); font-size: .56rem; font-weight: 700; line-height: 1.45; }
.cip-choice__assurance { display: flex; align-items: flex-start; gap: 6px; margin-top: 7px; padding: 7px 8px; border-radius: 10px; background: rgba(30,136,201,.07); color: #30475a; font-size: .64rem; line-height: 1.6; }
.cip-choice__assurance svg { flex: 0 0 18px; width: 18px; margin-top: 2px; fill: none; stroke: var(--sb-dark); stroke-width: 1.7; }
.cip-choice__learn {
  display: grid; grid-template-columns: minmax(0,1fr); gap: 7px;
  width: 100%; margin-top: 8px; padding: 10px; border: 1px solid rgba(30,136,201,.30);
  border-radius: 12px; background: linear-gradient(135deg, #f4fbff, #fff7fb); color: #30475a; text-align: right; cursor: pointer;
  box-shadow: 0 5px 14px rgba(30,136,201,.08);
}
.cip-choice__learn-copy { display: flex; flex-direction: column; gap: 2px; }
.cip-choice__learn-copy small { color: var(--sp-dark); font-size: .60rem; font-weight: 800; }
.cip-choice__learn-copy strong { color: var(--text-1); font-size: .74rem; line-height: 1.55; }
.cip-choice__learn-action { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 6px 10px; border-radius: 9px; background: var(--sb-dark); color: #fff; font-size: .68rem; font-weight: 850; text-align: center; }
.cip-choice__learn-action svg { flex: 0 0 16px; width: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.cip-choice__learn:hover .cip-choice__learn-action svg { transform: translateX(-2px); }
.cip-story { display: grid; gap: 10px; }
#description { scroll-margin-top: 96px; }
.cip-story__lead { padding: 12px 13px; border-right: 3px solid var(--sp); border-radius: 11px; background: linear-gradient(135deg, #fff8fb, #f8fcff); }
.cip-story__lead > span { color: var(--sp-dark); font-size: .78rem; font-weight: 800; }
.cip-story__lead h3 { margin: 4px 0 8px !important; font-size: 1.05rem; line-height: 1.7; }
.cip-story__lead p, .cip-story__benefits p { margin: 0; color: var(--text-2); line-height: 2; }
.cip-story__payoff { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; }
.cip-story__payoff > div { display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid #e7edf2; border-radius: 10px; background: #fff; }
.cip-story__payoff strong { color: var(--sb-dark); font-size: .78rem; }
.cip-story__payoff span { color: var(--text-2); font-size: .68rem; line-height: 1.7; }
.cip-story__gifts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.cip-story__gifts article { padding: 12px; border: 1px solid rgba(230,73,128,.18); border-radius: 11px; background: linear-gradient(145deg, #fff, #fff8fb); }
.cip-story__gifts span { display: block; color: var(--sp-dark); font-size: .66rem; font-weight: 800; }
.cip-story__gifts strong { display: block; margin: 3px 0 5px; color: var(--text-1); font-size: .82rem; }
.cip-story__gifts p { margin: 0; color: var(--text-2); font-size: .72rem; line-height: 1.85; }
.cip-story__benefits { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.cip-story__benefits article { padding: 11px 12px; border: 1px solid #edf0f3; border-radius: 11px; background: #fff; }
.cip-story__benefits strong { color: var(--text-1); }
.cip-story__benefits small { display: block; margin-top: 7px; color: var(--sp-dark); font-size: .68rem; line-height: 1.7; font-weight: 700; }
.cip-story__note { padding: 10px 12px; border-radius: 10px; background: #fff4f8; color: #5c3b49; line-height: 1.8; }
.cip-story__decision { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 11px; background: linear-gradient(135deg, #23374a, #315b78); color: #fff; }
.cip-story__decision > div { display: flex; flex-direction: column; gap: 3px; }
.cip-story__decision strong { font-size: .82rem; line-height: 1.65; }
.cip-story__decision span { color: rgba(255,255,255,.78); font-size: .68rem; line-height: 1.65; }
.cip-story__decision button { flex: 0 0 auto; min-height: 36px; padding: 7px 13px; border: 0; border-radius: 9px; background: var(--sp); color: #fff; font-size: .72rem; font-weight: 850; cursor: pointer; }

@media (max-width: 767px) {
  .cip-choice__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cip-option__media { aspect-ratio: 1/1; padding: 7px; }
  .cip-option__body > span:not(.cip-option__eyebrow) { display: none; }
  .cip-story__benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cip-story__benefits article { padding: 9px; }
  .cip-story__benefits p { font-size: .72rem; line-height: 1.8; }
  .cip-story__payoff { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cip-story__payoff > div { padding: 8px; }
  .cip-offer-compact > div { grid-template-columns: 1fr; align-content: start; gap: 1px; }
  .cip-offer-compact strong { font-size: .66rem; }
  .cip-story__gifts { grid-template-columns: 1fr; }
  .cip-story { font-size: .80rem; line-height: 1.85; }
  .cip-story__lead > span { font-size: .68rem; }
  .cip-story__lead h3 { font-size: .92rem; line-height: 1.65; margin-bottom: 6px !important; }
  .cip-story__lead p { font-size: .78rem; line-height: 1.9; }
  .cip-story__decision { align-items: stretch; flex-direction: column; padding: 10px; }
  .cip-story__decision button { width: 100%; }
}

@media (max-width: 340px) {
  .cip-offer-compact > div { padding: 7px; }
  .cip-offer-compact strong { font-size: .61rem; }
  .cip-offer-compact small { font-size: .49rem; }
  .cip-option__body { padding-inline: 6px; }
  .cip-option__body strong { font-size: .69rem; }
  .cip-option__body small { font-size: .51rem; }
  .cip-choice__learn-copy strong { font-size: .69rem; }
}

.product-header-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.product-header-title-row .product-title {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
}

.product-title {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-size: clamp(10px, 3.2vw, 21px);
  font-weight: 750;
  color: var(--text-1);
  line-height: 1.55;
  margin: 0;
  white-space: nowrap;
  letter-spacing: -.02em;
  text-align: center;
  overflow: visible;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) { .product-title { font-size: clamp(16px, 2vw, 23px); } }

@media (max-width: 767px) {
  .product-title {
    font-size: clamp(16px, 5.1vw, 20px);
  }
  .product-title--compact { font-size: clamp(12px, 3.8vw, 16px); }
  .product-title--extra-compact { font-size: clamp(9px, 3vw, 13px); }
}

.product-header-title-row .product-stock-indicator {
  flex-shrink: 0;
  align-self: center;
  margin-top: 0.15em;
}

.product-stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-stock-indicator.in-stock {
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #a7f3d0;
}

.product-stock-indicator.in-stock::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #059669;
  display: inline-block;
}

.product-stock-indicator.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
  border: 1.5px solid #fecaca;
}

/* ══════════════════════════════════════════
   GALLERY
══════════════════════════════════════════ */
.product-gallery-section {
  grid-area: gallery;
  position: sticky;
  top: 88px;
  align-self: start;
  min-width: 0; /* جلوگیری از پهن‌شدن ستون گالری بر اساس تعداد زیاد تصاویر (min-content blowout) */
}

.product-gallery-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery-main-panel {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  order: 1; /* تصویر اصلی بالا */
}

/* نوار تامبنیل زیر تصویر اصلی */
.gallery-thumbstrip { order: 2; }

.product-gallery-main {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  background: linear-gradient(160deg, #fdf7fb 0%, #f7fbfe 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  padding: 20px;
  box-sizing: border-box;
}

.product-gallery-main > img,
#main-product-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .35s ease;
}

.product-gallery-main:hover #main-product-image { transform: scale(1.04); }

@media (max-width: 767px) {
  .product-gallery-main {
    width: min(100%, 380px);
  }
}

.gallery-img-loading { opacity: .5; transition: opacity .2s; }

.gallery-no-image { font-size: 4rem; opacity: .3; }

/* Nav arrows */
.gallery-nav-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .2s;
  z-index: 3;
}

.gallery-nav-arrow:hover {
  background: white;
  border-color: var(--sp);
  box-shadow: 0 4px 14px rgba(230,73,128,.22);
}

.gallery-nav-arrow svg { width: 18px; height: 18px; color: var(--text-2); }
.gallery-nav-prev { right: 10px; }
.gallery-nav-next { left: 10px; }

/* Thumb strip */
.gallery-thumbstrip {
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch; /* اسکرول نرم افقی روی iOS */
  overscroll-behavior-x: contain;    /* اسکرول تصاویر به صفحه سرایت نکند */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-thumbstrip::-webkit-scrollbar { display: none; }

.product-gallery-thumbnails {
  display: flex;
  gap: 8px;
}

.product-gallery-thumb {
  width: 66px; height: 66px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #eee2ea;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  background: #fafafa;
}

.product-gallery-thumb.active {
  border-color: var(--sp);
  box-shadow: 0 4px 12px rgba(230,73,128,.2);
}

.product-gallery-thumb:hover { border-color: var(--sp); transform: translateY(-2px); }
.product-gallery-thumb img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  padding: 0;
}

/* ══════════════════════════════════════════
   PURCHASE SECTION
══════════════════════════════════════════ */
.product-purchase-section { grid-area: purchase; }

.product-purchase-container {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Mobile: tighter padding */
@media (max-width: 767px) {
  .product-purchase-container {
    padding: 18px 16px;
  }
  .product-header-section { padding: 14px 13px; }
  .product-gallery-container { padding: 14px; }
}

/* Pricing block */
.purchase-pricing {
  position: relative;
  background: linear-gradient(135deg, #fff5f9 0%, #f3fbfe 100%);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.purchase-pricing::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #E76BA3 0%, #5BC2E7 100%);
}

.price-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.current-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.current-price .product-price-amount {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--sp);
  line-height: 1;
}

.current-price .product-price-currency {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-2);
}

.price-comparison { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.original-price .product-price-amount {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: line-through;
}

.original-price .product-price-currency {
  font-size: .75rem;
  color: var(--text-3);
  text-decoration: line-through;
}

.discount-badge {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 800;
}

.savings-info {
  margin-top: 8px;
  font-size: .82rem;
  color: #059669;
  font-weight: 600;
}

/* Product badges */
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 800;
}

.badge.featured { background: linear-gradient(135deg, var(--sp), var(--sp-dark)); color: white; }
.badge.new      { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.badge.sale     { background: linear-gradient(135deg, #ef4444, #f87171); color: white; }
.badge.default  { background: var(--sp-lighter); color: var(--sp); border: 1.5px solid var(--border); }

/* Variants */
.variants-section { display: flex; flex-direction: column; gap: 14px; }
.variant-group   { display: flex; flex-direction: column; gap: 8px; }

.variant-label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-2);
}

.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }

.variant-option {
  padding: 6px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .18s;
}

.variant-option:hover,
.variant-option.selected {
  border-color: var(--sp);
  color: var(--sp);
  background: var(--sp-lighter);
}

/* Purchase actions */
.purchase-actions { display: flex; flex-direction: column; gap: 10px; }

.quantity-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-2);
  display: block;
  margin-bottom: 4px;
}

.quantity-wrapper { flex-direction: column; }

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  background: white;
}

.quantity-btn {
  width: 42px; height: 42px;
  border: none;
  background: var(--sp-lighter);
  color: var(--text-1);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, color .18s;
  display: flex; align-items: center; justify-content: center;
}

.quantity-btn:hover { background: var(--sp); color: white; }
.quantity-btn:disabled { opacity: .4; cursor: not-allowed; }
.quantity-btn.minus--delete svg { width: 16px; height: 16px; }

.quantity-input {
  width: 56px; height: 42px;
  border: none;
  border-right: 1.5px solid var(--border);
  border-left: 1.5px solid var(--border);
  text-align: center !important;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-1);
  background: white;
  outline: none;
}

.action-buttons { display: flex; flex-direction: column; gap: 10px; }

/* Add to cart — Shelby Blue */
.btn.btn-primary.btn-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: linear-gradient(135deg, #5BC2E7 0%, #3a9fc4 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 4px 18px rgba(91,194,231,.38);
}

.btn.btn-primary.btn-add-to-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3a9fc4 0%, #2280a8 100%);
  box-shadow: 0 8px 26px rgba(91,194,231,.52);
}

.btn.btn-primary.btn-add-to-cart:disabled { opacity: .7; cursor: not-allowed; }
.btn.btn-primary.btn-add-to-cart .cart-icon { font-size: 1.1rem; }

/* Wishlist */
.btn.btn-secondary.btn-wishlist {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: white;
  color: var(--sp);
  border: 1.5px solid var(--sp);
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.btn.btn-secondary.btn-wishlist:hover { background: var(--sp-lighter); }
.btn.btn-secondary.btn-wishlist .heart-icon { font-size: 1rem; }

/* Out of stock */
.out-of-stock {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  padding: 18px;
  background: #fef2f2;
  border-radius: 14px;
  border: 1.5px solid #fecaca;
}

.out-of-stock .stock-status { font-size: .9rem; font-weight: 800; color: #dc2626; }
.notify-link { font-size: .82rem; color: var(--sp); text-decoration: underline; cursor: pointer; }

/* ══════════════════════════════════════════
   ZOOM MODAL — SnappShop Style
══════════════════════════════════════════ */
.image-zoom-modal {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 10001;
  flex-direction: column;
  background: #fff;
}

.image-zoom-modal[hidden] { display: none !important; }

.image-zoom-modal.active,
.image-zoom-modal[aria-hidden="false"] { display: flex !important; }

/* Header bar */
.image-zoom-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  flex-shrink: 0;
  direction: rtl;
}

.image-zoom-modal__title {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a2e;
}

.image-zoom-modal .close-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  color: #333;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
  flex-shrink: 0;
}

.image-zoom-modal .close-btn:hover { background: #e8e8e8; }

/* Main image area */
.image-zoom-modal__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #fff;
  min-height: 0;
}

.image-zoom-modal .modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.image-zoom-modal .modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.image-zoom-modal .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  border: 1.5px solid #e5e5e5;
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  z-index: 2;
}

.image-zoom-modal .nav-btn:hover { background: #fff; border-color: #5BC2E7; color: #5BC2E7; }
.image-zoom-modal .nav-btn.prev { right: 12px; }
.image-zoom-modal .nav-btn.next { left: 12px; }
.image-zoom-modal .nav-btn[style*="none"] { display: none !important; }

/* Footer: counter + thumbstrip */
.image-zoom-modal__footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  padding: 10px 16px 12px;
  direction: rtl;
}

.image-zoom-modal__counter {
  font-size: .78rem;
  color: #888;
  font-weight: 600;
  display: block;
  text-align: right;
  margin-bottom: 10px;
}

.image-zoom-modal__thumbstrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  direction: rtl;
}

.image-zoom-modal__thumbstrip::-webkit-scrollbar { display: none; }

.image-zoom-modal__thumb {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .18s;
  background: #f8f8f8;
}

.image-zoom-modal__thumb.active {
  border-color: #5BC2E7;
}

.image-zoom-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* ══════════════════════════════════════════
   STICKY BOTTOM BAR
══════════════════════════════════════════ */
/* نوار بیرونی — تمام‌عرض؛ فاصله از طرفین با padding (مصون از اسکرول‌بار) */
.sticky-purchase-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* بالاتر از منوی ناوبری پایین (9998) */
  background: none;
  border: none;
  box-shadow: none;
  padding: 0 12px;
  direction: rtl;
}

/* قاب آبی برند دور تا دور نوار */
.sticky-bar__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid #5BC2E7;
  border-radius: 16px;
  pointer-events: none;
}

/* ── هماهنگی نوار خرید با سایر عناصر شناور صفحه ──
   ارتفاع تقریبی نوار خرید (برای فاصله‌دهی دکمه‌های شناور) */
:root { --shelby-buybar-h: 66px; }

/* دسکتاپ: منوی پایین مخفی است → نوار به کف می‌چسبد،
   دکمه‌های شناور (پشتیبانی + برگشت‌به‌بالا) بالای نوارِ ناوبریِ رنگ می‌روند */
.ssw-fab { bottom: calc(24px + var(--shelby-buybar-h)) !important; }
#back-to-top { bottom: calc(28px + var(--shelby-buybar-h)) !important; }

/* موبایل/تبلت: نوار خرید بالای منوی پایین و کرهٔ برجستهٔ آوا قرار می‌گیرد. */
@media (max-width: 1023px) {
  .sticky-purchase-bar {
    bottom: 112px;
  }
  .ssw-fab {
    bottom: calc(112px + var(--shelby-buybar-h) + 14px) !important;
  }
  #back-to-top {
    bottom: calc(112px + var(--shelby-buybar-h) + 18px) !important;
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 1023px) {
    .sticky-purchase-bar {
      bottom: calc(112px + env(safe-area-inset-bottom));
    }
    .ssw-fab {
      bottom: calc(112px + var(--shelby-buybar-h) + 14px + env(safe-area-inset-bottom)) !important;
    }
    #back-to-top {
      bottom: calc(112px + var(--shelby-buybar-h) + 18px + env(safe-area-inset-bottom)) !important;
    }
  }
}

.sticky-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 50px;
  padding: 9px 14px;
  /* شیشهٔ مات اپل (liquid glass) — حداکثر شفافیت، blur قوی، بازتاب نور لطیف */
  background:
    linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 100%);
  backdrop-filter: blur(48px) saturate(220%) brightness(112%);
  -webkit-backdrop-filter: blur(48px) saturate(220%) brightness(112%);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(26,19,26,.13),
    inset 0 1px 1.5px rgba(255,255,255,.95),
    inset 0 -1px 3px rgba(255,255,255,.40);
}

/* دکمه علاقه‌مندی */
.sticky-bar__wish {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1.5px solid var(--sp);
  background: #fff;
  color: var(--sp);
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}

.sticky-bar__wish svg { width: 20px; height: 20px; }
.sticky-bar__wish:hover { background: var(--sp-lighter); }

/* حالت افزوده‌شده — WishlistManager کلاس .active و data-in-wishlist می‌گذارد
   و رنگ قرمز inline روی آیکن ست می‌کند؛ با !important به صورتی برند override می‌شود */
.sticky-bar__wish.active,
.sticky-bar__wish[data-in-wishlist="true"] {
  background: var(--sp);
  border-color: var(--sp);
  color: #fff;
}
.sticky-bar__wish.active svg,
.sticky-bar__wish.active svg path,
.sticky-bar__wish[data-in-wishlist="true"] svg,
.sticky-bar__wish[data-in-wishlist="true"] svg path {
  fill: #fff !important;
  stroke: #fff !important;
}

/* بلوک قیمت — سمت چپ */
.sticky-bar__pricing {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  min-width: 0;
  line-height: 1.15;
}

.sticky-bar__price-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-bar__original {
  font-size: .72rem;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 500;
}

.sticky-bar__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sticky-bar__discount {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 800;
}

.sticky-bar__price {
  font-size: 1.15rem;
  font-weight: 900;
  color: #1a1a2e;
}

.sticky-bar__currency {
  font-size: .72rem;
  color: #666;
  font-weight: 600;
}

/* سمت راست: گروه اکشن — دکمه خرید + علاقه‌مندی (مهم‌ها سمت راست) */
.sticky-bar__actions {
  order: 1;             /* راست */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

/* داخل گروه اکشن: دکمه خرید راست، علاقه‌مندی چپ */
.sticky-bar__actions .sticky-bar__btn,
.sticky-bar__actions .sticky-bar__qty { order: 1; }
.sticky-bar__actions .sticky-bar__wish { order: 2; }

/* قیمت سمت چپ */
.sticky-bar__pricing { order: 2; }

/* Sticky add-to-cart button — صورتی شلبی (هماهنگ با بقیه دکمه‌های سایت) */
.sticky-bar__btn {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 30px;
  background: linear-gradient(135deg, var(--sp) 0%, var(--sp-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all .22s;
  box-shadow: 0 4px 16px rgba(230,73,128,.36);
}

.sticky-bar__btn:hover {
  background: linear-gradient(135deg, var(--sp-dark) 0%, #a01548 100%);
  box-shadow: 0 6px 22px rgba(230,73,128,.46);
  transform: translateY(-1px);
}

.sticky-bar__btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Sticky quantity controls — دکمه + سمت راست */
.sticky-bar__qty {
  display: none;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  direction: ltr; /* ترتیب: حذف(چپ) | عدد | +(راست) */
}

.sticky-bar__qty.visible { display: flex; }

.sticky-bar__qty-btn {
  width: 36px; height: 36px;
  border: none;
  background: #f5f5f5;
  color: #333;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s;
}

.sticky-bar__qty-btn:hover { background: var(--sp); color: #fff; }
.sticky-bar__qty-btn svg { width: 15px; height: 15px; }
.sticky-bar__qty-btn.is-delete { color: #ef4444; }
.sticky-bar__qty-btn.is-delete:hover { background: #ef4444; color: #fff; }

.sticky-bar__qty-val {
  min-width: 40px;
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  color: #1a1a2e;
  border-right: 1.5px solid #e0e0e0;
  border-left: 1.5px solid #e0e0e0;
  padding: 0 6px;
  height: 36px;
  line-height: 36px;
}

/* محصول ناموجود: اکشن واقعی ثبت اعلان موجودی */
.sticky-bar__btn.sticky-bar__btn--notify {
  border: 1.5px solid var(--sp);
  background: linear-gradient(180deg, #fff 0%, var(--sp-lighter) 100%);
  color: var(--sp-dark);
  box-shadow: 0 4px 14px rgba(230,73,128,.14);
}

.sticky-bar__btn.sticky-bar__btn--notify:hover {
  background: var(--sp-lighter);
  color: var(--sp-dark);
  box-shadow: 0 6px 18px rgba(230,73,128,.2);
}

@media (max-width: 767px) {
  .sticky-purchase-bar { padding: 0 8px; }
  .sticky-bar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(78px, 92px);
    gap: 7px;
    min-height: 60px;
    padding: 7px 9px;
  }
  .sticky-bar__actions { width: 100%; min-width: 0; gap: 7px; }
  .sticky-bar__actions .sticky-bar__btn { flex: 1 1 auto; min-width: 0; }
  .sticky-bar__pricing { width: 100%; min-width: 0; align-items: center; }
  .sticky-bar__price-row { align-items: center; flex-direction: column; gap: 1px; }
  .sticky-bar__btn { min-height: 44px; gap: 6px; padding: 10px 9px; font-size: clamp(.7rem, 2.7vw, .82rem); line-height: 1.35; }
  .sticky-bar__btn svg { flex: 0 0 15px; width: 15px; height: 15px; }
  .sticky-bar__price { font-size: clamp(.82rem, 3.4vw, .96rem); line-height: 1.15; }
  .sticky-bar__currency { font-size: .58rem; line-height: 1.2; }
  .sticky-bar__wish { width: 44px; height: 44px; border-radius: 11px; }
  .sticky-bar__wish svg { width: 20px; height: 20px; }
  .sticky-bar__qty-btn { width: 34px; height: 34px; }
  .sticky-bar__qty-val { min-width: 36px; height: 34px; line-height: 34px; }
}

@media (max-width: 360px) {
  .sticky-bar__original { display: none; } /* صرفه‌جویی فضا روی موبایل خیلی کوچک */
  .sticky-bar__inner { gap: 5px; padding-inline: 7px; }
  .sticky-bar__pricing { min-width: 62px; }
  .sticky-bar__btn { padding-inline: 7px; }
  .sticky-bar__btn svg { display: none; }
  .sticky-bar__wish { width: 40px; height: 40px; }
  .sticky-bar__btn { min-height: 40px; }
}

/* ══════════════════════════════════════════
   TABS SECTION
══════════════════════════════════════════ */
.product-tabs-section {
  display: block !important;
  background: white;
  border-radius: var(--r-card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 28px;
}

.product-tabs-nav {
  display: flex;
  border-bottom: 1.5px solid var(--border);
  background: #fdf5f8;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.product-tab-btn {
  padding: 15px 20px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color .2s;
}

.product-tab-btn.active { color: var(--sp); }

.product-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2.5px;
  background: var(--sp);
  border-radius: 2px 2px 0 0;
}

.product-tab-btn:hover:not(.active) { color: var(--sp-dark); }

.product-tab-content {
  display: none;
  padding: 28px;
  animation: tabFadeIn .22s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-tab-content.active { display: block; }

/* Description */
.tab-description {
  line-height: 2.05;
  color: var(--text-2);
  font-size: .92rem;
}

.tab-description h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--sp-lighter);
  border-radius: 8px;
  border-right: 3px solid var(--sp);
}

/* Specifications */
.product-specifications { display: flex; flex-direction: column; gap: 10px; }

.spec-group h4 {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 10px;
  padding: 8px 14px;
  background: var(--sp-lighter);
  border-radius: 8px;
  border-right: 3px solid var(--sp);
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin: 0;
}

.spec-item {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 9px 2px;
  border-bottom: 1px solid #edf0f3;
  background: transparent;
}

.spec-label {
  color: var(--text-3);
  font-size: .66rem;
  font-weight: 650;
}

.spec-value {
  max-width: 100%;
  margin: 0;
  color: var(--text-1);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.spec-item--status {
  border-bottom-color: rgba(26, 157, 102, .18);
}

.spec-item--status .spec-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #117a50;
}

.spec-item--status .spec-value::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20ad74;
  box-shadow: 0 0 0 4px rgba(32, 173, 116, .1);
}

.spec-item--out-of-stock .spec-value {
  color: #c92855;
}

.spec-item--out-of-stock .spec-value::before {
  background: #e53f6f;
  box-shadow: 0 0 0 4px rgba(229, 63, 111, .1);
}

@media (min-width: 992px) {
  .spec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ══════════════════════════════════════════
   REVIEWS
══════════════════════════════════════════ */
.product-reviews-section { display: flex; flex-direction: column; gap: 14px; }

.reviews-summary {
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f3;
}

.reviews-empty-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.reviews-empty-summary strong {
  color: var(--text-1);
  font-size: .84rem;
  font-weight: 800;
}

.reviews-empty-summary span {
  color: var(--text-3);
  font-size: .72rem;
  font-weight: 600;
}

.reviews-rating-overview {
  display: flex;
  gap: 20px;
  align-items: stretch;
  flex-wrap: wrap;
}

.reviews-average-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  border-left: 1px solid #edf0f3;
  min-width: 105px;
}

.reviews-average-number {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--sp);
  line-height: 1;
}

.reviews-stars-display { font-size: .82rem; letter-spacing: 1px; }
.reviews-total-count { font-size: .78rem; color: var(--text-3); font-weight: 600; }

.reviews-rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.rating-bar-item { display: flex; align-items: center; gap: 8px; }
.rating-bar-label { font-size: .8rem; color: var(--text-2); min-width: 38px; text-align: right; }

.rating-bar-fill {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--sp), var(--sp-dark));
  border-radius: 4px;
  transition: width .5s ease;
}

.rating-bar-count { font-size: .78rem; color: var(--text-3); min-width: 18px; }

/* Review messages */
.review-form-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.review-form-success { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.review-form-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.review-form-info    { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }

/* Review form */
.review-compose {
  padding: 2px 0 8px;
}

.review-compose__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2px 9px;
  text-align: center;
}

.review-compose__header strong { color: var(--text-1); font-size: .78rem; font-weight: 800; }
.review-compose__header span { color: var(--text-3); font-size: .7rem; font-weight: 600; }

.review-form-wrapper {
  padding: 0 2px;
}
.review-form { display: flex; flex-direction: column; gap: 8px; }
.review-form-group { display: flex; flex-direction: column; gap: 4px; }

.review-form-group label { font-size: .72rem; font-weight: 750; color: var(--text-2); }
.required { color: var(--sp); }

.review-form-group:first-of-type { align-items: center; text-align: center; }
.review-rating-stars-input { display: flex; justify-content: center; gap: 8px; direction: ltr; width: 100%; }
.review-rating-caption { color: var(--text-3); font-size: .66rem; font-weight: 700; }

.review-star-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  width: 42px;
  height: 42px;
  font-size: 1.55rem;
  cursor: pointer;
  color: #c7cbd1;
  padding: 0;
  transition: transform .15s;
}

.review-star-btn::before {
  content: '';
  width: 34px;
  height: 34px;
  background: url('/build/ui/premium-gold-star-3d.png') center / contain no-repeat;
  filter: grayscale(1);
  opacity: .24;
  transform: translateZ(0);
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}
.review-star-btn::after { display: none; }
.review-star-btn:hover::before { transform: translateY(-1px) scale(1.06); }
.review-star-btn.active::before {
  filter: saturate(1.12) contrast(1.04) drop-shadow(0 3px 3px rgba(183, 117, 0, .22));
  opacity: 1;
}

.review-form-input, .review-form-textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  color: var(--text-1);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: white;
}

.review-form-input:focus, .review-form-textarea:focus {
  border-color: var(--sp);
  box-shadow: 0 0 0 3px rgba(230,73,128,.1);
}

.review-form-textarea { resize: vertical; min-height: 76px; }
.review-form-hint { font-size: .78rem; color: var(--text-3); }
.review-form-error-text { font-size: .8rem; color: #dc2626; font-weight: 600; }

.review-form-submit {
  padding: 10px 22px;
  background: var(--sp-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  align-self: flex-start;
  box-shadow: none;
}

.review-form-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230,73,128,.38); }

.review-form-login-prompt {
  padding: 10px 12px;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  text-align: right;
  font-size: .76rem;
  color: var(--text-2);
}

.review-form-login-prompt p { margin: 0; }

.review-form-login-prompt a { color: var(--sp); font-weight: 700; }

/* Individual reviews */
.individual-reviews { display: flex; flex-direction: column; gap: 0; }

.review-item {
  background: white;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  padding: 14px 2px;
  transition: box-shadow .2s;
}

.review-item:hover { background: #fcfcfd; }

.reviews-empty-list {
  padding: 9px 2px 0;
  color: var(--text-3);
  font-size: .72rem;
  font-weight: 600;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-author { font-size: .9rem; font-weight: 800; color: var(--text-1); }
.review-date   { font-size: .76rem; color: var(--text-3); }
.review-rating { font-size: .88rem; margin-bottom: 5px; letter-spacing: 1px; }
.review-title  { font-size: .9rem; font-weight: 800; color: var(--text-1); margin-bottom: 6px; }
.review-content{ font-size: .88rem; color: var(--text-2); line-height: 1.85; }

.review-admin-reply {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f0f9ff;
  border-radius: 10px;
  border-right: 3px solid var(--sb);
}

.review-admin-reply strong { font-size: .82rem; color: var(--sb-dark); }
.review-admin-reply p { margin: 6px 0 0; font-size: .85rem; color: var(--text-2); }
.review-admin-reply-date { font-size: .75rem; color: var(--text-3); }

.text-center { text-align: center; }

/* ══════════════════════════════════════════
   SHIPPING & FAQ (same tab)
══════════════════════════════════════════ */
.product-shipping-info { display: flex; flex-direction: column; gap: 12px; }
.shipping-info-title { font-size: .9rem; font-weight: 850; color: var(--text-1); margin: 0; }
.shipping-info-header { min-height: 26px; display: flex; align-items: center; }

.shipping-info-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #edf0f3;
}

.shipping-method {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 2px;
  border-bottom: 1px solid #edf0f3;
}

.shipping-method-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: rgba(230, 73, 128, .08);
  color: var(--sp);
}

.shipping-method-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shipping-method-details h4 {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: .76rem;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 0 2px;
  white-space: nowrap;
}

.shipping-method-details h4 span { color: var(--text-3); font-size: .66rem; font-weight: 650; }

.shipping-method-details p { font-size: .68rem; color: var(--text-3); margin: 0; line-height: 1.65; font-weight: 600; }
.shipping-method-details a { color: var(--sp); font-weight: 700; }

.shipping-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 2px;
}

.shipping-support__copy { display: flex; align-items: center; }
.shipping-support__copy strong { color: var(--text-1); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.shipping-support__actions { display: flex; align-items: center; gap: 6px; }
.shipping-support__actions a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 43px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}
.shipping-support__actions a:active { transform: scale(.96); }
.shipping-support__actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shipping-support__actions span { font-size: .57rem; font-weight: 750; }
.shipping-support__action--call { color: #1677c8; background: #f1f7fd; border-color: #d9eaf8 !important; }
.shipping-support__action--sms { color: var(--sp); background: rgba(230, 73, 128, .07); border-color: rgba(230, 73, 128, .18) !important; }
.shipping-support__action--whatsapp { color: #159447; background: #effbf3; border-color: #d4f1df !important; }
.shipping-support__action--whatsapp svg { fill: currentColor; stroke: none; }

/* FAQ */
.product-faq-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0f3; }
.faq-title { font-size: .78rem; font-weight: 800; color: var(--text-1); margin: 0 0 6px; }
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid #edf0f3;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 42px;
  padding: 9px 2px;
  background: white;
  border: none;
  text-align: right;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-question::after {
  content: '+';
  font-size: 1rem;
  font-weight: 400;
  color: var(--sp);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.active .faq-question { color: var(--sp); }
.faq-item.active .faq-question::after { content: '−'; }

.faq-answer {
  display: none;
  padding: 0 2px 10px;
}

.faq-item.active .faq-answer { display: block; }

.faq-answer p {
  font-size: .68rem;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0;
  padding-top: 2px;
}

/* ══════════════════════════════════════════
   SOCIAL SHARE
══════════════════════════════════════════ */
.product-social-share {
  background: white;
  border-radius: var(--r-card);
  border: 1.5px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

.social-share-title { font-size: .92rem; font-weight: 800; color: var(--text-1); margin: 0 0 14px; }

.social-share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 22px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  transition: transform .2s, box-shadow .2s;
}

.social-share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.social-share-btn.sms      { background: linear-gradient(135deg, var(--sp), var(--sp-dark)); }
.social-share-btn.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.social-share-btn.telegram { background: linear-gradient(135deg, #2aabee, #1a8ad4); }

/* ══════════════════════════════════════════
   2026 PRODUCT DECISION UX
   فروش‌محور، کم‌ارتفاع و مناسب انتخاب سریع ناخن‌کار
══════════════════════════════════════════ */
.product-main-display-wrapper {
  gap: 10px;
  margin-bottom: 14px;
}

.product-header-section {
  margin-top: 6px;
  padding: 12px 14px;
  border-color: #edf0f3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(34, 37, 46, .055);
}

.product-title {
  text-align: right;
  white-space: normal;
  line-height: 1.5;
}

.product-gallery-container {
  padding: 0;
  gap: 8px;
  border-color: #edf0f3;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(34, 37, 46, .055);
  background: #fff;
}

.product-gallery-main {
  width: 100%;
  max-width: 520px;
  padding: 0;
  border: 0;
  border-radius: 15px 15px 10px 10px;
  background: #fff;
}

.product-gallery-main:hover #main-product-image { transform: none; }

.gallery-thumbstrip {
  padding: 0 10px 10px;
}

.product-gallery-thumbnails {
  gap: 7px;
}

.product-gallery-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid #e2e6ea;
  box-shadow: none;
  background: #fff;
}

.product-gallery-thumb.active {
  border-color: var(--sp);
  box-shadow: 0 0 0 2px rgba(230, 73, 128, .10);
}

.product-gallery-thumb img { padding: 0; }

.product-tabs-section {
  border: 1px solid #e8edf1;
  border-radius: 15px;
  box-shadow: 0 5px 18px rgba(34, 37, 46, .05);
  scroll-margin-top: 74px;
}

.product-tabs-nav {
  padding: 0 8px;
  border-color: #edf0f3;
  background: #fff;
}

.product-tab-btn {
  flex: 1 0 auto;
  min-height: 46px;
  padding: 12px 14px;
  font-size: .82rem;
}

.product-tab-content { padding: 20px; }
.tab-description { line-height: 1.95; }
.product-description-lead {
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(38, 169, 229, .2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 251, 255, .98), #fff);
  color: var(--text-1);
  font-weight: 720;
  line-height: 1.95;
}
.tab-description h3 {
  padding: 0 0 8px;
  border-right: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: transparent;
}

.tab-description--collapsible {
  position: relative;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height .5s cubic-bezier(.16, 1, .3, 1),
    margin-top .5s cubic-bezier(.16, 1, .3, 1),
    opacity .24s ease,
    visibility 0s linear .5s;
}

.tab-description--collapsible.is-expanded {
  max-height: var(--description-expanded-height, 4000px);
  margin-top: 18px;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.product-description-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid rgba(230, 73, 128, .28);
  border-radius: 10px;
  background: #fff;
  color: var(--sp-dark);
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
}

.product-description-more[hidden] { display: none; }
.product-description-more__icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  .site-container { padding-inline: 10px; padding-bottom: 132px; }
  .product-main-display-wrapper { gap: 8px; }
  .product-header-section { margin-top: 4px; padding: 10px 12px; }
  .product-header-title-row { gap: 6px; }
  .product-title { font-size: 1rem; text-align: right; }
  .product-title--compact { font-size: .9rem; }
  .product-title--extra-compact { font-size: .8rem; }
  .product-gallery-section { position: static; }
  .product-gallery-main { aspect-ratio: 1 / 1; }
  .product-gallery-container { padding: 0; }
  .gallery-thumbstrip { padding: 0 8px 8px; }

  .product-tabs-nav { padding: 0; scroll-snap-type: x proximity; }
  .product-tab-btn { flex: 0 0 auto; min-height: 44px; padding: 11px 13px; scroll-snap-align: start; }
  .product-tab-content { padding: 15px 13px; }
  .tab-description { font-size: .84rem; line-height: 1.9; }
  .tab-description h3 { margin-bottom: 9px; }

  .product-description-lead {
    padding: 10px 12px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.75;
  }
  .spec-list {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 0;
  }
  .spec-item {
    min-height: 38px;
    height: 38px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 2px;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    border-radius: 0;
  }
  .spec-item:last-child { border-bottom: 0; }
  .spec-label {
    flex: 0 0 auto;
    font-size: .67rem;
  }
  .spec-value {
    max-width: 68%;
    margin-right: auto;
    font-size: .73rem;
    line-height: 1.55;
    text-align: left;
  }
  .sticky-purchase-bar { bottom: 102px; padding: 0 9px; }
  .sticky-bar__inner {
    min-height: 50px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .sticky-bar__btn { min-height: 38px; padding-block: 7px; }
  .sticky-bar__wish { width: 38px; height: 38px; }
  .sticky-bar__price { font-size: clamp(.78rem, 3.2vw, .9rem); }
  .ssw-fab { bottom: calc(102px + var(--shelby-buybar-h) + 12px) !important; }
  #back-to-top { bottom: calc(102px + var(--shelby-buybar-h) + 16px) !important; }
}


/* ══════════════════════════════════════════
   RELATED / RECENTLY VIEWED STRIPS
   — matches home page best-selling / newest UI
══════════════════════════════════════════ */
.related-products-strip,
.recently-viewed-strip {
  padding: 12px 0;
}

/* Strip header: title + view-all side by side */
.strip-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px 0;
}

.strip-header-row .section-title {
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
  direction: rtl;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.strip-header-row .section-title--accent { color: #0f172a; }

.section-title__sparkle {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
}

.section-strip__view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--sp);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}

.section-strip__view-all:hover { color: var(--sp-dark); }

/* ── Panel wrappers ── */
.related-products-strip .home-product-strip-panel,
.recently-viewed-strip .home-product-strip-panel {
  position: relative;
  border-radius: 22px;
  padding: 20px 18px 16px;
  overflow: hidden;
}

.related-products-strip .home-product-strip-panel {
  background: linear-gradient(155deg, #fff8f2 0%, #fff2f8 55%, #fff0f5 100%);
  border: 1.5px solid rgba(249, 126, 159, 0.22);
  box-shadow: 0 4px 24px rgba(249, 126, 159, 0.13), 0 1px 4px rgba(0,0,0,0.04);
}

.related-products-strip .home-product-strip-panel::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(249,126,159,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.recently-viewed-strip .home-product-strip-panel {
  background: linear-gradient(155deg, #fff8fb 0%, #fce7f3 55%, #fff2f8 100%);
  border: 1.5px solid rgba(249, 126, 159, 0.22);
  box-shadow: 0 4px 24px rgba(249, 126, 159, 0.13), 0 1px 4px rgba(0,0,0,0.04);
}

.recently-viewed-strip .home-product-strip-panel::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(249,126,159,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Product Ribbon ── */
.product-ribbon {
  display: flex;
  align-items: stretch;
  gap: 12px;
  position: relative;
  margin: 0 -4px;
  direction: ltr;
}

.product-ribbon__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.product-ribbon__track {
  display: flex;
  flex-direction: row-reverse;
  gap: 24px;
  width: 100%;
  min-width: 0;
  padding: 6px 4px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  direction: ltr;
  scrollbar-width: thin;
  scrollbar-color: rgba(249,126,159,0.45) transparent;
  cursor: grab;
}

.product-ribbon__track.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.product-ribbon__track.is-dragging * { pointer-events: none; }
.product-ribbon__track::-webkit-scrollbar { height: 6px; }
.product-ribbon__track::-webkit-scrollbar-thumb { background: rgba(249,126,159,0.4); border-radius: 999px; }

.product-ribbon__cell {
  flex: 0 0 min(300px, 82vw);
  min-width: min(300px, 82vw);
  max-width: min(300px, 82vw);
  direction: rtl;
}

.product-ribbon--compact .product-ribbon__track { gap: 10px; padding-bottom: 12px; }

.product-ribbon--compact .product-ribbon__cell {
  flex: 0 0 clamp(166px, 22vw, 200px);
  min-width: clamp(166px, 22vw, 200px);
  max-width: clamp(166px, 22vw, 200px);
}

.product-ribbon__cell .product-card { width: 100%; height: 100%; }

.product-ribbon__arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  align-self: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #4a5568;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .2s ease, box-shadow .2s ease, border-color .2s ease;
  z-index: 2;
}

.product-ribbon__arrow:hover:not(:disabled) { color: #f97e9f; border-color: #f9c4d4; box-shadow: 0 4px 14px rgba(249,126,159,0.2); }
.product-ribbon__arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }

.related-products-strip .product-ribbon__arrow,
.recently-viewed-strip .product-ribbon__arrow { display: none; }

.related-products-strip .product-ribbon,
.recently-viewed-strip .product-ribbon { margin: 0; gap: 0; }

.related-products-strip .product-ribbon__track,
.recently-viewed-strip .product-ribbon__track { padding-left: 0; padding-right: 0; gap: 10px; }

/* ── Home Strip Card ── */
.home-strip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}

.home-strip-card:hover {
  border-color: rgba(249,126,159,0.4);
  box-shadow: 0 8px 28px rgba(249,126,159,0.2), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}

.home-strip-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 155px;
  background: linear-gradient(145deg, #fdf8fc, #f8f9ff);
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}

.home-strip-card__media img {
  max-width: 90%; max-height: 138px;
  width: auto; height: auto;
  object-fit: contain; display: block;
  transition: transform .3s ease;
}

.home-strip-card:hover .home-strip-card__media img { transform: scale(1.05); }

.home-strip-card__media-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  color: #e2e8f0;
}

.home-strip-card__sale-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: .68rem; font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(220,38,38,0.4);
  direction: ltr;
}

.home-strip-card__oos-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
  color: #94a3b8;
  z-index: 3;
}

.home-strip-card__body {
  padding: 10px 11px 11px;
  flex: 1;
  display: flex; flex-direction: column;
  gap: 7px;
  text-align: right;
  direction: rtl;
}

.home-strip-card__title {
  margin: 0;
  font-size: .83rem; font-weight: 700;
  line-height: 1.38; color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.home-strip-card__title a { color: inherit; text-decoration: none; transition: color .15s; }
.home-strip-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.home-strip-card__title a:hover { color: #e84c87; }

.home-strip-card__pricing {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-top: auto;
}

.home-strip-card__old { text-decoration: line-through; color: #94a3b8; font-size: .72rem; font-weight: 500; direction: ltr; }
.home-strip-card__price-row { display: flex; align-items: baseline; gap: 3px; direction: ltr; }
.home-strip-card__price { font-weight: 800; font-size: .96rem; color: #0f172a; letter-spacing: -.025em; }
.home-strip-card__currency { font-size: .7rem; font-weight: 600; color: #64748b; }

.home-strip-card__add-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 10px;
  background: linear-gradient(135deg, #f97e9f 0%, #e84c87 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .8rem; font-weight: 700;
  cursor: pointer;
  transition: all .22s ease;
  box-shadow: 0 3px 10px rgba(232,76,135,0.32);
  direction: rtl;
  position: relative; z-index: 2;
  flex-shrink: 0;
}

.home-strip-card__add-btn:hover { background: linear-gradient(135deg, #e84c87 0%, #c8185e 100%); box-shadow: 0 5px 16px rgba(232,76,135,0.48); transform: translateY(-1px); }
.home-strip-card__add-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(232,76,135,0.3); }
.home-strip-card__add-btn:disabled { opacity: .75; cursor: wait; }
.home-strip-card__add-btn svg { flex-shrink: 0; opacity: .9; }

.home-strip-card__oos-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 8px 10px;
  background: #f1f5f9; color: #94a3b8;
  border-radius: 10px;
  font-size: .76rem; font-weight: 600;
  direction: rtl; text-align: center;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .site-container { padding: 0 14px 100px; }
  .product-tabs-nav { padding: 0 8px; }
  .product-tab-btn { padding: 12px 14px; font-size: .84rem; }
  .product-tab-content { padding: 18px 16px; }
  .current-price .product-price-amount { font-size: 1.55rem; }
  .shipping-info-content { grid-template-columns: 1fr; }
  .reviews-summary {
    padding-bottom: 10px;
  }
  .reviews-rating-overview {
    display: block;
    padding: 8px 10px;
    border: 1px solid #edf0f3;
    border-radius: 12px;
    background: #fffafb;
  }
  .reviews-average-score {
    min-width: 0;
    padding: 0;
    border: 0;
    flex-direction: row;
    gap: 8px;
  }
  .reviews-average-number {
    font-size: 1rem;
  }
  .reviews-stars-display {
    font-size: .7rem;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .reviews-total-count {
    font-size: .68rem;
  }
  .reviews-rating-breakdown { display: none; }
  .reviews-empty-summary { display: block; }
  .reviews-empty-summary span { display: block; margin-top: 3px; }
  .review-form {
    display: flex;
    gap: 9px 10px;
  }
  .review-compose__header { display: block; }
  .review-compose__header span { display: block; margin-top: 2px; }
  .review-form-group label { font-size: .72rem; }
  .review-rating-stars-input { min-height: 44px; align-items: center; gap: 6px; }
  .review-star-btn { width: 48px; height: 44px; font-size: 1.65rem; }
  .review-form-input,
  .review-form-textarea { padding: 8px 10px; border-width: 1px; border-radius: 8px; font-size: .78rem; }
  .review-form-input { min-height: 36px; }
  .review-form-textarea { height: 64px; min-height: 64px; font-size: .74rem; line-height: 1.65; }
  .review-form-textarea::placeholder { font-size: .72rem; }
  .review-form-submit { width: 100%; min-height: 44px; padding: 10px 22px; border-radius: 9px; box-shadow: none; }
  .product-social-share {
    width: calc(100% - 28px);
    max-width: 320px;
    box-sizing: border-box;
    justify-self: center;
    margin-inline: auto;
    padding: 10px 12px;
    border-width: 1px;
    border-radius: 13px;
    box-shadow: 0 2px 9px rgba(34, 37, 46, .04);
  }
  .social-share-title {
    margin-bottom: 8px;
    font-size: .78rem;
  }
  .social-share-buttons {
    gap: 6px;
    flex-wrap: nowrap;
  }
  .social-share-btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    gap: 0;
    padding: 6px 7px;
    border-radius: 17px;
    font-size: .71rem;
  }

  .related-products-strip .home-product-strip-panel,
  .recently-viewed-strip .home-product-strip-panel { border-radius: 18px; padding: 16px 12px 12px; }

  .product-ribbon--compact .product-ribbon__cell {
    flex-basis: clamp(156px, 48vw, 190px);
    min-width: clamp(156px, 48vw, 190px);
    max-width: clamp(156px, 48vw, 190px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .product-gallery-section { position: static; }
}

/* ══════════════════════════════════════════
   PRODUCT PREV / NEXT — نوار افقیِ درون‌جریان (inline)، بالای بخشِ تب‌ها
   (همان دسته، بر اساس عدد SKU)
══════════════════════════════════════════ */
/* display:flex با !important چون قانون سراسریِ .site-container > * آن را به block !important می‌برد */
.site-container > .product-side-nav {
  direction: rtl;
  display: flex !important;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  width: 100% !important;
  max-width: 1100px;
  margin: 6px auto 22px;       /* فاصله از گالریِ بالا و تب‌های پایین */
  padding: 0;
  clear: none !important;
  float: none !important;
}

.pnav__btn {
  flex: 1 1 0;                  /* دو دکمه هم‌عرض، نوارِ دوتکهٔ یکدست */
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(200%);
  backdrop-filter: blur(22px) saturate(200%);
  border: 1.5px solid var(--sb);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(26,19,26,.16), inset 0 1px 1px rgba(255,255,255,.9);
  transition: background .22s ease, box-shadow .22s ease, transform .18s ease;
}
/* محتوا به سمت لبهٔ بیرونی (فلش‌ها کنارهٔ صفحه) */
.pnav__btn--prev { justify-content: flex-start; }   /* rtl: start = راست */
.pnav__btn--next { justify-content: flex-end; }      /* rtl: end = چپ */

/* «رنگ بعدی» = تمِ صورتیِ برند (قاب/فلش/برچسب) به‌جای آبی، برای تفکیک بصری */
.pnav__btn--next {
  border-color: var(--sp);
  box-shadow: 0 6px 20px rgba(230,73,128,.18), inset 0 1px 1px rgba(255,255,255,.9);
}
.pnav__btn--next .pnav__arrow,
.pnav__btn--next .pnav__label { color: var(--sp-dark); }

/* تک‌دکمه (فقط «رنگ قبلی» یا فقط «رنگ بعدی»): قابِ ترکیبیِ صورتی↔آبی به‌جای تک‌رنگ.
   بعد از قانونِ --next می‌آید تا روی هر دو حالت غالب شود (هم‌وزنِ specificity). */
.pnav__btn:only-of-type {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 100%) padding-box,
    linear-gradient(125deg, var(--sp) 0%, #b39ad6 52%, var(--sb) 100%) border-box;
  box-shadow: 0 6px 20px rgba(26,19,26,.16), inset 0 1px 1px rgba(255,255,255,.9);
}

.pnav__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sb-dark);
  transition: color .22s ease;
}
.pnav__arrow svg { width: 22px; height: 22px; }

.pnav__thumb {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--sp-lighter);
  border: 1px solid var(--border);
}
.pnav__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pnav__meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pnav__btn--prev .pnav__meta { text-align: right; }
.pnav__btn--next .pnav__meta { text-align: left; }
.pnav__label { font-size: .66rem; font-weight: 800; color: var(--sb-dark); transition: color .22s ease; }
.pnav__name {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-1);
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .22s ease;
}
.pnav__code { color: var(--sb-dark); font-weight: 850; font-variant-numeric: tabular-nums; }
.pnav__shade { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* دسکتاپ: روی هاور/فوکوس، قاب آبیِ برند پر می‌شود */
@media (hover: hover) and (min-width: 1024px) {
  .pnav__btn:hover,
  .pnav__btn:focus-visible {
    background: linear-gradient(135deg, var(--sb) 0%, var(--sb-dark) 100%);
    box-shadow: 0 10px 26px rgba(30,136,201,.40), inset 0 1px 1px rgba(255,255,255,.55);
    transform: translateY(-1px);
  }
  .pnav__btn:hover .pnav__arrow,
  .pnav__btn:focus-visible .pnav__arrow,
  .pnav__btn:hover .pnav__label,
  .pnav__btn:focus-visible .pnav__label,
  .pnav__btn:hover .pnav__name,
  .pnav__btn:focus-visible .pnav__name { color: #fff; }

  /* «رنگ بعدی»: هاورِ صورتی (بعد از قانون آبی تا غالب شود) */
  .pnav__btn--next:hover,
  .pnav__btn--next:focus-visible {
    background: linear-gradient(135deg, var(--sp) 0%, var(--sp-dark) 100%);
    box-shadow: 0 10px 26px rgba(230,73,128,.40), inset 0 1px 1px rgba(255,255,255,.55);
  }
}

/* موبایل/تبلت: نام بلند حذف می‌شود؛ عکس + برچسب + فلش (جمع‌وجور و واضح) */
@media (max-width: 1023px) {
  .site-container > .product-side-nav { gap: 10px; }
  .pnav__name { display: none; }
  .pnav__btn { padding: 7px 11px; gap: 7px; background: #fff; box-shadow: 0 4px 14px rgba(26,19,26,.14); }
  .pnav__thumb { width: 38px; height: 38px; }
  .pnav__arrow svg { width: 20px; height: 20px; }
  .pnav__btn:active {
    background: linear-gradient(135deg, var(--sb) 0%, var(--sb-dark) 100%);
    transform: scale(.97);
  }
  .pnav__btn:active .pnav__arrow,
  .pnav__btn:active .pnav__label { color: #fff; }
  .pnav__btn:active .pnav__thumb { border-color: #fff; }
  /* «رنگ بعدی»: فشارِ صورتی */
  .pnav__btn--next:active { background: linear-gradient(135deg, var(--sp) 0%, var(--sp-dark) 100%); }
}

/* ══════════════════════════════════════════
   نسخهٔ موبایلِ ناوبری رنگ — داخل کارت عنوان، زیر عنوان محصول
══════════════════════════════════════════ */
/* پیش‌فرض (دسکتاپ/تبلت ≥768px): نسخهٔ داخل عنوان مخفی، نسخهٔ مستقلِ پایین نمایش داده می‌شود */
.product-header-section .product-side-nav--inheader {
  direction: rtl;
  display: none;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
}

@media (max-width: 767px) {
  /* موبایل: ناوبری داخل عنوان فعال، نسخهٔ مستقلِ پایین مخفی */
  .product-header-section .product-side-nav--inheader {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 10px;
    padding: 4px;
    border: 1px solid rgba(91,194,231,.18);
    border-radius: 15px;
    background: #fff;
  }
  .product-header-section .product-side-nav--inheader .pnav__btn {
    min-width: 0;
    padding: 6px 7px;
    gap: 5px;
    border: 0;
    border-radius: 11px;
    box-shadow: none;
    background: transparent;
  }
  .product-header-section .product-side-nav--inheader .pnav__btn--prev {
    background: rgba(91,194,231,.075);
  }
  .product-header-section .product-side-nav--inheader .pnav__btn--next {
    background: rgba(232,76,135,.07);
  }
  .product-header-section .product-side-nav--inheader .pnav__thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .product-header-section .product-side-nav--inheader .pnav__arrow svg {
    width: 17px;
    height: 17px;
  }
  .product-header-section .product-side-nav--inheader .pnav__meta {
    flex-direction: row;
    align-items: center;
    gap: 4px;
    overflow: hidden;
    white-space: nowrap;
  }
  .product-header-section .product-side-nav--inheader .pnav__label { flex: 0 0 auto; font-size: .58rem; }
  .product-header-section .product-side-nav--inheader .pnav__name {
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    font-size: .65rem;
  }
  .product-header-section .product-side-nav--inheader .pnav__code {
    color: #1a1a2e;
    font-size: .72rem;
    line-height: 1;
  }
  .site-container > .product-side-nav--standalone { display: none !important; }
}

/* ══════════════════════════════════════════
   PRODUCT DISCOVERY STRIPS — modern horizontal showcase
══════════════════════════════════════════ */
.related-products-strip,
.recently-viewed-strip {
  padding: 24px 0 18px;
  background: #fff !important;
}

.related-products-strip + .recently-viewed-strip { padding-top: 28px; }

.related-products-strip .container,
.recently-viewed-strip .container {
  max-width: 1240px;
}

.strip-header-row {
  align-items: flex-end;
  margin-bottom: 6px;
  padding-inline: 4px;
}

.strip-header-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.strip-header-row .section-title {
  gap: 6px;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
}

.section-title__sparkle {
  color: var(--sp);
  font-size: .72rem;
}

.strip-header-subtitle {
  color: #7b8491;
  font-size: .72rem;
  line-height: 1.5;
}

.section-strip__view-all {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-1);
  font-size: .74rem;
}

.section-strip__view-all:hover {
  color: var(--sp-dark);
}

.related-products-strip .home-product-strip-panel,
.recently-viewed-strip .home-product-strip-panel {
  padding: 11px 8px 17px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  overflow: visible;
}

.related-products-strip .home-product-strip-panel::before,
.recently-viewed-strip .home-product-strip-panel::before { display: none; }

.related-products-strip .product-ribbon__viewport,
.recently-viewed-strip .product-ribbon__viewport {
  overflow: visible;
}

.related-products-strip .product-ribbon__track,
.recently-viewed-strip .product-ribbon__track {
  flex-direction: row;
  direction: rtl;
  gap: 14px;
  padding: 5px 6px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.related-products-strip .product-ribbon__track::-webkit-scrollbar,
.recently-viewed-strip .product-ribbon__track::-webkit-scrollbar { display: none; }

.related-products-strip .product-ribbon__cell,
.recently-viewed-strip .product-ribbon__cell {
  flex: 0 0 clamp(190px, 22vw, 224px);
  min-width: clamp(190px, 22vw, 224px);
  max-width: clamp(190px, 22vw, 224px);
  scroll-snap-align: start;
}

.related-products-strip .home-strip-card,
.recently-viewed-strip .home-strip-card {
  border: 0;
  border-radius: 15px;
  box-shadow:
    0 2px 0 rgba(15, 23, 42, .05),
    0 8px 12px -7px rgba(15, 23, 42, .20),
    0 18px 28px -20px rgba(15, 23, 42, .42),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(15,23,42,.04);
  transform: translate3d(0, -2px, 0);
}

.related-products-strip .home-strip-card:hover,
.recently-viewed-strip .home-strip-card:hover {
  box-shadow: 0 3px 0 rgba(15,23,42,.05), 0 14px 22px -12px rgba(15,23,42,.28), 0 24px 36px -24px rgba(15,23,42,.42);
  transform: translate3d(0, -5px, 0);
}

.related-products-strip .home-strip-card__media,
.recently-viewed-strip .home-strip-card__media {
  height: 176px;
  margin: 8px 8px 0;
  border: 0;
  border-radius: 13px;
  background: #fff;
}

.related-products-strip .home-strip-card__media img,
.recently-viewed-strip .home-strip-card__media img {
  max-width: 94%;
  max-height: 164px;
}

.related-products-strip .home-strip-card__body,
.recently-viewed-strip .home-strip-card__body {
  gap: 8px;
  padding: 11px 12px 12px;
}

.related-products-strip .home-strip-card__title,
.recently-viewed-strip .home-strip-card__title {
  min-height: 0;
  color: #141b2a;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.6;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-products-strip .home-strip-card__title a,
.recently-viewed-strip .home-strip-card__title a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.related-products-strip .home-strip-card__pricing,
.recently-viewed-strip .home-strip-card__pricing { align-items: flex-start; }

.related-products-strip .home-strip-card__price,
.recently-viewed-strip .home-strip-card__price { font-size: 1rem; }

.related-products-strip .home-strip-card__actions,
.recently-viewed-strip .home-strip-card__actions {
  display: block;
}

.related-products-strip .home-strip-card__add-btn,
.recently-viewed-strip .home-strip-card__add-btn {
  min-height: 40px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(230,73,128,.24);
}

.related-products-strip .home-strip-card__wish-btn,
.recently-viewed-strip .home-strip-card__wish-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 767px) {
  .product-page-container { padding-bottom: 8px; }
  .related-products-strip,
  .recently-viewed-strip { padding-block: 4px 8px; }
  .recently-viewed-strip { padding-bottom: 0; }
  .related-products-strip + .recently-viewed-strip { padding-top: 14px; }
  .related-products-strip .container,
  .recently-viewed-strip .container { padding-inline: 10px; }
  .strip-header-row { align-items: center; margin-bottom: 4px; }
  .strip-header-row .section-title { gap: 4px; font-size: .82rem; font-weight: 850; }
  .section-title__sparkle { font-size: .52rem; }
  .section-strip__view-all { min-height: auto; padding: 0; font-size: .68rem; }

  .related-products-strip .home-product-strip-panel,
  .recently-viewed-strip .home-product-strip-panel {
    padding: 7px 0 12px;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
  }
  .recently-viewed-strip .home-product-strip-panel { padding-bottom: 0; }

  .related-products-strip .product-ribbon__track,
  .recently-viewed-strip .product-ribbon__track {
    gap: 9px;
    padding: 4px 8px 10px;
    scroll-padding-inline: 10px;
  }
  .recently-viewed-strip .product-ribbon__track { padding-bottom: 2px; }

  .related-products-strip .product-ribbon__cell,
  .recently-viewed-strip .product-ribbon__cell {
    flex: 0 0 calc((100vw - 46px) / 2.5);
    min-width: calc((100vw - 46px) / 2.5);
    max-width: calc((100vw - 46px) / 2.5);
  }

  .related-products-strip .home-strip-card,
  .recently-viewed-strip .home-strip-card {
    background: #fff;
    box-shadow:
      0 2px 0 rgba(15, 23, 42, .045),
      0 10px 18px -10px rgba(15, 23, 42, .28),
      0 22px 32px -24px rgba(15, 23, 42, .48),
      inset 0 1px 0 rgba(255, 255, 255, .98);
    transform: translate3d(0, -3px, 0);
  }

  .related-products-strip .home-strip-card__media,
  .recently-viewed-strip .home-strip-card__media { height: 98px; margin: 4px 4px 0; }
  .related-products-strip .home-strip-card__media img,
  .recently-viewed-strip .home-strip-card__media img { max-height: 92px; }
  .related-products-strip .home-strip-card__title,
  .recently-viewed-strip .home-strip-card__title { min-height: 0; font-size: .68rem; line-height: 1.4; text-align: center; }
  .related-products-strip .home-strip-card__body,
  .recently-viewed-strip .home-strip-card__body { gap: 4px; padding: 6px; }
  .related-products-strip .home-strip-card__pricing,
  .recently-viewed-strip .home-strip-card__pricing { align-items: center; }
  .related-products-strip .home-strip-card__price,
  .recently-viewed-strip .home-strip-card__price { font-size: .78rem; }
  .related-products-strip .home-strip-card__currency,
  .recently-viewed-strip .home-strip-card__currency { font-size: .56rem; }
  .related-products-strip .home-strip-card__add-btn,
  .recently-viewed-strip .home-strip-card__add-btn { min-height: 30px; height: 30px; padding: 0 5px; font-size: .7rem; }
  .related-products-strip .home-strip-card__add-btn svg,
  .recently-viewed-strip .home-strip-card__add-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 340px) {
  .related-products-strip .product-ribbon__cell,
  .recently-viewed-strip .product-ribbon__cell {
    flex-basis: calc((100vw - 46px) / 2.5);
    min-width: calc((100vw - 46px) / 2.5);
    max-width: calc((100vw - 46px) / 2.5);
  }
  .section-strip__view-all svg { display: none; }
}

/* فوتر صفحه محصول: کارت سفید شناور، بدون خط و قاب رنگی */
.site-footer--compact-store .sf-compact {
  border: 0;
  background: #fff !important;
  box-shadow:
    0 3px 0 rgba(15, 23, 42, .035),
    0 12px 22px -14px rgba(15, 23, 42, .24),
    0 26px 44px -30px rgba(15, 23, 42, .38),
    inset 0 1px 0 rgba(255,255,255,.98);
  transform: translateY(-3px);
}

.site-footer--compact-store .sf-compact__head {
  border: 0;
  background: transparent !important;
}

.site-footer--compact-store .sf-compact__contact {
  border: 0;
  background: #fff;
  box-shadow: 0 7px 18px -12px rgba(15, 23, 42, .30);
}

.site-footer--compact-store .sf-compact__lower {
  border-top: 0;
  padding-top: 4px;
}

.site-footer--compact-store .sf-compact__social,
.site-footer--compact-store .sf-compact__badges img {
  border: 0;
}

@media (max-width: 580px) {
  .site-footer--compact-store .sf-compact {
    margin-top: 14px;
    border-radius: 16px;
  }
}

/* فوتر فروشگاه: کنسول پشتیبانی سه‌بعدی و منظم */
.site-footer.site-footer--compact-store {
  overflow: visible;
  background:
    radial-gradient(circle at 88% 4%, rgba(229, 65, 125, .10), transparent 32%),
    radial-gradient(circle at 8% 92%, rgba(57, 181, 225, .12), transparent 34%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%) !important;
  border-radius: 28px 28px 0 0;
  perspective: 1200px;
}

.site-footer--compact-store .sf-compact {
  position: relative;
  isolation: isolate;
  margin: 20px 0 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .96);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(246,248,252,.92)) !important;
  box-shadow:
    0 2px 0 #fff,
    0 8px 0 rgba(207, 214, 225, .58),
    0 22px 36px -20px rgba(35, 42, 58, .42),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(185, 195, 210, .22);
  transform: translateY(-8px) rotateX(.45deg);
  transform-origin: center bottom;
}

.site-footer--compact-store .sf-compact::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px 18px -15px;
  border-radius: 24px;
  background: rgba(80, 93, 117, .20);
  filter: blur(18px);
}

.site-footer--compact-store .sf-compact__head {
  position: relative;
  min-height: 82px;
  margin: 0 0 12px;
  padding: 15px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.94);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,255,255,.92), transparent 23%),
    linear-gradient(120deg, rgba(226,244,253,.95), rgba(255,238,246,.88)) !important;
  box-shadow:
    0 7px 0 rgba(212, 222, 234, .42),
    0 15px 26px -18px rgba(44, 52, 70, .48),
    inset 0 1px 0 #fff;
}

.site-footer--compact-store .sf-compact__head::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  left: -38px;
  top: -72px;
  border-radius: 50%;
  border: 22px solid rgba(255,255,255,.34);
  pointer-events: none;
}

.site-footer--compact-store .sf-compact__intro { position: relative; z-index: 1; }
.site-footer--compact-store .sf-compact__eyebrow {
  margin-bottom: 3px;
  color: #147fb9;
  font-size: .68rem;
  letter-spacing: -.01em;
}
.site-footer--compact-store .sf-compact__head h2 {
  font-size: 1.06rem;
  line-height: 1.45;
}
.site-footer--compact-store .sf-compact__intro p {
  margin: 3px 0 0;
  color: #777280;
  font-size: .68rem;
  font-weight: 650;
}
.site-footer--compact-store .sf-compact__hours span { display: inline; }
.site-footer--compact-store .sf-compact__head-logo {
  position: relative;
  z-index: 1;
  width: 94px;
  height: 52px;
  flex-basis: 94px;
  border: 1px solid rgba(255,255,255,.96);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 6px 0 rgba(195,205,219,.35), 0 12px 22px -15px rgba(34,43,61,.5), inset 0 1px 0 #fff;
}

.site-footer--compact-store .sf-compact__contacts { gap: 10px; }
.site-footer--compact-store .sf-compact__contact {
  position: relative;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(218,224,233,.78);
  border-bottom-color: rgba(190,199,212,.92);
  border-radius: 16px;
  background: linear-gradient(150deg, #fff, #f7f9fc);
  box-shadow: 0 5px 0 rgba(207,214,225,.62), 0 13px 20px -17px rgba(30,38,54,.55), inset 0 1px 0 #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}
.site-footer--compact-store a.sf-compact__contact:hover {
  color: #28212d;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(207,214,225,.62), 0 16px 23px -17px rgba(30,38,54,.6), inset 0 1px 0 #fff;
}
.site-footer--compact-store a.sf-compact__contact:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(207,214,225,.7); }
.site-footer--compact-store .sf-compact__icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(198,207,219,.42), 0 8px 13px -10px rgba(30,38,54,.6), inset 0 1px 0 #fff;
}
.site-footer--compact-store .sf-compact__contact small { color: #817c87; font-size: .64rem; }
.site-footer--compact-store .sf-compact__contact strong { font-size: .82rem; }

.site-footer--compact-store .sf-compact__lower {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid rgba(220,225,233,.74);
  border-radius: 16px;
  background: rgba(255,255,255,.64);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px -12px rgba(31,40,57,.5);
}
.site-footer--compact-store .sf-compact__social {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: 0 4px 0 rgba(205,213,224,.48), 0 9px 14px -12px rgba(35,42,58,.6), inset 0 1px 0 #fff;
}
.site-footer--compact-store .sf-compact__social:hover { transform: translateY(-2px); }
.site-footer--compact-store .sf-compact__trust-label { line-height: 1.45; text-align: right; }
.site-footer--compact-store .sf-compact__badges img {
  height: 42px;
  border: 1px solid rgba(221,226,234,.84);
  background: linear-gradient(145deg, #fff, #f5f7fa);
  box-shadow: 0 3px 0 rgba(205,213,224,.48), 0 8px 13px -12px rgba(35,42,58,.55);
}
.site-footer--compact-store .sf-compact__copyright { margin-top: 11px; color: #99939e; }

@media (max-width: 580px) {
  .site-footer.site-footer--compact-store { border-radius: 22px 22px 0 0; }
  .site-footer--compact-store .sf-wrap { padding: 0 12px; }
  .site-footer--compact-store .sf-compact { margin-top: 16px; padding: 11px; border-radius: 20px; transform: translateY(-6px); }
  .site-footer--compact-store .sf-compact__head { min-height: 72px; margin-bottom: 11px; padding: 11px 12px; border-radius: 15px; }
  .site-footer--compact-store .sf-compact__head h2 { font-size: .93rem; }
  .site-footer--compact-store .sf-compact__intro p { font-size: .6rem; }
  .site-footer--compact-store .sf-compact__head-logo { width: 76px; height: 43px; flex-basis: 76px; border-radius: 13px; }
  .site-footer--compact-store .sf-compact__head-logo img { height: 28px; }
  .site-footer--compact-store .sf-compact__contacts { gap: 8px; }
  .site-footer--compact-store .sf-compact__contact { min-height: 58px; padding: 9px; border-radius: 14px; }
  .site-footer--compact-store .sf-compact__icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
  .site-footer--compact-store .sf-compact__contact strong { font-size: .68rem; }
  .site-footer--compact-store .sf-compact__lower { margin-top: 12px; padding: 9px; gap: 5px; border-radius: 14px; }
  .site-footer--compact-store .sf-compact__socials { gap: 5px; }
  .site-footer--compact-store .sf-compact__social { min-height: 35px; padding: 7px; }
  .site-footer--compact-store .sf-compact__trust { gap: 4px; }
  .site-footer--compact-store .sf-compact__badges { gap: 3px; }
  .site-footer--compact-store .sf-compact__badges img { height: 34px; max-width: 56px; }
  .site-footer--compact-store .sf-compact__copyright { margin-top: 9px; }
}

@media (max-width: 360px) {
  .site-footer--compact-store .sf-compact__intro p { display: none; }
  .site-footer--compact-store .sf-compact__contacts { grid-template-columns: 1fr; }
  .site-footer--compact-store .sf-compact__lower { align-items: flex-start; }
  .site-footer--compact-store .sf-compact__trust-label { display: none; }
}

/* بازنگری نهایی: تمام عمق‌ها داخل قاب و بدون بیرون‌زدگی */
.site-footer.site-footer--compact-store {
  overflow: hidden;
  perspective: none;
}

.site-footer--compact-store .sf-compact {
  overflow: hidden;
  margin: 18px 0 12px;
  padding: 14px;
  border-color: rgba(214, 221, 232, .72);
  background: rgba(255,255,255,.88) !important;
  box-shadow: 0 14px 34px -26px rgba(35,42,58,.42), inset 0 1px 0 #fff;
  transform: none;
}

.site-footer--compact-store .sf-compact::before { display: none; }

.site-footer--compact-store .sf-compact__head {
  min-height: 76px;
  margin-bottom: 10px;
  padding: 13px 15px;
  border-color: rgba(206, 221, 234, .65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 8px 22px -20px rgba(38,48,66,.46);
}

.site-footer--compact-store .sf-compact__head-logo {
  border-color: rgba(205,215,227,.72);
  box-shadow: inset 0 1px 0 #fff, 0 7px 18px -16px rgba(35,42,58,.48);
}

.site-footer--compact-store .sf-compact__head-logo {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: 112px;
  height: 58px;
  flex-basis: 112px;
}
.site-footer--compact-store .sf-compact__head-logo img {
  height: 42px;
  max-width: 108px;
}

.site-footer--compact-store .sf-compact__contacts {
  align-items: stretch;
}

.site-footer--compact-store .sf-compact__contact {
  overflow: hidden;
  min-width: 0;
  border-color: rgba(216,222,231,.78);
  border-bottom-color: rgba(216,222,231,.78);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px -19px rgba(31,40,57,.5);
}

.site-footer--compact-store a.sf-compact__contact:hover {
  transform: none;
  box-shadow: inset 0 1px 0 #fff, 0 9px 22px -19px rgba(31,40,57,.55);
}

.site-footer--compact-store a.sf-compact__contact:active {
  transform: none;
  box-shadow: inset 0 2px 5px rgba(42,51,68,.08);
}

.site-footer--compact-store .sf-compact__icon {
  box-shadow: inset 0 1px 0 #fff;
}

.site-footer--compact-store .sf-compact__lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
  overflow: hidden;
  margin-top: 10px;
  padding: 10px;
  box-shadow: inset 0 1px 0 #fff;
}

.site-footer--compact-store .sf-compact__socials,
.site-footer--compact-store .sf-compact__trust,
.site-footer--compact-store .sf-compact__badges {
  min-width: 0;
}

.site-footer--compact-store .sf-compact__socials {
  justify-content: flex-start;
}

.site-footer--compact-store .sf-compact__social {
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
  transform: none !important;
}

.site-footer--compact-store .sf-compact__trust {
  justify-content: flex-end;
}

.site-footer--compact-store .sf-compact__badges img {
  box-shadow: inset 0 1px 0 #fff;
}

@media (max-width: 580px) {
  .site-footer--compact-store .sf-compact {
    margin-top: 14px;
    padding: 10px;
    border-radius: 18px;
  }
  .site-footer--compact-store .sf-compact__head {
    min-height: 68px;
    padding: 10px 11px;
  }
  .site-footer--compact-store .sf-compact__head-logo {
    width: 92px;
    height: 48px;
    flex-basis: 92px;
  }
  .site-footer--compact-store .sf-compact__head-logo img {
    height: 38px;
    max-width: 90px;
  }
  .site-footer--compact-store .sf-compact__lower {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 9px;
  }
  .site-footer--compact-store .sf-compact__socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .site-footer--compact-store .sf-compact__social {
    width: 100%;
    justify-content: center;
  }
  .site-footer--compact-store .sf-compact__trust {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 7px;
    padding-top: 8px;
    border-top: 1px solid rgba(44,37,48,.07);
  }
  .site-footer--compact-store .sf-compact__trust-label {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.3;
  }
  .site-footer--compact-store .sf-compact__badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    gap: 8px;
  }
  .site-footer--compact-store .sf-compact__badges > * {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    border: 1px solid rgba(216,222,231,.78);
    border-radius: 10px;
    background: rgba(255,255,255,.68);
  }
  .site-footer--compact-store .sf-compact__badges img {
    width: 100%;
    max-width: 66px;
    margin: 0 auto;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .site-footer--compact-store .sf-compact__hours {
    white-space: nowrap;
    font-size: .61rem;
    line-height: 1.45;
  }
}

@media (max-width: 360px) {
  .site-footer--compact-store .sf-compact__lower { align-items: stretch; }
}

/* ══════════════════════════════════════════
   داک یکپارچهٔ خرید و ناوبری صفحهٔ محصول
   فقط روی موبایل و تبلت صفحهٔ محصول فعال است.
══════════════════════════════════════════ */
body.storefront-product-page .site-footer.site-footer--compact-store {
  border-radius: 0;
  background-color: #fff !important;
  background-image: none !important;
}

@media (max-width: 1023px) {
  body.storefront-product-page {
    --product-dock-nav-h: 50px;
    --product-dock-buy-h: 44px;
    --product-dock-side: 8px;
    padding-bottom: calc(
      var(--product-dock-nav-h) +
      var(--product-dock-buy-h) +
      env(safe-area-inset-bottom) +
      8px
    ) !important;
  }

  body.storefront-product-page .sticky-purchase-bar {
    right: var(--product-dock-side);
    bottom: calc(var(--product-dock-nav-h) + env(safe-area-inset-bottom));
    left: var(--product-dock-side);
    width: auto !important;
    padding: 0;
  }

  body.storefront-product-page .sticky-bar__inner {
    width: 100%;
    max-width: none;
    min-height: var(--product-dock-buy-h);
    padding: 3px 6px;
    border: 1px solid rgba(91, 194, 231, .68);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background:
      linear-gradient(112deg, rgba(255, 255, 255, .99) 0%, rgba(255, 255, 255, .94) 44%, rgba(239, 249, 253, .94) 72%, rgba(255, 243, 248, .96) 100%);
    box-shadow:
      0 -15px 34px -20px rgba(31, 53, 74, .58),
      inset 0 1px 0 rgba(255, 255, 255, .98),
      inset 1px 0 0 rgba(255, 255, 255, .72),
      inset -1px 0 0 rgba(255, 255, 255, .72);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
  }

  body.storefront-product-page .sticky-bar__inner::before {
    display: none;
  }

  body.storefront-product-page .sticky-bottom-menu,
  body.storefront-product-page:has(#site-header.scrolled) .sticky-bottom-menu {
    right: var(--product-dock-side);
    bottom: 0;
    left: var(--product-dock-side);
    width: auto;
    height: calc(var(--product-dock-nav-h) + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
    border: 1px solid rgba(91, 194, 231, .62);
    border-top-color: rgba(91, 194, 231, .18);
    border-radius: 0 0 22px 22px;
    background:
      linear-gradient(112deg, rgba(255, 255, 255, .99) 0%, rgba(255, 255, 255, .94) 44%, rgba(239, 249, 253, .94) 72%, rgba(255, 243, 248, .96) 100%) !important;
    box-shadow:
      0 18px 38px -19px rgba(31, 53, 74, .58),
      inset 0 -1px 0 rgba(255, 255, 255, .94);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
  }

  body.storefront-product-page .bottom-menu-item {
    min-height: var(--product-dock-nav-h);
    gap: 0;
    padding: 3px 2px;
    border-top: 0;
  }

  body.storefront-product-page .bottom-menu-icon {
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 10px;
  }

  body.storefront-product-page .bottom-menu-icon svg {
    width: 22px;
    height: 22px;
  }

  body.storefront-product-page .bottom-menu-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
  }

  body.storefront-product-page .bottom-menu-item--seller {
    padding: 3px 2px;
  }

  body.storefront-product-page .seller-orb {
    width: 36px;
    height: 36px;
    margin: 0;
    border-width: 2px;
    box-shadow:
      0 4px 11px rgba(230, 73, 128, .25),
      0 2px 7px rgba(46, 167, 224, .2),
      inset 0 1px 0 rgba(255, 255, 255, .75);
    animation: none;
  }

  body.storefront-product-page .seller-orb::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: -1px;
    z-index: 3;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #16c96b;
    box-shadow: 0 1px 5px rgba(22, 201, 107, .48);
  }

  body.storefront-product-page .bottom-menu-text--seller {
    min-height: 0;
    max-width: none;
    gap: 3px;
    padding: 0;
    color: #283044;
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    animation: none;
  }

  body.storefront-product-page .bottom-menu-text--seller::before {
    width: 5px;
    height: 5px;
  }

  body.storefront-product-page .bottom-menu-item--seller:hover .seller-orb,
  body.storefront-product-page .bottom-menu-item--seller.ssw-open .seller-orb {
    transform: translateY(-1px) scale(1.03);
    box-shadow:
      0 5px 13px rgba(230, 73, 128, .32),
      0 3px 8px rgba(46, 167, 224, .24);
  }

  body.storefront-product-page .cart-badge,
  body.storefront-product-page .wishlist-badge {
    top: 1px;
    right: calc(50% - 15px);
  }

  body.storefront-product-page .sticky-bar__btn {
    position: relative;
    min-height: 36px;
    padding-block: 5px;
    border-radius: 10px;
    font-size: clamp(.72rem, 2.7vw, .84rem);
    font-weight: 850;
    box-shadow:
      0 4px 12px rgba(194, 24, 91, .26),
      inset 0 1px 0 rgba(255, 255, 255, .24);
  }

  body.storefront-product-page .sticky-bar__wish {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  body.storefront-product-page .sticky-bar__btn::after,
  body.storefront-product-page .sticky-bar__wish::after {
    content: "";
    position: absolute;
    inset: -4px;
  }

  body.storefront-product-page .sticky-bar__price-row {
    flex-direction: row;
    align-items: baseline;
    gap: 2px;
    white-space: nowrap;
  }

  body.storefront-product-page .sticky-bar__price {
    font-size: clamp(.74rem, 3vw, .88rem);
    font-weight: 900;
  }

  body.storefront-product-page .sticky-bar__currency {
    font-size: .55rem;
  }

  body.storefront-product-page .ssw-fab {
    bottom: calc(
      var(--product-dock-nav-h) +
      var(--product-dock-buy-h) +
      env(safe-area-inset-bottom) +
      14px
    ) !important;
  }

  body.storefront-product-page #back-to-top {
    bottom: calc(
      var(--product-dock-nav-h) +
      var(--product-dock-buy-h) +
      env(safe-area-inset-bottom) +
      18px
    ) !important;
  }

  /* گالری تمام‌صفحه: داک خرید در دسترس می‌ماند و روی بندانگشتی‌ها نمی‌افتد. */
  body.storefront-product-page #image-zoom-modal.active {
    padding-bottom: calc(
      var(--product-dock-nav-h) +
      var(--product-dock-buy-h) +
      env(safe-area-inset-bottom)
    );
  }

  body.storefront-product-page:has(#image-zoom-modal.active) .sticky-purchase-bar {
    z-index: 10003;
  }

  body.storefront-product-page:has(#image-zoom-modal.active) .sticky-bottom-menu {
    z-index: 10002;
  }
}

@media (max-width: 360px) {
  body.storefront-product-page {
    --product-dock-nav-h: 48px;
    --product-dock-buy-h: 44px;
    --product-dock-side: 6px;
  }

  body.storefront-product-page .sticky-bar__inner {
    min-height: var(--product-dock-buy-h);
    padding: 3px 6px;
  }

  body.storefront-product-page .sticky-bar__btn {
    min-height: 36px;
  }

  body.storefront-product-page .sticky-bar__wish {
    width: 36px;
    height: 36px;
  }

  body.storefront-product-page .seller-orb {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 1024px) {
  body.storefront-product-page #image-zoom-modal.active {
    padding-bottom: var(--shelby-buybar-h);
  }

  body.storefront-product-page:has(#image-zoom-modal.active) .sticky-purchase-bar {
    z-index: 10002;
  }
}
