:root {
  --bg: #0a0c12;
  --bg-alt: #0e1118;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --text-dim: #97a1b3;
  --accent: #6ee7ff;
  --accent-2: #b78bff;
  --accent-3: #ff8d6e;
  /* Primary call-to-action — the racing teal (matches the product cards) */
  --cta: #0e7da0;
  --cta-dark: #0a6076;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Background canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

#bg-canvas + *,
body > * {
  position: relative;
  z-index: 1;
}

/* Gradient text */
.grad-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 24px rgba(14, 125, 160, 0.22);
}

.btn--primary:hover {
  background: var(--cta-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14, 125, 160, 0.28);
}

.btn--ghost {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline {
  border: 1px solid var(--surface-border);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.btn--wide {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

/* Nav — forced LTR so controls stay left and the toggle+logo stay right
   (the logo is the right-most element) in both languages, matching Home. */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: ltr;
  padding: 1.5rem 4vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(10, 12, 18, 0.45);
  z-index: 50;
  border-bottom: 1px solid var(--surface-border);
}

.nav__left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Right cluster: logo + hamburger menu button */
.nav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

/* ============================= */
/* Hamburger / category menu      */
/* ============================= */
.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav__menu-btn:hover { border-color: var(--accent); color: var(--accent); }
/* Hamburger stays visible at every width (next to the logo), in addition to the
   inline category links on desktop. */

/* Request form inline status */
.request-status { margin-top: 0.9rem; font-size: 0.95rem; font-weight: 600; }
.request-status--ok { color: #2c7a44; }
.request-status--err { color: #c0392b; }

.menu-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 90; }

.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(300px, 84vw);
  background: var(--bg);
  border-left: 1px solid var(--surface-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.4rem 1.4rem 2rem;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  direction: rtl;
}
.menu-close { align-self: flex-end; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.95rem 0.3rem;
  border-bottom: 1px solid var(--surface-border);
  transition: color 0.15s ease;
}
.menu-links a:hover { color: var(--accent); }
.menu-drawer .toggle { align-self: flex-start; margin-top: 0.5rem; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

/* Run / Home toggle */
.toggle {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease;
}

.toggle:hover {
  border-color: var(--accent-2);
}

.toggle__option {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  color: var(--text-dim);
  transition: background 0.2s ease, color 0.2s ease;
}

.toggle__option--active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0a0c12;
}

.nav__logo {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0c12;
  font-size: 1.1rem;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.nav__links a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero__content {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  margin-bottom: 1rem;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll span {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.marquee__track span::after {
  content: '◭';
  margin-left: 3rem;
  color: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 6rem 6vw;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(110, 231, 255, 0.03), transparent);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.section__sub {
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Card base — clean, soft shadow, generous rounding */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  box-shadow: 0 6px 26px rgba(20, 35, 50, 0.06);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-border);
  box-shadow: 0 14px 36px rgba(20, 35, 50, 0.12);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  padding: 2.2rem;
}

.step__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.step p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Gallery / Collection — clean, uniform grid (all cards equal size) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Loading skeleton (shown until products arrive from the DB) */
.gallery--loading .gallery__item {
  pointer-events: none;
}
.gallery--loading .model-card__viz,
.gallery--loading .model-card__info h3,
.gallery--loading .model-card__info .price-tag,
.gallery--loading .model-card__info p,
.gallery--loading .model-card__info .btn {
  background: var(--surface-border);
  border-radius: 8px;
  color: transparent !important;
  animation: sl-pulse 1.4s ease-in-out infinite;
}
@keyframes sl-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Gallery fade-in once products render */
@keyframes sl-fadeup {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gallery:not(.gallery--loading) .gallery__item {
  animation: sl-fadeup 0.45s ease both;
}
.gallery:not(.gallery--loading) .gallery__item:nth-child(2) { animation-delay: 0.07s; }
.gallery:not(.gallery--loading) .gallery__item:nth-child(3) { animation-delay: 0.14s; }
.gallery:not(.gallery--loading) .gallery__item:nth-child(4) { animation-delay: 0.21s; }
.gallery:not(.gallery--loading) .gallery__item:nth-child(5) { animation-delay: 0.28s; }
.gallery:not(.gallery--loading) .gallery__item:nth-child(6) { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .gallery:not(.gallery--loading) .gallery__item { animation: none; }
}

.model-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--surface);
  border: none;
  box-shadow: 0 8px 30px rgba(20, 35, 50, 0.09);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: var(--surface-border);
  box-shadow: 0 14px 36px rgba(20, 35, 50, 0.12);
}

.model-card__viz {
  flex: 1;
  min-height: 215px;
  margin: 0.85rem 0.85rem 0;
  border-radius: 14px;
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(110, 231, 255, 0.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(183, 139, 255, 0.18), transparent 60%),
    #11151f;
  background-size: 28px 28px, 28px 28px, cover;
  overflow: hidden;
}

.model-card__viz::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.model-card__viz::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border: 2px solid var(--accent);
  border-radius: 50% 40% 55% 45% / 45% 55% 40% 60%;
  opacity: 0.55;
  filter: blur(0.5px);
  animation: floatShape 8s ease-in-out infinite;
}

.model-card__viz--mountain::after { border-color: var(--accent); border-radius: 30% 70% 50% 50% / 60% 40% 60% 40%; }
.model-card__viz--loop::after { border-color: var(--accent-2); border-radius: 50%; }
.model-card__viz--medal::after { border-color: var(--accent-3); border-radius: 16px; transform: rotate(15deg); }
.model-card__viz--coast::after { border-color: var(--accent); border-radius: 60% 40% 30% 70% / 50% 50% 70% 30%; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

.model-card__info {
  padding: 0.9rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  text-align: start;
}

/* top row: price (reading start) + quantity stepper (reading end) */
.model-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

/* legacy row layout kept for the static fallback cards */
.model-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.model-card__info h3 {
  font-size: 1.15rem;
}

.model-card__info p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
  flex: 1;
}

.price-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text);
  white-space: nowrap;
}

.orders-badge { align-self: flex-start; }

/* Quantity stepper */
.qty-stepper { display: inline-flex; align-items: center; gap: 0.4rem; }
.qty-step {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  border-radius: 9px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.qty-step:hover { border-color: var(--accent); background: var(--bg-alt); }
.qty-step__val {
  min-width: 1.5rem;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

.orders-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.04em;
  margin-top: -0.25rem;
}

/* Product images fill the card cleanly (override the contain/letterbox default) */
.model-card .media-box .media-frame img,
.model-card .media-box .media-frame video {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: cover;
}
.model-card__viz.media-box::before,
.model-card__viz.media-box::after { content: none; }

/* Add-to-cart: full-width solid button, consistent with the Home site */
.model-card .add-to-cart {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
  border-radius: 12px;
  background: var(--cta);
  color: #fff;
  box-shadow: none;
}
.model-card .add-to-cart:hover { background: var(--cta-dark); transform: translateY(-1px); box-shadow: none; }

/* media nav arrows: correct direction in RTL (prev on the right, next on the left) */
html[dir="rtl"] .media-nav--prev { left: auto; right: 0.6rem; }
html[dir="rtl"] .media-nav--next { right: auto; left: 0.6rem; }

/* Events */
.events {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.events h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.events__text {
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.events__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.events__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.events__list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}

.booth-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(14px);
  font-family: 'Space Grotesk', sans-serif;
}

.booth-card__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--surface-border);
  font-size: 0.95rem;
}

.booth-card__row:last-of-type {
  border-bottom: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--green {
  background: #5af0a0;
  box-shadow: 0 0 8px #5af0a0;
}

.dot--amber {
  background: #ffcf6e;
  box-shadow: 0 0 8px #ffcf6e;
}

.booth-card__progress {
  margin-top: 1.25rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.booth-card__bar {
  height: 100%;
  width: 76%;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  animation: barPulse 3s ease-in-out infinite;
}

@keyframes barPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.booth-card__footer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.price {
  padding: 2.5rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price--featured {
  border-color: rgba(110, 231, 255, 0.4);
  background: linear-gradient(160deg, rgba(110, 231, 255, 0.08), rgba(183, 139, 255, 0.06));
  transform: scale(1.02);
}

.price__badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0a0c12;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.price h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price__amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price__desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.price ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex: 1;
}

.price ul li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
}

.price ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Order */
.order {
  text-align: center;
}

.order__inner {
  max-width: 640px;
  margin: 0 auto;
}

.order h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.order__text {
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.order__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.order__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.order__form input,
.order__form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease;
}

.order__form input::placeholder,
.order__form textarea::placeholder {
  color: var(--text-dim);
}

.order__form input:focus,
.order__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.order__form textarea {
  resize: vertical;
}

/* Footer */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  color: var(--text-dim);
  border-top: 1px solid var(--surface-border);
}

.footer__brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer__copy {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--big {
    grid-column: span 2;
    grid-row: span 1;
  }

  .events {
    grid-template-columns: 1fr;
  }

  .order__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--big {
    grid-column: span 1;
  }

  .section {
    padding: 4rem 6vw;
  }
}

/* ============================= */
/* Bright (light) theme          */
/* ============================= */
html[data-theme="light"] {
  --bg: #f5f8fb;
  --bg-alt: #eaf0f6;
  --surface: #ffffff;
  --surface-border: #dde5ee;
  --text: #18222e;
  --text-dim: #5a6878;
  --accent: #0e7da0;
  --accent-2: #6d4fc4;
  --accent-3: #d9663d;
}

html[data-theme="light"] #bg-canvas {
  /* keep the moving objects visible on the light theme */
  opacity: 0.9;
}

html[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .btn--primary,
html[data-theme="light"] .nav__logo,
html[data-theme="light"] .toggle__option--active,
html[data-theme="light"] .price__badge {
  color: #fff;
}

html[data-theme="light"] .card,
html[data-theme="light"] .model-card,
html[data-theme="light"] .booth-card {
  box-shadow: 0 4px 18px rgba(30, 50, 80, 0.06);
}

html[data-theme="light"] .card:hover,
html[data-theme="light"] .model-card:hover {
  box-shadow: 0 14px 36px rgba(30, 50, 80, 0.12);
}

html[data-theme="light"] .model-card__viz {
  background:
    radial-gradient(circle at 30% 30%, rgba(14, 125, 160, 0.10), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(109, 79, 196, 0.10), transparent 60%),
    #eef3f8;
}

html[data-theme="light"] .model-card__viz::before {
  background-image:
    linear-gradient(rgba(30, 50, 80, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 50, 80, 0.06) 1px, transparent 1px);
}

html[data-theme="light"] .marquee,
html[data-theme="light"] .section--alt {
  background: var(--bg-alt);
}

html[data-theme="light"] .price--featured {
  background: linear-gradient(160deg, rgba(14, 125, 160, 0.06), rgba(109, 79, 196, 0.05));
}

/* ============================= */
/* Nav actions, cart, toast      */
/* ============================= */
[hidden] {
  display: none !important;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon-btn {
  position: relative;
  width: 2.7rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(420px, 100vw);
  background: var(--bg);
  border-left: 1px solid var(--surface-border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cart-drawer__head h3 {
  font-size: 1.4rem;
}

.cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-empty {
  color: var(--text-dim);
  text-align: center;
  padding: 3rem 1rem;
  line-height: 1.6;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.cart-item__price {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease;
}

.qty-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-item__count {
  min-width: 1.4rem;
  text-align: center;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.cart-item__remove {
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
}

.cart-item__remove:hover {
  color: var(--accent-3);
}

.cart-drawer__foot {
  margin-top: 1.25rem;
  border-top: 1px solid var(--surface-border);
  padding-top: 1.25rem;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.cart-total strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
}

.cart-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-contact input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
}

.cart-contact input:focus {
  outline: none;
  border-color: var(--accent);
}

.cart-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  text-align: center;
}

.cart-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 600;
  line-height: 1.5;
}

.cart-status--ok { color: #3f9e58; }
.cart-status--err { color: #c0503c; }

.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  z-index: 120;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.25s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================= */
/* Hebrew / RTL                  */
/* ============================= */
.icon-btn--lang {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Heebo', 'Space Grotesk', sans-serif;
}

html[lang="he"] body,
html[lang="he"] button,
html[lang="he"] input,
html[lang="he"] textarea {
  font-family: 'Heebo', 'Sora', sans-serif;
}

html[lang="he"] h1,
html[lang="he"] h2,
html[lang="he"] h3,
html[lang="he"] .nav__brand,
html[lang="he"] .step__num,
html[lang="he"] .price__amount {
  font-family: 'Heebo', 'Space Grotesk', sans-serif;
}

html[lang="he"] .eyebrow {
  letter-spacing: 0.08em;
}

html[lang="he"] .marquee__track {
  letter-spacing: 0.05em;
}

html[dir="rtl"] .marquee__track span::after {
  margin-left: 0;
  margin-right: 3rem;
}

html[dir="rtl"] .cart-drawer {
  right: auto;
  left: 0;
  border-left: none;
  border-right: 1px solid var(--surface-border);
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.25);
}

html[dir="rtl"] .price__badge {
  right: auto;
  left: 1.5rem;
}

html[dir="rtl"] .price ul li {
  padding-left: 0;
  padding-right: 1.2rem;
}

html[dir="rtl"] .price ul li::before {
  left: auto;
  right: 0;
}

/* ============================= */
/* Store: banner, sales, coupons */
/* ============================= */
.promo-banner {
  position: relative;
  z-index: 60;
  text-align: center;
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: 'Space Grotesk', 'Heebo', sans-serif;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #fff;
  letter-spacing: 0.03em;
}

.price-old {
  text-decoration: line-through;
  opacity: 0.55;
  font-size: 0.85em;
  margin-inline-end: 0.3rem;
}

.sale-tag {
  position: absolute;
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  z-index: 2;
  background: #e35d4a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-family: 'Space Grotesk', 'Heebo', sans-serif;
}

.model-card, .price { position: relative; }

.model-card__photo {
  background-size: cover;
  background-position: center;
}

.price__photo {
  height: 130px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
}

.coupon-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.coupon-bar input {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.coupon-bar input:focus { outline: none; border-color: var(--accent); }

.btn-coupon { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.cart-discount {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: #3f9e58;
  font-weight: 600;
}

.footer__admin {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.45;
  text-decoration: underline;
}

.footer__admin:hover { opacity: 1; }

/* ============================= */
/* Product media gallery         */
/* ============================= */
.media-box {
  position: relative;
  overflow: hidden;
}

.media-box .media-frame {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.media-box .media-frame img,
.media-box .media-frame video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.media-play {
  position: absolute;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  pointer-events: none;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.media-nav:hover { background: rgba(0, 0, 0, 0.75); }
.media-nav--prev { left: 0.6rem; }
.media-nav--next { right: 0.6rem; }

.media-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 3;
}

.media-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.media-dots span.on { background: #fff; }

.media-zoom {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-zoom:hover { background: rgba(0, 0, 0, 0.75); }

.price__media {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: rgba(0, 0, 0, 0.12);
}

/* Lightbox */
.sl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sl-lightbox .lb-content {
  max-width: min(1100px, 88vw);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sl-lightbox .lb-content img,
.sl-lightbox .lb-content video {
  max-width: min(1100px, 88vw);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 2.6rem; height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.lb-close:hover { background: rgba(255, 255, 255, 0.3); }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem; height: 3rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.lb-arrow--prev { left: 1.2rem; }
.lb-arrow--next { right: 1.2rem; }

.lb-counter {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-family: 'Space Grotesk', 'Heebo', sans-serif;
  letter-spacing: 0.1em;
}

/* ============================= */
/* Product customization modal   */
/* ============================= */
.cart-item__opts {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.cart-item__opts .opt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cart-item__opts .sw,
.swatches .sw-btn i {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 1px solid rgba(128,128,128,0.4);
  flex-shrink: 0;
}

.sl-cust {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(5, 7, 12, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.sl-cust__card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.sl-cust__close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
}
.sl-cust__title { font-size: 1.3rem; margin-bottom: 0.25rem; }
.sl-cust__sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.25rem; }
.sl-cust__sec { margin-bottom: 1.25rem; }
.sl-cust__lbl {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  margin-top: 0.6rem;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem 0.4rem 0.45rem;
  border-radius: 999px;
  border: 1.5px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.sw-btn i { width: 1rem; height: 1rem; }
.sw-btn.on { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(120,160,255,0.18); }
.sl-cust__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}
.sl-cust__toggle input { width: auto; }
.sl-cust__textfields {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}
.sl-cust__textfields input[type="text"],
.sl-cust__textfields select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.sl-cust__textfields input:focus,
.sl-cust__textfields select:focus { outline: none; border-color: var(--accent); }
.sl-cust__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.sl-cust__actions .btn { flex: 1; }

/* ============================= */
/* Page crossfade (Run/Home)     */
/* ============================= */
/* Body stays fully visible by default (never can get stuck blank).
   When switching Run/Home, the leaving page fades out, then the new page's
   section-reveal animations bring content in — a smooth, safe transition. */
html.page-leaving body { opacity: 0; transition: opacity 0.26s ease; }
@media (prefers-reduced-motion: reduce) { html.page-leaving body { transition: none; } }

/* ============================= */
/* Mobile polish                 */
/* ============================= */
@media (max-width: 600px) {
  .nav {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }
  .nav__left { gap: 0.6rem; }
  /* keep just the logo on small screens to save space */
  .nav__brand { font-size: 0; gap: 0; }
  .nav__brand .nav__logo { font-size: 1.1rem; }
  .toggle { font-size: 0.8rem; padding: 0.2rem; }
  .toggle__option { padding: 0.35rem 0.75rem; }
  .nav__actions { gap: 0.4rem; }
  .icon-btn { width: 2.5rem; height: 2.5rem; font-size: 1.05rem; }

  .hero { padding-top: 5rem; min-height: 88vh; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; min-width: 0; }

  .section { padding: 3.5rem 5vw; }
  .section__head { margin-bottom: 2rem; }

  /* comfortable tap targets + readable buttons */
  .btn { padding: 0.9rem 1.5rem; }
  .add-to-cart { font-size: 1rem; }

  /* cart + modal go full-bleed and easy to use with thumbs */
  .cart-drawer { width: 100vw; padding: 1.25rem; }
  .sl-cust { padding: 0; align-items: flex-end; }
  .sl-cust__card {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.25rem 2rem;
  }
  .sl-cust__actions { position: sticky; bottom: 0; background: var(--bg); padding-top: 0.75rem; }
  .swatches { gap: 0.45rem; }
  .sw-btn { font-size: 0.8rem; padding: 0.45rem 0.7rem; }

  /* promo banner wraps cleanly */
  .promo-banner { font-size: 0.8rem; padding: 0.6rem 0.8rem; }
}

/* Larger phones / small tablets */
@media (max-width: 900px) and (min-width: 601px) {
  .cart-drawer { width: min(420px, 92vw); }
}

/* Custom logo image in nav/footer (branding) */
.nav__logo .brand-img { width: 100%; height: 100%; object-fit: contain; }
.nav__logo:has(.brand-img) { background: transparent; padding: 0; }
.footer__brand .brand-img { width: 1.4rem; height: 1.4rem; object-fit: contain; vertical-align: middle; }

/* ============================= */
/* Popups, floating toggle, legal */
/* ============================= */
.sl-popup {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(5,7,12,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem;
}
.sl-popup[hidden] { display: none; }
.sl-popup__card {
  width: min(400px, 100%);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--surface-border); border-radius: 20px;
  padding: 2rem 1.75rem; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: popIn 0.25s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.sl-popup__icon { font-size: 2.6rem; margin-bottom: 0.5rem; }
.sl-popup__card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.sl-popup__card p { color: var(--text-dim); line-height: 1.6; margin-bottom: 1.5rem; }
.sl-popup__actions { display: flex; gap: 0.75rem; }
.sl-popup__actions .btn { flex: 1; }

/* Floating Home/Racing toggle */
.toggle--float {
  position: fixed;
  bottom: 1.1rem; left: 50%; transform: translateX(-50%);
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Marketing consent + privacy link in the cart form */
.consent-row {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.82rem; color: var(--text-dim); cursor: pointer; line-height: 1.4;
}
.consent-row input { width: auto; margin-top: 0.15rem; flex-shrink: 0; }
.consent-terms { font-size: 0.78rem; color: var(--text-dim); margin-top: -0.25rem; }
.consent-terms a { color: var(--accent); text-decoration: underline; }

/* Footer legal links */
.footer__links { margin-top: 0.75rem; font-size: 0.82rem; }
.footer__links a { color: var(--text-dim); text-decoration: underline; }
.footer__links a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .toggle--float { bottom: 0.8rem; }
}

/* Cart item thumbnail */
.cart-item { gap: 0.75rem; }
.cart-item__img {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 10px;
  background-size: cover; background-position: center;
  background-color: var(--surface);
  border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center;
}
.cart-item__img--ph { color: var(--accent); font-size: 1.2rem; }
