/* The Gentleman's Corner — design system. Light, quiet, tailored. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --soft: #f4f1eb;
  --soft-2: #eee9e0;
  --line: #e7e2d8;
  --line-2: #d9d2c5;
  --ink: #1e1d1b;
  --ink-2: #47443e;
  --muted: #8a857b;
  --accent: #9a7744;
  --accent-ink: #7d5f33;
  --accent-soft: #f5eddf;
  --ok: #3e7556; --ok-soft: #e8f1ea;
  --warn: #a8731f; --warn-soft: #f8efdd;
  --danger: #a3443a; --danger-soft: #f7e6e3;
  --serif: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --r: 4px;
  --r-lg: 10px;
  --shadow: 0 1px 2px rgba(30, 29, 27, .04), 0 8px 30px rgba(30, 29, 27, .06);
  --shadow-lg: 0 20px 60px rgba(30, 29, 27, .14);
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-variant-numeric: lining-nums; margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
.ic { display: inline-block; vertical-align: middle; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.r { text-align: right; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- type ---------- */
h1, h2, h3, .display { font-variant-numeric: lining-nums proportional-nums; font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 26px; }
.eyebrow { font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink); }
.lede { font-size: 17px; color: var(--ink-2); max-width: 56ch; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.wordmark em { font-style: italic; font-weight: 500; color: var(--accent-ink); }
.wordmark.sm { font-size: 22px; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: var(--r);
  font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: all .25s var(--ease); white-space: nowrap; border: 1px solid transparent; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink-2); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold:hover { background: var(--accent-ink); }
.btn-danger { color: var(--danger); border-color: #e8c9c4; background: var(--surface); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s; }
.link:hover { color: var(--accent-ink); }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; position: relative; transition: background .2s; }
.icon-btn:hover { background: var(--soft); }

.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > span, .label { font: 600 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border .2s, box-shadow .2s; }
textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(30,29,27,.06); }
.input::placeholder { color: #b3ada2; }
.hint { font-size: 12.5px; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; align-items: start; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.check input { appearance: none; width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 3px; margin: 2px 0 0; flex: none; display: grid; place-items: center; background: var(--surface); transition: all .2s; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.form-error { color: var(--danger); background: var(--danger-soft); border-radius: var(--r); padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }

/* ---------- announcement bar & header ---------- */
.announce { background: var(--soft); border-bottom: 1px solid var(--line); text-align: center; font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); padding: 9px 20px; }
.announce strong { font-weight: 600; color: var(--ink); }
.announce a { border-bottom: 1px solid var(--line-2); margin-left: 8px; }
/* the frosted background sits on ::before, so the phone menu (position: fixed) can cover the whole screen */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(251, 250, 247, .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(30,29,27,.04); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 84px; gap: 20px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.brand small { font: 600 9.5px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav .mob-only { display: none; }
.nav a, .nav button { white-space: nowrap; }
@media (max-width: 1180px) { .nav { gap: 22px; } }
.nav a, .nav button { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 10px 0; position: relative; transition: color .2s; }
.nav a::after, .nav button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform .3s var(--ease); transform-origin: left; }
.nav a:hover, .nav button:hover, .nav a.active { color: var(--ink); }
.nav a:hover::after, .nav button:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-tools { display: flex; justify-content: flex-end; gap: 4px; align-items: center; }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 10px/17px var(--sans); text-align: center; }
.menu-toggle { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(30,29,27,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .25s var(--ease); }
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) 280px; gap: 36px; padding: 36px 28px 40px; }
.mega h4 { margin: 0 0 14px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mega li a { font-family: var(--serif); font-size: 20px; color: var(--ink); transition: color .2s, padding .2s; }
.mega li a:hover { color: var(--accent-ink); padding-left: 4px; }
.mega-feature { background: var(--soft); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 190px; }
.mega-feature .display { font-size: 26px; }

.search-bar { border-top: 1px solid var(--line); background: var(--surface); }
.search-bar form { display: flex; align-items: center; gap: 14px; height: 70px; }
.search-bar input { flex: 1; border: 0; background: none; font: 400 26px var(--serif); outline: none; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-meta div { font-size: 13px; color: var(--muted); }
.hero-meta strong { display: block; font: 500 26px/1.1 var(--serif); color: var(--ink); margin-bottom: 4px; }
.hero-visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #f6f2ea, #ece5d8); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-art { position: absolute; inset: 0; display: grid; place-items: center; color: #b39b74; }
.hero-art .garment { width: 58%; height: auto; }
.hero-art::before { content: ''; position: absolute; inset: 22px; border: 1px solid rgba(154,119,68,.28); border-radius: 6px; }
.hero-tag { position: absolute; left: 22px; bottom: 22px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow); }
.hero-tag .eyebrow { font-size: 10px; }
.hero-tag div:last-child { font: 500 20px var(--serif); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 38px; }
.section-head h2 { margin-top: 10px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.cat-tile { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; transition: transform .5s var(--ease); isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1s var(--ease); }
.cat-tile.has-img::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(255,255,255,.96) 0%, rgba(255,255,255,.6) 28%, transparent 55%); }
.cat-tile .garment { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); width: 46%; height: auto; color: #b8a27e; transition: transform .6s var(--ease); }
.cat-tile:hover .garment { transform: translateX(-50%) translateY(-6px); }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile .display { font-size: 25px; }
.cat-tile .small { color: var(--muted); margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 22px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.card-media img.alt { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.03); }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #bba783; background: linear-gradient(160deg, #f7f4ee, #efe9de); }
.placeholder .garment { width: 44%; height: auto; }
.card-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.flag { background: rgba(255,255,255,.94); color: var(--ink); font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 9px; border-radius: 3px; }
.flag-sale { color: var(--accent-ink); }
.flag-out { color: var(--muted); }
.card-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
.card-quick .btn { width: 100%; background: rgba(255,255,255,.96); color: var(--ink); height: 42px; }
.card-quick .btn:hover { background: var(--ink); color: #fff; }
.card-body { display: grid; gap: 4px; }
.card-cat { font: 600 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.card-name { font: 500 21px/1.2 var(--serif); }
.price { font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.price s { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.stock-note { font-size: 12.5px; color: var(--warn); }

/* ---------- editorial bands ---------- */
.band { background: var(--soft); border-radius: 16px; padding: 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.band-quote { font: italic 400 clamp(26px, 3vw, 38px)/1.25 var(--serif); }
.concierge-demo { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.bubble { padding: 12px 16px; border-radius: 14px; font-size: 14px; max-width: 88%; line-height: 1.5; }
.bubble.me { background: var(--ink); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--soft); border-bottom-left-radius: 4px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value { padding-top: 22px; border-top: 1px solid var(--line); }
.value .display { font-size: 23px; margin: 12px 0 6px; }
.value p { margin: 0; color: var(--muted); font-size: 14px; }
.value .ic { color: var(--accent); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.news { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 10px; align-content: start; }
.news .display { font-size: 25px; }
.news p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.join { text-align: center; padding: 88px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.join h2 { margin: 14px auto 14px; max-width: 18ch; }
.join .lede { margin: 0 auto 30px; }

/* ---------- shop page ---------- */
.page-head { padding: 44px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.page-head h1 { font-size: clamp(36px, 5vw, 58px); margin-top: 12px; }
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a:hover { color: var(--ink); }
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-bottom: 90px; }
.filters { position: sticky; top: 110px; align-self: start; display: grid; gap: 30px; }
.filters h4 { margin: 0 0 12px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.filter-list a { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); font-size: 14.5px; transition: color .2s; }
.filter-list a:hover, .filter-list a.on { color: var(--ink); }
.filter-list a.on { font-weight: 600; }
.filter-list a span { color: var(--muted); font-size: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 14px; flex-wrap: wrap; }
.toolbar select { height: 40px; width: auto; padding: 0 34px 0 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 18px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .display { color: var(--ink); font-size: 30px; margin-bottom: 8px; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; padding: 30px 0 90px; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-self: start; position: sticky; top: 110px; }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumbs button { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; border: 1px solid transparent; background: var(--soft); opacity: .65; transition: all .2s; }
.thumbs button.on, .thumbs button:hover { opacity: 1; border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--soft); cursor: zoom-in; }
.main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.main-img.zoom img { transform: scale(1.8); cursor: zoom-out; }
.gallery.single { grid-template-columns: 1fr; }
.pdp-info h1 { font-size: clamp(34px, 4vw, 50px); margin: 12px 0 16px; }
.pdp-info .price { font-size: 22px; }
.pdp-info .price s { font-size: 16px; }
.pdp-desc { color: var(--ink-2); margin: 24px 0; white-space: pre-line; }
.opt { margin: 26px 0; }
.opt-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); font-size: 14px; transition: all .2s; }
.opts button:hover { border-color: var(--ink); }
.opts button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); height: 48px; background: var(--surface); }
.qty button { width: 42px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.qty input { width: 40px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; margin: 28px 0 18px; }
.buy-row .btn { flex: 1; }
.assure { border-top: 1px solid var(--line); margin-top: 30px; }
.assure details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.assure summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.assure summary::after { content: '+'; font-size: 18px; font-weight: 400; }
.assure details[open] summary::after { content: '−'; }
.assure details p { color: var(--ink-2); margin: 14px 0 0; font-size: 14.5px; }
.stock-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ok); }
.stock-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-pill.low { color: var(--warn); }
.stock-pill.out { color: var(--muted); }

/* ---------- drawer, modal, overlay ---------- */
.overlay { position: fixed; inset: 0; background: rgba(30,29,27,.28); backdrop-filter: blur(2px); z-index: 80; opacity: 0; visibility: hidden; transition: all .3s; }
.overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--surface); z-index: 90; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head .display { font-size: 28px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 26px; }
.drawer-foot { padding: 22px 26px 26px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--bg); }
.line-item { display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.li-media { position: relative; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden; background: var(--soft); }
.li-media img { width: 100%; height: 100%; object-fit: cover; }
.li-media .garment { width: 60%; }
.li-name { font: 500 18px/1.2 var(--serif); }
.li-meta { font-size: 12.5px; color: var(--muted); margin: 3px 0 10px; }
.li-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.qty.sm { height: 34px; }
.qty.sm button { width: 30px; }
.qty.sm input { width: 28px; font-size: 13px; }
.remove { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.remove:hover { color: var(--danger); }
.totals { display: grid; gap: 8px; font-size: 14px; }
.totals > div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 17px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: all .3s; }
.modal.open { visibility: visible; opacity: 1; }
.modal-card { background: var(--surface); border-radius: 14px; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 40px; box-shadow: var(--shadow-lg); position: relative; transform: translateY(14px) scale(.98); transition: transform .4s var(--ease); }
.modal.open .modal-card { transform: none; }
.modal-card.wide { width: min(760px, 100%); }
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-card h2 { font-size: 34px; margin: 10px 0 8px; }

.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 8px; font-size: 14px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all .3s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast-err { background: var(--danger); }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding: 10px 0 90px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 26px; margin-bottom: 20px; display: flex; gap: 12px; align-items: baseline; }
.panel h3 .step { font: 600 11px var(--sans); letter-spacing: .14em; color: var(--accent-ink); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.choice { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 18px; cursor: pointer; display: grid; gap: 4px; transition: all .2s; background: var(--surface); }
.choice:hover { border-color: var(--ink-2); }
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); }
.choice strong { font-size: 15px; }
.choice span { font-size: 12.5px; color: var(--muted); }
.summary { position: sticky; top: 110px; align-self: start; background: var(--soft); border-radius: var(--r-lg); padding: 30px; }
.summary .line-item { grid-template-columns: 60px 1fr auto; padding: 14px 0; border-color: var(--line-2); }
.summary .li-name { font-size: 16px; }
.note-box { background: var(--accent-soft); border-radius: var(--r); padding: 14px 16px; font-size: 13.5px; color: var(--accent-ink); }

/* ---------- account ---------- */
.auth-wrap { max-width: 460px; margin: 30px auto 100px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button, .tabs a { padding: 12px 0; font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.tabs .on { color: var(--ink); border-color: var(--ink); }
.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding-bottom: 90px; }
.side-nav { display: grid; gap: 4px; align-content: start; }
.side-nav a, .side-nav button { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: var(--r); color: var(--ink-2); font-size: 14.5px; text-align: left; }
.side-nav a:hover, .side-nav button:hover { background: var(--soft); }
.side-nav a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: center; margin-bottom: 12px; }
.order-card .display { font-size: 22px; }
.status { display: inline-flex; align-items: center; gap: 7px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 20px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-paid, .status-ready { background: var(--accent-soft); color: var(--accent-ink); }
.status-completed { background: var(--ok-soft); color: var(--ok); }
.status-cancelled { background: var(--soft); color: var(--muted); }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.notice .ic { color: var(--accent); margin-top: 3px; }

/* ---------- receipt ---------- */
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px; max-width: 760px; margin: 0 auto; position: relative; }
.receipt-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.receipt-meta { font-size: 12.5px; margin-top: 10px; line-height: 1.6; }
.receipt-title { text-align: right; }
.receipt-no { font: 500 30px/1.1 var(--serif); margin-top: 6px; }
.stamp { display: inline-block; margin-top: 10px; border: 1.5px solid var(--ok); color: var(--ok); font: 700 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; padding: 7px 12px; border-radius: 3px; transform: rotate(-4deg); }
.stamp-x { border-color: var(--danger); color: var(--danger); }
.receipt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; margin: 26px 0; }
.receipt-grid dt { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.receipt-grid dd { margin: 0; font-size: 14px; }
.receipt-items { width: 100%; border-collapse: collapse; font-size: 14px; }
.receipt-items th { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.receipt-items td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt-items th.r, .receipt-items td.r { text-align: right; padding-left: 14px; }
.receipt-items tfoot td { border: 0; padding: 6px 0; }
.receipt-items tfoot tr:first-child td { padding-top: 16px; }
.receipt-items .grand td { font: 600 20px var(--serif); border-top: 1px solid var(--ink); padding-top: 12px; }
.pay-box { margin-top: 26px; background: var(--accent-soft); border-radius: var(--r); padding: 18px 20px; }
.pay-box p { margin: 8px 0 0; font-size: 14px; }
.receipt-foot { margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--line-2); text-align: center; font-size: 12.5px; color: var(--muted); }
.receipt-actions { display: flex; gap: 10px; justify-content: center; margin: 26px 0 0; flex-wrap: wrap; }

/* ---------- concierge ---------- */
.concierge-fab { position: fixed; right: 24px; bottom: 24px; z-index: 70; height: 54px; padding: 0 22px 0 18px; border-radius: 28px; background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px;
  font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 12px 30px rgba(30,29,27,.22); transition: transform .3s var(--ease); }
.concierge-fab:hover { transform: translateY(-2px); }
.concierge-fab .dot { width: 8px; height: 8px; border-radius: 50%; background: #c9a56c; box-shadow: 0 0 0 4px rgba(201,165,108,.25); }
.concierge { position: fixed; right: 24px; bottom: 24px; z-index: 95; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 48px)); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(.97); transform-origin: bottom right; opacity: 0; visibility: hidden; transition: all .35s var(--ease); border: 1px solid var(--line); }
.concierge.open { transform: none; opacity: 1; visibility: visible; }
.c-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: var(--bg); }
.c-head .display { font-size: 24px; }
.c-head .small { display: flex; align-items: center; gap: 6px; }
.c-head .small::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.c-body { flex: 1; overflow: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.c-body .bubble { white-space: pre-line; }
.c-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.c-suggest button { font-size: 12.5px; border: 1px solid var(--line-2); border-radius: 16px; padding: 7px 12px; background: var(--surface); transition: all .2s; }
.c-suggest button:hover { border-color: var(--ink); }
.c-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.c-form input { flex: 1; height: 46px; border: 1px solid var(--line-2); border-radius: 23px; padding: 0 18px; background: var(--bg); }
.c-form input:focus { outline: none; border-color: var(--ink); }
.c-form button { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.c-prod { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 6px 0; white-space: normal; transition: border .2s; }
.c-prod:hover { border-color: var(--ink); }
.c-prod .li-media { border-radius: 5px; }
.c-prod strong { display: block; font: 500 15px/1.2 var(--serif); }
.c-prod span { font-size: 12.5px; color: var(--muted); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 44px; }
.site-footer h4 { margin: 0 0 16px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.site-footer li a:hover { color: var(--ink); }
.site-footer li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer li .ic { color: var(--muted); margin-top: 2px; }
.pay-marks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.pay-mark { border: 1px solid var(--line-2); border-radius: 4px; padding: 6px 10px; font: 600 11px var(--sans); letter-spacing: .08em; color: var(--ink-2); background: var(--surface); }
.footer-base { border-top: 1px solid var(--line-2); padding: 22px 0; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.skeleton { background: linear-gradient(90deg, var(--soft) 0%, var(--soft-2) 50%, var(--soft) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }
.fade-in { animation: fadeIn .5s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .band, .pdp, .checkout { grid-template-columns: 1fr; gap: 40px; }
  .band { padding: 40px; }
  .values { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery, .summary, .filters { position: static; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 18px; }
  .shop-layout, .account-grid { grid-template-columns: 1fr; gap: 24px; }
  .filters { grid-template-columns: 1fr; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-list a { border: 1px solid var(--line-2); border-radius: 18px; padding: 6px 14px; gap: 8px; }
  .filter-list a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
  .grid { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .card-name { font-size: 18px; }
  .card-quick { display: none; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { grid-auto-flow: column; grid-auto-columns: 64px; order: 2; overflow: auto; }
  .receipt { padding: 26px 20px; }
  .receipt-grid { grid-template-columns: 1fr 1fr; }
  .receipt-head { flex-direction: column; }
  .receipt-title { text-align: left; }
  .modal-card { padding: 30px 22px; }
  .hero { padding: 26px 0 60px; }
  .hero-meta { gap: 20px; }
  .section { padding: 60px 0; }
  .side-nav { grid-auto-flow: column; overflow: auto; }
  .concierge-fab span.lbl { display: none; }
  .concierge-fab { padding: 0 17px; }
}
@media (max-width: 520px) {
  .values, .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-tile { padding: 14px; }
  .cat-tile .display { font-size: 19px; }
  .band { padding: 28px 22px; }
  .panel { padding: 22px; }
  .footer-base { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- print (receipts) ---------- */
@media print {
  body { background: #fff; }
  body > *:not(main):not(.admin-shell) { display: none !important; }
  .no-print, .site-header, .site-footer, .announce, .concierge-fab, .concierge, .receipt-actions, .admin-side, .admin-top, .crumbs, .page-head { display: none !important; }
  .receipt { border: 0; padding: 0; max-width: none; }
  .pay-box { background: #fff; border: 1px solid #ccc; }
  .admin-main { padding: 0 !important; }
}

/* Numbers read better in the sans face (Cormorant's old-style "1" looks like "I") */
.receipt-no, .receipt-items .grand td, .hero-meta strong { font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.receipt-no { font-size: 24px; }
.receipt-items .grand td { font-size: 17px; }
.hero-meta strong { font-size: 19px; }

/* sizes / colours that are sold out */
.opts button.sold { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--soft) 6px 7px); text-decoration: line-through; }
.opts button.sold.on { color: var(--ink); }

/* ---------- a little life on the public pages ---------- */
/* hero: the signature pieces take turns */
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-slides img.on { opacity: 1; animation: heroDrift 7s var(--ease) both; }
@keyframes heroDrift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-tag { transition: opacity .3s var(--ease), transform .3s var(--ease); }
.hero-tag:hover { transform: translateY(-2px); }
.hero-tag.swap { opacity: 0; transform: translateY(4px); }
.hero-dots { position: absolute; right: 22px; top: 22px; display: flex; gap: 8px; }
.hero-dots button { width: 7px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(30,29,27,.12); transition: width .4s var(--ease), background .3s; }
.hero-dots button.on { width: 22px; background: #fff; }

/* open / closed, from the shop's hours */
.open-status { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.open-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.open-status.is-open { color: var(--ok); }
.open-status.is-open i { background: var(--ok); animation: livePulse 2.4s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(62,117,86,.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(62,117,86,0); } }

/* slow ribbon of the shop's promises under the hero */
.ribbon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-track { display: flex; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track > div { display: flex; }
.ribbon span { font: italic 400 19px/1 var(--serif); color: var(--ink-2); white-space: nowrap; display: inline-flex; align-items: center; }
.ribbon span::after { content: '✦'; font: normal 10px/1 var(--sans); color: var(--accent); margin: 0 34px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* the sample conversation plays out */
.concierge-demo .bubble { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.concierge-demo .bubble.pending { opacity: 0; transform: translateY(8px); }
.concierge-demo .typing.pending { display: none; }

/* small touches */
.flag-new { color: var(--ok); }
.cat-tile { box-shadow: 0 0 0 rgba(30,29,27,0); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value .ic { transition: transform .5s var(--ease); }
.value:hover .ic { transform: rotate(-8deg) scale(1.12); }
@media (max-width: 820px) { .ribbon span { font-size: 17px; } .ribbon span::after { margin: 0 22px; } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } .hero-slides img.on { animation: none; } }
/* page titles line up with the content under them; visit-page cards sit level */
.wrap.page-head, .wrap.footer-grid, .wrap.footer-base { padding-left: 28px; padding-right: 28px; }
.visit-grid .panel + .panel { margin-top: 0; }
@media (max-width: 820px) { .wrap.page-head, .wrap.footer-grid, .wrap.footer-base { padding-left: 18px; padding-right: 18px; } }

/* ---------- header on tablets and phones: menu button, and the full menu below the header ---------- */
@media (max-width: 960px) {
  .header-row { grid-template-columns: auto 1fr auto; height: 68px; gap: 10px; }
  .brand { align-items: flex-start; min-width: 0; }
  .wordmark { font-size: 21px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .brand small { display: none; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .mega { display: none; }
  .nav.mobile-open { display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: 68px; background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 18px 24px 40px; gap: 0; z-index: 39; overflow-y: auto; animation: fadeIn .3s var(--ease); border-top: 1px solid var(--line); }
  .nav.mobile-open > a, .nav.mobile-open > button { font: 500 30px/1.2 var(--serif); letter-spacing: 0; text-transform: none; padding: 12px 0; text-align: left; color: var(--ink); }
  .nav.mobile-open a::after, .nav.mobile-open button::after { display: none; }
  .nav.mobile-open > a.active { color: var(--accent-ink); }
  .nav.mobile-open .mob-only { display: flex; }
  .nav-cats { flex-direction: column; padding: 2px 0 10px 16px; border-left: 1px solid var(--line); margin: 0 0 8px 2px; }
  .nav .nav-cats a { font: 500 21px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink-2); padding: 8px 0; }
  .nav-extra { flex-direction: column; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
  .nav .nav-extra a, .nav .nav-extra button { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); padding: 14px 0; text-align: left; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 520px) {
  .header-row { gap: 6px; }
  .header-row .icon-btn { width: 38px; height: 38px; }
  .header-tools { gap: 0; }
  .wordmark { font-size: 18px; }
}
@media (max-width: 380px) {
  #searchToggle { display: none; } /* search is in the menu */
  .wordmark { font-size: 17px; }
}
body.menu-open .concierge-fab { display: none; }
@media (max-width: 340px) { .wordmark { font-size: 15.5px; } }
.mega-feature .link { align-self: flex-start; }
