/* Aperçu automatique des options (assets/option-preview.js) */
.wy-preview { background: #fff; border: 2px solid var(--wy-black, #0E0E0E); border-radius: 20px; padding: 16px 18px 14px; margin: 0 0 20px; font-family: var(--wy-sans, system-ui, sans-serif); color: var(--wy-text, #0E1A14); }
.wy-preview[hidden] { display: none; }
.wy-preview__title { font: 800 18px var(--wy-disp, var(--wy-sans, system-ui)); letter-spacing: -.01em; margin: 0 0 10px; }
.wy-preview__svg { background: var(--wy-bg, #F7F7F3); border-radius: 14px; padding: 10px 6px 0; }
.wy-preview__svg svg { display: block; height: auto; }
.wy-preview .wyp-dim { font: 700 12px var(--wy-sans, system-ui); fill: var(--wy-black, #0E0E0E); }
.wy-preview .wyp-ref { font: 600 11px var(--wy-sans, system-ui); fill: var(--wy-muted, #5E6E65); }
.wy-preview__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.wy-preview__list li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.wy-preview__list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--wy-g, #22A55A); }
.wy-preview__note { margin: 10px 0 0; font-size: 12px; color: var(--wy-muted, #5E6E65); }

/* Ordinateur : colonne de gauche, sous la photo, reste visible pendant le défilement */
.wy-product-page div.product.wy-has-preview { grid-template-rows: auto 1fr; }
.wy-product-page div.product.wy-has-preview > .woocommerce-product-gallery { grid-row: 1; }
.wy-product-page div.product.wy-has-preview > .summary { grid-row: 1 / span 2; }
.wy-product-page div.product.wy-has-preview > .wy-preview-cell { grid-column: 1; grid-row: 2; align-self: stretch; }
.wy-preview-cell .wy-preview { position: sticky; top: var(--wyp-top, 100px); margin: 0; }

/* Photos des finitions choisies */
.wy-preview__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 14px 0 0; }
.wy-preview__ph { margin: 0; }
.wy-preview__zoom { display: block; width: 100%; padding: 0; border: 2px solid var(--wy-black, #0E0E0E); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; transition: transform .15s ease-out; }
.wy-preview__zoom:active { transform: scale(.97); }
.wy-preview__zoom img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.wy-preview__ph figcaption { font-size: 12px; font-weight: 700; line-height: 1.3; margin-top: 5px; }
.wy-preview__ph.is-open { grid-column: 1 / -1; order: -1; }
.wy-preview__ph.is-open .wy-preview__zoom { cursor: zoom-out; }
.wy-preview__photos[hidden] { display: none; }
