/* ==========================================================================
   AURELLE design system — tokens first; every component reads from them.
   ========================================================================== */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --sand: #f2eee7;
  --sand-2: #e9e3d8;
  --ink: #141312;
  --ink-2: #3b3834;
  --muted: #7a746b;
  --line: #e5dfd4;
  --accent: #8a6a46;
  --success: #2f6b4f;
  --danger: #a3392b;
  --warn: #946414;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 4px;
  --r: 10px;
  --r-lg: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(20, 19, 18, .04), 0 12px 32px -12px rgba(20, 19, 18, .14);
  --shadow-lg: 0 24px 64px -16px rgba(20, 19, 18, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
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; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
body.locked { overflow: hidden; }

/* ---------- Type ---------- */
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 60px); font-weight: 500; letter-spacing: -.015em; }
.h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; letter-spacing: -.01em; }
.h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { margin: 8px 0 0; color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), opacity .2s;
}
.btn:hover { background: #2b2926; }
.btn:active { transform: scale(.985); }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--sand); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after { border-color: rgba(0,0,0,.15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; position: relative; transition: background .2s; }
.icon-btn:hover { background: rgba(20,19,18,.06); }
.count-badge {
  position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center;
}
.count-badge[data-count="0"] { display: none; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #e9e4db; font-size: 12px; letter-spacing: .04em; text-align: center; padding: 9px var(--gutter); }
.announce span + span::before { content: "·"; margin: 0 12px; opacity: .5; }
@media (max-width: 720px) { .announce span:not(:first-child) { display: none; } }

.header { position: sticky; top: 0; z-index: 40; background: rgba(251,250,247,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .28em; padding-left: .28em; }
.nav { display: flex; gap: 28px; align-items: center; height: 100%; }
.nav-item { height: 100%; display: flex; align-items: center; }
.nav-link { font-size: 13px; letter-spacing: .02em; position: relative; padding: 6px 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-item:hover .nav-link::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; gap: 2px; }
.only-mobile { display: none; }
@media (max-width: 960px) {
  .nav, .hide-mobile { display: none; }
  .only-mobile { display: inline-grid; }
  .logo { font-size: 21px; }
}

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 220px 1fr 340px; gap: 48px; padding-block: 36px 44px; }
.mega-links a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 15px; transition: color .2s, transform .2s var(--ease); }
.mega-links a:hover { color: var(--ink); transform: translateX(3px); }
.mega-feature { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; position: relative; background: var(--sand); }
.mega-feature img { width: 100%; height: 100%; object-fit: cover; }
.mega-feature span { position: absolute; left: 16px; bottom: 14px; color: #fff; font-size: 13px; letter-spacing: .06em; text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* ---------- Drawers, overlay, search ---------- */
.scrim { position: fixed; inset: 0; background: rgba(20,19,18,.36); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 60; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(440px, 100%); background: var(--bg); z-index: 70;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.from-left { left: 0; right: auto; transform: translateX(-100%); }
.drawer.is-open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.mobile-nav .sub a { font-size: 14px; padding: 10px 0 10px 14px; border: 0; color: var(--ink-2); }

.search-panel { position: fixed; inset: 0 0 auto 0; background: var(--bg); z-index: 70; transform: translateY(-100%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; }
.search-panel.is-open { transform: none; }
.search-form { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--ink); padding: 28px 0 12px; }
.search-form input { flex: 1; border: 0; background: transparent; font-family: var(--serif); font-size: clamp(26px, 4vw, 40px); outline: none; min-width: 0; }
.search-results { padding: 28px 0 40px; min-height: 120px; }
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.suggest-item .media { aspect-ratio: 4/5; border-radius: var(--r-sm); }
.suggest-item p { margin: 8px 0 0; font-size: 13px; }

/* ---------- Media (image + elegant fallback) ---------- */
.media { position: relative; overflow: hidden; background: var(--sand); }
.media img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.media .alt-img { position: absolute; inset: 0; opacity: 0; }
.media[data-monogram]::before {
  content: attr(data-monogram); position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: clamp(28px, 5vw, 56px); letter-spacing: .1em; color: var(--sand-2);
  background: linear-gradient(160deg, var(--sand), #ebe5da);
}
.media img.is-broken { visibility: hidden; }

/* ---------- Category tiles ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(220px, 34vh)); }
.tile { position: relative; border-radius: var(--r); overflow: hidden; isolation: isolate; color: #fff; }
.tile:first-child { grid-row: span 2; }
.tile .media { position: absolute; inset: 0; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,9,8,.55)); z-index: 1; }
.tile-copy { position: absolute; left: clamp(18px, 3vw, 36px); right: 18px; bottom: clamp(18px, 3vw, 32px); z-index: 2; }
.tile-copy .eyebrow { color: rgba(255,255,255,.8); }
.tile-copy h2 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 46px); margin: 6px 0 12px; }
.tile-cta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 4px; }
.tile:hover .media img { transform: scale(1.04); }
.tiles.cols-4 { grid-template-columns: repeat(4, 1fr); grid-template-rows: minmax(300px, 46vh); }
.tiles.cols-4 .tile:first-child { grid-row: auto; }
@media (max-width: 860px) {
  .tiles, .tiles.cols-4 { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .tile:first-child { grid-column: span 2; grid-row: auto; }
  .tiles.cols-4 .tile:first-child { grid-column: auto; }
}

/* ---------- Product grid + card ---------- */
.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { position: relative; }
.card .media { aspect-ratio: 4/5; border-radius: var(--r-sm); }
.card:hover .media .alt-img { opacity: 1; }
.card:hover .media img:not(.alt-img) { transform: scale(1.03); }
.card-body { padding-top: 14px; display: grid; gap: 3px; }
.card-brand { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: 15px; line-height: 1.35; }
.card-price { font-size: 14px; margin-top: 2px; display: flex; gap: 8px; align-items: baseline; }
.badge { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(255,255,255,.92); color: var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.badge.dark { background: var(--ink); color: #fff; }
.wish {
  position: absolute; right: 10px; top: 10px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9);
  display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; backdrop-filter: blur(6px);
}
.wish:hover { transform: scale(1.08); }
.wish.is-saved .icon { fill: var(--ink); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: .9em; }
.sold-out .media img { opacity: .55; }

/* Horizontal rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .rail { grid-auto-columns: 38%; } }
@media (max-width: 760px) { .rail { grid-auto-columns: 66%; gap: 12px; } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s, background .2s; }
.rail-nav button:hover { border-color: var(--ink); background: var(--surface); }
@media (max-width: 760px) { .rail-nav { display: none; } }

/* ---------- Promise strip / editorial ---------- */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise > div { padding: 28px 24px; display: grid; gap: 6px; align-content: start; }
.promise > div + div { border-left: 1px solid var(--line); }
.promise strong { font-weight: 500; font-size: 15px; display: flex; gap: 10px; align-items: center; }
.promise span { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr 1fr; } .promise > div:nth-child(3) { border-left: 0; } .promise > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .promise > div { padding: 20px 14px; } }

.editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.editorial .media { aspect-ratio: 5/4; border-radius: var(--r); }
.editorial blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; }
@media (max-width: 860px) { .editorial { grid-template-columns: 1fr; } }

/* ---------- Listing ---------- */
.page-head { padding-block: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 32px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: "/"; margin-right: 8px; opacity: .5; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: var(--surface); transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.select { appearance: none; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23141312' stroke-width='1.5'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; padding: 0 38px 0 16px; height: 40px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
@media (max-width: 960px) { .listing { grid-template-columns: 1fr; } .filters-side { display: none; } }
.filter-group { border-bottom: 1px solid var(--line); padding: 4px 0 18px; margin-bottom: 18px; }
.filter-group h4 { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.empty { text-align: center; padding: 72px 16px; }
.empty .h2 { margin-bottom: 12px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; align-items: center; }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); padding-top: 16px; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main { aspect-ratio: 4/5; border-radius: var(--r); cursor: zoom-in; }
.gallery-main img { transition: opacity .35s var(--ease); }
.thumbs { display: grid; gap: 10px; align-content: start; }
.thumb { aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden; opacity: .55; border: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--ink); }
.thumb .media { height: 100%; }
@media (max-width: 960px) {
  .gallery { position: static; grid-template-columns: 1fr; margin-inline: calc(var(--gutter) * -1); }
  .thumbs { display: none; }
  .gallery-main { display: none; }
  .gallery-scroll { display: grid !important; }
}
.gallery-scroll { display: none; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-scroll .media { aspect-ratio: 4/5; scroll-snap-align: start; }
.dots { display: none; justify-content: center; gap: 6px; margin-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s, width .3s var(--ease); }
.dots i.is-active { background: var(--ink); width: 18px; border-radius: 3px; }
@media (max-width: 960px) { .dots { display: flex; } }

.buy { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .buy { position: static; } }
.buy h1 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); margin: 10px 0 12px; }
.buy-price { font-size: 20px; display: flex; gap: 12px; align-items: baseline; }
.tax-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.option-label { display: flex; justify-content: space-between; font-size: 13px; margin: 28px 0 12px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-width: 56px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-size: 13px; transition: border-color .2s, box-shadow .2s; position: relative;
}
.opt:hover { border-color: var(--ink-2); }
.opt.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt.is-out { color: var(--muted); background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)) var(--surface); }
.opt.swatch { min-width: 0; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.opt.swatch.is-selected { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }
.stock { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 18px 0 20px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.stock[data-state="low"]::before { background: var(--warn); }
.stock[data-state="out"]::before { background: var(--danger); }
.buy-actions { display: grid; grid-template-columns: 1fr 52px; gap: 10px; }
.buy-actions .wish { position: static; width: 52px; height: 52px; border: 1px solid var(--line); background: var(--surface); }
.assure { margin: 28px 0; display: grid; gap: 14px; font-size: 13px; color: var(--ink-2); }
.assure div { display: flex; gap: 12px; align-items: flex-start; }
.assure .icon { color: var(--accent); margin-top: 1px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; font-size: 14px; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform .3s var(--ease); }
.acc[open] summary .icon { transform: rotate(45deg); }
.acc-body { padding: 0 0 20px; font-size: 14px; color: var(--ink-2); }
.acc-body ul { margin: 0; padding-left: 18px; }
.acc-body li + li { margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 36px; background: var(--surface); }
.qty button { width: 34px; height: 100%; display: grid; place-items: center; }
.qty button:disabled { opacity: .3; }
.qty span { min-width: 22px; text-align: center; font-size: 13px; }
.sticky-buy { display: none; }
@media (max-width: 960px) {
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(251,250,247,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .35s var(--ease); }
  .sticky-buy.is-visible { transform: none; }
  .sticky-buy .btn { flex: 1; }
}

/* Zoom lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: none; overflow: auto; cursor: zoom-out; }
.lightbox.is-open { display: block; }
.lightbox img { width: 100%; max-width: 1400px; margin: 0 auto; }
.lightbox .icon-btn { position: fixed; top: 16px; right: 16px; background: var(--surface); }

/* ---------- Bag lines & summaries ---------- */
.line { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line .media { aspect-ratio: 4/5; border-radius: var(--r-sm); }
.line-name { font-size: 14px; line-height: 1.35; }
.line-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.line-controls { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.line-remove { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line-remove:hover { color: var(--ink); }
.line-price { text-align: right; font-size: 14px; }
.line.is-unavailable { opacity: .65; }
.warn-text { color: var(--danger); font-size: 12px; margin-top: 6px; }
@media (max-width: 480px) { .line { grid-template-columns: 76px 1fr; } .line-price { grid-column: 2; text-align: left; } }

.ship-meter { font-size: 13px; margin-bottom: 16px; }
.ship-meter .bar { height: 3px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.ship-meter .bar i { display: block; height: 100%; background: var(--ink); transition: width .6s var(--ease); }
.totals { display: grid; gap: 10px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals .grand { font-size: 17px; font-weight: 500; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.totals .sub { font-size: 12px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.4vw, 32px); }
.panel-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.panel h2, .panel h3 { margin-bottom: 18px; }
.step-title { display: flex; align-items: center; gap: 12px; font-size: 18px; margin-bottom: 20px; }
.step-title i { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 12px; display: grid; place-items: center; }

/* Address cards */
.addr-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.addr { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; font-size: 13px; line-height: 1.6; cursor: pointer; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.addr strong { font-size: 14px; font-weight: 500; }
.addr input { position: absolute; opacity: 0; }
.addr:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.addr-actions { display: flex; gap: 14px; margin-top: 10px; }
.addr-new { display: grid; place-items: center; border-style: dashed; color: var(--muted); min-height: 120px; }
.addr-new:hover { color: var(--ink); border-color: var(--ink); }
.tag { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--sand); color: var(--ink-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .02em; margin-bottom: 6px; color: var(--ink-2); }
.field input:not([type=checkbox]), .field select, .field textarea, .input {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.field input:focus, .field select:focus, .input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20,19,18,.06); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field .help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field .error { font-size: 12px; color: var(--danger); margin-top: 6px; }
.field.check-field { display: flex; align-items: center; gap: 10px; }
.field.check-field label { margin: 0; order: 2; font-size: 14px; }
.field.check-field input { width: 18px; height: 18px; accent-color: var(--ink); }
.form-errors { background: #fbf0ee; color: var(--danger); border-radius: var(--r-sm); padding: 12px 16px; font-size: 13px; }

.auth { min-height: calc(100vh - 220px); display: grid; place-items: center; padding-block: 56px; }
.auth-card { width: min(440px, 100%); }
.auth-card .h1 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 8px; }

/* ---------- Account ---------- */
.account { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px); padding-block: 32px 96px; }
.account-nav a { display: block; padding: 10px 0; font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 16px; transition: color .2s, border-color .2s; }
.account-nav a:hover, .account-nav a.is-active { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 860px) {
  .account { grid-template-columns: 1fr; }
  .account-nav { display: flex; overflow-x: auto; gap: 4px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .account-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 10px 12px; white-space: nowrap; }
  .account-nav a.is-active { border-bottom-color: var(--ink); }
}
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.order-thumbs { display: flex; gap: 6px; margin-top: 10px; }
.order-thumbs .media { width: 44px; aspect-ratio: 4/5; border-radius: 3px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status.s-confirmed::before, .status.s-processing::before, .status.s-shipped::before { background: var(--accent); }
.status.s-delivered::before { background: var(--success); }
.status.s-pending_payment::before, .status.s-on_hold::before { background: var(--warn); }
.status.s-cancelled::before, .status.s-refunded::before { background: var(--danger); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 8px 0 8px; }
.tl-step { position: relative; padding-top: 26px; font-size: 13px; }
.tl-step::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line); }
.tl-step::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.tl-step.done::before { background: var(--ink); }
.tl-step.done::after { background: var(--ink); border-color: var(--ink); }
.tl-step.current::after { box-shadow: 0 0 0 5px rgba(20,19,18,.1); }
.tl-step small { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .tl-step { padding: 0 0 22px 28px; }
  .tl-step::before { top: 14px; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .tl-step:last-child::before { display: none; }
}
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: var(--sand); font-size: 14px; }
.notice.success { background: #edf4ef; }
.notice.warn { background: #faf3e6; }
.notice.error { background: #fbf0ee; color: var(--danger); }

/* ---------- Prose (policies) ---------- */
.prose { font-size: 15.5px; color: var(--ink-2); }
.prose h2 { font-family: var(--serif); font-size: 28px; color: var(--ink); margin: 40px 0 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.help-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 6vw, 96px); padding-block: 24px 96px; }
@media (max-width: 860px) { .help-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9c3b8; margin-top: 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-block: 72px 48px; }
.footer h4 { color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer li { list-style: none; margin-bottom: 10px; }
.footer ul { padding: 0; margin: 0; }
.footer .logo { color: #fff; display: inline-block; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid #2d2b28; padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 12px; color: #8f897f; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r); font-size: 14px; box-shadow: var(--shadow-lg); animation: toast-in .4s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.error { background: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Closed overlays: no shadow bleed, not focusable */
.drawer, .search-panel { visibility: hidden; box-shadow: none; transition: transform .45s var(--ease), visibility 0s linear .45s, box-shadow .3s; }
.drawer.is-open, .search-panel.is-open { visibility: visible; box-shadow: var(--shadow-lg); transition: transform .45s var(--ease), visibility 0s; }

/* Image-less editorial tiles stay rich, not washed out */
.tile .media[data-monogram]::before { background: linear-gradient(160deg, #4a4239, #1f1c19); color: rgba(255,255,255,.07); font-size: clamp(120px, 18vw, 260px); }
.tile:nth-child(2) .media[data-monogram]::before { background: linear-gradient(160deg, #6b5a49, #2d2620); }
.tile:nth-child(3) .media[data-monogram]::before { background: linear-gradient(160deg, #3d4446, #191c1d); }
.tile:nth-child(4) .media[data-monogram]::before { background: linear-gradient(160deg, #5b4f45, #24201c); }
.opt.swatch.is-out { opacity: .45; }
.opt.swatch.is-out::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: #fff; transform: rotate(45deg); }
