.product-page {
  margin-top: 32px;
}

/* breadcrumb */
.product-breadcrumb {
  margin-top: 18px;
  margin-bottom: 14px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.product-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-breadcrumb span {
  opacity: 0.8;
}

.product-breadcrumb-current {
  color: var(--accent);
  opacity: 1;
}

/* hero layout */
.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 28px;
  align-items: stretch;
}

/* left stats grid */
.product-hero-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-stat-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-stat-card {
  background: #111218;
  border-radius: 22px;
  border: 1px solid #252633;
  padding: 18px 16px;
  min-width: 170px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.product-stat-label {
  font-size: 12px;
  color: var(--text-main);
}

/* center card with icon */
.product-hero-center-card {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 210px;
  border-radius: 30px;
  background: #050608;
  border: 2px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 28px 60px rgba(0,0,0,.85);
}

.product-hero-center-inner {
  width: 92%;
  height: 92%;
  border-radius: 26px;
  background: radial-gradient(circle at top, rgba(46,226,131,.4), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.product-hero-center-inner img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.product-hero-center-inner span {
  font-size: 16px;
  color: #f5f5f5;
}

/* right side info */
.product-hero-right {
  padding: 0;
}

.product-title {
  margin: 0;
  font-size: 26px;
  color: var(--text-main);
}

.product-title-letter {
  color: var(--accent);
}

.product-title-en {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.product-lead {
  margin-top: 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.9;
}

/* config form */
.product-config {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-main);
}

.product-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #252633;
  background: #111218;
  color: var(--text-main);
  font-size: 13px;
}

/* meta row: delivery & quantity */
.product-meta-row {
  display: flex;
  gap: 18px;
  align-items: center;
}

.product-meta-col {
  flex: 1;
}

.product-meta-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-meta-value {
  font-size: 14px;
  color: var(--accent);
}

/* quantity */
.product-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #252633;
  overflow: hidden;
}

.product-qty button {
  width: 32px;
  height: 30px;
  border: none;
  background: #111218;
  color: var(--text-main);
  cursor: pointer;
  font-size: 18px;
}

.product-qty input {
  width: 44px;
  height: 30px;
  border: none;
  background: #050608;
  color: var(--text-main);
  text-align: center;
  font-size: 13px;
}

/* price */
.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.product-price-label {
  font-size: 13px;
  color: var(--text-main);
}

.product-price-value {
  font-size: 18px;
  color: var(--accent);
}

/* add to cart button */
.product-add-btn {
  margin-top: 6px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #050608;
  font-size: 15px;
  cursor: pointer;
}

/* responsive */
@media (max-width: 1024px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-hero-right {
    order: -1;
  }

  .product-hero-center-card {
    position: static;
    transform: none;
    margin: 20px auto 0;
  }

  .product-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .product-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-hero-right {
    padding: 18px 16px 20px;
  }
}



/* شبکه آمار با کارت اپل آیدی در مرکز */
.product-stat-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-stat-grid.product-stat-grid--with-center {
  padding: 14px 8px;
}

.product-hero-center-card {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 180px;
  border-radius: 26px;
  background: #050608;
  border: 2px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 50px rgba(0,0,0,.85);
}

.product-hero-center-inner {
  width: 92%;
  height: 92%;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(46,226,131,.4), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-hero-center-inner img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.product-hero-center-inner span {
  font-size: 15px;
  color: #f5f5f5;
}


/* --- چیدمان بخش آمار و لوگوی Apple ID (سمت چپ) --- */
.product-hero-left {
  display: flex;
  align-items: center;
  justify-content: center;
}


.product-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-stat-card {
  background: #111218;
  border-radius: 20px;
  border: 1px solid #252633;
  padding: 14px 12px;
  min-width: 170px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.product-stat-label {
  font-size: 12px;
  color: var(--text-main);
}

/* کارت کوچک Apple ID وسط چهار کارت */
.product-center-logo-card {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 170px;
  height: 210px;
  border-radius: 24px;
  background: #050608;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 50px rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-center-logo-inner {
  width: 88%;
  height: 88%;
  border-radius: 22px;
  background: radial-gradient(circle at top, rgba(46,226,131,.55), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-center-logo-inner img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.product-center-logo-inner span {
  font-size: 14px;
  color: #f5f5f5;
}

/* سمت راست: پنل توضیحات و فرم */
.product-hero-right {
  display: flex;
  align-items: stretch;
}

.product-panel {
  background: #050608;
  border-radius: 26px;
  border: 1px solid #252633;
  padding: 22px 22px 24px;
  width: 100%;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 1024px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-hero-right {
    order: 2;
  }

  .product-hero-left {
    order: 1;
    margin-bottom: 18px;
  }

  .product-stats-shell {
    min-width: 0;
    width: 100%;
  }
}

/* چیدمان جدید آمارها بدون بک‌گراند بزرگ */
.product-stats-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.product-stats-row {
  display: flex;
  gap: 16px;
}

.product-stat-card {
  background: #111218;
  border-radius: 20px;
  border: 1px solid #252633;
  padding: 14px 16px;
  min-width: 170px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-center-row {
  display: flex;
  justify-content: center;
}

.product-center-logo-card {
  width: 170px;
  min-height: 210px;
  border-radius: 24px;
  background: #050608;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 50px rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* اضافه کن */
  top: 110px; /* مرجی بیشتر = پایین‌تر */
  right: 15px; /* ببر سمت راست */
}

.product-center-logo-inner {
  width: 88%;
  height: 88%;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(46,226,131,.55), transparent 60%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-center-logo-inner img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.product-center-logo-inner span {
  font-size: 14px;
  color: #f5f5f5;
}

/* ریسپانسیو برای موبایل: ستون‌ها زیر هم */
@media (max-width: 900px) {
  .product-stats-layout {
    flex-direction: column;
  }
}

.product-stats-frame {
  background: #050608;
  border-radius: 26px;
  border: 1px solid #252633;
  padding: 18px 22px 20px;
  display: inline-block;
}

.product-long-text {
  margin-top: 24px;
  line-height: 1.8;
  font-size: 14px;
  color: var(--text-main);
}

.product-long-text .product-long-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
