/* Configurator: 3D-weergave, keuzekaarten en kleurrondjes. Kleuren via de variabelen van het
   thema (--merk, --lijn, --grijs), met een terugval voor als die er niet zijn. */

.eiken-3d-kolom { align-self: stretch; }
.eiken-3d-plak { position: sticky; top: 20px; }
/* Het beeld blijft staan tijdens het kiezen; de lange optiekolom scrolt gewoon mee. */
.winkel div.product:has(.eiken-3d-kolom) .summary { position: static; }
.eiken-3d { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #ece5db; }
.eiken-3d__beeld { position: absolute; inset: 0; }
.eiken-3d__beeld canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; touch-action: pan-y; }
.eiken-3d__maat { position: absolute; left: 14px; top: 12px; background: rgba(255, 255, 255, .9); padding: 4px 10px; border-radius: 3px; font-weight: 700; font-size: 14px; }
.eiken-3d__maat:empty { display: none; }
.eiken-3d__draai { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: #6b6258; }
.eiken-3d__noot { font-size: 13px; color: var(--grijs, #626262); margin: 8px 0 0; }

.eiken-kaarten { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.eiken-kaart { position: relative; display: block; border: 1px solid var(--lijn, #e9e9e9); border-radius: 4px; background: #fff; padding: 9px 6px 8px; text-align: center; cursor: pointer; font-size: 12.5px; line-height: 1.25; }
.eiken-kaart svg { width: 100%; height: 34px; display: block; margin-bottom: 5px; }
.eiken-kaart small { display: block; color: var(--grijs, #626262); font-size: 11.5px; margin-top: 2px; }
.eiken-kaart:hover { border-color: #cfcfcf; }
.eiken-kaart:has(input:checked) { border-color: var(--merk, #e8661a); box-shadow: 0 0 0 1px var(--merk, #e8661a); background: #fffaf5; }
.eiken-kaart:has(input:focus-visible), .eiken-staal:has(input:focus-visible) i { outline: 2px solid var(--merk, #e8661a); outline-offset: 2px; }

.eiken-stalen { display: flex; flex-wrap: wrap; gap: 10px 6px; }
.eiken-staal { position: relative; width: 66px; cursor: pointer; font-size: 11.5px; text-align: center; line-height: 1.2; }
.eiken-staal i { display: block; width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 5px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--lijn, #e9e9e9); }
.eiken-staal:has(input:checked) i { box-shadow: 0 0 0 2px var(--merk, #e8661a); }
.eiken-staal small { display: block; color: var(--grijs, #626262); }

/* Het echte keuzerondje blijft bestaan voor toetsenbord en schermlezer, maar is onzichtbaar. */
.eiken-kaart input, .eiken-staal input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

@media (max-width: 860px) {
  .eiken-3d-plak { position: static; }
}

/* Eigen muurfoto */
.eiken-muur { margin-top: 12px; }
.eiken-muur__start { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--inkt, #1a1a1a); border-radius: 3px; padding: 10px 16px; font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; }
.eiken-muur__start:hover { background: var(--zwart, #000); color: #fff; }
.eiken-muur__start[hidden], .eiken-muur__balk[hidden], .eiken-muur__meet[hidden] { display: none; }
.eiken-muur__uitleg { font-size: 14px; margin: 0 0 8px; }
.eiken-muur__knoppen { display: flex; flex-wrap: wrap; gap: 8px; }
.eiken-muur__knoppen button, .eiken-muur__knoppen label, .eiken-muur__meet button { border: 1px solid var(--lijn, #e9e9e9); background: #fff; border-radius: 3px; padding: 8px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.eiken-muur__knoppen button:hover, .eiken-muur__knoppen label:hover { border-color: #bdbdbd; }
.eiken-muur__meet { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; flex-wrap: wrap; }
.eiken-muur__meet input { width: 80px; padding: 8px; border: 1px solid var(--lijn, #e9e9e9); border-radius: 3px; font: inherit; }
.eiken-muur__meet button { background: var(--merk, #e8661a); border-color: var(--merk, #e8661a); color: #fff; font-weight: 700; }
.eiken-muur__privacy { font-size: 12px; color: var(--grijs, #626262); margin: 8px 0 0; }
.is-foto .eiken-3d__draai { display: none; }
.is-foto .eiken-3d { background: #222; }

/* Maatvelden: label, veld en "cm" op één regel (het thema liet "cm" doorlopen naar een nieuwe regel). */
.eiken-configurator .eiken-maat label { flex-wrap: nowrap; }
.eiken-configurator .eiken-maat label input, .eiken-configurator .eiken-maat label select { flex: 1 1 auto; width: auto; min-width: 0; }
/* 0.5.0 uitvoering van een bundel: kaarten als links, met ruimte voor een langere naam */
.eiken-uitvoeringen { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.eiken-uitvoeringen .eiken-kaart { color: inherit; text-decoration: none; text-align: left; padding: 10px 11px; font-size: 13px; }
.eiken-kaart.is-gekozen { border-color: var(--merk, #e8661a); box-shadow: 0 0 0 1px var(--merk, #e8661a); background: #fffaf5; }
.eiken-uitvoering__soort { margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--grijs, #626262); }
/* 0.5.1 uitleg achter een i naast de groepsnaam */
.eiken-uitleg { display: inline-block; vertical-align: middle; margin-left: 6px; position: relative; }
.eiken-uitleg summary { list-style: none; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--grijs, #626262); color: var(--grijs, #626262); font: italic 600 12px/16px Georgia, serif; text-align: center; }
.eiken-uitleg summary::-webkit-details-marker { display: none; }
.eiken-uitleg[open] summary, .eiken-uitleg summary:hover { border-color: var(--merk, #e8661a); color: var(--merk-op, #ae4d14); }
.eiken-uitleg p { position: absolute; left: -40px; top: 24px; z-index: 5; width: min(270px, 80vw); box-shadow: 0 4px 14px rgba(0,0,0,.08); margin: 0; padding: 9px 11px; background: #fffaf5; border: 1px solid var(--lijn, #e9e9e9); border-radius: 4px; font-size: 13px; line-height: 1.45; }
/* 0.6.0 wisselknop dag en avond, rechtsboven in het beeld */
.eiken-3d__stemming { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(255, 255, 255, .92); border: 0; border-radius: 3px; padding: 5px 11px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: #1a1a1a; }
.eiken-3d__stemming:hover { background: #fff; }
/* 0.10.3 lege muur of keuken: twee knoppen naast elkaar */
.eiken-3d__decor { position: absolute; left: 12px; bottom: 10px; z-index: 2; display: flex; background: rgba(255, 255, 255, .92); border-radius: 4px; padding: 3px; gap: 3px; }
.eiken-3d__decor[hidden] { display: none; }
.eiken-3d__decor button { border: 0; background: transparent; border-radius: 3px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; color: #1a1a1a; cursor: pointer; }
.eiken-3d__decor button[aria-pressed="true"] { background: #1a1a1a; color: #fff; }
.eiken-3d__decor button:hover:not([aria-pressed="true"]) { background: rgba(0, 0, 0, .06); }
.eiken-3d__stemming[hidden] { display: none; }
/* 0.6.1 klantfoto's op de categoriepagina Wandplanken */
.eiken-fotos { margin: 48px 0 16px; }
.eiken-fotos h2 { margin: 0 0 6px; }
.eiken-fotos > p { margin: 0 0 18px; color: var(--grijs, #626262); }
.eiken-fotos__raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eiken-foto { position: relative; display: block; border-radius: 6px; overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 1 / 1; background: #ece5db; }
.eiken-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.eiken-foto:hover img { transform: scale(1.04); }
.eiken-foto span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: 14px; font-weight: 600; background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,0)); }
@media (max-width: 900px) { .eiken-fotos__raster { grid-template-columns: repeat(2, 1fr); } }
/* 0.6.6 vinkjes (facetkanten) in dezelfde kaartstijl als de keuzes */
.eiken-kaart:has(input[type=checkbox]:checked) { border-color: var(--merk, #e8661a); box-shadow: 0 0 0 1px var(--merk, #e8661a); background: #fffaf5; }
.eiken-groep[hidden] { display: none; }
.eiken-kaart[hidden], .eiken-staal[hidden] { display: none !important; } /* 0.10.0 optie met voorwaarde */
.eiken-uitvoering__uitleg { margin: 8px 0 0; font-size: 13px; color: var(--grijs, #626262); }
.eiken-uitvoering__uitleg a { color: inherit; font-weight: 600; }
/* 0.8.0 alle keuzekaarten links uitgelijnd en breed genoeg, zoals de uitvoeringen; geen woord meer buiten het kaartje */
.eiken-kaarten:not(.eiken-kaarten--icoon) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.eiken-kaarten:not(.eiken-kaarten--icoon) .eiken-kaart { text-align: left; padding: 10px 11px; font-size: 13px; }
.eiken-kaart { overflow-wrap: break-word; }
.eiken-kaart__uitleg { display: block; font-style: normal; color: var(--grijs, #626262); font-size: 12px; line-height: 1.35; margin-top: 3px; }
/* 0.8.0 kaart met fotootje: foto links, naam, uitleg en prijs rechts */
.eiken-kaarten--foto { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important; }
.eiken-kaarten--foto .eiken-kaart { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.eiken-kaart__foto { width: 44px; height: 44px; border-radius: 3px; background: #f4f1ec; overflow: hidden; }
.eiken-kaart__foto img { width: 44px; height: 44px; object-fit: contain; display: block; background: #fff; }
@media (max-width: 480px) { .eiken-kaarten--foto { grid-template-columns: 1fr !important; } }
/* 0.8.2 maten van de inkepingen */
.eiken-inkepingen { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.eiken-inkeping { border: 1px solid var(--lijn, #e9e9e9); border-radius: 4px; background: #fff; padding: 8px 11px 10px; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.eiken-inkeping legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.eiken-inkeping label { display: flex; align-items: center; gap: 6px; font-size: 13px; flex: 0 0 auto; }
.eiken-configurator .eiken-inkeping input { width: 60px; flex: 0 0 60px; min-width: 60px; padding: 6px 8px; border: 1px solid var(--lijn, #e9e9e9); border-radius: 3px; font: inherit; }
.eiken-inkeping__noot { font-size: 12.5px; color: var(--grijs, #626262); margin: 6px 0 0; line-height: 1.45; }
/* 0.8.2 dikte van de vensterbank in het overzicht */
.eiken-dikte { display: inline-block; margin: 2px 0 6px; padding: 2px 8px; border-radius: 3px; background: #fffaf5; border: 1px solid var(--lijn, #e9e9e9); font-size: 13px; font-weight: 600; }

/* 0.9.0 foto of schets meesturen */
.eiken-configurator .eiken-bestand { display: block; width: 100%; max-width: 100%; padding: 8px; border: 1px dashed var(--lijn, #e9e9e9); border-radius: 4px; background: #fff; font: inherit; font-size: 14px; box-sizing: border-box; }
.eiken-kaart__model { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; margin-bottom: 6px; } /* 0.10.0 foto van de beugel */

/* 0.10.8 spots nog niet gekozen: korte aanwijzing, weg zodra er een keuze is. */
.eiken-kies-eerst { margin: 0 0 8px; font-size: 14px; color: #8a5a1f; }
.eiken-groep:has(input:checked) .eiken-kies-eerst { display: none; }

/* 0.12.4 klein label Advies achter een uitvoering (Jan 16-11-2026) */
.eiken-kaart__advies { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--merk, #e8661a); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; line-height: 1.5; vertical-align: 1px; }
