/* =========================================================
   Mubilux — Option A "Maison" (gold on white)
   Desktop: editorial layout.  Mobile (≤760px): sticky header,
   slide-out menu, swipeable rails, filter sheet, sticky buy bar.
   ========================================================= */

:root {
  --gold: #a67c2e;
  --gold-deep: #7a5a1c;
  --gold-text: #6b5420;
  --gold-soft: #c9a24a;
  --gold-footer: #d4b062;
  --ink: #1f1b16;
  --ink-soft: #4a4237;
  --line: #e8dcc2;
  --cream: #fbf8f2;
  --sand: #f3eee4;
  --danger: #8c1d18;
  --max: 1280px;
  --pad: 40px;
  --mobile-header: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans), system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-serif), Georgia, serif; font-weight: 400; margin: 0; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.serif { font-family: var(--font-serif), Georgia, serif; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.muted { color: var(--ink-soft); font-size: 14px; }
.center { text-align: center; }
.pre { margin: 0; white-space: pre-wrap; }
.danger-text { color: var(--danger); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.eyebrow { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep); font-weight: 400; }
.rule { width: 48px; height: 1px; background: var(--gold); }
.h2 { font-size: clamp(30px, 4vw, 44px); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 36px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0;
  font-size: 13px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; text-align: center;
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; background: var(--ink); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-wide { width: 100%; }
.btn-small {
  min-height: 40px; padding: 0 14px; background: #fff; border: 1px solid var(--line); cursor: pointer;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.btn-small:hover:not(:disabled) { border-color: var(--gold); }
.btn-small:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-small.danger { color: var(--danger); }
.text-btn { background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 13px; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.link-underline {
  display: inline-block; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep); border-bottom: 1px solid var(--gold-deep); padding-bottom: 5px;
}
.link-underline:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Announcement ---------- */
.announce {
  background: var(--cream); border-bottom: 1px solid var(--line); text-align: center;
  padding: 10px 20px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text);
}

/* ---------- Desktop header ---------- */
.hdr-desktop { padding-top: 28px; }
.hdr-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.hdr-side { flex: 1; display: flex; gap: 24px; }
.hdr-side.right { justify-content: flex-end; }
.hdr-top a:hover, .main-nav a:hover { color: var(--gold-deep); }
.wordmark {
  font-family: var(--font-serif), Georgia, serif; font-size: 50px; font-weight: 500; line-height: 1;
  letter-spacing: 0.28em; padding-left: 0.28em; text-transform: uppercase; color: var(--gold) !important;
}
.wordmark-sm { font-size: 26px; letter-spacing: 0.24em; padding-left: 0.24em; }
.hdr-rule { height: 1px; background: var(--gold); opacity: 0.5; margin-top: 22px; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 38px; padding: 18px 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.main-nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a[aria-current='page'] { color: var(--gold-deep); border-color: var(--gold); }
.nav-soon { color: var(--gold-deep); }

/* ---------- Mobile header + drawer ---------- */
.hdr-mobile { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; position: relative; color: var(--ink); }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--gold-deep); color: #fff; font-size: 11px; font-weight: 500; line-height: 18px; text-align: center;
}
.drawer-backdrop, .sheet-backdrop {
  position: fixed; inset: 0; background: rgba(31, 27, 22, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 60;
}
.drawer-backdrop.open, .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: #fff; z-index: 70;
  transform: translateX(-102%); transition: transform 0.3s ease; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer-nav a { padding: 15px 24px; font-family: var(--font-serif), Georgia, serif; font-size: 22px; border-bottom: 1px solid var(--sand); display: flex; align-items: center; gap: 10px; }
.drawer-nav a:active { background: var(--cream); }
.soon-pill { font-family: var(--font-sans), sans-serif; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid var(--gold-soft); color: var(--gold-text); padding: 2px 8px; }
.drawer-foot { margin-top: auto; padding: 24px; background: var(--cream); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.drawer-foot p { margin: 0; color: var(--gold-text); }
.drawer-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { position: relative; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
.hero-image { height: 700px; background: var(--sand) center / cover no-repeat; }
.hero-card {
  position: absolute; left: 50%; bottom: -80px; transform: translateX(-50%);
  width: min(620px, 86%); background: #fff; border: 1px solid var(--line);
  padding: 48px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.hero-card h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; }
.hero-card h1 em, .soon-box h2 em { color: var(--gold); }
.hero-card p { margin: 0; font-size: 17px; color: var(--ink-soft); }

/* ---------- Trust strip ---------- */
.trust-wrap { padding-top: 140px; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { padding: 26px 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-title { font-family: var(--font-serif), Georgia, serif; font-size: 22px; }
.trust-text { font-size: 14px; color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding-top: 100px; padding-bottom: 100px; }
.section-tight { padding-top: 0; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 40px; }
.band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-soft); border: 1px dashed var(--gold-soft); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty p { margin: 0; }

/* Rail = grid on desktop, swipe row on mobile */
.rail { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 28px; }
.rail:focus-visible { outline-offset: 6px; }
.rail-hint { display: none; }

.cat-card { display: flex; flex-direction: column; gap: 14px; }
.cat-image { aspect-ratio: 3 / 4; background: var(--sand) center / cover no-repeat; transition: opacity 0.3s; }
.cat-card:hover .cat-image { opacity: 0.88; }
.cat-card span { font-family: var(--font-serif), Georgia, serif; font-size: 25px; text-align: center; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.story-image { height: 520px; background: var(--sand) center / cover no-repeat; }
.story-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.story-copy h2 { font-size: clamp(34px, 4.5vw, 50px); }
.story-copy p { margin: 0; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }

.soon-box { border: 1px solid var(--gold); padding: 72px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.soon-box h2 { font-size: clamp(36px, 5vw, 52px); }
.soon-box p { margin: 0; max-width: 520px; font-size: 17px; color: var(--ink-soft); }
.inline-form { width: 100%; max-width: 520px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.inline-form input { flex: 1 1 260px; min-height: 52px; padding: 0 18px; border: 1px solid var(--gold-soft); font-size: 16px; border-radius: 0; }
.inline-form .notice { flex-basis: 100%; }

/* ---------- Product card ---------- */
.product-card { display: flex; flex-direction: column; gap: 8px; }
.product-image { position: relative; aspect-ratio: 1 / 1; background: var(--sand); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-image img { transform: scale(1.03); }
.monogram { font-family: var(--font-serif), Georgia, serif; font-size: 72px; color: var(--gold-soft); line-height: 1; }
.monogram.small { font-size: 32px; }
.card-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: #fff; border: 1px solid var(--gold-soft); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.card-badge.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.product-meta { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); margin-top: 6px; }
.product-name { font-size: 23px; line-height: 1.2; }
.product-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-price { font-size: 15px; color: var(--ink-soft); font-weight: 400; }
.dots { display: flex; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(31, 27, 22, 0.15); }

/* ---------- Page heads, chips, crumbs ---------- */
.page-band { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { text-align: center; padding-top: 52px; padding-bottom: 52px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.page-head h1 { font-size: clamp(38px, 5vw, 60px); }
.page-head p { margin: 0; max-width: 580px; color: var(--ink-soft); font-size: 17px; }
.crumbs { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-text); }
.crumbs a:hover { color: var(--ink); }
.crumbs-pdp { padding: 14px 0 0; }
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 32px 0 8px; }
.chip-row.tight { padding: 0; justify-content: flex-start; }
.chip {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-current='page'], .chip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Shop ---------- */
.shop-layout { display: flex; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 110px; }
.filter-toggle { display: none; }
.filters { flex: 0 0 250px; position: sticky; top: 24px; }
.sheet-head { display: none; }
.filters-body { display: flex; flex-direction: column; gap: 34px; }
.filter-group { display: flex; flex-direction: column; gap: 14px; }
.filter-title { font-family: var(--font-sans), sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); font-weight: 400; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; padding: 0; position: relative; display: inline-block; }
.swatch[aria-current='true'], .swatch[aria-pressed='true'] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch.unavailable::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--ink-soft); transform: rotate(45deg); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  min-width: 60px; min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); font-size: 15px; cursor: pointer;
}
.pill:hover:not(:disabled) { border-color: var(--gold); }
.pill[aria-current='true'], .pill[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.unavailable { color: #8a8175; text-decoration: line-through; }
.pill:disabled { opacity: 0.35; cursor: not-allowed; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-link { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 15px; }
.radio { width: 18px; height: 18px; border: 1px solid var(--gold-soft); border-radius: 50%; flex: none; }
.filter-link[aria-current='true'] .radio { border: 5px solid var(--gold-deep); }
.shop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.shop-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.sort select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); border-radius: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; padding-top: 28px; padding-bottom: 100px; align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--sand); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gallery-dots { display: none; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.gallery-thumbs button { aspect-ratio: 1 / 1; padding: 0; border: 1px solid var(--line); background: var(--sand); cursor: pointer; overflow: hidden; }
.gallery-thumbs button[aria-pressed='true'] { border: 2px solid var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 24px; }
.pdp-head { display: flex; flex-direction: column; gap: 10px; }
.pdp-head h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.pdp-price { font-size: 22px; font-weight: 400; }
.pdp-desc { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.pdp-rule { height: 1px; background: var(--line); }
.option { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.option legend { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; padding: 0; }
.option legend strong { font-weight: 400; color: var(--ink); letter-spacing: 0.06em; text-transform: none; font-size: 15px; }
.stock-note { margin: -6px 0 0; font-size: 14px; color: var(--gold-text); }
.stock-note.out { color: var(--danger); }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-row .btn { flex: 1 1 220px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); min-height: 52px; }
.stepper button { width: 46px; align-self: stretch; background: #fff; border: 0; font-size: 20px; cursor: pointer; }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper span { min-width: 34px; text-align: center; font-weight: 400; }
.stepper.small { min-height: 40px; }
.stepper.small button { width: 38px; font-size: 18px; }
.added-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.info-box { background: var(--cream); border: 1px solid var(--line); padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.info-box strong { font-weight: 400; color: var(--ink); }
.accordions details { border-top: 1px solid var(--line); padding: 16px 0; }
.accordions details:last-child { border-bottom: 1px solid var(--line); }
.accordions summary { cursor: pointer; font-family: var(--font-serif), Georgia, serif; font-size: 22px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary::after { content: '+'; font-family: var(--font-sans), sans-serif; font-size: 22px; color: var(--gold-deep); }
.accordions details[open] summary::after { content: '−'; }
.accordions p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.buy-bar { display: none; }

/* ---------- Notices ---------- */
.notice { margin: 0; padding: 14px 18px; font-size: 15px; border: 1px solid; }
.notice.success { border-color: var(--gold-soft); background: var(--cream); color: var(--gold-text); }
.notice.error { border-color: #b3261e; background: #fdf3f2; color: var(--danger); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
.field input, .field select, .field textarea, .cell-input {
  min-height: 52px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 0; background: #fff;
  font-size: 16px; font-weight: 300; color: var(--ink); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .cell-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px !important; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: 44px; cursor: pointer; }
.checkbox input, td input[type='checkbox'] { width: 20px; height: 20px; accent-color: var(--gold-deep); }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Panels ---------- */
.panel { border: 1px solid var(--line); padding: 32px; background: #fff; }
.panel-title { font-size: 30px; margin-bottom: 18px; }
.panel-subtitle { font-family: var(--font-serif), Georgia, serif; font-size: 24px; margin-bottom: 14px; padding: 0; }

/* ---------- Cart & checkout ---------- */
.checkout {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px; align-items: start;
  grid-template-areas: 'title title' 'form items' 'form summary';
  padding-top: 48px; padding-bottom: 110px;
}
.checkout-title { grid-area: title; font-size: clamp(36px, 4vw, 48px); }
.co-items { grid-area: items; }
.co-form { grid-area: form; }
.co-summary { grid-area: summary; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
.line-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.line { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--sand); }
.line:first-child { border-top: 0; padding-top: 0; }
.line-thumb { width: 84px; height: 84px; flex: none; background: var(--sand); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.line-name { font-family: var(--font-serif), Georgia, serif; font-size: 21px; line-height: 1.2; }
.line-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.line-price { font-weight: 400; white-space: nowrap; }
.pay { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pay legend { margin-bottom: 14px; }
.pay-option { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); cursor: pointer; }
.pay-option input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold-deep); flex: none; }
.pay-option > span { display: flex; flex-direction: column; gap: 2px; }
.pay-option strong { font-weight: 400; font-size: 17px; }
.pay-option.selected { border: 1.5px solid var(--gold); background: var(--cream); }
.pay-option.disabled { cursor: not-allowed; color: #6e655a; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.sum-row.total { font-size: 20px; color: var(--ink); font-weight: 400; padding-top: 14px; border-top: 1px solid var(--line); }
.free-hint { margin: 0; font-size: 14px; color: var(--gold-text); background: var(--cream); padding: 10px 14px; }
.confirm { max-width: 720px; text-align: center; padding-top: 110px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.confirm h1 { font-size: clamp(34px, 5vw, 52px); }
.confirm p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.confirm p strong { color: var(--ink); font-weight: 500; }
.confirm-icon { width: 72px; height: 72px; border: 1.5px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-deep); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; padding-top: 64px; padding-bottom: 110px; }
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.contact-info h2 { font-size: 26px; margin-bottom: 6px; }
.contact-info p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.contact-info a { text-decoration: underline; text-underline-offset: 3px; }
.contact-info a:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--line); }
.footer-inner { padding-top: 72px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-mark { font-family: var(--font-serif), Georgia, serif; font-size: 34px; letter-spacing: 0.28em; color: var(--gold-footer); }
.footer-tag { margin: 8px 0 0; color: #bfb3a0; font-size: 15px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.footer-cols div { display: flex; flex-direction: column; gap: 6px; }
.footer-cols a { padding: 4px 0; }
.footer-h { font-family: var(--font-sans), sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-footer); margin-bottom: 8px; font-weight: 400; }
.footer-cols a:hover { color: var(--gold-footer); }
.footer-bottom { border-top: 1px solid var(--ink-soft); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #bfb3a0; }

/* ---------- Admin ---------- */
.admin-wrap { padding-top: 48px; padding-bottom: 110px; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.admin-bar .panel-title { margin-bottom: 0; }
.admin-title { font-size: 44px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { min-height: 48px; padding: 0 18px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.tab[aria-selected='true'] { color: var(--ink); border-color: var(--gold); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.card-list { display: flex; flex-direction: column; gap: 16px; }
.order-card { border: 1px solid var(--line); border-left: 4px solid var(--gold-soft); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; background: #fff; }
.order-card.status-confirmed { border-left-color: #3d6fb4; }
.order-card.status-shipped { border-left-color: #7a5a1c; }
.order-card.status-delivered { border-left-color: #3f7d4f; }
.order-card.status-cancelled { border-left-color: #b3261e; opacity: 0.75; }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-no { font-family: var(--font-serif), Georgia, serif; font-size: 24px; }
.status-select select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font-size: 15px; border-radius: 0; }
.order-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; }
.order-customer { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.order-customer a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; }
.order-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 500; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cell-input { min-height: 42px; padding: 8px 10px; font-size: 15px; min-width: 120px; }
.cell-input.narrow { min-width: 64px; width: 80px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.badge { display: inline-block; padding: 2px 8px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--cream); border: 1px solid var(--gold-soft); color: var(--gold-text); }
.muted-badge { border-color: var(--line); color: var(--ink-soft); background: #fff; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.variants { border: 1px solid var(--line); padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 14px; background: var(--cream); }
.variant-row { display: grid; grid-template-columns: 24px 1.6fr 0.8fr 0.9fr 0.7fr 0.9fr; gap: 10px; align-items: end; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.variant-row .field input { min-height: 44px; padding: 8px 10px; font-size: 15px; }
.variant-num { font-size: 13px; color: var(--gold-text); padding-bottom: 12px; }
.variant-actions { grid-column: 2 / -1; display: flex; gap: 8px; }
.colour-input { display: flex; gap: 6px; }
.colour-input input[type='color'] { width: 44px; min-width: 44px; padding: 2px; height: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.login-box { max-width: 440px; margin: 72px auto; border: 1px solid var(--line); padding: 44px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.login-box h1 { font-size: 38px; }
.login-box .field, .login-box .notice { width: 100%; text-align: left; }
.message-card { border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.message-card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.message-card a { text-decoration: underline; text-underline-offset: 3px; }
.msg-name { font-size: 22px; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .pdp { gap: 40px; }
}

@media (max-width: 960px) {
  .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .checkout { grid-template-columns: 1fr; grid-template-areas: 'title' 'items' 'form' 'summary'; }
  .co-summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .order-body { grid-template-columns: 1fr; }
  .variant-row { grid-template-columns: 24px 1fr 1fr; }
  .variant-row .field:nth-of-type(1) { grid-column: 2 / -1; }
}

/* =========================================================
   Mobile (≤760px) — scroll-first layout
   ========================================================= */
@media (max-width: 760px) {
  :root { --pad: 20px; }

  .announce { font-size: 11px; letter-spacing: 0.1em; padding: 8px 14px; }

  /* Sticky compact header */
  .hdr-desktop { display: none; }
  .hdr-mobile {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50; height: var(--mobile-header);
    padding: 0 8px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }

  /* Hero: card sits under the photo */
  .hero { padding: 0; }
  .hero-image { height: 62vh; min-height: 380px; max-height: 560px; }
  .hero-card { position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: -56px 16px 0; padding: 32px 22px; gap: 14px; }
  .hero-card p { font-size: 16px; }
  .hero-card .btn { width: 100%; }

  /* Swipe rails */
  .rail {
    display: flex; overflow-x: auto; gap: 14px;
    scroll-snap-type: x mandatory; scroll-padding-left: var(--pad);
    margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail-item { flex: 0 0 72%; scroll-snap-align: start; min-width: 0; }
  .rail-hint { display: block; margin: 10px 0 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); text-align: right; }

  /* Trust strip becomes a swipe row too */
  .trust-wrap { padding-top: 36px; }
  .trust {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad)); border-left: 0; border-right: 0;
  }
  .trust::-webkit-scrollbar { display: none; }
  .trust-item { flex: 0 0 62%; scroll-snap-align: start; padding: 20px 16px; border-top: 0 !important; }
  .trust-item + .trust-item, .trust-item:nth-child(3) { border-left: 1px solid var(--line); }
  .trust-title { font-size: 20px; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-tight { padding-top: 0; }
  .section-head { margin-bottom: 28px; }
  .section-head-row { margin-bottom: 24px; }
  .cat-card span { font-size: 22px; }
  .split { gap: 32px; }
  .story-image { height: 340px; }
  .story-copy p { font-size: 16px; }
  .soon-box { padding: 44px 22px; }
  .inline-form .btn { width: 100%; }

  .product-name { font-size: 20px; }
  .monogram { font-size: 56px; }

  /* Page heads + chip row scroll sideways */
  .page-head { padding-top: 34px; padding-bottom: 34px; }
  .page-head p { font-size: 15px; }
  .chip-row {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--pad)); padding: 18px var(--pad) 4px;
  }
  .chip-row::-webkit-scrollbar { display: none; }
  .chip-row.tight { margin: 0; padding: 0; }
  .chip { flex: none; padding: 0 16px; font-size: 12px; }

  /* Shop: filters become a bottom sheet */
  .shop-layout { display: block; padding-top: 16px; padding-bottom: 72px; }
  .filter-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
    background: #fff; border: 1px solid var(--ink); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
    margin-bottom: 16px;
  }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 82vh;
    background: #fff; border-top: 2px solid var(--gold); display: flex; flex-direction: column;
    transform: translateY(102%); transition: transform 0.3s ease;
  }
  .filters.open { transform: none; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
  .sheet-title { font-family: var(--font-serif), Georgia, serif; font-size: 26px; }
  .filters-body { overflow-y: auto; padding: 22px 20px 32px; gap: 28px; overscroll-behavior: contain; }
  .shop-toolbar { padding-bottom: 12px; }
  .sort span { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .product-grid .product-name { font-size: 18px; }
  .product-grid .product-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .product-grid .card-badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 7px; }

  /* Product page: swipe gallery, sticky buy bar */
  .crumbs-pdp { display: none; }
  .pdp { display: block; padding-top: 0; padding-bottom: 48px; }
  .gallery { position: relative; top: auto; margin: 0 calc(-1 * var(--pad)) 24px; }
  .gallery-thumbs { display: none; }
  .gallery-dots { display: flex; justify-content: center; gap: 6px; position: absolute; bottom: 12px; left: 0; right: 0; }
  .gallery-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(31, 27, 22, 0.25); }
  .gallery-dots span.on { background: var(--ink); width: 18px; border-radius: 4px; }
  .pdp-info { gap: 20px; }
  .pdp-desc { font-size: 16px; }
  .buy-row .btn { display: none; } /* the sticky bar has the button */
  .buy-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff;
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(31, 27, 22, 0.06);
  }
  .buy-bar-info { display: flex; flex-direction: column; min-width: 0; }
  .buy-bar-price { font-size: 18px; font-weight: 400; }
  .buy-bar-opt { font-size: 13px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar .btn { min-height: 50px; padding: 0 22px; flex: none; }
  body:has(.buy-bar) .site-footer { padding-bottom: 80px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }
  .panel { padding: 22px 18px; }
  .panel-title { font-size: 26px; }

  /* Checkout */
  .checkout { padding-top: 28px; padding-bottom: 64px; gap: 24px; }
  .co-items, .co-summary { margin: 0 calc(-1 * var(--pad)); border-left: 0; border-right: 0; }
  .line-thumb { width: 72px; height: 72px; }
  .line-name { font-size: 19px; }
  .confirm { padding-top: 64px; padding-bottom: 72px; }
  .confirm-actions .btn { width: 100%; }

  /* Contact */
  .contact-grid { padding-top: 36px; padding-bottom: 64px; }

  /* Footer */
  .footer-inner { padding-top: 48px; gap: 36px; }
  .footer-cols { gap: 32px 48px; }
  .footer-bottom { flex-direction: column; }

  /* Admin */
  .admin-wrap { padding-top: 24px; }
  .admin-title { font-size: 34px; }
  .order-card { padding: 18px 16px; }
  .variant-row { grid-template-columns: 1fr 1fr; }
  .variant-num { display: none; }
  .variant-row .field:nth-of-type(1), .variant-actions { grid-column: 1 / -1; }
  .login-box { margin: 36px auto; padding: 30px 20px; }
}

@media (min-width: 761px) {
  .drawer, .drawer-backdrop { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Additions for the all-Rust version
   (Next.js loaded fonts with next/font; here we use Google Fonts directly)
   ========================================================= */
:root {
  --font-serif: 'Cormorant Garamond';
  --font-sans: 'Jost';
}

/* Mobile menu built from <details>/<summary> — opens without JavaScript */
.m-menu > summary {
  list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.m-menu > summary::-webkit-details-marker { display: none; }
.m-panel {
  position: absolute; left: 0; right: 0; top: var(--mobile-header);
  background: #fff; border-bottom: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: 0 12px 24px rgba(31, 27, 22, 0.08);
  max-height: calc(100vh - var(--mobile-header)); overflow-y: auto;
}
.m-panel a {
  padding: 14px 22px; font-family: var(--font-serif), Georgia, serif; font-size: 21px;
  border-bottom: 1px solid var(--sand); display: flex; align-items: center; gap: 10px;
}
.notify-wrap { width: 100%; display: flex; justify-content: center; }

/* =========================================================
   All-Rust version: CSS-only menu & filter sheet, htmx states
   ========================================================= */
/* Slide-out menu + filter sheet are opened by hidden checkboxes (no JavaScript) */
.drawer-toggle:checked ~ .drawer { transform: none; }
.drawer-toggle:checked ~ .drawer-backdrop { opacity: 1; pointer-events: auto; }
body:has(.drawer-toggle:checked), body:has(.sheet-toggle:checked) { overflow: hidden; }
.drawer-toggle:focus-visible ~ .hdr-mobile label[for='nav-toggle'] { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
label.icon-btn, label.filter-toggle, label.drawer-backdrop, label.sheet-backdrop { cursor: pointer; }
@media (max-width: 760px) {
  .sheet-toggle:checked ~ .filters { transform: none; }
  .sheet-toggle:checked ~ .sheet-backdrop { opacity: 1; pointer-events: auto; }
  .sheet-toggle:focus-visible ~ .filter-toggle { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
}

.cart-count:empty { display: none; }
.gold { color: var(--gold); }

/* Product page */
.option-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.option-label strong { font-weight: 400; color: var(--ink); letter-spacing: 0.06em; text-transform: none; font-size: 15px; }
.pill[aria-disabled='true'] { opacity: 0.35; cursor: not-allowed; }
.qty-input {
  width: 84px; min-height: 52px; padding: 0 8px; border: 1px solid var(--line); border-radius: 0;
  background: #fff; text-align: center; font-size: 16px;
}
.gallery-thumbs a { aspect-ratio: 1 / 1; border: 1px solid var(--line); background: var(--sand); overflow: hidden; display: block; }
.gallery-thumbs a img { width: 100%; height: 100%; object-fit: cover; }

/* Cart */
.line-warning { color: var(--danger); font-size: 14px; }

/* About + Coming soon */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.value { border-top: 2px solid var(--gold); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.value h3 { font-size: 26px; }
.value p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.soon-after-hero { padding-top: 170px; }
.soon-box a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.hero-card .notify-wrap { margin-top: 6px; }

/* htmx: dim whatever is loading */
.htmx-request.swatch, .htmx-request.pill, form.htmx-request { opacity: 0.6; transition: opacity 0.2s; }
#shop-wrap.htmx-request .product-grid { opacity: 0.6; }

@media (max-width: 760px) {
  .values { grid-template-columns: 1fr; gap: 24px; }
  .soon-after-hero { padding-top: 56px; }
}

/* =========================================================
   Client-side Rust app additions
   ========================================================= */
.bar-left, .bar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* "Added to your cart" message */
.flash { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.flash .text-btn { font-size: 22px; line-height: 1; text-decoration: none; min-height: 32px; padding: 0 4px; color: inherit; }

/* Quantity stepper buttons */
.stepper .text-btn { width: 46px; min-height: 0; align-self: stretch; padding: 0; font-size: 20px; color: var(--ink); text-decoration: none; }
.stepper.small .text-btn, .line-actions .stepper .text-btn { width: 38px; font-size: 18px; }
.line-actions .stepper { min-height: 40px; }

/* Admin */
.admin-top { background: var(--cream); border-bottom: 1px solid var(--line); }
.admin-top-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.admin-label { flex: 1; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.tabs a.tab { display: inline-flex; align-items: center; }
.tabs a.tab[aria-current='page'] { color: var(--ink); border-color: var(--gold); }
.category-row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) 90px auto auto auto;
  gap: 12px; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.category-row .checkbox { min-height: 52px; white-space: nowrap; }
.category-row code { display: flex; align-items: center; min-height: 52px; }
.field-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.panel + .panel { margin-top: 24px; }
@media (max-width: 760px) {
  .category-row { grid-template-columns: 1fr 1fr; }
  .admin-top-inner { padding-left: 16px; padding-right: 16px; }
}
