/* ========== Base ========== */
:root {
  --night: #0A0E27;
  --night-2: #060819;
  --night-3: #141938;
  --ember: #E63946;
  --ember-2: #FF5733;
  --gold: #F5B82E;
  --ink: #16223A;
  --ink-2: #2A334E;
  --muted: #6B7287;
  --line: #E5E7EE;
  --bg: #F4F5F9;
  --white: #FFFFFF;
  --green: #2BBE73;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.display { font-family: 'Anton', 'Archivo Black', sans-serif; letter-spacing: 0.01em; font-weight: 400; text-transform: uppercase; }
.mono { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember); font-weight: 600; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ========== Top bar ========== */
.topbar {
  background: rgba(6,8,25,var(--avatar-header-opacity,1));
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 32px; max-width: 1280px; margin: 0 auto;
}
.topbar-left { display: flex; gap: 28px; }
.topbar-item { display: flex; align-items: center; gap: 8px; }
.topbar-item svg { opacity: 0.7; }
.topbar-item b { color: #fff; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.5); }
.topbar-right .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ========== Nav ========== */
.nav-wrap { background: rgba(10,14,39,var(--avatar-header-opacity,1)); color: #fff; position: sticky; top: 0; z-index: 50; }
.avatar-hero-image-mode .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 90; opacity: var(--header-opacity, 1); }
.avatar-hero-image-mode .nav-wrap { position: absolute; top: 36px; left: 0; right: 0; z-index: 89; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; max-width: 1280px; margin: 0 auto; padding: 0 32px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
}
.brand-name { font-family: 'Anton', sans-serif; font-size: 24px; letter-spacing: 0.04em; }
.brand-name em { font-style: normal; color: var(--ember); }
.brand-tag { font-family: 'JetBrains Mono', monospace; font-size: 9px; letter-spacing: 0.2em; color: rgba(255,255,255,0.5); margin-top: 2px; }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  display: flex; align-items: center; gap: 6px;
  border-radius: 4px;
  position: relative;
  transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--ember); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 16px; right: 16px; height: 2px;
  background: var(--ember);
}
.nav-link .caret { opacity: 0.5; font-size: 10px; }

.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; color: rgba(255,255,255,0.75);
  position: relative; transition: all 0.2s;
}
.nav-icon:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-icon .badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--ember); color: #fff; font-size: 9px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
}
.nav-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.12); margin: 0 8px; }
.nav-cart {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 40px;
  background: rgba(255,255,255,0.04); border-radius: 28px;
}
.nav-cart .count { background: var(--ember); color: #fff; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.nav-cart .label { font-size: 13px; font-weight: 600; }

/* Dropdowns */
.navdrop-wrap { position: relative; }
.navdrop-wrap:not(.open) .navdrop { display: none; }
.nav-link.hover { color: #fff; background: rgba(255,255,255,0.04); }
.navdrop {
  position: absolute; top: calc(100% + 14px); left: -16px;
  background: #fff; color: var(--ink);
  width: 280px;
  border-top: 3px solid var(--ember);
  box-shadow: 0 30px 60px rgba(10,14,39,0.18);
  z-index: 100;
  animation: drop-in 0.18s ease-out;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.navdrop::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.navdrop-inner {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; padding: 28px 32px;
}
.navdrop-col .navdrop-h {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember); font-weight: 700;
  margin-bottom: 14px;
}
.navdrop-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.navdrop-col a {
  font-size: 14px; color: var(--ink-2); font-weight: 600;
  display: block; padding: 2px 0;
  transition: color 0.15s, transform 0.15s;
}
.navdrop-col a:hover { color: var(--ember); transform: translateX(3px); }
.navdrop-cta {
  background: var(--night); color: #fff;
  padding: 20px; margin: -28px -32px -28px 0;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.navdrop-cta::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,184,46,0.3), transparent 70%);
}
.navdrop-cta .cta-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.navdrop-cta .cta-h {
  font-family: 'Anton', sans-serif; font-size: 24px; text-transform: uppercase;
  letter-spacing: 0.02em; margin-bottom: 8px; line-height: 1; color: #fff;
}
.navdrop-cta p { font-size: 12px; color: rgba(255,255,255,0.6); margin: 0 0 14px; line-height: 1.5; }
.navdrop-cta .cta-link {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Burger */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 4px; color: #fff;
  border-radius: 50%;
  transition: background 0.15s;
}
.nav-burger:hover { background: rgba(255,255,255,0.06); }
.nav-burger span {
  display: block; width: 20px; height: 2px; background: currentColor;
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--night);
  color: #fff;
  display: flex; flex-direction: column;
  animation: menu-in 0.22s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-close {
  width: 40px; height: 40px; color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: grid; place-items: center;
}
.mobile-nav {
  flex: 1; overflow-y: auto;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav > a, .mobile-group > button {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px;
  font-family: 'Anton', sans-serif; font-size: 24px;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%; text-align: left;
}
.mobile-nav > a.on, .mobile-group > button.on { color: var(--ember); }
.mobile-group > button.expand { color: var(--gold); }
.mobile-group > button span { color: rgba(255,255,255,0.5); }
.mobile-sub {
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 16px;
}
.mobile-sub[hidden] { display: none !important; }
.mobile-sub-h {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember); font-weight: 700;
  margin-bottom: 6px;
}
.mobile-sub a {
  display: block; padding: 6px 0;
  font-size: 14px; color: rgba(255,255,255,0.75); font-weight: 600;
}
.mobile-foot {
  padding: 18px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
}

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6,8,25,0.85); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 18vh;
  animation: drop-in 0.18s ease-out;
}
.search-box {
  width: min(720px, 92vw);
  background: #fff;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-radius: 4px;
  color: var(--ink);
}
.search-panel { width: min(720px, 92vw); }
.search-box svg { color: var(--ember); flex-shrink: 0; }
.search-box input {
  flex: 1; border: 0; outline: 0; font: inherit;
  font-size: 18px; color: var(--ink);
  font-family: 'Manrope', sans-serif;
}
.search-box button {
  width: 36px; height: 36px; color: var(--muted);
  border-radius: 50%;
  display: grid; place-items: center;
}
.search-box button:hover { color: var(--ember); background: var(--bg); }
.search-results {
  width: 100%;
  max-height: min(440px, 58vh);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(6,8,25,0.22);
}
.search-result {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.search-result:hover { background: var(--bg); }
.search-result img,
.search-thumb-placeholder {
  width: 58px;
  height: 58px;
  object-fit: cover;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #eef0f6 100%);
  border: 1px solid var(--line);
}
.search-result-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.search-result-copy strong { overflow-wrap: anywhere; }
.search-result-copy small {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-result-copy small span { color: var(--ember); font-weight: 700; }
.search-empty {
  padding: 16px 18px;
  background: #fff;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ========== Hero ========== */
.hero {
  background: var(--night);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  max-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 20% 30%, rgba(230,57,70,0.22), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(245,184,46,0.14), transparent 60%);
  pointer-events: none;
}
.hero.hero-banner-image {
  min-height: auto;
  height: auto;
  max-height: none;
  padding: 0;
  display: block;
  background: var(--night);
  z-index: 1;
}
.hero-banner-image::before { display: none; }
.hero-banner-image .hero-banner-media { max-width: none; }
.hero-banner-image img {
  display: block;
  width: 100%;
  height: auto;
}
.hero .container { position: relative; z-index: 2; width: 100%; padding: 32px; }
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.hero-eyebrow .line { width: 36px; height: 1px; background: rgba(245,184,46,0.5); }
.hero-title {
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.05);
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.18);
}
.hero-title .word { display: block; position: relative; }
.hero-title .word.solid { color: #fff; -webkit-text-stroke: 0; }
.hero-title .word .sub {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2em;
  -webkit-text-stroke: 0;
  font-weight: 400;
}
.hero-title .word.solid .sub { color: var(--ember); }
.hero-title .word .sub-l {
  position: absolute; left: 6%; top: 50%; transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.2em;
  -webkit-text-stroke: 0;
  font-weight: 400;
}

.hero-cta {
  display: flex; justify-content: center; gap: 14px; margin-top: 32px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s;
}
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #d12d3a; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }

.hero-spark {
  position: absolute; pointer-events: none;
}
.hero-spark.s1 { top: 12%; left: 8%; }
.hero-spark.s2 { top: 60%; right: 10%; }
.hero-spark.s3 { bottom: 14%; left: 14%; }

/* ===== Christmas lighting hero ===== */
.christmas-lights {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.light-string {
  position: absolute;
  left: 50%;
  width: min(1180px, 96vw);
  height: 110px;
  display: flex;
  justify-content: space-between;
  transform: translateX(-50%);
}
.string-top { top: 26px; }
.string-mid { bottom: 12%; width: min(900px, 86vw); opacity: 0.65; }
.light-string::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  height: 44px;
  border-top: 2px solid rgba(255,255,255,0.16);
  border-radius: 0 0 50% 50%;
}
.bulb {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 20px;
  margin-top: 28px;
  border-radius: 50% 50% 45% 45%;
  background: var(--gold);
  box-shadow: 0 0 22px currentColor;
  animation: bulb-glow 2.6s ease-in-out infinite;
}
.bulb::before { content: ''; position: absolute; left: 3px; right: 3px; top: -5px; height: 6px; background: rgba(255,255,255,0.28); border-radius: 2px; }
.bulb-1 { color: #F5B82E; background: #F5B82E; }
.bulb-2 { color: #E63946; background: #E63946; animation-delay: 0.4s; }
.bulb-3 { color: #2BBE73; background: #2BBE73; animation-delay: 0.8s; }
.bulb-4 { color: #FFFFFF; background: #FFFFFF; animation-delay: 1.2s; }
.garland {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: min(620px, 72vw);
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(43,190,115,0.24), transparent 68%);
  border-bottom: 3px solid rgba(43,190,115,0.55);
  filter: blur(0.1px);
}
.snow-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 0 12px rgba(255,255,255,0.45);
  animation: snow-float 8s linear infinite;
}
.snow-1 { left: 8%; top: 18%; animation-delay: -1s; }
.snow-2 { left: 17%; top: 64%; animation-delay: -5s; }
.snow-3 { left: 29%; top: 35%; animation-delay: -3s; }
.snow-4 { left: 43%; top: 74%; animation-delay: -6s; }
.snow-5 { left: 58%; top: 22%; animation-delay: -2s; }
.snow-6 { left: 73%; top: 58%; animation-delay: -4s; }
.snow-7 { left: 88%; top: 32%; animation-delay: -7s; }
@keyframes bulb-glow {
  0%, 100% { opacity: 0.75; filter: brightness(0.9); }
  50% { opacity: 1; filter: brightness(1.45); }
}
@keyframes snow-float {
  0% { transform: translate3d(0, -12px, 0); opacity: 0; }
  15%, 85% { opacity: 0.75; }
  100% { transform: translate3d(18px, 34px, 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bulb, .snow-dot { animation: none; }
}

.hero-stats {
  display: flex; justify-content: center; gap: clamp(20px, 4vw, 64px);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.hero-stat .n { font-family: 'Anton', sans-serif; font-size: 32px; color: var(--gold); }
.hero-stat .l { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

/* ========== Categories strip ========== */
.cats {
  background: var(--bg);
  padding: 64px 0 32px;
}
.cats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cat-card {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
  color: #fff;
  /* border: 1px solid var(--line); */
  /* background: #11162f; */
  isolation: isolate;
}
.cat-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  /* filter: brightness(0.95) saturate(0.95); */
  transition: transform 0.45s ease;
}
.cat-card:hover img {
  transform: scale(0.9);
  /* filter: brightness(1.04) saturate(1.08) contrast(1.03); */
}

@media (prefers-reduced-motion: reduce) {
  .cat-card img { transition: filter 0.2s ease; transform: none; }
  .cat-card:hover img { transform: none; }
}

/* ========== Section heading ========== */
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-head > div:first-child { min-width: 0; flex: 1; }
.section-head h2 {
  font-family: 'Anton', sans-serif;
  font-size: 32px; letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-head .count { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 6px; }
.section-head .actions { display: flex; gap: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.section-head .actions button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.section-head .actions a:hover,
.section-head .actions button:hover { color: var(--ember); }
.section-head .actions a.on,
.section-head .actions button.on { color: var(--ink); }

/* ========== Product grid ========== */
.prod-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  min-width: 0;
}
.prod-grid > * { min-width: 0; }
.prod-grid .pcard[hidden],
.prod-grid .card[hidden],
[data-product-section] .pcard[hidden],
.prod-grid .is-filtered-out { display: none !important; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  display: flex; flex-direction: column;
  transition: all 0.2s;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.card:hover { border-color: var(--ember); box-shadow: 0 10px 30px rgba(10,14,39,0.06); }
.card:hover .card-quick { opacity: 1; }
.card-img {
  aspect-ratio: 1.05 / 1;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, #fafbfd 0%, #f3f4f8 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.card-img img, .card img { max-width: 100%; height: auto; object-fit: contain; }
.card-body { padding: 16px 18px 18px; }
.card-body { min-width: 0; }
.card-title { font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 6px; line-height: 1.2; }
.card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.card-meta > * { min-width: 0; overflow-wrap: anywhere; }
.card-meta .cat { color: var(--muted); padding: 0; border: 0; display: inline; }
.card-meta .spec { color: var(--ember); font-weight: 600; }
.card-meta .spec.gold { color: var(--gold); }

.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}
.badge.hot { background: var(--ember); }
.badge.new { background: var(--green); }
.badge.featured { background: var(--gold); color: var(--ink); }
.badge.pro { background: var(--ink); }

.card-quick {
  position: absolute; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.card-quick button {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all 0.15s;
}
.card-quick button:hover { color: var(--ember); border-color: var(--ember); }

/* Effect tag row */
.effect-row {
  display: flex; gap: 6px; margin-top: 10px;
  flex-wrap: wrap;
}
.effect-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: 2px;
  background: var(--bg);
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}
.effect-tag .dot { width: 6px; height: 6px; border-radius: 50%; }

.load-more {
  border: 1px solid var(--line); background: #fff;
  width: 100%; padding: 16px; margin-top: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
  transition: all 0.2s;
}
.load-more:hover { color: var(--ember); border-color: var(--ember); }

/* ========== Banner: Safety ========== */
.banner {
  background: #fff;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.banner-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: center; gap: 48px;
}
.banner-art {
  position: relative;
  aspect-ratio: 1.2 / 1;
  display: grid; place-items: center;
}
.banner-art .slash {
  position: absolute;
  width: 4px; height: 70px;
  background: var(--ember);
  transform: rotate(28deg);
}
.banner-art .slash.s1 { top: 18%; left: 8%; }
.banner-art .slash.s2 { bottom: 14%; right: 12%; }
.banner-art .slash.s3 { top: 50%; left: 0; height: 100px; opacity: 0.7; }

.banner-copy .eyebrow { margin-bottom: 14px; }
.banner-copy h3 {
  font-family: 'Anton', sans-serif;
  font-size: 64px; line-height: 0.96;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--night);
}
.banner-copy p { color: var(--muted); max-width: 460px; margin: 0 0 28px; font-size: 15px; }

/* ========== Visual Banner Sections ========== */
.visual-banner-section {
  background: #fff;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.visual-banner {
  position: relative;
  display: grid;
  min-height: 420px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  isolation: isolate;
  box-shadow: 0 24px 60px rgba(10,14,39,0.12);
}
.visual-banner--wide,
.visual-banner--strip {
  display: block;
}
.visual-banner--tall,
.visual-banner--square {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  background: #fff;
  color: var(--night);
  border: 1px solid var(--line);
}
.visual-banner--wide { min-height: 520px; }
.visual-banner--strip { min-height: 360px; }
.visual-banner--tall { min-height: 620px; }
.visual-banner--square { min-height: 520px; }
.visual-banner--wide::before,
.visual-banner--strip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,8,25,0.02) 25%, rgba(6,8,25,0.78) 100%);
  pointer-events: none;
}
.visual-banner-media {
  min-height: inherit;
}
.visual-banner-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.45s ease, filter 0.45s ease;
}
a.visual-banner:hover .visual-banner-media img { transform: scale(1.045); filter: saturate(1.08); }
.visual-banner-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  max-width: 520px;
}
.visual-banner--tall .visual-banner-copy,
.visual-banner--square .visual-banner-copy {
  position: relative;
  inset: auto;
  z-index: 1;
  max-width: none;
  align-self: center;
  padding: clamp(32px, 5vw, 68px);
  color: var(--night);
}
.visual-banner-copy h3 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
}
.visual-banner-copy p {
  max-width: 420px;
  margin: 0 0 16px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}
.visual-banner--tall .visual-banner-copy p,
.visual-banner--square .visual-banner-copy p {
  color: var(--muted);
  font-size: 15px;
}
.visual-banner-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: var(--ember);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.visual-banner--image-only {
  display: block;
}
.visual-banner--image-only .visual-banner-media {
  min-height: inherit;
}

/* ========== Edge-to-Edge Wide and Strip Banners ========== */
.visual-banner-section--wide,
.visual-banner-section--strip {
  padding: 0;
  border-bottom: none;
}
.visual-banner-section--wide .container,
.visual-banner-section--strip .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* ========== Visual Banner Pair (2 + 3) ========== */
.visual-banner-pair-section {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.visual-banner-pair {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 0;
  overflow: hidden;
  align-items: start;
}
.visual-banner-pair .visual-banner {
  display: block;
  min-height: 600px;
  background: var(--night);
  color: #fff;
  border: none;
}
.visual-banner-pair .visual-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6,8,25,0.02) 25%, rgba(6,8,25,0.78) 100%);
  pointer-events: none;
}
.visual-banner-pair .visual-banner-media {
  min-height: 600px;
}
.visual-banner-pair .visual-banner-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  max-width: 320px;
  color: #fff;
}
.visual-banner-pair .visual-banner-copy p {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}
.visual-banner-pair .visual-banner--slot-3 {
  margin-top: 30px;
}
@media (max-width: 767px) {
  .visual-banner-pair {
    grid-template-columns: 1fr;
  }
  .visual-banner-pair .visual-banner--slot-3 {
    margin-top: 0;
  }
}

/* ========== Video / Keep It Lit ========== */
.video-block {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
  min-height: 460px;
  display: flex; align-items: end;
}
.video-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(230,57,70,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 30%, rgba(245,184,46,0.15) 0%, transparent 40%),
    linear-gradient(180deg, #060819 0%, #1a0a1f 50%, #2a0d12 100%);
}
.video-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.video-content {
  position: relative;
  width: 100%;
  padding: 48px 32px;
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: end; justify-content: space-between;
}
.video-left .eyebrow { color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.video-left .eyebrow::before { content: ''; width: 36px; height: 1px; background: rgba(255,255,255,0.3); }
.video-left h3 {
  font-family: 'Anton', sans-serif;
  font-size: 88px; line-height: 0.9;
  margin: 0;
  text-transform: uppercase;
}
.video-play {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  display: grid; place-items: center;
  color: #fff;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.video-play:hover { background: var(--ember); border-color: var(--ember); transform: scale(1.05); }
.video-meta {
  position: absolute; top: 32px; right: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex; gap: 24px; align-items: center;
}
.video-meta .rec { display: flex; align-items: center; gap: 6px; color: var(--ember); }
.video-meta .rec .d { width: 8px; height: 8px; background: var(--ember); border-radius: 50%; animation: pulse 1s ease-in-out infinite; }

/* ========== Blog cards ========== */
.blog-section { background: #fff; padding-bottom: 80px; }
.blog-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -60px;
  position: relative; z-index: 3;
  gap: 0;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 0;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.blog-card:first-child { border-left: 1px solid var(--line); }
.blog-card:hover { background: #fafbfd; }
.blog-card:hover .blog-img { opacity: 0.85; }
.blog-img {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s;
}
.blog-img img, .blog-img svg { max-width: 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-img-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4));
}
.blog-body { padding: 20px 22px 24px; min-width: 0; overflow-wrap: anywhere; flex: 1; display: flex; flex-direction: column; }
.blog-meta {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.blog-meta .tag { color: var(--ember); font-weight: 700; }
.blog-card h4 {
  font-family: 'Anton', sans-serif;
  font-size: 20px; line-height: 1.12;
  margin: 0 0 12px;
  text-transform: uppercase;
  color: var(--ink);
  word-break: break-word;
  hyphens: auto;
  letter-spacing: 0.005em;
}
.blog-card p { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.blog-card .read {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  margin-top: auto;
}

/* ========== Finale banner ========== */
.finale {
  background: var(--bg); padding: 96px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.finale-art {
  position: relative;
  width: 280px; height: 180px;
  margin: 0 auto 32px;
}
.finale h3 {
  font-family: 'Anton', sans-serif;
  font-size: 64px; line-height: 0.96;
  margin: 0 auto 48px;
  max-width: 920px;
  text-transform: uppercase;
  color: var(--night);
}
.finale h3 em { font-style: normal; color: var(--ember); }
.finale .slash {
  position: absolute;
  width: 4px; height: 80px;
  background: var(--ember);
  transform: rotate(28deg);
}

/* ========== Brand strip ========== */
.brands {
  background: var(--night);
  padding: 12px 0;
}
.brands-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.brand-cell {
  display: grid; place-items: center;
  height: 80px;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  text-align: center;
  padding: 0 8px;
}
.brand-cell:last-child { border-right: 0; }
.brand-cell:hover { color: #fff; }

/* ========== Footer ========== */
.footer {
  background: var(--night-2);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(2, minmax(160px, 1fr));
  gap: 32px;
  align-items: start;
}
.footer h5 {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer a:hover { color: var(--ember); }
.footer-cta {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px 14px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
}
.footer-cta .txt { flex: 1; }
.footer-cta .txt b { color: #fff; font-family: 'Anton', sans-serif; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; display: block; }
.footer-cta .txt span { font-size: 11px; color: rgba(255,255,255,0.5); }
.footer-cta .btn { padding: 12px 18px; font-size: 11px; }

.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .links { display: flex; gap: 24px; }

/* ========== Firework SVG illustrations ========== */
.fw-canvas { width: 78%; height: 78%; }
.spark-canvas { width: 100%; height: 100%; }

/* ========================================================== */
/* ====================== RESPONSIVE ======================== */
/* ========================================================== */

@media (max-width: 1100px) {
  .container { padding: 0 24px; }
  .nav { padding: 0 24px; height: 70px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .topbar .inner { padding: 9px 24px; }
  .topbar-left { gap: 18px; }
  .topbar-right span:not(.dot) { display: none; }
  .topbar-right .dot { display: inline-block; }
  .topbar-right > div { display: flex !important; }
  .prod-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .blog-card { border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-cell:nth-child(4) { border-right: 0; }
  .video-left h3 { font-size: 64px; }
  .video-content { flex-wrap: wrap; gap: 24px; }
  .banner-grid { grid-template-columns: 1fr; gap: 32px; }
  .banner-copy h3 { font-size: 48px; }
  .visual-banner--tall,
  .visual-banner--square { grid-template-columns: 1fr; }
  .visual-banner--tall .visual-banner-media,
  .visual-banner--square .visual-banner-media { min-height: 420px; }
}

@media (max-width: 820px) {
  body { font-size: 14px; }
  .container { padding: 0 18px; }
  .nav { padding: 0 18px; height: 64px; }
  .brand-name { font-size: 20px; }
  .brand-tag { font-size: 8px; }
  .nav-icon { width: 36px; height: 36px; }
  .topbar { display: none; }
  .avatar-hero-image-mode .nav-wrap { top: 0; }
  .navdrop { width: 100vw; left: -200px; }

  .hero { height: auto; min-height: 100vh; max-height: none; padding: 80px 0 60px; }
  .hero.hero-banner-image { min-height: auto; padding: 0; }
  .hero-title { font-size: clamp(56px, 16vw, 120px); line-height: 0.9; }
  .hero-title .word .sub, .hero-title .word .sub-l { display: none; }
  .hero-stats { gap: 28px; margin-top: 32px; }
  .hero-stat .n { font-size: 26px; }
  .hero-stat .l { font-size: 10px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.2em; }
  .hero-eyebrow .line { width: 24px; }

  .section { padding: 40px 0; }
  .cats { padding: 40px 0 20px; }
  .cats-grid {
    display: flex;
    gap: 12px;
    width: calc(100% + 36px);
    margin-right: -36px;
    padding-right: 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cats-grid::-webkit-scrollbar { display: none; }
  .cat-card {
    flex: 0 0 clamp(260px, 76vw, 420px);
    min-height: 280px;
    scroll-snap-align: start;
  }
  .cat-card img { min-height: 280px; }

  .section-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .section-head h2 { font-size: 26px; white-space: normal; }
  .section-head .actions { overflow-x: auto; padding-bottom: 4px; }

  .prod-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
  .card-title { font-size: 14px; }

  .banner { padding: 56px 0; }
  .banner-copy h3 { font-size: 40px; }
  .banner-art { aspect-ratio: 1.4 / 1; }
  .visual-banner-section { padding: 52px 0; }
  .visual-banner,
  .visual-banner--wide,
  .visual-banner--strip,
  .visual-banner--tall,
  .visual-banner--square { min-height: 320px; }
  .visual-banner--tall .visual-banner-media,
  .visual-banner--square .visual-banner-media { min-height: 320px; }
  .visual-banner-copy { left: 20px; right: 20px; bottom: 20px; }
  .visual-banner--tall .visual-banner-copy,
  .visual-banner--square .visual-banner-copy { padding: 24px; }
  .visual-banner-copy p { font-size: 13px; }

  .video-block { min-height: 360px; }
  .video-left h3 { font-size: 44px; }
  .video-content { padding: 28px 18px; }
  .video-meta { top: 18px; right: 18px; gap: 12px; font-size: 9px; }
  .video-play { width: 64px; height: 64px; margin-bottom: 4px; }

  .blog-grid { grid-template-columns: 1fr; margin-top: -28px; }
  .blog-card { border-left: 1px solid var(--line); }
  .blog-card h4 { font-size: 22px; }

  .finale { padding: 64px 0 80px; }
  .finale h3 { font-size: 44px; }
  .finale-art { width: 200px; height: 130px; }

  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-cell { font-size: 16px; height: 64px; }
  .brand-cell:nth-child(3) { border-right: 0; }
  .brand-cell:nth-last-child(-n+1) { border-right: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; font-size: 10px; }
  .footer-bottom .links { flex-wrap: wrap; gap: 14px; }

  /* Product page */
  .product-page { padding: 28px 0 56px; }
  .product-title-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .product-title-bar h1 { font-size: 30px; }
  .product-main { grid-template-columns: 1fr; }
  .product-gallery { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .gallery-main { min-height: 280px; }
  .product-detail { padding: 24px; }
  .detail-specs { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 100px 1fr; }
  .detail-buy { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .detail-foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .detail-actions { justify-content: space-between; }
  .tabs-section { padding: 22px 20px; }
  .tabs-bar { gap: 16px; flex-wrap: wrap; }
  .tabs-bar .left { gap: 18px; flex-wrap: wrap; }
  .tab-pill { font-size: 13px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid .row { grid-template-columns: 140px 1fr; }
  .spec-grid .row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .review { grid-template-columns: 48px 1fr; gap: 12px; padding: 16px; }
}

@media (max-width: 635px) {
  .section-head {
    flex-wrap: nowrap;
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .section-head .actions {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, #000 75%, transparent 100%);
    mask-image: linear-gradient(to right, #000 75%, transparent 100%);
    padding-right: 28px;
  }
  .section-head .actions::-webkit-scrollbar { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 14px; }
  .nav { padding: 0 14px; }
  .brand-tag { display: none; }
  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: 56px; }
  .btn { padding: 12px 20px; font-size: 12px; }
  .cat-card { flex-basis: 76vw; min-height: 250px; }
  .cat-card img { min-height: 250px; }
  .prod-grid { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-cell:nth-child(2n) { border-right: 0; }
  .brand-cell:nth-child(2n+1) { border-right: 1px solid rgba(255,255,255,0.08); }
  .footer-grid { grid-template-columns: 1fr; }
  .breadcrumb-inner { flex-wrap: wrap; gap: 6px; font-size: 10px; }
  .product-title-bar h1 { font-size: 26px; }
  .gallery-thumbs { flex-wrap: wrap; }
  .gallery-thumb { width: 52px; height: 52px; }
  .video-left h3 { font-size: 34px; }
  .banner-copy h3 { font-size: 32px; }
  .visual-banner,
  .visual-banner--wide,
  .visual-banner--strip,
  .visual-banner--tall,
  .visual-banner--square { min-height: 280px; }
  .visual-banner--tall .visual-banner-media,
  .visual-banner--square .visual-banner-media { min-height: 280px; }
  .visual-banner-copy h3 { font-size: 30px; }
  .finale h3 { font-size: 32px; }
}
