/* ==========================================================================
   Egalinemarkt: winkelstijl sinds 23-11-2026, naar het voorbeeld van Coolblue
   (Rick: "zoiets maken, maar niet 1:1"). Gemeten op coolblue.nl: Open Sans,
   tekst 13-15px, kop van de pagina in een slab-letter in de merkkleur, een
   merkbalk met wit zoekveld, een lichte menuband, zekerheden met groene
   vinkjes, kaarten met een dunne rand, groene koopknoppen met een donkere
   onderrand, hoekjes van 4px en geen schaduwen. Eigen: petrol in plaats van
   blauw, geel in plaats van oranje, Roboto Slab in plaats van hun eigen letter.
   Komt als laatste (inc/winkelstijl.php) en overschrijft theme.css en egm.css.
   Kleuren uit Instellingen > Winkel: --egm-merk (balk, links), --egm-zwart
   (koppen), --egm-geel (de knopkleur, nu groen), --egm-tekst, --egm-creme (vlak).
   ========================================================================== */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Roboto Slab";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/roboto-slab-latin-wght-normal.woff2") format("woff2");
}

:root {
    --ws-letter: "Open Sans", Arial, Helvetica, sans-serif;
    --ws-kopletter: "Roboto Slab", Georgia, "Times New Roman", serif;
    --ws-geel: #ffc20e;
    --ws-vink: #1d8a3a;
    --ws-lijn: #d5dfe1;
    --ws-lijn-licht: #e6edee;
    --ws-grijs: #5b6469;
    --ws-radius: 4px;
    --vg-font: var(--ws-letter);
    --vg-radius: var(--ws-radius);
    --vs-radius: var(--ws-radius);
    --vg-shadow: none;
    /* Het groen van vinkjes en knoppen in vloershop-core (was #22c55e). */
    --vs-green: var(--ws-vink);
    --vs-color-success: var(--ws-vink);
}

/* ---- Basis ---- */
body {
    font-family: var(--ws-letter);
    font-size: 14px;
    line-height: 1.55;
    color: var(--egm-tekst);
    background: #fff;
}
h1, h2, h3, h4 { font-family: var(--ws-letter); font-weight: 700; letter-spacing: 0; color: var(--egm-tekst); }
h1 { font-family: var(--ws-kopletter); font-weight: 500; font-size: 28px; line-height: 1.25; color: var(--egm-zwart); }
h2 { font-size: 20px; line-height: 1.3; }
h3 { font-size: 16px; line-height: 1.35; }
a { color: var(--egm-merk); text-decoration: none; }
a:hover { color: var(--egm-zwart); text-decoration: underline; }
.vg-container { max-width: 1200px; padding-left: 16px; padding-right: 16px; }
.vg-content, body.woocommerce-cart .vg-content { max-width: 1200px; }
:focus-visible { outline: 3px solid var(--ws-geel); outline-offset: 2px; }

/* ---- Knoppen en labels ---- */
.ws-knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--ws-radius);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.ws-knop:hover { text-decoration: none; }
.ws-knop--koop { background: var(--egm-geel); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.ws-knop--koop:hover { color: #fff; filter: brightness(0.93); }
.ws-knop--rand { background: #fff; color: var(--egm-merk); border: 1px solid var(--egm-merk); box-shadow: inset 0 -1px 0 var(--egm-merk); }
.ws-knop--rand:hover { color: var(--egm-zwart); background: var(--egm-creme); }
.ws-label {
    display: inline-block;
    align-self: flex-start;
    padding: 1px 8px;
    border-radius: 3px;
    background: var(--ws-geel);
    color: #1c2326;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
}
.ws-label--klein { font-size: 11px; padding: 0 6px; }
.ws-meer { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--egm-merk); }
.ws-meer .egm-icoon { stroke-width: 2.4; }

/* ---- Kop: merkbalk ---- */
.vg-header.ws-kop { position: sticky; top: 0; z-index: 600; background: #fff; box-shadow: none; border: 0; }
.admin-bar .vg-header.ws-kop { top: 32px; }
.ws-aankondiging { display: block; padding: 7px 16px; background: var(--egm-zwart); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.ws-aankondiging:hover { color: #fff; }
.ws-balk { background: var(--egm-merk); color: #fff; }
.ws-balk__rij { display: flex; align-items: center; gap: 22px; min-height: 60px; }
.ws-balk__menu { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.ws-logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: #fff; text-decoration: none; }
.ws-logo:hover { color: #fff; text-decoration: none; }
.ws-logo .egm-logo__teken svg { display: block; width: 46px; height: 23px; }
.ws-logo .egm-logo__woord { font-family: var(--ws-kopletter); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; color: #fff; line-height: 1; }
.ws-logo .egm-logo__beeld { max-height: 40px; width: auto; }
.ws-balk__alles {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 4px 2px;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.15;
    text-align: left;
    cursor: pointer;
}
.ws-balk__alles strong { display: block; font-size: 14px; }
.ws-balk__alles .egm-icoon { stroke-width: 2.4; }
/* Zoekbalk: de live zoekbalk van vloershop-core ([vs_search]) in onze vorm. */
.ws-zoek { flex: 1 1 auto; max-width: 560px; min-width: 0; }
.ws-zoek .vs-search { max-width: none; font-family: var(--ws-letter); --vs-radius: var(--ws-radius); }
.ws-zoek .vs-search .vs-search__toggle, .ws-zoek .vs-search .vs-search__close { display: none !important; }
.ws-zoek .vs-search .vs-search__form { display: flex !important; position: relative !important; inset: auto !important; padding: 0 !important; background: none !important; box-shadow: none !important; animation: none !important; }
.ws-zoek .vs-search .vs-search__input {
    height: 40px;
    padding: 0 48px 0 14px;
    border: 0;
    border-radius: var(--ws-radius);
    background: #fff;
    color: var(--egm-tekst);
    font-family: var(--ws-letter);
    font-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}
.ws-zoek .vs-search .vs-search__input::-webkit-search-cancel-button { display: none; }
.ws-zoek .vs-search .vs-search__input::placeholder { color: #7a8488; }
.ws-zoek .vs-search .vs-search__input:focus { border: 0; box-shadow: 0 0 0 3px var(--ws-geel); }
.ws-zoek .vs-search .vs-search__submit { right: 2px !important; width: 40px !important; height: 36px !important; border-radius: var(--ws-radius) !important; background: transparent !important; color: var(--egm-merk) !important; }
.ws-zoek .vs-search .vs-search__submit:hover, .ws-zoek .vs-search .vs-search__submit:focus-visible { background: var(--egm-creme) !important; }
.ws-zoek .vs-search .vs-search__submit svg { width: 22px !important; height: 22px !important; }
.ws-zoek .vs-search .vs-search__results {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0;
    right: 0;
    z-index: 700;
    max-height: min(70vh, 620px);
    padding: 8px;
    border: 1px solid var(--ws-lijn);
    border-radius: var(--ws-radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 35, 38, 0.18) !important;
    color: var(--egm-tekst);
    font-size: 14px;
}
.ws-zoek .vs-search .vs-search__results[hidden] { display: none !important; }
.ws-zoek .vs-search .vs-search__group-title { padding: 8px 8px 6px; color: var(--ws-grijs); font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.ws-zoek .vs-search .vs-search__item { border-radius: var(--ws-radius); color: var(--egm-tekst); }
.ws-zoek .vs-search .vs-search__item.is-active, .ws-zoek .vs-search .vs-search__item:hover { background: var(--egm-creme); }
.ws-zoek .vs-search .vs-search__name { color: var(--egm-merk); font-size: 14px; font-weight: 700; }
.ws-zoek .vs-search .vs-search__merk { color: var(--ws-grijs); }
.ws-zoek .vs-search .vs-search__price { color: var(--egm-tekst); font-weight: 700; }
.ws-zoek .vs-search .vs-search__card-img { border-radius: 0; background: #fff; object-fit: contain; }
.ws-zoek .vs-search .vs-search__cat-name { color: var(--egm-merk); font-weight: 600; }
.ws-zoek .vs-search .vs-search__all, .ws-zoek .vs-search .vs-search__all:link, .ws-zoek .vs-search .vs-search__all:visited { border-radius: var(--ws-radius) !important; background: var(--egm-geel) !important; color: #fff !important; font-weight: 700; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.ws-zoek .vs-search .vs-search__all:hover, .ws-zoek .vs-search .vs-search__all:focus, .ws-zoek .vs-search .vs-search__all.is-active { background: var(--egm-geel) !important; color: #fff !important; filter: brightness(0.93); }
.ws-zoek .vs-search .vs-search__item.vs-search__snel-knop { padding: 8px 12px; border: 1px solid var(--egm-merk); border-radius: var(--ws-radius); background: #fff; color: var(--egm-merk); font-size: 14px; font-weight: 600; }
.ws-zoek .vs-search .vs-search__item.vs-search__snel-knop:hover, .ws-zoek .vs-search .vs-search__item.vs-search__snel-knop.is-active { background: var(--egm-merk); color: #fff; }
.ws-zoek .vs-search .vs-search__loading { color: var(--ws-grijs); }

/* Paneel achter "Bekijk alle categorieën" (computer). */
.ws-balk { position: relative; }
.ws-balk__alles[aria-expanded="true"] .egm-icoon { transform: rotate(180deg); }
.ws-alles { position: absolute; top: 100%; left: 0; right: 0; z-index: 650; max-height: calc(100vh - 90px); overflow-y: auto; border-top: 1px solid var(--ws-lijn-licht); background: #fff; color: var(--egm-tekst); box-shadow: 0 14px 30px rgba(28, 35, 38, 0.18); }
.ws-alles[hidden] { display: none; }
.ws-alles__binnen { display: grid; grid-template-columns: 1fr 240px; gap: 28px; padding-top: 22px; padding-bottom: 26px; }
.ws-alles__raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 24px; }
.ws-alles__kop { display: flex; align-items: center; gap: 12px; color: var(--egm-tekst); text-decoration: none; }
.ws-alles__kop:hover { text-decoration: none; }
.ws-alles__kop:hover .ws-alles__naam { color: var(--egm-merk); text-decoration: underline; }
.ws-alles__beeld { position: relative; display: block; flex: 0 0 64px; width: 64px; height: 64px; border-radius: var(--ws-radius); background: var(--egm-creme); overflow: hidden; }
.ws-alles__beeld img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); max-width: none; object-fit: contain; mix-blend-mode: multiply; }
.ws-alles__naam { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; line-height: 1.25; }
.ws-alles__naam small { margin-top: 2px; color: var(--ws-grijs); font-size: 12px; font-weight: 400; }
.ws-alles__groep ul { margin: 8px 0 0 76px; padding: 0; list-style: none; }
.ws-alles__groep li { padding: 2px 0; }
.ws-alles__groep li a { color: var(--egm-merk); font-size: 14px; }
.ws-alles__hulp { padding: 16px 18px; border-radius: var(--ws-radius); background: var(--egm-creme); }
.ws-alles__hulpkop { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.ws-alles__hulp ul { margin: 0; padding: 0; list-style: none; }
.ws-alles__hulp li { padding: 4px 0; }
.ws-alles__hulp a { display: inline-flex; align-items: center; gap: 4px; color: var(--egm-merk); font-size: 14px; font-weight: 600; }
.ws-alles__hulp .egm-icoon { stroke-width: 2.4; }

.ws-balk__acties { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.ws-balk__actie { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #fff; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.ws-balk__actie:hover { color: #fff; text-decoration: underline; }
.ws-balk__actie--hulp span { max-width: 118px; }
.ws-wagen { width: 40px; height: 40px; justify-content: center; }
.ws-wagen__teller {
    position: absolute;
    top: 0;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: var(--ws-geel);
    color: #1c2326;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.ws-wagen__teller.is-empty { display: none; }

/* ---- Kop: menuband ---- */
.ws-nav { background: var(--egm-creme); border-bottom: 1px solid var(--ws-lijn-licht); }
.ws-nav__lijst { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; list-style: none; }
.ws-nav__item { position: relative; }
.ws-nav__item > a { display: block; padding: 11px 9px; color: var(--egm-merk); font-size: 14px; white-space: nowrap; }
.ws-nav__item:first-child > a { padding-left: 0; }
.ws-nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    min-width: 250px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ws-lijn);
    border-radius: 0 0 var(--ws-radius) var(--ws-radius);
    box-shadow: 0 6px 16px rgba(28, 35, 38, 0.12);
}
.ws-nav__item--sub:hover > .ws-nav__sub,
.ws-nav__item--sub:focus-within > .ws-nav__sub { display: block; }
.ws-nav__sub a { display: block; padding: 7px 16px; color: var(--egm-merk); font-size: 14px; }

/* ---- Zekerheden onder de kop ---- */
.ws-zeker { background: #fff; }
.ws-zeker__rij { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.ws-zeker__lijst { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ws-zeker__lijst li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* De winkelwagen zit altijd in de kop (die blijft staan): geen zwevende knop. */
.vs-sidecart-trigger { display: none !important; }
.ws-zeker__lijst .egm-icoon, .ws-scheiding .egm-icoon, .ws-vinken .egm-icoon { flex-shrink: 0; color: var(--ws-vink); stroke-width: 2.6; }
.ws-zeker strong, .ws-scheiding strong { color: var(--egm-merk); font-weight: 700; }
.ws-zeker__links { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ws-zeker__links a { font-size: 13px; font-weight: 700; color: var(--egm-merk); white-space: nowrap; }

/* ---- Menu-lade ---- */
.egm-lade .vg-drawer__header { background: var(--egm-merk); color: #fff; }
.egm-lade .vg-drawer__titel { font-weight: 700; font-size: 16px; color: #fff; }
.egm-lade .vg-drawer__close { color: #fff; }
.egm-lade__lijst > li > a, .egm-lade__lijst summary { font-size: 15px; font-weight: 600; color: var(--egm-merk); }
.egm-lade__lijst details a { color: var(--egm-merk); font-size: 14px; }

/* ---- Voorpagina ---- */
.ws-voorpagina { padding: 6px 0 24px; }
.ws-paginakop { margin: 10px 0 14px; font-size: 26px; }
.ws-held { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ws-held__tegel { position: relative; min-height: 310px; border-radius: var(--ws-radius); overflow: hidden; }
.ws-reken { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 24px 28px 26px; background: var(--egm-merk); color: #fff; }
.ws-reken__kop { margin: 2px 0 0; font-family: var(--ws-kopletter); font-size: 30px; font-weight: 500; line-height: 1.15; color: #fff; }
.ws-reken__tekst { max-width: 470px; margin: 0; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.ws-reken__velden { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 10px; margin-top: auto; padding-top: 6px; }
.ws-reken__veld { display: block; margin: 0; }
.ws-reken__veld--breed { grid-column: 1 / -1; }
.ws-reken__veld span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #fff; }
.ws-reken select, .ws-reken input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--ws-radius);
    background: #fff;
    color: var(--egm-tekst);
    font: inherit;
    font-size: 14px;
}
.ws-reken .ws-knop { min-width: 120px; }
.ws-fototegel { display: block; background: var(--egm-creme); color: #fff; text-decoration: none; }
.ws-fototegel:hover { text-decoration: none; color: #fff; }
.ws-fototegel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ws-fototegel__paneel { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: min(430px, calc(100% - 40px)); padding: 16px 20px 18px; background: var(--egm-merk); border-radius: var(--ws-radius); }
.ws-fototegel__kop { font-family: var(--ws-kopletter); font-size: 22px; font-weight: 500; line-height: 1.2; color: #fff; }
.ws-fototegel__link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: #fff; }
.ws-fototegel:hover .ws-fototegel__link { text-decoration: underline; }
.ws-fototegel .egm-icoon { stroke-width: 2.6; }

.ws-uitgelicht { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.ws-uitgelicht__kaart { display: flex; justify-content: space-between; gap: 12px; height: 100%; min-height: 128px; padding: 14px 14px 14px 16px; border: 1px solid var(--ws-lijn); border-radius: var(--ws-radius); background: #fff; color: var(--egm-tekst); text-decoration: none; }
.ws-uitgelicht__kaart:hover { border-color: var(--egm-merk); text-decoration: none; }
.ws-uitgelicht__tekst { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ws-uitgelicht__naam { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--egm-merk); font-size: 15px; font-weight: 700; line-height: 1.3; }
.ws-uitgelicht__kaart:hover .ws-uitgelicht__naam { text-decoration: underline; }
.ws-uitgelicht__foto { position: relative; display: block; flex: 0 0 96px; width: 96px; height: 96px; align-self: center; }
.ws-uitgelicht__foto img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.ws-prijs { margin-top: auto; font-size: 13px; color: var(--ws-grijs); }
.ws-prijs del { margin-right: 6px; color: var(--ws-grijs); font-size: 13px; font-weight: 400; }
.ws-prijs ins { text-decoration: none; }
.ws-prijs ins, .ws-prijs > .amount, .ws-prijs > .woocommerce-Price-amount { color: var(--egm-tekst); font-size: 16px; font-weight: 700; }

.ws-scheiding { display: flex; align-items: center; justify-content: center; gap: 8px 22px; margin: 28px 0; padding: 0; list-style: none; font-size: 13px; }
.ws-scheiding::before, .ws-scheiding::after { content: ""; flex: 1 1 40px; height: 1px; background: var(--ws-lijn); }
.ws-scheiding li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.ws-sectie { margin: 40px 0 0; }
.ws-sectie__kop { margin: 0 0 14px; font-family: var(--ws-letter); font-size: 20px; font-weight: 700; color: var(--egm-tekst); }
.ws-sectie__tekst { max-width: 720px; margin: -6px 0 16px; color: var(--ws-grijs); }

.ws-categorieen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ws-categorieen a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--ws-lijn); border-radius: var(--ws-radius); overflow: hidden; background: #fff; text-decoration: none; }
.ws-categorieen a:hover { border-color: var(--egm-merk); text-decoration: none; }
/* Foto's absoluut in een vlak met vaste verhouding: Safari (iPhone) rekent een
   procenthoogte binnen een vlak met aspect-ratio anders en liet de foto anders
   over de naam heen groeien (Rick, 23-11-2026). */
.ws-categorieen__beeld { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--egm-creme); }
.ws-categorieen__beeld img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); max-width: none; object-fit: contain; mix-blend-mode: multiply; }
.ws-categorieen__naam { padding: 10px 8px 12px; color: var(--egm-merk); font-size: 14px; font-weight: 700; text-align: center; }
.ws-categorieen a:hover .ws-categorieen__naam { text-decoration: underline; }

.ws-tabs__knoppen { display: flex; margin: 0 0 18px; overflow-x: auto; border-bottom: 1px solid var(--ws-lijn); scrollbar-width: none; }
.ws-tabs__knoppen::-webkit-scrollbar { display: none; }
.ws-tabs__knoppen button { flex-shrink: 0; margin-bottom: -1px; padding: 10px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--egm-tekst); font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.ws-tabs__knoppen button:first-child { padding-left: 2px; }
.ws-tabs__knoppen button[aria-selected="true"] { border-bottom-color: var(--egm-merk); font-weight: 700; }
.ws-tabs__knoppen button:hover { color: var(--egm-merk); }

.ws-kaarten { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ws-kaart > a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--ws-lijn); border-radius: var(--ws-radius); overflow: hidden; background: #fff; color: var(--egm-tekst); text-decoration: none; }
.ws-kaart > a:hover { border-color: var(--egm-merk); text-decoration: none; }
.ws-kaart__beeld { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--egm-creme); }
.ws-kaart__beeld img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@supports not (aspect-ratio: 1) {
    .ws-categorieen__beeld { height: 0; padding-top: 75%; }
    .ws-kaart__beeld { height: 0; padding-top: 62.5%; }
}
.ws-kaart__tekst { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; }
.ws-kaart__tekst strong { color: var(--egm-merk); font-size: 14px; font-weight: 700; line-height: 1.35; }
.ws-kaart__tekst span { font-size: 13px; line-height: 1.5; color: var(--egm-tekst); }
.ws-kaart > a:hover strong { text-decoration: underline; }

.ws-advies { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; border: 1px solid var(--ws-lijn); border-radius: var(--ws-radius); overflow: hidden; background: #fff; }
.ws-advies__beeld img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.ws-advies__tekst { padding: 26px 30px; }
.ws-advies__tekst h2 { margin: 0 0 8px; font-size: 20px; }
.ws-advies__tekst p { max-width: 560px; margin: 0 0 14px; }
.ws-vinken { display: grid; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.ws-vinken li { display: flex; align-items: center; gap: 8px; }
.ws-advies__knoppen { display: flex; flex-wrap: wrap; gap: 10px; }

.ws-merken { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ws-merken a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 14px 12px 10px; border: 1px solid var(--ws-lijn); border-radius: var(--ws-radius); text-decoration: none; }
.ws-merken a:hover { border-color: var(--egm-merk); text-decoration: none; }
.ws-merken strong { color: var(--egm-tekst); font-size: 16px; font-weight: 700; }
.ws-merken span { color: var(--ws-grijs); font-size: 12px; }
.ws-merken__logo { display: block; width: auto; max-width: 78%; height: 40px; object-fit: contain; }

/* ---- Veelgestelde vragen (overal) ---- */
.ws-voorpagina .egm-vragen.vg-container { max-width: none; margin: 40px 0 0; padding: 0; }
.egm-vragen .egm-sectie__kop h2 { margin: 0 0 12px; font-size: 20px; }
.egm-vragen__lijst { gap: 0; max-width: 860px; border-top: 1px solid var(--ws-lijn); }
.egm-vraag { border: 0; border-bottom: 1px solid var(--ws-lijn); border-radius: 0; background: none; }
.egm-vraag summary { padding: 13px 0; color: var(--egm-merk); font-size: 15px; font-weight: 600; }
.egm-vraag summary .egm-icoon { color: var(--egm-merk); }
.egm-vraag p { margin: 0; padding: 0 0 14px; font-size: 14px; }

/* ---- Productkaart (vloershop-core) in de opbouw van het voorbeeld ---- */
ul.products { gap: 28px 20px !important; }
.vs-product-card { position: relative; display: flex !important; flex-direction: column; height: 100%; padding: 0 0 4px !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.vs-product-card:hover { box-shadow: none !important; transform: none !important; }
.vs-product-card__media { border-radius: 0 !important; background: #fff !important; aspect-ratio: 1 / 1; }
.vs-product-card__image { object-fit: contain !important; }
.vs-product-card__wishlist { top: 6px !important; right: 6px !important; width: 32px !important; height: 32px !important; border-radius: 50% !important; background: #fff !important; box-shadow: 0 2px 8px rgba(28, 35, 38, 0.15) !important; color: var(--egm-tekst) !important; }
.vs-product-card__wishlist svg { width: 18px; height: 18px; }
.vs-product-card__body { display: flex !important; flex: 1; flex-direction: column; gap: 3px !important; padding: 10px 0 0 !important; }
.vs-product-card__merk { order: 1; color: var(--ws-grijs) !important; font-size: 12px !important; font-weight: 400 !important; }
.vs-product-card__title { order: 0; margin: 0 !important; font-family: var(--ws-letter) !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.35 !important; letter-spacing: 0 !important; }
.vs-product-card__title a { color: var(--egm-merk) !important; }
.vs-product-card__title a:hover { color: var(--egm-zwart) !important; text-decoration: underline; }
.vs-product-card__type { order: 2; color: var(--ws-grijs) !important; font-size: 13px !important; }
.vs-product-card__rating { order: 3; }
.vs-product-card__price { order: 4; display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 2px 8px !important; margin: 10px 0 0 !important; padding-right: 56px; }
.vs-product-card__price-current { order: 2; display: inline-flex; align-items: baseline; gap: 4px; font-size: 18px !important; font-weight: 700 !important; }
.vs-product-card__price-old { order: 1; color: var(--ws-grijs) !important; font-size: 13px !important; }
.vs-product-card__price-old::before { content: "Adviesprijs "; }
.vs-product-card__price-old del { text-decoration: line-through; }
.vs-product-card__price-unit { color: var(--ws-grijs) !important; font-size: 12px !important; font-weight: 400 !important; }
.vs-product-card__korting { order: 3; }
.vs-product-card__delivery { order: 5; display: flex !important; align-items: center; gap: 6px; margin: 4px 0 0 !important; padding-right: 56px; color: var(--ws-vink) !important; font-size: 13px !important; font-weight: 700 !important; }
.vs-product-card__delivery-dot { width: 16px !important; height: 16px !important; border-radius: 50% !important; background: var(--ws-vink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.2 8.3 2.4 2.4 5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat !important; box-shadow: none !important; }
.vs-product-card__usps { order: 6; }
.ws-kaartknop {
    position: absolute !important;
    right: 0;
    bottom: 4px;
    display: grid !important;
    place-items: center;
    width: 46px !important;
    height: 46px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--ws-radius) !important;
    background: var(--egm-geel) !important;
    color: #fff !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
    z-index: 5;
}
.ws-kaartknop:hover { filter: brightness(0.93); color: #fff !important; }
.ws-kaartknop.loading { opacity: 0.6; }
.ws-kaartknop.added::after { display: none !important; }
.ws-kaartknop .egm-icoon { stroke-width: 2.2; }
a.added_to_cart.wc-forward { display: none !important; }

/* ---- Categoriepagina ---- */
.vg-woo-main { padding-bottom: 24px; }
.woocommerce-breadcrumb { margin: 12px 0 6px !important; font-size: 13px !important; color: var(--egm-tekst) !important; }
.woocommerce-breadcrumb a { color: var(--egm-merk) !important; }
.woocommerce-products-header { margin: 0 0 8px !important; padding: 0 !important; background: none !important; border: 0 !important; }
.woocommerce-products-header__title.page-title { margin: 4px 0 8px !important; font-family: var(--ws-kopletter) !important; font-size: 28px !important; font-weight: 500 !important; color: var(--egm-zwart) !important; letter-spacing: 0 !important; }
.term-description { max-width: 860px; font-size: 14px !important; color: var(--egm-tekst) !important; }
.vg-archive--with-filters { gap: 28px !important; }
.vs-filters { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.vs-filters__title { font-size: 15px !important; font-weight: 700 !important; }
.vs-filter-group { border: 0 !important; border-top: 1px solid var(--ws-lijn-licht) !important; border-radius: 0 !important; background: none !important; }
.vs-filter-group summary { padding: 12px 0 !important; font-size: 15px !important; font-weight: 700 !important; color: var(--egm-tekst) !important; }
.vs-filter-group__icon { display: none !important; }
.vs-filter-option { color: var(--egm-tekst) !important; font-size: 14px !important; }
.vs-range__apply { border-radius: var(--ws-radius) !important; background: #fff !important; color: var(--egm-merk) !important; border: 1px solid var(--egm-merk) !important; box-shadow: inset 0 -1px 0 var(--egm-merk) !important; font-weight: 700 !important; }
.woocommerce-ordering select, .vs-sort select { border: 1px solid #8e9296 !important; border-radius: var(--ws-radius) !important; height: 40px; font: inherit !important; font-size: 13px !important; }
.woocommerce-result-count { font-size: 13px !important; color: var(--egm-tekst) !important; }

/* Merklogo's: boven een merkpagina en als tegels in de rij Topmerken. */
.ws-merkkop { display: block !important; width: auto !important; max-width: 200px !important; height: 56px !important; margin: 6px 0 4px !important; object-fit: contain; object-position: left center; }
.vg-chip[data-key="merk"][style], .vg-chip[data-key="merk"] { border-radius: var(--ws-radius) !important; }
.vs-topmerken .vg-chip[data-key="merk"], [class*="topmerken"] .vg-chip[data-key="merk"] {
    display: block;
    width: 112px;
    height: 48px;
    padding: 0 !important;
    border: 1px solid var(--ws-lijn) !important;
    background-color: #fff !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 76% 56%;
    color: transparent !important;
    font-size: 0 !important;
    overflow: hidden;
}
.vs-topmerken .vg-chip[data-key="merk"]:hover, [class*="topmerken"] .vg-chip[data-key="merk"]:hover, .vg-chip[data-key="merk"][aria-pressed="true"] { border-color: var(--egm-merk) !important; }

/* ---- Productpagina (vloershop-core) ---- */
.vs-cpdp h1, .vs-cpdp__title, .product_title {
    font-family: var(--ws-kopletter) !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    color: var(--egm-zwart) !important;
}
.vs-cpdp__breadcrumb, .vs-cpdp__breadcrumb a { font-size: 13px !important; }
.vs-cpdp__breadcrumb a { color: var(--egm-merk) !important; }
.vs-cpdp__price-current, .vs-cpdp__price-current * { color: var(--egm-tekst) !important; font-weight: 700 !important; }
.vs-cpdp__price-advies { color: var(--ws-grijs) !important; }
.vs-cpdp__cart button[type="submit"], .vs-cpdp__cart .single_add_to_cart_button, .single_add_to_cart_button {
    min-height: 48px !important;
    border: 0 !important;
    border-radius: var(--ws-radius) !important;
    background: var(--egm-geel) !important;
    color: #fff !important;
    font-family: var(--ws-letter) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
}
.single_add_to_cart_button:hover { filter: brightness(0.93); }
.vs-pdp-trust__check { color: var(--ws-vink) !important; }
.vs-specs__row:nth-child(odd) { background: #f4f7f8; }
.vs-specs__key, .vs-specs__val { font-size: 14px !important; }
.vs-specs__group-title { font-size: 16px !important; font-weight: 700 !important; }

/* ---- Pop-ups van vloershop-core (prijsgarantie, toegevoegd, winkelwagenlade, vergelijken) ---- */
.vs-pm-info { background: var(--egm-merk) !important; }
.vs-pm-badge, .vs-pm-trigger, [class*="vs-pm-"][class*="pill"] { border-radius: 3px !important; }
.vs-pm-submit, .vs-addpopup .vs-button--primary, .vs-sidecart__checkout {
    border-radius: var(--ws-radius) !important;
    background: var(--egm-geel) !important;
    color: #fff !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
}
.vs-pm-submit:hover, .vs-addpopup .vs-button--primary:hover, .vs-sidecart__checkout:hover { background: var(--egm-geel) !important; filter: brightness(0.93); }
.vs-pm-modal, .vs-addpopup__dialog, .vs-compare__modal { box-shadow: 0 16px 40px rgba(28, 35, 38, 0.28) !important; }
.vs-pm-modal input, .vs-pm-modal textarea, .vs-pm-modal select { border-radius: var(--ws-radius) !important; }
.vs-sidecart__progress-bar > span { background: var(--ws-vink) !important; }
.vs-sidecart__title, .vs-addpopup__title { font-family: var(--ws-letter) !important; }

/* Rekenhulp-pagina (egalinewijzer van vloershop-core): koopknop groen zoals overal. */
.vs-egwijzer__kar { border-radius: var(--ws-radius) !important; background: var(--egm-geel) !important; color: #fff !important; font-weight: 700 !important; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25); }

/* ---- Rekenblok op de productpagina (inc/rekenblok.php) ---- */
.ws-reken-pdp { margin: 4px 0 14px; padding: 16px 18px; border: 1px solid var(--ws-lijn); border-radius: var(--ws-radius); background: var(--egm-creme); }
.ws-reken-pdp__kop { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--egm-tekst); }
.ws-reken-pdp__velden { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ws-reken-pdp__velden--een { grid-template-columns: minmax(0, 220px); }
.ws-reken-pdp label { display: block; min-width: 0; margin: 0; }
.ws-reken-pdp label > span:first-child { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.ws-reken-pdp__invoer { display: flex; align-items: center; height: 42px; border: 1px solid #8e9296; border-radius: var(--ws-radius); background: #fff; overflow: hidden; }
.ws-reken-pdp__invoer:focus-within { border-color: var(--egm-merk); box-shadow: 0 0 0 2px rgba(11, 104, 114, 0.18); }
.ws-reken-pdp__invoer input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0 !important; background: transparent; box-shadow: none !important; font: inherit; font-size: 15px; outline: none; }
.ws-reken-pdp__invoer em { padding: 0 12px; color: var(--ws-grijs); font-size: 14px; font-style: normal; }
.ws-reken-pdp__uitkomst { margin: 12px 0 0; font-size: 14px; line-height: 1.5; }
.ws-reken-pdp__uitkomst strong { color: var(--egm-tekst); }
.ws-reken-pdp__let { display: block; margin-top: 6px; color: #9a4b00; font-weight: 600; }
.ws-reken-pdp__knop { width: 100%; margin-top: 10px; }
.ws-reken-pdp__knop[hidden] { display: none !important; }
.ws-reken-pdp__noot { margin: 10px 0 0; color: var(--ws-grijs); font-size: 12px; line-height: 1.45; }
/* Met het rekenblok erboven is de kop van het aantalveld dubbel. */
.ws-reken-pdp + form.cart .vs-calculator__header { display: none !important; }
@media (max-width: 600px) {
    .ws-reken-pdp { padding: 14px; }
    .ws-reken-pdp__invoer em { padding: 0 8px; }
}

/* Pakketkorting van vloerengarant (vloer, ondervloer, plinten en egaline): hier zijn
   alleen egaline en lijm te koop, dus die belofte geldt niet. Balk en stapelregel weg. */
.vs-pakket-wrap, .vs-pakketbar, .vs-cpdp__stapel { display: none !important; }

/* Verlanglijst staat uit (inc/rekenblok.php). */
.vs-product-card__wishlist, .vs-elcard__wishlist, [data-vs-wishlist-count] { display: none !important; }

/* ---- Voet ---- */
.egm-voet.ws-voet { margin-top: 56px; padding: 0; background: #fff; color: var(--egm-tekst); }
.ws-voet a { color: var(--egm-merk); }
.ws-voet a:hover { color: var(--egm-zwart); text-decoration: underline; }
.ws-scheiding--voet { margin: 0 auto; padding-top: 22px; padding-bottom: 22px; }
.ws-voet__band { padding: 34px 0 30px; background: var(--egm-creme); }
.ws-voet .egm-voet__kolommen { gap: 28px; padding: 0; }
.ws-voet h3 { margin: 0 0 10px; font-family: var(--ws-letter); font-size: 15px; font-weight: 700; color: var(--egm-tekst); }
.ws-voet .egm-voet__lijst li { padding: 3px 0; font-size: 14px; }
.ws-voet .egm-voet__lijst a { color: var(--egm-merk); }
.ws-voet .egm-voet__contact p { color: var(--egm-tekst); }
.ws-voet .egm-voet__contact > a { color: var(--egm-merk); font-size: 14px; }
.ws-voet__basis { padding: 18px 0 26px; background: #fff; }
.ws-voet .egm-voet__basis { padding: 0; border: 0; }
.ws-voet .egm-voet__betalen img { padding: 3px 6px; border: 1px solid var(--ws-lijn-licht); }
.ws-voet .egm-voet__basis nav a { color: var(--ws-grijs); font-size: 13px; }
.ws-voet .egm-voet__bedrijf { color: var(--ws-grijs); font-size: 12px; }

/* ---- Kennisbank en losse pagina's ---- */
.vg-kb-card { border: 1px solid var(--ws-lijn) !important; border-radius: var(--ws-radius) !important; box-shadow: none !important; }
.vg-kb-card__title { font-family: var(--ws-letter) !important; font-size: 15px !important; font-weight: 700 !important; }
.vg-kb-card__title a { color: var(--egm-merk) !important; }
.entry-content, .vg-kb-article { font-size: 15px; }
.vg-btn--copper, .vg-kb-offerte__knop, .vg-kb-cta .vg-btn {
    border: 0 !important;
    border-radius: var(--ws-radius) !important;
    background: var(--egm-geel) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25) !important;
}
.vg-btn--copper:hover { filter: brightness(0.93); text-decoration: none; }
.vg-kb-offerte { border: 1px solid var(--ws-lijn) !important; border-radius: var(--ws-radius) !important; background: var(--egm-creme) !important; box-shadow: none !important; }
.vg-kb-cta { border-radius: var(--ws-radius) !important; background: var(--egm-merk) !important; }
.vg-kb-cta h2 { font-family: var(--ws-kopletter) !important; font-weight: 500 !important; color: #fff !important; }
.vg-kb-cat { border-radius: 3px !important; }

/* ---- Telefoon en tablet ---- */
@media (max-width: 1180px) {
    .ws-zeker__lijst li:nth-child(3) { display: none; }
}
@media (max-width: 1100px) {
    .ws-balk__actie--hulp span { display: none; }
    .ws-categorieen { grid-template-columns: repeat(3, 1fr); }
    .ws-merken { grid-template-columns: repeat(3, 1fr); }
    .ws-kaarten { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .ws-balk__rij { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 10px; min-height: 0; }
    .ws-balk__menu { display: inline-flex; order: 0; }
    .ws-logo { order: 1; }
    .ws-logo .egm-logo__woord { font-size: 20px; }
    .ws-logo .egm-logo__teken svg { width: 40px; height: 20px; }
    .ws-balk__acties { order: 2; gap: 12px; }
    .ws-balk__alles { display: none; }
    .ws-zoek { order: 3; flex-basis: 100%; max-width: none; }
    .ws-nav { display: none; }
    .ws-zeker__rij { justify-content: center; min-height: 38px; }
    .ws-zeker__extra, .ws-zeker__links { display: none !important; }
    .ws-held { grid-template-columns: 1fr; }
    .ws-held__tegel { min-height: 0; }
    .ws-fototegel { aspect-ratio: 16 / 10; }
    .ws-uitgelicht { grid-template-columns: 1fr; gap: 10px; }
    .ws-uitgelicht__kaart { min-height: 104px; }
    .ws-scheiding { flex-direction: column; align-items: flex-start; gap: 6px; margin: 22px 0; }
    .ws-scheiding::before, .ws-scheiding::after { display: none; }
    .ws-advies { grid-template-columns: 1fr; }
    .ws-advies__beeld img { min-height: 0; aspect-ratio: 16 / 9; }
    .ws-advies__tekst { padding: 20px; }
}
@media (max-width: 600px) {
    .ws-paginakop { font-size: 22px; }
    h1, .woocommerce-products-header__title.page-title, .vs-cpdp h1, .product_title { font-size: 24px !important; }
    .ws-reken { padding: 20px 18px 22px; }
    .ws-reken__kop { font-size: 24px; }
    .ws-reken__velden { grid-template-columns: 1fr 1fr; }
    .ws-reken .ws-knop { grid-column: 1 / -1; }
    .ws-fototegel__paneel { left: 12px; bottom: 12px; padding: 12px 14px 14px; }
    .ws-fototegel__kop { font-size: 18px; }
    .ws-categorieen { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; }
    .ws-categorieen li { flex: 0 0 42%; scroll-snap-align: start; }
    .ws-kaarten { grid-template-columns: 1fr; }
    .ws-kaarten--uitleg .ws-kaart > a { flex-direction: row; }
    .ws-kaarten--uitleg .ws-kaart__beeld { flex: 0 0 112px; min-height: 96px; height: auto; padding-top: 0; aspect-ratio: auto; }
    .ws-merken { grid-template-columns: repeat(2, 1fr); }
    ul.products { gap: 22px 14px !important; }
    .vs-product-card__title { font-size: 14px !important; }
    .vs-product-card__price { padding-right: 0; }
    .vs-product-card__delivery { padding-right: 50px; }
    .ws-kaartknop { width: 42px !important; height: 42px !important; }
}
