:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --muted: #6b655c;
  --line: #e7e0d5;
  --accent: #b4532a;
  --accent-dark: #8f3f1e;
  --accent-soft: #f6e9e1;
  --ok: #2f6b4f;
  --ok-soft: #e6f1eb;
  --warn: #946200;
  --warn-soft: #fbf1d9;
  --off: #8a8379;
  --radius: 14px;
  --wrap: 1200px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar + header */
.topbar { background: var(--ink); color: #f3ede4; font-size: 13px; text-align: center; padding: 8px 16px; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 242, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { font-family: var(--font-display); font-size: 26px; font-weight: 600; text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: 12px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.search { margin-left: auto; position: relative; flex: 0 1 300px; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 40px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); outline: none; }
.search input:focus { border-color: var(--ink); }
.search svg { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 20px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero-art { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1; }
.hero-art a { border-radius: var(--radius); overflow: hidden; background: #efe9df; display: block; }
.hero-art a:first-child { grid-row: 1 / span 2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-art a:hover img { transform: scale(1.04); }

/* Sections */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* Category chips + toolbar */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; white-space: nowrap; }
.chip small { color: var(--muted); margin-left: 6px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: #cfc8bd; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.toolbar select { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #efe9df; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card-media img { transform: scale(1.04); }
.card.is-out .card-media img { filter: grayscale(.6); opacity: .75; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.badge.new { background: var(--ink); color: #fff; }
.badge.low { background: var(--warn-soft); color: var(--warn); }
.badge.out { background: #ece7df; color: var(--off); }
.card-body { padding: 12px 2px 0; }
.card-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-title { font-size: 15px; font-weight: 500; margin: 3px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; }
.price small { font-weight: 500; color: var(--muted); font-size: .8em; margin-left: 3px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); }
.more { display: flex; justify-content: center; margin-top: 30px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.footer .logo { font-size: 22px; color: var(--ink); }
.footer p { margin: 10px 0 0; max-width: 560px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 22px 0 30px; align-items: start; }
.pdp-media { position: sticky; top: 90px; border-radius: var(--radius); overflow: hidden; background: #efe9df; }
.pdp-media img { width: 100%; height: auto; }
.pdp h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 10px; }
.pdp .price { font-size: 26px; }
.pdp-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stock { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.stock.in { background: var(--ok-soft); color: var(--ok); }
.stock.low { background: var(--warn-soft); color: var(--warn); }
.stock.out { background: #ece7df; color: var(--off); }
.desc { color: var(--muted); margin: 0 0 22px; white-space: pre-line; }
.order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.order h2 { font-size: 22px; margin-bottom: 4px; }
.order .hint { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field > label, .field > .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field textarea, .field select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; outline: none; }
.field textarea { height: 78px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #b3261e; }
.field .err { display: none; color: #b3261e; font-size: 13px; margin-top: 5px; }
.field.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; cursor: pointer; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts span { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; background: #fff; }
.opts input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opts label.na span { opacity: .4; text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 44px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 20px; }
.qty input { width: 48px; height: 46px; border: 0; text-align: center; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; margin: 6px 0 14px; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.total strong { font-size: 22px; }
.fineprint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.notice.demo { background: var(--warn-soft); color: var(--warn); }
.notice.error { background: #fbe9e7; color: #8c1d18; }
.done { text-align: center; padding: 14px 4px; }
.done svg { width: 54px; height: 54px; color: var(--ok); margin: 0 auto 12px; }
.done h2 { margin-bottom: 8px; }
.done p { color: var(--muted); margin: 0 0 8px; }
.done code { background: var(--bg); padding: 2px 8px; border-radius: 6px; }
.done-actions { margin-top: 16px; }
.legal { max-width: 760px; padding: 40px 0 20px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.assure { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.assure li { display: flex; gap: 10px; align-items: flex-start; }
.assure svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }

/* Redirect page */
.center { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.center p { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .pdp { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 32px 0 20px; }
  .pdp-media { position: static; }
  .steps { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .header .wrap { height: 60px; gap: 12px; }
  .logo { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .row2 { grid-template-columns: 1fr; }
  .order { padding: 18px; }
  .section { padding: 34px 0; }
}
