:root {
  --bg: #f6f1e7;
  --surface: #fffaf1;
  --ink: #2a2420;
  --muted: #6f655c;
  --line: #e4dccd;
  --gold: #c9a24b;
  --gold-deep: #a9832f;
  --terracotta: #b5583a;
  --dark: #1d1a17;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .1s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-light { background: var(--surface); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 241, 231, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 19px var(--serif); }
.logo em { font-style: normal; color: var(--gold-deep); }
.logo-mark {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--bg) 0 32%, var(--gold) 33% 100%);
  box-shadow: inset 0 0 0 2px var(--gold-deep);
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--surface); border: 0; border-radius: 999px;
  padding: 9px 16px; font: 600 14px var(--sans); cursor: pointer;
}
.cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 12px;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--terracotta); margin: 0 0 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -.02em; }
.lede { font-size: 18px; color: var(--muted); max-width: 32em; margin: 20px 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: "●"; color: var(--gold); margin-right: 8px; font-size: 10px; vertical-align: 2px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-art .stack-item {
  position: absolute; width: 56%;
  filter: drop-shadow(0 18px 24px rgba(42, 36, 32, .22));
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hero-art:hover .stack-item:nth-child(1) { transform: translate(-6%, -6%) rotate(-14deg); }
.hero-art:hover .stack-item:nth-child(3) { transform: translate(6%, 6%) rotate(10deg); }

/* Shop */
.shop { padding: 56px 0 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font: 500 14px var(--sans); cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 36, 32, .1); }
.card-art {
  aspect-ratio: 1; display: grid; place-items: center; padding: 18%;
  background: var(--tint, #efe6d6);
}
.card-art svg { width: 100%; filter: drop-shadow(0 10px 14px rgba(42, 36, 32, .2)); transition: transform .4s; }
.card:hover .card-art svg { transform: rotate(-8deg) scale(1.04); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-material { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.card h3 { font-size: 20px; }
.card-desc { color: var(--muted); font-size: 14px; margin: 4px 0 12px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 600; font-size: 17px; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--terracotta); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}
.card { position: relative; }
.add-btn {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: 600 13px var(--sans); cursor: pointer;
}
.add-btn:hover { background: var(--ink); color: var(--surface); }
.add-btn.added { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* Why */
.why { background: var(--surface); border-block: 1px solid var(--line); padding: 64px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-item h3 { font-size: 20px; margin-bottom: 8px; }
.why-item h3::before {
  content: ""; display: block; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: radial-gradient(circle, var(--surface) 0 30%, var(--gold) 31%);
}
.why-item p { color: var(--muted); margin: 0; font-size: 15px; }

/* Gift banner */
.gift { padding: 64px 0; }
.gift-inner {
  background: var(--dark); color: var(--surface); border-radius: 22px;
  padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background-image: radial-gradient(circle at 92% 20%, rgba(201, 162, 75, .35) 0 90px, transparent 91px),
                    radial-gradient(circle at 80% 110%, rgba(181, 88, 58, .35) 0 120px, transparent 121px);
}
.gift h2 { font-size: clamp(26px, 3.4vw, 36px); }
.gift p { color: #cfc6b8; margin: 10px 0 0; max-width: 36em; }

/* FAQ */
.faq { padding: 24px 0 80px; }
.faq-inner { max-width: 760px; }
.faq h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold-deep); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(29, 26, 23, .45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); z-index: 50;
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -20px 0 40px rgba(0, 0, 0, .15);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.icon-btn { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-art { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; padding: 8px; background: var(--tint, #efe6d6); }
.line-name { font-weight: 600; }
.line-meta { color: var(--muted); font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { border: 0; background: none; width: 28px; height: 28px; cursor: pointer; font-size: 16px; color: var(--ink); }
.qty span { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; }
.line-price { font-weight: 600; text-align: right; }
.remove { display: block; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; margin-top: 6px; margin-left: auto; padding: 0; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.totals { margin-bottom: 14px; font-size: 15px; }
.totals .row { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.totals .row.total { color: var(--ink); font-weight: 600; font-size: 18px; padding-top: 8px; }
.totals .row.discount { color: var(--terracotta); }
.ship-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 12px; }
.ship-bar span { display: block; height: 100%; background: var(--gold); transition: width .3s; }
.ship-note { font-size: 13px; color: var(--muted); }
.fine { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--ink); color: var(--surface); padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .cart-btn { margin-left: auto; }
  .hero { padding: 40px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { max-width: 340px; order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 14px 14px; }
  .card h3 { font-size: 17px; }
  .card-desc { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .gift-inner { padding: 32px 26px; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
