/* ============================================================
   Laytik — Product Request Flow (step1–4, stepper, cart)
   Tokenized, production-grade. Depends on tokens.css, design system.
   ============================================================ */

/* ---------- Shared container ---------- */
.product-selection-container,
.config-page-container,
.shipping-page-container,
.cart-page-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-5) var(--gutter);
}

/* ---------- Page header ---------- */
.product-selection-container .page-header,
.config-page-container .page-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.product-selection-container .page-header h1,
.config-page-container .page-header h1 {
  font-size: var(--font-size-3xl);
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  font-weight: var(--font-weight-bold);
}

.product-selection-container .page-header p,
.config-page-container .page-header p {
  font-size: var(--font-size-md);
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Stepper (extracted from _stepper.php) ---------- */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: var(--space-8) 0;
  padding: 0 var(--space-5) var(--space-5);
  position: relative;
  overflow: visible;
  min-height: 100px;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border-subtle);
  z-index: 0;
  transition: background var(--motion-duration-base) var(--motion-ease-out);
}

.stepper.step-2::before {
  background: linear-gradient(to right,
    var(--color-accent) 0%, var(--color-accent) 33%,
    var(--border-subtle) 33%);
}

.stepper.step-3::before {
  background: linear-gradient(to right,
    var(--color-accent) 0%, var(--color-accent) 66%,
    var(--border-subtle) 66%);
}

.stepper.step-4::before {
  background: var(--color-accent);
}

.step-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 200px;
}

.step-index {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: var(--border-width-thick) solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-md);
  color: var(--text-muted);
  transition:
    background var(--motion-duration-base) var(--motion-ease-out),
    border-color var(--motion-duration-base) var(--motion-ease-out),
    color var(--motion-duration-base) var(--motion-ease-out),
    transform var(--motion-duration-base) var(--motion-ease-out),
    box-shadow var(--motion-duration-base) var(--motion-ease-out);
}

.step-pill.active .step-index {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  transform: scale(1.1);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--color-accent) 34%, transparent);
}

.step-pill.done .step-index {
  background: var(--color-success-500);
  border-color: var(--color-success-500);
  color: var(--color-on-accent);
}

.step-pill.done .step-index::after {
  content: "✓";
  position: absolute;
  font-size: var(--font-size-lg);
}

.step-pill span:not(.step-index) {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  text-align: center;
}

.step-pill.active span:not(.step-index) {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
}

.step-pill.done span:not(.step-index) {
  color: var(--color-success-700);
}

a.step-pill.done {
  text-decoration: none;
  cursor: pointer;
}

a.step-pill.done:hover .step-index {
  transform: scale(1.1);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--color-success-500) 34%, transparent);
}

a.step-pill.done:hover span:not(.step-index) {
  text-decoration: underline;
}

/* ---------- Product card grid (step1) ---------- */
.product-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.product-card {
  background: var(--surface-card);
  border: var(--border-width-thick) solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--motion-duration-base) var(--motion-ease-out),
    box-shadow var(--motion-duration-base) var(--motion-ease-out),
    border-color var(--motion-duration-base) var(--motion-ease-out);
  position: relative;
  overflow: hidden;
  animation: pr-fadeInUp 0.5s var(--motion-ease-out) forwards;
  opacity: 0;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion-duration-base) var(--motion-ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-soft);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card.product-card--suggested {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px color-mix(in oklch, var(--color-accent) 12%, transparent);
}

/* Suggested badge */
.suggested-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--color-brand-700);
  color: var(--color-gray-50);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.product-card h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  font-weight: var(--font-weight-semibold);
}

/* Product type badge */
.product-type-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-3);
}

/* Description */
.product-description {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin: var(--space-3) 0;
  min-height: 60px;
}

/* Price block */
.product-price {
  margin: var(--space-4) 0;
  padding: var(--space-3);
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  border: var(--border-width) solid color-mix(in oklch, var(--color-accent) 15%, transparent);
}

.price-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.price-value {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-strong);
}

.product-card form {
  margin-top: var(--space-5);
}

.product-card .pill-btn {
  width: 100%;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--motion-duration-fast) var(--motion-ease-out),
    transform var(--motion-duration-fast) var(--motion-ease-out),
    box-shadow var(--motion-duration-fast) var(--motion-ease-out);
}

.product-card .pill-btn:hover {
  background: var(--color-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--color-accent) 40%, transparent);
}

.product-card .pill-btn:active {
  transform: translateY(0);
}

/* ---------- Price bar (step2 inline calc) ---------- */
.price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}

.price-bar-total {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-strong);
}

/* ---------- Step2 layout ---------- */
@media (min-width: 769px) {
  .step2-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-6);
    align-items: start;
  }
}

.step2-main {
  min-width: 0;
}

/* ---------- Preview panel (step2) ---------- */
.step2-preview {
  background: var(--surface-card);
  border: var(--border-width) solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 769px) {
  .step2-preview {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
  }
}

@media (max-width: 768px) {
  .step2-preview {
    position: static;
    margin-top: var(--space-5);
  }

  .step2-preview.is-open .step2-preview-content {
    display: block;
  }

  .step2-preview-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-md);
  }

  .step2-preview-toggle::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    transition: transform var(--motion-duration-fast) var(--motion-ease-out);
  }

  .step2-preview.is-open .step2-preview-toggle::after {
    transform: rotate(180deg);
  }
}

@media (min-width: 769px) {
  .step2-preview-toggle {
    display: none;
  }

  .step2-preview-content {
    display: block !important;
  }
}

.step2-preview-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background: var(--surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step2-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step2-preview-placeholder {
  font-size: 3rem;
  color: var(--border-default);
}

.step2-preview h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--font-size-md);
  color: var(--text-primary);
}

.step2-preview-type {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}

.step2-preview-selections {
  border-top: var(--border-width) solid var(--border-subtle);
  padding-top: var(--space-3);
  margin-bottom: var(--space-3);
}

.step2-preview-selections h4 {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-2);
}

.preview-selection-item {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  padding: var(--space-1) 0;
  border-bottom: var(--border-width) solid var(--border-subtle);
}

.preview-selection-item:last-child {
  border-bottom: none;
}

/* ---------- Mobile sticky bar (step2) ---------- */
#mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9980;
    background: var(--surface-card);
    border-top: var(--border-width) solid var(--border-subtle);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: var(--space-3) var(--space-4);
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    animation: pr-msbSlideUp 0.3s var(--motion-ease-out);
}

@keyframes pr-msbSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.msb-price { display: flex; flex-direction: column; }
.msb-label { font-size: var(--font-size-xs); color: var(--text-muted); }
.msb-value { font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); color: var(--color-accent-strong); }
.msb-actions { display: flex; gap: var(--space-2); }

.msb-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--motion-duration-fast) var(--motion-ease-out);
}

.msb-btn-primary {
    background: linear-gradient(135deg, var(--color-success-500), var(--color-success-700));
    color: var(--color-on-accent);
}

.msb-btn-secondary {
    background: var(--surface-muted);
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    #mobile-sticky-bar { display: flex; }
    #ai-fab { bottom: 80px !important; }
}

/* ---------- Editing / carryover banners ---------- */
.editing-banner {
    background: var(--surface-muted);
    border: var(--border-width-thick) solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: pr-slideDown var(--motion-duration-base) var(--motion-ease-out);
}

.editing-banner p {
    margin: 0;
    color: var(--color-accent-strong);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.assistant-carryover-banner {
    background: var(--surface-muted);
    border: var(--border-width) solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
}

.assistant-carryover-banner strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.assistant-carryover-banner p {
    margin: 0;
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

.assistant-carryover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.assistant-carryover-chip {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-pill);
    background: var(--surface-card);
    border: var(--border-width) solid var(--border-subtle);
    color: var(--color-accent-strong);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

/* ---------- Product info card (step2 header) ---------- */
.product-info-card {
    background: var(--surface-card);
    border: var(--border-width-thick) solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-xs);
}

.product-info-card h2 {
    margin: 0 0 var(--space-3);
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* ---------- Field containers (step2 form fields) ---------- */
.field-container {
    background: var(--surface-card);
    border: var(--border-width-thick) solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-top: var(--space-4);
    transition:
        border-color var(--motion-duration-base) var(--motion-ease-out),
        box-shadow var(--motion-duration-base) var(--motion-ease-out);
    animation: pr-fadeInUp 0.4s var(--motion-ease-out) forwards;
    opacity: 0;
}

.field-container:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 12px color-mix(in oklch, var(--color-accent) 12%, transparent);
}

.field-container.field-error {
    border-color: var(--color-danger-500);
    background: var(--color-danger-50);
    animation: pr-shake 0.5s;
}

.field-container label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-base);
}

fieldset.field-container {
    border: var(--border-width-thick) solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin: var(--space-4) 0 0 0;
}

fieldset.field-container legend {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    padding: 0 var(--space-2);
}

.field-container input[type="text"],
.field-container input[type="number"],
.field-container textarea,
.field-container select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: var(--border-width-thick) solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition:
        border-color var(--motion-duration-fast) var(--motion-ease-out),
        box-shadow var(--motion-duration-fast) var(--motion-ease-out);
    background: var(--surface-card);
}

.field-container input:focus,
.field-container textarea:focus,
.field-container select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 15%, transparent);
}

.field-container input.input-error,
.field-container textarea.input-error,
.field-container select.input-error {
    border-color: var(--color-danger-500);
}

/* Option radio / checkbox */
.option-radio,
.option-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    margin: var(--space-2) 0;
    border: var(--border-width-thick) solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition:
        border-color var(--motion-duration-fast) var(--motion-ease-out),
        background var(--motion-duration-fast) var(--motion-ease-out);
    background: var(--surface-card);
}

.option-radio:hover,
.option-checkbox:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.option-radio input[type="radio"],
.option-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Price summary box */
.price-summary {
    background: var(--color-accent-soft);
    border: var(--border-width-thick) solid var(--color-accent);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-top: var(--space-8);
    box-shadow: 0 4px 12px color-mix(in oklch, var(--color-accent) 15%, transparent);
}

.price-summary p {
    margin: var(--space-2) 0;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.price-summary strong {
    color: var(--color-accent-strong);
}

#price-total {
    font-size: var(--font-size-3xl) !important;
    color: var(--color-accent-strong) !important;
}

/* Validation errors */
#validation-errors {
    display: none;
    margin-top: var(--space-5);
    padding: var(--space-4);
    background: var(--color-danger-50);
    border: var(--border-width-thick) solid var(--color-danger-500);
    border-radius: var(--radius-lg);
    color: var(--color-danger-700);
    animation: pr-slideDown var(--motion-duration-base) var(--motion-ease-out);
}

/* ---------- Preview helpers ---------- */
.preview-selection-label {
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.preview-selection-value {
    font-weight: var(--font-weight-medium);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.step2-preview-price {
    border-top: var(--border-width-thick) solid var(--color-accent);
    padding-top: var(--space-3);
    margin-top: var(--space-2);
    text-align: right;
}

.preview-total-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.preview-total-value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-accent-strong);
}

/* ---------- Step2 page header ---------- */
.page-header-config {
    text-align: center;
    margin-bottom: var(--space-8);
}

.page-header-config h1 {
    font-size: var(--font-size-3xl);
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
    font-weight: var(--font-weight-bold);
}

/* ---------- Shared animations ---------- */
@keyframes pr-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pr-slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pr-shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-10px); }
    75%      { transform: translateX(10px); }
}

/* Field stagger delay */
.field-container:nth-child(1) { animation-delay: 0.1s; }
.field-container:nth-child(2) { animation-delay: 0.2s; }
.field-container:nth-child(3) { animation-delay: 0.3s; }
.field-container:nth-child(4) { animation-delay: 0.4s; }
.field-container:nth-child(5) { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    .field-container { animation: none; opacity: 1; }
    .editing-banner { animation: none; }
    #validation-errors { animation: none; }
    #mobile-sticky-bar { animation: none; }
}
.shipping-page-container h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

/* ---------- Step4 / review ---------- */
.review-page-container h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

/* ---------- Cart ---------- */
.cart-page-container h1 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 60px var(--space-5);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0 0 var(--space-2);
  color: var(--text-secondary);
  font-size: var(--font-size-2xl);
}

.empty-state p {
  margin: 0;
  font-size: var(--font-size-base);
}

/* ---------- AI assistant banner (step1) ---------- */
.assistant-context-banner {
  margin: var(--space-6) 0 var(--space-1);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--surface-muted);
  border: var(--border-width) solid var(--border-subtle);
}

.assistant-context-banner strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.assistant-context-banner p {
  margin: 0;
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.assistant-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.assistant-context-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  color: var(--color-accent-strong);
  border: var(--border-width) solid var(--color-accent-soft);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  transition:
    background var(--motion-duration-fast) var(--motion-ease-out);
}

.assistant-context-chip:hover {
  background: var(--color-accent-soft);
}

/* ---------- Animations ---------- */
@keyframes pr-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .product-card {
    animation: none;
    opacity: 1;
  }

  .product-card::before {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .product-type-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .product-selection-container .page-header,
  .config-page-container .page-header {
    margin-bottom: var(--space-6);
  }

  .product-selection-container .page-header h1,
  .config-page-container .page-header h1 {
    font-size: var(--font-size-2xl);
  }

  .stepper {
    padding: 0 var(--space-2) var(--space-4);
  }

  .step-index {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-sm);
  }

  .step-pill span:not(.step-index) {
    font-size: var(--font-size-xs);
  }

  .stepper::before {
    left: 5%;
    right: 5%;
  }
}
