/* ============================================================================
   Satori Shop — design system
   Luxury linen showroom: warm off-white base, generous whitespace, restrained
   type, Satori navy ink + gold accents. Playfair Display for display headings,
   a crisp system sans for UI. Modeled on the editorial feel of fine-linen houses.
   ========================================================================== */
:root {
  --navy:      #0A1628;   /* primary ink */
  --ink:       #1C2530;
  --ink-soft:  #5B6470;   /* body text */
  --ink-mute:  #8A929C;   /* captions / meta */
  --gold:      #C9A84C;
  --gold-dark: #A8862F;
  --gold-soft: #EFE3BE;
  --gold-light:#E8C97A;
  --line:      #E7E2D8;   /* hairline dividers */
  --bg:        #FAF8F4;   /* warm off-white page */
  --surface:   #FFFFFF;   /* cards */
  --surface-2: #F3F0E9;   /* image placeholders */
  --linen-a:   #F1ECE3;
  --linen-b:   #E8E2D6;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(16,22,40,.04), 0 8px 30px rgba(16,22,40,.06);
  --shadow-hover: 0 2px 6px rgba(16,22,40,.06), 0 18px 50px rgba(16,22,40,.10);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --maxw: 1240px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.65; color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); font-weight: 500; line-height: 1.2; letter-spacing: .2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold-dark); }
.muted { color: var(--ink-mute); }
.mono { font-family: var(--font-serif); color: rgba(10,22,40,.10); font-weight: 600; }

/* ── Preview ribbon (dev only) ────────────────────────────────────────────── */
.ribbon { background: var(--navy); color: #fff; text-align: center; font-size: 12px; letter-spacing: .4px; padding: 7px 12px; }
.ribbon b { color: var(--gold-light); font-weight: 600; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,248,244,.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { font-family: var(--font-serif); font-size: 26px; letter-spacing: 6px; text-transform: uppercase; color: var(--navy); font-weight: 600; white-space: nowrap; }
.brand small { display: block; font-family: var(--font-sans); font-size: 9px; letter-spacing: 3.4px; color: var(--gold-dark); font-weight: 600; margin-top: -2px; }

/* primary nav w/ dropdowns */
.mainnav { display: flex; gap: 30px; align-items: center; }
.mainnav > .navitem { position: relative; }
.navitem > a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; padding: 26px 0; transition: color .2s var(--ease); }
.navitem > a:hover, .navitem.open > a { color: var(--navy); }
.navitem .dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover); padding: 12px; opacity: 0; visibility: hidden; transition: all .2s var(--ease);
}
.navitem:hover .dropdown, .navitem.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 9px 14px; font-size: 14px; color: var(--ink-soft); border-radius: 8px; transition: background .15s, color .15s; }
.dropdown a:hover { background: var(--surface-2); color: var(--navy); }
.dropdown .all { color: var(--gold-dark); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.iconbtn { background: none; border: none; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px; }
.iconbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.iconbtn:hover { color: var(--gold-dark); }
.cart-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 74vh; display: flex; align-items: center;
  background: linear-gradient(120deg, var(--linen-a), var(--linen-b) 60%, #DED7C8);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 500px at 70% 30%, rgba(255,255,255,.5), transparent 70%); pointer-events: none; }
.hero.has-img { background-size: cover; background-position: center; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,22,40,.34), rgba(10,22,40,.05) 60%); }
.hero-inner { position: relative; z-index: 2; max-width: 620px; padding: 40px 0; }
.hero.has-img .hero-inner { color: #fff; }
.hero.has-img h1, .hero.has-img .eyebrow { color: #fff; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 16px 0 20px; }
.hero p { font-size: 19px; max-width: 500px; color: var(--ink-soft); }
.hero.has-img p { color: rgba(255,255,255,.9); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn { display: inline-block; padding: 15px 34px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: .5px; border: 1px solid transparent; transition: all .2s var(--ease); cursor: pointer; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.hero.has-img .btn-ghost { border-color: #fff; color: #fff; }
.hero.has-img .btn-ghost:hover { background: #fff; color: var(--navy); }
.hero .btn { margin-top: 30px; }

/* ── Section scaffolding ─────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 12px; font-size: 16px; }
.section-head.row { display: flex; text-align: left; align-items: baseline; justify-content: space-between; max-width: none; }
.section-head .link { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }

/* ── Category tiles (home) ───────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tile { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; box-shadow: var(--shadow); background: linear-gradient(160deg, var(--linen-a), var(--linen-b)); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.tile.has-img { background-size: cover; background-position: center; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,.42), transparent 55%); }
.tile-cap { position: relative; z-index: 2; padding: 22px; color: #fff; width: 100%; }
.tile-cap h3 { color: #fff; font-size: 24px; }
.tile-cap span { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; opacity: .85; }
.tile:not(.has-img) .tile-cap { color: var(--navy); }
.tile:not(.has-img) .tile-cap h3 { color: var(--navy); }
.tile:not(.has-img)::after { background: linear-gradient(to top, rgba(255,255,255,.35), transparent 60%); }

/* ── Product grid ────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img { aspect-ratio: 4 / 3.7; display: grid; place-items: center; position: relative; background: var(--surface-2); }
.card-img .mono { font-size: 56px; }
.card-body { padding: 18px 20px 22px; }
.card-body .ptype { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-dark); font-weight: 600; }
.card-body h3 { font-size: 20px; margin: 6px 0 4px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.price { font-size: 15.5px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.tag { font-size: 10.5px; font-weight: 600; letter-spacing: .4px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-mute); white-space: nowrap; }
.tag.made { color: var(--gold-dark); border-color: var(--gold-soft); background: #FCF8EC; }

/* ── Breadcrumb + category page ──────────────────────────────────────────── */
.crumb { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .3px; padding: 26px 0 0; }
.crumb a:hover { color: var(--navy); }
.crumb span { margin: 0 8px; opacity: .5; }
.cat-head { padding: 20px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 40px; text-align: center; }
.cat-head h1 { font-size: clamp(32px, 5vw, 48px); }
.cat-head p { max-width: 560px; margin: 12px auto 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.subnav a { font-size: 13px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); transition: all .18s var(--ease); }
.subnav a:hover, .subnav a.active { border-color: var(--navy); color: var(--navy); }
.empty { text-align: center; color: var(--ink-mute); padding: 60px 0; }

/* ── Product detail ──────────────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; padding: 40px 0 90px; align-items: start; }
.pdp-media { position: sticky; top: 96px; }
.pdp-img { aspect-ratio: 1/1; border-radius: var(--radius); background: var(--surface-2); display: grid; place-items: center; box-shadow: var(--shadow); overflow: hidden; }
.pdp-img .mono { font-size: 120px; }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp-thumb { width: 68px; aspect-ratio: 1/1; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.pdp-info .eyebrow { display: block; margin-bottom: 10px; }
.pdp-info h1 { font-size: 40px; margin-bottom: 10px; }
.pdp-lede { font-size: 16.5px; margin-bottom: 8px; }
.pdp-price { font-size: 26px; color: var(--navy); font-weight: 600; margin: 22px 0 4px; font-variant-numeric: tabular-nums; }
.pdp-price small { font-size: 13px; color: var(--ink-mute); font-weight: 500; }

.optgroup { padding: 24px 0; border-top: 1px solid var(--line); }
.optgroup:first-of-type { margin-top: 14px; }
.optgroup-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.optgroup-head .label { font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--navy); }
.optgroup-head .chosen { font-size: 14px; color: var(--ink-soft); }
.segs { display: flex; flex-wrap: wrap; gap: 10px; }
.seg { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--ink-soft); transition: all .18s var(--ease); }
.seg:hover { border-color: var(--gold); color: var(--navy); }
.seg[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg .delta { color: var(--ink-mute); font-size: 12.5px; margin-left: 6px; }
.seg[aria-pressed="true"] .delta { color: rgba(255,255,255,.7); }
.swatches { display: flex; flex-wrap: wrap; gap: 16px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 58px; background: none; border: none; }
.swatch .chip { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(10,22,40,.12); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.swatch:hover .chip { transform: scale(1.06); }
.swatch[aria-pressed="true"] .chip { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.swatch .nm { font-size: 11.5px; color: var(--ink-soft); text-align: center; line-height: 1.2; }
.swatch[aria-pressed="true"] .nm { color: var(--navy); font-weight: 600; }
.qtyrow { display: flex; align-items: center; gap: 14px; padding: 24px 0 0; border-top: 1px solid var(--line); margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: none; background: var(--surface); font-size: 18px; color: var(--navy); }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy); }
.buy { padding-top: 26px; margin-top: 6px; }
.btn-bag { width: 100%; padding: 17px 24px; border: none; border-radius: 12px; background: var(--gold); color: #fff; font-size: 15.5px; font-weight: 600; letter-spacing: .3px; transition: background .2s var(--ease), transform .12s var(--ease); }
.btn-bag:hover { background: var(--gold-dark); }
.btn-bag:active { transform: scale(.99); }
.buy .note { text-align: center; font-size: 12.5px; color: var(--ink-mute); margin-top: 12px; }

/* ── Editorial / journal strip ───────────────────────────────────────────── */
.editorial { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.jcard .jimg { aspect-ratio: 3/2; border-radius: var(--radius); background: linear-gradient(160deg, var(--linen-a), var(--linen-b)); margin-bottom: 16px; }
.jcard .eyebrow { display: block; margin-bottom: 6px; }
.jcard h3 { font-size: 22px; }
.jcard p { font-size: 14.5px; margin-top: 6px; }

/* ── Split feature (custom services CTA) ─────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .art { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(150deg, #E9E2D4, #D8CFBD); box-shadow: var(--shadow); }
.split h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }

/* ── Drawer (cart) + overlay (search) ────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(10,22,40,.4); opacity: 0; visibility: hidden; transition: opacity .28s var(--ease); z-index: 90; }
.scrim.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 92vw); background: var(--bg); z-index: 100; transform: translateX(100%); transition: transform .32s var(--ease); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(10,22,40,.18); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.xbtn { background: none; border: none; font-size: 22px; color: var(--ink-mute); line-height: 1; }
.xbtn:hover { color: var(--navy); }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item .li-img { width: 64px; aspect-ratio: 1/1; border-radius: 8px; background: var(--surface-2); background-size: cover; background-position: center; }
.line-item h4 { font-size: 15px; font-family: var(--font-sans); color: var(--navy); font-weight: 600; }
.line-item .li-opts { font-size: 12px; color: var(--ink-mute); margin-top: 3px; line-height: 1.5; }
.line-item .li-price { color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.line-item .li-rm { font-size: 12px; color: var(--ink-mute); background: none; border: none; padding: 4px 0; }
.line-item .li-rm:hover { color: #b3402f; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-total .price { font-size: 22px; }

/* search overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(250,248,244,.97); backdrop-filter: blur(6px); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .24s var(--ease); padding-top: 12vh; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.search-box input { width: 100%; border: none; border-bottom: 2px solid var(--navy); background: transparent; font-family: var(--font-serif); font-size: 34px; color: var(--navy); padding: 12px 40px 12px 0; outline: none; }
.search-box input::placeholder { color: var(--ink-mute); }
.search-results { margin-top: 26px; max-height: 60vh; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; }
.search-results a:hover { background: var(--surface); }
.search-results .sr-img { width: 52px; aspect-ratio: 1/1; border-radius: 8px; background: var(--surface-2); background-size: cover; background-position: center; }
.search-close { position: absolute; top: 28px; right: 32px; font-size: 26px; background: none; border: none; color: var(--navy); }

/* ── Forms (account, checkout, content) ─────────────────────────────────── */
.formcard { max-width: 460px; margin: 60px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.formcard h1 { font-size: 30px; text-align: center; margin-bottom: 6px; }
.formcard .sub { text-align: center; margin-bottom: 26px; font-size: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-family: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color .18s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.btn-block { width: 100%; padding: 15px; border: none; border-radius: 10px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .3px; }
.btn-block:hover { background: var(--ink); }
.form-alt { text-align: center; margin-top: 18px; font-size: 14px; }
.form-alt a { color: var(--gold-dark); font-weight: 600; }
.form-msg { text-align: center; font-size: 14px; padding: 10px; border-radius: 8px; margin-bottom: 16px; }
.form-msg.err { background: #FBECEA; color: #A5372A; }
.form-msg.ok { background: #EEF5EC; color: #3B6B3A; }

/* content pages */
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); text-align: center; margin-bottom: 30px; }
.prose h2 { font-size: 26px; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; font-size: 17px; }
.prose ul { margin: 0 0 16px 22px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 66px 0 48px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 260px; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.72); transition: color .15s; }
.footer-col a:hover { color: var(--gold-light); }
.newsletter input { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); border-radius: 8px; color: #fff; font-size: 14px; outline: none; margin-bottom: 10px; }
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter button { width: 100%; padding: 12px; border: none; border-radius: 8px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.newsletter button:hover { background: var(--gold-dark); }
.newsletter .nl-msg { font-size: 12.5px; margin-top: 8px; color: var(--gold-light); min-height: 16px; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.5); }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 14px 24px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transition: all .3s var(--ease); z-index: 120; }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid.g4 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .grid, .journal { grid-template-columns: repeat(2, 1fr); }
  .pdp, .split { grid-template-columns: 1fr; gap: 36px; }
  .pdp-media { position: static; }
  .mainnav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .grid, .grid.g4, .journal, .tiles { grid-template-columns: 1fr; gap: 20px; }
  .hero { min-height: 62vh; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .header-actions .label { display: none; }
}

/* ── Mobile nav drawer ───────────────────────────────────────────────────── */
.mobilenav { position: fixed; inset: 0 0 0 auto; width: min(320px, 88vw); background: var(--bg); z-index: 100; transform: translateX(100%); transition: transform .3s var(--ease); overflow-y: auto; box-shadow: -20px 0 60px rgba(10,22,40,.18); padding: 20px; }
.mobilenav.open { transform: translateX(0); }
.mobilenav .mn-room { padding: 14px 6px 6px; font-family: var(--font-serif); font-size: 20px; color: var(--navy); border-top: 1px solid var(--line); }
.mobilenav .mn-child { display: block; padding: 8px 16px; font-size: 14px; color: var(--ink-soft); }

/* ── Cart / Checkout / Order pages ───────────────────────────────────────── */
.page-head { text-align: center; margin: 8px 0 40px; }
.page-head .eyebrow { display: block; }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); margin-top: 8px; }
.empty-state { text-align: center; padding: 30px 0 90px; }
.empty-state .mono { display: block; }
.empty-state .btn { margin-top: 22px; }

/* shared order-summary card (cart + checkout) */
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 30px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.summary-card h3 { font-size: 20px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; font-size: 15px; }
.summary-row .price { font-variant-numeric: tabular-nums; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 16px; color: var(--navy); font-weight: 600; }
.summary-total .price { font-size: 22px; }
.cart-continue { display: block; text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--gold-dark); font-weight: 600; }
.cart-continue:hover { color: var(--navy); }

/* cart page */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; padding-bottom: 40px; }
.cart-lines { border-top: 1px solid var(--line); }
.cartrow { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cartrow .cr-img { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-sm); background: var(--surface-2); background-size: cover; background-position: center; }
.cartrow .cr-name { display: block; font-family: var(--font-serif); font-size: 20px; color: var(--navy); line-height: 1.25; }
.cartrow .cr-name:hover { color: var(--gold-dark); }
.cartrow .cr-opts { font-size: 13px; color: var(--ink-mute); margin: 6px 0; line-height: 1.5; }
.cartrow .cr-unit { font-size: 13px; }
.cartrow .cr-rm { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--ink-mute); background: none; border: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.cartrow .cr-rm:hover { color: #b3402f; }
.cartrow .cr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cartrow .cr-line { font-size: 16px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }

/* checkout page */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; padding-bottom: 40px; }
.checkout-form .co-block { margin-bottom: 30px; }
.checkout-form .co-block h3 { font-size: 20px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-form .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; margin: 4px 0 22px; }
.pay-note strong { display: block; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.pay-note p { font-size: 14px; color: var(--ink-soft); }
.co-summary .mini-items { margin-bottom: 10px; }
.mini-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-item .mi-img { position: relative; width: 48px; aspect-ratio: 1/1; border-radius: 8px; background: var(--surface-2); background-size: cover; background-position: center; }
.mini-item .mi-qty { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.mini-item .mi-info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.mini-item .mi-info strong { color: var(--navy); font-weight: 600; }
.mini-item .mi-info .cr-opts { font-size: 12px; color: var(--ink-mute); }
.mini-item .mi-price { font-size: 14px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-summary .summary-row:first-of-type { margin-top: 8px; }

/* order confirmation */
.order-confirm { max-width: 760px; margin: 0 auto; text-align: center; }
.oc-check { width: 62px; height: 62px; border-radius: 50%; background: #EEF5EC; color: #3B6B3A; font-size: 30px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.order-confirm h1 { font-size: clamp(30px, 5vw, 44px); margin: 10px 0 14px; }
.oc-lede { max-width: 520px; margin: 0 auto 26px; font-size: 16px; }
.oc-ref { display: inline-flex; flex-direction: column; gap: 4px; padding: 14px 30px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 34px; }
.oc-ref span { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-mute); }
.oc-ref strong { font-family: var(--font-serif); font-size: 22px; color: var(--navy); letter-spacing: 1px; }
.oc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; text-align: left; }
.oc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.oc-card h3 { font-size: 18px; margin-bottom: 16px; }
.ocr { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ocr .cr-opts { font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.ocr .cr-line { font-size: 15px; color: var(--navy); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 940px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .summary-card { position: static; }
  .oc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cartrow { grid-template-columns: 72px 1fr; }
  .cartrow .cr-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 2px; }
  .checkout-form .cols { grid-template-columns: 1fr; }
}
