/* Vloershop — Mega-menu (categorieën + merken/collecties) */
.vs-megamenu {
    --vs-mm-bg: #232427;
    --vs-mm-fg: #fff;
    --vs-mm-accent: #324696; /* was oranje; blauw sinds 07-08, oranje is alleen nog actiekleur */
    --vs-mm-panel-bg: #fff;
    --vs-mm-panel-fg: #1f2444;
    --vs-mm-radius: 14px;
    position: relative;
    font-family: inherit;
}

.vs-megamenu__bar {
    list-style: none;
    margin: 0;
    padding: 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 2px;
    background: var(--vs-mm-bg);
    border-radius: var(--vs-mm-radius);
}

/* Static, zodat het mega-panel zich uitlijnt op de HELE balk (.vs-megamenu)
   en niet op het losse menu-item — dat is wat vloerenmarkt ook doet. */
.vs-megamenu__item {
    position: static;
    display: flex;
    align-items: center;
}

.vs-megamenu__link {
    display: inline-flex;
    align-items: center;
    padding: 14px 16px;
    color: var(--vs-mm-fg);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 8px;
    transition: background 0.18s ease, color 0.18s ease;
}

.vs-megamenu__item:hover > .vs-megamenu__link,
.vs-megamenu__item:focus-within > .vs-megamenu__link {
    background: rgba(255, 255, 255, 0.1);
}

.vs-megamenu__item.has-panel > .vs-megamenu__link {
    padding-right: 8px;
}

.vs-megamenu__expand {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0 10px 0 4px;
    color: var(--vs-mm-fg);
    cursor: pointer;
    align-self: stretch;
}

.vs-megamenu__expand span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

/* Panel */
/* Full-bleed panel zoals vloerenmarkt: over de volle breedte onder de balk,
   vlak wit, zonder afronding/slagschaduw. De inhoud zit in een 1500px-container. */
/* Panel over de volle balkbreedte; de witte achtergrond loopt via ::before
   door tot de schermranden (full-bleed), zoals bij vloerenmarkt. */
.vs-megamenu__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    z-index: 60;
    padding: 18px 0 25px;
    display: none;
    gap: 0;
    color: var(--vs-mm-panel-fg, #000);
    border-radius: 0;
    box-shadow: none;
}

.vs-megamenu__panel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    background: var(--vs-mm-panel-bg, #fff);
    box-shadow: 0 12px 24px rgba(35, 36, 39, 0.10);
    z-index: -1;
}

.vs-megamenu__item.has-panel:hover > .vs-megamenu__panel,
.vs-megamenu__item.has-panel:focus-within > .vs-megamenu__panel,
.vs-megamenu__item.is-open > .vs-megamenu__panel {
    display: flex;
}

.vs-megamenu__item.is-open > .vs-megamenu__expand span {
    transform: rotate(225deg) translateY(-2px);
}

/* Kolommen: gelijke breedte, ruim uit elkaar, gecentreerd in 1500px (VM-maat). */
.vs-megamenu__cols {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 8px 30px;
    max-width: 1500px;
    margin: 0 auto;
    align-items: start;
}

/* Kolomkop: 18px / 600 / zwart (gemeten op vloerenmarkt). */
.vs-megamenu__col-head {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    color: #000;
    text-decoration: none;
}

a.vs-megamenu__col-head:hover {
    color: var(--vs-mm-accent);
}

.vs-megamenu__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vs-megamenu__sublist li {
    margin: 0;
}

/* Link: 16px / 400 / zwart, padding 7px 0 (gemeten op vloerenmarkt). */
.vs-megamenu__sublist a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.15;
    transition: color 0.15s ease;
}

.vs-megamenu__sublist a:hover {
    color: var(--vs-mm-accent);
}

/*
 * De "Bekijk alles"-regel onder elke kolom is per 27-8-2026 vervallen: hij
 * wees naar exact dezelfde URL als de kolomkop erboven, 42 keer op elke
 * pagina. De kolomkop is de link. De mobiele drawer heeft zijn eigen
 * "Bekijk alle ..."-regel en is dus niet geraakt.
 */

/* Kleurbolletje: 25px rond met 8px tussenruimte (VM-maat). */
.vs-mm-dot {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.10);
}

.vs-megamenu__feature {
    flex: 0 0 220px;
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
}

.vs-megamenu__feature img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vs-megamenu__feature-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(35, 36, 39, 0) 0%, rgba(35, 36, 39, 0.82) 100%);
}

/* Burger (mobiel) */
.vs-megamenu__burger {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    background: var(--vs-mm-bg);
    color: var(--vs-mm-fg);
    border: 0;
    border-radius: var(--vs-mm-radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.vs-megamenu__burger-bars,
.vs-megamenu__burger-bars::before,
.vs-megamenu__burger-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.vs-megamenu__burger-bars::before,
.vs-megamenu__burger-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.vs-megamenu__burger-bars::before {
    top: -7px;
}

.vs-megamenu__burger-bars::after {
    top: 7px;
}

@media (max-width: 1024px) {
    .vs-megamenu__burger {
        display: flex;
    }

    .vs-megamenu__bar {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 6px;
        padding: 6px;
    }

    .vs-megamenu.is-open > .vs-megamenu__bar {
        display: flex;
    }

    .vs-megamenu__burger[aria-expanded="true"] {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .vs-megamenu__item {
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .vs-megamenu__link {
        flex: 1 1 auto;
    }

    .vs-megamenu__expand {
        order: 2;
    }

    .vs-megamenu__panel {
        position: static;
        flex-basis: 100%;
        order: 3;
        min-width: 0;
        /* Full-bleed van desktop terugdraaien in de mobiele accordeon. */
        left: auto;
        right: auto;
        width: auto;
        margin: 0 0 8px;
        margin-left: 0;
        padding: 14px;
        flex-direction: column;
        box-shadow: none;
    }

    /* Mobiel = accordeon met dezelfde kolommen onder elkaar (zoals VM). */
    .vs-megamenu__cols {
        grid-template-columns: 1fr;
        gap: 4px 0;
        max-width: none;
    }

    .vs-megamenu__col-head {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .vs-megamenu__sublist a {
        font-size: 15px;
    }

    .vs-megamenu__panel::before {
        display: none;
    }

    .vs-megamenu__item {
        position: relative;
    }

    .vs-megamenu__feature {
        flex-basis: auto;
        max-height: 160px;
    }
}
