/* ============================================================
   صفحهٔ محصول — طراحی پریمیوم با گالری، زوم و تب‌ها
   ============================================================ */
.product-section { margin: 28px auto; }
.gallery-wishlist {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}

/* ---------- گالری ---------- */
.gallery-card { display: flex; flex-direction: column; gap: 14px; }
.gallery-main {
  position: relative; overflow: hidden;
  background: var(--gradient-soft); border-radius: var(--radius);
  height: 400px; display: flex; align-items: center; justify-content: center;
  cursor: crosshair;
}
.gallery-main img {
  max-width: 92%; max-height: 92%; object-fit: contain;
  transition: transform var(--t) var(--ease); /* زوم نرم */
}
.gallery-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--gradient-brand); color: #fff;
  font-size: 0.8rem; font-weight: 800; padding: 5px 12px; border-radius: var(--radius-full);
  box-shadow: var(--shadow-brand);
}
.gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px; object-fit: contain; padding: 6px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--t) var(--ease);
}
.gallery-thumb:hover { border-color: var(--brand-light); }
.gallery-thumb.active { border-color: var(--brand); }

/* ---------- اطلاعات محصول ---------- */
.info-card { display: flex; flex-direction: column; }
.info-title { font-size: 1.5rem; font-weight: 800; line-height: 1.6; letter-spacing: -0.02em; margin-bottom: 14px; }
.info-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.info-brand-tag {
  background: var(--brand-light); color: var(--brand); font-weight: 700;
  font-size: 0.8rem; padding: 4px 12px; border-radius: var(--radius-full);
}
.info-sku { color: var(--text-muted); font-size: 0.82rem; }
.info-stock { font-weight: 700; font-size: 0.9rem; margin-bottom: 18px; }
.info-stock { color: var(--success); }

/* قیمت */
.price-box {
  background: var(--bg-soft); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.price-original { color: var(--text-muted); text-decoration: line-through; font-size: 0.95rem; }
.price-discount {
  background: var(--gradient-brand); color: #fff; font-weight: 700;
  font-size: 0.78rem; padding: 3px 10px; border-radius: var(--radius-full);
}
.price-main { font-size: 1.6rem; font-weight: 800; color: var(--text); margin-right: auto; }
.price-main::after { content: " تومان"; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

/* دکمه‌ها */
.cta-row { margin-bottom: 12px; }
.btn-cart {
  width: 100%; border: none; border-radius: var(--radius-sm);
  background: var(--gradient-brand); color: #fff; padding: 15px;
  font-weight: 800; font-size: 1rem; cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow-brand);
  transition: transform var(--t-fast) var(--ease-spring), box-shadow var(--t) var(--ease);
}
.btn-cart:hover { transform: translateY(-2px); box-shadow: 0 14px 32px var(--brand-glow); }
.btn-cart:active { transform: scale(0.98); }

.mini-feat { color: var(--text-soft); font-size: 0.85rem; margin-top: 12px; }

/* ---------- تب‌ها ---------- */
.tabs-wrap {
  margin-top: 28px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.tabs-nav { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.tab-btn {
  border: none; background: transparent; padding: 16px 26px;
  font-family: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer;
  color: var(--text-muted); position: relative; transition: color var(--t) var(--ease);
}
.tab-btn.active { color: var(--brand); }
.tab-btn.active::after {
  content: ""; position: absolute; bottom: -1px; right: 0; left: 0; height: 3px;
  background: var(--gradient-brand);
}
.tab-panel { display: none; padding: 28px; animation: fadeIn var(--t) var(--ease); }
.tab-panel.active { display: block; }
.desc-body { color: var(--text-soft); line-height: 2.1; }

/* نظرات */
.review-cards { display: grid; gap: 14px; }
.review-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 18px;
}
.review-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.review-stars { color: #fbbf24; font-weight: 700; }

/* محصولات مشابه */
.related-section { margin-top: 36px; }

/* جدول مشخصات فنی */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:nth-child(odd) { background: var(--bg-soft); }
.spec-table td { padding: 12px 16px; font-size: 0.9rem; }
.spec-name { color: var(--text-muted); width: 40%; font-weight: 600; }
.spec-value { color: var(--text); font-weight: 600; }

/* کادر اطلاعات سریع */
.info-quickbox {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 16px;
  margin-bottom: 18px;
}
.quick-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.quick-row:last-child { border-bottom: none; }
.quick-label { color: var(--text-muted); }
.quick-val { color: var(--text); font-weight: 700; }

/* ---------- واکنش‌گرا ---------- */
@media (max-width: 880px) {
  .gallery-wishlist { grid-template-columns: 1fr; }
  .gallery-main { height: 320px; }
  .gallery-main { cursor: default; }   /* زوم در موبایل لازم نیست */
}
.compatible-phones { margin-top: 22px; }
.compatible-phones h2 { font-size: 1.1rem; margin-bottom: 12px; }
.compatible-phones ul { padding-right: 20px; line-height: 2; }
.compatible-phones p { line-height: 1.9; color: var(--text-muted); }
