/* =========================================================
   Ardent & Lace: store styles
   Change the brand colors and fonts in :root below.
   ========================================================= */
:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --surface-2: #efe9df;
  --ink: #1f1b16;
  --ink-soft: #5c544a;
  --muted: #8a8174;
  --line: #e2dbcf;
  --brand: #2f4a3a;        /* forest green */
  --brand-ink: #f7f3ec;
  --brass: #a8834f;
  --danger: #a23b2a;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(31, 27, 22, .04), 0 8px 24px rgba(31, 27, 22, .06);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-bottom: 12px;
}
h1, h2 { font-family: var(--font-display); letter-spacing: -.01em; line-height: 1.05; }
h2 { font-size: clamp(32px, 4.2vw, 46px); }
em { font-style: italic; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #253c2f; }
.btn-primary[aria-disabled="true"] { background: #8a958d; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--bg); color: var(--brand); }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.icon-btn { background: none; border: 0; padding: 8px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- header ---------- */
.announce {
  background: var(--brand); color: var(--brand-ink);
  text-align: center; font-size: 12.5px; letter-spacing: .06em;
  padding: 9px var(--gutter);
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(31, 27, 22, .04); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  text-decoration: none; letter-spacing: .01em; white-space: nowrap;
}
.logo span { color: var(--brass); font-style: italic; }
.logo-light { color: var(--bg); }
.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.cart-btn:hover { border-color: var(--ink); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft);
  font-size: 11px; display: inline-grid; place-items: center; letter-spacing: 0;
}
.cart-count.has-items { background: var(--brand); color: var(--brand-ink); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 88px); margin-bottom: 24px; }
.hero h1 em { color: var(--brand); }
.lede { font-size: 18px; color: var(--ink-soft); max-width: 460px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; aspect-ratio: 1.25; display: grid; place-items: center; }
.hero-disc {
  position: absolute; inset: 6% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0%, #efe7da 60%, #e6dccb 100%);
}
.hero-art .shoe { position: relative; width: 92%; transform: rotate(-8deg) translateY(-4%); filter: drop-shadow(0 30px 30px rgba(31, 27, 22, .12)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(-8deg) translateY(-7%); } }
.hero-tag {
  position: absolute; right: 6%; bottom: 10%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px 18px; box-shadow: var(--shadow); text-align: left;
}
.hero-tag span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-tag strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.hero-tag:hover { border-color: var(--ink); }

/* ---------- values ---------- */
.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { display: flex; gap: 14px; align-items: flex-start; padding: 28px 20px; }
.value + .value { border-left: 1px solid var(--line); }
.value-icon { font-family: var(--font-display); font-size: 22px; color: var(--brass); line-height: 1.1; min-width: 26px; }
.value h3 { font-size: 15px; font-weight: 500; margin-bottom: 2px; }
.value p { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { margin-bottom: 40px; }
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.result-count { color: var(--muted); font-size: 14px; }

/* ---------- collections ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.collection-grid .collection-art { aspect-ratio: 1.15; }
.collection-tile {
  text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.collection-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3cab9; }
.collection-art { background: var(--surface-2); padding: 28px 18px; display: grid; place-items: center; aspect-ratio: 1.3; }
.collection-art .shoe { transition: transform .4s; }
.collection-tile:hover .shoe { transform: scale(1.05) rotate(-3deg); }
.collection-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; }
.collection-meta h3 { font-family: var(--font-display); font-size: 24px; }
.collection-meta p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.collection-meta span { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- section tabs (Women / Men / Unisex) ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab {
  background: none; border: 0; padding: 10px 0 12px; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- shop toolbar ---------- */
.shop { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
.search, .sort select {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
  padding: 0 16px; height: 40px; color: var(--muted);
}
.search input { border: 0; background: none; outline: none; width: 150px; color: var(--ink); }
.search:focus-within { border-color: var(--ink); }
.sort select { color: var(--ink); appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%235c544a' stroke-width='1.8' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 22px; }
.card { display: flex; flex-direction: column; }
.card-media {
  position: relative; border: 0; padding: 34px 20px; border-radius: var(--radius-lg);
  background: var(--bg); aspect-ratio: 1.1; display: grid; place-items: center;
  transition: background .3s;
}
.card-media .shoe { transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.card-media:hover { background: var(--surface-2); }
.card-media:hover .shoe { transform: scale(1.06) rotate(-4deg); }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.card-body { padding: 16px 4px 0; }
.card-brand { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-bottom: 2px; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-top h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; }
.price { font-weight: 500; }
.colorway { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.swatches { display: flex; gap: 8px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 1px solid rgba(31, 27, 22, .18);
  background: linear-gradient(135deg, var(--sw-a) 0 55%, var(--sw-b) 55% 100%);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px transparent;
  transition: box-shadow .2s;
}
.swatch:hover { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--muted); }
.swatch.active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink); }
.swatches.lg .swatch { width: 30px; height: 30px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); display: grid; gap: 16px; justify-items: center; }

/* ---------- story ---------- */
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-art { background: var(--surface-2); border-radius: var(--radius-lg); padding: 12% 8%; aspect-ratio: 1.05; display: grid; place-items: center; }
.story-art .shoe { transform: rotate(-6deg); filter: drop-shadow(0 24px 24px rgba(31, 27, 22, .12)); }
.story-copy h2 { margin-bottom: 20px; }
.story-copy > p { color: var(--ink-soft); font-size: 17px; margin-bottom: 32px; }
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; }
.process li {
  counter-increment: step; display: grid; grid-template-columns: 48px 1fr; row-gap: 2px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.process li::before { content: "0" counter(step); grid-row: span 2; font-family: var(--font-display); font-size: 22px; color: var(--brass); }
.process strong { font-weight: 500; }
.process span { color: var(--muted); font-size: 15px; }

/* ---------- visit ---------- */
.visit { background: var(--surface); border-top: 1px solid var(--line); }
.visit-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.visit h2 { margin-bottom: 32px; }
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.visit-grid h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.visit-grid p { font-size: 15px; }
.visit-grid a { text-decoration: none; border-bottom: 1px solid var(--line); }
.visit-grid a:hover { border-color: var(--ink); }
.map-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1.5; border: 1px solid var(--line); }
.map-card svg { width: 100%; height: 100%; }
.map-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%);
  background: var(--ink); color: var(--bg); font-size: 13px; padding: 8px 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; box-shadow: var(--shadow);
}
.map-pin span { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }

/* ---------- FAQ ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative;
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 400; color: var(--brass); font-size: 22px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); padding: 0 0 20px; font-size: 15px; }

/* ---------- product photos ---------- */
/* Photos fill their frame (cropped to fit), so the shoe appears large. */
/* The product photos are portrait with the shoe in the lower third, so frame toward the bottom. */
.photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; }
.card-media:has(.photo), .collection-art:has(.photo), .story-art:has(.photo),
.line-art:has(.photo), .sum-art:has(.photo) { padding: 0; overflow: hidden; position: relative; }
.card-media .photo, .collection-art .photo, .story-art .photo { position: absolute; inset: 0; }
.collection-art .photo { object-position: 50% 85%; }
.sum-art:has(.photo) { overflow: visible; }
.card-media .photo, .collection-art .photo, .pd-media .photo { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card-media:hover .photo, .collection-tile:hover .photo { transform: scale(1.05); }

.hero-art:has(.photo) .hero-disc { display: none; }
.hero-art:has(.photo) .hero-tag { top: 6%; bottom: auto; right: 4%; }
.hero-art .photo { position: absolute; inset: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.pd-media:has(.photo) { padding: 0; min-height: 380px; overflow: hidden; }
.pd-media .photo { position: absolute; inset: 0; }

.line-art .photo { aspect-ratio: 1; }
.sum-art .photo { aspect-ratio: 1; border-radius: var(--radius); }

/* ---------- newsletter ---------- */
.newsletter { background: var(--brand); color: var(--brand-ink); padding: 56px 0; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.newsletter h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 6px; }
.newsletter p { opacity: .8; }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter-form input {
  flex: 1; min-width: 0; background: transparent; border: 1px solid rgba(247, 243, 236, .4);
  border-radius: var(--radius); padding: 0 16px; height: 48px; color: var(--brand-ink);
}
.newsletter-form input::placeholder { color: rgba(247, 243, 236, .6); }
.newsletter-form input:focus { outline: none; border-color: var(--brand-ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc7ba; padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: var(--bg); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; text-decoration: none; padding: 3px 0; }
.footer-grid a:not(.logo):hover { color: var(--bg); }
.footer-note { margin-top: 12px; max-width: 260px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #8d857a; }

/* ---------- dialogs (shared) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(31, 27, 22, .45); backdrop-filter: blur(2px); }
dialog[open] { animation: fadeUp .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes fadeUp { from { transform: translateY(14px); } }

/* product dialog */
.product-dialog {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  border-radius: var(--radius-lg);
  overflow: auto;
}
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.pd-inner { display: grid; grid-template-columns: 1.1fr 1fr; }
.pd-media { position: relative; background: var(--bg); display: grid; place-items: center; padding: 48px 32px; min-height: 100%; }
.pd-media .shoe { transform: rotate(-5deg); filter: drop-shadow(0 20px 22px rgba(31, 27, 22, .1)); }
.pd-info { padding: 44px 40px 36px; }
.pd-info h2 { font-size: 40px; }
.pd-price { font-size: 20px; margin: 6px 0 14px; }
.pd-desc { color: var(--ink-soft); margin-bottom: 24px; }
.pd-group { margin-bottom: 22px; }
.pd-label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; font-weight: 500; }
.pd-label span { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 14px; }
.size-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.size {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  height: 42px; font-size: 14px; transition: all .15s;
}
.size:hover:not(:disabled) { border-color: var(--ink); }
.size.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size:disabled { color: #bdb5a8; cursor: not-allowed; background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)); }
.size-grid.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.fit-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pd-buy { display: flex; gap: 10px; margin: 26px 0 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { background: none; border: 0; width: 40px; height: 48px; font-size: 18px; color: var(--ink-soft); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 22px; text-align: center; }
.qty.sm button { width: 30px; height: 32px; font-size: 15px; }
.pd-details { list-style: none; padding: 18px 0 0; margin: 0 0 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 14px; color: var(--ink-soft); }
.pd-details li::before { content: "—"; color: var(--brass); margin-right: 8px; }
.pd-ship { font-size: 13px; color: var(--muted); }

/* cart drawer */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100dvh; height: 100dvh;
  width: min(440px, 100vw);
  display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slideIn .3s cubic-bezier(.2, .7, .2, 1); }
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 28px; }
.ship-progress { padding: 0 24px; }
.ship-progress:not(:empty) { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ship-progress .bar { height: 4px; background: var(--surface-2); border-radius: 999px; margin-top: 10px; overflow: hidden; }
.ship-progress .bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .4s; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-art { background: var(--bg); border-radius: var(--radius); padding: 14px 8px; display: grid; place-items: center; }
.line-top { display: flex; justify-content: space-between; gap: 8px; }
.line-top h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.line-info p { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.line-actions { display: flex; align-items: center; justify-content: space-between; }
.cart-empty { text-align: center; padding: 64px 0; display: grid; gap: 20px; justify-items: center; color: var(--muted); }
.drawer-foot:not(:empty) { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-row { display: flex; justify-content: space-between; font-size: 17px; }
.foot-note { font-size: 13px; color: var(--muted); margin: 4px 0 16px; }

/* checkout */
.checkout { width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--bg); overflow-y: auto; }
.checkout[open] { animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.checkout-bar {
  position: sticky; top: 0; z-index: 2; background: var(--bg);
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--gutter); border-bottom: 1px solid var(--line);
}
.checkout-wrap {
  max-width: 1080px; margin: 0 auto; padding: 40px var(--gutter) 64px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start;
}
.checkout-form h2 { font-size: 40px; margin-bottom: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
legend { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; padding: 0; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-soft); }
.field input, .field select {
  height: 46px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 0 14px; width: 100%;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.ship-options { grid-column: 1 / -1; display: grid; gap: 8px; }
.ship-option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer;
}
.ship-option:has(input:checked) { border-color: var(--ink); }
.ship-option input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.ship-name { flex: 1; display: flex; flex-direction: column; }
.ship-name small { color: var(--muted); font-size: 13px; }

/* floating WhatsApp chat button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
body.locked .wa-float { display: none; }
.payment-note {
  grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface-2); border-radius: var(--radius); padding: 16px; font-size: 14px; color: var(--ink-soft);
}
.payment-note svg { flex: none; margin-top: 2px; color: var(--brand); }
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; margin-bottom: 8px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 90px; }
.summary h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: 12px; }
.sum-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sum-art { position: relative; background: var(--bg); border-radius: var(--radius); padding: 10px 6px; }
.sum-qty { position: absolute; top: -7px; right: -7px; background: var(--ink-soft); color: var(--bg); font-size: 11px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.sum-info { display: flex; flex-direction: column; }
.sum-info span { color: var(--muted); }
.totals { margin: 16px 0 0; display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; font-size: 15px; }
.totals dd { margin: 0; }
.totals .grand { padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 500; }
.checkout-wrap.done > form, .checkout-wrap.done > aside { display: none; }
.checkout-wrap.done { grid-template-columns: 1fr; }
.confirm { text-align: center; max-width: 520px; margin: 40px auto; display: grid; gap: 14px; justify-items: center; }
.confirm h2 { font-size: 44px; }
.confirm p { color: var(--ink-soft); }
.confirm .muted { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.confirm-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 200;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { border-left: 0; }
  .value:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-grid; margin-left: -8px; }
  .header-inner { height: 64px; gap: 8px; }
  .logo { font-size: 22px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .cart-btn { margin-left: auto; }
  .hero-inner, .story-inner, .visit-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }
  .pd-inner { grid-template-columns: 1fr; }
  .pd-media { padding: 40px 24px 24px; }
  .pd-info { padding: 24px 24px 28px; }
  .checkout-wrap { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
}

@media (max-width: 560px) {
  .cart-label { display: none; }
  .values-grid { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .value { padding: 18px 4px; }
  .collection-grid { grid-template-columns: 1fr; gap: 12px; }
  .collection-grid .collection-art { aspect-ratio: 1.5; }
  .collection-meta { padding: 12px 14px; }
  .tabs { gap: 22px; }
  .collection-meta h3 { font-size: 20px; }
  .shop-head { flex-direction: column; align-items: flex-start; }
  .toolbar-right { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card-media { padding: 22px 10px; }
  .card-top { flex-direction: column; gap: 0; }
  .card-top h3 { font-size: 20px; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .size-grid { grid-template-columns: repeat(4, 1fr); }
  .pd-details { grid-template-columns: 1fr; }
  .pd-info h2 { font-size: 34px; }
  fieldset { grid-template-columns: 1fr; }
  .product-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .hero-tag { right: 0; bottom: 4%; padding: 10px 14px; }
  .hero-tag strong { font-size: 20px; }
}

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