/*!
 * Jaloeziedeal Inline Configurator — styles
 * Alle classes prefixed met .jdc- om collisions met v11-theme te vermijden.
 * Version: 1.0 (Fase 2 deploy)
 */

.jdc-root {
  /* Self-constraining wrapper — werkt in elke parent (productpagina, test-mount, of standalone) */
  /* GEEN overflow-x:hidden hier — dat breekt position:sticky bij .jdc-gallery op desktop.
     Anti-overflow doen we via box-sizing + minmax(0, 1fr) + min-width:0 op grid items. */
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  width: 100%;
  --jdc-sage: #6B8F71;
  --jdc-sage-dark: #557459;
  --jdc-sage-light: #E8EFE9;
  --jdc-cream: #F4F4F1;
  --jdc-cream-2: #FAFAF8;
  --jdc-ink: #1F2421;
  --jdc-ink-2: #3D4541;
  --jdc-ink-3: #6B7570;
  --jdc-line: #E5E5E0;
  --jdc-line-2: #D8D8D2;
  --jdc-warn-bg: #FFF7E5;
  --jdc-warn-line: #F1D693;
  --jdc-warn-ink: #6B4F1A;
  --jdc-info-bg: #E8F0F7;
  --jdc-info-line: #C1D6E5;
  --jdc-info-ink: #2B4E68;
  --jdc-radius: 12px;
  --jdc-radius-lg: 16px;

  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--jdc-ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.jdc-root *, .jdc-root *::before, .jdc-root *::after { box-sizing: border-box; }
.jdc-root h1, .jdc-root h2, .jdc-root h3, .jdc-root h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--jdc-ink);
  margin: 0;
}
.jdc-root button { font-family: inherit; }

/* Tap targets minimum */
.jdc-root button, .jdc-opt-photo, .jdc-variant-row, .jdc-mat-card, .jdc-rail-step,
.jdc-swatch, .jdc-pill, .jdc-thumb { min-height: 44px; }

/* ============ PRODUCT HEAD ============ */
.jdc-product-head { margin-bottom: 24px; }
.jdc-product-head h1 { font-size: clamp(28px, 6vw, 48px); letter-spacing: -0.02em; margin-bottom: 12px; }
.jdc-rating-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--jdc-ink-2); margin-bottom: 14px; flex-wrap: wrap; }
.jdc-stars { color: #E8A93B; letter-spacing: 1px; font-size: 16px; }
.jdc-product-desc { font-size: 15px; color: var(--jdc-ink-2); margin-bottom: 0; }

/* ============ LAYOUT ============ */
.jdc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 980px) { .jdc-layout { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 540px) { .jdc-root { padding: 14px 14px 24px; } }

/* ============ GALLERY ============ */
.jdc-gallery { position: sticky; top: 88px; }
@media (max-width: 980px) { .jdc-gallery { position: static; } }

.jdc-gallery-hero {
  background: var(--jdc-cream);
  border-radius: var(--jdc-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.2;
  position: relative;
  cursor: zoom-in;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.jdc-gallery-hero:focus-visible { outline: 3px solid var(--jdc-sage); outline-offset: 4px; }
.jdc-gallery-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: 50% 50%; will-change: transform;
}
.jdc-gallery-hero.jdc-zoomed { cursor: zoom-out; touch-action: none; }
.jdc-gallery-hero.jdc-zoomed img { transform: scale(2.4); }
.jdc-gallery-hero.jdc-panning img { transition: none; }

.jdc-zoom-indicator {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--jdc-ink); box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  pointer-events: none;
}
.jdc-gallery-hero.jdc-zoomed .jdc-zoom-indicator { background: var(--jdc-sage); color: #fff; }
@media (max-width: 480px) {
  .jdc-zoom-indicator { width: 32px; height: 32px; top: 10px; right: 10px; }
  .jdc-zoom-indicator svg { width: 16px; height: 16px; }
}

.jdc-gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 12px;
}
.jdc-thumb {
  background: var(--jdc-cream); border-radius: 10px; overflow: hidden;
  aspect-ratio: 1/0.78; cursor: pointer;
  border: 2px solid transparent; padding: 0;
  transition: border-color .15s;
}
.jdc-thumb.active { border-color: var(--jdc-sage); }
.jdc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.jdc-mobile-jump-cta {
  display: none; width: 100%;
  margin-top: 14px; background: var(--jdc-sage-light);
  border: 1.5px solid var(--jdc-sage); color: var(--jdc-sage-dark);
  padding: 12px 16px; border-radius: var(--jdc-radius);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center;
}
.jdc-mobile-jump-cta:hover { background: var(--jdc-sage); color: #fff; }
@media (max-width: 980px) { .jdc-mobile-jump-cta { display: block; } }

/* ============ CONFIGURATOR CARD ============ */
.jdc-configurator {
  background: var(--jdc-cream-2);
  border: 1px solid var(--jdc-line);
  border-radius: var(--jdc-radius-lg);
  padding: 20px;
}
@media (max-width: 540px) { .jdc-configurator { padding: 16px 14px; border-radius: 14px; } }

.jdc-cfg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.jdc-cfg-head h2 { font-size: clamp(18px, 4.5vw, 22px); letter-spacing: -0.01em; }
.jdc-cfg-time { font-size: 12.5px; color: var(--jdc-ink-3); }
.jdc-cfg-sub { font-size: 13.5px; color: var(--jdc-ink-3); margin: 0 0 18px 0; }

.jdc-cfg-body {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 22px;
}
@media (max-width: 720px) {
  .jdc-cfg-body { grid-template-columns: 1fr; gap: 0; }
  .jdc-cfg-rail-col { order: -1; margin-bottom: 14px; }
}

.jdc-cfg-rail-col { height: 100%; }
.jdc-cfg-rail {
  position: sticky; top: 100px;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid var(--jdc-line);
  border-radius: var(--jdc-radius);
}
.jdc-cfg-rail-title {
  font-size: 10.5px; font-weight: 700;
  color: var(--jdc-ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0 6px 8px;
  border-bottom: 1px solid var(--jdc-line); margin-bottom: 4px;
}
.jdc-cfg-rail ol { list-style: none; display: flex; flex-direction: column; gap: 1px; padding: 0; margin: 0; }
.jdc-rail-step {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: 8px;
  font-size: 12.5px; color: var(--jdc-ink-2);
  cursor: pointer; background: transparent; border: none; width: 100%;
  text-align: left;
  transition: background .12s;
  min-height: 36px;
}
.jdc-rail-step:hover { background: var(--jdc-cream); }
.jdc-rail-step .jdc-rdot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--jdc-cream); color: var(--jdc-ink-3);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--jdc-line); flex-shrink: 0;
}
.jdc-rail-step.done .jdc-rdot { background: var(--jdc-sage-light); border-color: var(--jdc-sage); color: var(--jdc-sage); }
.jdc-rail-step.done .jdc-rdot::before { content: "✓"; }
.jdc-rail-step.done .jdc-rdot-num { display: none; }
.jdc-rail-step.current { background: var(--jdc-sage-light); color: var(--jdc-ink); font-weight: 600; }
.jdc-rail-step.current .jdc-rdot { background: var(--jdc-sage); color: #fff; border-color: var(--jdc-sage); }
.jdc-rail-step-label { line-height: 1.2; flex: 1; min-width: 0; }
.jdc-rail-step-sub { font-size: 10.5px; color: var(--jdc-ink-3); font-weight: 400; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jdc-rail-step.current .jdc-rail-step-sub { color: var(--jdc-sage-dark); }

@media (max-width: 720px) {
  .jdc-cfg-rail {
    position: sticky; top: 68px;
    padding: 8px 4px; z-index: 10;
    box-shadow: 0 4px 8px rgba(31,36,33,.04);
  }
  .jdc-cfg-rail-title { display: none; }
  .jdc-cfg-rail ol {
    flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 4px; scrollbar-width: none; padding: 2px; scroll-snap-type: x mandatory;
  }
  .jdc-cfg-rail ol::-webkit-scrollbar { display: none; }
  .jdc-rail-step {
    flex-direction: column; align-items: center;
    min-width: 64px; max-width: 80px;
    padding: 6px; font-size: 10.5px; gap: 4px;
    scroll-snap-align: start;
  }
  .jdc-rail-step-sub { display: none; }
  .jdc-rail-step-label { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* Error pill onder rail */
.jdc-cfg-rail-errors { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--jdc-line); }
.jdc-rail-err-pill {
  display: flex; align-items: center; gap: 7px; width: 100%;
  background: #FFEDEC; border: 1.5px solid #F2CFCD;
  color: #7A2B27; border-radius: 10px;
  padding: 10px 12px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; text-align: left; min-height: 40px; line-height: 1.3;
}
.jdc-rail-err-pill:hover { background: #FDDDDC; }
.jdc-rail-err-icon { font-size: 14px; flex-shrink: 0; }
.jdc-rail-err-text { flex: 1; min-width: 0; }
.jdc-rail-err-caret { transition: transform .2s; flex-shrink: 0; font-size: 10px; }
.jdc-cfg-rail-errors.open .jdc-rail-err-caret { transform: rotate(180deg); }
.jdc-rail-err-details {
  margin-top: 8px; padding: 10px 12px;
  background: #FFEDEC; border: 1px solid #F2CFCD; border-radius: 10px;
  font-size: 11.5px; color: #7A2B27; line-height: 1.45;
  display: none;
}
.jdc-cfg-rail-errors.open .jdc-rail-err-details { display: block; }
.jdc-rail-err-details ul { list-style: none; padding: 0; margin: 0; }
.jdc-rail-err-details li { padding: 4px 0; display: flex; align-items: flex-start; gap: 6px; }
.jdc-rail-err-details li::before { content: "○"; color: #C8554F; font-weight: 700; flex-shrink: 0; }
.jdc-rail-err-details li button { background: none; border: none; padding: 0; cursor: pointer; color: #7A2B27; font-size: 11.5px; text-align: left; text-decoration: underline; flex: 1; line-height: 1.4; font-family: inherit; }

/* ============ STEPS ============ */
.jdc-step { border-bottom: 1px solid var(--jdc-line); padding: 22px 0; scroll-margin-top: 140px; }
.jdc-cfg-main > .jdc-step:first-child { padding-top: 4px; }
.jdc-cfg-main > .jdc-step:last-child { border-bottom: none; padding-bottom: 4px; }
.jdc-step-num-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jdc-sage); margin-bottom: 10px; }
.jdc-step-circle { width: 22px; height: 22px; border-radius: 50%; background: var(--jdc-sage); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.jdc-step h3 { font-size: clamp(18px, 4.8vw, 22px); margin-bottom: 6px; letter-spacing: -0.01em; }
.jdc-step-help { font-size: 13px; color: var(--jdc-ink-3); margin-bottom: 14px; }
.jdc-step-help a { color: var(--jdc-sage); font-weight: 600; }
.jdc-field-block { margin-top: 16px; }
.jdc-field-block + .jdc-field-block { margin-top: 18px; }
.jdc-field-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--jdc-ink-2); margin-bottom: 8px; text-transform: uppercase; }

/* ============ STAP 1: TYPE ACCORDION ============ */
.jdc-type-current {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--jdc-sage);
  border-radius: var(--jdc-radius);
  padding: 11px 14px; width: 100%;
  cursor: pointer; text-align: left;
  box-shadow: 0 0 0 1px var(--jdc-sage) inset;
}
.jdc-type-current:hover { background: var(--jdc-sage-light); }
.jdc-type-current-photo { width: 52px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--jdc-cream); }
.jdc-type-current-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jdc-type-current-body { flex: 1; min-width: 0; }
.jdc-type-current-title { font-weight: 700; font-size: 14.5px; color: var(--jdc-ink); }
.jdc-type-current-sub { font-size: 12px; color: var(--jdc-ink-3); margin-top: 2px; }
.jdc-type-current-toggle { font-size: 12.5px; color: var(--jdc-sage); font-weight: 700; white-space: nowrap; }
.jdc-caret { display: inline-block; transition: transform .2s; }
.jdc-type-current.open .jdc-caret { transform: rotate(180deg); }

.jdc-mat-accordion { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.jdc-mat-accordion.open { max-height: 2200px; padding-top: 10px; }
.jdc-mat-card {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid var(--jdc-line);
  border-radius: var(--jdc-radius); padding: 9px 12px;
  cursor: pointer; text-align: left; width: 100%; margin-bottom: 5px;
}
.jdc-mat-card:hover { border-color: var(--jdc-sage); }
.jdc-mat-card-photo { width: 42px; height: 32px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--jdc-cream); }
.jdc-mat-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jdc-mat-card-body { flex: 1; min-width: 0; }
.jdc-mat-card-title { font-weight: 700; font-size: 13.5px; color: var(--jdc-ink); }
.jdc-mat-card-sub { font-size: 11.5px; color: var(--jdc-ink-3); margin-top: 1px; line-height: 1.3; }
.jdc-mat-card-caret { color: var(--jdc-ink-3); font-size: 14px; transition: transform .2s; flex-shrink: 0; }
.jdc-mat-card.open { border-color: var(--jdc-sage); background: var(--jdc-sage-light); }
.jdc-mat-card.open .jdc-mat-card-caret { transform: rotate(180deg); }
.jdc-mat-variants { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 0 0 12px; }
.jdc-mat-variants.open { max-height: 800px; padding: 4px 0 10px 12px; }
.jdc-variant-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; background: #fff;
  border: 1px solid var(--jdc-line); border-radius: 8px;
  margin-bottom: 4px; cursor: pointer; text-align: left;
}
.jdc-variant-row:hover { border-color: var(--jdc-sage); background: var(--jdc-cream-2); }
.jdc-variant-row.current { border-color: var(--jdc-sage); background: var(--jdc-sage-light); box-shadow: 0 0 0 1px var(--jdc-sage) inset; }
.jdc-v-name { flex: 1; font-weight: 600; font-size: 13.5px; }
.jdc-v-price { font-size: 12.5px; color: var(--jdc-sage); font-weight: 600; white-space: nowrap; }
.jdc-v-current-tag { font-size: 10px; color: var(--jdc-sage); font-weight: 700; background: #fff; border: 1px solid var(--jdc-sage); border-radius: 999px; padding: 2px 8px; margin-right: 4px; }

/* ============ DIMENSIONS ============ */
.jdc-dim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jdc-dim-field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--jdc-ink-2); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.jdc-dim-input { position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--jdc-line); border-radius: var(--jdc-radius); overflow: hidden; }
.jdc-dim-input:focus-within { border-color: var(--jdc-sage); }
.jdc-dim-input input[type="number"] { flex: 1; border: none; padding: 14px; font-size: 16px; font-family: inherit; font-weight: 600; color: var(--jdc-ink); background: transparent; outline: none; min-width: 0; -moz-appearance: textfield; }
@media (min-width: 481px) { .jdc-dim-input input[type="number"] { font-size: 17px; } }
.jdc-dim-input input[type="number"]::-webkit-outer-spin-button,
.jdc-dim-input input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.jdc-dim-unit { padding-right: 14px; color: var(--jdc-ink-3); font-size: 13px; font-weight: 500; }
.jdc-dim-slider { width: 100%; margin-top: 8px; accent-color: var(--jdc-sage); height: 28px; touch-action: pan-y; }
.jdc-dim-help { font-size: 12px; color: var(--jdc-ink-3); margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.jdc-hint { display: inline-flex; align-items: center; gap: 6px; }
.jdc-area-pill { background: var(--jdc-cream); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--jdc-ink-2); }

.jdc-dim-field.jdc-invalid .jdc-dim-input { border-color: #C8554F; box-shadow: 0 0 0 1px #C8554F inset; }
.jdc-dim-field.jdc-invalid label { color: #C8554F; }
.jdc-dim-field-error { font-size: 11.5px; color: #C8554F; margin-top: 5px; display: none; }
.jdc-dim-field.jdc-invalid .jdc-dim-field-error { display: block; }

/* ============ COLOR GRID ============ */
.jdc-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 9px; }
@media (max-width: 380px) { .jdc-color-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 7px; } }
.jdc-swatch { cursor: pointer; text-align: center; }
.jdc-swatch-img {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--jdc-line);
  overflow: hidden; position: relative;
  transition: box-shadow .15s, transform .15s;
  background: var(--jdc-cream);
}
.jdc-swatch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jdc-swatch:hover .jdc-swatch-img { box-shadow: 0 0 0 1.5px var(--jdc-sage); transform: scale(1.04); }
.jdc-swatch.selected .jdc-swatch-img { box-shadow: 0 0 0 2.5px var(--jdc-sage); }
.jdc-swatch.selected .jdc-swatch-img::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.5));
}
.jdc-swatch-label { font-size: 11px; color: var(--jdc-ink-2); margin-top: 5px; line-height: 1.25; }

/* 10mm ladderband: scherp render (object-fit: contain) */
#jdcBandGrid[data-band-width="10mm"] .jdc-swatch-img { background: #fff; }
#jdcBandGrid[data-band-width="10mm"] .jdc-swatch-img img { object-fit: contain; padding: 3px; }

/* ============ SAMPLES CTA ============ */
.jdc-samples-cta { background: linear-gradient(135deg, var(--jdc-sage-light), #fff); border: 1.5px dashed var(--jdc-sage); border-radius: var(--jdc-radius); padding: 12px 14px; margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.jdc-samples-cta-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--jdc-sage); display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.jdc-samples-cta-text { flex: 1; min-width: 200px; }
.jdc-samples-cta-title { font-weight: 700; font-size: 13.5px; color: var(--jdc-ink); }
.jdc-samples-cta-sub { font-size: 11.5px; color: var(--jdc-ink-2); margin-top: 2px; }
.jdc-samples-cta a { background: var(--jdc-sage); color: #fff; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ============ PILLS (ladderband breedte) ============ */
.jdc-pill-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 480px) { .jdc-pill-row { grid-template-columns: repeat(2, 1fr); } }
.jdc-pill { background: #fff; border: 1.5px solid var(--jdc-line); border-radius: 999px; padding: 10px 6px; text-align: center; cursor: pointer; }
.jdc-pill:hover:not(.disabled) { border-color: var(--jdc-sage); }
.jdc-pill.selected { background: var(--jdc-ink); color: #fff; border-color: var(--jdc-ink); }
.jdc-pill.disabled { opacity: .4; cursor: not-allowed; }
.jdc-pill-title { font-weight: 700; font-size: 12.5px; line-height: 1.1; }
.jdc-pill-sub { font-size: 10px; opacity: .8; margin-top: 2px; }

.jdc-expand-children { display: none; padding-top: 14px; }
.jdc-expand-children.show { display: block; }

/* ============ PHOTO OPTION CARDS ============ */
.jdc-opt-grid-photo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.jdc-opt-grid-photo.jdc-cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) {
  .jdc-opt-grid-photo { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .jdc-opt-grid-photo.jdc-cols-3 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
@media (max-width: 360px) {
  .jdc-opt-grid-photo.jdc-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

.jdc-opt-photo {
  display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--jdc-line);
  border-radius: var(--jdc-radius); padding: 8px;
  cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .12s;
  position: relative;
}
.jdc-opt-photo:hover:not(.disabled) { border-color: var(--jdc-sage); background: var(--jdc-sage-light); }
.jdc-opt-photo.selected { border-color: var(--jdc-sage); background: var(--jdc-sage-light); box-shadow: 0 0 0 1px var(--jdc-sage) inset; }
.jdc-opt-photo.disabled { opacity: .45; cursor: not-allowed; }
.jdc-opt-photo-img {
  width: 100%; aspect-ratio: 4/3;
  border-radius: 8px; overflow: hidden;
  background: var(--jdc-cream); margin-bottom: 8px;
  transition: transform .2s;
}
.jdc-opt-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jdc-opt-photo:hover:not(.disabled) .jdc-opt-photo-img { transform: scale(1.02); }
.jdc-opt-photo-body { padding: 2px 4px 4px; display: flex; flex-direction: column; gap: 2px; }
.jdc-opt-photo-head { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; }
.jdc-opt-photo-title { font-weight: 600; font-size: 13.5px; line-height: 1.25; flex: 1; }
.jdc-opt-photo-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--jdc-line-2); flex-shrink: 0; position: relative; margin-top: 1px;
}
.jdc-opt-photo.selected .jdc-opt-photo-check { background: var(--jdc-sage); border-color: var(--jdc-sage); }
.jdc-opt-photo.selected .jdc-opt-photo-check::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}
.jdc-opt-photo-sub { font-size: 11.5px; color: var(--jdc-ink-3); line-height: 1.3; }
.jdc-opt-photo-price { font-size: 12px; color: var(--jdc-sage); font-weight: 600; }
.jdc-opt-photo-price.free { color: var(--jdc-ink-3); font-weight: 500; }
@media (max-width: 480px) {
  .jdc-opt-photo { padding: 6px; }
  .jdc-opt-photo-img { margin-bottom: 6px; border-radius: 6px; }
  .jdc-opt-photo-title { font-size: 12.5px; }
  .jdc-opt-photo-sub { font-size: 11px; }
  .jdc-opt-photo-price { font-size: 11.5px; }
}

/* ============ PLINT SUB-BLOCK ============ */
.jdc-plint-dims { background: var(--jdc-cream); border-radius: var(--jdc-radius); padding: 14px; margin-top: 12px; border: 1px solid var(--jdc-line); }
.jdc-plint-dims-title { font-size: 12px; font-weight: 700; color: var(--jdc-ink-2); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.jdc-plint-dims-help { font-size: 12px; color: var(--jdc-ink-3); margin-bottom: 10px; }
.jdc-required-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; background: #FFEDEC; color: #C8554F; border: 1px solid #F2CFCD; border-radius: 999px; padding: 2px 7px; text-transform: uppercase; letter-spacing: 0.04em; vertical-align: 1px; }

/* ============ VALIDATION BANNER ============ */
.jdc-validation-banner {
  background: #FFEDEC; border: 1px solid #F2CFCD;
  border-radius: var(--jdc-radius); padding: 14px 16px;
  margin-bottom: 14px; font-size: 13px; color: #7A2B27;
}
.jdc-validation-banner strong { font-weight: 700; display: block; margin-bottom: 6px; color: #5A1F1B; }
.jdc-validation-banner ul { list-style: none; margin: 0; padding: 0; }
.jdc-validation-banner li { padding: 4px 0; display: flex; align-items: flex-start; gap: 8px; }
.jdc-validation-banner li::before { content: "○"; color: #C8554F; font-weight: 700; flex-shrink: 0; }
.jdc-validation-banner button { background: none; border: none; padding: 0; color: #7A2B27; font-family: inherit; font-size: 13px; text-align: left; cursor: pointer; text-decoration: underline; }

/* ============ OVERVIEW ============ */
.jdc-overview-card { background: #fff; border: 1.5px solid var(--jdc-sage); border-radius: var(--jdc-radius); padding: 16px 18px; }
.jdc-overview-card h4 { font-family: 'Fraunces', serif; font-size: 18px; margin-bottom: 12px; }
.jdc-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed var(--jdc-line); }
.jdc-summary-row:last-of-type { border-bottom: none; }
.jdc-summary-row .jdc-lbl { color: var(--jdc-ink-3); flex-shrink: 0; }
.jdc-summary-row .jdc-val { color: var(--jdc-ink); font-weight: 600; text-align: right; }
.jdc-overview-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--jdc-ink); }
.jdc-overview-total .jdc-lbl { font-size: 13.5px; color: var(--jdc-ink-2); font-weight: 600; }
.jdc-overview-total .jdc-val { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: var(--jdc-ink); }

/* ============ STICKY BAR ============ */
.jdc-sticky-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--jdc-line);
  box-shadow: 0 -4px 16px rgba(31,36,33,.06);
  z-index: 80; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.jdc-sticky-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jdc-sticky-left { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1; }
.jdc-sticky-summary { font-size: 12.5px; color: var(--jdc-ink-3); line-height: 1.4; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.jdc-sticky-summary strong { color: var(--jdc-ink); font-weight: 600; }
.jdc-sticky-price { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 700; color: var(--jdc-ink); line-height: 1; }
.jdc-sticky-price-label { font-size: 10.5px; color: var(--jdc-ink-3); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 3px; }
.jdc-sticky-cta {
  background: var(--jdc-sage); color: #fff; border: none;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; font-family: inherit;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; transition: background .15s;
}
.jdc-sticky-cta:hover { background: var(--jdc-sage-dark); }
.jdc-sticky-cta .jdc-cta-arrow { font-size: 17px; line-height: 1; }
.jdc-sticky-cta.disabled .jdc-cta-arrow,
.jdc-sticky-cta.loading .jdc-cta-arrow { display: none; }
.jdc-sticky-cta.disabled, .jdc-sticky-cta:disabled {
  background: var(--jdc-line-2); color: var(--jdc-ink-3); cursor: not-allowed;
}
.jdc-sticky-cta.disabled:hover { background: var(--jdc-line-2); }
.jdc-sticky-cta.loading { background: var(--jdc-sage-dark); }
@media (max-width: 700px) {
  .jdc-sticky-left { gap: 14px; }
  .jdc-sticky-summary { display: none; }
  .jdc-sticky-price { font-size: 22px; }
  .jdc-sticky-cta { padding: 12px 18px; font-size: 13.5px; }
}
@media (max-width: 380px) {
  .jdc-sticky-bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .jdc-sticky-cta { padding: 11px 14px; font-size: 12.5px; }
  .jdc-sticky-price { font-size: 19px; }
  .jdc-sticky-price-label { font-size: 9.5px; }
}

/* Body-padding wanneer sticky-bar zichtbaar is */
body.jdc-has-sticky-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }

/* === PRODUCT-VIEW siblings (breadcrumb, prodDesc) ook centreren =============== */
.view[data-view="product"] > #prodBreadcrumb,
.view[data-view="product"] > #prodDesc,
.view[data-view="product"] > #prodRelated {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
@media (max-width: 540px) {
  .view[data-view="product"] > #prodBreadcrumb,
  .view[data-view="product"] > #prodDesc,
  .view[data-view="product"] > #prodRelated {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* === FASE 2 POST-DEPLOY FIXES ============================================ */
/* Verberg legacy WhatsApp floating action button (SAVE67) — vervangen door
   de "In winkelwagen"-CTA in de sticky-bar onderaan elke product-pagina */
.jd-wa-btn { display: none !important; }

/* Sticky-bar moet boven alle andere floating elements staan (was z-index 80,
   te laag t.o.v. .jd-wa-btn=9998 en .jd-ks-cta-pill=9997 uit CLAUDE.md z-index-tabel) */
.jdc-sticky-bar { z-index: 9999 !important; }

/* Body padding-bottom voor sticky-bar (anders verbergt 'ie de laatste content) */
body { padding-bottom: 96px !important; }
@media (max-width: 700px) {
  body { padding-bottom: 84px !important; }
}


/* === FASE 2 EXTRA MOBILE FIXES (post-deploy) =============================== */
/* Voorkom horizontale overflow op product-view (sommige descendents zoals
   sliders/grids kunnen toch breder uitlopen dan parent) */
.view[data-view="product"] {
  /* GEEN overflow-x:hidden — breekt sticky bij .jdc-gallery. Constrain via children's max-width. */
  max-width: 100vw;
}
.view[data-view="product"] > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Op smal scherm: configurator card mag iets minder padding hebben */
@media (max-width: 480px) {
  .jdc-root { padding: 12px 12px 20px; }
  .jdc-configurator { padding: 14px 12px; }
}

/* Dim-row op mobile: stack op heel smal scherm */
@media (max-width: 380px) {
  .jdc-dim-row { grid-template-columns: 1fr; gap: 14px; }
}

/* Sliders mogen niet breder dan parent */
.jdc-dim-slider { max-width: 100%; }

/* Sticky bar inhoud op smal scherm: compacter */
@media (max-width: 480px) {
  .jdc-sticky-bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .jdc-sticky-left { gap: 10px !important; }
  .jdc-sticky-summary { display: none; }
  .jdc-sticky-price { font-size: 22px !important; }
  .jdc-sticky-cta { padding: 11px 16px; font-size: 13.5px; }
}

/* iframes en images binnen jdc moeten responsief */
.jdc-root img, .jdc-root iframe, .jdc-root video {
  max-width: 100%;
  height: auto;
}

/* Mobile rail: pas zicht/scroll aan */
@media (max-width: 720px) {
  .jdc-cfg-rail { margin-left: -4px; margin-right: -4px; padding: 6px 4px; }
}


/* === FASE 2 MOBILE PHOTO FIX ============================================== */
/* Op mobile: foto-galerij mag niet meer dan ~50vh innemen,
   anders moet user veel scrollen om bij de configurator te komen */
@media (max-width: 980px) {
  .jdc-gallery-hero { aspect-ratio: 4/2.6; max-height: 50vh; }
  .jdc-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .jdc-thumb { aspect-ratio: 1/0.65; }
}
@media (max-width: 540px) {
  .jdc-gallery-hero { aspect-ratio: 4/2.4; max-height: 42vh; }
}


/* === FASE 2 CRITICAL MOBILE GRID FIX =======================================
   Probleem: grid-template-columns: 1fr op mobile geeft single-column,
   maar children met min-width:auto dwingen de kolom om groter te worden
   dan parent als content (bv. lange URL, foto, rail) min-content > parent.
   Fix: minmax(0, 1fr) + min-width:0 op alle grid items.
   ========================================================================== */

@media (max-width: 980px) {
  .jdc-layout { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 720px) {
  .jdc-cfg-body { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Force min-width:0 op ALLE grid containers + items binnen jdc-root,
   anders forceren intrinsic content-min-widths de grid om te groeien */
.jdc-layout, .jdc-cfg-body, .jdc-opt-grid, .jdc-opt-grid-photo,
.jdc-pill-row, .jdc-color-grid, .jdc-dim-row, .jdc-cfg-main, .jdc-cfg-rail-col {
  min-width: 0;
}
.jdc-layout > *, .jdc-cfg-body > *, .jdc-opt-grid > *, .jdc-opt-grid-photo > *,
.jdc-pill-row > *, .jdc-color-grid > *, .jdc-dim-row > * {
  min-width: 0;
}

/* Force ALLE images en media in jdc-root klein blijven */
.jdc-root img, .jdc-root picture, .jdc-root video, .jdc-root iframe,
.jdc-root canvas, .jdc-root svg {
  max-width: 100%;
  height: auto;
}

/* Sliders mogen niet breder dan parent — was al toegevoegd maar belangrijker maken */
.jdc-dim-slider { width: 100%; max-width: 100%; }
.jdc-dim-input { max-width: 100%; }
.jdc-dim-field { min-width: 0; }

/* Rail horizontale-scroll op mobile: voorkom dat het parent stretcht */
@media (max-width: 720px) {
  .jdc-cfg-rail { max-width: 100%; box-sizing: border-box; overflow: hidden; }
  .jdc-cfg-rail ol { max-width: 100%; }
}

/* Configurator-card mag ook niet breder dan parent */
.jdc-configurator, .jdc-gallery { max-width: 100%; box-sizing: border-box; }

/* Sticky-bar moet zichtbaar zijn — extra safety voor z-index conflicten */
.jdc-sticky-bar { position: fixed !important; bottom: 0 !important; }


/* === FASE 2 CRITICAL CTA-VISIBILITY FIX =====================================
   .jdc-sticky-bar is SIBLING van .jdc-root (niet child), dus var(--jdc-sage)
   resolvete naar niets → knop werd transparent. Definieer alle gebruikte
   variabelen ook op .jdc-sticky-bar zelf. Plus hardcode achtergrond als
   fallback voor het geval var() opnieuw faalt. */
.jdc-sticky-bar {
  --jdc-sage: #6B8F71;
  --jdc-sage-dark: #557459;
  --jdc-sage-light: #E8EFE9;
  --jdc-ink: #1F2421;
  --jdc-ink-2: #3D4541;
  --jdc-ink-3: #6B7570;
  --jdc-line: #E5E5E0;
  --jdc-line-2: #D8D8D2;
  --jdc-radius: 12px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* Hardcode CTA-button styling voor garantie zelfs als CSS-vars falen */
.jdc-sticky-cta {
  background: #6B8F71 !important;
  color: #fff !important;
  border: none !important;
  padding: 13px 22px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(107,143,113,0.3) !important;
}
.jdc-sticky-cta:hover { background: #557459 !important; }
.jdc-sticky-cta.disabled, .jdc-sticky-cta:disabled {
  background: #D8D8D2 !important;
  color: #6B7570 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}


/* === FASE 2 STICKY GALLERY GUARANTEE =======================================
   Desktop: gallery is sticky bij scroll. top:96px = onder de witte header (sticky
   menubar ~64px + 32px breathing room). Geeft mooie padding tussen header en
   foto wanneer je scrollt. */
@media (min-width: 981px) {
  .jdc-gallery {
    position: sticky !important;
    top: 96px !important;
    align-self: start;
  }
}

/* === FASE 2 GALLERY CAPTION ================================================
   Subtiele tekstregel onder hero met materiaal + lameldikte (bv "PVC Faux-Wood
   · 50mm lamellen"). Zorgt voor visuele context wanneer de foto sticky in beeld
   blijft tijdens scrollen. */
.jdc-gallery-caption {
  font-size: 12.5px;
  color: var(--jdc-ink-3);
  margin: 10px 2px 0;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-align: left;
}
@media (max-width: 480px) {
  .jdc-gallery-caption { font-size: 12px; margin-top: 8px; }
}


/* === FASE 2 LADDERBAND 10MM SCHERP =========================================
   De 10mm tape-foto's zijn server-side small → cover schaalt op → wazig.
   Fix: object-fit:contain alleen voor de 10mm-grid (parent heeft data-band-width="10mm").
   25mm en alle andere swatches blijven cover (zijn scherp genoeg op native size). */
#jdcBandGrid[data-band-width="10mm"] .jdc-swatch-img {
  background: #fff;
}
#jdcBandGrid[data-band-width="10mm"] .jdc-swatch-img img {
  object-fit: contain !important;
  padding: 3px;
}


/* === FASE 2 INLINE-CTA =====================================================
   Rustig afsluitpunt onder de configurator-widget. Toont prijs + bestel-knop
   als natuurlijk eindpunt van de productpagina. Wanneer dit blok in viewport
   komt fadet de sticky-bar onderaan weg (zie IntersectionObserver in JS +
   body.jdc-inline-cta-visible regel beneden), zodat er nooit twee CTA's
   tegelijk zichtbaar zijn. */
.jdc-inline-cta-wrap {
  margin: 32px 0 8px;
}
@media (max-width: 540px) {
  .jdc-inline-cta-wrap { margin-top: 24px; }
}

.jdc-inline-cta {
  background: linear-gradient(135deg, #FAFAF7 0%, #F4F4F1 100%);
  border: 1px solid var(--jdc-line);
  border-radius: var(--jdc-radius-lg);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  min-width: 0;
  box-shadow: 0 1px 2px rgba(31,36,33,0.03);
}
@media (max-width: 720px) {
  .jdc-inline-cta {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px 18px;
    gap: 16px;
  }
}

.jdc-inline-cta-left { min-width: 0; }

.jdc-inline-cta-eyebrow {
  font-size: 11.5px;
  color: var(--jdc-sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}

.jdc-inline-cta-pricerow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.jdc-inline-cta-pricelabel {
  font-size: 12px;
  color: var(--jdc-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.jdc-inline-cta-price {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 5.5vw, 38px);
  font-weight: 700;
  color: var(--jdc-ink);
  line-height: 1;
  letter-spacing: -0.01em;
}

.jdc-inline-cta-meta {
  font-size: 13px;
  color: var(--jdc-ink-3);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.jdc-inline-cta-meta strong {
  color: var(--jdc-ink);
  font-weight: 600;
}
.jdc-inline-cta-meta-sep {
  color: var(--jdc-line-2);
}

.jdc-inline-cta-btn {
  background: #6B8F71 !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 28px !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 15.5px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  transition: background .15s, transform .15s, box-shadow .15s !important;
  box-shadow: 0 3px 10px rgba(107,143,113,0.28) !important;
  min-height: 52px;
}
.jdc-inline-cta-btn:hover {
  background: #557459 !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(107,143,113,0.34) !important;
}
.jdc-inline-cta-btn:active {
  transform: translateY(0);
}
.jdc-inline-cta-btn.disabled,
.jdc-inline-cta-btn:disabled {
  background: #D8D8D2 !important;
  color: #6B7570 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}
.jdc-inline-cta-btn.disabled:hover {
  background: #D8D8D2 !important;
}
.jdc-inline-cta-btn .jdc-cta-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform .15s;
}
.jdc-inline-cta-btn:hover .jdc-cta-arrow {
  transform: translateX(3px);
}
.jdc-inline-cta-btn.disabled .jdc-cta-arrow,
.jdc-inline-cta-btn.loading .jdc-cta-arrow {
  display: none;
}
.jdc-inline-cta-btn.loading {
  background: #557459 !important;
}

@media (max-width: 720px) {
  .jdc-inline-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 20px !important;
    font-size: 15px !important;
  }
}

/* === FASE 2 STICKY-BAR FADE WHEN INLINE-CTA VISIBLE =========================
   IntersectionObserver in JS togglet body.jdc-inline-cta-visible.
   Sticky-bar fadet uit zodat er nooit twee CTA's tegelijk in beeld zijn. */
.jdc-sticky-bar {
  transition: opacity .22s ease, transform .22s ease;
}
body.jdc-inline-cta-visible .jdc-sticky-bar {
  opacity: 0 !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s !important;
}
