/* Vantaram brand tokens — see Vantaram Brand Book, 05 · Colour and 06 · Type.
   Green leads. Gold is jewellery: the mark and fine details only, never a large fill. */
:root {
  --green: #06211B;          /* Vantaram Green */
  --green-lift: #0B2E26;     /* green panel, slightly raised */
  --forest: #02120E;         /* Night Forest */
  --champagne: #D8BD84;      /* Champagne Gold — on green */
  --antique: #A8813F;        /* Antique Gold — lines and marks on ivory */
  --gold-text: #86652C;      /* Antique Gold darkened for small text on ivory (AA) */
  --ivory: #F2ECE2;
  --ivory-2: #FAF7F1;        /* panel on ivory */
  --ink: #06211B;
  --muted: #4E5E57;
  --line: rgba(168, 129, 63, .35);
  --line-soft: rgba(168, 129, 63, .18);
  --display: "Italiana", "Didot", Georgia, serif;
  --heading: "Cormorant Garamond", "Garamond", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --header-h: 73px;          /* sticky header incl. border; the categories section fills the screen below it */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--heading); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--antique); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Labels: Inter capitals, tracked 0.3em */
.label { font: 400 12px/1.4 var(--body); letter-spacing: .3em; text-transform: uppercase; color: var(--champagne); margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 13px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding: 17px 30px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: transparent; border-color: var(--champagne); color: var(--champagne); }
.btn-gold:hover { background: var(--champagne); color: var(--green); }
.btn-emerald { background: var(--green); color: var(--champagne); }
.btn-emerald:hover { background: var(--green-lift); }
.btn-ghost { background: transparent; border-color: var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--ivory-2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }
.link-btn { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }

/* ---------- Logo (horizontal lockup) ---------- */
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--champagne); }
.logo img { height: 36px; width: auto; }
.logo-rule { width: 1px; height: 30px; background: linear-gradient(transparent, var(--champagne), transparent); }
.wordmark { font: 400 22px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; margin-right: -.2em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--green); color: var(--ivory);
  padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid rgba(216,189,132,.2);
}
.header-row { display: flex; align-items: center; gap: 40px; height: 72px; }
.nav { display: flex; gap: 32px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.nav a:hover { color: var(--champagne); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.account-btn {
  cursor: pointer; border: 1px solid rgba(216,189,132,.4); background: transparent; color: var(--ivory);
  font: 400 14px var(--body); border-radius: 999px; padding: 8px 16px; min-height: 40px;
}
.account-btn:hover, .bag-btn:hover { border-color: var(--champagne); }
/* Signed in: a round initial instead of text */
.account-btn.is-avatar { width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  background: var(--forest); color: var(--champagne); font: 400 18px/1 var(--display); }
.bag-btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: transparent; color: var(--ivory); border: 1px solid rgba(216,189,132,.4);
  border-radius: 999px; padding: 7px 7px 7px 16px; min-height: 40px; font: 400 14px var(--body);
}
.bag-count { min-width: 24px; height: 24px; border-radius: 50%; background: var(--champagne); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 600; }

/* ---------- Image frames (dialog, bag) ---------- */
.frame { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius);
  background: radial-gradient(90% 90% at 50% 35%, #0E3A30, var(--green) 75%); }
.frame img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.frame img.photo { object-fit: cover; padding: 0; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(70% 90% at 70% 30%, #0B3329, var(--green) 60%, var(--forest)); color: var(--ivory); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; padding: 104px 0 112px; }
.hero h1 { font-size: clamp(52px, 7vw, 96px); line-height: 1; color: var(--ivory); margin-bottom: 24px; }
.hero .lede { font-size: 18px; font-weight: 300; max-width: 40ch; margin-bottom: 40px; color: rgba(242,236,226,.82); }
.hero-art { display: flex; justify-content: center; }
.hero-mark { width: min(100%, 240px); color: var(--champagne); }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: settle 1.4s cubic-bezier(.2,.7,.2,1) both .15s; }
  @keyframes settle { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Promises ---------- */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.promises p { margin: 0; padding: 22px 0; font-size: 14px; color: var(--muted); text-align: center; }
.promises p + p { border-left: 1px solid var(--line); }
.promises strong { color: var(--ink); font-weight: 500; }

/* ---------- Shop by products: editorial mosaic on a dark band ---------- */
/* Exactly one screen tall under the header, so "Shop products" shows the whole section without scrolling */
.categories {
  background: var(--forest); color: var(--ivory); display: flex;
  height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px)); min-height: 520px;
  padding: clamp(28px, 6vh, 96px) 0 clamp(28px, 6vh, 104px);
}
.categories > .wrap { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.cat-head { text-align: center; margin-bottom: clamp(20px, 4vh, 48px); }
.section-title { font-size: clamp(36px, 4.4vw, 56px); color: var(--ivory); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 16px; flex: 1; min-height: 0; max-height: 720px; }
.cat {
  position: relative; display: block; overflow: hidden; border-radius: 6px; text-decoration: none;
  background: radial-gradient(90% 80% at 50% 35%, #103F33, var(--green) 72%);
}
.cat-lg { grid-column: 1 / 3; grid-row: 1 / 3; }
.cat-wide { grid-column: 3 / 5; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10% 14% 28%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.cat-lg img { padding: 8% 12% 22%; }
.cat-wide { background: radial-gradient(70% 110% at 72% 45%, #103F33, var(--green) 70%); }
.cat-wide img { left: 38%; width: 62%; padding: 10% 8%; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(2,18,14,.85)); }
.cat-wide::after { background: linear-gradient(90deg, rgba(2,18,14,.7), transparent 60%); }
.cat::before { content: ""; position: absolute; inset: 10px; z-index: 1; border: 1px solid rgba(216,189,132,.22); border-radius: 3px; pointer-events: none; transition: border-color .3s; }
.cat-text { position: absolute; left: 32px; right: 32px; bottom: 30px; z-index: 1; display: grid; gap: 10px; }
.cat-wide .cat-text { top: 50%; bottom: auto; right: 50%; transform: translateY(-50%); }
.cat-name { font: 400 clamp(20px, 2vw, 28px)/1.15 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--ivory); }
.cat-lg .cat-name { font-size: clamp(30px, 3.4vw, 48px); }
.cat-meta { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--champagne); }
.cat-meta::after { content: "  →"; letter-spacing: 0; }
.cat:hover img { transform: scale(1.05); }
.cat:hover::before { border-color: rgba(216,189,132,.55); }

/* ---------- Product listing ---------- */
.listing { padding: 72px 0 112px; }
.listing-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px 32px; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.listing-head h2 { font-size: clamp(28px, 3vw, 38px); }
.listing-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.sort select {
  font: 400 14px var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer;
  appearance: none; background: var(--ivory-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A8813F' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 36px 8px 16px;
}
.sort select:hover { border-color: var(--antique); }
.chip { font-size: 13px; text-decoration: none; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chip-wish { display: inline-flex; align-items: center; gap: 6px; }
.chip-wish svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.chip-wish[aria-current] svg { fill: currentColor; }
.chip-count { font-size: 11px; min-width: 18px; padding: 1px 5px; border-radius: 999px; background: var(--line-soft); color: var(--ink); text-align: center; }
.chip-wish[aria-current] .chip-count { background: rgba(216,189,132,.25); color: var(--champagne); }
.wish-empty { grid-column: 1 / -1; text-align: center; padding: 48px 0; }
.wish-empty p { margin-bottom: 18px; }
.chip:hover { border-color: var(--antique); color: var(--ink); }
.chip[aria-current] { background: var(--green); border-color: var(--green); color: var(--champagne); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 20px; }
.card { position: relative; }
.card-media {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; margin-bottom: 14px;
  background: radial-gradient(90% 90% at 50% 30%, #0E3A30, var(--green) 72%);
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 9% 14%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card-media img.photo { object-fit: cover; padding: 0; }
.card:hover .card-media img { transform: scale(1.04); }
.card h3 { font: 400 16px/1.35 var(--body); margin-bottom: 4px; }
/* Name button stretches over the whole card so any click opens the product */
.card-open { all: unset; cursor: pointer; }
.card-open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 6px; }
.card-open:focus-visible::after { outline: 2px solid var(--antique); outline-offset: 4px; }
.card:hover .card-open { text-decoration: underline; text-decoration-color: var(--antique); text-underline-offset: 4px; }
.code { color: var(--muted); font-size: .92em; letter-spacing: .02em; white-space: nowrap; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.price { font-size: 19px; font-weight: 600; color: var(--ink); }
.mrp { font-size: 14px; color: var(--muted); }
.off { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.wish {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(216,189,132,.35);
  background: rgba(2,18,14,.45); backdrop-filter: blur(4px); color: var(--champagne);
}
.wish svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.wish[aria-pressed="true"] svg { fill: currentColor; }
.wish:hover { background: rgba(2,18,14,.7); }
.dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 5px; padding: 5px 7px; border-radius: 999px; background: rgba(2,18,14,.55); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(242,236,226,.45); }
.dots i.on { background: var(--ivory); }
.sold { position: absolute; left: 12px; bottom: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ivory); color: var(--ink); }
.card.is-sold .card-media img { opacity: .5; }

/* ---------- Story ---------- */
.story { background: var(--green); color: var(--ivory); padding: 112px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.story h2 { font-size: clamp(36px, 4.2vw, 56px); font-style: italic; color: var(--ivory); max-width: 14ch; }
.story p { font-size: 17px; font-weight: 300; line-height: 1.75; max-width: 46ch; color: rgba(242,236,226,.82); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: rgba(242,236,226,.8); padding: 64px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; font-weight: 300; }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-grid p { max-width: 42ch; margin-top: 24px; }
.footer-logo img { height: 32px; }
.footer-logo .wordmark { font-size: 20px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--champagne); }

/* ---------- Help & policy pages (terms.html, privacy.html, …) ---------- */
.policy { max-width: 760px; padding: 64px 0 112px; }
.policy .label { color: var(--gold-text); margin-bottom: 14px; }
.policy h1 { font-size: clamp(38px, 5vw, 54px); }
.policy-updated { margin: 12px 0 40px; font-size: 13px; color: var(--muted); }
.policy h2 { font-size: 28px; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.policy p, .policy li { color: #2A3A33; }
.policy ul, .policy ol { padding-left: 1.25em; margin: 0 0 1em; }
.policy li + li { margin-top: 8px; }
.policy a { color: var(--gold-text); text-underline-offset: 3px; }
.policy code { font-size: .9em; }
.contact-list { display: grid; gap: 0; margin: 32px 0; border-top: 1px solid var(--line-soft); }
.contact-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list dd { margin: 0; }
/* Contact page: intro + details on the left, form on the right; fits one screen on laptops and up */
.contact-page { display: flex; align-items: center; min-height: calc(100svh - var(--header-h) - env(safe-area-inset-top, 0px)); padding: clamp(24px, 4vh, 56px) 0; }
.contact-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "intro form" "side form"; grid-template-rows: auto 1fr; column-gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-intro { grid-area: intro; }
.contact-card { grid-area: form; }
.contact-side { grid-area: side; }
.contact-intro .label { color: var(--gold-text); margin-bottom: 12px; }
.contact-intro h1 { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 12px; }
.contact-intro .lede { color: var(--muted); font-size: 16px; margin: 0 0 clamp(16px, 3vh, 28px); max-width: 44ch; }
.contact-card { background: var(--ivory-2); border: 1px solid var(--line-soft); border-radius: 6px; padding: clamp(22px, 3.2vh, 32px) clamp(20px, 2.6vw, 32px); scroll-margin-top: calc(var(--header-h) + 16px); }
.contact-card .form { gap: clamp(10px, 1.6vh, 14px); }
.contact-card .form h2 { font-size: 26px; }
.contact-card .row-2 { gap: 14px; }
.contact-card .form label { gap: 5px; }
.contact-card .form input, .contact-card select, .contact-card textarea {
  font: 400 16px var(--body); color: var(--ink); background: #fff;
  border: 1px solid #D6CDBE; border-radius: var(--radius); padding: 11px 12px; width: 100%;
}
.contact-card .phone-field span { padding: 0 12px; }
.contact-card textarea { resize: vertical; min-height: clamp(84px, 13vh, 120px); line-height: 1.5; }
.contact-card select:focus, .contact-card textarea:focus { outline: none; border-color: var(--antique); box-shadow: 0 0 0 3px rgba(168,129,63,.18); }
.req { color: var(--gold-text); }
.contact-card .form label:has(.req) { grid-template-columns: auto 1fr; column-gap: 4px; }
.contact-card .form label:has(.req) > :not(.req) { grid-column: 1 / -1; }
.send-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.send-row .btn { min-width: 190px; }
.send-row .fine kbd { font: 500 12px var(--body); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: #fff; }
.contact-side a, .contact-card .fine a { color: var(--gold-text); text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { text-align: center; padding: 24px 8px; display: grid; justify-items: center; gap: 12px; }
.contact-done:focus { outline: none; }
.contact-done svg { width: 44px; color: var(--antique); }
.contact-done h2 { font-size: 36px; }
.contact-done p { color: var(--muted); max-width: 40ch; margin: 0 0 8px; }
.contact-side .contact-list { margin: 0; }
.contact-side .contact-list > div { grid-template-columns: 88px 1fr; gap: 12px; padding: clamp(10px, 1.6vh, 14px) 0; }
.contact-side .contact-list dt { font-size: 11px; }
.contact-side .note { font-size: 13px; color: var(--muted); margin: clamp(12px, 2vh, 20px) 0 0; }
.muted-note { font-size: 13px; color: var(--muted); }
.quick-links { list-style: none; padding: 0; margin: clamp(12px, 2vh, 20px) 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.quick-links a::after { content: " →"; }

/* Details the owner still has to fill in; visible on purpose so none go live by accident */
.todo { background: #F6E3A8; color: #5A410E; padding: 0 4px; border-radius: 3px; font-weight: 500; }
@media (max-width: 640px) {
  .policy { padding: 40px 0 80px; }
  .contact-list > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-card { padding: 22px 16px; }
  .send-row .btn { flex: 1; }
}
@media (max-width: 900px) {
  /* Stacked: intro, then the form, then the details */
  .contact-page { display: block; min-height: 0; padding: 32px 0 64px; }
  .contact-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "form" "side"; row-gap: 28px; }
  .contact-intro .lede { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .contact-card .row-2 { grid-template-columns: 1fr; }
}
.copyright { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(216,189,132,.18); font-size: 12px; letter-spacing: .06em; opacity: .75; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--ivory-2); }
dialog::backdrop { background: rgba(2, 18, 14, .6); backdrop-filter: blur(2px); }
.dialog { width: min(920px, calc(100% - 32px)); border-radius: 6px; padding: 40px; max-height: calc(100dvh - 32px); overflow: auto; }
.auth-dialog { width: min(440px, calc(100% - 32px)); }
.close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.close:hover { color: var(--ink); }
.dialog { position: fixed; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pd-thumbs .frame { width: 64px; padding: 0; border: 1px solid transparent; cursor: pointer; }
.pd-thumbs .frame[aria-pressed="true"] { border-color: var(--antique); }
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-info h2 { font-size: 40px; margin-bottom: 4px; padding-right: 32px; }
.pd-info .code { margin: 0 0 14px; font-size: 13px; }
.pd-info .price-row { margin-bottom: 20px; }
.pd-info .price { font-size: 22px; }
.details { list-style: none; padding: 16px 0; margin: 0 0 24px; border-block: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.details li { padding: 3px 0; }
.qty-row { display: flex; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--green); border-radius: var(--radius); }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--green); }
.qty span { min-width: 28px; text-align: center; }
.qty-row .btn { flex: 1; }
.stock-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Drawer: the bag, opened as a side panel (also right after adding a piece) */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(420px, 100%); border-radius: 0;
  display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  box-shadow: -24px 0 48px rgba(2,18,14,.18);
}
.drawer:not([open]) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: slidein .35s cubic-bezier(.2,.7,.2,1); }
  @keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
  .bag-line.is-new { animation: glow 1.8s ease-out; }
  @keyframes glow { from { background: rgba(216,189,132,.28); } to { background: transparent; } }
  .bag-added:not([hidden]) { animation: drop .4s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 30px; }
.bag-head-count { font-size: .6em; color: var(--muted); font-family: var(--body); vertical-align: .2em; }
.drawer-head .close { position: static; margin-right: -10px; }
.bag-added { display: flex; align-items: center; gap: 10px; margin: 16px 28px 0; padding: 12px 14px; border-radius: var(--radius);
  background: var(--green); color: var(--ivory); font-size: 14px; }
.bag-added svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--champagne); stroke-width: 1.4; }
.bag-ship { padding: 14px 28px 0; font-size: 13px; color: var(--muted); }
.bag-ship:empty { display: none; }
.bag-ship p { margin: 0; }
.bag-ship strong { color: var(--ink); font-weight: 600; }
.ship-bar { height: 3px; margin-top: 8px; background: var(--line-soft); border-radius: 2px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--antique), var(--champagne)); transition: width .4s; }
.bag-lines { list-style: none; margin: 0; padding: 4px 0; flex: 1; overflow: auto; }
.bag-line { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 18px 28px; border-bottom: 1px solid var(--line-soft); }
.bag-line .frame { width: 88px; }
.bag-line .frame img { padding: 8%; }
.bag-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bag-line h3 { font-size: 20px; line-height: 1.2; }
.bag-price { margin: 0; font-weight: 600; }
.bag-price .mrp { font-weight: 400; margin-left: 6px; }
.bag-low { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--gold-text); }
.bag-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.bag-line .qty { border-color: var(--line); }
.bag-line .qty button { width: 32px; height: 32px; font-size: 16px; }
.bag-line .remove { font-size: 13px; color: var(--muted); }
.bag-empty { padding: 64px 28px; text-align: center; color: var(--muted); }
.bag-empty .btn { margin-top: 16px; }
.drawer-foot { padding: 18px 28px 20px; border-top: 1px solid var(--line); background: var(--ivory-2); }
.bag-sums { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.bag-sums dd { margin: 0; text-align: right; color: var(--ink); }
.bag-sums .saved { color: var(--gold-text); }
.checkout-cta { justify-content: space-between; padding: 19px 22px; font-size: 13px; }
.checkout-cta span:last-child { font: 600 16px var(--body); letter-spacing: .02em; text-transform: none; }
.bag-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.bag-secure svg { width: 14px; height: 14px; fill: none; stroke: var(--antique); stroke-width: 1.3; }
.bag-continue { display: block; margin: 6px auto 0; font-size: 13px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form h2 { font-size: 32px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input {
  font: 400 16px var(--body); color: var(--ink); background: #fff;
  border: 1px solid #D6CDBE; border-radius: var(--radius); padding: 13px 14px; width: 100%;
}
.form input:focus { outline: none; border-color: var(--antique); box-shadow: 0 0 0 3px rgba(168,129,63,.18); }
.opt { color: #8A928D; }
/* Keep "(optional)" on the same line as its label text */
.form label:has(.opt) { grid-template-columns: auto 1fr; column-gap: 6px; }
.form label:has(.opt) > :not(.opt) { grid-column: 1 / -1; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phone-field { display: flex; align-items: stretch; }
.phone-field span { display: grid; place-items: center; padding: 0 14px; border: 1px solid #D6CDBE; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--ivory); color: var(--ink); font-size: 16px; }
.phone-field input { border-radius: 0 var(--radius) var(--radius) 0; }
.form-error { color: #9B2F1E; font-size: 14px; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.muted { color: var(--muted); margin: -4px 0 4px; }
.fine { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Pages ---------- */
.page { padding: 64px 0 112px; min-height: 60vh; }
.page-title { font-size: clamp(38px, 4.6vw, 56px); margin-bottom: 40px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.summary { background: var(--ivory-2); border: 1px solid var(--line); border-radius: 6px; padding: 32px; position: sticky; top: 100px; }
.summary h2 { font-size: 28px; margin-bottom: 12px; }
.summary-lines { list-style: none; margin: 0; padding: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 16px 0 0; font-size: 14px; }
.totals dd { margin: 0; text-align: right; }
.totals .grand { font-size: 22px; font-family: var(--heading); padding-top: 8px; }
.success { text-align: center; }
.success .page-title { margin: 28px auto 16px; max-width: 16ch; }
.success-mark { width: 88px; margin: 0 auto; padding: 18px; background: var(--green); border-radius: 50%; box-sizing: content-box; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.order-card { background: var(--ivory-2); border: 1px solid var(--line); border-radius: 6px; padding: 24px 28px; margin-bottom: 16px; }
.order-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.order-top h2 { font-size: 24px; }
.status { font-size: 12px; letter-spacing: .08em; padding: 4px 12px; border-radius: 999px; background: var(--green); color: var(--champagne); font-weight: 500; }
.order-card p { margin: 0; color: var(--muted); font-size: 14px; }
.empty { color: var(--muted); }

/* ---------- My orders ---------- */
.orders-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 28px; }
.orders-head .page-title { margin: 0; }
.orders-meta { margin: 0; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text); }
.orders-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-search { position: relative; flex: 1 1 280px; max-width: 380px; }
.order-search svg { position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--antique); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.order-search input {
  width: 100%; font: 400 14px var(--body); color: var(--ink); background: var(--ivory-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 40px;
}
.order-search input:hover { border-color: var(--antique); }
.order-search input:focus { outline: none; border-color: var(--antique); box-shadow: 0 0 0 3px rgba(168,129,63,.18); }
.orders-tools .sort { margin-left: auto; }
button.chip { background: none; font: inherit; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--champagne); }
.chip-n { margin-left: 4px; font-size: 11px; opacity: .7; }
.orders-none { padding: 56px 0; text-align: center; color: var(--muted); }
.orders-none .btn { margin-top: 8px; }

.order-rows { list-style: none; margin: 0; padding: 0; }
.order-row {
  display: grid; grid-template-columns: 136px 1fr auto 20px; align-items: center; gap: 28px;
  padding: 22px 16px; margin-inline: -16px; border-bottom: 1px solid var(--line-soft); border-radius: 6px;
  text-decoration: none; transition: background-color .2s;
}
.order-row:hover { background: var(--ivory-2); }
.or-thumbs { display: flex; align-items: center; }
.or-thumbs .frame { width: 56px; flex: none; border: 2px solid var(--ivory); border-radius: 50%; }
.order-row:hover .or-thumbs .frame, .order-row:hover .or-more { border-color: var(--ivory-2); }
.or-thumbs .frame img { padding: 14%; }
.or-thumbs .frame img.photo { padding: 0; }
.or-thumbs > * + * { margin-left: -24px; }
.or-more { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--ivory-2); border: 2px solid var(--ivory); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--muted); }
.or-main { display: grid; gap: 3px; min-width: 0; }
.or-id { font: 400 22px/1.2 var(--heading); letter-spacing: .02em; }
.order-row:hover .or-id { text-decoration: underline; text-decoration-color: var(--antique); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.or-items { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-date { font-size: 13px; color: var(--muted); }
.or-side { display: flex; align-items: center; gap: 20px; }
.or-total { font-size: 17px; font-weight: 600; }
.or-chev { color: var(--antique); transition: transform .2s; }
.order-row:hover .or-chev { transform: translateX(3px); }

/* Status pill: gold while in progress, green once it's with the courier, red when cancelled */
.ostatus { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; font-weight: 500; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-text); background: rgba(216,189,132,.14); }
.ostatus::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ostatus[data-status="shipped"] { background: var(--green); border-color: var(--green); color: var(--champagne); }
.ostatus[data-status="delivered"] { background: rgba(46,125,79,.1); border-color: rgba(46,125,79,.3); color: #256A42; }
.ostatus[data-status="cancelled"] { background: rgba(155,47,30,.07); border-color: rgba(155,47,30,.25); color: #9B2F1E; }

/* Order detail dialog */
.order-dialog { width: min(900px, calc(100% - 32px)); }
.od-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-right: 40px; }
.od-head h2 { font-size: 38px; margin: 6px 0 4px; }
.od-meta { margin: 0; font-size: 14px; color: var(--muted); }
.od-head .ostatus { margin-top: 4px; }
.od-track { display: flex; align-items: center; gap: 24px; margin: 28px 0 32px; padding: 28px 0; border-block: 1px solid var(--line); }
.track { flex: 1; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.track li { position: relative; display: grid; gap: 2px; justify-items: center; text-align: center; padding-top: 28px; font-size: 13px; color: var(--muted); }
.track li::before { content: ""; position: absolute; top: 3px; left: 50%; z-index: 1; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--ivory-2); border: 1.5px solid var(--line); box-sizing: border-box; }
.track li + li::after { content: ""; position: absolute; top: 9px; left: -50%; right: 50%; height: 2px; background: var(--line-soft); }
.track li.done { color: var(--ink); }
.track li.done::before { background: var(--green); border-color: var(--green); }
.track li.done::after { background: var(--green); }
.track li.now::before { background: var(--champagne); border: 3px solid var(--green); box-shadow: 0 0 0 4px rgba(168,129,63,.2); }
.track li.now > span { font-weight: 600; }
.track small { font-size: 12px; color: var(--muted); }
.od-cancel { flex: 1; padding: 14px 18px; border-radius: var(--radius); background: rgba(155,47,30,.06); border: 1px solid rgba(155,47,30,.18); font-size: 14px; color: var(--muted); }
.od-cancel strong { color: #9B2F1E; font-weight: 500; }
.od-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.od-grid .eyebrow { margin-bottom: 12px; }
.od-items { list-style: none; margin: 0; padding: 0; }
.od-items li { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.od-items li:first-child { padding-top: 0; }
.od-items .frame { width: 64px; }
.od-items .frame img { padding: 10%; }
.od-items .frame img.photo { padding: 0; }
.od-item { display: grid; gap: 2px; min-width: 0; }
.od-name { font: 400 19px/1.2 var(--heading); }
.od-sub { font-size: 13px; color: var(--muted); }
.od-line { font-weight: 600; }
.od-side { display: grid; gap: 24px; padding-left: 32px; border-left: 1px solid var(--line-soft); }
.od-side p:not(.eyebrow) { margin: 0; font-size: 14px; line-height: 1.6; }
.od-side p:not(.eyebrow) + p { margin-top: 4px; }
.od-ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; word-break: break-all; }

/* ---------- Profile side panel: open rows, no boxes ---------- */
.profile-drawer { width: min(440px, 100%); }
.pf-head { display: flex; align-items: center; gap: 16px; padding: 26px 28px 24px; background: var(--green); color: var(--ivory); }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--forest); color: var(--champagne); font: 400 26px/1 var(--display); border: 1px solid rgba(216,189,132,.5); }
.pf-id { flex: 1; min-width: 0; }
.pf-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pf-id h2 { font-size: 28px; color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-id p { margin: 2px 0 0; font-size: 12px; letter-spacing: .06em; color: rgba(242,236,226,.7); }
.icon-btn { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--champagne); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: rgba(216,189,132,.12); }
.pf-name-edit { display: flex; align-items: center; gap: 2px; }
.pf-name-edit input { flex: 1; min-width: 0; font: 400 24px/1.2 var(--heading); color: var(--ivory); background: none; border: 0; border-bottom: 1px solid var(--champagne); padding: 2px 0 4px; }
.pf-name-edit input:focus { outline: none; border-bottom-color: var(--ivory); }
.pf-head .close { position: static; color: rgba(242,236,226,.7); margin-right: -10px; align-self: flex-start; }
.pf-head .close:hover { color: var(--ivory); }
.pf-head-error { margin: 0; padding: 8px 28px; background: #FBEDEA; }
.pf-body { flex: 1; overflow: auto; }
.pf-section { display: grid; gap: 4px; padding: 26px 28px 22px; border-bottom: 1px solid var(--line-soft); }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 6px; }
.pf-row { display: flex; justify-content: space-between; align-items: baseline; }

/* A contact row: small label + action on top, value with status icon beneath */
/* One line per field: label | value | action. Forms, hints and errors sit under the value. */
.pf-field { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 12px 0; }
.pf-field + .pf-field { border-top: 1px solid var(--line-soft); }
.pf-field > :not(.pf-label, .pf-value, .pf-action) { grid-column: 2 / -1; }
.pf-label { font-size: 12px; color: var(--muted); }
.pf-field:has(.pf-inline:not([hidden])) .pf-label { align-self: start; padding-top: 12px; } /* line up with the input, not the whole form */
.pf-action { padding: 0; font-size: 13px; color: var(--ink); text-decoration-color: var(--antique); }
.pf-value { display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; }
.pf-value > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-value .is-empty { color: #8A928D; }
.is-locked .pf-value { color: var(--ink); }
.fstatus { flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
.fstatus svg { width: 18px; height: 18px; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.fstatus.ok svg circle { fill: #2E7D4F; stroke: #2E7D4F; }
.fstatus.ok svg path { stroke: #fff; stroke-width: 2; }
.fstatus.warn svg circle { fill: #F6C445; stroke: #F6C445; }
.fstatus.warn svg path { stroke: #5A3E00; stroke-width: 2; }
.field-hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.field-hint strong { color: var(--ink); font-weight: 500; }
.field-hint .link-btn { padding: 0; font-size: inherit; color: var(--ink); text-decoration-color: var(--antique); }
.verify-link { font-weight: 500; }
.pf-field .form-error:empty { display: none; }

/* Underline-only inputs */
.line-input {
  width: 100%; font: 400 15px var(--body); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 8px;
}
.line-input::placeholder { color: #9AA39E; }
.line-input:focus { outline: none; border-bottom-color: var(--antique); box-shadow: 0 1px 0 var(--antique); }
.pf-inline { display: grid; gap: 12px; }
.pf-inline-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 4px; }
.pf-inline-actions .link-btn { font-size: 13px; color: var(--muted); }
.code-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 4px; }
.code-row input { flex: 1; letter-spacing: .3em; }
.code-row input::placeholder { letter-spacing: normal; }
.btn-sm { padding: 12px 18px; font-size: 12px; }

/* Links to orders and wishlist */
.pf-meta { color: var(--muted); font-size: 13px; }
.pf-links { padding: 6px 28px; border-bottom: 1px solid var(--line-soft); }
.pf-links a { display: flex; align-items: center; gap: 12px; padding: 14px 0; text-decoration: none; font: 400 20px var(--heading); }
.pf-links a + a { border-top: 1px solid var(--line-soft); }
.pf-links a .pf-meta { margin-left: auto; font-family: var(--body); }
.pf-links a::after { content: "→"; color: var(--antique); font: 400 15px var(--body); }
.pf-links a:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--antique); text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* Addresses */
.addr-list { list-style: none; margin: 0; padding: 0; }
.addr { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.addr:last-child { border-bottom: 0; }
.addr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.addr-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.addr-default { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.addr-lines { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.addr-name { color: var(--ink); }
.addr-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.addr-actions .link-btn { padding: 0; font-size: 13px; color: var(--ink); text-decoration-color: var(--line); }
.addr-actions .danger { color: var(--muted); }
.addr-actions .danger:hover { color: #9B2F1E; text-decoration-color: #9B2F1E; }
.addr-empty { padding: 8px 0 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.addr.is-editing { padding-top: 8px; }
.addr-form { display: grid; gap: 14px; padding: 8px 0 4px; }
.addr-form-title { margin: 0; font: 400 20px var(--heading); }

/* Segmented control: Home / Work / Other */
.label-pick { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 10px; background: rgba(168,129,63,.1); }
.label-pick input { position: absolute; opacity: 0; pointer-events: none; }
.label-pick span { display: block; padding: 7px 0; text-align: center; font-size: 13px; color: var(--muted); border-radius: 8px; cursor: pointer; transition: background .15s, color .15s; }
.label-pick input:checked + span { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 1px 3px rgba(6,33,27,.12); }
.label-pick input:focus-visible + span { outline: 2px solid var(--antique); outline-offset: -2px; }

/* Grouped fields with floating labels */
.fgroup { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.fgroup:focus-within { border-color: var(--antique); box-shadow: 0 0 0 3px rgba(168,129,63,.14); }
.fgroup > * + * { border-top: 1px solid var(--line-soft); }
.fgroup-row { display: grid; grid-template-columns: 1fr 1fr; }
.fgroup-row > * + * { border-left: 1px solid var(--line-soft); }
.fl { position: relative; display: block; cursor: text; }
.fl input { width: 100%; height: 54px; padding: 22px 14px 6px; font: 400 15px var(--body); color: var(--ink); background: transparent; border: 0; }
.fl input:focus { outline: none; }
.fl:focus-within { background: var(--ivory-2); }
.fl span { position: absolute; left: 14px; top: 17px; font-size: 15px; color: #8A928D; pointer-events: none; transform-origin: left top; transition: transform .15s, color .15s; white-space: nowrap; }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span { transform: translateY(-9px) scale(.76); color: var(--muted); }

/* Toggle switch */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); cursor: pointer; }
.switch input { order: 1; flex: none; appearance: none; width: 38px; height: 22px; margin: 0; border-radius: 999px; background: #D6CDBE; position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:focus-visible { outline: 2px solid var(--antique); outline-offset: 2px; }
.switch:has(input:disabled) { cursor: default; opacity: .6; }
.switch:has(input:disabled) input { cursor: default; }
.addr-form .pf-inline-actions { margin-top: 2px; }
.addr-form .form-error:empty { display: none; }

.pf-foot { padding: 16px 28px 20px; border-top: 1px solid var(--line); background: var(--ivory-2); }
.pf-logout { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font: 500 12px var(--body); letter-spacing: .2em; text-transform: uppercase; }
.pf-logout svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pf-logout:hover { color: #9B2F1E; border-color: rgba(155,47,30,.4); }
#accountBtn { position: relative; }
#accountBtn.needs-attention::after { content: ""; position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 50%; background: #F6C445; box-shadow: 0 0 0 2px var(--green); }

/* Checkout: pick a saved address */
.saved-pick select {
  font: 400 16px var(--body); color: var(--ink); cursor: pointer; width: 100%;
  appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23A8813F' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid #D6CDBE; border-radius: var(--radius); padding: 13px 36px 13px 14px;
}
.saved-pick select:focus { outline: none; border-color: var(--antique); box-shadow: 0 0 0 3px rgba(168,129,63,.18); }

/* ---------- Toast & demo ---------- */
.toast {
  position: fixed; left: 50%; top: calc(88px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -12px);
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px);
  background: var(--green); color: var(--ivory); padding: 14px 22px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 100; border: 1px solid rgba(216,189,132,.35);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[popover] { margin: 0; inset: auto; top: calc(88px + env(safe-area-inset-top, 0px)); left: 50%; overflow: visible; }
.toast svg { flex: none; width: 16px; height: 16px; fill: var(--champagne); }
.demo-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #EADFC6; color: #5A4411; text-align: center; font-size: 13px; padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px)); z-index: 90; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1.3fr 1fr 1.3fr; max-height: none; }
  .cat-lg { grid-column: 1 / 3; grid-row: auto; }
  .cat-wide { grid-column: 1 / 3; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 64px 0 72px; gap: 40px; }
  .hero-art { order: -1; justify-content: flex-start; }
  .hero-mark { width: 96px; }
  .story-grid, .checkout-grid, .pd-grid { grid-template-columns: 1fr; gap: 32px; }
  .summary { position: static; order: -1; }
  .pd-media { max-width: 320px; }
  .od-grid { grid-template-columns: 1fr; gap: 32px; }
  .od-side { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 32px); }
  .nav { display: none; }
  :root { --header-h: 65px; }
  .header-row { justify-content: space-between; height: 64px; }
  .logo { gap: 10px; }
  .logo img { height: 30px; }
  .logo-rule { height: 24px; }
  .wordmark { font-size: 18px; }
  .promises { grid-template-columns: 1fr; }
  .promises p { padding: 12px 0; }
  .promises p + p { border-left: 0; border-top: 1px solid var(--line); }
  .cat-grid { gap: 10px; }
  .cat-text { left: 20px; right: 20px; bottom: 20px; gap: 6px; }
  .cat-name, .cat-wide .cat-name { font-size: 16px; letter-spacing: .14em; }
  .cat-lg .cat-name { font-size: 26px; }
  .cat-meta { font-size: 10px; letter-spacing: .2em; }
  .listing-tools { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
  .chip { white-space: nowrap; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .card h3 { font-size: 14px; }
  .price { font-size: 16px; }
  .wish { width: 34px; height: 34px; top: 8px; right: 8px; }
  .wish svg { width: 17px; height: 17px; }
  .listing { padding: 40px 0 80px; }
  .story { padding: 80px 0; }
  .dialog { padding: 28px 20px; }
  .pd-info h2 { font-size: 32px; }
  .row-2 { grid-template-columns: 1fr; }
  .order-search { max-width: none; flex-basis: 100%; }
  .orders-tools .chips { order: 1; width: 100%; }
  .orders-tools .sort { margin-left: 0; }
  .order-row { grid-template-columns: 66px 1fr 16px; gap: 6px 14px; padding: 18px 16px; }
  .or-thumbs { grid-row: span 2; align-self: start; }
  .or-thumbs .frame { width: 48px; }
  .or-thumbs > * + * { margin-left: -30px; }
  .or-thumbs > :nth-child(n+3) { display: none; }
  .or-id { font-size: 19px; }
  .or-side { grid-column: 2 / 4; justify-content: space-between; }
  .or-chev { grid-row: 1; grid-column: 3; }
  .od-head { flex-direction: column; gap: 10px; }
  .od-head h2 { font-size: 30px; }
  .od-track { flex-direction: column; align-items: stretch; margin: 20px 0 24px; padding: 22px 0; }
  .track li { font-size: 12px; }
  .track small { font-size: 11px; }
}
