.flow-view {
  padding-top: 5px;
}

.flow-shell {
  max-width: 1160px;
  margin: 0 auto;
}

/* Progress */
.progress-wrap {
  margin-bottom: 10px;
}

.progress-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.back-home {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  padding: 8px 0;
}

.progress-bar {
  height: 12px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.25s ease;
}

/* Cards */
.flow-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.question-card,
.summary-card {
  padding: clamp(24px, 5vw, 48px);
}

.step-kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 950;
  margin: 0 0 10px;
}

.flow-card h2 {
  font-size: clamp(25px, 5vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}

.product-title-small {
  font-size: clamp(25px, 5vw, 40px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

.step-copy {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 18px 0 0;
}

/* Question options */
.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.option-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px;
  font-weight: 950;
  font-size: 20px;
  color: var(--ink);
}

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

/* Product layout */
.product-layout {
  display: grid;
  grid-template-columns: minmax(340px, 42%) 1fr;
  min-height: auto;
}

.product-media {
  min-height: 280px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 5px;
  border-right: 1px solid var(--line);
}

.product-media-full {
  background: #fff;
  padding: 5px;
}

.product-image {
  width: 92%;
  height: 92%;
  max-height: 450px;
  object-fit: contain;
  object-position: center;
  filter: none;
  display: block;
}

.placeholder-image {
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  min-height: 360px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 72px;
}

.product-body {
  padding: clamp(30px, 5vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-tag {
  display: none;
}

/* Oude info-grid uitschakelen */
.product-info-grid,
.product-info-label,
.product-info-icon {
  display: none !important;
}

/* Product meta als rustige bullet-line */
.product-meta-line {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

.product-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-meta-line span::before {
  content: "•";
  color: var(--accent);
  font-weight: 950;
}

.product-note {
  margin-top: 12px;
  max-width: 620px;
}

/* Product actions */
.product-actions,
.product-actions-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  max-width: 620px;
  align-items: center;
}

.action-btn {
  min-height: 70px;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 19px !important;
  font-weight: 950 !important;
  line-height: 1.05;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  border: 1px solid var(--line) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.action-btn:hover {
  transform: translateY(-1px);
}

/* Heb ik al + Bewaar */
.owned-btn,
.save-btn,
.product-actions-inline button[data-action="owned"],
.product-actions-inline button[data-action="saved"] {
  min-height: 56px !important;
  padding: 11px 14px !important;
  font-size: 16px !important;
  background: #fff !important;
  border-color: var(--line) !important;
  color: var(--ink) !important;
  gap: 10px;
}

/* Checkbox animatie */
.action-check,
.owned-check {
  width: 19px;
  height: 19px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transition: all 0.18s ease;
}

.action-check::after,
.owned-check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s ease;
  margin-top: -2px;
}

.owned-btn.is-checked .action-check,
.save-btn.is-checked .action-check,
.owned-btn.is-checked .owned-check,
.save-btn.is-checked .owned-check {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.owned-btn.is-checked .action-check::after,
.save-btn.is-checked .action-check::after,
.owned-btn.is-checked .owned-check::after,
.save-btn.is-checked .owned-check::after {
  transform: rotate(-45deg) scale(1);
}

/* Koopknoppen */
.buy-now-btn,
.offline-btn {
  min-height: 70px !important;
}

.buy-now-btn.bol-btn,
.product-actions-inline a.bol-btn {
  background: #eaf6ff !important;
  border-color: #b8def7 !important;
  color: var(--ink) !important;
}

.buy-now-btn.amazon-btn,
.product-actions-inline a.amazon-btn {
  background: #fff6d8 !important;
  border-color: #f1d984 !important;
  color: var(--ink) !important;
}

.offline-btn,
.product-actions-inline button[data-action="offline"] {
  background: #ffe9e6 !important;
  border-color: #f4bbb3 !important;
  color: var(--ink) !important;
  opacity: 1;
}

.buy-btn-inner {
  display: grid;
  gap: 4px;
  line-height: 1.05;
}

.buy-btn-inner span {
  font-size: 19px;
  font-weight: 950;
}

.buy-btn-inner small {
  font-size: 13px;
  font-weight: 850;
  color: var(--ink);
}

/* General notes */
.micro-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 850;
  box-shadow: var(--shadow);
  z-index: 20;
}

/* Summary / checkout */
.summary-final {
  padding: clamp(24px, 5vw, 48px);
}

.checkout-panel {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.checkout-panel-small {
  margin-top: 18px;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.checkout-header h3,
.checkout-panel h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.checkout-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.checkout-all-btn {
  min-height: 58px;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  white-space: nowrap;
}

.checkout-all-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.summary-product-grid {
  display: grid;
  gap: 12px;
}

.summary-product-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(250, 248, 241, 0.55);
}

.summary-product-image-wrap {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.summary-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.summary-product-placeholder {
  font-size: 28px;
}

.summary-product-content h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
}

.summary-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.summary-product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.summary-product-link,
.summary-product-offline {
  min-width: 116px;
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #eaf6ff;
  padding: 10px 14px;
}

.summary-product-link .buy-btn-inner span,
.summary-product-offline .buy-btn-inner span {
  font-size: 17px;
}

.summary-product-link .buy-btn-inner small,
.summary-product-offline .buy-btn-inner small {
  font-size: 12px;
}

.summary-product-link.bol-btn {
  background: #eaf6ff !important;
  border-color: #b8def7 !important;
}

.summary-product-link.amazon-btn {
  background: #fff6d8 !important;
  border-color: #f1d984 !important;
}

.summary-product-offline {
  background: #ffe9e6;
  border-color: #f4bbb3;
}

/* Legacy fallbacks */
.buy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.summary-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.summary-box h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.quantity-pill {
  margin: 18px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.quantity-pill strong {
  color: var(--accent-dark);
}

/* Tablet */
@media (max-width: 900px) {
  .flow-shell {
    max-width: 100%;
  }

  .product-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .product-media {
    min-height: 280px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-image {
    max-height: 320px;
  }

  .product-body {
    padding: 28px;
  }

  .product-title-small {
    font-size: clamp(25px, 5vw, 40px) !important;
  }

.product-actions,
.product-actions-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  max-width: none;
}

.product-actions-inline .action-btn {
  width: 100%;
}

.product-actions-inline .buy-now-btn,
.product-actions-inline .offline-btn {
  grid-column: 1 / -1;
  order: 1;
}

.product-actions-inline .owned-btn {
  order: 2;
}

.product-actions-inline .save-btn {
  order: 3;
}

  .action-btn,
  .owned-btn,
  .save-btn,
  .buy-now-btn,
  .offline-btn {
    min-height: 56px !important;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .option-grid,
  .summary-grid,
  .buy-row {
    grid-template-columns: 1fr;
  }

  .placeholder-image {
    min-height: 240px;
    font-size: 54px;
    border-radius: 14px;
  }

  .checkout-header {
    display: grid;
  }

  .checkout-all-btn {
    width: 100%;
  }

  .summary-product-card {
    grid-template-columns: 64px 1fr;
  }

  .summary-product-link,
  .summary-product-offline {
    grid-column: 1 / -1;
    width: 100%;
  }

  .summary-product-image-wrap {
    width: 64px;
    height: 64px;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .product-body {
    padding: 24px 20px;
  }

  .action-btn {
    font-size: 18px !important;
  }

  .owned-btn,
  .save-btn {
    font-size: 16px !important;
  }

  .buy-btn-inner span {
    font-size: 18px;
  }

  .product-meta-line {
    font-size: 14px;
    gap: 7px 12px;
  }
}
