:root {
  color-scheme: light dark;
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --paper: #fff;
  --fog: #f3f3f3;
  --bar: #ff6b4a;
  --bar-ink: #1a1a1a;
  --green: #1f7a4d;
  --red: #c1121f;
  --ok: #1f7a4d;
  --shadow: none;
  --max: 1240px;
  --display: "Oswald", Impact, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
  --nav: #fff;
  --cat: #111;
  --cat-ink: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f2f2;
    --muted: #a3a3a3;
    --line: #2a2a2a;
    --paper: #121212;
    --fog: #1c1c1c;
    --nav: #161616;
    --cat: #000;
    --cat-ink: #fff;
    --bar-ink: #111;
  }
}
:root[data-theme="dark"] {
  --ink: #f2f2f2;
  --muted: #a3a3a3;
  --line: #2a2a2a;
  --paper: #121212;
  --fog: #1c1c1c;
  --nav: #161616;
  --cat: #000;
  --cat-ink: #fff;
  --bar-ink: #111;
}
:root[data-theme="light"] {
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e8e8e8;
  --paper: #fff;
  --fog: #f3f3f3;
  --nav: #fff;
  --cat: #111;
  --cat-ink: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.promo-bar {
  background: var(--bar);
  color: var(--bar-ink);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 16px;
}
.promo-bar a { text-decoration: underline; text-underline-offset: 2px; }

header.nav { background: var(--nav); border-bottom: 1px solid var(--line); }
header.nav .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  font-size: 32px;
  letter-spacing: -.04em;
  line-height: 1;
  text-transform: uppercase;
}
.brand small {
  display: block;
  font-family: var(--ui);
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  margin-top: 2px;
}
.search {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  background: var(--fog);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 12px 8px;
  outline: none;
  color: var(--ink);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  position: relative; font-size: 18px;
}
.icon-btn:hover { background: var(--fog); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--bar); color: #111; border-radius: 999px;
  min-width: 16px; height: 16px; font-size: 10px; font-weight: 800;
  display: none; place-items: center; padding: 0 4px;
}

.catbar { background: var(--cat); color: var(--cat-ink); }
.langs { display: flex; gap: 4px; align-items: center; }
.langs button {
  border: 1px solid var(--line); background: var(--fog); color: var(--ink);
  padding: 6px 8px; font-size: 11px; font-weight: 800; cursor: pointer;
}
.catbar .wrap { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.catbar a, .catbar button {
  background: transparent; border: 0; color: #fff; cursor: pointer;
  font-family: var(--display); font-style: italic; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 22px; font-size: 15px;
}
.catbar a:hover, .catbar button:hover, .catbar .on { color: var(--bar); }

.hero-copy { text-align: center; padding: 48px 16px 12px; }
.hero-copy h1 {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 20ch;
  margin: 0 auto 10px;
}
.hero-copy p { color: var(--muted); max-width: 52ch; margin: 0 auto; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px 0 8px;
}
.trust div {
  background: var(--paper);
  text-align: center;
  padding: 16px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.trust span { display: block; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; margin-top: 2px; }

section { padding: 42px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
h2 {
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-size: clamp(26px, 3vw, 38px);
}
.muted { color: var(--muted); }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  min-height: 200px;
  background: #111 center/cover;
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.75));
}
.tile > * { position: relative; }
.tile em {
  font-style: normal; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bar); font-weight: 800;
}
.tile h3 {
  font-family: var(--display); font-style: italic; font-size: 36px;
  text-transform: uppercase;
}
.t1 { background-image: url("https://images.unsplash.com/photo-1544551763-46a013bb70d5?w=900&q=80"); }
.t2 { background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=900&q=80"); }
.t3 { background-image: url("https://images.unsplash.com/photo-1534088568595-a066f410bcda?w=900&q=80"); }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  padding: 8px 14px; font-weight: 700; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.pill.active { background: #111; color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 16px;
}
.card { background: transparent; display: flex; flex-direction: column; cursor: pointer; }
.card .pic {
  background: var(--fog);
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 0;
  background: var(--green); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 9px;
}
.badge.outlet { background: #111; }
.badge.combo { background: #0b3d5c; }
.card .body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 {
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: .01em;
  line-height: 1.15;
  min-height: 2.3em;
}
.from { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 20px; font-weight: 800; }
.old { text-decoration: line-through; color: #9a9a9a; font-size: 13px; }
.stock { font-size: 12px; color: var(--green); font-weight: 700; }
.stock.low { color: var(--red); }
.btn {
  border: 0; cursor: pointer;
  padding: 11px 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-transform: uppercase; letter-spacing: .04em; font-size: 12px;
}
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #333; }
.btn-bar { background: var(--bar); color: #111; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-lure { background: var(--bar); color: #111; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.card .btn { margin-top: 8px; width: 100%; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--fog); padding: 22px; }
.num { font-family: var(--display); font-style: italic; font-size: 28px; color: var(--bar); }

footer { background: #111; color: #cfcfcf; padding: 40px 0 24px; margin-top: 20px; }
footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer strong { color: #fff; font-family: var(--display); font-style: italic; font-size: 22px; }

.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: .2s; z-index: 50;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--paper); z-index: 60; transform: translateX(100%); transition: .25s;
  display: flex; flex-direction: column; overflow: auto; color: var(--ink);
}
.drawer.show { transform: none; }
.drawer header, .drawer footer { padding: 16px 18px; background: var(--paper); color: inherit; }
.drawer header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
  font-family: var(--display); font-style: italic; text-transform: uppercase;
}
.drawer header { position: sticky; top: 0; z-index: 2; background: var(--paper); }
.cart-items { padding: 16px; overflow: visible; flex: none; display: grid; gap: 12px; align-content: start; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; }
.cart-row img { width: 64px; height: 64px; object-fit: cover; background: var(--fog); }
.qty { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.qty button {
  width: 28px; height: 28px; border: 1px solid var(--ink); background: var(--paper);
  color: var(--ink); cursor: pointer; font-size: 16px; line-height: 1; font-weight: 800;
}
.drawer footer { border-top: 1px solid var(--line); display: grid; gap: 10px; }
.checkout {
  padding: 14px 18px 20px;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
}
.checkout input, .checkout textarea {
  width: 100%; border: 1px solid var(--line); padding: 10px 12px; background: var(--fog); color: var(--ink);
}
.checkout .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.modal { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 20px; }
.modal.show { display: grid; }
.modal .box { background: var(--paper); max-width: 560px; width: 100%; overflow: hidden; color: var(--ink); }
.modal .box img { height: 280px; width: 100%; object-fit: cover; background: var(--fog); }
.modal .pad { padding: 18px; display: grid; gap: 10px; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  header.nav .wrap { grid-template-columns: 1fr auto; }
  .search { display: none; }
}
@media (max-width: 720px) {
  .cats, .trust, .how { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 28px; }
  .catbar a, .catbar button { padding: 12px 12px; font-size: 13px; }
  .langs button { padding: 5px 6px; }
  .promo-bar { font-size: 11px; }
}
