/* ============================================================
   Portrait Generator — Dog Bakery
   Mobile-first, warm, playful, premium
   ============================================================ */

/* === Self-hosted Oleo Script (replaces Google Fonts CDN) === */
@font-face {
  font-family: 'Oleo Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/oleo-script-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oleo Script';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/oleo-script-400-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oleo Script';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/oleo-script-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oleo Script';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/oleo-script-700-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === Variables === */
:root {
  /* Dog Bakery Brand: Purple/Pink */
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #ede9fe;
  --primary-glow: rgba(124, 58, 237, 0.2);
  --primary-soft: #a78bfa;
  --pink: #ec4899;
  --pink-light: #fce7f3;

  /* Neutrals */
  --warm: #faf8ff;
  --warm-dark: #f0ecf9;
  --bark: #1e1b2e;
  --bark-light: #3d3655;
  --soft-gray: #6b6580;
  --border: #e2dced;
  --border-light: #f0ecf9;
  --cream: #fdf8ff;
  --white: #ffffff;

  /* Accents */
  --green: #10b981;
  --green-bg: #ecfdf5;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --amber: #f59e0b;

  /* Shadows — purple tinted */
  --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.06);
  --shadow-md: 0 4px 16px rgba(124, 58, 237, 0.1);
  --shadow-lg: 0 8px 30px rgba(124, 58, 237, 0.14);
  --shadow-primary: 0 4px 20px rgba(124, 58, 237, 0.25);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  /* Motion */
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, 'Segoe UI', system-ui, 'Helvetica Neue', sans-serif;
  background: var(--warm);
  color: var(--bark);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Keep the footer (and its "Neu starten" link) visible above the
     fixed sticky-cta bar. ≈ bar height + safe-area bottom. */
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--wide {
  max-width: 1080px;
}

/* === Top Nav === */
.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* On mobile the topnav has no menu / nothing actionable beyond the logo —
   it just eats viewport space while scrolling. Let it scroll away with
   the page; the step indicator below takes over the sticky role. */
@media (max-width: 799px) {
  .topnav { position: static; }
  /* Once the user has uploaded a photo (= committed to the wizard),
     the brand header is just visual noise — drop it entirely so the
     wizard owns the screen. */
  body.is-focused .topnav { display: none; }
  .step-indicator { top: 0; scroll-margin-top: 0; }
  /* When stuck: break out of .container's 20px side padding so the bar
     snaps flush to the screen edges — no floating-card look on small phones. */
  .step-indicator.is-stuck {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0 0 12px 12px;
    border-top: none;
    border-left: none;
    border-right: none;
  }
}

/* Cart CTA inside the style panel: keep "Für 12,95 € in den Warenkorb"
   on a single line. The button itself widens with the panel; if it
   ever overflows on narrow phones, font-size shrinks instead of
   wrapping into two/three columns. */
#panel-add-btn { white-space: nowrap; }
@media (max-width: 374px) {
  #panel-add-btn { font-size: 14px; padding-left: 16px; padding-right: 16px; }
}

.topnav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--bark);
  text-decoration: none;
}

.topnav__paw { color: var(--primary); }

.topnav__logoimg {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.topnav__brand {
  font-family: 'Oleo Script', cursive;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--primary);
}

/* === Typography === */
.section-title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%);
  color: var(--white);
  box-shadow: var(--shadow-primary);
  letter-spacing: 0.01em;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #7e22ce 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  background: var(--border);
  color: var(--soft-gray);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.btn--large {
  height: 60px;
  padding: 0 36px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

.btn--ghost {
  background: transparent;
  color: var(--primary-hover);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  background: var(--cream);
}

.btn--small {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.btn__arrow {
  transition: transform var(--transition);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.btn__spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--warm) 100%);
  padding: 48px 20px 56px;
  text-align: center;
}

.hero__inner {
  max-width: 560px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--cream);
  border: 1px solid var(--primary-light);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero__highlight {
  color: var(--primary);
  position: relative;
}

.hero__highlight::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 12px;
  background: linear-gradient(90deg, var(--primary-light), var(--pink-light));
  opacity: 0.7;
  border-radius: 4px;
  z-index: -1;
}

.hero__tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--soft-gray);
  opacity: 0.8;
  margin: -8px 0 20px;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--soft-gray);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Preview Cards */
.hero__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero__preview-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  width: 120px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.hero__preview-card--art {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-primary);
}

.hero__preview-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--soft-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.hero__preview-img {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.hero__preview-arrow {
  flex-shrink: 0;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

.hero__cta {
  width: 100%;
  max-width: 340px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}
.hero__cta-line { display: block; }
.hero__cta-price {
  display: block;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.92;
}

/* Hero Trust */
.hero__trust {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--bark, #1e1b2e);
  text-align: left;
}

.hero__trust-check {
  display: inline-flex;
  width: 22px;
  height: 22px;
  background: var(--primary-light, #f3edff);
  color: var(--primary, #7c3aed);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 720px) {
  .hero__trust {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: none;
    gap: 8px 20px;
  }
  .hero__trust-item { white-space: nowrap; }
}

/* ============================================================
   PRODUCT SHOWCASE
   ============================================================ */
.product-showcase {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.product-showcase__banner {
  margin: 0 0 40px;
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  background: #faf6ef;
}
.product-showcase__banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 686;
  object-fit: cover;
}

@media (max-width: 640px) {
  .product-showcase__banner { margin-bottom: 28px; }
}

.section-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--soft-gray);
  margin-top: -20px;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.showcase-grid {
  column-count: 1;
  column-gap: 20px;
}
.showcase-grid > .showcase-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
}

.showcase-card {
  background: var(--warm);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  position: relative;
  transition: all var(--transition);
}

.showcase-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.showcase-card--highlight {
  border-color: var(--pink);
  background: var(--pink-light);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.15);
}

.showcase-card--bundle {
  border-color: var(--green);
  background: var(--green-bg);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.showcase-card__ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--primary));
  padding: 5px 12px;
  border-radius: 100px;
}

.showcase-card__ribbon--bundle {
  background: linear-gradient(135deg, var(--green), #059669);
}

.showcase-card__img {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.showcase-card__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.showcase-card__placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}

.showcase-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.showcase-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.showcase-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}
.showcase-card__pill--perso {
  background: #f59e0b;     /* amber so it stands apart from the lila method pill */
}

.showcase-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--bark, #1e1b2e);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.showcase-card__name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.showcase-card__desc {
  font-size: 17px;
  color: var(--bark, #1e1b2e);
  line-height: 1.5;
  margin-bottom: 14px;
}

.showcase-card__more {
  display: inline-block;
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
}
.showcase-card__more:hover {
  color: var(--primary-dark, #5b21b6);
}

.showcase-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.showcase-card__features li {
  font-size: 14px;
  color: var(--bark-light);
  padding: 4px 0 4px 22px;
  position: relative;
}

.showcase-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

@media (min-width: 640px) {
  .showcase-grid { column-count: 2; }
}

@media (min-width: 900px) {
  .showcase-grid { column-count: 3; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.steps-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.step-overview-card {
  background: var(--warm);
  border-radius: var(--radius-lg);
  padding: 24px 16px 20px;
  text-align: center;
  position: relative;
}

.step-overview-card__num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.step-overview-card__icon {
  margin-bottom: 12px;
}

.step-overview-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-overview-card p {
  font-size: 13px;
  color: var(--soft-gray);
  line-height: 1.5;
}

/* ============================================================
   GENERATOR
   ============================================================ */
.generator {
  padding: 40px 0 120px; /* extra bottom for sticky CTA */
}

/* Step Indicator */
.step-indicator {
  position: sticky;
  top: 53px; /* below topnav (desktop) — overridden to 0 on mobile where topnav scrolls away */
  /* Match scroll-margin-top to the sticky `top` value so scrollIntoView
     parks the indicator exactly at its sticky resting position. */
  scroll-margin-top: 53px;
  background: #ffffff;
  z-index: 100;
  padding: 14px 18px 12px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(20, 16, 40, 0.06);
  /* Smooth transition when it leaves the doc flow and starts floating */
  transition: box-shadow 0.2s, border-color 0.2s;
}
.step-indicator.is-stuck {
  box-shadow: 0 10px 32px rgba(20, 16, 40, 0.12);
  border-color: rgba(124, 58, 237, 0.18);
}
@supports (animation-timeline: scroll()) {
  /* Once browsers ship this, the JS toggle becomes optional */
  .step-indicator { animation: step-indicator-stuck linear; animation-timeline: scroll(); animation-range: 0 80px; }
}
@keyframes step-indicator-stuck {
  to { box-shadow: 0 10px 32px rgba(20, 16, 40, 0.12); }
}

.step-indicator__track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.step-indicator__progress {
  height: 100%;
  width: 25%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.step-indicator__steps {
  display: flex;
  justify-content: space-between;
}

.step-indicator__step {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--transition);
}

.step-indicator__step:not(.is-active):not(.is-done) {
  opacity: 0.4;
  cursor: default;
}

.step-indicator__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  background: var(--border);
  color: var(--soft-gray);
  transition: all var(--transition);
}

.step-indicator__step.is-active .step-indicator__num {
  background: var(--primary);
  color: white;
}

.step-indicator__step.is-done .step-indicator__num {
  background: var(--green);
  color: white;
}

.step-indicator__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--soft-gray);
  transition: color var(--transition);
}

.step-indicator__step.is-active .step-indicator__label {
  color: var(--bark);
}

/* Phones: the four labels + numbers crowd each other on narrow screens.
   Keep the label only on the active step; the others stay as a numbered
   dot. Gives the current stage room to breathe without losing context. */
@media (max-width: 520px) {
  .step-indicator__steps {
    gap: 4px;
  }
  .step-indicator__step {
    gap: 4px;
    padding: 4px;
  }
  .step-indicator__label {
    font-size: 12px;
  }
  .step-indicator__step:not(.is-active) .step-indicator__label {
    display: none;
  }
  .step-indicator__num {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

/* Steps */
.step {
  display: none;
  animation: stepIn 400ms ease-out both;
}

.step.is-active {
  display: block;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step__header {
  margin-bottom: 24px;
}

.step__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.step__desc {
  font-size: 16px;
  color: var(--soft-gray);
  line-height: 1.6;
}

.step__thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.step__photo-reminder,
.step__choices {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--soft-gray);
  margin-bottom: 16px;
}

.step__chosen-style {
  font-weight: 600;
  color: var(--bark);
}

.step__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--soft-gray);
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 20px;
  line-height: 1.5;
}

.step__note svg { flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   STEP 1: UPLOAD
   ============================================================ */
.upload {
  border: 2.5px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Photo list as a responsive grid: 1 column on small phones, 2 on
   ≥420px (most modern phones in portrait + everything bigger). The
   pre-existing margin-based stacking is no longer needed. */
#photo-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 420px) {
  #photo-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  #photo-list .upload { padding: 24px 16px; }
}
.upload + .upload,
#photo-list > .upload + .upload { margin-top: 0; }
#photo-list > .upload { margin-bottom: 0; }
#photo-list > .upload:not(:last-child) { margin-bottom: 0; }

.upload__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  color: var(--soft-gray);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  transition: background var(--transition), color var(--transition);
}
.upload__close:hover {
  background: var(--red);
  color: white;
}
/* Hide the × when this is the only slot left (nothing to remove into). */
#photo-list:has(> .upload:only-child) .upload__close {
  display: none;
}

.upload:hover,
.upload.is-dragover {
  border-color: var(--primary);
  background: var(--cream);
}

.upload.has-photo {
  border-style: solid;
  border-color: var(--primary-light);
  padding: 0;
  cursor: default;
}

.upload__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload.has-photo .upload__input {
  display: none;
}

.upload__icon {
  margin-bottom: 16px;
  animation: uploadPulse 3s ease-in-out infinite;
}

@keyframes uploadPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.upload__text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.upload__hint {
  font-size: 13px;
  color: var(--soft-gray);
}

.upload__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.upload__label > span:first-child {
  font-weight: 600;
  font-size: 16px;
}

/* Photo Preview */
.upload__preview {
  position: relative;
}

.upload__preview img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: calc(var(--radius-xl) - 3px);
  animation: photoReveal 500ms ease-out both;
}

@keyframes photoReveal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.upload__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.5);
}

.upload__progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  transition: width 200ms linear;
}

.upload__actions {
  text-align: center;
  margin-top: 12px;
}

/* Photo Tips — designed container so the section reads as one block,
   not as a header floating above loose pills. */
.photo-tips {
  margin-top: 32px;
  padding: 22px 20px 20px;
  background: linear-gradient(135deg, var(--warm, #faf8ff) 0%, var(--primary-light, #f3edff) 120%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.photo-tips__head {
  text-align: center;
  margin-bottom: 14px;
}

.photo-tips__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--bark, #1e1b2e);
  margin: 0;
  letter-spacing: -0.01em;
}

.photo-tips__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--soft-gray);
}

.photo-tips__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.photo-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bark, #1e1b2e);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.photo-tip--good { border-color: rgba(16, 185, 129, 0.25); }
.photo-tip--bad  { border-color: rgba(239, 68, 68, 0.25); }

.photo-tips__guide {
  display: none;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 16px auto 0;
  border-radius: var(--radius-md, 10px);
  background: var(--white);
  border: 1px solid var(--border-light);
}
@media (min-width: 600px) {
  .photo-tips__guide { display: block; }
}

/* ============================================================
   STEP 2: STYLE PICKER
   ============================================================ */
.style-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.style-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.style-card__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-card__inner {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.style-card__inner:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.style-card__radio:checked ~ .style-card__inner {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-primary);
  transform: translateY(-2px);
}

.style-card__radio:checked ~ .style-card__inner .style-card__check {
  opacity: 1;
  transform: scale(1);
}

.style-card__img {
  aspect-ratio: 1;
  overflow: hidden;
}

.style-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-card__placeholder span {
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  padding: 6px 14px;
  background: rgba(0,0,0,0.15);
  border-radius: 100px;
}

.style-card__info {
  padding: 12px 14px 14px;
}

.style-card__name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.style-card__desc {
  font-size: 12px;
  color: var(--soft-gray);
  line-height: 1.4;
}

.style-card__check {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--bounce);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* ============================================================
   STEP 3: PRODUCT PICKER
   ============================================================ */
.product-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
  border-color: var(--primary-light);
}

.product-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-primary);
}

.product-card__badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  text-align: center;
}

.product-card__badge--popular {
  background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
  color: white;
}

.product-card__badge--gift {
  background: var(--pink-light);
  color: var(--pink);
}

.product-card__body {
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
}

.product-card__visual {
  flex-shrink: 0;
}

.product-card__img-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm);
  border-radius: var(--radius-md);
}

.product-card__info {
  flex: 1;
  min-width: 0;
}

.product-card__name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-card__detail {
  font-weight: 500;
  color: var(--soft-gray);
  font-size: 14px;
}

.product-card__desc {
  font-size: 13px;
  color: var(--soft-gray);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-card__price-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card__price {
  font-size: 20px;
  font-weight: 800;
}

.product-card__shipping-free {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-bg);
  padding: 3px 8px;
  border-radius: 100px;
}

/* Pill toggles */
.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  color: var(--bark);
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.pill:hover {
  border-color: var(--primary-light);
}

.pill.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, #9333ea 100%);
  color: white;
  border-color: var(--primary);
}

/* Upsell hint */
.upsell-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--primary-hover);
  background: var(--cream);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 16px;
  animation: fadeSlideIn 300ms ease-out;
}

.upsell-hint svg { flex-shrink: 0; }

/* ============================================================
   STEP 4: CHECKOUT
   ============================================================ */

/* Order Summary */
.order-summary {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.order-summary__product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

.order-summary__thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.order-summary__details {
  flex: 1;
  min-width: 0;
}

.order-summary__product-name {
  font-size: 15px;
  font-weight: 700;
}

.order-summary__style {
  font-size: 13px;
  color: var(--soft-gray);
}

.order-summary__price {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}

.order-summary__line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--soft-gray);
  padding: 4px 0;
}

.order-summary__total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}

.order-summary__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--bark);
}
.order-summary__item > span:first-child {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.order-summary__item > span:last-child {
  white-space: nowrap;
  font-weight: 700;
}
#checkout-items { margin-bottom: 8px; }

.order-summary__toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--bark);
  cursor: pointer;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}
.order-summary__toggle-chevron {
  color: var(--soft-gray);
  font-size: 12px;
  transition: transform var(--transition);
}
.order-summary__toggle[aria-expanded="true"] .order-summary__toggle-chevron {
  transform: rotate(180deg);
}

.order-summary__saved {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--green-bg, #ecfdf5);
  border: 1px solid var(--green, #10b981);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--green, #047857);
  text-align: center;
}
.order-summary__saved strong { font-weight: 800; }

/* Checkout Form */
.checkout-form {
  margin-bottom: 20px;
}

.form-section {
  margin-bottom: 24px;
}

.form-section__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--soft-gray);
  margin-bottom: 14px;
}

.form-row {
  margin-bottom: 14px;
}

.form-row--split {
  display: flex;
  gap: 12px;
}

.form-field {
  width: 100%;
}

.form-field--zip { flex: 0 0 120px; }
.form-field--city { flex: 1; }

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field__hint {
  font-weight: 400;
  color: var(--soft-gray);
}

.form-field input,
.form-field textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--bark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-field textarea {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.5;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-field input.is-error,
.form-field textarea.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--border);
}

/* Checkout trust */
.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 20px;
}

.checkout-trust__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--soft-gray);
  white-space: nowrap;
}

/* ============================================================
   STICKY CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 20px rgba(61, 43, 31, 0.08);
  z-index: 150;
  padding: 8px 20px;
  padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sticky-cta__price {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.sticky-cta__btn {
  flex: 1;
  width: 100%;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 56px 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.faq__list {
  max-width: 600px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border-light);
}

.faq__question {
  font-size: 17px;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__question::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

details[open] .faq__question::after {
  content: '–';
}

.faq__answer {
  font-size: 16px;
  color: var(--soft-gray);
  line-height: 1.7;
  padding-bottom: 18px;
  animation: fadeSlideIn 300ms ease-out;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 32px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.site-footer__links a {
  font-size: 13px;
  color: var(--soft-gray);
}

.site-footer__note {
  font-size: 12px;
  color: var(--soft-gray);
  margin-bottom: 8px;
}

.site-footer__copy {
  font-size: 13px;
  color: var(--soft-gray);
  font-weight: 600;
}

.site-footer__email-hint {
  max-width: 640px;
  margin: 0 auto 24px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fff4e6 0%, #ffe8f1 100%);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}
.site-footer__email-hint-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.site-footer__email-hint-body {
  flex: 1;
  min-width: 0;
}
.site-footer__email-hint-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--bark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.site-footer__email-hint-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--soft-gray);
  margin-bottom: 12px;
}
.site-footer__email-hint-text strong {
  color: var(--bark);
  font-weight: 700;
}
.site-footer__email-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}
.site-footer__email-hint-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .site-footer__email-hint {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 18px;
  }
  .site-footer__email-hint-body {
    width: 100%;
  }
}

.site-footer__reset-wrap {
  margin-top: 16px;
  display: none;
  text-align: center;
}
/* Only show the reset link when there is actually state to reset —
   either the focus mode is active (photo uploaded) or there is data
   in localStorage from a previous session. */
body.is-focused .site-footer__reset-wrap,
body.has-saved-state .site-footer__reset-wrap {
  display: block;
}
.site-footer__reset {
  font-size: 12px;
  font-weight: 500;
  color: var(--soft-gray);
  text-decoration: underline;
  cursor: pointer;
}
.site-footer__reset:hover {
  color: var(--bark);
}

/* ============================================================
   MEDIA QUERIES — Desktop
   ============================================================ */
@media (min-width: 640px) {
  .hero {
    padding: 72px 20px 80px;
  }

  .hero__title {
    font-size: 48px;
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .hero__cta {
    width: auto;
    min-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__preview-card {
    width: 140px;
  }

  .hero__preview-img {
    width: 110px;
    height: 110px;
  }

  .section-title {
    font-size: 32px;
  }

  .step__title {
    font-size: 28px;
  }

  .steps-overview {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .style-picker {
    gap: 16px;
  }

  .sticky-cta__btn {
    flex: none;
    width: auto;
    min-width: 260px;
  }

  .sticky-cta__inner {
    justify-content: flex-end;
  }
}

/* Small phones */
@media (max-width: 374px) {
  .hero__title {
    font-size: 28px;
  }

  .hero__preview {
    gap: 10px;
  }

  .hero__preview-card {
    width: 100px;
  }

  .hero__preview-img {
    width: 76px;
    height: 76px;
  }

  .style-picker {
    grid-template-columns: 1fr;
  }

  .step-indicator__label {
    display: none;
  }

  .form-row--split {
    flex-direction: column;
  }

  .form-field--zip {
    flex: auto;
  }
}

/* ============================================================
   UTILITY ANIMATIONS
   ============================================================ */
@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.bounce-in {
  animation: bounceIn var(--bounce) both;
}

/* Hide elements visually but keep for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ============================================================
   LIVE PREVIEW (Replicate AI)
   ============================================================ */
.live-preview {
  margin-top: 24px;
  display: none;
}

.live-preview.is-visible {
  display: block;
  animation: fadeSlideIn 400ms ease-out;
}

.live-preview__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--white);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.live-preview__side {
  text-align: center;
}

.live-preview__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--soft-gray);
  margin-bottom: 10px;
}

.live-preview__img {
  width: 100%;
  max-height: 400px;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 1px solid var(--border);
}

.live-preview__generating {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.live-preview__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.live-preview__status {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.live-preview__wow {
  text-align: center;
  padding: 16px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--bark);
}

/* ============================================================
   SOCIAL PROOF & SELLING
   ============================================================ */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--primary-hover);
  text-align: left;
}
.social-proof strong { font-weight: 700; }

.social-proof__stars {
  color: var(--amber);
  font-size: 18px;
  letter-spacing: 1px;
}

.social-proof__icon {
  flex-shrink: 0;
  color: var(--primary-hover, var(--primary));
}

.price-anchor {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.price-anchor__old {
  font-size: 14px;
  color: var(--soft-gray);
  text-decoration: line-through;
}

.price-anchor__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pink);
  background: var(--pink-light);
  padding: 3px 8px;
  border-radius: 100px;
}

.guarantee-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
}

.guarantee-box__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guarantee-box__text h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.guarantee-box__text p {
  font-size: 14px;
  color: var(--soft-gray);
  line-height: 1.5;
}

/* ============================================================
   IMAGE ANALYSIS
   ============================================================ */
.image-analysis {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analysis-hint {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.analysis-good {
  color: var(--green);
  background: var(--green-bg);
  font-weight: 600;
}

.analysis-info {
  color: var(--primary-hover);
  background: var(--primary-light);
  font-weight: 600;
}

.analysis-warning {
  color: #92400e;
  background: #fef3c7;
  font-weight: 600;
}

.analysis-note {
  font-size: 13px;
  color: var(--soft-gray);
  padding: 6px 0;
  font-style: italic;
}

/* ============================================================
   MULTI-PHOTO UPLOAD
   ============================================================ */
.photo-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  animation: stepIn 300ms ease-out;
}

.photo-card__img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: contain;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.photo-card__info { flex: 1; min-width: 0; }

.photo-card__name-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  margin-bottom: 6px;
}

.photo-card__name-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.photo-card__analysis { margin-top: 6px; }
.photo-card__remove {
  background: none;
  border: none;
  color: var(--soft-gray);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.photo-card__remove:hover { color: var(--red); }

.upload__buttons {
  margin-top: 12px;
  text-align: center;
}

.photo-action-btn {
  display: inline-block;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: none;
  border-radius: 100px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all var(--transition);
  margin: 2px;
}

.photo-action-btn:hover {
  background: var(--primary);
  color: white;
}

.photo-action-btn--danger {
  color: var(--red);
  background: var(--red-bg);
}

.photo-action-btn--danger:hover {
  background: var(--red);
  color: white;
}

/* "Weiteres Foto hinzufügen" button */
.add-photo-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 2px dashed var(--primary-soft);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
}

.add-photo-btn:hover {
  background: var(--primary);
  color: white;
  border-style: solid;
}

.more-photos-hint {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 0 24px;
  padding: 14px 18px;
  font: inherit;
  text-align: left;
  background: var(--primary-light, #f3e8ff);
  color: var(--bark, #1e1b2e);
  border: 1.5px dashed var(--primary-soft, #c4b5fd);
  border-radius: var(--radius-lg, 12px);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.more-photos-hint:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.more-photos-hint__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
}
.more-photos-hint__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.35;
}
.more-photos-hint__text strong {
  font-size: 15px;
  font-weight: 700;
}
.more-photos-hint__text span {
  font-size: 13px;
  color: var(--soft-gray);
}
.more-photos-hint__arrow {
  flex: 0 0 auto;
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.18s;
}
.more-photos-hint:hover .more-photos-hint__arrow { transform: translateX(3px); }

.add-photo-zone {
  border: 2.5px dashed var(--border);
  border-radius: var(--radius-xl);
  background: var(--white);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  margin-bottom: 20px;
}

.add-photo-zone:hover {
  border-color: var(--primary);
  background: var(--cream);
}

/* ============================================================
   PRODUCT GRID (Step 2)
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Product Filters */
.product-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.product-filter {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  color: var(--bark);
  cursor: pointer;
  transition: all var(--transition);
}

.product-filter:hover {
  border-color: var(--primary-light);
  background: var(--primary-light);
}

.product-filter--perso {
  border-color: #f59e0b !important;
  color: #b45309;
  background: #fef3c7;
}
.product-filter--perso:hover { background: #fde68a; }
.product-filter--perso.is-active {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

.perso-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 100px;
  background: #f59e0b;
  color: #fff;
}
.perso-badge--card {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.product-filter.is-active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Product Cards (Step 2) */
.product-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.product-card__thumb {
  width: calc(100% + 40px);
  margin: -20px -20px 14px;
  aspect-ratio: 4 / 3;
  background-color: var(--warm, #faf8ff);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.product-card__thumb-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.product-card__thumb-slide.is-active { opacity: 1; }

.product-card__thumb-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.product-card__thumb-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: auto;
  transition: background var(--transition), transform var(--transition);
}
.product-card__thumb-dot.is-active { background: white; transform: scale(1.35); }

.product-card__thumb-zoom {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition), transform var(--transition);
}
.product-card__thumb-zoom:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.08);
}

.product-card__thumb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition), opacity var(--transition);
  opacity: 0;
}
.product-card__thumb-arrow--prev { left: 8px; }
.product-card__thumb-arrow--next { right: 8px; }
.product-card__thumb-arrow:hover { background: rgba(0,0,0,0.8); }

@media (hover: hover) {
  .product-card__thumb:hover .product-card__thumb-arrow { opacity: 1; }
}
@media (hover: none) {
  .product-card__thumb-arrow { opacity: 1; }
}

.product-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}
.product-card__thumb--empty span {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  background: rgba(255,255,255,0.8);
  padding: 4px 12px;
  border-radius: 100px;
}

.showcase-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  background: var(--warm, #faf8ff);
}

.showcase-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm, #faf8ff);
}

.showcase-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.showcase-slider__track::-webkit-scrollbar { display: none; }

.showcase-slider__track .showcase-card__photo {
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius: 0;
  cursor: zoom-in;
}

.showcase-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  padding: 0;
  z-index: 2;
}
.showcase-slider__nav:hover { background: #fff; }
.showcase-slider__nav--prev { left: 8px; }
.showcase-slider__nav--next { right: 8px; }

.showcase-card:hover .showcase-slider__nav,
.showcase-slider:focus-within .showcase-slider__nav {
  opacity: 1;
}

.showcase-slider__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 100px;
  z-index: 2;
}

.showcase-slider__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.showcase-slider__dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, transform 0.2s;
}
.showcase-slider__dot.is-active::before {
  background: #fff;
  transform: scale(1.3);
}

@media (hover: none) {
  .showcase-slider__nav { opacity: 1; }
}

/* ============ PDP Modal ============ */
.pdp-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pdp-modal[hidden] { display: none; }

.pdp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  animation: pdp-fade 0.18s ease-out;
}

.pdp-modal__panel {
  position: relative;
  background: var(--warm, #faf8ff);
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 1080px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: pdp-rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pdp-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pdp-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pdp-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--bark, #1e1b2e);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, transform 0.15s;
}
.pdp-modal__close:hover {
  background: #fff;
  transform: scale(1.05);
}

.pdp-modal__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #f7f5fa;
}
.pdp-gallery__main {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.pdp-gallery__hero {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
}
.pdp-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
}
.pdp-gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.pdp-gallery__nav--prev { left: 10px; }
.pdp-gallery__nav--next { right: 10px; }
.pdp-gallery__counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 10px;
  border-radius: 100px;
  pointer-events: none;
}
.pdp-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.pdp-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.pdp-gallery__thumbs::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }
.pdp-gallery__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-gallery__thumb:hover { transform: translateY(-1px); }
.pdp-gallery__thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
}

.pdp-info {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pdp-info__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pdp-info__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pdp-info__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}
.pdp-info__pill--perso {
  background: #f59e0b;
}
.pdp-info__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--bark, #1e1b2e);
  white-space: nowrap;
}
.pdp-info__title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
.pdp-info__desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--bark, #1e1b2e);
  margin: 0;
}
.pdp-info__desc-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.pdp-info__desc.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-info__desc-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}
.pdp-info__desc-toggle:hover { text-decoration: underline; }
.pdp-info__section {
  border-top: 1px solid var(--border, #e8e4ef);
  padding-top: 16px;
}
.pdp-info__section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--soft-gray);
  margin: 0 0 10px;
}
.pdp-info__variants {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
.pdp-info__variant {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border, #e8e4ef);
  border-radius: 10px;
  color: var(--bark, #1e1b2e);
}
.pdp-info__variant b {
  font-weight: 700;
  color: var(--primary);
}
.pdp-info__variant--hidden {
  display: none;
}
.pdp-info__variants-more {
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pdp-info__styles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pdp-info__style {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--border, #e8e4ef);
  color: var(--bark, #1e1b2e);
}
.pdp-info__cta {
  margin-top: 8px;
}
.pdp-info__cta .btn {
  width: 100%;
}

@media (min-width: 800px) {
  .pdp-modal__body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .pdp-gallery {
    padding: 24px;
    gap: 14px;
  }
  .pdp-info {
    padding: 36px 36px 40px;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
  }
}

@media (max-width: 799px) {
  .pdp-modal {
    padding: 8px;
    padding-top: max(8px, env(safe-area-inset-top, 8px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
  }
  .pdp-modal__panel {
    max-height: 100dvh;
  }
  .pdp-modal__close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .pdp-gallery {
    padding: 12px;
    gap: 10px;
  }
  .pdp-gallery__main {
    aspect-ratio: 4 / 3;
    max-height: 50vh;
  }
  .pdp-gallery__nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .pdp-gallery__thumb {
    width: 56px;
    height: 56px;
  }
  .pdp-info {
    padding: 18px 16px 22px;
    gap: 12px;
  }
  .pdp-info__title {
    font-size: 24px;
  }
  .pdp-info__desc {
    font-size: 16px;
  }
  .pdp-info__price {
    font-size: 20px;
  }
}

body.pdp-open {
  overflow: hidden;
}

/* ============ Personalization (wizard step 2) ============ */
.perso-block {
  background: var(--warm, #faf8ff);
  border: 1.5px solid var(--border, #e8e4ef);
  border-radius: var(--radius-lg, 12px);
  padding: 18px 18px 14px;
  margin: 16px 0;
}
.perso-block__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--bark, #1e1b2e);
}
.perso-block__intro {
  font-size: 13px;
  color: var(--soft-gray);
  margin: 0 0 14px;
}
.perso-field {
  margin-bottom: 12px;
}
.perso-field:last-child { margin-bottom: 0; }
.perso-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--bark, #1e1b2e);
}
.perso-field__required { color: #dc2626; }
.perso-field input[type="text"],
.perso-field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  border: 1.5px solid var(--border, #e8e4ef);
  border-radius: 8px;
  background: #fff;
  color: var(--bark, #1e1b2e);
  transition: border-color 0.15s;
}
.perso-field input[type="text"]:focus,
.perso-field textarea:focus {
  outline: none;
  border-color: var(--primary, #7c3aed);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.perso-field textarea { resize: vertical; min-height: 64px; }
.perso-field__hint {
  font-size: 12px;
  color: var(--soft-gray);
  margin-top: 4px;
}
.perso-field__counter {
  font-size: 11px;
  color: var(--soft-gray);
  text-align: right;
  margin-top: 2px;
}
.perso-field--error input,
.perso-field--error textarea {
  border-color: #dc2626;
  background: #fef2f2;
}
.perso-field--error .perso-field__label::after {
  content: ' — bitte ausfüllen';
  color: #dc2626;
  font-weight: 500;
}

.cart-item__perso {
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(124, 58, 237, 0.06);
  border-left: 2px solid var(--primary, #7c3aed);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}
.cart-item__perso-line { color: var(--bark, #1e1b2e); }
.cart-item__perso-label {
  font-weight: 600;
  color: var(--soft-gray);
  margin-right: 4px;
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card.is-selected {
  border-color: var(--green);
  background: var(--green-bg);
}

.product-card__cart-count {
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--green);
  padding: 8px 14px;
  text-align: center;
  letter-spacing: 0.02em;
  /* Extend the strip past the 20px card padding AND past the 2px card border
     so the bottom corners meet the rounded edge of the card flush. */
  margin: 14px -22px -22px;
  border-radius: 0 0 calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px);
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.product-card__method {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 100px;
}

.product-card__price-tag {
  font-size: 20px;
  font-weight: 800;
  color: var(--bark);
}

.product-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--soft-gray);
  line-height: 1.5;
  margin-bottom: 12px;
}

.product-card__more {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
  align-self: flex-start;
}
.product-card__more:hover { color: var(--primary-dark, #5b21b6); }

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card__styles-hint {
  font-size: 12px;
  color: var(--soft-gray);
}

.product-card__select-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* Style panel */
#product-style-panel { display: none; }

#product-style-panel.is-active {
  display: block;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--primary-glow);
  animation: fadeSlideIn 300ms ease-out;
}

#product-style-panel h3 {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.style-grid .style-card { cursor: pointer; display: block; }

.style-grid .style-card__inner {
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  transition: all var(--transition);
}

.style-grid .style-card:hover .style-card__inner {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.style-grid .style-card__name {
  font-size: 15px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
  padding: 6px 18px;
  background: rgba(0,0,0,0.12);
  border-radius: 100px;
}

.style-grid .style-card.is-selected .style-card__inner {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-primary);
  transform: translateY(-2px);
}

.style-grid .style-card__radio { display: none; }

.style-grid .style-card__desc {
  font-size: 12px;
  color: var(--soft-gray);
  margin-top: 6px;
  text-align: center;
  line-height: 1.4;
}

/* Panel buttons */
#product-style-panel .btn--primary { width: 100%; }

.panel-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft-gray);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.panel-back-btn:hover { color: var(--primary); }

#panel-close-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft-gray);
  cursor: pointer;
  transition: color var(--transition);
  text-align: center;
}

#panel-close-btn:hover { color: var(--red); }

/* Active product glow */
.product-card.is-open {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--primary-light);
}

/* Panel Preview */
.panel-preview {
  margin: 20px 0;
  background: var(--warm);
  border-radius: var(--radius-lg);
  padding: 20px;
  animation: fadeSlideIn 300ms ease-out;
}

.panel-preview__title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  color: var(--bark);
}

.panel-preview__container {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: flex-start;
}

.panel-preview__side { text-align: center; }

/* On narrow screens side-by-side previews become tiny. Stack them instead
   and let each image take the full column width. */
@media (max-width: 640px) {
  .panel-preview__container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .panel-preview__side {
    width: 100%;
  }
  .panel-preview__img {
    max-height: none;
    max-width: 320px;
  }
  .panel-preview__loading {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.panel-preview__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--soft-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.panel-preview__img {
  max-width: 100%;
  max-height: 280px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--white);
  display: block;
  margin: 0 auto;
}

/* Watermarked preview rendered as a CSS background-image div so it can't be
   right-click-saved or dragged out of the page. Cover-cropped so portrait
   AI outputs fill the frame instead of leaving white bars top/bottom. */
.panel-preview__img--protected {
  width: 280px;
  height: 280px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #fff;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
@media (max-width: 640px) {
  .panel-preview__img--protected {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.panel-preview__loading {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), var(--pink-light));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}

/* Product config panel (inline below product card) */
.product-config {
  background: var(--cream);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: -2px;
  margin-bottom: 14px;
  animation: fadeSlideIn 300ms ease-out;
}

.product-config__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-config__photo-select {
  margin-bottom: 12px;
}

.product-config__photo-select select {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
}

.product-config__styles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.product-config__style {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13px;
  font-weight: 600;
}

.product-config__style:hover {
  border-color: var(--primary-light);
}

.product-config__style.is-selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.product-config__style-gradient {
  height: 40px;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* ============================================================
   CART
   ============================================================ */
.cart-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: all var(--transition);
}

.cart-item:hover {
  border-color: var(--primary-light);
}

.cart-item__thumb {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--warm);
}

@media (max-width: 640px) {
  .cart-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    grid-template-areas:
      "thumb info"
      "thumb actions";
    gap: 10px 14px;
    align-items: start;
    padding: 14px;
  }
  .cart-item__thumb {
    grid-area: thumb;
    width: 84px;
    height: 84px;
    align-self: start;
  }
  .cart-item__info { grid-area: info; }
  .cart-item__qty {
    grid-area: actions;
    justify-self: start;
  }
  .cart-item__price {
    grid-area: actions;
    justify-self: end;
    align-self: center;
    font-size: 16px;
    font-weight: 800;
  }
}

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.cart-item__meta { font-size: 13px; color: var(--soft-gray); }
.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 18px;
  font-weight: 700;
  color: var(--bark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-family: inherit;
}

.qty-minus { border-radius: 8px 0 0 8px; }
.qty-plus { border-radius: 0 8px 8px 0; }
.qty-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.qty-value {
  width: 38px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
  background: var(--warm);
}

.cart-item__price {
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.cart-item__unit-price {
  font-size: 12px;
  font-weight: 500;
  color: var(--soft-gray);
}

.cart-item__remove-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  animation: toastIn 200ms ease-out;
}
.remove-confirm__yes {
  padding: 5px 14px;
  border-radius: 6px;
  border: 1.5px solid #f97316;
  background: #f97316;
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.remove-confirm__yes:hover { background: #ea6b10; }
.remove-confirm__no {
  padding: 5px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--bark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.remove-confirm__no:hover { background: var(--warm); }

.cart-summary {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
}

.cart-summary__line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  color: var(--bark-light);
}

.cart-summary__value { font-weight: 600; }

.cart-summary__line--discount {
  color: var(--green);
  font-weight: 600;
}

.cart-summary__line--total {
  font-size: 20px;
  font-weight: 800;
  color: var(--bark);
  padding-top: 14px;
  border-top: 2px solid var(--border);
  margin-top: 10px;
}

.cart-summary__vat {
  font-size: 12px;
  color: var(--soft-gray);
  text-align: right;
  margin-top: 6px;
}

.cart-shipping-hint {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-hover);
  background: var(--primary-light);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  margin: 8px 0;
  text-align: center;
}

.cart-discount-upsell {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--primary-light), var(--pink-light));
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-top: 16px;
}

.cart-discount-upsell__icon {
  font-size: 28px;
  flex-shrink: 0;
}

.cart-discount-upsell__text {
  font-size: 15px;
  line-height: 1.5;
}

.cart-discount-upsell__text strong {
  color: var(--primary-hover);
}

.cart-discount-upsell__text span {
  font-size: 13px;
  color: var(--soft-gray);
}

.cart-restored-notice {
  background: linear-gradient(135deg, var(--primary-light), var(--pink-light));
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-hover);
  text-align: center;
  margin-bottom: 20px;
}

.cart-restored-notice a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.cart-restored-notice a:hover {
  text-decoration: underline;
}

.cart-added-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: #16a34a;
  border-radius: var(--radius-lg);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  animation: toastIn 300ms ease-out;
  transition: opacity 500ms ease, transform 500ms ease;
}
.cart-added-toast.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cart-empty {
  text-align: center;
  color: var(--soft-gray);
  padding: 40px 20px;
  font-size: 16px;
}

.cart-mini {
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary-hover);
}

.discount-hint {
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
  margin-top: 12px;
}

/* Using-mouse: remove focus outlines */
.using-mouse *:focus {
  outline: none;
}

/* Focus mode: once a photo is uploaded, strip the distracting marketing
   sections (hero, product showcase, FAQ) but keep navigation and the
   legal footer so the user can still reach Impressum / Datenschutz. */
body.is-focused .hero,
body.is-focused .product-showcase,
body.is-focused .faq {
  display: none;
}

/* The sticky CTA normally relies on a scroll position to reveal itself.
   In focus mode the generator is at the top of the page, so we force it
   visible regardless of scroll. */
body.is-focused .sticky-cta {
  transform: translateY(0);
}

/* ── Style panel explainer note ────────────────────────── */
.style-panel-note {
  background: #fffbea;
  border: 1px solid #f5d488;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: #7a5600;
  line-height: 1.5;
  margin-bottom: 16px;
}
.style-panel-note strong { color: #5a3f00; }

/* ── Variant picker (shape + size) inside the style panel ── */
.variant-picker {
  margin-bottom: 18px;
  padding: 14px;
  background: var(--warm, #faf8ff);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}
.variant-picker__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 10px;
  text-align: center;
}

/* Grouped variant picker (Form / Größe / Ausführung as separate rows).
   Labels live in a fixed left column so every row starts at the same X;
   labels and the first row of pills share the same baseline so the UI
   reads cleanly even when pills wrap onto two rows. */
.variant-picker__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  padding: 10px 0;
}
.variant-picker__row + .variant-picker__row {
  border-top: 1px solid var(--border-light);
}
.variant-picker__row-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--soft-gray);
  /* Align with the first pill's text baseline (pill height ~30px → ~9px top) */
  padding-top: 9px;
}
.variant-picker__row-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.variant-picker__pill {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid var(--border, #e8e4ef);
  border-radius: 100px;
  cursor: pointer;
  color: var(--bark, #1e1b2e);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.variant-picker__pill:hover { border-color: var(--primary); }
.variant-picker__pill.is-selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.variant-picker__pill.is-unavailable {
  color: var(--soft-gray);
  background: #fafafa;
  border-color: var(--border-light);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  opacity: 0.6;
}
.variant-picker__pill.is-unavailable:hover {
  border-color: var(--soft-gray);
  opacity: 0.85;
}

/* ============ Stripe-cancel notice ============ */
.cancel-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 720px;
  margin: 24px auto;
  padding: 18px 22px 18px 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.18);
  color: #78350f;
  animation: cancel-notice-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cancel-notice-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cancel-notice__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
}
.cancel-notice__text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.45;
  font-size: 15px;
  color: #78350f;
}
.cancel-notice__text strong {
  font-size: 16px;
  font-weight: 800;
  color: #78350f;
}
.cancel-notice__close {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #92400e;
  cursor: pointer;
  padding: 0 4px;
  align-self: center;
  opacity: 0.6;
  transition: opacity 0.15s;
}
.cancel-notice__close:hover { opacity: 1; }
@media (max-width: 480px) {
  .variant-picker__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .variant-picker__row-label { padding-top: 0; }
}
.variant-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.variant-picker__tile {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 10px 14px;
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.variant-picker__tile:hover { border-color: var(--primary-light); }
.variant-picker__tile.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.variant-picker__shape {
  font-size: 11px;
  font-weight: 600;
  color: var(--soft-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.variant-picker__size {
  font-size: 14px;
  font-weight: 700;
  color: var(--bark);
}
.variant-picker__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}
.variant-picker__tile.is-selected .variant-picker__size,
.variant-picker__tile.is-selected .variant-picker__price { color: var(--primary); }

.cart-item__variant {
  color: var(--soft-gray);
  font-weight: 500;
}

/* ── Photo picker inside the style panel ───────────────── */
.photo-picker {
  margin-bottom: 18px;
  padding: 14px;
  background: var(--warm, #faf8ff);
  border: 1px solid var(--border-light, #e2dced);
  border-radius: var(--radius-lg);
}
.photo-picker__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 10px;
  text-align: center;
}
.photo-picker__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.photo-picker__tile {
  flex: 0 0 auto;
  width: 110px;
  padding: 8px;
  border: 2px solid transparent;
  background: white;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.photo-picker__tile img {
  width: 94px;
  height: 94px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--warm);
}
.photo-picker__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--bark);
  max-width: 94px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-picker__tile:hover {
  border-color: var(--primary-light);
}
.photo-picker__tile.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.photo-picker__tile.is-selected .photo-picker__label {
  color: var(--primary);
}

/* ── "Back to cart" banner on the product step ─────────── */
.cart-return-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--green-bg, #ecfdf5);
  border: 1px solid var(--green, #10b981);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--bark);
}
.cart-return-banner__text {
  flex: 1;
  min-width: 0;
}
.cart-return-banner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cart-return-banner {
    margin-bottom: 32px;
  }
}

/* ── Style scroll carousel ─────────────────────────────── */
.style-scroll {
  margin: 8px -16px 20px;
  padding: 4px 0;
}
.style-scroll__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 16px 14px;
  -webkit-overflow-scrolling: touch;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-glow) transparent;
}
/* WebKit (Safari/Chrome) */
.style-scroll__track::-webkit-scrollbar {
  height: 8px;
  background: transparent;
}
.style-scroll__track::-webkit-scrollbar-track {
  background: transparent;
  margin: 0 16px;
}
.style-scroll__track::-webkit-scrollbar-thumb {
  background: var(--primary-glow);
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background-color var(--transition);
}
.style-scroll__track:hover::-webkit-scrollbar-thumb {
  background: var(--primary);
  background-clip: padding-box;
  border: 2px solid transparent;
}

.style-scroll .style-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
  position: relative;
  cursor: pointer;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.style-scroll .style-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.style-scroll .style-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), var(--shadow-primary);
}
.style-scroll .style-card__radio { display: none; }

.style-scroll .style-card__gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--warm, #faf8ff);
  overflow: hidden;
}
.style-scroll .style-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: var(--warm, #faf8ff);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.style-scroll .style-card__img.is-active { opacity: 1; }
.style-scroll .style-card__gallery > .style-card__img:only-child { opacity: 1; position: static; }
.style-scroll .style-card__img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  position: static;
}

.style-scroll .style-card__zoom {
  /* Overlay icon on the image. Style selection is now done via the
     dedicated "Stil auswählen" button below, so the zoom can live on
     the image without hijacking taps. */
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  z-index: 2;
}
.style-scroll .style-card__zoom:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.08);
}

.style-scroll .style-card__select {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--warm, #faf8ff);
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  font-family: inherit;
}
.style-scroll .style-card__select:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.style-scroll .style-card.is-selected .style-card__select {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.style-scroll .style-card.is-selected .style-card__select::before {
  content: '✓ ';
}

.style-scroll .style-card__dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  /* The dots container itself must not eat taps — only the individual
     dot buttons should. Otherwise tapping the bottom strip of the image
     hits this empty area instead of selecting the style. */
  pointer-events: none;
}
.style-scroll .style-card__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: auto;
}
.style-scroll .style-card__dot.is-active { background: white; transform: scale(1.35); }

/* ── Lightbox ──────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

.lightbox__dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.lightbox__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.lightbox__dot.is-active { background: white; transform: scale(1.3); }

@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

.style-scroll .style-card__info {
  padding: 10px 12px 12px;
}
.style-scroll .style-card__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--bark, #1e1b2e);
  text-shadow: none;
  padding: 0;
  background: none;
  border-radius: 0;
}
.style-scroll .style-card__desc {
  font-size: 12px;
  color: var(--soft-gray);
  margin-top: 4px;
  line-height: 1.4;
}

.style-scroll .style-card__badge {
  /* Overlaid strip at the top of the card so cards with/without a badge
     line up at the same height. */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

@media (min-width: 640px) {
  .style-scroll .style-card { flex-basis: 180px; }
}
