/* VS — Code-archief layout (categorie / winkel / zoekresultaten zonder Elementor) */
.vs-carch {
    --vs-carch-line: #e6e9ef;
    --vs-carch-dark: #1f2a37;
    --vs-carch-navy: #314696;
    font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #41484d;
    padding: 18px 0 40px;
}
.vs-carch * { box-sizing: border-box; }
.vs-carch__wrap { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* Breadcrumb + titel */
.vs-carch__head { margin: 6px 0 10px; }
.vs-carch__crumbs { font-size: 13.5px; color: #8a929a; margin: 0 0 10px; }
.vs-carch__crumbs a { color: #8a929a; text-decoration: none; }
.vs-carch__crumbs a:hover { color: var(--vs-carch-navy); }
.vs-carch__crumb-sep { margin: 0 8px; color: #c2c8cf; }
.vs-carch__title { font-size: 32px; line-height: 1.1; color: var(--vs-carch-dark); margin: 0; font-weight: 800; }

/* Intro (boven de producten) */
.vs-carch__intro { margin: 10px 0 22px; }
.vs-carch__intro h1, .vs-carch__intro h2 { color: var(--vs-carch-dark); margin: 0 0 10px; line-height: 1.15; }
.vs-carch__intro h1 { font-size: 30px; }
.vs-carch__intro p { margin: 0 0 10px; max-width: 80ch; line-height: 1.65; }

/* Layout: filters links + producten rechts */
.vs-carch__layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.vs-carch__filters { position: sticky; top: 16px; }
/* Zonder filters (bv. shop zonder facetten): producten over de volle breedte */
.vs-carch__layout--full { grid-template-columns: minmax(0, 1fr); }

/* Productgrid (WooCommerce ul.products -> CSS grid met onze kaarten) */
.vs-carch__products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 22px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.vs-carch__products ul.products::before,
.vs-carch__products ul.products::after { content: none !important; display: none !important; }
.vs-carch__products ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}
.vs-carch__products .woocommerce-result-count { color: #6b7681; font-size: 14px; margin: 0 0 12px; }

/* Sorteer-dropdown: custom select i.p.v. kale browser-default (luxuryfloors-stijl) */
.vs-carch__products .woocommerce-ordering { margin: 0 0 16px; }
.vs-carch__products .woocommerce-ordering select,
.vs-carch__products .woocommerce-ordering select.orderby {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: auto;
    min-width: 210px;
    max-width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 42px 0 16px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--vs-carch-dark);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%235c676d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 12px;
    border: 1px solid var(--vs-carch-line);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.vs-carch__products .woocommerce-ordering select:hover { border-color: #c9d2e6; }
.vs-carch__products .woocommerce-ordering select:focus,
.vs-carch__products .woocommerce-ordering select:focus-visible {
    outline: none;
    border-color: var(--vs-carch-navy);
    box-shadow: 0 0 0 3px rgba(49, 70, 150, .12);
}
.vs-carch__products .woocommerce-ordering select::-ms-expand { display: none; }

/* Paginering — losse afgeronde knoppen (luxuryfloors-stijl).
   Hoge specificiteit (ul li a.page-numbers = 0,3,3) is nodig om de WooCommerce-
   default `.woocommerce nav.woocommerce-pagination ul li a` (0,2,4) te verslaan,
   anders renderen de aaneengesloten grijze boxen met lila active-state. */
.vs-carch__products .woocommerce-pagination { margin: 28px 0 0; text-align: center; }
.vs-carch__products .woocommerce-pagination ul.page-numbers {
    display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    list-style: none; margin: 0; padding: 0; border: 0;
}
.vs-carch__products .woocommerce-pagination ul.page-numbers li {
    margin: 0; padding: 0; border: 0; float: none; display: inline-flex; overflow: visible;
}
.vs-carch__products .woocommerce-pagination ul li a.page-numbers,
.vs-carch__products .woocommerce-pagination ul li span.page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px; margin: 0;
    border: 1px solid var(--vs-carch-line); border-radius: 10px;
    background: #fff; color: var(--vs-carch-dark);
    font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.vs-carch__products .woocommerce-pagination ul li a.page-numbers:hover {
    border-color: var(--vs-carch-navy); color: var(--vs-carch-navy); background: #f5f6fb;
}
.vs-carch__products .woocommerce-pagination ul li span.page-numbers.current {
    background: var(--vs-carch-navy); border-color: var(--vs-carch-navy); color: #fff;
}
.vs-carch__products .woocommerce-pagination ul li span.page-numbers.dots {
    border: 0; background: none; min-width: 24px; color: #646b72;
}

/* Geen producten gevonden */
.vs-carch__products .woocommerce-info {
    background: #f5f7fa; border: 1px solid var(--vs-carch-line); border-radius: 10px;
    padding: 16px 18px; color: var(--vs-carch-dark);
}

/* Onder de producten (SEO-tekst / FAQ) */
.vs-carch__below { margin: 40px 0 0; border-top: 1px solid var(--vs-carch-line); padding-top: 28px; }
.vs-carch__below h2, .vs-carch__below h3 { color: var(--vs-carch-dark); }
.vs-carch__below p { max-width: 80ch; line-height: 1.7; }

/* Responsive: filters boven de producten (de filter-module heeft z'n eigen mobiele drawer).
   minmax(0,1fr) i.p.v. 1fr: een kale 1fr-track mag niet onder z'n min-content krimpen,
   waardoor brede content (subcategorie-tegels met grote intrinsieke foto's) de hele
   pagina naar 1100px+ oprekte en mobiel uitzoomde. */
@media (max-width: 900px) {
    .vs-carch__layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .vs-carch__filters { position: static; }
}
@media (max-width: 560px) {
    .vs-carch__products ul.products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .vs-carch__intro h1 { font-size: 24px; }
}

/* --- SEO-engine: lees-verder, interne links, FAQ --- */

/* Lees-verder inklap (onder-content). Zonder JS staat alles open (SEO-safe);
   JS voegt .is-collapsible toe als de tekst langer is dan de drempel. */
.vs-collapsible__inner { position: relative; }
.vs-collapsible__toggle { display: none; }
.vs-collapsible.is-collapsible .vs-collapsible__inner { max-height: 360px; overflow: hidden; }
.vs-collapsible.is-collapsible .vs-collapsible__inner::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none;
}
.vs-collapsible.is-collapsible.is-open .vs-collapsible__inner { max-height: none; }
.vs-collapsible.is-collapsible.is-open .vs-collapsible__inner::after { display: none; }
.vs-collapsible.is-collapsible .vs-collapsible__toggle {
    display: inline-flex; align-items: center; margin-top: 14px; background: none; border: 0;
    color: var(--vs-carch-dark); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0;
    text-decoration: underline; text-underline-offset: 3px;
}
.vs-collapsible__less { display: none; }
.vs-collapsible.is-open .vs-collapsible__more { display: none; }
.vs-collapsible.is-open .vs-collapsible__less { display: inline; }

/* "Verder kijken" interne-link-blok */
.vs-archive-links { margin: 30px 0 0; }
.vs-archive-links__title { font-size: 18px; color: var(--vs-carch-dark); margin: 0 0 12px; }
.vs-archive-links__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.vs-archive-links__item a {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--vs-carch-line); border-radius: 999px;
    text-decoration: none; color: var(--vs-carch-dark); font-size: 14px; background: #fff;
    transition: background .15s, border-color .15s;
}
.vs-archive-links__item a:hover { background: #f5f7fa; border-color: #c7cedd; }

/* FAQ-accordeon (native <details>) */
.vs-archive-faq { margin: 34px 0 0; }
.vs-archive-faq__title { font-size: 20px; color: var(--vs-carch-dark); margin: 0 0 14px; }
.vs-archive-faq__item { border-bottom: 1px solid var(--vs-carch-line); }
.vs-archive-faq__q {
    cursor: pointer; list-style: none; padding: 14px 28px 14px 0; font-weight: 700;
    color: var(--vs-carch-dark); position: relative;
}
.vs-archive-faq__q::-webkit-details-marker { display: none; }
.vs-archive-faq__q::after {
    content: "+"; position: absolute; right: 4px; top: 11px; font-size: 20px; font-weight: 400; color: #6b7280;
}
.vs-archive-faq__item[open] .vs-archive-faq__q::after { content: "\2212"; }
.vs-archive-faq__a { padding: 0 0 16px; line-height: 1.7; }
.vs-archive-faq__a p { margin: 0 0 10px; max-width: 80ch; }

/* --- Lokale landingspagina's (vs_local) --- */
.vs-local__usp { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.vs-local__usp li { position: relative; padding-left: 22px; color: #3a4452; font-size: 14.5px; }
.vs-local__usp li::before { content: "\2713"; position: absolute; left: 0; color: var(--vs-carch-green, #62b959); font-weight: 700; }
.vs-local__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 26px; }
.vs-local__type { background: #f7f9fc; border: 1px solid var(--vs-carch-line); border-radius: 12px; padding: 16px 18px; }
.vs-local__type h2 { margin: 0 0 6px; font-size: 17px; color: var(--vs-carch-dark); }
.vs-local__type p { margin: 0; font-size: 14px; line-height: 1.6; }
.vs-local__grid { margin: 8px 0 30px; }
.vs-local__cta { background: #f5f7fa; border-radius: 12px; padding: 22px 24px; margin: 8px 0 26px; }
.vs-local__cta h2 { margin: 0 0 8px; color: var(--vs-carch-dark); }
.vs-local__links a { font-weight: 700; text-decoration: none; color: var(--vs-carch-dark); }
.vs-local__editor { margin: 0 0 24px; line-height: 1.7; }
.vs-local__editor p { max-width: 80ch; }
@media (max-width: 720px) {
    .vs-local__types { grid-template-columns: 1fr; }
}

/* --- Kennisbank-hub (vs-kb) --- */
.vs-kb { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 8px 0; }
.vs-kb__card { background: #fff; border: 1px solid var(--vs-carch-line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; }
.vs-kb__title { font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.vs-kb__title a { color: var(--vs-carch-dark); text-decoration: none; }
.vs-kb__title a:hover { text-decoration: underline; }
.vs-kb__excerpt { font-size: 14px; line-height: 1.6; color: #4a5462; margin: 0 0 14px; flex: 1; }
.vs-kb__more { font-weight: 700; text-decoration: none; color: var(--vs-carch-dark); font-size: 14px; }
