/* BC Nutra — Shop grid + product detail pages (extends the .hx homepage system) */
.sp { background: var(--hx-ivory); color: var(--hx-ink); }
.sp p { text-wrap: pretty; }

/* ─── Shop hero ─── */
.sp-hero { padding: 152px 0 56px; }
.sp-hero-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.sp-hero .hx-title { max-width: 820px; }
.sp-hero-lede { font-size: 1.08rem; font-weight: 300; line-height: 1.7; color: var(--hx-muted); }

/* ─── Product grid / cards ─── */
.sp-grid-section { padding: 0 0 112px; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; list-style: none; margin: 0; padding: 0; }
.sp-card {
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--hx-line);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.sp-card:hover { box-shadow: 0 24px 48px -28px rgba(20, 39, 58, 0.28); transform: translateY(-2px); }

/* Studio image stage: square, soft light, gentle contact shadow */
.sp-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}
/* Studio shots carry their own soft shadow on white; multiply blends their backdrop into the stage */
.sp-stage img {
  display: block;
  height: 90%; width: auto; max-width: 92%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.6s ease;
}
.sp-stage img[src*="bundle"] { height: 86%; clip-path: inset(0 0 0 1.5%); }
.sp-card:hover .sp-stage img { transform: scale(1.03); }

.sp-body { display: flex; flex-direction: column; gap: 14px; padding: 30px 32px 32px; flex: 1; border-top: 1px solid var(--hx-line); }
.sp-cat { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hx-accent); }
.sp-name { font-family: var(--font-serif); font-weight: 500; font-size: 1.9rem; line-height: 1.15; color: var(--hx-ink); }
.sp-name a { color: inherit; text-decoration: none; }
.sp-name a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.sp-name a:focus-visible, .sp-stage:focus-visible { outline: 1px solid var(--hx-accent); outline-offset: 4px; }
.sp-desc { font-size: 0.98rem; font-weight: 300; line-height: 1.65; color: var(--hx-muted); }
.sp-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sp-badges li {
  font-size: 0.72rem; letter-spacing: 0.04em; color: var(--hx-ink);
  padding: 6px 12px; border: 1px solid var(--hx-line); border-radius: 999px; background: var(--hx-ivory);
}
.sp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hx-line); }
.sp-price { display: flex; flex-direction: column; gap: 2px; }
.sp-price strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.7rem; color: var(--hx-ink); }
.sp-price span { font-size: 0.75rem; color: var(--hx-muted); }

.sp-add {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--hx-ink); color: var(--hx-ivory);
  border: 1px solid var(--hx-ink); border-radius: 2px; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.sp-add:hover, .sp-add.is-added { background: transparent; color: var(--hx-ink); }
.sp-add:focus-visible { outline: 1px solid var(--hx-accent); outline-offset: 4px; }

/* ─── Trust ─── */
.sp-trust { padding: 104px 0; background: var(--hx-stone); }
.sp-trust-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.sp-trust p { font-size: 1.05rem; font-weight: 300; line-height: 1.7; color: var(--hx-muted); max-width: 620px; }
.sp-disclaimer { font-size: 0.78rem; line-height: 1.65; color: var(--hx-muted); max-width: 820px; margin: 0 auto; padding-top: 48px; text-align: center; }

/* ─── Product detail ─── */
.pd-crumb { padding: 40px 0 0; }
.pd-crumb ol { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--hx-muted); }
.pd-crumb li + li::before { content: "/"; margin-right: 10px; color: var(--hx-line); }
.pd-crumb a { color: var(--hx-ink); text-decoration: none; }
.pd-crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

.pd-hero { padding: 32px 0 104px; }
.pd-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.pd-media { margin: 0; border: 1px solid var(--hx-line); border-radius: 6px; overflow: hidden; }
.pd-media .sp-stage img { height: 88%; }
.pd-buy { display: flex; flex-direction: column; gap: 22px; }
.pd-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.05; color: var(--hx-ink); text-wrap: balance; }
.pd-position { font-family: var(--font-serif); font-style: italic; font-size: 1.4rem; line-height: 1.35; color: var(--hx-accent); }
.pd-desc { font-size: 1rem; font-weight: 300; line-height: 1.75; color: var(--hx-muted); }
.pd-price { display: flex; align-items: baseline; gap: 14px; padding-top: 8px; border-top: 1px solid var(--hx-line); }
.pd-price strong { font-family: var(--font-serif); font-weight: 500; font-size: 2.2rem; color: var(--hx-ink); }
.pd-price span { font-size: 0.85rem; color: var(--hx-muted); }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pd-qty { display: inline-flex; align-items: center; border: 1px solid var(--hx-ink); border-radius: 2px; height: 48px; }
.pd-qty button {
  width: 44px; height: 100%; background: transparent; border: 0; cursor: pointer;
  font-size: 1.1rem; color: var(--hx-ink);
}
.pd-qty button:hover { background: var(--hx-stone); }
.pd-qty input {
  width: 44px; height: 100%; border: 0; border-left: 1px solid var(--hx-line); border-right: 1px solid var(--hx-line);
  text-align: center; font: inherit; font-size: 0.95rem; color: var(--hx-ink); background: transparent;
  -moz-appearance: textfield; appearance: textfield;
}
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-actions .sp-add { flex: 1; min-width: 200px; }
.pd-meta { font-size: 0.85rem; color: var(--hx-muted); }
.pd-meta a { color: var(--hx-ink); text-underline-offset: 4px; }

/* Sections */
.pd-section { padding: 104px 0; }
.pd-section-stone { background: var(--hx-stone); }
.pd-section-white { background: #ffffff; }
.pd-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 48px; }
.pd-head p { font-size: 1.02rem; font-weight: 300; line-height: 1.75; color: var(--hx-muted); }

.pd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.pd-cards li { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; background: var(--hx-ivory); border-top: 2px solid var(--hx-accent); }
.pd-cards h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.45rem; line-height: 1.2; color: var(--hx-ink); }
.pd-cards p { font-size: 0.95rem; font-weight: 300; line-height: 1.65; color: var(--hx-muted); }
.pd-footnote { margin-top: 24px; font-size: 0.8rem; color: var(--hx-muted); }

.pd-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pd-panel { display: flex; flex-direction: column; gap: 18px; padding: 36px; background: #ffffff; border: 1px solid var(--hx-line); border-radius: 6px; }
.pd-panel h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.6rem; color: var(--hx-ink); }
.pd-panel > p { font-size: 0.95rem; font-weight: 300; line-height: 1.7; color: var(--hx-muted); }
.pd-specs { display: flex; flex-direction: column; margin: 0; }
.pd-specs div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--hx-line); }
.pd-specs div:first-child { border-top: 1px solid var(--hx-line); }
.pd-specs dt { font-size: 0.85rem; color: var(--hx-muted); }
.pd-specs dd { margin: 0; font-size: 0.9rem; font-weight: 500; color: var(--hx-ink); text-align: right; }
.pd-tbc {
  display: inline-block; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hx-accent); border: 1px dashed var(--hx-accent); border-radius: 2px; padding: 3px 8px;
}

/* Accordions */
.pd-acc { border-top: 1px solid var(--hx-line); }
.pd-acc details { border-bottom: 1px solid var(--hx-line); }
.pd-acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--hx-ink);
}
.pd-acc summary::-webkit-details-marker { display: none; }
.pd-acc summary::after { content: "+"; font-family: var(--font-sans); font-weight: 300; font-size: 1.4rem; color: var(--hx-accent); transition: transform 0.25s ease; }
.pd-acc details[open] summary::after { transform: rotate(45deg); }
.pd-acc summary:focus-visible { outline: 1px solid var(--hx-accent); outline-offset: 4px; }
.pd-acc-body { display: flex; flex-direction: column; gap: 14px; padding: 0 0 26px; max-width: 760px; }
.pd-acc-body p { font-size: 0.95rem; font-weight: 300; line-height: 1.75; color: var(--hx-muted); }
.pd-acc-body a { color: var(--hx-accent); text-underline-offset: 4px; word-break: break-word; }
.pd-acc-body .pd-src { font-size: 0.82rem; }

.pd-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; list-style: none; padding: 0; }
.pd-evidence li { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #ffffff; border: 1px solid var(--hx-line); border-radius: 6px; }
.pd-evidence h3 { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--hx-accent); }
.pd-evidence p { font-size: 0.9rem; font-weight: 300; line-height: 1.65; color: var(--hx-muted); }

.pd-quality { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.pd-quality ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.pd-quality li { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--hx-line); }
.pd-quality li:first-child { border-top: 1px solid var(--hx-line); }
.pd-quality h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.25rem; color: var(--hx-ink); }
.pd-quality p { font-size: 0.92rem; font-weight: 300; line-height: 1.65; color: var(--hx-muted); }

.pd-usage { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; }
.pd-usage-note { display: flex; flex-direction: column; gap: 16px; }
.pd-usage-note p { font-size: 0.98rem; font-weight: 300; line-height: 1.75; color: var(--hx-muted); }

.pd-final { padding: 88px 0; background: var(--hx-ink); color: var(--hx-ivory); }
.pd-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.pd-final h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--hx-ivory); }
.pd-final p { font-size: 0.9rem; color: rgba(247, 243, 236, 0.72); }
.pd-final .pd-final-copy { display: flex; flex-direction: column; gap: 8px; }
.pd-final .pd-actions { flex: 0 1 460px; }
.pd-final .pd-qty { border-color: rgba(247, 243, 236, 0.6); }
.pd-final .pd-qty button, .pd-final .pd-qty input { color: var(--hx-ivory); }
.pd-final .pd-qty button:hover { background: rgba(247, 243, 236, 0.1); }
.pd-final .pd-qty input { border-color: rgba(247, 243, 236, 0.3); }
.pd-final .sp-add { background: var(--hx-ivory); color: var(--hx-ink); border-color: var(--hx-ivory); }
.pd-final .sp-add:hover, .pd-final .sp-add.is-added { background: transparent; color: var(--hx-ivory); }

@media (max-width: 1024px) {
  .pd-hero-grid, .pd-quality, .pd-usage { grid-template-columns: 1fr; gap: 48px; }
  .pd-evidence { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sp-hero { padding: 120px 0 40px; }
  .sp-grid { grid-template-columns: 1fr; gap: 28px; }
  .sp-body { padding: 24px 22px 26px; }
  .sp-foot { flex-direction: column; align-items: stretch; }
  .sp-add { width: 100%; }
  .sp-trust, .pd-section { padding: 72px 0; }
  .pd-crumb { padding-top: 28px; }
  .pd-hero { padding-bottom: 72px; }
  .pd-cards, .pd-panels { grid-template-columns: 1fr; }
  .pd-panel { padding: 26px 22px; }
  .pd-specs div { flex-direction: column; gap: 4px; }
  .pd-specs dd { text-align: left; }
  .pd-actions .sp-add { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-card, .sp-stage img, .pd-acc summary::after { transition: none; }
}
