/* ============================================================
   VINFAST TIẾN CẢNH — Premium Design System
   ============================================================ */

/* --- custom properties --- */
:root {
  --ink:       #050505;
  --ink-900:   #0a0a0a;
  --ink-800:   #111;
  --ink-700:   #1a1a1a;
  --ink-600:   #222;
  --azure:     #1e6fff;
  --azure-l:   #4d8fff;
  --azure-d:   #1456cc;
  --champagne: #b8952a;
  --muted:     #6b7280;
  --header-h:  64px;
  --ease-out:  cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* global smooth default for all interactive elements */
a, button, [role="button"], select, input, textarea {
  transition-timing-function: cubic-bezier(.25,.46,.45,.94);
}

html { scroll-behavior: smooth; font-family: 'Be Vietnam Pro', system-ui, sans-serif; }

body {
  background: var(--ink);
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--azure); }

/* ── selection ── */
::selection { background: rgba(30,111,255,.35); color: #fff; }

/* ── promo ticker ── */
.promo-ticker {
  display: inline-block;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================
   HEADER
   ================================================================ */

.site-header {
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  background: rgba(5,5,5,.94);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.h-header { height: var(--header-h); }

/* logo ring */
.logo-ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  transition: border-color .25s;
}
.logo-ring--lg { width: 56px; height: 56px; }
.logo-ring:hover { border-color: var(--azure); }
.logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* nav links */
.nav-link {
  position: relative;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--azure);
  transform: scaleX(0);
  transition: transform .25s var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

/* icon button */
.icon-btn {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,.6);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.06); }

/* cart badge */
.cart-badge {
  position: absolute; top: 6px; right: 4px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--azure); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 16px;
  text-align: center; border-radius: 8px;
}

/* mobile nav */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s var(--ease-out);
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav-link {
  display: block; padding: 11px 0;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s;
}
.mobile-nav-link:hover { color: #fff; }

/* ================================================================
   HERO
   ================================================================ */

.hero-section { background: var(--ink); }

/* layered background */
.hero-bg { z-index: 0; pointer-events: none; }

.hero-bg-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(8,20,50,.95) 0%, transparent 70%),
    radial-gradient(ellipse 100% 100% at 50% 100%, rgba(5,5,5,1) 0%, transparent 60%),
    linear-gradient(150deg, #040812 0%, #050505 50%, #060d1a 100%);
}

.hero-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 68% 45%, rgba(30,111,255,.08) 0%, transparent 60%);
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, black, transparent);
}

/* label tag */
.label-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azure);
  border: 1px solid rgba(30,111,255,.35);
  padding: 5px 14px;
  line-height: 1;
}

/* hero headline */
.hero-h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: #fff;
}
.hero-em {
  display: block;
  font-style: normal;
  background: linear-gradient(135deg, var(--azure-l), var(--azure));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tc {
  display: block;
}

/* stats */
.hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-stat-num { font-size: 1.8rem; font-weight: 700; line-height: 1; color: #fff; }
.hero-stat-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.hero-stat-div { width: 1px; height: 36px; background: rgba(255,255,255,.12); }

/* caption */
.hero-caption { transition: opacity .3s; }
.hero-caption.fading { opacity: 0; }

/* hero dots */
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none; cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}
.hero-dot.active, .hero-dot:hover { background: var(--azure); transform: scale(1.3); }

/* image stage */
.hero-img-col {
  display: flex; justify-content: center; align-items: center;
}
.hero-stage {
  position: relative;
  width: 100%; max-width: 560px;
  aspect-ratio: 3/2;
  /* azure glow — visible on dark bg */
  box-shadow: 0 0 40px 0 rgba(30,111,255,.10), 0 4px 12px 0 rgba(0,0,0,.35);
  transition:
    box-shadow .55s var(--ease-out),
    filter     .55s var(--ease-out);
  will-change: box-shadow, filter;
}

/* deeper glow while slide is mid-flight */
.hero-stage.is-transitioning {
  box-shadow: 0 0 64px 4px rgba(30,111,255,.18), 0 8px 24px 0 rgba(0,0,0,.55);
}

/* vignette scrim that fades in/out */
.hero-stage::after {
  content: '';
  position: absolute; inset: 0; z-index: 4;
  background: rgba(5,5,5,.0);
  transition: background .32s ease;
  pointer-events: none;
}
.hero-stage.is-transitioning::after {
  background: rgba(5,5,5,.22);
}
.hero-glow-ring {
  position: absolute;
  width: 75%; height: 75%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(30,111,255,.12) 0%, transparent 70%);
  filter: blur(30px);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
@keyframes pulse-glow {
  0%,100% { opacity: .7; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%,-50%) scale(1.12); }
}

/* hero bike images — JS controls opacity/transform via inline style */
.hero-bike {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  z-index: 1;
  opacity: 0;
  transform: translateX(0) scale(1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.45));
  will-change: opacity, transform;
}

@media (max-width: 767px) {
  .hero-section {
    min-height: auto !important;
    align-items: flex-start;
  }

  .hero-section > .relative {
    padding-top: 2rem !important;
    padding-bottom: 4.5rem !important;
  }

  .hero-img-col {
    margin-top: 0;
  }

  .hero-stage {
    width: min(100%, 350px);
    aspect-ratio: 4 / 3;
    box-shadow: 0 0 32px rgba(30,111,255,.1);
  }

  .hero-bike {
    filter: drop-shadow(0 16px 28px rgba(0,0,0,.42));
  }
}

/* ================================================================
   TRUST STRIP
   ================================================================ */
.trust-item { display: flex; gap: 16px; align-items: flex-start; }
.trust-num {
  font-size: 10px; font-weight: 700; letter-spacing: .15em;
  color: var(--azure); border: 1px solid rgba(30,111,255,.3);
  padding: 5px 8px; line-height: 1; white-space: nowrap;
  flex-shrink: 0; margin-top: 2px;
}

/* ================================================================
   SECTION COMMONS
   ================================================================ */
.section-py { padding: 96px 0; }
@media (max-width: 767px) { .section-py { padding: 64px 0; } }

.section-header { margin-bottom: 56px; }
.section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--azure);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-top: 8px;
}
.section-sub { color: rgba(255,255,255,.35); margin-top: 10px; font-size: .9375rem; font-weight: 300; }

/* ================================================================
   PROMOTIONS
   ================================================================ */
.promo-card {
  position: relative;
  background: var(--ink-900);
  border: 1px solid rgba(255,255,255,.06);
  padding: 32px;
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease-out);
}
.promo-card::before {
  content: '';
  position: absolute; top: 0; left: -60%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent);
  transform: skewX(-15deg);
  transition: left .6s ease;
}
.promo-card:hover { border-color: rgba(30,111,255,.35); transform: translateY(-2px); }
.promo-card:hover::before { left: 120%; }

.promo-badge {
  display: inline-block;
  background: var(--azure); color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; margin-bottom: 18px;
  line-height: 1.6;
}
.promo-badge--champagne { background: var(--champagne); }

.promo-percent {
  font-size: 3rem; font-weight: 800;
  line-height: 1; letter-spacing: -.03em;
  color: var(--azure);
}
.promo-percent--champagne { color: var(--champagne); }

.promo-title { font-size: .95rem; font-weight: 600; margin-top: 10px; line-height: 1.4; }
.promo-desc  { font-size: .8125rem; color: rgba(255,255,255,.4); margin-top: 8px; line-height: 1.6; font-weight: 300; }
.promo-applies { margin-top: 18px; }
.promo-applies-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 8px; }
.promo-tag {
  display: inline-block;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.65);
  font-size: 11px; padding: 3px 10px; margin: 2px 3px 2px 0;
}
.promo-validity {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 11px; color: rgba(255,255,255,.3);
  letter-spacing: .06em;
}

/* ================================================================
   FILTERS
   ================================================================ */
.filter-wrap {
  background: rgba(10,10,10,.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}

.filter-search-wrap { position: relative; flex: 1; min-width: 180px; }
.filter-search-icon {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px; color: rgba(255,255,255,.3);
  pointer-events: none;
}

.filter-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: .875rem;
  font-family: inherit;
  padding: 9px 12px 9px 36px;
  outline: none;
  transition: border-color .2s;
}
.filter-input::placeholder { color: rgba(255,255,255,.3); }
.filter-input:focus { border-color: var(--azure); }

.filter-select {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-family: inherit;
  padding: 9px 32px 9px 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.35)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition: border-color .2s;
}
.filter-select:focus { border-color: var(--azure); }
.filter-select option { background: #1a1a1a; color: #fff; }

.filter-clear {
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4);
  font-size: .8125rem;
  font-family: inherit;
  padding: 9px 14px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.filter-clear:hover { color: #fff; border-color: rgba(255,255,255,.3); }

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
}
@media (min-width:1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width:1280px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* product card */
.product-card {
  position: relative;
  background: var(--ink-800);
  cursor: pointer;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition:
    border-color .25s,
    transform .3s var(--ease-out),
    box-shadow .3s;
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: rgba(30,111,255,.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(30,111,255,.15);
}
.product-card:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }

/* discount ribbon */
.card-ribbon {
  position: absolute; top: 0; right: 0; z-index: 2;
  background: var(--azure); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 5px 10px;
  letter-spacing: .06em;
}

/* image area */
.card-img-wrap {
  background: #111;
  padding: 24px 16px 8px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  height: 180px;
}
.card-img {
  max-height: 148px; max-width: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease-out);
}
.product-card:hover .card-img { transform: scale(1.06); }

/* card body */
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card-category {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.card-name { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }

/* specs chips */
.card-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-size: 10px; letter-spacing: .06em;
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.5);
  padding: 3px 8px;
}

/* pricing */
.card-price { margin-top: auto; }
.card-price-main { font-size: 1.2rem; font-weight: 700; color: var(--azure); }
.card-price-original { font-size: .8125rem; color: rgba(255,255,255,.3); text-decoration: line-through; margin-right: 6px; }
.card-price-null { font-size: .9375rem; color: rgba(255,255,255,.4); font-style: italic; }

.card-actions { display: flex; gap: 8px; margin-top: 14px; }

.btn-detail {
  flex: 1;
  padding: 9px 0; text-align: center;
  font-size: .8125rem; font-weight: 600; font-family: inherit;
  background: transparent; color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.btn-detail:hover { color: #fff; border-color: rgba(255,255,255,.3); }

.btn-cart {
  flex: 1;
  padding: 9px 0; text-align: center;
  font-size: .8125rem; font-weight: 600; font-family: inherit;
  background: var(--azure); color: #fff;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-cart:hover { background: var(--azure-l); }
.btn-cart:active { transform: scale(.97); }

/* promotions tag on card */
.card-promo-strip {
  font-size: 10px; padding: 5px 20px;
  background: rgba(184,149,42,.08);
  color: var(--champagne);
  border-top: 1px solid rgba(184,149,42,.12);
  letter-spacing: .06em;
}

/* ================================================================
   LIFESTYLE BAND
   ================================================================ */
.lifestyle-band { background: var(--ink-800); min-height: 440px; display: flex; align-items: center; }
.lifestyle-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 85% 50%, rgba(30,111,255,.06) 0%, transparent 60%),
    linear-gradient(135deg, #080808 0%, #0a0f1c 100%);
}
.lifestyle-overlay {
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.01'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ================================================================
   ABOUT
   ================================================================ */
.about-item { display: flex; align-items: flex-start; gap: 16px; }
.about-num {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  color: var(--azure); border: 1px solid rgba(30,111,255,.3);
  padding: 5px 9px; line-height: 1; white-space: nowrap;
  flex-shrink: 0; margin-top: 2px;
}
.about-card {
  background: var(--ink-900);
  border: 1px solid rgba(255,255,255,.05);
  transition: border-color .25s;
}
.about-card:hover { border-color: rgba(255,255,255,.12); }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width:600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: .8125rem; font-weight: 500; color: rgba(255,255,255,.5); letter-spacing: .04em; }

.form-input {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-size: .9375rem; font-family: inherit;
  padding: 12px 16px;
  outline: none;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form-input::placeholder { color: rgba(255,255,255,.25); }
.form-input:focus { border-color: var(--azure); background: rgba(30,111,255,.04); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer-heading {
  font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 16px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-list li { font-size: .875rem; color: rgba(255,255,255,.3); font-weight: 300; }
.footer-list a { color: rgba(255,255,255,.35); text-decoration: none; }

/* ================================================================
   MOBILE CTA BAR
   ================================================================ */
.mobile-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex;
  background: rgba(10,10,10,.96);
  border-top: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-cta-btn {
  flex: 1; padding: 10px 8px;
  display: flex; flex-direction: column; align-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: rgba(255,255,255,.55);
  background: transparent; border: none; cursor: pointer;
  text-decoration: none;
  transition: color .2s;
}
.mobile-cta-btn:hover { color: #fff; }
.mobile-cta-btn--primary { background: var(--azure); color: #fff; }
.mobile-cta-btn--primary:hover { background: var(--azure-l); }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azure); color: #fff;
  font-size: .9375rem; font-weight: 600; font-family: inherit;
  padding: 13px 28px;
  border: none; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { background: var(--azure-l); box-shadow: 0 8px 24px rgba(30,111,255,.3); }
.btn-primary:active { transform: scale(.98); }
.btn-arrow { transition: transform .2s; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex; align-items: center;
  color: rgba(255,255,255,.7);
  font-size: .9375rem; font-weight: 600;
  padding: 13px 28px;
  border: 1px solid rgba(255,255,255,.15);
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.45); }

/* ================================================================
   MODALS
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay[hidden] { display: none !important; }

.modal-box {
  background: var(--ink-800);
  border: 1px solid rgba(255,255,255,.08);
  width: 100%; max-height: 90vh;
  display: flex; flex-direction: column;
  transform: translateY(20px) scale(.98);
  transition: transform .35s var(--ease-out), opacity .3s;
  opacity: 0;
  overflow: hidden;
}
.modal-overlay.is-open .modal-box { transform: none; opacity: 1; }
.modal-box--wide  { max-width: 860px; }
.modal-box--narrow { max-width: 480px; }

.modal-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.modal-close {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,.4);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,.06); }
.modal-body { overflow-y: auto; padding: 24px; flex: 1; overscroll-behavior: contain; }

/* modal product layout */
.modal-product-grid { display: grid; gap: 28px; }
@media (min-width: 640px) { .modal-product-grid { grid-template-columns: 1fr 1fr; } }

.modal-img-wrap {
  background: #0d0d0d;
  padding: 32px 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
.modal-img { max-height: 220px; max-width: 100%; object-fit: contain; }

.modal-section-title {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--azure); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.spec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: .8125rem; }
.spec-row:last-child { border: none; }
.spec-key { color: rgba(255,255,255,.35); font-weight: 300; }
.spec-val { color: #fff; font-weight: 500; text-align: right; }

/* variant selector */
.variant-btn {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  font-size: .8125rem; font-family: inherit; cursor: pointer;
  transition: all .2s;
}
.variant-btn:hover  { border-color: rgba(255,255,255,.3); color: #fff; }
.variant-btn.active { background: var(--azure); border-color: var(--azure); color: #fff; }

/* cart styles */
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.cart-item:last-child { border: none; }
.cart-item-img { width: 64px; height: 48px; object-fit: contain; background: #111; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: .875rem; font-weight: 600; }
.cart-item-sub  { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 3px; }
.cart-item-price { font-size: .875rem; font-weight: 700; color: var(--azure); margin-top: 5px; }
.cart-item-rm {
  background: transparent; border: none; cursor: pointer;
  color: rgba(255,255,255,.25);
  flex-shrink: 0; padding: 4px;
  transition: color .2s;
}
.cart-item-rm:hover { color: #ef4444; }

.cart-footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: var(--ink-900);
}

/* ================================================================
   SCROLL REVEAL — attribute-driven system
   Usage: <el data-anim="up|left|right|scale|fade"> [data-delay="0.1"]
   ================================================================ */

/* ── base hidden state per variant ── */
[data-anim] {
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(.22,1,.36,1);
  transition-duration: .72s;
  transition-delay: var(--sr-delay, 0s);
  will-change: opacity, transform;
}
[data-anim].sr-visible { will-change: auto; }

[data-anim="up"]    { opacity: 0; transform: translateY(52px); }
[data-anim="left"]  { opacity: 0; transform: translateX(-44px); }
[data-anim="right"] { opacity: 0; transform: translateX(44px); }
[data-anim="fade"]  { opacity: 0; transform: none; }
[data-anim="scale"] {
  opacity: 0;
  transform: scale(.88) translateY(24px);
  transform-origin: center bottom;
}

/* ── revealed state ── */
[data-anim].sr-visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ── section divider line ── */
.sr-line {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--azure), transparent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .9s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--sr-delay, 0s);
}
.sr-line.sr-visible { transform: scaleX(1); }

/* ── legacy compat ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  will-change: opacity, transform;
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: none; will-change: auto; }
.reveal-stagger {
  opacity: 0; transform: translateY(22px);
  will-change: opacity, transform;
  transition: opacity .68s cubic-bezier(.22,1,.36,1), transform .68s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}
.reveal-stagger.in-view { opacity: 1; transform: none; will-change: auto; }

/* ================================================================
   SPINNER
   ================================================================ */
.spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,.08);
  border-top-color: var(--azure);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 90;
  background: var(--ink-700);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  font-size: .875rem; font-weight: 500;
  padding: 12px 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s, transform .25s var(--ease-out);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width:1024px) { .toast { bottom: 32px; } }

/* ================================================================
   SERVER WARN
   ================================================================ */
#serverWarning { display: none; }
body.server-warn #serverWarning { display: block; }

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-bike { transform: none !important; }
  .reveal, .reveal-stagger,
  [data-anim], .sr-line { transition: none !important; }
  [data-anim], .sr-line { opacity: 1 !important; transform: none !important; }
}
