/* Nordix Wellness — product detail (page CSS, loads last via @stack('style')).
   Ported from UI Files/product.html (inline <style>) plus the shared type/card
   primitives this page uses (pages never depend on another page's stylesheet).
   Do not restate the <main> reset or the anchor guard — chrome.css owns both.
   See docs/ai/THEME_MAP.md. */

/* ---------- type + section primitives (copied from the design system) ---------- */
.lab{font:500 calc(20px * var(--s))/1.6 Satoshi;color:var(--fjord)}
.h2{font:500 calc(40px * var(--s))/1.4 Satoshi}
.lead{font:500 18px/1.8 Satoshi}
.body-l{font:400 17px/1.5 "Albert Sans"}
.meta{font:500 13px/1.2 "Albert Sans";letter-spacing:.12em;color:var(--fjord);text-transform:uppercase;white-space:pre}
.sec{padding:var(--sec) var(--m)}
.white{background:#fff}
/* `head` is also a class in the old theme (old-theme/style.css sets
   .head{color:#272D4E}); without an explicit colour the heading and buttons
   inside it inherit navy instead of --pine */
.head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;color:var(--pine)}
.arrows{display:flex;gap:12px}
.pd-rel .sq:disabled{opacity:.35;cursor:default}

/* ---------- product ---------- */
.pd{padding:40px var(--m) 80px;display:flex;flex-direction:column;gap:32px}
.pd-bc{display:flex;gap:8px;flex-wrap:wrap;font:400 13px/1.2 "Albert Sans";letter-spacing:.04em;color:rgba(28,36,34,.6)}
.pd-bc a{transition:color .3s}
.pd-bc a:hover{color:var(--pine)}
.pd-grid{display:grid;grid-template-columns:704fr 640fr;gap:clamp(48px,5vw,96px);align-items:start}
.pd-im{position:relative;aspect-ratio:704/680;overflow:hidden;background:#e8e8e3}
.pd-im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pd-dt{display:flex;flex-direction:column;gap:32px;min-width:0}
/* the cart form wraps the whole details column; keep the design's 32px rhythm */
.pd-dt form{display:flex;flex-direction:column;gap:32px}
.pd-hd{display:flex;flex-direction:column;gap:16px}
.pd-hd h1{font:500 calc(56px * var(--s))/1.4 Satoshi;--d:.15s}
.pd-hd .meta{--d:.05s}
.pd-pr{font:500 22px/1.3 Satoshi;--d:.35s}
.pd-intro{--d:.45s}
.pd-facts{--d:.55s}
.pd-facts div{display:flex;justify-content:space-between;gap:24px;padding:16px 0;border-top:1px solid rgba(28,36,34,.15);font:400 16px/1.5 "Albert Sans"}
.pd-facts div:last-child{border-bottom:1px solid rgba(28,36,34,.15)}
.pd-facts dt{color:rgba(28,36,34,.6)}
.pd-facts dd{text-align:right}
/* the design has one full-width CTA; Buy now is kept as the secondary button so the
   existing buyNow() flow survives (see AGENTS/AGENT_LOG) */
.pd-cta{display:flex;flex-direction:column;gap:12px;--d:.65s}
.pd-add{width:100%;border:0;cursor:pointer;font-family:"Albert Sans"}
.pd .btn2{width:100%;height:52px;background:none;cursor:pointer;font-family:"Albert Sans"}
.pd-about{display:grid;grid-template-columns:704fr 640fr;gap:clamp(48px,5vw,96px);align-items:start}
/* a product with no description keeps "How it works" in the right-hand column's width */
.pd-about-solo{grid-template-columns:1fr}
.pd-about-solo .pd-how{max-width:640px}
.pd-ab{display:flex;flex-direction:column;gap:24px;min-width:0}
.pd-ab .h2{--d:0s}
.pd-ab .body-l{display:flex;flex-direction:column;gap:25px}
/* descriptions come from the DB as free HTML — keep it readable inside the theme */
.pd-ab .body-l :where(h1,h2,h3,h4,h5,h6){font:500 22px/1.3 Satoshi}
.pd-ab .body-l :where(ul,ol){display:flex;flex-direction:column;gap:8px;padding-left:20px}
.pd-ab .body-l :where(ul){list-style:disc}
.pd-ab .body-l :where(ol){list-style:decimal}
.pd-ab .body-l :where(a){text-decoration:underline;text-underline-offset:3px}
.pd-how{display:flex;flex-direction:column;gap:24px}
.pd-how .lab{color:var(--pine)}
.pd-steps{list-style:none}
.pd-steps li{display:flex;gap:24px;padding:20px 0;border-top:1px solid rgba(28,36,34,.15)}
.pd-steps li:last-child{border-bottom:1px solid rgba(28,36,34,.15)}
.pd-steps .n{font:500 13px/1.2 "Albert Sans";letter-spacing:.12em;color:var(--fjord);padding-top:2px}
.pd-steps h3{font:500 20px/1.3 Satoshi;margin-bottom:4px}
.pd-steps p{font:400 16px/1.5 "Albert Sans";color:rgba(28,36,34,.7)}

/* ---------- related rail ---------- */
.pd-rel{padding:80px var(--m)}
.pd-rel .head{margin-bottom:56px}
.pd-relnav{display:flex;align-items:center;gap:32px}
.pd-relnav .ul{font:500 15px/1.2 "Albert Sans";letter-spacing:.04em}
.pd-car{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 96px) / 4);gap:32px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.pd-car::-webkit-scrollbar{display:none}
.pd-car .pc{scroll-snap-align:start}
.pd-car .pc h3 a{transition:opacity .3s}
.pd-car .pc h3 a:hover{opacity:.7}

/* product cards (prototype .pc) */
.pc{display:flex;flex-direction:column;gap:20px;align-items:flex-start;min-width:0}
.pc .im{display:block;position:relative;width:100%;height:clamp(320px,calc(100vh - 420px),450px);overflow:hidden;background:#e8e8e3}
.pc .im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.4s var(--ex);pointer-events:none}
.pc:hover .im img{transform:scale(1.04)}
.pc .tr{display:flex;justify-content:space-between;align-items:flex-start;width:100%;gap:16px}
.pc h3{font:500 22px/1.3 Satoshi;margin-bottom:6px}
.pc .pr{font:500 20px/1.3 Satoshi;white-space:nowrap}
.pc .btn2{background:none;cursor:pointer;font-family:"Albert Sans"}

@media (max-width:1280px){
  .pd-car{grid-auto-columns:calc((100% - 64px) / 3)}
}
@media (max-width:1100px){
  .pd-grid,.pd-about{grid-template-columns:1fr 1fr}
  .pd-car{grid-auto-columns:calc((100% - 32px) / 2.25)}
}
@media (max-width:760px){
  .pd{padding:0 0 40px;gap:0}
  .pd-bc{display:none}
  .pd-grid{grid-template-columns:1fr;gap:32px}
  .pd-im{aspect-ratio:auto;height:400px}
  .pd-dt{padding:0 24px}
  .pd-hd h1{font-size:40px;line-height:1.2;letter-spacing:-.02em}
  .pd-about{grid-template-columns:1fr;gap:32px;padding:40px 24px}
  .pd-ab .h2{font-size:32px;line-height:1.3}
  .pd-rel{padding:40px 0 40px 24px}
  .pd-rel .head{margin-bottom:32px;padding-right:24px;flex-direction:column;align-items:flex-start;gap:24px}
  .pd-relnav{width:100%;justify-content:space-between}
  .pd-car{grid-auto-columns:280px;gap:16px;padding-right:24px;scroll-padding-left:0}
  .pd-car .pc{gap:16px}
  .pd-car .pc .tr{flex-direction:column;gap:6px}
  .pd-car .pc h3{font-size:20px}
  .pd-car .pc .btn2{width:100%}
}
