:root {
  --bg: #fbf9f6;
  --tile: #f2eee8;
  --tile-2: #ebe5dc;
  --ink: #1d1b18;
  --muted: #6b645b;
  --line: #e4ded5;
  --gold: #86663a;
  --sale: #8a3b2e;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 300 15px/1.6 var(--sans);
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.announce {
  background: var(--ink); color: #efe9df;
  text-align: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  padding: 9px var(--gutter);
}
.header {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  background: rgba(251, 249, 246, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; gap: 32px; align-items: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.nav-right { justify-content: flex-end; }
.nav a { position: relative; padding: 4px 0; }
.nav a::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 a:hover::after, .nav a.active::after { transform: scaleX(1); }
.logo {
  font: 400 34px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-align: center;
}
.logo small { display: block; font: 400 11px/1 var(--sans); letter-spacing: .3em; color: var(--muted); margin-top: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; }
.menu-btn, .search-mobile { display: none; }

/* ---------- drawer + search ---------- */
.drawer, .search {
  position: fixed; inset: 0; z-index: 50; visibility: hidden;
  background: rgba(29, 27, 24, .25); opacity: 0; transition: opacity .3s, visibility .3s;
}
.drawer.open, .search.open { visibility: visible; opacity: 1; }
.drawer-inner {
  position: absolute; inset: 0 auto 0 0; width: min(360px, 88vw); background: var(--bg);
  padding: 24px; overflow-y: auto; transform: translateX(-100%); transition: transform .4s var(--ease);
}
.drawer.open .drawer-inner { transform: none; }
.drawer-close { margin-bottom: 16px; }
#drawer-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 400 22px/1.2 var(--serif); }
#drawer-links a.sub { font: 300 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 0 12px 16px; }

.search { background: var(--bg); }
.search-bar {
  display: flex; align-items: center; gap: 14px; max-width: 880px; margin: 0 auto;
  padding: 28px var(--gutter); border-bottom: 1px solid var(--ink);
}
.search-bar input { flex: 1; border: 0; background: none; outline: none; font: 400 28px/1.2 var(--serif); color: var(--ink); min-width: 0; }
.search-results { max-width: 880px; margin: 0 auto; padding: 24px var(--gutter); max-height: calc(100vh - 110px); overflow-y: auto; }
.search-results .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(86vh, 820px);
  border-bottom: 1px solid var(--line);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px var(--gutter); }
.eyebrow { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.hero h1 { font: 400 clamp(46px, 6.4vw, 96px)/.98 var(--serif); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { max-width: 420px; margin: 26px 0 36px; color: var(--muted); font-size: 16px; }
.hero-art { position: relative; background: var(--tile); overflow: hidden; }
.hero-art .stack { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr; gap: 1px; background: var(--line); }
.hero-art .stack a { background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.hero-art .stack a:first-child { grid-column: 1 / -1; }
.hero-art img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform 1.2s var(--ease); }
.hero-art a:hover img { transform: scale(1.06); }

.btn {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 16px 30px; background: var(--ink); color: var(--bg);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  transition: background .3s, gap .3s var(--ease);
}
.btn:hover { background: #3a352e; gap: 18px; }
.btn.ghost { background: none; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.link-arrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 120px) var(--gutter); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head h2, .page-title h1 { font: 400 clamp(34px, 4.2vw, 58px)/1.02 var(--serif); }
.section-head p { color: var(--muted); max-width: 380px; margin-top: 10px; }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat { display: block; }
.cat .ph { aspect-ratio: 3 / 4; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.cat img { width: 76%; height: 76%; object-fit: contain; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.cat:hover img { transform: scale(1.07); }
.cat span { display: block; margin-top: 14px; font: 400 22px/1 var(--serif); }
.cat small { color: var(--muted); font-size: 12px; }

.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--tile); }
.split.reverse .split-art { order: 2; }
.split-art { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); min-height: 560px; }
.split-art a { background: var(--tile-2); display: grid; place-items: center; }
.split-art img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .9s var(--ease); }
.split-art a:hover img { transform: scale(1.06); }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(24px, 6vw, 96px); }
.split-copy h2 { font: 400 clamp(36px, 4.4vw, 64px)/1 var(--serif); margin-bottom: 22px; }
.split-copy h2 em { color: var(--gold); }
.split-copy p { color: var(--muted); max-width: 420px; margin-bottom: 34px; }

.brands { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 7vw, 96px); padding: 44px var(--gutter); border-block: 1px solid var(--line); }
.brands a { font: 400 26px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.brands a:hover { color: var(--ink); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.values h3 { font: 400 26px/1.1 var(--serif); margin-bottom: 10px; }
.values p { color: var(--muted); max-width: 300px; margin: 0 auto; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 18px; }
.card { display: block; }
.card .ph { position: relative; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.card .ph img {
  position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply;
  transition: opacity .5s, transform .9s var(--ease);
}
.card .ph img.alt { opacity: 0; }
.card:hover .ph img { transform: scale(1.05); }
.card:hover .ph img.alt { opacity: 1; }
.card:hover .ph img.has-alt:not(.alt) { opacity: 0; }
.badge { position: absolute; top: 12px; left: 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; background: var(--bg); padding: 5px 9px; }
.card h3 { font: 400 14px/1.4 var(--sans); margin-top: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: 4px; font-size: 14px; }
.price s { color: var(--muted); margin-left: 8px; font-size: 13px; }
.price .now { color: var(--sale); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 54px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }

/* ---------- collection ---------- */
.page-title { padding: 56px var(--gutter) 28px; text-align: center; }
.page-title p { color: var(--muted); margin-top: 12px; }
.crumbs { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--ink); }
.toolbar {
  position: sticky; top: 87px; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--gutter); background: rgba(251, 249, 246, .94); backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; letter-spacing: .06em; transition: all .25s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar select { font: inherit; font-size: 12px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.collection { padding: 36px var(--gutter) 96px; }
.more { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); padding: 28px var(--gutter) 80px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: start; }
.gallery .ph { background: var(--tile); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.gallery .ph:first-child { grid-column: 1 / -1; aspect-ratio: 1 / 1; }
.gallery img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.buy { position: sticky; top: 120px; align-self: start; }
.buy h1 { font: 400 clamp(30px, 3vw, 44px)/1.08 var(--serif); margin: 6px 0 16px; }
.buy .price { font-size: 18px; }
.buy .sku { font-size: 12px; color: var(--muted); margin-top: 6px; }
.buy .desc { margin: 28px 0; color: #4a453e; white-space: pre-line; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 18px; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #6b8f5e; }
.stock.out::before { background: #b9a48a; }
.actions { display: grid; gap: 10px; margin: 28px 0; }
.actions .btn { justify-content: center; align-self: stretch; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 16px; transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details .body { padding: 0 0 20px; color: var(--muted); font-size: 14px; }
.specs { width: 100%; border-collapse: collapse; }
.specs td { padding: 7px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs td:first-child { color: var(--ink); width: 45%; padding-right: 12px; }
.orig { font-size: 11px; color: var(--muted); margin-top: 18px; word-break: break-all; }
.orig a { border-bottom: 1px solid var(--line); }

.contact { max-width: 640px; margin: 0 auto; text-align: center; }
.contact .btn { align-self: center; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.contact-cards a { background: var(--tile); padding: 36px 20px; transition: background .3s; }
.contact-cards a:hover { background: var(--tile-2); }
.contact-cards b { display: block; font: 400 24px/1.2 var(--serif); margin-top: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #d9d2c6; padding: 72px var(--gutter) 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer .logo-footer { text-align: left; color: var(--bg); margin-bottom: 16px; }
.footer .muted { color: #9a9286; max-width: 320px; }
.footer h4 { font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: #9a9286; margin-bottom: 16px; }
.footer-grid a { display: block; padding: 4px 0; transition: color .25s; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid #36322c; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7a7266; }

.loading, .empty { padding: 120px var(--gutter); text-align: center; color: var(--muted); }
.fade { animation: fade .6s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 36px) / 3); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn, .search-mobile { display: inline-grid; }
  .search-mobile { justify-self: end; }
  .header { padding: 12px var(--gutter); }
  .logo { font-size: 26px; }
  .toolbar { top: 71px; }
  .hero, .split, .pdp { grid-template-columns: 1fr; }
  .hero-art { min-height: 420px; order: -1; }
  .split.reverse .split-art { order: 0; }
  .split-art { min-height: 340px; }
  .buy { position: static; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .cats, .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .rail { grid-auto-columns: 64%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .contact-cards { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .chips { width: 100%; order: 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
