:root {
  --bg: #040906;
  --bg-soft: #09170f;
  --bg-panel: rgba(9, 23, 15, 0.74);
  --border: rgba(214, 241, 223, 0.12);
  --border-strong: rgba(214, 241, 223, 0.2);
  --text: #f4f8f5;
  --muted: rgba(244, 248, 245, 0.64);
  --muted-strong: rgba(244, 248, 245, 0.82);
  --accent: #58be73;
  --accent-bright: #86d89c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --heading: 'Sora', sans-serif;
  --body: 'Manrope', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--body);
  background: #04110A;
  color: var(--text);
}

a {
  color: inherit;
}

/* Atmospheric Background — fixed canvas layer */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.atmosphere__canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

img {
  display: block;
  max-width: 100%;
}

.product-shell {
  position: relative;
  z-index: 1;
  overflow: clip;
}

.product-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  opacity: 0.35;
}

.product-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  backdrop-filter: blur(18px);
  background: rgba(4, 9, 6, 0.52);
  border-bottom: 1px solid rgba(214, 241, 223, 0.06);
}

.product-nav__brand {
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.product-nav__link {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

/* Nav CTA — now handled by .btn-glass--nav in buttons.css */

/* Section separators */
.product-statement,
.product-features,
.product-specs,
.product-final-cta {
  border-top: 1px solid rgba(74, 158, 98, 0.08);
}

.product-hero,
.product-statement,
.product-features,
.product-specs,
.product-final-cta {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
}

.product-hero {
  position: relative;
  padding: 4rem 0 3rem;
}

.product-hero__backdrop {
  position: absolute;
  inset: 1rem 0 auto;
  height: 34rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 18% 26%, rgba(88, 190, 115, 0.2), transparent 22%),
    radial-gradient(circle at 82% 32%, rgba(134, 216, 156, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(7, 17, 11, 0.92) 0%, rgba(10, 24, 15, 0.68) 100%);
  filter: blur(2px);
  z-index: 0;
}

.product-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(min(340px, 100%), 0.85fr);
  gap: 2rem;
  align-items: start;
}

/* ============================================
   STACKED EDITORIAL MEDIA — left column
   ============================================ */
.product-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-media__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.product-media__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-media__item--3d {
  min-height: 32rem;
  background: rgba(4, 9, 6, 0.95);
}

.product-media__model {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  --poster-color: transparent;
  background: transparent;
  border-radius: inherit;
}

.product-media__model::part(default-progress-bar) {
  display: none;
}

.product-media__ar-prompt {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(214, 241, 223, 0.15);
  border-radius: 999px;
  background: rgba(9, 23, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent-bright);
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.product-media__ar-prompt:hover {
  background: rgba(9, 23, 15, 0.9);
  border-color: rgba(214, 241, 223, 0.25);
}

.product-media__caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.25rem;
  z-index: 2;
}

.product-media__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* Summary + shared panels */
.product-summary,
.feature-card,
.product-final-cta__panel {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.product-media__eyebrow,
.product-statement__label,
.product-specs__label,
.product-final-cta__label,
.product-summary__kicker,
.feature-card__index {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* Old gallery CSS removed — replaced by .product-media stacked layout */

/* Old 3D toggle and thumbnail CSS removed */

/* Old thumbnail gallery removed — stacked media layout replaces it */

.product-summary {
  position: sticky;
  top: 6.75rem;
  padding: 2rem;
  border-radius: 1.6rem;
}

.product-summary__title,
.product-statement__title,
.product-strip__title,
.product-specs__title,
.product-final-cta__title {
  margin: 0;
  font-family: var(--heading);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.product-summary__title {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.product-summary__subtitle {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--muted-strong);
}

.product-summary__copy,
.feature-card__body,
.product-statement__body,
.product-specs__item p,
.product-final-cta__body {
  color: var(--muted);
  line-height: 1.75;
}

.product-summary__copy {
  margin: 1.4rem 0 0;
}

.product-summary__facts {
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.product-summary__facts div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(214, 241, 223, 0.08);
}

.product-summary__facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(244, 248, 245, 0.45);
}

.product-summary__facts dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.product-summary__actions,
.product-final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

/* Primary + secondary buttons — now handled by .btn-glass in buttons.css */

/* AR action — Apple Quick Look / WebXR link */
.product-summary__ar {
  margin-top: 1.25rem;
}

.product-summary__ar[hidden] {
  display: none;
}

.product-summary__ar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.product-summary__ar-link:hover {
  opacity: 1;
}

.product-summary__notes {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  color: var(--muted);
}

.product-summary__notes li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-summary__notes li::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.35rem rgba(88, 190, 115, 0.1);
}

.product-statement {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: end;
  padding: 4rem 0 2rem;
}

.product-statement__title {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  max-width: 40rem;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2rem 0 2rem;
}

.feature-card {
  padding: 1.6rem;
  border-radius: 1.4rem;
}

.feature-card__index {
  margin: 0 0 1rem;
}

.feature-card__title,
.product-specs__item h3 {
  margin: 0;
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.feature-card__body {
  margin: 1rem 0 0;
}

/* Strip section removed — images now in stacked editorial media column */

/* ============================================
   TESTIMONIALS — infinite marquee slider
   ============================================ */
.product-testimonials {
  padding: 3rem 0 3rem;
  border-top: 1px solid rgba(74, 158, 98, 0.08);
  overflow: hidden;
}

.product-testimonials__header {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto 2rem;
  display: grid;
  gap: 0.75rem;
}

.product-testimonials__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.product-testimonials__title {
  margin: 0;
  font-family: var(--heading);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 36rem;
}

.product-testimonials__rail {
  position: relative;
  width: 100%;
  /* Fade edges */
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.product-testimonials__track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
  /* CSS animation as fallback — JS overrides with transform */
  animation: testimonial-scroll var(--scroll-duration, 60s) linear infinite;
}

@keyframes testimonial-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 0.625rem)); }
}

/* Pause on hover for readability */
.product-testimonials__rail:hover .product-testimonials__track {
  animation-play-state: paused;
}

/* --- Card --- */
.testimonial-card {
  flex-shrink: 0;
  width: 320px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  backdrop-filter: blur(14px);
  border-radius: 1.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.testimonial-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.testimonial-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__image::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(9, 23, 15, 0.6));
  pointer-events: none;
}

.testimonial-card__quote {
  padding: 1.25rem 1.25rem 0.75rem;
  margin: 0;
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted-strong);
  font-style: normal;
  flex: 1;
}

.testimonial-card__cite {
  display: block;
  padding: 0 1.25rem 1.25rem;
  font-family: var(--body);
  font-size: 0.6875rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

.product-specs {
  padding: 2rem 0 5rem;
}

.product-specs__header {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}

.product-specs__title {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
}

.product-specs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.product-specs__item {
  padding: 1.6rem;
  border: 1px solid rgba(214, 241, 223, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.025);
}

.product-specs__item p {
  margin: 0.8rem 0 0;
}

.product-final-cta {
  padding: 0 0 5rem;
}

.product-final-cta__panel {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: 1.8rem;
  text-align: center;
}

.product-final-cta__title {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
}

.product-final-cta__body {
  max-width: 42rem;
  margin: 0 auto;
}

@media (max-width: 1100px) {
  .product-statement,
  .product-features,
  .product-specs__grid {
    grid-template-columns: 1fr;
  }

  /* Hero grid stays two-column with sticky summary until 720px */
  .product-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(min(300px, 100%), 0.8fr);
    gap: 1.5rem;
  }
}

@media (max-width: 720px) {
  .product-hero,
  .product-statement,
  .product-features,
  .product-specs,
  .product-final-cta {
    width: min(100% - 1.5rem, 1280px);
  }

  .product-nav {
    width: 100%;
  }

  .product-nav {
    padding: 1rem 0.75rem;
  }

  .product-nav__actions {
    gap: 0.6rem;
  }

  .product-nav__link {
    font-size: 0.72rem;
  }

  .star-btn--nav {
    height: 2rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.68rem;
  }

  .product-hero__grid {
    grid-template-columns: 1fr;
  }

  .product-summary {
    position: static;
  }

  .product-statement {
    grid-template-columns: 1fr;
    padding: 3rem 0 2rem;
  }

  .product-specs__grid {
    grid-template-columns: 1fr;
  }

  .product-hero {
    padding-top: 2rem;
  }

  .product-hero__backdrop {
    inset-inline: 0;
    height: 20rem;
  }

  .product-summary,
  .product-final-cta__panel,
  .feature-card {
    border-radius: 1.2rem;
  }

  .product-media__item {
    border-radius: 1.1rem;
  }

  .product-media__item--3d {
    min-height: 24rem;
  }

  .product-media__model {
    min-height: 24rem;
  }

  .product-testimonials__header {
    width: min(100% - 1.5rem, 1280px);
  }

  .testimonial-card {
    width: 280px;
  }

  .testimonial-card__image {
    height: 170px;
  }

  .product-summary__actions,
  .product-final-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .star-btn,
  .btn-glass--secondary {
    text-align: center;
    width: 100%;
  }
}

/* Phone-specific product refinements */
@media (max-width: 480px) {
  .product-nav {
    padding: 0.75rem;
  }

  .product-nav__link:not(.star-btn) {
    font-size: 0.65rem;
  }

  .product-hero {
    padding-top: 1.5rem;
  }

  .product-media__item--3d {
    min-height: 20rem;
  }

  .product-media__model {
    min-height: 20rem;
  }

  .product-media__caption {
    left: 1rem;
    bottom: 0.75rem;
  }

  .product-summary {
    padding: 1.25rem;
  }

  .product-summary__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .product-summary__subtitle {
    font-size: 1rem;
  }

  .product-summary__copy {
    font-size: 0.875rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .product-final-cta__panel {
    padding: 1.5rem;
  }

  .product-final-cta__title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .product-final-cta__body {
    font-size: 0.875rem;
  }

  .product-specs {
    padding: 2rem 0 3rem;
  }

  .product-specs__item {
    padding: 1.25rem;
  }

  .product-statement__title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .product-statement__body {
    font-size: 0.875rem;
  }

  .product-statement {
    padding: 2rem 0 1.5rem;
  }

  .product-features {
    padding: 1.5rem 0;
    gap: 0.75rem;
  }

  .product-testimonials__header {
    width: calc(100% - 1.5rem);
  }

  .testimonial-card {
    width: 260px;
  }

  .testimonial-card__image {
    height: 150px;
  }

  .testimonial-card__quote {
    padding: 1rem 1rem 0.5rem;
    font-size: 0.8125rem;
  }

  .testimonial-card__cite {
    padding: 0 1rem 1rem;
    font-size: 0.625rem;
  }
}

/* ============================================
   ORDER MODAL
   ============================================ */
.price-note {
  font-size: 0.75rem;
  opacity: 0.5;
  font-style: italic;
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.order-modal[hidden] { display: none; }

.order-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.order-modal__panel {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  color: var(--text);
}

.order-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.order-modal__title {
  font-family: 'Sora', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.order-modal__section {
  margin-bottom: 1.25rem;
}

.order-modal__label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Color options */
.order-modal__colors {
  display: flex;
  gap: 0.75rem;
}

.color-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.color-option input { display: none; }

.color-option--active,
.color-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(88, 190, 115, 0.08);
}

.color-option__swatch {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}

.color-option__name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
}

.color-option__price {
  font-size: 0.6875rem;
  color: var(--muted);
}

/* Delivery options */
.order-modal__delivery {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.delivery-option {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.delivery-option input { display: none; }

.delivery-option--active,
.delivery-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(88, 190, 115, 0.08);
}

.delivery-option__text {
  font-size: 0.875rem;
  color: var(--text);
}

.delivery-option__text small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Postcode input */
.order-modal__postcode {
  margin-top: 0.75rem;
}

.order-modal__postcode label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.order-modal__postcode input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.order-modal__postcode input:focus {
  border-color: var(--accent);
}

.order-modal__distance {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* Total */
.order-modal__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted-strong);
}

.order-modal__total strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  color: var(--text);
}

/* Form */
.order-modal__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.order-modal__form input:first-child {
  grid-column: 1 / -1; /* Naam over volle breedte */
}

.order-modal__form input {
  padding: 0.5rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.order-modal__form input:focus {
  border-color: var(--accent);
}

.order-modal__form input::placeholder {
  color: var(--muted);
}

/* Agree checkbox */
.order-modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.4;
}

.order-modal__agree input {
  margin-top: 2px;
  accent-color: var(--accent);
}

/* Submit */
.order-modal__submit {
  width: 100%;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s;
}

.order-modal__submit.is-active {
  opacity: 1;
  pointer-events: auto;
}
