/* Product detail — SupSiam Shopping (extends pages-products tokens) */
.pd-detail-body .site-main {
  padding-top: 0;
}

/* ec-store-nav — ใช้สไตล์ร่วมจาก pages-products.css */

.pd-page .ec-store-nav-inner {
  max-width: 1180px;
}

.pd-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .pd-hero {
    grid-template-columns: 1fr;
  }
}

.pd-gallery-main {
  position: relative;
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-badge {
  position: absolute;
  z-index: 2;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 400;
  text-transform: capitalize;
}

.pd-badge--feature {
  top: 12px;
  background: #ea580c;
  color: #fff;
}

.pd-badge--discount {
  top: 48px;
  background: #d9f99d;
  color: #14532d;
}

.pd-price-burst {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle at 30% 30%, #ef4444, #b91c1c);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.35);
  padding: 8px;
}

.pd-price-burst strong {
  font-size: 17px;
  font-weight: 500;
}

.pd-buy {
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 8px;
  padding: 28px 24px;
}

.pd-title {
  font-family: 'Prompt', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.25;
}

.pd-stars {
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 10px;
}

.pd-stars--lg {
  font-size: 22px;
}

.pd-stock {
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  margin: 0 0 16px;
}

.pd-stock--ok {
  color: #15803d;
  font-weight: 400;
}

.pd-stock--no {
  color: #b91c1c;
}

.pd-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.pd-price-old {
  font-size: 15px;
  color: #94a3b8;
  text-decoration: line-through;
}

.pd-price-cur {
  font-size: 28px;
  font-weight: 500;
  color: var(--ec-navy, #0f2744);
}

.pd-short {
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 20px;
}

.pd-readmore {
  color: #2563eb;
  font-weight: 400;
  margin-left: 4px;
}

.pd-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pd-qty-label {
  font-size: 14px;
  font-weight: 400;
  color: #334155;
}

.pd-qty {
  display: inline-flex;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 6px;
  overflow: hidden;
}

.pd-qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f1f5f9;
  font-size: 18px;
  cursor: pointer;
  color: #334155;
}

.pd-qty-btn:hover {
  background: #e2e8f0;
}

.pd-qty-input {
  width: 52px;
  border: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  font-family: 'Prompt', sans-serif;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.pd-btn {
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 14px 22px;
  border-radius: 6px;
  border: 2px solid var(--ec-navy, #0f2744);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.pd-btn--primary {
  background: var(--ec-navy, #0f2744);
  color: #fff;
}

.pd-btn--outline {
  background: #fff;
  color: var(--ec-navy, #0f2744);
}

.pd-meta {
  margin: 0;
  padding-top: 18px;
  border-top: 1px dashed #e2e8f0;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
}

.pd-meta > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.pd-meta dt {
  margin: 0;
  color: #64748b;
  font-weight: 400;
}

.pd-meta dd {
  margin: 0;
  color: #0f172a;
}

.pd-tabs-wrap {
  margin-bottom: 36px;
}

.pd-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.pd-tab {
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 400;
  padding: 12px 28px;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-bottom: 0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  margin-right: 4px;
}

.pd-tab.is-active {
  background: var(--ec-navy, #0f2744);
  color: #fff;
  border-color: var(--ec-navy, #0f2744);
}

.pd-panel--card {
  background: #fff;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 0 8px 8px 8px;
  padding: 24px 28px;
}

.pd-panel.is-hidden {
  display: none;
}

.pd-prose {
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
}

.pd-prose p {
  margin: 0 0 12px;
}

.pd-muted {
  color: #94a3b8;
}

.pd-cart-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f2744;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-family: 'Prompt', sans-serif;
  z-index: 9998;
  box-shadow: 0 8px 28px rgba(15, 39, 68, 0.25);
}

.pd-reviews-title {
  font-family: 'Prompt', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #0f172a;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ec-navy, #0f2744);
  max-width: 220px;
}

.pd-reviews-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0;
}

.pd-reviews-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  flex: 1 1 280px;
  max-width: 720px;
}

.pd-review-card {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--ec-line, #e2e8f0);
  background: #fff;
}

.pd-review-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pd-review-card figcaption {
  padding: 8px 10px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  font-family: 'Prompt', sans-serif;
}

.pd-stars-count {
  margin-left: 8px;
  font-size: 13px;
  color: #64748b;
  font-family: 'Prompt', sans-serif;
}

.pd-reviews-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  font-family: 'Prompt', sans-serif;
}

.pd-reviews-score:not(:empty) {
  color: #f59e0b;
}

.pd-reviews-empty {
  font-size: 15px;
  color: #64748b;
}

.pd-reviews-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-reviews-score {
  font-size: 42px;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1;
}

.pd-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pd-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ec-line, #e2e8f0);
  border-radius: 4px;
  background: #fff;
  color: var(--ec-navy, #0f2744);
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.pd-list-btn:hover {
  border-color: #a8c4dc;
  background: #f8fafc;
}

.pd-list-btn.is-active {
  border-color: #1e4976;
  background: rgba(30, 73, 118, 0.08);
  color: #1e4976;
}

.pd-list-btn.is-active .fa-heart {
  font-weight: 900;
}

.pd-list-btn.is-active .fa-heart::before {
  content: '\f004';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}
