/* ---------- Tokens ---------- */
:root {
  --paper: #faf8f5;
  --paper-2: #f1ede6;
  --sand: #e3dbcd;
  --ink: #141210;
  --ink-2: #4a433d;
  --muted: #857b71;
  --terra: #b4603a;
  --terra-dark: #93492a;
  --sage: #7d8a6a;
  --gold: #c9a467;
  --white: #ffffff;
  --line: rgba(20, 18, 16, 0.14);
  --line-2: rgba(20, 18, 16, 0.07);
  --shadow: 0 24px 60px -24px rgba(20, 18, 16, 0.28), 0 8px 20px -12px rgba(20, 18, 16, 0.12);
  --shadow-sm: 0 2px 10px rgba(20, 18, 16, 0.06);
  --radius: 6px;
  --radius-sm: 3px;
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", "Cormorant Garamond", "Georgia", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  /* legacy aliases used by admin.css */
  --cream: var(--paper);
  --cream-2: var(--paper-2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0; font-variation-settings: "opsz" 72; }
p { margin: 0 0 1em; }
::selection { background: var(--ink); color: var(--paper); }
.wrap { width: min(var(--maxw), 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* micro label used everywhere: uppercase, tracked */
.label, .eyebrow, .nav a, .chip, .cat-tile span, .footer-links a, .card-cat {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 30px; min-height: 50px; border-radius: 2px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .35s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.16) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { background: #2a2521; border-color: #2a2521; }
.btn:active { transform: scale(0.985); transition-duration: .1s; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--paper-2); border-color: var(--paper-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); padding-inline: 0; min-height: 40px; }
.btn-ghost::after { display: none; }
.btn-ghost:hover { background: transparent; border-color: transparent; }
.btn-ghost .arrow { transition: transform .35s var(--ease); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding-inline: 20px; font-size: 0.66rem; }
.btn-block { width: 100%; }
.btn-danger { background: #8a2f22; border-color: #8a2f22; color: #fff; }
.btn-danger:hover { background: #6f241a; border-color: #6f241a; }
.btn .arrow { width: 14px; height: 14px; }
.link { background: none; border: none; padding: 0; color: var(--ink); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; text-decoration: none; position: relative; display: inline-block; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(1); transform-origin: left; transition: transform .4s var(--ease); }
.link:hover::after { transform: scaleX(0); transform-origin: right; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; color: var(--ink);
  position: relative; transition: background .25s ease, transform .35s var(--ease);
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.badge:empty, .badge[data-zero] { display: none; }
.badge.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* ---------- Announcement ticker ---------- */
.announce { background: var(--ink); color: var(--paper); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; overflow: hidden; }
.announce:empty { display: none; }
.marquee { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.announce:hover .marquee { animation-play-state: paused; }
.marquee > span { display: inline-flex; gap: 48px; padding: 9px 24px; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, 0.8); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line-2);
  transition: background .35s ease, box-shadow .35s ease;
}
.header.scrolled { background: rgba(250, 248, 245, 0.92); box-shadow: 0 10px 30px -24px rgba(20, 18, 16, 0.4); }
.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 74px; gap: 12px; }
.header-left { display: flex; align-items: center; gap: 6px; }
.header-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.brand { display: flex; align-items: center; justify-content: center; text-decoration: none; padding: 6px 10px; }
.brand-logo { height: 20px; width: auto; transition: height .35s var(--ease); }
.header.scrolled .brand-logo { height: 17px; }
.nav { display: flex; justify-content: center; gap: 40px; padding: 0 0 16px; max-height: 60px; opacity: 1; transition: max-height .4s var(--ease), opacity .3s ease, padding .4s var(--ease); overflow: hidden; }
.header.scrolled .nav { max-height: 0; opacity: 0; padding: 0; }
.nav a { position: relative; text-decoration: none; color: var(--ink); padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: left; }
.search { position: relative; }
.search input {
  width: 160px; padding: 9px 12px 9px 36px; border-radius: 2px; border: 1px solid transparent; border-bottom-color: var(--line);
  background: transparent; outline: none; font-size: 0.85rem; letter-spacing: 0.02em;
  transition: width .45s var(--ease), border-color .25s, background .25s;
}
.search input::placeholder { color: var(--muted); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.14em; }
.search input:focus { border-color: var(--ink); width: 240px; background: var(--white); }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(540px, 88vh, 920px); overflow: hidden; background: var(--paper-2); }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  opacity: 0; transition: opacity 1.6s ease; will-change: transform, opacity;
}
.hero-media img.active { opacity: 1; animation: kenburns 16s ease-in-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(250, 248, 245, 0) 22%, rgba(250, 248, 245, 0.7) 52%, rgba(250, 248, 245, 0.94) 74%, var(--paper) 100%); pointer-events: none; }
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 0 24px clamp(40px, 7vh, 84px); }
.hero-crest { height: clamp(54px, 7vw, 84px); width: auto; margin: 0 auto 22px; opacity: 0; animation: fadeUp 1.2s var(--ease) .1s forwards; }
.hero .eyebrow { color: var(--ink-2); display: inline-block; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); font-weight: 400; margin: 0 auto 18px; max-width: 16ch; letter-spacing: -0.005em; line-height: 1.04; font-variation-settings: "opsz" 96; }
.hero h1 em { font-style: italic; color: var(--ink); }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.5em); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 300ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero p { font-size: 1rem; color: var(--ink-2); max-width: 54ch; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-content > .eyebrow, .hero-content > p, .hero-content > .hero-actions { opacity: 0; animation: fadeUp 1.1s var(--ease) forwards; }
.hero-content > .eyebrow { animation-delay: .25s; }
.hero-content > p { animation-delay: .9s; }
.hero-content > .hero-actions { animation-delay: 1.05s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; right: 28px; bottom: 28px; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; padding: 0; transition: background .3s; }
.hero-dots button.active { background: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section.tight { padding-top: clamp(40px, 5vw, 70px); }
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .eyebrow { display: inline-block; color: var(--terra); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 400; }
.section-head p { margin: 10px auto 0; color: var(--muted); max-width: 50ch; }
.section-head .btn-ghost { margin-top: 10px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(14px, 2vw, 28px); }
.cat-tile { background: none; border: none; padding: 0; text-align: center; color: inherit; display: grid; gap: 16px; }
.cat-tile .media { aspect-ratio: 1 / 1; background: var(--paper-2); overflow: hidden; border-radius: 2px; }
.cat-tile img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform 1s var(--ease); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile span { position: relative; display: inline-block; justify-self: center; }
.cat-tile span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.cat-tile:hover span::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Feature tiles ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.5vw, 32px); }
.feature-tile { display: grid; gap: 18px; text-align: center; text-decoration: none; color: inherit; }
.feature-tile .media { aspect-ratio: 4 / 5; background: var(--paper-2); overflow: hidden; border-radius: 2px; position: relative; }
.feature-tile img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease); }
.feature-tile:hover img { transform: scale(1.04); }
.feature-tile h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 400; }
.feature-tile .link { justify-self: center; }

/* ---------- Filters ---------- */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; position: sticky; top: 72px; z-index: 5; padding: 12px 0; }
.filters::before { content: ""; position: absolute; inset: 0 -24px; background: rgba(250, 248, 245, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: -1; }
.chips { display: flex; gap: 26px; flex-wrap: wrap; }
.chip { border: none; background: transparent; padding: 8px 0; color: var(--muted); position: relative; transition: color .3s; }
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.chip:hover { color: var(--ink); }
.chip.active { color: var(--ink); }
.chip.active::after { transform: scaleX(1); transform-origin: left; }
.filters-right { display: flex; align-items: center; gap: 18px; }
.select {
  padding: 10px 36px 10px 12px; border-radius: 2px; border: 1px solid var(--line); background: transparent;
  appearance: none; -webkit-appearance: none; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23141210' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; transition: border-color .25s;
}
.select:hover { border-color: var(--ink); }
.result-count { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 44px 24px; }
.card { background: transparent; border: none; padding: 0; text-align: center; color: inherit; display: flex; flex-direction: column; gap: 16px; }
.card-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--paper-2); display: block; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: transform 1.1s var(--ease), opacity .7s ease; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img.main { transform: scale(1.05); }
.card:hover .card-media img.alt { opacity: 1; }
.card.has-alt:hover .card-media img.main { opacity: 0; }
.card-media .tag { position: absolute; top: 14px; left: 14px; background: var(--white); color: var(--ink); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; padding: 6px 10px; border-radius: 2px; }
.card-media .tag.sold { background: var(--ink); color: var(--paper); }
.card-media .tag.sale { background: var(--terra); color: #fff; }
.card-quick { position: absolute; left: 14px; right: 14px; bottom: 14px; opacity: 0; transform: translateY(10px); transition: all .45s var(--ease); }
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
.card-quick .btn { background: rgba(20, 18, 16, 0.92); border-color: transparent; backdrop-filter: blur(8px); }
.card-quick .btn.added { background: var(--sage); }
.card-body { display: grid; gap: 4px; justify-items: center; padding-inline: 8px; }
.card-cat { color: var(--muted); font-size: 0.62rem; }
.card-name { font-family: var(--serif); font-size: 1.12rem; font-weight: 400; line-height: 1.25; text-decoration: none; transition: color .3s; }
.card:hover .card-name { color: var(--terra-dark); }
.price { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; grid-column: 1 / -1; display: grid; gap: 14px; justify-items: center; }

/* ---------- Featured scroller ---------- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 24px; overflow-x: auto; padding: 4px 4px 16px; margin-inline: -4px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.scroller .card { scroll-snap-align: start; }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.about-grid img { aspect-ratio: 3 / 4; object-fit: contain; background: var(--white); width: 100%; border-radius: 2px; }
.about .eyebrow { color: var(--terra); display: inline-block; margin-bottom: 14px; }
.about h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 400; margin-bottom: 18px; }
.about p { color: var(--ink-2); font-size: 1.02rem; }

/* ---------- Experience strip ---------- */
.experience { border-top: 1px solid var(--line-2); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.exp-item { display: grid; gap: 12px; justify-items: center; padding: 0 12px; }
.exp-item svg { width: 28px; height: 28px; color: var(--ink); stroke-width: 1.2; }
.exp-item h4 { font-size: 1.35rem; font-weight: 400; }
.exp-item p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin: 0; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--paper-2); }
.faq-wrap { max-width: 780px; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; transition: color .3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--terra-dark); }
.faq-icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-body { overflow: hidden; }
.faq-body p { margin: 0 4px 24px; color: var(--ink-2); font-size: 0.98rem; max-width: 62ch; animation: fadeUp .5s var(--ease); }
.payment-note { background: var(--paper-2); border-left: 2px solid var(--ink); padding: 12px 16px; font-size: 0.9rem; color: var(--ink-2); margin: 0; }
.payment-note strong { color: var(--ink); font-weight: 600; }
.card-media .tag.mto { background: var(--ink); color: var(--paper); }
.stock.mto { color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.contact-card { text-align: center; padding: 28px 20px; border-top: 1px solid var(--ink); }
.contact-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.9rem; }
.contact-card a { color: var(--ink); text-decoration: none; word-break: break-all; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.contact-card a:hover { color: var(--terra-dark); border-color: var(--terra-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(250, 248, 245, 0.78); padding: clamp(56px, 7vw, 96px) 0 36px; }
.footer-logo { height: clamp(130px, 16vw, 190px); width: auto; margin: 0 auto 40px; filter: invert(1) brightness(1.05); opacity: 0.95; }
.footer-links { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-links a { color: rgba(250, 248, 245, 0.85); text-decoration: none; position: relative; }
.footer-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.footer-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-bottom { border-top: 1px solid rgba(250, 248, 245, 0.14); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250, 248, 245, 0.55); }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); color: var(--ink); display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none; transition: all .45s var(--ease); box-shadow: var(--shadow-sm);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Fly to cart ---------- */
.fly { position: fixed; z-index: 300; object-fit: contain; border-radius: 4px; pointer-events: none; background: var(--white); box-shadow: var(--shadow); }

/* ---------- Drawer (cart) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 18, 16, 0.4); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 90; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--paper); z-index: 100;
  transform: translateX(104%); transition: transform .55s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line-2); }
.drawer-head h2 { font-size: 1.6rem; font-weight: 400; }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 26px; }
.drawer-foot { padding: 20px 26px 28px; border-top: 1px solid var(--line-2); background: var(--paper-2); }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); align-items: center; animation: fadeUp .5s var(--ease) both; }
.cart-line img { width: 76px; height: 100px; object-fit: contain; background: var(--white); border-radius: 2px; }
.cart-line .name { font-family: var(--serif); font-size: 1.1rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; background: var(--white); }
.qty button { width: 34px; height: 36px; border: none; background: transparent; font-size: 1rem; transition: background .2s; }
.qty button:hover { background: var(--paper-2); }
.qty span { min-width: 28px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.link-btn { background: none; border: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.link-btn:hover { color: var(--ink); }
.total-row { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 500; margin-bottom: 12px; letter-spacing: 0.04em; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 18, 16, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  background: var(--paper); border-radius: var(--radius); width: min(1040px, 100%); max-height: calc(100vh - 32px);
  overflow: auto; position: relative; box-shadow: var(--shadow); animation: pop .55s var(--ease);
}
.modal-card.narrow { width: min(560px, 100%); }
@keyframes pop { from { transform: translateY(24px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--white); box-shadow: var(--shadow-sm); }
.product-view { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.product-view > * { min-width: 0; }
.gallery { padding: 24px; background: var(--paper-2); display: flex; flex-direction: column; gap: 12px; }
.gallery-main { position: relative; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; background: var(--white); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; animation: galFade .5s var(--ease); }
@keyframes galFade { from { opacity: 0; transform: scale(1.02); } }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.gallery-nav:hover { background: var(--ink); color: var(--paper); }
.gallery-nav svg { width: 18px; height: 18px; }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 60px; height: 80px; border-radius: 2px; overflow: hidden; border: 1px solid transparent; padding: 0; background: var(--white); transition: border-color .25s; }
.thumbs button.active { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info { padding: 36px 36px 36px; display: flex; flex-direction: column; gap: 16px; }
.product-info > * { animation: fadeUp .7s var(--ease) both; }
.product-info > *:nth-child(2) { animation-delay: .05s; } .product-info > *:nth-child(3) { animation-delay: .1s; } .product-info > *:nth-child(4) { animation-delay: .15s; } .product-info > *:nth-child(5) { animation-delay: .2s; } .product-info > *:nth-child(n+6) { animation-delay: .25s; }
.product-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; }
.product-info .price { font-size: 1.15rem; }
.product-info .stock { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.stock.in { color: var(--sage); } .stock.low { color: var(--terra); } .stock.out { color: var(--muted); }
.spec { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 0.92rem; border-top: 1px solid var(--line-2); padding-top: 16px; }
.spec dt { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; } .spec dd { margin: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 2px; padding: 5px 10px; color: var(--ink-2); }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 6px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 2px; border: 1px solid var(--line); background: var(--white); outline: none; transition: border-color .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 0.8rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout { padding: 32px; }
.checkout h2 { font-size: 2rem; font-weight: 400; margin-bottom: 6px; }
.summary { background: var(--paper-2); border-radius: 2px; padding: 16px 18px; font-size: 0.92rem; }
.summary .row { display: flex; justify-content: space-between; padding: 3px 0; }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 600; }
.methods { display: grid; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--white); cursor: pointer; transition: border-color .25s; }
.method:has(input:checked) { border-color: var(--ink); }
.method input { accent-color: var(--ink); }
.success { text-align: center; padding: 44px 32px; }
.success .check { width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; animation: popIn .6s var(--ease-spring); }
@keyframes popIn { from { transform: scale(0.4); opacity: 0; } }
.success .check svg { width: 30px; height: 30px; }
.order-text { white-space: pre-wrap; text-align: left; background: var(--white); border: 1px solid var(--line); padding: 14px; border-radius: 2px; font-size: 0.85rem; max-height: 220px; overflow: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(24px); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 14px 24px; border-radius: 2px; box-shadow: var(--shadow); z-index: 200;
  transition: all .45s var(--ease); pointer-events: none; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Mobile ---------- */
.menu-btn { display: none; }
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .product-view { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; gap: 36px; }
  .filters { top: 64px; }
  .hero { height: clamp(520px, 78vh, 760px); }
}
@media (max-width: 720px) {
  .wrap { width: min(var(--maxw), 100% - 32px); }
  .header-top { min-height: 62px; }
  .brand-logo { height: 16px; }
  .menu-btn { display: inline-flex; }
  .search { display: none; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(250, 248, 245, 0.97); backdrop-filter: blur(14px); flex-direction: column; gap: 0; padding: 8px 20px 16px !important; border-bottom: 1px solid var(--line-2); max-height: none !important; opacity: 1 !important; animation: fadeUp .35s var(--ease); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .nav a::after { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 30px 14px; }
  .card-quick { opacity: 1; transform: none; }
  .card-name { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .product-info, .checkout { padding: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .hero-dots { right: 16px; bottom: 16px; }
  .filters { position: static; padding: 0; flex-direction: column; align-items: stretch; } .filters::before { display: none; }
  .chips { gap: 18px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width: none; }
  .filters-right { justify-content: space-between; }
  .to-top { right: 14px; bottom: 14px; }
  .footer-links { gap: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero h1 .w, .hero-crest, .hero-content > *, .reveal { opacity: 1; transform: none; }
  .marquee { animation: none; }
}
