/* ——— صفحه محصول ——— */
body.product-page {
  --product-surface: #181b22;
  --product-surface-2: #1f232c;
  --product-border: rgba(255, 255, 255, 0.08);
  --product-border-strong: rgba(255, 255, 255, 0.14);
  --product-muted: rgba(235, 238, 245, 0.58);
  --product-accent: #6ee7b7;
  --product-accent-soft: rgba(110, 231, 183, 0.12);
  --product-sale: #f87171;
  --product-link: #93c5fd;
}

body.product-page.brand-page {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100svh;
  font-family: "Peyda", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--text);
  background: #0e1014;
  overflow-x: hidden;
}

body.product-page .bg {
  background:
    radial-gradient(ellipse 90% 55% at 85% -15%, rgba(91, 141, 239, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 5% 105%, rgba(110, 231, 183, 0.05) 0%, transparent 48%),
    #0e1014;
}

body.product-page .store-header {
  border-bottom-color: var(--product-border);
  background: rgba(14, 16, 20, 0.92);
}

body.product-page .store-footer__glow {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(91, 141, 239, 0.08) 0%, transparent 70%);
}

.page-main--product {
  padding-top: 0.5rem;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.product-store {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* breadcrumb */
.product-crumb {
  font-size: 0.75rem;
}

.product-crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--product-muted);
}

.product-crumb__list a {
  color: var(--product-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-crumb__list a:hover {
  color: #bfdbfe;
}

.product-crumb__list [aria-current="page"] {
  color: rgba(235, 238, 245, 0.88);
}

.product-crumb__sep {
  opacity: 0.35;
  user-select: none;
}

/* hero: گالری + پنل خرید */
.product-hero {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.product-hero__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-height: min(72vw, 22rem);
  margin-inline: auto;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(165deg, var(--product-surface-2) 0%, var(--product-surface) 100%);
  border: 1px solid var(--product-border);
  border-radius: 0.85rem;
  overflow: hidden;
}

.product-hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 35%, rgba(91, 141, 239, 0.12) 0%, transparent 58%);
  pointer-events: none;
}

.product-hero__visual.is-out-of-stock::before {
  background: radial-gradient(circle at 50% 35%, rgba(0, 0, 0, 0.25) 0%, transparent 58%);
}

.product-hero__visual .product-stock-overlay {
  z-index: 3;
  border-radius: 0.85rem;
}

.product-hero__visual .product-stock-overlay__text {
  font-size: 1rem;
  padding: 0.5rem 0.85rem;
}

.product-hero__img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 16rem);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  transition: filter 0.25s ease, opacity 0.2s ease;
}

.product-hero__img.is-image-loading,
.product-hero__img:not([src]) {
  opacity: 0;
  visibility: hidden;
}

.product-hero__visual.is-out-of-stock .product-hero__img {
  filter: grayscale(1) brightness(0.4) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.product-hero__tag {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.product-hero__tag--instant {
  inset-inline-start: 0.75rem;
  color: #042f1e;
  background: var(--product-accent);
}

.product-hero__tag--sale {
  inset-inline-end: 0.75rem;
  color: #fff;
  background: var(--product-sale);
}

.product-hero__thumbs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.product-hero__thumb {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.25rem;
  border: 2px solid transparent;
  border-radius: 0.55rem;
  background: var(--product-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-hero__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.35rem;
}

.product-hero__thumb.is-active {
  border-color: rgba(147, 197, 253, 0.55);
  background: var(--product-surface-2);
}

.product-hero__thumb:focus {
  outline: none;
}

.product-hero__thumb:focus-visible {
  outline: 2px solid rgba(110, 231, 183, 0.55);
  outline-offset: 2px;
}

/* پنل خرید */
.product-hero__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--product-surface);
  border: 1px solid var(--product-border);
  border-radius: 0.85rem;
}

.product-hero__game {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--product-accent);
  letter-spacing: 0.03em;
}

.product-hero__title {
  margin: 0;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
  color: #f0f2f7;
}

.product-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--product-muted);
}

.product-hero__meta[hidden] {
  display: none !important;
}

.product-hero__sold {
  font-weight: 700;
  color: var(--product-muted);
}

.product-price {
  padding: 0.85rem 0.95rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--product-border);
  border-radius: 0.65rem;
}

.product-price__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.product-price__now {
  font-size: 1.45rem;
  font-weight: 900;
  color: #f8fafc;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.product-price__now.is-price-tick {
  animation: product-price-tick 0.38s ease;
}

@keyframes product-price-tick {
  0% {
    color: #6ee7b7;
    transform: scale(1.04);
  }

  100% {
    color: #f8fafc;
    transform: scale(1);
  }
}

.product-price__unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--product-muted);
}

.product-price__was {
  font-size: 0.85rem;
  color: rgba(235, 238, 245, 0.38);
}

.product-price__hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--product-muted);
}

.product-stock-notice {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

.product-stock-notice--limited {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.product-stock-notice--out {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.product-wallet-only-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  color: #a5f3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.product-wallet-only-notice i {
  margin-top: 0.1rem;
  color: #67e8f9;
}

.product-wallet-only-notice[hidden] {
  display: none !important;
}

.product-hero__panel {
  position: relative;
}

.product-hero__panel-inner {
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.product-hero__panel.is-telegram-purchase .product-hero__panel-inner {
  filter: blur(6px);
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.product-telegram-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: inherit;
}

.product-telegram-overlay[hidden] {
  display: none !important;
}

.product-telegram-overlay__card {
  width: min(100%, 22rem);
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  text-align: center;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.product-telegram-overlay__title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.45;
  color: #e0f2fe;
}

.product-telegram-overlay__desc {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.65;
  color: #bae6fd;
}

.product-telegram-overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.product-telegram-overlay__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  text-decoration: none;
}

.product-telegram-overlay__btn i {
  font-size: 1.05rem;
}

.product-hero__panel.is-out-of-stock .product-buy-row__actions .btn {
  opacity: 0.55;
  pointer-events: none;
}

.product-pack--out {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-pack--out .product-pack__price {
  text-decoration: line-through;
}

/* بسته‌ها */
.product-packs {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.product-packs__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(235, 238, 245, 0.85);
}

.product-packs__hint {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--product-muted);
}

.product-hero__short {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--product-muted);
}

.product-pack__badge {
  position: absolute;
  top: 0.35rem;
  left: 0.5rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 0.2rem;
  background: rgba(255, 214, 10, 0.2);
  color: #fde047;
}

.product-pack__desc {
  display: block;
  grid-column: 1 / -1;
  margin-top: -0.15rem;
  font-size: 0.68rem;
  color: var(--product-muted);
}

.product-packs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.product-packs__grid--range {
  display: block;
}

.product-range {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1rem;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 0.95rem;
  background:
    linear-gradient(155deg, rgba(15, 23, 42, 0.92) 0%, rgba(0, 0, 0, 0.42) 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.product-range__hero {
  display: grid;
  gap: 0.35rem;
}

.product-range__display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  min-height: 3.25rem;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-range__display:hover,
.product-range__display:focus-visible {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(0, 0, 0, 0.4);
  outline: none;
}

.product-range__display.is-editing {
  cursor: default;
  border-color: rgba(94, 234, 212, 0.45);
}

.product-range__value {
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(94, 234, 212, 0.25);
  pointer-events: none;
}

.product-range__value-input {
  width: min(100%, 8.5rem);
  padding: 0.15rem 0.35rem;
  border: none;
  border-bottom: 2px solid var(--product-accent);
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-align: center;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.product-range__value-input::-webkit-outer-spin-button,
.product-range__value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-range__value-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.product-range__unit {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--product-accent);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.28);
}

.product-range__hint {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--product-muted);
}

.product-range__track-wrap {
  padding: 0.35rem 0.15rem 0.15rem;
  direction: rtl;
}

.product-range__input {
  --range-pct: 0%;
  width: 100%;
  height: 0.55rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  cursor: pointer;
  direction: rtl;
  background: linear-gradient(
    to left,
    var(--product-accent) 0%,
    var(--product-accent) var(--range-pct),
    rgba(255, 255, 255, 0.1) var(--range-pct),
    rgba(255, 255, 255, 0.1) 100%
  );
  outline: none;
  transition: box-shadow 0.2s ease;
}

.product-range__input:focus-visible {
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.28);
}

.product-range__input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 3px solid #0b1220;
  background: linear-gradient(145deg, #5eead4, #2dd4bf);
  box-shadow:
    0 0 0 4px rgba(94, 234, 212, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-range__input:active::-webkit-slider-thumb {
  transform: scale(1.08);
}

.product-range__input::-moz-range-thumb {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 3px solid #0b1220;
  background: linear-gradient(145deg, #5eead4, #2dd4bf);
  box-shadow:
    0 0 0 4px rgba(94, 234, 212, 0.22),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

.product-range__bounds {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--product-muted);
}

.product-range__bounds strong {
  color: rgba(235, 238, 245, 0.9);
  font-weight: 800;
}

.product-packs--range ~ .product-buy-row .product-qty {
  display: none;
}

.product-pack {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--product-border);
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.product-pack:focus,
.product-pack:focus-within,
.product-pack:focus-visible,
.product-pack:active {
  outline: none;
  box-shadow: none;
}

.product-pack input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.product-pack input:focus,
.product-pack input:focus-visible {
  outline: none;
  box-shadow: none;
}

.product-pack__amount {
  font-size: 0.85rem;
  font-weight: 800;
  color: #f0f2f7;
}

.product-pack__price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--product-muted);
}

.product-pack.is-active {
  border-color: rgba(110, 231, 183, 0.45);
  background: var(--product-accent-soft);
}

.product-pack.is-active .product-pack__price {
  color: var(--product-accent);
}

/* تعداد و دکمه‌ها */
.product-buy-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-qty {
  display: inline-flex;
  align-items: stretch;
  align-self: flex-start;
  border: 1px solid var(--product-border);
  border-radius: 0.55rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.product-qty__btn {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

.product-qty__sign {
  position: relative;
  z-index: 1;
}

.product-qty__flash {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  border-radius: inherit;
}

.product-qty__btn--plus.is-flash-plus .product-qty__flash {
  background: rgba(94, 234, 212, 0.55);
  animation: qty-flash-fade 0.52s ease-out forwards;
}

.product-qty__btn--minus.is-flash-minus .product-qty__flash {
  background: rgba(248, 113, 113, 0.5);
  animation: qty-flash-fade 0.52s ease-out forwards;
}

@keyframes qty-flash-fade {
  0% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
  }
}

.product-qty__slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-height: 2.5rem;
  align-self: stretch;
  overflow: hidden;
  border-inline: 1px solid var(--product-border);
}

.product-qty__num {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.product-qty__num--exit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qty-num-exit 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.product-qty__num--enter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qty-num-enter 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.product-qty__num--exit.is-exit-up {
  animation-name: qty-num-exit-up;
}

.product-qty__num--exit.is-exit-down {
  animation-name: qty-num-exit-down;
}

.product-qty__num--enter.is-enter-up {
  animation-name: qty-num-enter-up;
}

.product-qty__num--enter.is-enter-down {
  animation-name: qty-num-enter-down;
}

@keyframes qty-num-exit-up {
  to {
    transform: translateY(-115%);
    opacity: 0;
  }
}

@keyframes qty-num-exit-down {
  to {
    transform: translateY(115%);
    opacity: 0;
  }
}

@keyframes qty-num-enter-up {
  from {
    transform: translateY(115%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes qty-num-enter-down {
  from {
    transform: translateY(-115%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.product-qty__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-buy-row__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-buy-row__primary,
.product-buy-row__secondary {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* مزایا */
.product-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.55rem 0.6rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--product-muted);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--product-border);
  border-radius: 0.55rem;
}

.product-trust__item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(235, 238, 245, 0.9);
}

.product-trust__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
}

.product-trust__icon--mint {
  color: #6ee7b7;
  background: rgba(110, 231, 183, 0.12);
}

.product-trust__icon--sky {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}

.product-trust__icon--violet {
  color: #c4b5fd;
  background: rgba(196, 181, 253, 0.12);
}

.product-trust__icon--amber {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.1);
}

/* تب‌ها */
.product-info {
  padding: 0;
  background: var(--product-surface);
  border: 1px solid var(--product-border);
  border-radius: 0.85rem;
  overflow: hidden;
}

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

.product-info__nav::-webkit-scrollbar {
  display: none;
}

.product-info__tab {
  flex: 1 1 0;
  min-width: 5.5rem;
  padding: 0.85rem 0.75rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--product-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.product-info__tab.is-active {
  color: #f0f2f7;
  border-bottom-color: var(--product-accent);
  background: rgba(110, 231, 183, 0.06);
}

.product-info__tab:focus {
  outline: none;
}

.product-info__tab:focus-visible {
  outline: 2px solid rgba(110, 231, 183, 0.45);
  outline-offset: -2px;
}

.product-qty__btn:focus,
.product-qty__input:focus {
  outline: none;
}

.product-qty__btn:focus-visible {
  outline: 2px solid rgba(110, 231, 183, 0.45);
  outline-offset: -2px;
}

.product-info__panel {
  padding: 1rem 1.05rem 1.15rem;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--product-muted);
}

.product-info__panel.is-active {
  display: block;
}

.product-info__panel:not(.is-active) {
  display: none;
}

.product-info__panel p {
  margin: 0 0 0.75rem;
}

.product-info__panel ul {
  margin: 0;
  padding-inline-start: 1.15rem;
}

.product-info__panel li + li {
  margin-top: 0.35rem;
}

.product-info__panel strong {
  color: #e2e8f0;
}

.product-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.product-steps__num {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #042f1e;
  background: var(--product-accent);
  border-radius: 50%;
}

.product-preview-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 0.65rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(245, 158, 11, 0.08));
  color: #fde68a;
}

.product-preview-banner__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.product-preview-banner__text strong {
  color: #fef3c7;
}

.product-preview-banner__close {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  cursor: pointer;
}

.product-preview-banner__close:hover {
  background: rgba(0, 0, 0, 0.4);
}

.product-preview-banner--warn {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
}

.product-preview-banner--warn .product-preview-banner__text strong {
  color: #fee2e2;
}

body.product-page--loading .product-store {
  visibility: hidden;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.product-page--ready .product-store,
body.product-page--not-found .product-store {
  visibility: visible;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.product-page__loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: min(50vh, 22rem);
  padding: 2rem 1rem;
  color: var(--product-muted);
}

body.product-page--loading .product-page__loader {
  display: flex;
}

.product-page__loader-spin {
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--product-accent);
  border-radius: 50%;
  animation: product-page-spin 0.75s linear infinite;
}

.product-page__loader-text {
  margin: 0;
  font-size: 0.88rem;
}

@keyframes product-page-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ——— محصول یافت نشد: تم فروشگاه (products-page) ——— */
body.product-page--not-found.brand-page {
  background: var(--bg-base);
}

body.product-page--not-found .bg {
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(255, 193, 7, 0.06) 0%, transparent 55%),
    var(--bg-base);
}

body.product-page--not-found .store-header {
  border-bottom-color: var(--border);
  background: transparent;
}

body.product-page--not-found .store-footer__glow {
  background: radial-gradient(
    ellipse 80% 60% at 50% 100%,
    rgba(255, 193, 7, 0.08) 0%,
    transparent 70%
  );
}

body.product-page--not-found .page-main--product {
  padding-top: 0.85rem;
}

.product-store--missing {
  gap: 0.85rem;
}

.product-missing__head {
  padding-inline: var(--pad-inline, 0.65rem);
}

.product-missing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--y-hot);
  letter-spacing: 0.02em;
}

.product-missing__eyebrow i {
  font-size: 0.8rem;
  opacity: 0.9;
}

.product-missing__lead {
  max-width: 22rem;
  line-height: 1.55;
}

.product-missing__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-inline: var(--pad-inline, 0.65rem);
  padding: 1.75rem 1.15rem 1.5rem;
  text-align: center;
  border-style: solid;
  border-color: rgba(255, 214, 10, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 214, 10, 0.06) 0%, transparent 42%),
    var(--bg-soft);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.product-missing__visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.product-missing__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  font-size: 1.35rem;
  color: var(--y-hot);
  background: rgba(255, 214, 10, 0.12);
  border: 1px solid rgba(255, 214, 10, 0.22);
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.12);
}

.product-missing__hint {
  margin: 0;
  max-width: 18rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.product-missing__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  max-width: 14rem;
  margin-top: 0.25rem;
}

.product-missing__buy {
  width: 100%;
  max-width: none;
  flex: none;
  box-sizing: border-box;
  justify-content: center;
}

.product-missing__home {
  width: 100%;
  min-height: 2.65rem;
  box-sizing: border-box;
}

@media (min-width: 30rem) {
  .product-missing__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 22rem;
  }

  .product-missing__buy,
  .product-missing__home {
    flex: 1 1 9.5rem;
    width: auto;
  }
}

.product-content-block {
  padding: 0 0 1.1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--product-border);
}

.product-content-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.product-content-block__title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.4;
}

.product-content-block__body {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--product-muted);
}

.product-content-block__body p {
  margin: 0 0 0.65rem;
}

.product-content-block__body p:last-child {
  margin-bottom: 0;
}

.product-content-block__body ul,
.product-content-block__body ol {
  margin: 0 0 0.65rem;
  padding-inline-start: 1.25rem;
}

.product-faq {
  border-bottom: 1px solid var(--product-border);
}

.product-faq:last-child {
  border-bottom: none;
}

.product-faq summary {
  padding: 0.85rem 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
  cursor: pointer;
  list-style: none;
}

.product-faq summary::-webkit-details-marker {
  display: none;
}

.product-faq summary::after {
  content: "+";
  float: inline-end;
  font-weight: 400;
  color: var(--product-muted);
}

.product-faq[open] summary::after {
  content: "−";
}

.product-faq p {
  margin: 0 0 0.85rem;
  padding-top: 0;
}

.product-related {
  margin-top: 0.25rem;
}

/* محصولات مرتبط — گردی بیشتر از بقیه کارت‌ها */
.product-related .product-card {
  --product-card-radius: 2.75rem;
}

.product-related .product-card--grid .product-card__media {
  border-radius: var(--product-card-radius) var(--product-card-radius) 0 0;
}

.product-related .section-head__title {
  font-size: 1rem;
}

/* نوار چسبان موبایل */
.product-sticky {
  position: fixed;
  z-index: 50;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem var(--pad-inline) calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(18, 20, 26, 0.96);
  border-top: 1px solid var(--product-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-sticky:not([hidden]) {
  transform: translateY(0);
}

body.product-page--telegram-purchase .product-sticky,
.product-sticky[data-product-sticky-off] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.product-sticky__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  min-width: 0;
}

.product-sticky__label {
  width: 100%;
  font-size: 0.62rem;
  color: var(--product-muted);
}

.product-sticky__price ins {
  font-size: 1.05rem;
  font-weight: 900;
  color: #f8fafc;
  text-decoration: none;
}

.product-sticky__unit {
  font-size: 0.72rem;
  color: var(--product-muted);
}

.product-sticky__btn {
  flex-shrink: 0;
  width: auto;
  min-width: 7.5rem;
  min-height: 2.5rem;
  padding-inline: 1.25rem;
}

@media (min-width: 36rem) {
  .product-packs__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-buy-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .product-buy-row__actions {
    flex: 1 1 12rem;
    flex-direction: row;
  }

  .product-buy-row__primary,
  .product-buy-row__secondary {
    flex: 1 1 0;
  }
}

@media (min-width: 48rem) {
  body.product-page {
    padding-bottom: 0;
  }

  .page-main--product {
    padding-bottom: 2rem;
  }

  .product-hero {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 1.05fr);
    gap: 1.25rem;
  }

  .product-hero__visual {
    max-height: 26rem;
  }

  .product-hero__panel {
    position: sticky;
    top: calc(var(--header-top) + 4rem);
    padding: 1.15rem 1.2rem;
  }

  .product-sticky {
    display: none !important;
  }
}

@media (min-width: 64rem) {
  .product-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    gap: 1.5rem;
  }

  .product-hero__panel {
    padding: 1.25rem 1.35rem;
  }

  .product-trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (hover: hover) {
  .product-pack:hover {
    border-color: var(--product-border-strong);
  }

  .product-hero__thumb:hover {
    border-color: rgba(147, 197, 253, 0.55);
    background: var(--product-surface-2);
  }

  .product-info__tab:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.03);
  }

  .product-qty__btn--plus:hover {
    background: rgba(94, 234, 212, 0.08);
  }

  .product-qty__btn--minus:hover {
    background: rgba(248, 113, 113, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-qty__btn--plus.is-flash-plus .product-qty__flash,
  .product-qty__btn--minus.is-flash-minus .product-qty__flash {
    animation: none;
    opacity: 0;
  }

  .product-qty__num--exit,
  .product-qty__num--enter {
    animation: none;
    position: static;
  }
}

