:root {
  --bg: #f5efe7;
  --card: #fbf8f3;
  --ink: #281e18;
  --muted: #8a7d70;
  --line: #e4d9cb;
  --gold: #b8892b;
  --gold-dark: #8f6a1f;
  --sale: #8a3d22;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.6 var(--sans); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px clamp(16px, 4vw, 48px); background: rgba(245,239,231,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 600 22px var(--serif); letter-spacing: .28em; }
.brand small { font-size: 10px; letter-spacing: .42em; color: var(--muted); }
nav { display: flex; gap: clamp(12px, 2.5vw, 28px); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a.active { border-color: var(--gold); }
.cart-link span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
  border-radius: 11px; background: var(--ink); color: var(--bg); font-size: 12px; }
@media (max-width: 720px) {
  .top { flex-wrap: wrap; justify-content: center; }
  nav { width: 100%; justify-content: center; font-size: 12px; }
  .brand img { width: 42px; height: 42px; }
}

main { min-height: 60vh; }
.loading { text-align: center; padding: 80px; color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Hero */
.hero { text-align: center; padding: clamp(48px, 8vw, 96px) 16px clamp(32px, 5vw, 56px); }
.hero .eyebrow { font-size: 12px; letter-spacing: .4em; color: var(--gold-dark); text-transform: uppercase; }
.hero h1 { font: 500 clamp(36px, 6vw, 64px)/1.1 var(--serif); margin: 14px 0; letter-spacing: .02em; }
.hero p { max-width: 560px; margin: 0 auto 26px; color: var(--muted); }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 14px; }
.perks span::before { content: "✦ "; color: var(--gold); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  font-size: 14px; letter-spacing: .04em; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); min-width: 220px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(16px, 2.5vw, 32px); padding-bottom: 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(40,30,24,.45); }
.card .img { aspect-ratio: 1; overflow: hidden; }
.card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .img img { transform: scale(1.04); }
.card .body { padding: 16px 18px 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .brandname { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.card h3 { font: 600 24px/1.15 var(--serif); margin: 0; }
.card .dek { font-size: 13px; color: var(--gold-dark); }
.price { margin-top: auto; padding-top: 8px; font-size: 18px; font-weight: 500; }
.price s { color: var(--muted); font-weight: 300; font-size: 15px; margin-right: 8px; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--sale); color: #fff; font-size: 12px; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; z-index: 1; }
.badge.out { background: var(--muted); left: auto; right: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0 80px; grid-column: 1 / -1; }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); padding: 40px 0 80px; align-items: start; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.product .photo { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.back { display: inline-block; margin-top: 28px; font-size: 14px; color: var(--muted); text-decoration: none; }
.product h1 { font: 500 clamp(34px, 4.5vw, 52px)/1.05 var(--serif); margin: 6px 0 4px; }
.product .meta { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.product .desc { color: #4d4037; }
.notes { display: grid; gap: 6px; margin: 18px 0; padding: 14px 18px; border-left: 2px solid var(--gold); background: var(--card); font-size: 15px; }
.notes b { font-weight: 500; }
.options { display: grid; gap: 10px; margin: 22px 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--card); cursor: pointer; }
.opt input { accent-color: var(--ink); margin-right: 10px; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt.disabled { opacity: .45; cursor: not-allowed; }
.opt .t small { display: block; color: var(--muted); font-size: 13px; }
.opt .p { font-weight: 500; white-space: nowrap; }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.qty button { border: 0; background: none; width: 38px; height: 44px; cursor: pointer; font-size: 18px; }
.qty input { width: 40px; border: 0; text-align: center; background: none; }
.btn { border: 0; background: var(--ink); color: var(--bg); padding: 13px 28px; border-radius: 999px; cursor: pointer;
  letter-spacing: .1em; text-transform: uppercase; font-size: 13px; text-decoration: none; display: inline-block; }
.btn:hover { background: #3d2e25; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.gold { background: var(--gold); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.msgbtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; }
.msgbtns a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(100px); background: var(--ink); color: var(--bg);
  padding: 12px 22px; border-radius: 999px; transition: transform .3s; z-index: 20; font-size: 14px; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast a { color: #e8c98a; margin-left: 10px; }

/* Cart */
.page { max-width: 980px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 80px; }
.page h1 { font: 500 clamp(32px, 4vw, 46px) var(--serif); margin: 0 0 24px; }
.cart-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .cart-grid { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.line .n { font: 600 20px/1.1 var(--serif); }
.line .v { font-size: 13px; color: var(--muted); }
.line .r { text-align: right; }
.line .rm { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.line .qty button { height: 32px; width: 30px; }
.total { display: flex; justify-content: space-between; padding: 18px 0; font-size: 20px; font-weight: 500; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.box h2 { font: 600 26px var(--serif); margin: 0 0 6px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.form input, .form textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: -1px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.small { font-size: 13px; color: var(--muted); }
.err { color: #a3261b; font-size: 14px; }
.done { text-align: center; padding: 60px 0; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center;
  font-size: 30px; margin: 0 auto 18px; }

/* Text pages */
.text { max-width: 720px; }
.text h2 { font: 600 26px var(--serif); margin: 32px 0 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 52px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-dark); display: grid; place-items: center; font: 600 18px var(--serif); }

/* Footer */
.foot { text-align: center; padding: 48px 16px 64px; border-top: 1px solid var(--line); font-size: 14px; }
.foot img { margin: 0 auto 10px; }
.foot p { margin: 4px 0; }
.muted { color: var(--muted); }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); z-index: 15; }
