/* The Booty Project - storefront styles */
:root {
  --bg: #f5f2ee;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #3b3734;
  --muted: #7b736c;
  --line: #e2dcd4;
  --line-strong: #cfc7bd;
  --accent: #c98b78;      /* clay peach - used sparingly */
  --accent-soft: #f3e3dc;
  --ok: #2f6b4a;
  --warn: #a5582b;
  --dark: #121212;
  --radius: 4px;
  --wrap: 1240px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Modak', 'Inter', sans-serif;
  --ds: 1;            /* heading size scale per font */
  --d-lh: .92;
  --d-ls: .01em;
  --d-tt: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 400; line-height: var(--d-lh); letter-spacing: var(--d-ls); text-transform: var(--d-tt); margin: 0; color: var(--ink); }
.h2 { font-size: calc(clamp(40px, 6vw, 68px) * var(--ds)); }
.h3 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 24px; }
.eyebrow, .label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.eyebrow-light { color: rgba(255,255,255,.8); }
.lead { font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 54ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: var(--radius); cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: #2b2b2b; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--accent-soft); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; color: inherit; }

/* ---------- announce + header ---------- */
.announce { background: var(--dark); color: #e9e4de; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; overflow: hidden; }
.announce-track { display: flex; justify-content: center; gap: 48px; padding: 9px 16px; white-space: nowrap; }
@media (max-width: 899px) {
  .announce-track { justify-content: flex-start; width: max-content; animation: ticker 26s linear infinite; }
}
@media (min-width: 900px) {
  .announce-track:not(.is-long) .announce-dup { display: none; }
  .announce-track.is-long { justify-content: flex-start; width: max-content; animation: ticker 40s linear infinite; }
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245,242,238,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.logo-peach { width: 30px; height: 30px; flex: none; transition: transform .3s; }
.logo:hover .logo-peach { transform: rotate(-8deg) scale(1.06); }
.logo-emblem { display: none; height: 34px; width: auto; }
@media (max-width: 599px) { .logo-peach, .logo > span { display: none; } .logo-emblem { display: block; } }
.peach-mark { display: block; width: 56px; height: 56px; margin: 0 auto 16px; }
.peach-left { margin-left: 0; }
.main-nav { display: flex; gap: 28px; margin-left: 40px; }
.main-nav a { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.currency { border: 1px solid var(--line-strong); background: transparent; border-radius: var(--radius); padding: 6px 8px; font-size: 12px; font-weight: 500; cursor: pointer; }
.bag-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.bag-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--line-strong); color: var(--ink); font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; }
.bag-count.has { background: var(--ink); color: #fff; }
.menu-btn { display: none; margin-left: -8px; }
@media (max-width: 899px) {
  .menu-btn { display: inline-grid; }
  .logo { font-size: 12px; letter-spacing: .2em; }
  .main-nav { position: fixed; inset: 103px 0 auto 0; margin: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-open .main-nav { transform: none; opacity: 1; pointer-events: auto; }
}
@media (max-width: 420px) { .logo { font-size: 11px; letter-spacing: .14em; } .currency { padding: 5px 4px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.65) 100%); }
.hero-content { position: relative; padding-bottom: 64px; padding-top: 120px; }
.hero-title { color: #fff; font-size: calc(clamp(58px, 10vw, 128px) * var(--ds)); margin-bottom: 20px; }
.hero-sub { max-width: 46ch; font-size: 17px; color: rgba(255,255,255,.88); margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img-2 { display: none; }
@media (min-width: 900px) {
  /* Wide screens: copy on the left, two full-length shots on the right, so the lower body is never cropped. */
  .hero { align-items: center; min-height: 0; height: min(86vh, 820px); }
  .hero-img, .hero-img-2 { display: block; position: absolute; top: 0; height: 100%; width: 28%; object-fit: cover; }
  .hero-img { left: 44%; object-position: 50% 50%; }
  .hero-img-2 { left: 72%; object-position: 50% 70%; }
  .hero-shade { background: linear-gradient(90deg, var(--dark) 0%, var(--dark) 44%, rgba(18,18,18,0) 52%); }
  .hero-content { padding-top: 64px; padding-bottom: 64px; }
  .hero-content > * { max-width: 560px; }
  .hero-title { font-size: calc(clamp(64px, 6.4vw, 104px) * var(--ds)); }
}

/* ---------- usp strip ---------- */
.usp-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.usp-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.usp { display: flex; gap: 12px; padding: 22px 12px 22px 0; }
.usp-k { font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: .1em; padding-top: 2px; }
.usp p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.usp strong { display: block; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
@media (min-width: 900px) { .usp-grid { grid-template-columns: repeat(4, 1fr); } .usp { padding: 28px 24px 28px 0; } }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 72px; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 36px; }
.section-note { max-width: 40ch; margin: 0; }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 40px 20px; } .product-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #e8e2db; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
.card-alt { opacity: 0; }
@media (hover: hover) { .card:hover .card-alt { opacity: 1; } .card:hover .card-media img { transform: scale(1.02); } }
.tag { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; }
.tag-low { background: var(--ink); color: #fff; }
.tag-pre { background: var(--accent-soft); }
.card-body { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; }
.card-name { margin: 0; font-weight: 600; font-size: 14px; }
.card-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.card-price { margin: 0; font-size: 14px; font-weight: 500; white-space: nowrap; }
.card-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.dot-more { font-size: 11px; color: var(--muted); }
@media (max-width: 599px) { .card-body { flex-direction: column; gap: 4px; } }

/* ---------- split ---------- */
.split { display: grid; background: var(--surface); }
.split-media img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; object-position: 50% 60%; }
.split-copy { padding: 56px 16px; }
.split-copy .h2 { margin-bottom: 20px; }
.points { list-style: none; counter-reset: p; padding: 0; margin: 28px 0 32px; }
.points li { counter-increment: p; position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--line); color: var(--ink-2); }
.points li::before { content: '0' counter(p); position: absolute; left: 0; top: 17px; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.points strong { color: var(--ink); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-media img { max-height: none; min-height: 720px; }
  .split-copy { padding: 96px 8vw 96px 72px; align-self: center; }
}

/* ---------- founder ---------- */
.founder { background: #f6e6e6; }
.founder-inner { display: grid; gap: 36px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.founder-media img { width: 100%; max-width: 440px; aspect-ratio: 446 / 796; object-fit: cover; margin: 0 auto; }
.founder-copy .h2 { margin-bottom: 16px; }
.founder-tag { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
.founder-copy .lead { max-width: 46ch; }
.founder-copy .btn { margin-top: 12px; }
@media (min-width: 900px) {
  .founder-inner { grid-template-columns: 5fr 4fr; gap: 80px; padding-top: 96px; padding-bottom: 96px; }
  .founder-media { order: 2; }
  .founder-media img { max-width: 420px; }
}

/* ---------- colour story ---------- */
.colour-story { background: var(--dark); color: #d9d3cc; }
.colour-inner { display: grid; gap: 40px; padding-top: 72px; padding-bottom: 72px; align-items: center; }
.colour-copy p { max-width: 44ch; margin: 20px 0 28px; }
.light { color: #fff; }
.colour-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 900px) { .colour-inner { grid-template-columns: 5fr 6fr; gap: 80px; padding-top: 104px; padding-bottom: 104px; } }

/* ---------- gallery ---------- */
.gallery-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) { .gallery-row { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

/* ---------- forms ---------- */
.feedback { background: var(--accent-soft); padding: 72px 0; }
.feedback-inner { display: grid; gap: 40px; }
.feedback-copy .h2 { margin-bottom: 20px; }
@media (min-width: 900px) { .feedback { padding: 104px 0; } .feedback-inner { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.form-card { background: var(--surface); padding: 24px 20px; display: grid; gap: 14px; }
@media (min-width: 600px) { .form-card { padding: 32px; } }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field[hidden] { display: none; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 18px 0; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.notice { padding: 12px 14px; background: var(--surface); border-left: 3px solid var(--ink); font-size: 14px; margin-bottom: 20px; }
.notice p { margin: 2px 0; }
.notice-ok { border-color: var(--ok); }
.notice-err { border-color: #b3261e; background: #fbeeed; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- product page ---------- */
.crumbs { padding-top: 20px; font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 16px; padding-bottom: 40px; }
.pdp > *, .checkout > * { min-width: 0; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; padding-bottom: 64px; } .pdp-info { position: sticky; top: 88px; align-self: start; } }
.pdp-main { position: relative; aspect-ratio: 3 / 4; background: #e8e2db; overflow: hidden; margin: 0 -16px; }
@media (min-width: 768px) { .pdp-main { margin: 0; } }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); display: grid; place-items: center; cursor: pointer; }
.pdp-nav.prev { left: 12px; } .pdp-nav.next { right: 12px; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 64px; aspect-ratio: 3 / 4; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .65; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { opacity: 1; border-color: var(--ink); }
.pdp-title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 8px; }
.pdp-price { font-size: 20px; font-weight: 500; margin: 0 0 24px; }
.pdp-price .fine { display: inline; margin-left: 6px; }
.opt { margin-bottom: 20px; }
.opt-label { font-size: 13px; margin: 0 0 10px; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; }
.swatch.is-active::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--ink); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { min-width: 56px; height: 46px; padding: 0 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 500; cursor: pointer; position: relative; }
.size.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.size.is-pre::after { content: ''; position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.stock-line { font-size: 13px; font-weight: 500; margin: 4px 0 12px; display: flex; align-items: center; gap: 8px; }
.stock-line::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-line.ok { color: var(--ok); } .stock-line.low { color: var(--warn); } .stock-line.pre { color: var(--accent); }
.preorder-box { background: var(--accent-soft); padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--ink-2); margin: 0 0 16px; }
.preorder-box[hidden] { display: none; }
.buy-row { display: flex; gap: 10px; margin: 8px 0 20px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.qty button { width: 40px; height: 48px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 36px; border: 0; text-align: center; -moz-appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm button { width: 30px; height: 32px; font-size: 15px; }
.qty-sm span { min-width: 20px; text-align: center; font-size: 13px; }
.pdp-perks { list-style: none; padding: 0; margin: 0 0 24px; font-size: 13px; color: var(--ink-2); }
.pdp-perks li { padding: 6px 0 6px 22px; position: relative; }
.pdp-perks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 10px; height: 5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-size: 18px; font-weight: 400; line-height: 1; }
.acc[open] summary::after { content: '−'; }
.acc p, .acc ul { margin: 0 0 16px; font-size: 14px; color: var(--ink-2); }
.acc ul { padding-left: 18px; }

/* ---------- bag drawer ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 61; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease; }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-title { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .btn { margin-top: 14px; }
.drawer-foot[hidden] { display: none; }
.bag-empty { text-align: center; padding: 48px 0; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 72px; aspect-ratio: 3 / 4; object-fit: cover; }
.bag-line-name { margin: 0; font-weight: 600; font-size: 14px; }
.bag-line-meta { margin: 2px 0 10px; font-size: 12px; color: var(--muted); }
.bag-line-meta .pre { color: var(--accent); font-weight: 600; }
.bag-line-row { display: flex; align-items: center; gap: 14px; }
.bag-line-price { margin: 0; font-size: 14px; font-weight: 500; white-space: nowrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 70; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- checkout ---------- */
.checkout { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 900px) { .checkout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } .checkout-summary { position: sticky; top: 88px; align-self: start; } }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.checkout legend { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; padding: 0; }
.checkout-summary { background: var(--surface); padding: 24px 20px; }
.sum-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum-line img { width: 52px; aspect-ratio: 3 / 4; object-fit: cover; }
.sum-line p { margin: 0; font-weight: 500; }
.sum-rows { padding: 12px 0; display: grid; gap: 8px; font-size: 14px; }
.sum-rows small { color: var(--muted); font-size: 12px; }
.sum-total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.pay-methods { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; display: grid; gap: 8px; }
.pay-methods .label { margin-bottom: 4px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay-opt input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.pay-opt strong { display: block; font-size: 14px; }
.pay-opt small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.bank { background: var(--surface); border: 1px solid var(--line); margin: 24px 0; }
.bank-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bank-row:last-child { border-bottom: 0; }
.bank-row span:first-child { color: var(--muted); font-size: 12px; }
.bank-row strong { font-weight: 600; overflow-wrap: anywhere; }
.bank-row.is-key { background: var(--accent-soft); }
.copy-btn { background: none; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; cursor: pointer; }
@media (max-width: 480px) { .bank-row { grid-template-columns: 1fr auto; } .bank-row span:first-child { grid-column: 1 / -1; } }
.proof-form { background: var(--surface); padding: 20px; display: grid; gap: 14px; margin: 0 0 24px; }
.proof-form input[type=file] { font-size: 14px; }
.checkout-summary .fine.center { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }

/* ---------- order status ---------- */
.order-box { background: var(--surface); padding: 20px; margin: 28px 0 16px; display: grid; gap: 10px; font-size: 14px; }
.order-line { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.progress { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.progress li { border-top: 3px solid var(--line-strong); padding-top: 8px; }
.progress li.done { border-color: var(--ink); color: var(--ink); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.page-order .h2 { margin-bottom: 14px; }

/* ---------- size guide ---------- */
.sg-open { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 500; }
.sg { margin: 24px 0; }
.sg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.unit-toggle button { border: 0; background: #fff; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.unit-toggle button.is-active { background: var(--ink); color: #fff; }
.sg-table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
.sg-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.sg-table th, .sg-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sg-table thead th { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sg-table tbody th { font-weight: 700; text-align: left; padding-left: 16px; }
.sg-table tbody tr:last-child > * { border-bottom: 0; }
.sg-table tr.is-dim { color: #b3aba3; }
.sg-measure { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; margin: 24px 0 8px; }
.sg-figure { width: 90px; }
.sg-measure ol { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 8px; }
.modal { border: 0; padding: 0; width: min(640px, calc(100% - 24px)); max-height: calc(100% - 48px); background: var(--bg); color: var(--ink); }
.modal::backdrop { background: rgba(0,0,0,.45); }
.modal-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 20px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 1; }
.modal-body { padding: 0 20px 8px; }

/* ---------- prose (terms) ---------- */
.prose h1 { margin-bottom: 32px; }
.prose h2 { font-size: 15px; font-weight: 700; margin: 32px 0 8px; }
.prose p { color: var(--ink-2); margin: 0 0 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #bdb5ad; padding: 64px 0 24px; font-size: 14px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid a { display: block; text-decoration: none; padding: 4px 0; color: #e9e4de; overflow-wrap: anywhere; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid .label { color: #8d857e; }
.footer-grid .muted { color: #9c948c; max-width: 34ch; }
.social { display: flex; gap: 14px; margin-top: 16px; }
.footer-grid .social a { display: inline-flex; align-items: center; gap: 8px; padding: 0; }
.footer-logo { display: flex; align-items: center; gap: 18px; color: #fff; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; font-size: 14px; margin: 0 0 12px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #2c2a28; font-size: 12px; color: #8d857e; }

/* shipping quoted per order */
.quote-box { background: var(--accent-soft); padding: 14px 16px; font-size: 13px; line-height: 1.55; margin: 16px 0; }
.quote-box strong { display: block; margin-bottom: 4px; }
.quote-summary { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; margin: 20px 0; }
.pay-choice { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.pay-methods[hidden], .quote-box[hidden] { display: none; }
