/* =========================================================================
   The Peaks – shop additions (cart page, checkout, gate) on top of peaks.css
   ========================================================================= */

.logo-svg { display: block; aspect-ratio: 2280 / 680; }
.i-star { display: inline-block; vertical-align: -.05em; }
main { min-height: 50vh; }
.wrap-pad { padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }

/* ---------- home ---------- */
.shop-anchor { scroll-margin-top: var(--header-h); }
a.chip { display: inline-flex; align-items: center; }
.home-tools.chips { justify-content: flex-start; }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.home-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 0 var(--gutter) 18px; }
.media > img.is-contain, .pdp-media > img.is-contain, .line-thumb > img.is-contain { object-fit: contain; padding: 8%; }
.card-swatches span {
  width: 12px; height: 12px; border-radius: 50%; background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(44, 52, 70, .2);
}
/* our packshots already sit on the tile colour, so they fill the whole tile */
.cat .cat-visual { inset: 0; }
.cat .cat-visual > img { object-fit: cover; }

/* ---------- footer brand column (instead of the newsletter) ---------- */
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 420px; }
.footer-brand .logo-svg { width: 180px; height: auto; }
.footer-brand p { font-size: 13px; color: var(--ink-2); }

/* ---------- product page ---------- */
.pdp-form { display: grid; gap: 14px; }
.color-grid label { position: relative; cursor: pointer; }
.color-grid input, .size-grid input { position: absolute; opacity: 0; pointer-events: none; }
.color-grid .dot {
  --ring: transparent;
  display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(44, 52, 70, .2), 0 0 0 2px var(--white), 0 0 0 3px var(--ring);
  transition: box-shadow .2s;
}
.color-grid label:hover .dot { --ring: var(--line-2); }
.color-grid input:checked + .dot { --ring: var(--ink); }
.color-grid input:focus-visible + .dot { outline: 2px solid var(--ice); outline-offset: 4px; }
.size-grid label { position: relative; display: block; border-right: 1px solid var(--line-2); cursor: pointer; }
.size-grid label:last-child { border-right: 0; }
.size-grid span {
  position: relative; display: grid; place-items: center; height: 44px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; transition: background-color .2s, color .2s;
}
.size-grid label:hover span { background: var(--tile); }
.size-grid input:checked + span { background: var(--ink); color: var(--white); }
.size-grid input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: -2px; }
.size-grid input:disabled + span { cursor: not-allowed; color: var(--ink-3); background: repeating-linear-gradient(-55deg, transparent 0 6px, rgba(44, 52, 70, .05) 6px 7px); }
.size-grid input:disabled + span::after { content: ""; position: absolute; left: 30%; right: 30%; top: 50%; height: 1px; background: var(--ink-3); opacity: .7; }
@media (max-width: 420px) { .size-grid { grid-template-columns: repeat(min(var(--n, 6), 4), minmax(0, 1fr)); } .size-grid label { border-bottom: 1px solid var(--line-2); } }

/* ---------- notices ---------- */
.notice, .error { padding: 12px 14px; font-size: 12px; line-height: 1.5; }
.notice { background: var(--ice-soft); color: var(--ice-ink); }
.notice a { text-decoration: underline; text-underline-offset: 3px; }
.error { background: #fdeced; color: #b3303a; }

/* ---------- cart & checkout pages ---------- */
.shop-page { padding-bottom: 72px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 var(--gutter); }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 56px; } }
.panel { align-self: start; display: grid; gap: 12px; padding: 22px; background: var(--tile); }
@media (min-width: 1000px) { .panel { position: sticky; top: calc(var(--header-h) + 16px); } }
.panel-title { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.cart-page .lines { padding: 0; border-top: 1px solid var(--line); }
.cart-page .line { grid-template-columns: 96px minmax(0, 1fr); }
.line-actions form { display: contents; }
.qty-value { padding: 0 4px; }
.empty-state { display: grid; justify-items: start; gap: 22px; padding: 24px var(--gutter) 80px; }
.empty-state p { font-size: clamp(22px, 3vw, 36px); font-weight: 500; letter-spacing: -.02em; }

.steps { display: flex; gap: 2px; padding: 0 var(--gutter); margin: 0 0 28px; counter-reset: step; }
.steps li {
  flex: 1; padding: 10px 0; border-top: 2px solid var(--line);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.steps li.done { border-color: var(--ink-2); color: var(--ink-2); }
.steps li.current { border-color: var(--ink); color: var(--ink); }
.steps li span { margin-right: 8px; font-variant-numeric: tabular-nums; }

.form-card { display: grid; gap: 16px; align-content: start; }
.form-title { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-zip { grid-template-columns: 1fr 2fr; }
@media (max-width: 599px) { .row, .row-zip { grid-template-columns: 1fr; gap: 16px; } }
.field { display: grid; gap: 7px; }
.field > span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .gate-form input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--white);
  font-size: 14px; outline: none; transition: border-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 18px center, right 14px center; background-size: 4px 4px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .gate-form input:focus { border-color: var(--ink); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }

.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--tile); }
.choice input, .check input { accent-color: var(--ink); width: 16px; height: 16px; flex: none; margin: 0; }
.choice-body { display: grid; gap: 2px; font-size: 13px; }
.choice-body strong { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.choice-body small { color: var(--ink-3); font-size: 11.5px; }
.choice .num { margin-left: auto; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 2px; }

.summary-items { display: grid; }
.summary-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 12px; }
.summary-items img { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--white); }
.summary-name { display: grid; gap: 2px; }
.summary-name strong { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.summary-name small { color: var(--ink-3); }
.totals { display: grid; gap: 8px; margin: 4px 0 0; font-size: 12.5px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt small { display: block; color: var(--ink-3); font-size: 11px; }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { padding-top: 12px; border-top: 1px solid var(--ink); font-size: 14px; font-weight: 700; }
address { font-style: normal; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
address strong { color: var(--ink); }

.success { display: grid; justify-items: start; gap: 14px; padding: 8px var(--gutter) 28px; }
.success .i-star { width: 28px; height: 28px; color: var(--ice); }
.narrow { max-width: 760px; }

/* ---------- password gate: the hero photo, the form where the CTA sits ---------- */
.gate .hero { margin-top: 0; height: 100svh; }
.gate .hero-eyebrow { font-size: 11px; }
.gate-form {
  position: absolute; left: 50%; top: calc(var(--logo-mid) + var(--img-h) * var(--logo-half) + 30px); translate: -50% 0;
  display: grid; gap: 10px; width: min(380px, calc(100% - 2 * var(--gutter))); pointer-events: auto;
}
.gate-row { display: flex; }
.gate-form input { flex: 1; min-width: 0; border-right: 0; background: rgba(255, 255, 255, .7); }
.gate-form .btn { flex: none; }
.gate-text { text-align: center; font-size: 12px; color: var(--ink-2); }

/* ---------- info pages (FAQ) and order tracking ---------- */
.prose details { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.prose details:first-of-type { border-top: 1px solid var(--line-2); }
.prose summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: "+"; font-weight: 400; }
.prose details[open] summary::after { content: "–"; }
.prose details p { margin: 10px 0 0; }
.prose ol { padding-left: 1.2em; display: grid; gap: 12px; }
.tracking { display: grid; gap: 10px; justify-items: start; margin: 0 var(--gutter) 24px; padding: 22px; border: 1px solid var(--line-2); }
.tracking-status { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tracking-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ice); }
.tracking-dot.is-shipped { background: #2e9e63; }

/* ---------- product description ---------- */
.pdp-desc { display: grid; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); padding-top: 6px; }
.pdp-desc ul { list-style: none; display: grid; gap: 4px; padding: 0; margin: 0; }
.pdp-desc li { padding-left: 14px; position: relative; }
.pdp-desc li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 1px; background: var(--ink-2); }
.pdp-desc-note { font-size: 11.5px; color: var(--ink-3); }
.summary-name small + small { margin-top: 1px; }
.price-info { display: grid; gap: 6px; padding: 12px 14px; background: var(--white); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.price-info ul { list-style: disc; padding-left: 1.1em; display: grid; gap: 4px; margin: 0; }

/* ---------- collections on the home grid ---------- */
.collection + .collection { margin-top: clamp(28px, 4vw, 56px); }
.collection-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--gutter) 12px; }
.collection-title { font-size: clamp(18px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; }
/* few pieces per design: fewer, bigger columns instead of empty cells (4 columns from 4 pieces on) */
@media (min-width: 700px) { .collection .grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }

/* ---------- error pages ---------- */
.error-page { display: grid; justify-items: start; gap: 14px; padding: clamp(32px, 8vw, 96px) var(--gutter) clamp(32px, 6vw, 72px); }
.error-code { font-size: clamp(88px, 22vw, 240px); font-weight: 700; letter-spacing: -.06em; line-height: .85; color: var(--ice); }
.error-title { font-size: clamp(26px, 4vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.error-text { max-width: 46ch; font-size: 15px; color: var(--ink-2); }
.error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ---------- cookie notice ---------- */
.cookie-notice[hidden] { display: none; }
.cookie-notice {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px));
  display: grid; gap: 12px; padding: 16px; background: var(--white); border: 1px solid var(--line-2);
  box-shadow: 0 8px 32px rgba(44, 52, 70, .16); font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
}
.cookie-notice a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.cookie-notice .btn { justify-self: start; }
