/* Bike Life Revolution: Atlanta street culture build, pinned to the approved mock. */

:root {
  --ink: #0a0a0d;
  --ink-soft: #141418;
  --panel: #1c1c22;
  --line: rgba(255, 255, 255, 0.12);
  --white: #ffffff;
  --muted: #a9a9b3;
  --cobalt: #2457ff;
  --lime: #c8ff2e;
  --lime-ink: #0a0a0d;
  --paper: #fafaf8;
  --paper-line: #e1e1dc;
  --paper-ink: #111114;
  --paper-muted: #55555c;
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-brush: 'Permanent Marker', cursive;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: var(--font-body); line-height: 1.5; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cobalt); color: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--lime); color: var(--lime-ink); padding: 12px 18px; font-weight: 800; }
.skip-link:focus { left: 12px; top: 12px; }

/* Shared marks */
.marker-underline { display: block; width: 100%; height: 12px; overflow: visible; }
.marker-underline path { fill: none; stroke: var(--cobalt); stroke-width: 4.5; stroke-linecap: round; }
.tagline-underline { display: block; width: 28px; height: 3px; background: var(--cobalt); margin: 5px 0 0 auto; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px;
  font-family: var(--font-cond); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 3px; white-space: nowrap; transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.18s ease;
}
.button svg { width: 20px; height: 20px; stroke-width: 2.4; }
.button:hover { transform: translateY(-2px); }
.button-lime { background: var(--lime); color: var(--lime-ink); }
.button-lime:hover { background: #d8ff63; }
.button-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.45); }
.button-ghost:hover { border-color: var(--white); }

/* ---------- Header (transparent over the hero, the rider breaks over it) ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 8;
  display: flex; align-items: center; gap: 22px; height: 74px; padding: 0 28px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 40px; width: auto; display: block; }
.site-footer .brand-logo { height: 44px; }
@media (max-width: 999px) { .brand-logo { height: 32px; } }
.brand-wordmark {
  position: relative; display: inline-flex; align-items: center;
  font-family: var(--font-brush); font-size: 1.9rem; color: var(--white); line-height: 1; transform: rotate(-3deg); white-space: nowrap;
}
@media (max-width: 999px) { .brand-wordmark { font-size: 1.5rem; } .site-header { gap: 12px; padding: 0 16px; } }
.brand-crown { width: 20px; height: 14px; color: var(--cobalt); margin-left: 3px; transform: translateY(-11px) rotate(8deg); }
.primary-nav { display: none; gap: 28px; margin-left: 18px; font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
.primary-nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover { border-color: var(--cobalt); }
@media (min-width: 1000px) { .primary-nav { display: flex; } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); }
.icon-button:hover { background: rgba(255,255,255,0.08); }
.icon-button svg { width: 22px; height: 22px; }
.account-link { display: none; }
@media (min-width: 1000px) { .account-link { display: inline-flex; } }
.cart-button { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.cart-button svg { width: 22px; height: 22px; }
.cart-button:hover { background: rgba(255,255,255,0.08); }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--cobalt); color: var(--white); border-radius: 999px; font-size: 0.66rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.menu-button { display: inline-flex; }
@media (min-width: 1000px) { .menu-button { display: none; } }

.header-search { position: relative; display: none; }
@media (min-width: 1000px) { .header-search, .header-search[hidden] { display: block !important; } }
.header-search-field {
  display: flex; align-items: center; gap: 10px; height: 40px; width: 250px; padding: 0 16px;
  background: rgba(20,20,26,0.85); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
}
.header-search-field svg { flex: none; width: 17px; height: 17px; color: var(--white); }
.header-search-field input { flex: 1; min-width: 0; border: 0; background: none; color: var(--white); font-size: 0.82rem; height: 100%; caret-color: var(--cobalt); }
.header-search-field input:focus { outline: none; }
.header-search-field input::placeholder { color: #c4c4cc; }
.search-button { display: inline-flex; }
@media (min-width: 1000px) { .search-button { display: none; } }
@media (max-width: 999px) {
  .header-search { position: absolute; top: 74px; left: 0; right: 0; z-index: 55; padding: 16px 20px; background: var(--ink-soft); border-bottom: 1px solid var(--line); }
  .header-search-field { width: 100%; height: 46px; }
}
.search-results { position: absolute; top: 48px; left: 0; right: 0; background: var(--ink-soft); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; padding: 6px; z-index: 60; }
.search-results:empty { display: none; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; text-align: left; }
.search-result:hover { background: var(--panel); }
.search-result img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: var(--white); }
.search-result strong { display: block; font-family: var(--font-cond); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.search-result small { color: var(--muted); }
.search-empty { color: var(--muted); text-align: center; padding: 12px; font-size: 0.85rem; }

.header-tagline {
  display: none; margin: 0 0 0 6px; padding-left: 18px; border-left: 1px solid var(--line);
  font-family: var(--font-cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-align: right; line-height: 1.2; color: var(--white);
}
@media (min-width: 1240px) { .header-tagline { display: block; } }

.mobile-nav { position: absolute; top: 74px; left: 0; right: 0; z-index: 55; background: var(--ink-soft); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; padding: 8px 24px 20px; }
.mobile-nav a { padding: 14px 0; font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }
body.is-menu-open .hero-artwork { z-index: 1; }

/* ---------- Hero ---------- */
.bike-life-hero {
  position: relative; overflow: visible;
  min-height: 29.8vw;
  padding: 92px 0 0;
  background: var(--ink);
}
.bike-life-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--noise); background-size: 220px 220px; opacity: 0.14; mix-blend-mode: screen;
}
.hero-artwork { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: visible; }
.hero-artwork picture { display: contents; }
.hero-artwork img {
  position: absolute; max-width: none; height: auto;
  width: 108vw; left: -2vw; top: 0;
  filter: drop-shadow(0 26px 40px rgba(0,0,0,0.6));
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 7; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,10,13,0.97) 0%, rgba(10,10,13,0.92) 20%, rgba(10,10,13,0.55) 30%, rgba(10,10,13,0) 41%);
}
.hero-copy { position: relative; z-index: 8; max-width: 560px; padding: 0 0 18px 44px; }
.hero-copy .line-1 {
  display: block; font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(3rem, 5.7vw, 5.3rem); line-height: 0.88; letter-spacing: 0.005em; color: var(--white);
  filter: url(#grit);
}
.hero-copy .line-1 em { font-style: normal; color: var(--lime); }
.hero-copy .line-2 {
  position: relative; display: inline-block; margin-top: 4px;
  font-family: var(--font-brush); font-weight: 400; font-size: clamp(1.4rem, 2.3vw, 2.15rem); color: var(--white); line-height: 1.15;
}
.hero-copy .line-2 .marker-underline { margin-top: -4px; }
.hero-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }
.button-hero { height: 56px; padding: 0 26px; font-size: 1.3rem; }
.button-watch { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.button-watch .play-icon { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 2px solid var(--white); stroke-width: 1.6; }
.button-watch .play-icon circle { display: none; }
.button-watch .play-icon path { fill: var(--white); stroke: none; }
.button-watch span { position: relative; font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; }
.button-watch .marker-underline-sm { position: absolute; left: 0; bottom: -10px; width: 100%; height: 9px; }
.button-watch .marker-underline-sm path { stroke-width: 3.5; }
.hero-proof { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.proof-avatars { display: flex; }
.proof-avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); margin-left: -12px; background: var(--panel); }
.proof-avatars img:first-child { margin-left: 0; }
.proof-text { display: flex; flex-direction: column; }
.proof-text strong { font-family: var(--font-cond); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.04em; line-height: 1; }
.proof-text strong b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.02em; }
.proof-text small { font-family: var(--font-cond); color: #c9c9d1; font-size: 0.72rem; letter-spacing: 0.14em; margin-top: 6px; }
.hero-side-label {
  display: none; position: absolute; right: 24px; bottom: 26px; z-index: 8;
  font-family: var(--font-cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-align: right; line-height: 1.2; color: var(--white);
}
@media (min-width: 1180px) { .hero-side-label { display: block; } }

@media (max-width: 999px) {
  .bike-life-hero { padding: 88px 0 0; min-height: 0; display: flex; flex-direction: column; }
  .hero-scrim { display: none; }
  .hero-copy { order: 1; padding: 0 20px; max-width: none; }
  .hero-copy .line-1 { font-size: clamp(2.6rem, 11.5vw, 3.8rem); }
  .hero-actions { margin-top: 14px; gap: 18px; }
  .hero-proof { margin-top: 16px; }
  .hero-artwork { order: 2; position: relative; inset: auto; z-index: 2; height: 118vw; max-height: 560px; margin-top: 6px; overflow: hidden; }
  .hero-artwork img { position: absolute; height: 100%; width: auto; max-width: none; left: 50%; top: 0; transform: translateX(-50.5%); filter: none; }
  .hero-side-label { display: none; }
}
@media (max-width: 999px) and (min-width: 640px) {
  .hero-artwork { height: 72vw; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  position: relative; z-index: 3; margin-top: 0; display: grid; grid-template-columns: 1fr auto; align-items: center;
  background: #050507; padding: 16px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-items { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; }
@media (min-width: 1300px) { .trust-items { justify-content: space-between; max-width: 68vw; margin-left: 8vw; } }
.trust-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-cond); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.trust-item svg { width: 20px; height: 20px; color: var(--white); stroke-width: 1.6; }
.trust-divider { width: 1px; height: 22px; background: rgba(255,255,255,0.35); }
.trust-tagline { position: relative; font-family: var(--font-cond); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 6px; }
.trust-tagline .tagline-underline { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; margin: 0; }
@media (max-width: 760px) { .trust-strip { grid-template-columns: 1fr; gap: 12px; } .trust-tagline { justify-self: center; } }

/* ---------- Shop (paper section) ---------- */
.shop-section { position: relative; background: var(--paper); color: var(--paper-ink); padding: 36px 28px 44px; }
.shop-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--noise); background-size: 260px 260px; opacity: 0.07; mix-blend-mode: multiply;
}
.shop-section > * { position: relative; }
.shop-section-gear { border-top: 1px solid var(--paper-line); }
.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.shop-head h2 {
  position: relative; display: inline-block; font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 0.95; letter-spacing: 0.005em; color: var(--paper-ink);
}
.marker-underline-dark { width: 42%; height: 11px; margin-top: 2px; }
.marker-underline-dark path { stroke-width: 4; }
.shop-head-right { display: none; align-items: flex-start; gap: 22px; }
@media (min-width: 1000px) { .shop-head-right { display: flex; } }
.shop-blurb { font-family: var(--font-cond); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; line-height: 1.4; color: var(--paper-ink); padding-right: 22px; border-right: 1px solid var(--paper-ink); }
.shop-stamp { position: relative; font-family: var(--font-brush); font-size: 1.05rem; line-height: 1.05; color: #5b5b62; transform: rotate(-6deg); margin-top: -2px; }
.stamp-crown { width: 18px; height: 12px; color: #5b5b62; display: block; margin-top: 4px; }

.product-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .apparel-grid { grid-template-columns: repeat(3, 1fr); } .accessory-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .apparel-grid { grid-template-columns: repeat(4, 1fr); } }
.product-loading { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--paper-muted); }
.product-loading.is-error { color: #b32431; }

.product-card { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 12px; padding: 12px 16px 12px 0; border-right: 1px solid var(--paper-line); min-width: 0; }
.product-grid > .product-card:last-child { border-right: 0; }
.product-card + .product-card { padding-left: 16px; }
.product-media { position: relative; display: block; aspect-ratio: 1 / 1.05; text-align: left; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.product-media:hover img, .product-media:focus-visible img { transform: scale(1.04) rotate(-1.2deg); }
.product-media.has-image-error img { opacity: 0; }
.image-fallback { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--paper-muted); font-size: 0.8rem; }
.has-image-error .image-fallback { display: flex; }
.product-info { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding-top: 18px; }
.product-name { font-family: var(--font-cond); font-weight: 800; font-size: 1.02rem; line-height: 1.1; letter-spacing: 0.03em; text-transform: uppercase; text-align: left; color: var(--paper-ink); }
.product-name:hover { color: var(--cobalt); }
.product-price { font-family: var(--font-cond); font-weight: 800; font-size: 1.55rem; line-height: 1; color: var(--paper-ink); }
.product-price small { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; color: var(--paper-muted); margin-top: 3px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 5px; }
.swatch { width: 19px; height: 19px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.25); box-shadow: inset 0 0 0 2px var(--paper); position: relative; }
.swatch.is-selected { box-shadow: inset 0 0 0 2px var(--paper), 0 0 0 2px var(--cobalt); }
.size-row { display: flex; flex-wrap: wrap; gap: 5px; }
.size-chip { min-width: 27px; height: 27px; padding: 0 4px; border: 1.5px solid var(--paper-ink); font-family: var(--font-cond); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--paper-ink); background: transparent; }
.size-chip.is-selected { background: var(--paper-ink); color: var(--white); }
.size-chip:disabled { opacity: 0.32; text-decoration: line-through; cursor: not-allowed; }
.card-device { width: 100%; height: 36px; border: 1.5px solid var(--paper-ink); background: transparent; color: var(--paper-ink); font-family: var(--font-cond); font-weight: 700; padding: 0 8px; }
.card-note { font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); }
.card-add { margin-top: auto; justify-content: center; height: 46px; font-size: 1.05rem; }
.card-add.is-loading { opacity: 0.7; }
@media (max-width: 639px) { .product-card { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); border-right: 0; border-bottom: 1px solid var(--paper-line); padding: 14px 0; } .product-card + .product-card { padding-left: 0; } .product-info { padding-top: 6px; } }


/* Coming-soon drop row */
.drop-grid { margin-bottom: 8px; }
@media (min-width: 1000px) { .drop-grid { grid-template-columns: repeat(3, 1fr); } .drop-grid .product-card:nth-child(3n) { border-right: 0; } .drop-grid .product-card:nth-child(3n+1) { padding-left: 0; } .drop-grid .product-card:nth-child(n+4) { border-top: 1px solid var(--paper-line); padding-top: 22px; } }
.drop-card .product-media { cursor: default; }
.drop-card .product-media img { transition: none; }
.drop-card .product-media:hover img { transform: none; }
.drop-card .product-media .image-fallback { display: flex; border: 1.5px dashed var(--paper-line); background: #ffffff; }
.drop-card .product-media img[src]:not([src=""]) ~ .image-fallback { display: none; }
.drop-card .product-media.has-image-error .image-fallback { display: flex; }
.product-name-static { text-align: left; }
.coming-soon { font-family: var(--font-cond); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d0201f; line-height: 1; }
.drop-card .swatch, .drop-card .size-chip { display: inline-flex; align-items: center; justify-content: center; }
.shop-subhead { margin: 30px 0 18px; padding-top: 26px; border-top: 1px solid var(--paper-line); }
.shop-subhead h3 { display: inline-block; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 0.95; color: var(--paper-ink); }

/* ---------- Community / About / FAQ ---------- */
.community { max-width: 1280px; margin: 0 auto; padding: 80px 28px; display: grid; gap: 32px; }
@media (min-width: 900px) { .community { grid-template-columns: 1fr 1fr; align-items: center; } }
.community-copy h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 0.95; }
.community-script { position: relative; display: inline-block; margin-top: 12px; font-family: var(--font-brush); font-size: clamp(1.3rem, 2vw, 1.8rem); }
.community-copy > p:not(.community-script) { margin-top: 14px; color: var(--muted); max-width: 48ch; }
.community-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; }
.community-collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.community-slot { aspect-ratio: 3 / 4; margin: 0; border: 1.5px dashed rgba(255,255,255,0.25); background: var(--ink-soft); display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }
.community-slot span { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.community-slot small { color: #8f8f9b; }

.about { max-width: 820px; margin: 0 auto; padding: 0 28px 72px; }
.about-copy h2, .faq-intro h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 0.95; }
.about-copy p { margin-top: 16px; color: var(--muted); font-size: 1.02rem; max-width: 62ch; }

.faq-section { max-width: 820px; margin: 0 auto; padding: 0 28px 96px; }
.faq-intro h2 { margin-bottom: 24px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { transition: transform 0.2s ease; flex: none; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list p { margin-top: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 28px 28px; display: grid; gap: 28px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 760px) { .site-footer { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 0.88rem; max-width: 32ch; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-cond); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-note { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.footer-note strong { color: var(--white); }
.copyright { grid-column: 1 / -1; margin-top: 8px; color: #8d8d99; font-size: 0.78rem; }

/* ---------- Overlay, drawer, modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.62); z-index: 70; }
body.is-locked { overflow: hidden; }

.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(420px, 100vw); background: var(--ink-soft); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: -22px 0 44px rgba(0,0,0,0.5); }
.cart-drawer:not(.is-open) { visibility: hidden; transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.28s; }
.cart-drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer-header h2 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; }
.drawer-header p { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { text-align: center; padding: 48px 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cart-empty svg { width: 40px; height: 40px; }
.cart-line { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-line-media { width: 76px; height: 76px; flex: none; border-radius: 4px; overflow: hidden; background: var(--white); }
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-line-title { font-family: var(--font-cond); font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.cart-line-variant { color: var(--muted); font-size: 0.82rem; }
.cart-line-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.quantity-control { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 4px; padding: 4px 8px; }
.quantity-control button { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.quantity-control svg { width: 14px; height: 14px; }
.cart-line-price { color: var(--lime); }
.remove-button { margin-top: 6px; align-self: flex-start; font-size: 0.75rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-footer { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.subtotal { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; margin-bottom: 8px; }
.cart-footer p { color: var(--muted); font-size: 0.78rem; margin-bottom: 16px; }
.checkout-button { width: 100%; justify-content: center; }
.checkout-button:disabled { opacity: 0.4; cursor: not-allowed; }
.checkout-button:disabled:hover { transform: none; }

.product-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { position: relative; width: min(940px, 100%); max-height: 90vh; overflow-y: auto; background: var(--ink-soft); border-radius: 8px; box-shadow: 0 34px 72px rgba(0,0,0,0.6); display: grid; }
@media (min-width: 760px) { .modal-card { grid-template-columns: 1.1fr 1fr; max-height: 84vh; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(10,10,13,0.7); }
.modal-gallery { padding: 20px; }
.modal-main-photo { position: relative; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; background: var(--white); }
.modal-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-main-photo.has-image-error img { opacity: 0; }
.modal-image-fallback { display: none; }
.modal-main-photo.has-image-error .modal-image-fallback { display: flex; }
.thumbnail-list { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--cobalt) transparent; }
.thumbnail-button { width: 56px; height: 56px; flex: none; border-radius: 3px; overflow: hidden; border: 2px solid transparent; background: var(--white); }
.thumbnail-button.is-active { border-color: var(--cobalt); }
.thumbnail-button img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 12px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.modal-info h2 { font-family: var(--font-display); font-size: 1.8rem; text-transform: uppercase; line-height: 1; }
.modal-description { color: var(--muted); }
.option-heading { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-cond); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.option-heading strong { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.85rem; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-button { height: 36px; padding: 0 12px; border: 1.5px solid rgba(255,255,255,0.35); font-family: var(--font-cond); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.03em; }
.option-button.is-selected { background: var(--white); border-color: var(--white); color: var(--ink); }
.option-button:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.device-select { width: 100%; height: 46px; background: var(--panel); border: 1px solid var(--line); color: var(--white); padding: 0 14px; }
.modal-purchase { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.modal-price { display: flex; flex-direction: column; }
.modal-price span { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.modal-price strong { font-family: var(--font-cond); font-size: 1.7rem; font-weight: 800; }
.add-button { flex: none; }
.add-button.is-loading { opacity: 0.7; }
.modal-assurance { color: #9a9aa6; font-size: 0.78rem; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--white); color: var(--ink); padding: 12px 20px; border-radius: 999px; font-family: var(--font-cond); font-weight: 700; font-size: 1rem; letter-spacing: 0.03em; text-transform: uppercase; z-index: 100; box-shadow: 0 18px 40px rgba(0,0,0,0.5); }
