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

/* ---------- type primitives (copied from the design system) ---------- */
.h1{font:500 calc(56px * var(--s))/1.4 Satoshi}
.h2{font:500 calc(40px * var(--s))/1.4 Satoshi}

/* ---------- cart ---------- */
.ca{padding:48px var(--m) 80px;display:flex;flex-direction:column;gap:48px;background:var(--snow)}
.ca h1{--d:.15s}
.ca-grid{display:grid;grid-template-columns:minmax(0,1.625fr) minmax(360px,1fr);gap:clamp(48px,6.6vw,96px);align-items:start}
.ca-items{min-width:0}
.ca-rule{height:1px;background:rgba(28,36,34,.15)}
.ca-row{display:flex;gap:32px;align-items:flex-start;padding:24px 0;border-bottom:1px solid rgba(28,36,34,.15);transition:opacity .45s var(--ou),transform .6s var(--ex)}
.ca-row.out{opacity:0;transform:translateX(-12px)}
.ca-row .im{position:relative;display:block;width:120px;height:150px;flex:none;overflow:hidden;background:#e8e8e3}
.ca-row .im img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ex)}
.ca-row .im:hover img{transform:scale(1.05)}
.ca-row .inf{flex:1;min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.ca-row h2{font:500 22px/1.3 Satoshi}
.ca-row .mt{font:400 14px/1.5 "Albert Sans";opacity:.6;margin-top:8px;white-space:pre}
.ca-row .bt{display:flex;justify-content:space-between;align-items:center;gap:16px}
.ca-row .rm{font:400 14px/1.5 "Albert Sans";text-decoration:underline;text-underline-offset:3px;transition:opacity .3s}
.ca-row .rm:hover{opacity:.6}
.ca-row .pr{font:400 17px/1.5 "Albert Sans";white-space:nowrap}
.ca-row .bt .pr{display:none}
/* quantity stepper: the old cart updated quantity per row, the design has no control,
   so functionality wins and it is styled to the row */
.ca-qty{display:inline-flex;align-items:center;height:40px;border:1px solid rgba(28,36,34,.25);margin-top:16px}
.ca-qb{width:36px;height:38px;border:0;background:none;cursor:pointer;font:500 18px/1 "Albert Sans";color:var(--pine);padding:0;transition:background .25s}
.ca-qb:hover{background:rgba(28,36,34,.06)}
.ca-qb:focus-visible{outline:2px solid var(--pine);outline-offset:-2px}
.ca-qi{width:46px;height:38px;border:0;border-left:1px solid rgba(28,36,34,.15);border-right:1px solid rgba(28,36,34,.15);background:none;text-align:center;font:400 15px/1.5 "Albert Sans";color:var(--pine);outline:0;padding:0}
.ca-more{padding-top:32px}
.ca-more .lk{font:500 15px/1.2 "Albert Sans";letter-spacing:.04em}

/* ---------- summary ---------- */
/* the smooth-scroll track is transformed, so sticky cannot work there; cart.js
   translates the summary per frame instead, exactly like cart.html's hook. */
.ca-sum{background:var(--pine);color:var(--snow);padding:48px;display:flex;flex-direction:column;gap:48px;align-self:start}
html.native .ca-sum{position:sticky;top:145px}
.ca-tot{display:flex;flex-direction:column;gap:24px}
.ca-sum h2{font:500 22px/1.3 Satoshi}
.ca-line{display:flex;justify-content:space-between;gap:16px;font:400 16px/1.5 "Albert Sans"}
.ca-line span:first-child{opacity:.8}
.ca-sum .rl{height:1px;background:rgba(244,243,239,.15)}
.ca-big{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;font:400 16px/1.5 "Albert Sans"}
.ca-big strong{font:500 32px/1.3 Satoshi}
/* the old brand sheet still ships `.b1{right:102rem;top:5rem}` (offsets for the
   decorative b1.svg); with .b1 relatively positioned those win and push every
   CTA ~1632px off-screen. Neutralise them on this page only. */
.ca .b1{right:auto;top:auto}
.ca-sum .b1{width:100%}
/* the guest CTA is a <button>, so it still carries the UA box/border and arrow cursor */
.ca-sum button.b1{border:0;cursor:pointer;font-family:"Albert Sans"}
.ca-pay{display:flex;align-items:center;gap:12px;font:400 14px/1.5 "Albert Sans"}
.ca-pay span{opacity:.7}

/* coupon form — kept from the old page, restyled for the dark panel */
.ca-cp{display:flex;flex-direction:column;gap:12px;border-top:1px solid rgba(244,243,239,.15);padding-top:24px}
.ca-cp-lab{font:400 14px/1.5 "Albert Sans";color:rgba(244,243,239,.7)}
.ca-cp-code{font:500 15px/1.2 "Albert Sans";letter-spacing:.04em}
.ca-cp form{display:flex;gap:8px}
.ca-cp input{flex:1;min-width:0;height:44px;background:none;border:1px solid rgba(244,243,239,.35);color:var(--snow);padding:0 12px;font:400 15px "Albert Sans";outline:0;transition:border-color .3s}
.ca-cp input:focus{border-color:var(--snow)}
/* legacy theme ships `::placeholder{color:#07180E !important}` — override it or
   the coupon hint is near-black on the pine panel */
.ca-cp input::placeholder{color:rgba(244,243,239,.55)!important;opacity:1!important}
.ca-cp button{height:44px;padding:0 16px;background:var(--snow);color:var(--pine);border:0;font:500 14px "Albert Sans";letter-spacing:.04em;cursor:pointer;transition:background .3s}
.ca-cp button:hover{background:var(--lichen)}
.ca-cp button:focus-visible{outline:2px solid var(--snow);outline-offset:2px}

/* ---------- empty ---------- */
.ca-empty{display:none;flex-direction:column;align-items:flex-start;gap:32px;padding:32px 0 24px;border-top:1px solid rgba(28,36,34,.15)}
.ca-empty p{font:400 17px/1.5 "Albert Sans";opacity:.8}
.ca.empty .ca-grid{display:none}
.ca.empty .ca-empty{display:flex}

@media (max-width:960px){
  .ca-grid{grid-template-columns:1fr;gap:32px}
  html.native .ca-sum{position:static}
}
@media (max-width:760px){
  .ca{padding:40px 24px;gap:48px}
  .ca h1{font-size:40px;line-height:1.2;letter-spacing:-.02em}
  .ca-row{gap:20px;padding:20px 0}
  .ca-row .im{width:80px;height:100px}
  .ca-row .inf{justify-content:flex-start}
  .ca-row>.pr{display:none}
  .ca-row .bt .pr{display:block}
  .ca-row .mt{white-space:pre-wrap}
  .ca-sum{padding:32px;gap:24px}
  .ca-big strong{font-size:26px}
}
