/* Seriously Rare — design system
   Clean, modern, editorial. One accent (rare-gold) used sparingly. */
:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --ink: #111214;
  --ink-2: #4b4d52;
  --ink-3: #8b8e95;
  --line: #e6e5e1;
  --accent: #c9a227;      /* rare gold */
  --accent-ink: #5c4600;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17,18,20,.04), 0 8px 24px rgba(17,18,20,.06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012; --surface: #17181b; --ink: #f3f3f1; --ink-2: #b9bbc1; --ink-3: #7c7f87; --line: #2a2c31;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { font-weight: 800; letter-spacing: -.02em; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.logo .mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #f0d36a); display: inline-grid; place-items: center; color: #1a1400; font-size: 14px; font-weight: 900; }
.nav { display: flex; gap: 22px; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.cart-btn { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.cart-btn .n { background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 12px; padding: 1px 7px; margin-left: 6px; }
@media (max-width: 720px) { .nav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; transition: transform .08s ease, opacity .15s; }
.btn:hover { opacity: .9; } .btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: #1a1400; }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Hero */
.hero { padding: 72px 0 48px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent-ink); background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 35%, transparent) 60%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { color: var(--accent); } }
.hero p { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.section { padding: 40px 0; }
.section h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.section .sub { color: var(--ink-2); margin: 0 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .img { aspect-ratio: 5 / 7; background: linear-gradient(160deg, #e9e7e1, #d9d6cf); display: grid; place-items: center; color: var(--ink-3); font-size: 13px; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .name { font-weight: 600; line-height: 1.25; }
.card .meta { font-size: 13px; color: var(--ink-3); }
.card .price { font-weight: 700; margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag { color: var(--accent); } }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filters input, .filters select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); min-width: 160px; }
.filters input { flex: 1; min-width: 200px; }

/* Cart drawer */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--surface); border-left: 1px solid var(--line); z-index: 40; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.drawer .items { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer .item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer .item .thumb { width: 56px; aspect-ratio: 5/7; border-radius: 6px; background: #e3e1db; object-fit: cover; }
.drawer .item .qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.drawer .item .qty button { border: 0; background: none; width: 28px; cursor: pointer; }
.drawer footer { padding: 18px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer .total { display: flex; justify-content: space-between; font-weight: 700; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.show { opacity: 1; pointer-events: auto; }
.x { border: 0; background: none; font-size: 22px; cursor: pointer; line-height: 1; }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 60px; color: var(--ink-3); font-size: 14px; }
.ftr .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ftr a { color: var(--ink-2); margin-right: 16px; }

/* Misc */
.empty { text-align: center; color: var(--ink-3); padding: 60px 0; }
.notice { background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.prose { max-width: 70ch; } .prose h1 { letter-spacing: -.02em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .2s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
