@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2-variations"), url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* keep the light look even when a browser forces dark mode */
:root {
  color-scheme: only light;
  --paper: #f5f5f2;
  --surface: #ffffff;
  --well: #e9eaea;
  --ink: #16171b;
  --muted: #676a72;
  --line: #dcdcd8;
  --accent: #3046ff;
  --accent-ink: #ffffff;
  --danger: #c8322b;
  --ok: #1c7c45;
  --font: "Bricolage", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: var(--danger); font-size: 15px; margin: 8px 0 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-inline: var(--pad); }

/* ── Announcement + header ─────────────────────────────── */
.announce {
  background: var(--accent);
  color: var(--accent-ink);
  text-align: center;
  font-size: 14px;
  padding: 9px 16px;
}
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding-inline: var(--pad);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .logo {
  font-weight: 750; font-stretch: 80%; font-size: 22px; letter-spacing: -0.02em;
  text-decoration: none; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header nav { display: flex; gap: 24px; margin-left: auto; }
.header nav a { text-decoration: none; color: var(--muted); }
.header nav a:hover { color: var(--ink); }
.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink); background: none; border-radius: 999px;
  padding: 7px 14px; cursor: pointer; font-weight: 500;
}
.cart-btn .n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 13px; display: grid; place-items: center;
}
@media (max-width: 700px) {
  .header { gap: 12px; }
  .header nav { display: none; }
  .cart-btn { margin-left: auto; }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 5vw, 72px) var(--pad) clamp(32px, 5vw, 64px);
}
.hero h1 {
  margin: 0; font-weight: 800; font-stretch: 82%; letter-spacing: -0.025em; line-height: .92;
  font-size: clamp(50px, 7.6vw, 120px); text-wrap: balance;
}
.hero-sub { margin: clamp(18px, 2.4vw, 28px) 0 0; font-size: clamp(17px, 1.5vw, 20px); max-width: 38ch; color: var(--muted); line-height: 1.45; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(20px, 2.6vw, 32px); }
.hero-points { list-style: none; margin: clamp(22px, 3vw, 36px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-shot {
  position: relative; display: block; text-decoration: none; border-radius: 14px; overflow: hidden;
  background: var(--well); aspect-ratio: 3 / 2;
}
.hero-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .hero-shot:hover img { transform: scale(1.035); } }
.hero-shot .cap {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 14px;
  background: var(--surface); padding: 9px 16px; border-radius: 999px; font-size: 15px;
}
.hero-shot .cap span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .hero h1 { font-size: clamp(44px, 13vw, 84px); }
}

/* ── Collections (one card per model) ──────────────────── */
.collections {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px);
  padding: 0 var(--pad) clamp(32px, 5vw, 64px);
}
.coll {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; cursor: pointer;
  border: 0; background: var(--surface); border-radius: 14px; padding: 10px 10px 18px; gap: 2px;
  transition: transform .15s, box-shadow .2s;
}
@media (hover: hover) { .coll:hover { transform: translateY(-3px); box-shadow: 0 10px 28px -14px rgba(20,22,30,.35); } }
.coll-img { width: 100%; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--well); margin-bottom: 12px; }
.coll-img img { width: 100%; height: 100%; object-fit: cover; }
.coll-name { font-size: clamp(22px, 2.4vw, 32px); font-weight: 750; font-stretch: 80%; letter-spacing: -0.02em; line-height: 1.05; padding-inline: 8px; }
.coll-count { color: var(--muted); font-size: 15px; padding-inline: 8px; }
@media (max-width: 760px) { .collections { grid-template-columns: 1fr; } .coll { flex-direction: row; align-items: center; gap: 14px; padding: 8px; flex-wrap: wrap; } .coll-img { width: 112px; margin: 0; } .coll-name, .coll-count { padding: 0; } .coll { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-content: center; } .coll-img { grid-row: 1 / 3; } .coll-name { align-self: end; } .coll-count { align-self: start; } }

/* ── Filters ───────────────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding: 18px var(--pad); border-top: 1px solid var(--line);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 6px 14px; cursor: pointer; font-size: 15px;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--ink); padding: 4px 2px; min-width: min(260px, 100%);
}
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 15px; }
@media (max-width: 700px) { .search { margin-left: 0; width: 100%; } }

/* ── Product grid ──────────────────────────────────────── */
.grid {
  display: grid; gap: clamp(28px, 3vw, 44px) clamp(12px, 1.6vw, 24px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px var(--pad) clamp(48px, 7vw, 96px);
}
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid { gap: 22px 10px; } .tile .name { font-size: 15px; } }
.tile { text-decoration: none; display: block; }
.tile .img {
  position: relative; aspect-ratio: 3 / 2; background: var(--well); border-radius: 12px; overflow: hidden;
}
.tile .img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.tile .img img + img { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .tile:hover .img img + img { opacity: 1; } }
.tile .tag {
  position: absolute; left: 10px; bottom: 10px; background: var(--surface); color: var(--ink);
  font-size: 13px; padding: 3px 10px; border-radius: 999px;
}
.tile .tag.sale { background: var(--accent); color: var(--accent-ink); }
.tile .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; align-items: baseline; }
.tile .name { font-weight: 600; line-height: 1.25; font-size: 17px; }
@media (max-width: 760px) { .tile .meta { flex-direction: column; gap: 2px; } .tile .meta .price { order: 2; } }
.tile .sub { color: var(--muted); font-size: 14px; }
.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); margin-left: 6px; font-size: .9em; }
.price .now.sale { color: var(--accent); }
.empty { grid-column: 1 / -1; padding: 64px 0; text-align: center; color: var(--muted); }
.empty button { margin-top: 12px; }

.group-h {
  grid-column: 1 / -1; margin: clamp(10px, 2vw, 24px) 0 -4px; padding-top: clamp(14px, 2vw, 22px);
  border-top: 1px solid var(--line);
  font-size: clamp(30px, 4vw, 52px); font-weight: 800; font-stretch: 75%; letter-spacing: -0.03em; line-height: 1;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.group-h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.group-h span { font-size: 15px; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--muted); }

/* ── Facts strip ───────────────────────────────────────── */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px;
  padding: clamp(32px, 5vw, 56px) var(--pad); border-top: 1px solid var(--line);
}
.facts h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.facts p { margin: 0; color: var(--muted); max-width: 36ch; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .08s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--muted); }

/* ── Product page ──────────────────────────────────────── */
.crumbs { padding: 20px var(--pad) 0; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.pdp {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px);
  padding: 20px var(--pad) clamp(48px, 7vw, 96px); align-items: start;
}
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.gallery .main { aspect-ratio: 3 / 2; background: var(--well); border-radius: var(--r); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button {
  flex: 0 0 72px; aspect-ratio: 3 / 2; padding: 0; border: 1px solid transparent; border-radius: 4px;
  overflow: hidden; background: var(--well); cursor: pointer;
}
.thumbs button[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.buy h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1; font-weight: 750; font-stretch: 80%; letter-spacing: -0.025em; }
.buy .price { font-size: 20px; margin-top: 10px; }
.group-label { font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; }
.group-label span { font-weight: 400; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  min-width: 52px; min-height: 44px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
}
.seg button:hover { border-color: var(--ink); }
.seg button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 40px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.eta { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.desc { margin: 0; white-space: pre-line; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-weight: 400; }
.acc details[open] summary::after { content: "–"; }
.acc .body { padding: 0 0 16px; color: var(--muted); white-space: pre-line; }
.related h2 { padding: 0 var(--pad); font-size: 24px; font-stretch: 85%; font-weight: 700; margin: 0 0 16px; }

/* ── Cart drawer ───────────────────────────────────────── */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgb(22 23 27 / .4); }
.drawer {
  margin: 0 0 0 auto; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.x { border: 0; background: none; width: 40px; height: 40px; font-size: 22px; cursor: pointer; border-radius: 999px; }
.x:hover { background: var(--paper); }
.free { padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bar { height: 4px; background: var(--well); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.lines { flex: 1; overflow-y: auto; padding: 0 22px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--well); }
.line .nm { font-weight: 500; line-height: 1.3; text-decoration: none; }
.line .op { color: var(--muted); font-size: 14px; }
.line .qty { margin-top: 10px; }
.line .qty button { width: 32px; height: 34px; }
.line .rm { font-size: 13px; margin-left: 12px; }
.drawer-foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; }
.drawer-foot p { margin: 4px 0 14px; }
.cart-empty { text-align: center; padding: 72px 0; color: var(--muted); }

/* ── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; z-index: 60;
  font-size: 15px; box-shadow: 0 8px 30px rgb(0 0 0 / .18);
}

/* ── Simple pages ──────────────────────────────────────── */
.page { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--pad) 96px; }
.page h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; font-weight: 800; font-stretch: 78%; letter-spacing: -0.03em; margin: 0 0 20px; }
.page h2 { font-size: 22px; font-weight: 700; margin: 40px 0 8px; scroll-margin-top: 90px; }
.page p { margin: 0 0 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 15px; }
.field input {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 12px 14px; font-size: 16px;
}
.card-plain { background: var(--surface); border-radius: 10px; padding: 22px; margin-top: 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.steps li { border-top: 3px solid var(--well); padding-top: 10px; color: var(--muted); font-size: 15px; }
.steps li.done { border-color: var(--accent); color: var(--ink); font-weight: 600; }
.mini { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.mini img { width: 52px; aspect-ratio: 3/2; object-fit: cover; border-radius: 4px; background: var(--well); }

/* ── Footer ────────────────────────────────────────────── */
.footer {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  padding: 40px var(--pad) calc(32px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper);
}
.footer .big { font-size: clamp(28px, 4vw, 44px); font-weight: 800; font-stretch: 78%; letter-spacing: -0.02em; line-height: 1; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: end; }
.footer a { text-decoration: none; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.footer a:hover { color: var(--paper); }
.footer .fine { grid-column: 1 / -1; font-size: 13px; color: color-mix(in srgb, var(--paper) 55%, transparent); }
@media (max-width: 700px) { .footer { grid-template-columns: 1fr; } .footer nav { justify-content: start; } }
