/* TopTex productpagina - texworx.be (accent #e9500e) */
:root { --tt-accent: #e9500e; --tt-ink: #1f1d1b; --tt-muted: #6b665f; --tt-line: #e6e1da; --tt-soft: #fbf3ee; }

.toptex-prijs-op-aanvraag { font-weight: 600; color: var(--tt-accent); }

.toptex-config { margin: 8px 0 24px; font-size: 15px; color: var(--tt-ink); }
.toptex-config__ref { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; color: var(--tt-muted); font-size: 14px; }
.toptex-config__brand { font-weight: 700; color: var(--tt-ink); text-transform: uppercase; letter-spacing: .04em; }
.toptex-config__row { margin-bottom: 16px; }
.toptex-config__label { font-weight: 600; margin-bottom: 8px; }
.toptex-config__current { font-weight: 400; color: var(--tt-muted); margin-left: 6px; }
.toptex-config__hint { margin: 6px 0 0; font-size: 13px; color: var(--tt-muted); }

.toptex-swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toptex-swatch { width: 46px; height: 46px; border-radius: 8px; border: 2px solid var(--tt-line); background: #fff; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 2px; transition: border-color .15s, transform .15s; }
.toptex-swatch img { width: 100%; height: 100%; object-fit: contain; display: block; }
.toptex-swatch__dot { width: 100%; height: 100%; border-radius: 6px; display: block; }
.toptex-swatch:hover { border-color: #c9c2b8; transform: translateY(-1px); }
.toptex-swatch.is-active { border-color: var(--tt-accent); box-shadow: 0 0 0 2px rgba(233,80,14,.2); }
.toptex-swatch:focus-visible { outline: 2px solid var(--tt-accent); outline-offset: 2px; }


.toptex-config__total { margin: 10px 0 0; font-size: 14px; }
.toptex-config__total strong { color: var(--tt-accent); }
.toptex-quote__recap { padding: 10px 12px; background: #fff; border: 1px solid var(--tt-line); border-radius: 8px; margin-bottom: 14px; font-size: 14px; }

.toptex-config__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.toptex-fiche-fab { font-size: 13px; color: var(--tt-muted); text-decoration: underline; }
.toptex-fiche-fab:hover { color: var(--tt-accent); }
.toptex-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 2px solid var(--tt-accent); transition: background .15s, color .15s, transform .15s; }
.toptex-btn--primary { background: var(--tt-accent); color: #fff !important; }
.toptex-btn--primary:hover { background: #cf460c; border-color: #cf460c; color: #fff; }
.toptex-btn--ghost { background: #fff; color: var(--tt-accent) !important; }
.toptex-btn--ghost:hover { background: var(--tt-soft); }
.toptex-btn:disabled { opacity: .6; cursor: wait; }

.toptex-quote { margin-top: 20px; padding: 20px; border: 1px solid var(--tt-line); border-radius: 12px; background: var(--tt-soft); }
.toptex-quote[hidden] { display: none; }
.toptex-quote__title { margin: 0 0 4px; font-size: 20px; }
.toptex-quote__intro { margin: 0 0 14px; color: var(--tt-muted); font-size: 14px; }
.toptex-quote__sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.toptex-qty { display: flex; flex-direction: column; gap: 4px; width: 78px; }
.toptex-qty span { font-size: 12.5px; font-weight: 600; text-align: center; }
.toptex-qty input { width: 100%; padding: 8px 6px; text-align: center; border: 1px solid var(--tt-line); border-radius: 6px; background: #fff; font-size: 15px; }
.toptex-quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.toptex-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.toptex-field span { font-size: 13px; font-weight: 600; }
.toptex-field input, .toptex-field textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--tt-line); border-radius: 6px; background: #fff; font-size: 15px; font-family: inherit; }
.toptex-field input:focus, .toptex-field textarea:focus, .toptex-qty input:focus { outline: none; border-color: var(--tt-accent); box-shadow: 0 0 0 2px rgba(233,80,14,.18); }
.toptex-field--full { grid-column: 1 / -1; }
.toptex-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.toptex-quote__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.toptex-quote__msg { margin: 12px 0 0; font-weight: 600; }
.toptex-quote__msg.is-ok { color: #2e7d32; }
.toptex-quote__msg.is-error { color: #c62828; }
@media (max-width: 640px) { .toptex-quote__grid { grid-template-columns: 1fr; } }

/* Tabs: specificaties en maattabel */
.toptex-table-wrap { overflow-x: auto; }
.toptex-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 12px; }
.toptex-table th, .toptex-table td { padding: 8px 10px; border-bottom: 1px solid var(--tt-line); text-align: left; vertical-align: top; }
.toptex-table--specs th { width: 180px; color: var(--tt-muted); font-weight: 600; }
.toptex-table--sizes thead th { background: var(--tt-soft); font-weight: 700; white-space: nowrap; }
.toptex-table--sizes tbody th { font-weight: 700; }
.toptex-table--sizes td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.toptex-note { font-size: 13px; color: var(--tt-muted); }
.toptex-specs__h { margin: 18px 0 8px; font-size: 16px; }
.toptex-picto { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.toptex-picto li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--tt-line); border-radius: 999px; font-size: 13.5px; background: #fff; }
.toptex-picto img { width: 22px; height: 22px; object-fit: contain; }
.toptex-specs__fiche { margin-top: 14px; }

/* Vierkant beeldkader in rasters: beelden zijn al vierkant, kader houdt verhouding vast */
.woocommerce ul.products li.product .toptex-bekijk { margin-top: 8px; }

/* FAQ (AEO) */
.toptex-faq__item { margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid var(--tt-line); }
.toptex-faq__item:last-child { border-bottom: 0; }
.toptex-faq__q { margin: 0 0 4px; font-size: 16px; }
.toptex-faq__a { color: var(--tt-ink); font-size: 14.5px; }

/* Voorraad-indicatie per maat */
.toptex-stock { display:block; margin-top:3px; font-size:10.5px; line-height:1.2; text-align:center; }
.toptex-stock--in  { color:#3d7a4a; }
.toptex-stock--low { color:#a3630f; }
.toptex-stock--out { color:#8a8078; }
.toptex-stock--in::before, .toptex-stock--low::before, .toptex-stock--out::before { content:"●"; margin-right:3px; }




.toptex-recap__tot { margin-top:8px; padding-top:6px; border-top:1px solid var(--tt-line); }

/* Invulraster kleur x maat (v0.9.4): alle kleuren in één keer invullen, geen aparte stap per kleur */
.toptex-matrix-wrap { overflow: auto; max-height: 560px; border: 1px solid var(--tt-line); border-radius: 10px; background: #fff; -webkit-overflow-scrolling: touch; }
.toptex-matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; margin: 0; }
.toptex-matrix th, .toptex-matrix td { padding: 6px 4px; border-bottom: 1px solid var(--tt-line); text-align: center; vertical-align: top; background: #fff; }
.toptex-matrix thead th { position: sticky; top: 0; z-index: 3; background: var(--tt-soft); font-weight: 700; font-size: 12.5px; white-space: nowrap; padding: 9px 4px; }
.toptex-matrix th.toptex-matrix__colour { position: sticky; left: 0; z-index: 2; text-align: left; min-width: 150px; padding-left: 10px; }
.toptex-matrix thead th.toptex-matrix__colour, .toptex-matrix tfoot th.toptex-matrix__colour { z-index: 4; }
.toptex-matrix tfoot th, .toptex-matrix tfoot td { position: sticky; bottom: 0; z-index: 3; background: var(--tt-soft); font-weight: 700; border-top: 1px solid var(--tt-line); border-bottom: 0; padding: 9px 4px; }
.toptex-matrix__colwrap { display: flex; align-items: center; gap: 8px; }
.toptex-matrix__sw { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--tt-line); object-fit: contain; background: #fff; flex: 0 0 auto; display: block; }
.toptex-matrix__name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.toptex-matrix__cell { min-width: 64px; }
.toptex-matrix__cell input { width: 58px; padding: 7px 4px; text-align: center; border: 1px solid var(--tt-line); border-radius: 6px; background: #fff; font-size: 14px; -moz-appearance: textfield; }
.toptex-matrix__cell input::-webkit-outer-spin-button, .toptex-matrix__cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.toptex-matrix__cell input:focus { outline: none; border-color: var(--tt-accent); box-shadow: 0 0 0 2px rgba(233,80,14,.18); }
.toptex-matrix__cell.is-out input { background: #faf8f5; }
.toptex-matrix__cell .toptex-stock { margin-top: 3px; cursor: default; }
.toptex-matrix__cell[data-tip] { cursor: help; }
.toptex-matrix__na { color: #c9c2b8; vertical-align: middle; }
.toptex-matrix__tot { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tt-muted); min-width: 54px; vertical-align: middle; }
.toptex-matrix__row.has-qty th .toptex-matrix__name, .toptex-matrix__row.has-qty td.toptex-matrix__tot { color: var(--tt-accent); }
.toptex-matrix__row.is-active th, .toptex-matrix__row.is-active td { background: #fff8f4; }
.toptex-matrix--flash .toptex-matrix__cell input { border-color: var(--tt-accent); box-shadow: 0 0 0 2px rgba(233,80,14,.28); }

/* Tooltip voorraad: volgende levering (datum + aantal) */
.toptex-tooltip { position: fixed; z-index: 99999; max-width: 280px; padding: 8px 11px; background: var(--tt-ink); color: #fff; font-size: 12.5px; line-height: 1.45; border-radius: 6px; white-space: pre-line; box-shadow: 0 4px 14px rgba(0,0,0,.18); pointer-events: none; }
.toptex-tooltip[hidden] { display: none; }

/* Samenvatting van de aanvraag (volgt het raster automatisch) */
.toptex-summary__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.toptex-summary__item { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid var(--tt-line); border-radius: 999px; background: #fff; font-size: 13.5px; }
.toptex-summary__sw { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--tt-line); object-fit: contain; background: #fff; flex: 0 0 auto; display: block; }
@media (max-width: 640px) { .toptex-matrix th.toptex-matrix__colour { min-width: 120px; } .toptex-matrix__name { max-width: 90px; } .toptex-matrix-wrap { max-height: 70vh; } }

/* Galerij: vierkante packshots, vaste verhouding voorkomt lay-outverschuiving bij het laden */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img { aspect-ratio: 1 / 1; width: 100%; height: auto; }
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image { aspect-ratio: 1 / 1; }

.toptex-config__title { font-size: 20px; line-height: 1.3; margin: 18px 0 8px; }

/* SEO-opbouw productpagina (09-11-2026): inhoud, kleurenstrook, kerngegevens, FAQ */
.twx-answer{font-size:1.05em;margin-bottom:1.2em}
.twx-toc{margin:0 0 1.5em;padding:.9em 1.2em;border:1px solid #e5e5e5;border-radius:6px;background:#fafafa}
.twx-toc h2{font-size:1em;margin:0 0 .4em}
.twx-toc ul{margin:0;padding-left:1.1em;columns:2;column-gap:2em}
.twx-toc li{margin:.15em 0;font-size:.95em}
.twx-colours{list-style:none;margin:0 0 1.5em;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px}
.twx-colours li{text-align:center;font-size:.85em}
.twx-colours img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;border:1px solid #eee;border-radius:6px;background:#fff;display:block;margin-bottom:.3em}
.twx-facts,.twx-props{margin:0 0 1.2em;padding-left:1.2em}
.twx-facts li,.twx-props li{margin:.2em 0}
.twx-related{padding:.8em 1em;background:#fff6f1;border-left:3px solid #E9500E}
@media (max-width:767px){.twx-toc ul{columns:1}}
.twx-colours small{display:block;color:#777;font-size:.8em}
.twx-related__img{float:left;margin:0 14px 6px 0}
.twx-related__img img{width:90px;height:90px;object-fit:contain;border:1px solid #eee;border-radius:6px;background:#fff}
.twx-related::after{content:"";display:table;clear:both}
