:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --faint: #6a6a6a;
  --line: #2a2a2a;
  --red: #d81010;
  --red-2: #ff2a2a;
  --white: #ffffff;
  --ok: #d81010;
  --header-h: 72px;
  --announce-h: 38px;
  --max: 1280px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; min-height: 100%; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.boot { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); }
.boot img { width: 220px; height: auto; }

/* Announcement */
.announce { background: var(--red); color: var(--white); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: .55rem 1rem; font-weight: 600; }
.announce a { text-decoration: underline; text-underline-offset: 2px; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(5,5,5,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: .65rem 1.25rem; min-height: var(--header-h); }
.logo { display: block; line-height: 0; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; justify-content: center; gap: .15rem; flex-wrap: wrap; }
.nav a { padding: .45rem .8rem; font-family: var(--display); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.is-active { color: var(--white); border-bottom-color: var(--red); }
.header-tools { display: flex; align-items: center; gap: .75rem; justify-content: flex-end; }
.search-form { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .2rem .15rem .85rem; }
.search-form input { background: transparent; border: 0; outline: 0; width: 140px; min-width: 0; color: var(--text); }
.search-form button { padding: .35rem .7rem; color: var(--muted); }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.icon-btn:hover { border-color: var(--red); }
.bag-count { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 400px at 70% 20%, rgba(216,16,16,.18), transparent 55%), linear-gradient(180deg, #000 0%, #0c0c0c 100%); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.25rem 4rem; display: grid; gap: 1.25rem; max-width: calc(var(--max)); }
.hero-kicker { color: var(--red); font-family: var(--display); letter-spacing: .22em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .95; letter-spacing: .02em; text-transform: uppercase; margin: 0; max-width: 16ch; }
.hero p { color: var(--muted); max-width: 42rem; margin: 0; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .5rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: var(--white); color: #000; font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; padding: .85rem 1.3rem; border: 1px solid var(--white); font-weight: 600; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--white); background: transparent; color: #fff; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: #ff2a2a; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn-block { width: 100%; }

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 2.2rem 1.25rem 4rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; font-size: 1.6rem; margin: 0; }
.section-head a { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-head a:hover { color: var(--red); }
.home-block { margin-bottom: 3.2rem; }

.page-title { margin: 0 0 .35rem; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 44rem; }
.notice { background: var(--surface); border: 1px solid var(--line); padding: 1.1rem 1.2rem; margin: 0 0 1.5rem; }
.notice strong { color: var(--white); }
.coming { text-align: center; padding: 4rem 1rem; }
.coming h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 2.4rem; margin: 0 0 .6rem; }
.coming p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.2rem; }

/* Collection toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; justify-content: space-between; margin: 0 0 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter { display: flex; flex-direction: column; gap: .25rem; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter select { background: var(--surface); border: 1px solid var(--line); padding: .55rem .7rem; min-width: 140px; }
.result-meta { color: var(--muted); font-size: 13px; }

/* Product grid / cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card { background: var(--bg-2); border: 1px solid transparent; display: flex; flex-direction: column; }
.card:hover { border-color: var(--line); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #111; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.card:hover .card-media img.hover-swap { opacity: 0; }
.card-media img.second { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media img.second { opacity: 1; }
.badge { position: absolute; top: .7rem; left: .7rem; background: var(--red); color: #fff; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: .3rem .45rem; }
.badge.sale { left: auto; right: .7rem; }
.card-body { padding: .85rem .15rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.brand-line { color: var(--faint); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.card-title { font-size: 14px; font-weight: 500; line-height: 1.35; min-height: 2.6em; }
.price { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; font-weight: 600; }
.price .now { color: var(--white); }
.price .was { color: var(--faint); text-decoration: line-through; font-weight: 400; }
.price .now.is-sale { color: var(--red-2); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }

/* Product page */
.product { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: start; }
.gallery { display: grid; gap: .7rem; }
.gallery-main { background: #111; aspect-ratio: 1 / 1; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.thumbs button { border: 1px solid var(--line); background: #111; aspect-ratio: 1; overflow: hidden; }
.thumbs button.is-active { border-color: var(--white); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .35rem 0 .8rem; line-height: 1.05; }
.product-info .price { font-size: 1.25rem; margin-bottom: 1rem; }
.options { display: grid; gap: 1rem; margin: 1.1rem 0 1.4rem; }
.opt-label { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.size-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.size-grid button { border: 1px solid var(--line); padding: .55rem .75rem; min-width: 3.2rem; background: var(--surface); font-size: 13px; }
.size-grid button.is-active { border-color: var(--white); background: #fff; color: #000; font-weight: 600; }
.size-grid button.is-unavailable { opacity: .35; text-decoration: line-through; }
.opt-select select { width: 100%; background: var(--surface); border: 1px solid var(--line); padding: .7rem .8rem; }
.qty-row { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.qty-row input { width: 4.2rem; background: var(--surface); border: 1px solid var(--line); padding: .55rem; text-align: center; }
.stock-note { font-size: 13px; color: var(--muted); margin: .4rem 0 0; }
.summary { color: var(--muted); margin-top: 1.6rem; white-space: pre-wrap; font-size: 14px; }
.summary h3, .product-info h3 { font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text); font-size: 15px; margin: 1.4rem 0 .4rem; }

/* Basket / checkout */
.basket-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 2rem; align-items: start; }
.basket-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.basket-row img { width: 92px; height: 92px; object-fit: cover; background: #111; }
.basket-row h3 { margin: 0 0 .2rem; font-size: 15px; }
.basket-row .meta { color: var(--muted); font-size: 13px; }
.qty-mini { display: flex; align-items: center; gap: .35rem; margin-top: .5rem; }
.qty-mini button { width: 28px; height: 28px; border: 1px solid var(--line); }
.summary-box { background: var(--surface); border: 1px solid var(--line); padding: 1.25rem; position: sticky; top: 96px; }
.summary-box h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1rem; font-size: 1.2rem; }
.totals { display: grid; gap: .45rem; margin: 0 0 1.1rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .due { font-size: 1.15rem; font-weight: 700; padding-top: .4rem; border-top: 1px solid var(--line); }
.warn { background: #1a0a0a; border: 1px solid var(--red); color: #f3d0d0; padding: 1rem; margin-bottom: 1rem; font-size: 14px; }
.warn a { color: #fff; text-decoration: underline; }
.legal { color: var(--muted); max-width: 46rem; }
.legal h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; }
.legal h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; margin-top: 1.6rem; }
.flag { display: inline-block; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .5rem; margin-bottom: 1rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #000; padding: 2.5rem 1.25rem 2rem; margin-top: auto; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer h3 { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin: 0 0 .8rem; }
.footer a:hover { color: var(--red); }
.footer p, .footer li { color: var(--muted); font-size: 13px; }
.footer-legal { max-width: var(--max); margin: 1.8rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; }

/* Pager */
.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pager button { border: 1px solid var(--line); min-width: 38px; height: 38px; padding: 0 .6rem; }
.pager button.is-active { background: #fff; color: #000; border-color: #fff; }

.error { padding: 3rem 1.25rem; text-align: center; }
.error a { color: var(--red); }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .nav.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: #0a0a0a; border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; align-items: stretch; }
  .nav.is-open a { border-bottom: 1px solid var(--line); padding: .8rem 0; }
  .menu-btn { display: grid; }
  .search-form input { width: 90px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product, .basket-layout, .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { padding: 2.8rem 1.1rem 2.4rem; }
  .logo img { height: 44px; }
  .summary-box { position: static; }
}
@media (max-width: 520px) {
  .search-form { display: none; }
  .search-form.is-mobile { display: flex; margin: 0 1.1rem 1rem; }
}
