/* store.css — one stylesheet for the whole shop. */

:root {
  --paper: #faf9f5;
  --ink: #14171c;
  --muted: #6b7280;
  --line: #e2ddd2;
  --line-strong: #cfc7b6;
  --accent: #b24c33;
  --accent-dark: #8d3a26;
  --ok: #3f7d5a;
  --danger: #b3402c;
  --shadow: 0 1px 2px rgba(20, 23, 28, .06), 0 8px 24px rgba(20, 23, 28, .06);
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

a { color: inherit; }

/* ------------------------------------------------------------------ header */

header.site {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 249, 245, .92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand svg { display: block; }

header.site nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14.5px;
}
header.site nav a { text-decoration: none; color: var(--muted); }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--ink); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
}
.cart-link:hover { border-color: var(--ink); }
.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-count[hidden] { display: none; }

/* ------------------------------------------------------------------ layout */

main { flex: 1; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--muted);
  font-size: 17.5px;
}
.hero .actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

section.block { padding: 26px 0 56px; }
section.block > h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -.015em;
}
section.block > p.lede { margin: 0 0 24px; color: var(--muted); }

/* ------------------------------------------------------------------ button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .12s, background .12s, transform .06s;
}
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn.big { padding: 13px 26px; font-size: 16px; }
.btn.block { width: 100%; }

/* ------------------------------------------------------------------- cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 22px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }

.card .art {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: block;
  width: 100%;
  object-fit: cover;
}
.card .body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 2px; font-size: 16.5px; letter-spacing: -.01em; }
.card .region { color: var(--muted); font-size: 13.5px; }
.card .blurb { margin: 9px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.card .price { margin-top: 11px; font-weight: 650; font-size: 15px; }

.card.custom {
  border-style: dashed;
  border-color: var(--line-strong);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 24px;
  background: transparent;
}
.card.custom h3 { font-size: 18px; margin-bottom: 6px; }
.card.custom p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

/* ------------------------------------------------------------------ footer */

footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 28px 34px;
  color: var(--muted);
  font-size: 13px;
}
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
footer.site a { color: var(--muted); }

.banner {
  background: #fef6e7;
  border-bottom: 1px solid #f0dcae;
  color: #6b4d12;
  font-size: 13.5px;
  padding: 9px 28px;
  text-align: center;
}

/* ------------------------------------------------------------------ forms */

label.field { display: block; margin-bottom: 14px; }
label.field > span.label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 5px;
}
label.field .value { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }

input[type="text"], input[type="search"], input[type="number"], select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

input[type="range"] { width: 100%; accent-color: var(--accent); }

.hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.hint.error { color: var(--danger); }

/* ------------------------------------------------------------------ swatch */

.swatches { display: flex; gap: 9px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 2px solid var(--line-strong);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(20,23,28,.12); }
.swatch i { position: absolute; inset: 0; display: block; }
.swatch b { position: absolute; left: 5px; right: 5px; height: 2px; border-radius: 2px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------- table */

.lines { width: 100%; border-collapse: collapse; }
.lines th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 600;
  padding: 0 12px 9px 0;
  border-bottom: 1px solid var(--line);
}
.lines td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td.right, .lines th.right { text-align: right; padding-right: 0; }
.lines .thumb {
  width: 84px; height: 63px;
  border-radius: 6px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--paper);
  display: block;
}
.lines .name { font-weight: 620; }
.lines .meta { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.totals { margin-top: 22px; margin-left: auto; max-width: 340px; }
.totals .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.totals .row.total {
  border-top: 1px solid var(--line-strong);
  margin-top: 7px;
  padding-top: 13px;
  font-weight: 700;
  font-size: 18px;
}

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h2 { color: var(--ink); margin: 0 0 8px; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}
.linkish:hover { color: var(--danger); }
