/* =========================================================
   بنتو استور — استایل‌های اختصاصی صفحات محصول (Product Detail Page)
   منطبق بر سیستم طراحی بنتو استور و پالت مینت و نیوی
   ========================================================= */

/* نوار مسیر راهنما (Breadcrumb) */
.breadcrumb-nav {
  padding: 1rem 0 0.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.breadcrumb-item a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.breadcrumb-separator {
  opacity: 0.5;
  user-select: none;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
}

/* لایه اصلی صفحه محصول */
.product-page-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem var(--space) 3rem;
}

/* بخش هدر محصول: گالری + مشخصات خرید */
.product-hero-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .product-hero-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

/* گالری تصویر محصول */
.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-main-img-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
  background: radial-gradient(circle at center, rgba(174, 240, 165, 0.2) 0%, rgba(240, 246, 240, 0.6) 70%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid rgba(15, 39, 68, 0.05);
}

.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
  filter: drop-shadow(0 15px 30px rgba(15, 39, 68, 0.15));
}

.product-main-img-wrap:hover .product-main-img {
  transform: scale(1.05);
}

.product-badge-group {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2;
}

.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.p-badge-japan {
  background: #fff;
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.p-badge-original {
  background: var(--navy);
  color: var(--mint);
}

.p-badge-fresh {
  background: #e6f9e6;
  color: #27ae60;
  border: 1px solid #c2eec2;
}

/* ستون مشخصات و خرید */
.product-details-col {
  display: flex;
  flex-direction: column;
}

.product-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.product-brand-tag {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.product-sku-tag {
  font-size: 0.82rem;
  color: #7b8e9f;
  background: #f1f4f7;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  direction: ltr;
}

.product-page-title {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 1rem;
}

.product-quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.spec-chip {
  background: var(--paper-2);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(174, 240, 165, 0.5);
}

.product-short-desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

/* جعبه قیمت و دکمه خرید */
.purchase-box {
  background: #fbfdfa;
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.price-row-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.price-unit-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.price-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-amount-num {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.price-currency {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.stock-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #27ae60;
  font-weight: 700;
}

.stock-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.6);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.purchase-actions-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .purchase-actions-grid {
    grid-template-columns: 1fr;
  }
}

.qty-control-box {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  height: 48px;
}

.qty-btn {
  background: none;
  border: none;
  width: 42px;
  height: 100%;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #eef3f7;
}

.qty-display {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy);
}

.btn-add-product {
  height: 48px;
  background: var(--navy);
  color: var(--mint);
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.15);
}

.btn-add-product:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.25);
}

.btn-add-product svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.quick-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.btn-whatsapp-buy {
  flex: 1;
  height: 40px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.btn-whatsapp-buy:hover {
  opacity: 0.9;
}

.btn-phone-call {
  height: 40px;
  padding: 0 1rem;
  background: #f0f4f8;
  color: var(--navy);
  border: 1px solid #dce4ec;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* اعتماد و تضمین‌ها */
.guarantee-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

@media (max-width: 600px) {
  .guarantee-bar {
    grid-template-columns: 1fr;
  }
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.guarantee-item svg {
  width: 18px;
  height: 18px;
  fill: #27ae60;
  flex-shrink: 0;
}

/* بخش‌های محتوایی عمیق (تب‌ها / باکس‌های سئو) */
.product-content-section {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--paper-2);
}

.content-section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: var(--navy);
}

.content-prose {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.85;
}

.content-prose p {
  margin: 0 0 1rem;
}

.content-prose strong {
  color: var(--navy);
}

/* لیست دستگاه‌ها و خودروهای سازگار */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.compat-card {
  background: #f8fbf8;
  border: 1px solid rgba(15, 39, 68, 0.07);
  border-radius: 14px;
  padding: 1.25rem;
}

.compat-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.compat-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.compat-pill {
  background: #fff;
  border: 1px solid #e0e8e0;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* جدول مشخصات فنی */
.specs-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.specs-table th,
.specs-table td {
  padding: 0.85rem 1.2rem;
  text-align: right;
}

.specs-table th {
  background: #f3f7f5;
  color: var(--navy);
  font-weight: 700;
  width: 32%;
  border-bottom: 1px solid var(--line);
}

.specs-table td {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* بخش تشخیص اصل از فیک */
.authenticity-guide-box {
  background: #fbfdf9;
  border-right: 4px solid #27ae60;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.authenticity-guide-box h4 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.authenticity-steps {
  padding-right: 1.2rem;
  margin: 0.5rem 0 0;
  line-height: 1.8;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* سوالات متداول محصول */
.p-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.p-faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.p-faq-item[open] {
  border-color: rgba(15, 39, 68, 0.2);
}

.p-faq-summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

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

.p-faq-summary .p-faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink-soft);
  transition: transform 0.25s ease;
}

.p-faq-item[open] .p-faq-icon {
  transform: rotate(45deg);
}

.p-faq-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.8;
}

/* محصولات مرتبط */
.related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.related-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(174, 240, 165, 0.8);
}

.related-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.related-card-brand {
  font-size: 0.8rem;
  color: #7b8e9f;
  font-weight: 600;
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.25rem 0 0.5rem;
  line-height: 1.4;
}

.related-card-price {
  margin-top: auto;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
}
