:root {
  --black: #0a0a0a;
  --ink: #111111;
  --card: #141414;
  --elev: #1b1b1b;
  --line: #2a2a2a;
  --mute: #8b8b8b;
  --off: #f5f5f5;
  --red: #e63946;
  --red-deep: #b42332;
  --maroon: #800020;
  --navy: #1d3557;
  --navy-2: #16324f;
  --flame: linear-gradient(135deg, #e63946 0%, #800020 70%);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --header: 84px;
  --announce: 38px;
  --font-display: "Bebas Neue", sans-serif;
  --font-cond: "Barlow Condensed", sans-serif;
  --font: "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

html[data-theme="light"] {
  --black: #f5f5f5;
  --ink: #ffffff;
  --card: #ffffff;
  --elev: #f0ecec;
  --line: #ddd6d6;
  --mute: #5d5d5d;
  --off: #0a0a0a;
  --shadow: 0 18px 40px rgba(10, 10, 10, 0.12);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--off);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus { left: 8px; z-index: 80; background: var(--red); color: #fff; padding: 8px 12px; }

.announce {
  height: var(--announce);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--maroon);
  color: #fff;
  font-family: var(--font-cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}
.announce span { white-space: nowrap; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--black) 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  height: 68px;
}
.brand img {
  height: 64px;
  width: auto;
}
.logo-light { display: none; }
.logo-dark { display: block; mix-blend-mode: screen; }
html[data-theme="light"] .logo-dark { display: none; }
html[data-theme="light"] .logo-light { display: block; mix-blend-mode: multiply; }

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.nav a {
  font-family: var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  color: var(--mute);
  position: relative;
}
.nav a:hover, .nav a.active { color: var(--off); }
.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--red);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--off);
  position: relative;
  background: var(--card);
}
.icon-btn:hover { border-color: var(--red); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.menu-btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  transition: 0.25s var(--ease);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-primary {
  background: var(--flame);
  color: #fff;
  box-shadow: 0 10px 30px rgba(230, 57, 70, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--off);
  border: 1px solid var(--line);
  clip-path: none;
  border-radius: 6px;
}
.btn-ghost:hover { border-color: var(--red); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-full { width: 100%; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }

.wrap { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 84px 0; }
.kicker {
  color: var(--red);
  font-family: var(--font-cond);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  margin: 0 0 8px;
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 0.92;
  margin: 0;
  font-weight: 400;
}
h1, .display { font-size: clamp(56px, 10vw, 128px); }
h2 { font-size: clamp(36px, 6vw, 64px); }
h3 { font-size: 28px; letter-spacing: 0.06em; }
.lede { max-width: 52ch; color: var(--mute); font-size: 18px; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header) - var(--announce));
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% 10%, rgba(230, 57, 70, 0.18), transparent 55%),
    radial-gradient(800px 400px at 10% 90%, rgba(29, 53, 87, 0.35), transparent 50%),
    var(--black);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/catalog.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  mix-blend-mode: luminosity;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 72px;
}
.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #fff, #e63946);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--off);
}
.hero-stage {
  position: relative;
  min-height: 520px;
}
.hero-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.hero-card.a { width: 62%; height: 70%; right: 8%; top: 4%; z-index: 2; }
.hero-card.b { width: 44%; height: 46%; left: 0; bottom: 6%; z-index: 3; }
.hero-card.c { width: 32%; height: 34%; right: 0; bottom: 18%; z-index: 1; }
.float-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #0a0a0a;
  color: #fff;
  padding: 8px 12px;
  font-family: var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.marquee {
  border-block: 1px solid var(--line);
  background: #0f0f0f;
  overflow: hidden;
  padding: 14px 0;
}
html[data-theme="light"] .marquee { background: #eee; }
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-cond);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mute);
}
@keyframes marquee { to { transform: translateX(-50%); } }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s var(--ease);
}
.cat-card:hover img { transform: scale(1.08); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(10,10,10,0.88));
}
.cat-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { margin: 0; color: #d0d0d0; font-size: 14px; }

.why-grid, .service-grid, .about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel .num {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 42px;
}
.stars { color: var(--red); letter-spacing: 2px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.product-card:hover { transform: translateY(-4px); border-color: #3a3a3a; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.product-media {
  position: relative;
  aspect-ratio: 1;
  background: #f7f7f7;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.35s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-cond);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 6px 10px;
}
.quick-add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s var(--ease);
}
.product-card:hover .quick-add { opacity: 1; transform: none; }
.product-card h3 { font-size: 26px; }
.filter-check input { accent-color: var(--red); }
.product-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-type { color: var(--mute); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-family: var(--font-cond); font-size: 22px; font-weight: 700; }
.compare { color: var(--mute); text-decoration: line-through; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid #444;
  box-shadow: 0 0 0 1px transparent;
}
.swatch[data-color="white"] { outline-color: #bbb; }
.swatch.active { box-shadow: 0 0 0 2px var(--red); }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size-chip {
  border: 1px solid var(--line);
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 4px;
  color: var(--mute);
}
.size-chip.active { border-color: var(--red); color: var(--off); }

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.filters {
  position: sticky;
  top: calc(var(--header) + 16px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.filter-group { padding: 12px 0; border-bottom: 1px solid var(--line); }
.filter-group h4 {
  margin: 0 0 10px;
  font-family: var(--font-cond);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}
.filter-chip, .filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--mute);
  font-size: 14px;
  width: 100%;
  text-align: left;
  background: none;
}
.filter-chip.active { color: var(--red); font-weight: 700; }
#customizer, #customizer-section { scroll-margin-top: 110px; }
.product-media a { display: block; width: 100%; height: 100%; }
.filter-bar {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.filter-bar button {
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--mute);
  background: var(--card);
}
.filter-bar button.active { background: var(--red); color: #fff; border-color: var(--red); }

.reviews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.review-card { min-height: 240px; }

.cta-band {
  background: var(--flame);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  background: #090909;
}
html[data-theme="light"] .footer { background: #eceaea; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}
.footer h3 { font-size: 22px; margin-bottom: 12px; }
.footer .brand { margin-bottom: 12px; }
.footer .brand img { height: 72px; }
.footer a, .footer p { color: var(--mute); }
.footer a:hover { color: var(--off); }
.newsletter { display: flex; gap: 8px; }
.newsletter input, .field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
}
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; }
.field textarea { min-height: 140px; resize: vertical; }
.legal { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; color: var(--mute); font-size: 13px; border-top: 1px solid var(--line); padding-top: 18px; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 50;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--black);
  border-left: 1px solid var(--line);
  z-index: 60;
  transform: translateX(100%);
  transition: 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head, .drawer-foot {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-foot { border-bottom: 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-body { overflow: auto; padding: 18px; flex: 1; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 4px; }

.checkout-steps { display: flex; gap: 8px; font-size: 12px; color: var(--mute); }
.checkout-steps span.active { color: var(--red); }
.pay-mock {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--mute);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--navy);
  color: #fff;
  padding: 14px 16px;
  border-radius: 10px;
  z-index: 80;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: none; }

.search-modal, .quote-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.62);
  padding: 20px;
}
.search-modal.open, .quote-modal.open { display: grid; }
.search-box, .modal-card {
  width: min(720px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.search-hits { max-height: 360px; overflow: auto; margin-top: 12px; }
.search-hit { display: flex; gap: 12px; padding: 10px; border-radius: 8px; }
.search-hit:hover { background: var(--elev); }
.search-hit img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 6px; }

.mobile-nav {
  position: fixed;
  inset: 0 30% 0 0;
  background: var(--black);
  z-index: 65;
  transform: translateX(-100%);
  transition: 0.35s var(--ease);
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 8px;
  border-right: 1px solid var(--line);
}
.mobile-nav.open { transform: none; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.06em;
}

.sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: none;
  background: color-mix(in srgb, var(--black) 92%, transparent);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  gap: 12px;
  align-items: center;
}
.sticky-atc.show { display: flex; }
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 34;
  background: var(--black);
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}
.mobile-tabbar a, .mobile-tabbar button {
  padding: 10px 6px 12px;
  font-size: 11px;
  color: var(--mute);
  display: grid;
  justify-items: center;
  gap: 4px;
}
.mobile-tabbar .active { color: var(--red); }

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  padding: 36px 0 80px;
}
.gallery {
  display: grid;
  gap: 12px;
}
.gallery-main {
  background: #f7f7f7;
  border-radius: var(--radius);
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 560px; object-fit: contain; }
.thumbs { display: flex; gap: 8px; }
.thumbs button {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.option-grid button, .color-option {
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 8px;
}
.option-grid button.active, .color-option.active { border-color: var(--red); }

.customizer {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}
.preview-stage {
  background: radial-gradient(circle at 50% 20%, #1d3557, #0a0a0a 70%);
  border-radius: var(--radius);
  min-height: 520px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 20px;
}
.preview-stage svg { width: min(520px, 100%); height: auto; }
.quote-box {
  background: var(--elev);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}
.quote-row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--mute); }
.quote-row.total { color: var(--off); font-size: 22px; font-family: var(--font-cond); font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

.form-card { max-width: 720px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag-row button {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
}
.tag-row button.active { background: var(--red); border-color: var(--red); color: #fff; }

.story-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: 48px 0;
  background:
    linear-gradient(180deg, transparent, var(--black)),
    url("../assets/images/catalog.jpeg") center/cover;
}
.timeline { display: grid; gap: 16px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.empty { color: var(--mute); text-align: center; padding: 40px 10px; }
.success { color: #7dffa0; }

@media (max-width: 1024px) {
  .hero-grid, .shop-layout, .pdp, .customizer, .split, .footer-grid, .cat-grid, .reviews, .why-grid, .service-grid, .about-grid, .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .hero-stage { min-height: 420px; }
}

@media (max-width: 720px) {
  :root { --header: 72px; }
  .brand img { height: 52px; }
  .hero-grid, .cat-grid, .why-grid, .service-grid, .about-grid, .product-grid, .reviews, .footer-grid, .pdp, .customizer, .split, .cta-band {
    grid-template-columns: 1fr;
  }
  .cta-band { padding: 28px; }
  .hero-card.a, .hero-card.b, .hero-card.c { position: relative; width: 100%; height: 220px; right: auto; left: auto; top: auto; bottom: auto; margin-bottom: 12px; }
  .hero-stage { min-height: 0; }
  .mobile-tabbar { display: grid; }
  body { padding-bottom: 64px; }
  .sticky-atc.show { bottom: 58px; }
  .quick-add { opacity: 1; transform: none; }
  .legal { flex-direction: column; }
  .gallery-main img { height: 360px; }
}
