:root {
  --ink: #231f1c; --muted: #6f655b; --bg: #faf6ef; --card: #ffffff; --line: #e8dfd2;
  --brand: #9c3d1f; --brand-ink: #ffffff; --soft: #f1e6d6;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f1e9df; --muted: #b3a79a; --bg: #171310; --card: #221d19; --line: #3a322b; --brand: #e58a63; --brand-ink: #1b120d; --soft: #2a221c; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", "Nirmala UI", Roboto, sans-serif; }
main { flex: 1; }
h1, h2, h3 { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
a { color: var(--brand); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* header */
.bar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-family: Georgia, serif; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a.on { background: var(--soft); }
.login { border: 1px solid var(--brand); color: var(--brand); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 10px; }
@media (max-width: 640px) {
  .bar-in { gap: 4px 12px; }
  .brand { order: 1; }
  .login { order: 2; margin-left: auto; padding: 6px 12px; }
  .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -8px; }
  .nav a { padding: 6px 10px; white-space: nowrap; }
}

/* buttons */
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; padding: 11px 20px;
  border-radius: 10px; border: 1px solid var(--brand); margin: 0 8px 8px 0; cursor: pointer; font-size: 1rem; }
.btn.ghost { background: transparent; color: var(--brand); }

/* hero */
.hero { padding: 64px 0 56px; background: linear-gradient(135deg, var(--soft), var(--bg) 70%); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 24px; }

/* sections + grid */
.section { padding-top: 40px; padding-bottom: 12px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 16px 0; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none;
  transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.card-body { padding: 14px 16px 16px; }
.card h3 { margin-bottom: .25em; } .card p { margin: 0; color: var(--muted); font-size: .92rem; }
.cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 4px; }
.cat-card { border-left: 5px solid var(--brand); }
.opts { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .75rem; background: var(--soft); border-radius: 999px; padding: 2px 9px; color: var(--muted); }

/* product picture (real photo or coloured block) */
.pic { aspect-ratio: 4 / 3; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.placeholder span { font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.pic.big { border-radius: 14px; border: 1px solid var(--line); }
.pic.big.placeholder span { font-size: 4rem; }

/* products page */
input[type=search] { width: 100%; max-width: 420px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .9rem; }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* product page */
.detail { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .detail { grid-template-columns: 1fr 1fr; align-items: start; } .pic-wrap { position: sticky; top: 80px; } }
.prose { max-width: 40em; }
.small-h { font-size: 1.05rem; margin-top: 18px; }
.opt { margin: 14px 0; } .opt-label { font-weight: 600; margin-bottom: 6px; }
.vals { display: flex; gap: 8px; flex-wrap: wrap; }
.val { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 14px; cursor: pointer; font: inherit; }
.val.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand); }
.your-choice { background: var(--soft); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.choice { display: inline; margin: 0; }
.actions { margin: 16px 0 24px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.login-note { text-align: center; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0; color: var(--muted); font-size: .88rem; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
