/* =====================================================
   Product detail (v2) — loads after style.css, products.css, catalog.css
   ===================================================== */
.pd { padding-top: 16px; }

/* ---------- breadcrumb ---------- */
.pd-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 26px; }
.pd-crumbs a:hover { color: var(--ink); }
.pd-crumbs span[aria-hidden] { color: var(--muted); }
.pd-crumbs [aria-current] { color: var(--accent); }

/* ---------- summary ---------- */
.pd-summary { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 40px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.pd-main-image { aspect-ratio: 495 / 376; border-radius: 6px; overflow: hidden; background: #f5f5f5; border: 1px solid var(--line); }
.pd-main-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-main-image .pcard-placeholder span { font-size: 96px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.pd-thumb { aspect-ratio: 113 / 80; padding: 0; border: 1.5px solid var(--line); border-radius: 4px; overflow: hidden; background: #f5f5f5; cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.is-active, .pd-thumb:hover { border-color: var(--accent); }

.pd-info { padding-top: 4px; }
.pd-cat { color: var(--ink); margin-bottom: 14px; }
.pd-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px; }
.pd-subtitle { font-size: 17px; line-height: 1.45; color: var(--ink-soft); margin-bottom: 16px; }
.pd-desc { font-size: 14px; line-height: 1.65; color: var(--ink-soft); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }

.pd-highlights { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.pd-highlights li { display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); padding: 2px 16px; }
.pd-highlights li:first-child { padding-left: 0; }
.pd-highlights li + li { border-left: 1px solid var(--line); }
.pd-highlights svg { width: 32px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.pd-quote { width: 100%; justify-content: center; padding: 16px 20px; font-size: 14.5px; border-radius: 4px; }

/* ---------- specs, forms, packaging ---------- */
.pd-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-block: 32px 28px; border-bottom: 1px solid var(--line); }
.pd-specs { padding-right: 32px; border-right: 1px solid var(--line); }
.pd-side { padding-left: 28px; }
.pd-h2 { display: flex; align-items: center; gap: 16px; font-family: var(--font-serif); font-weight: 700; font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.01em; margin-bottom: 18px; }
.pd-h2::after { content: ""; width: 30px; height: 1.5px; background: var(--accent); }
.pd-h2-gap { margin-top: 28px; }

.pd-table { width: 100%; border-collapse: collapse; font-size: 13px; border: 1px solid var(--line); }
.pd-table tr:nth-child(odd) { background: #f7f7f6; }
.pd-table th, .pd-table td { text-align: left; padding: 8px 14px; vertical-align: top; line-height: 1.45; }
.pd-table th { width: 40%; font-weight: 500; color: var(--ink); border-right: 1px solid var(--line); }
.pd-table td { color: var(--ink-soft); }

.pd-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 250px)); gap: 14px; }
.pd-form { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.pd-form > div { aspect-ratio: 207 / 121; background: #f5f5f5; overflow: hidden; }
.pd-form img { width: 100%; height: 100%; object-fit: cover; }
.pd-form strong, .pd-pack strong { display: block; font-size: 13px; font-weight: 600; padding: 10px 14px 0; }
.pd-form small, .pd-pack small { display: block; font-size: 11.5px; color: var(--muted); padding: 2px 14px 12px; }

.pd-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 190px)); gap: 12px; }
.pd-pack { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.pd-pack > div { aspect-ratio: 133 / 117; background: #f5f5f5; overflow: hidden; }
.pd-pack img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- related ---------- */
.pd-related { padding-block: 30px 40px; }
.pd-related .section-head { align-items: center; margin-bottom: 16px; }
.pd-related .pd-h2 { margin: 0; }
.pd-related .link-arrow { font-size: 13px; font-weight: 500; }
.pd-related-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

/* ---------- cta ---------- */
.pd-cta {
  position: relative; color: #fff;
  background: #e5340b url("../assets/img/products-banner.jpg") right center / cover no-repeat;
}
.pd-cta.is-turmeric { background-image: url("../assets/img/cta-turmeric.jpg"); background-position: right center; }
.pd-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(229,52,11,.96) 0%, rgba(229,52,11,.9) 45%, rgba(229,52,11,0) 72%); }
.pd-cta-inner { position: relative; display: flex; align-items: center; gap: 48px; padding-block: 44px 52px; }
.pd-cta .eyebrow { color: rgba(255,255,255,.85); margin-bottom: 12px; }
.pd-cta .eyebrow-line::after { background: rgba(255,255,255,.7); }
.pd-cta h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.015em; }
.pd-cta .btn-white { background: #fff; color: var(--ink); flex: none; }
.pd-cta .btn-white:hover { background: #f4f1ee; }

.not-found { padding-block: 72px 96px; max-width: 640px; margin-inline: 0; }
.not-found[hidden] { display: none; }
.not-found h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.not-found > p:not(.eyebrow) { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 26px; max-width: 520px; }
.not-found-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pd-related-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .pd-summary { grid-template-columns: 1fr; gap: 28px; }
  .pd-details { grid-template-columns: 1fr; }
  .pd-specs { padding-right: 0; border-right: 0; padding-bottom: 28px; }
  .pd-side { padding-left: 0; }
  .pd-cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .pd-related .section-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .pd-cta h2 br { display: none; }
  .pd-cta::before { background: linear-gradient(90deg, rgba(229,52,11,.96) 0%, rgba(229,52,11,.9) 70%, rgba(229,52,11,.5) 100%); }
}
@media (max-width: 560px) {
  .pd-thumbs { gap: 8px; }
  .pd-highlights li { padding: 2px 10px; font-size: 11.5px; }
  .pd-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pd-related .pd-h2 { font-size: 20px; white-space: nowrap; }
  .pd-related .pd-h2::after { display: none; }
  .pd-packs { gap: 8px; }
  .pd-form strong, .pd-pack strong { padding: 8px 10px 0; font-size: 12px; }
  .pd-form small, .pd-pack small { padding: 2px 10px 10px; font-size: 11px; }
}
