/* =========================================
   1. THEMA / GUTENBERG CORRECTIES
   ========================================= */

/* Extra theme-wrapper binnen Buttons niet laten meedoen */
.wp-block-buttons > .gb-standard {
    display: contents !important;
}

/* Extra theme-wrapper binnen Columns niet laten meedoen */
.wp-block-columns > .gb-standard {
    display: contents !important;
}


/* =========================================
   2. ALGEMENE PAGINA-OPMAAK
   ========================================= */
/* algemene contentbreedte*/
#main .container {
    max-width: 1200px !important;
}
/* Automatische paginatitel verbergen */
h1.titel {
    display: none !important;
}

/* Geen ruimte boven pagina-inhoud */
#main {
    padding-top: 0 !important;
}

.item-beeld {
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.item-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================================
   3. HEADER / LOGO
   ========================================= */

#header img {
    position: relative;
    z-index: 10;
    transform: translateY(-25px);
}


/* =========================================
   4. HERO
   ========================================= */

.homepage-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 0 !important;
}


/* =========================================
   5. KNOPPEN
   Klassen: duo-knoppen / single-knop
   ========================================= */

.duo-knoppen,
.single-knop {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.duo-knoppen { gap: 15px !important; }

.duo-knoppen .wp-block-button,
.single-knop .wp-block-button {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.duo-knoppen .wp-block-button__link,
.single-knop .wp-block-button__link {
    width: auto !important;
    padding: 12px 28px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* =========================================
   6. ACTIVITEIT HIGHLIGHT
   ========================================= */

.activiteit-highlight {
    width: 100% !important;
    max-width: none !important;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 0;
    margin-right: 0;
}

/* Complete kaart */
.activiteit-highlight .wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;

    width: 100% !important;
    height: 300px !important;
    margin: 0 !important;
}

/* Tekstvlak - 70% */
.activiteit-highlight .highlight-tekst {
    flex: 0 0 70% !important;
    width: 70% !important;
    max-width: 70% !important;
    height: 300px !important;

    margin: 0 !important;
    padding: 35px 40px !important;
    background-color: #eeeeee;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Fotovlak - 30% */
.activiteit-highlight .highlight-foto {
    flex: 0 0 30% !important;
    width: 30% !important;
    max-width: 30% !important;
    height: 300px !important;

    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

/* Wrappers rond afbeelding vullen het fotovlak */
.activiteit-highlight .highlight-foto .gb-standard,
.activiteit-highlight .highlight-foto figure {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Afbeelding vult altijd het volledige fotovlak */
.activiteit-highlight .highlight-foto img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
/* =========================================
   DOORVERWIJSKAARTEN
   ========================================= */

/* Foto's allemaal dezelfde vaste verhouding */
.doorverwijs-kaarten .wp-block-image {
    width: 100% !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin-bottom: 15px !important;
}

.doorverwijs-kaarten .wp-block-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
/* =========================================
   OLIEBOLLEN PRODUCTFOTO
   ========================================= */

.wc-block-woocommerce-product-gallery-large-image {
    max-width: 450px !important;
}

.wc-block-woocommerce-product-gallery-large-image img {
    width: 450px !important;
    height: 450px !important;
    object-fit: cover !important;
}
/* =========================================
   WOOCOMMERCE BESTEL-ITEM
   Alleen aantal + bestelknop tonen
   ========================================= */

/* Productfoto verbergen */
.bestel-item .woocommerce-product-gallery {
    display: none !important;
}

/* Productinformatie mag volledige breedte gebruiken */
.bestel-item .summary {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Dubbele titel, prijs en beschrijving verbergen */
.bestel-item .product_title,
.bestel-item .summary > .price,
.bestel-item .woocommerce-product-details__short-description {
    display: none !important;
}

/* Onderste productinformatie zoals Description/Reviews verbergen */
.bestel-item .woocommerce-tabs,
.bestel-item .related,
.bestel-item .upsells {
    display: none !important;
}
/* =========================================
   BESTELBLOK
   ========================================= */

.bestel-blok {
    display: grid !important;
    grid-template-columns: 30% 70% !important;
    gap: 0 !important;
    width: 100% !important;
    height: 300px !important;
}

/* Thema-wrappers */
.bestel-blok > .gb-standard {
    width: 100% !important;
    max-width: none !important;
    height: 300px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Gutenberg-kolommen */
.bestel-blok > .gb-standard > .wp-block-column {
    width: 100% !important;
    max-width: none !important;
    height: 300px !important;
    margin: 0 !important;
}

/* Tekstkolom */
.bestel-blok > .gb-standard:nth-of-type(2) > .wp-block-column {
    padding: 35px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Foto + tussenliggende wrappers */
.bestel-blok > .gb-standard:nth-of-type(1) .gb-standard,
.bestel-blok > .gb-standard:nth-of-type(1) figure,
.bestel-blok > .gb-standard:nth-of-type(1) img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bestel-blok > .gb-standard:nth-of-type(1) img {
    display: block !important;
    object-fit: cover !important;
}
/* =========================================
   WOOCOMMERCE CHECKOUT
   ========================================= */

/* Hoofdkolommen */
.woocommerce-checkout #customer_details .col-1 {
    width: 62% !important;
    max-width: 62% !important;
    float: left !important;
}

.woocommerce-checkout #customer_details .col-2 {
    width: 34% !important;
    max-width: 34% !important;
    float: right !important;
}

/* Iedere formulierregel volledige breedte */
.woocommerce-checkout #customer_details .form-row {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 18px 0 !important;
}

/* Labels gewoon boven het veld */
.woocommerce-checkout #customer_details .form-row label {
    display: block !important;
    width: 100% !important;
    margin-bottom: 6px !important;
}

/* WooCommerce wrapper volledige breedte */
.woocommerce-checkout #customer_details .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

/* Alle invoervelden volledige breedte */
.woocommerce-checkout #customer_details input.input-text,
.woocommerce-checkout #customer_details textarea,
.woocommerce-checkout #customer_details select {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

/* Voornaam/achternaam niet naast elkaar forceren */
.woocommerce-checkout #customer_details .form-row-first,
.woocommerce-checkout #customer_details .form-row-last {
    float: none !important;
    width: 100% !important;
}

/* Bestelnotitie wat meer hoogte */
.woocommerce-checkout #order_comments {
    min-height: 120px !important;
}
/* =========================================
   MOBIELE WEERGAVE ACTIVITEITEN
   ========================================= */

@media (max-width: 767px) {

    .activiteit-highlight .wp-block-columns {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
    }

    .activiteit-highlight .highlight-foto {
        order: 1 !important;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important;
    }

    .activiteit-highlight .highlight-tekst {
        order: 2 !important;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 25px !important;
    }

    .activiteit-highlight .highlight-tekst h2,
    .activiteit-highlight .highlight-tekst h3 {
        font-size: 26px !important;
        line-height: 1.2 !important;
    }

    .activiteit-highlight .highlight-tekst p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

}
/* =========================================
   MOBIELE WEERGAVE HERO
   ========================================= */
@media (max-width: 767px) {
    .homepage-hero h1,
    .homepage-hero h2 {
        font-size: clamp(24px, 8vw, 36px) !important;
        line-height: 1.15 !important;
        overflow-wrap: normal !important;
    }
}

/* =========================================
   HERBRUIKBARE TEKST + FOTO SECTIE

   Buitenste Kolommen: tekst-foto-sectie
   Linker Kolom:       tekst-links
   Rechter Kolom:      foto-rechts
   Afbeelding:         foto-in-kolom
   ========================================= */

/* Gelijke binnenruimte in beide kolommen */
.tekst-foto-sectie .wp-block-column {
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box;
}

/* Tekst links laten beginnen */
.tekst-foto-sectie .tekst-links {
    padding-left: 0 !important;
    text-align: left !important;
}

/* Afbeelding behoudt oorspronkelijke verhouding */
.tekst-foto-sectie .foto-in-kolom {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.tekst-foto-sectie .foto-in-kolom img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-fit: contain !important;
}

/* Op desktop: foto verticaal gecentreerd */
@media (min-width: 782px) {
    .tekst-foto-sectie {
        align-items: stretch !important;
    }

    .tekst-foto-sectie .foto-rechts {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-self: stretch !important;
    }

    .tekst-foto-sectie .foto-rechts > .gb-standard {
        width: 100% !important;
    }
}
/* =========================================
   FOTO LINKS: FLEXIBELE BREEDTE
   ========================================= */

@media (min-width: 782px) {

    .tekst-foto-sectie.foto-links-sectie {
        display: grid !important;
        grid-template-columns: fit-content(33%) minmax(0, 1fr) !important;
        column-gap: 24px !important;
        align-items: center !important;
    }

    .tekst-foto-sectie.foto-links-sectie .foto-rechts {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 0 !important;
        align-items: flex-start !important;
    }

    .tekst-foto-sectie.foto-links-sectie .foto-in-kolom {
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .tekst-foto-sectie.foto-links-sectie .foto-in-kolom img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    .tekst-foto-sectie.foto-links-sectie .tekst-links {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        padding: 0 !important;
    }
}
/* SMART SLIDER 3 - CENTREREN */

.slider {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

.slider .n2-section-smartslider {
    margin-left: auto !important;
    margin-right: auto !important;
}
/* =========================================
   WEBSHOP - MOBIELE WEERGAVE
   ========================================= */

@media (max-width: 781px) {

    /* Producten onder elkaar */
    #main .shop-product {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        margin-bottom: 40px !important;
    }

    /* Volledige beschikbare breedte benutten */
    #main .shop-product .wp-block-column,
    #main .shop-product .gb-standard,
    #main .shop-product .container {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Productafbeeldingen */
    #main .shop-product figure {
        width: 100% !important;
        margin: 0 !important;
    }

    #main .shop-product img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: 280px !important;
        object-fit: contain !important;
        margin: 0 !important;
    }

    /* Producttitels */
    #main .shop-product h2,
    #main .shop-product h3 {
        font-size: 26px !important;
        line-height: 1.25 !important;
        text-align: left !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 0 12px 0 !important;
    }

    /* Productomschrijving */
    #main .shop-product p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
        overflow-wrap: break-word !important;
    }

    /* WooCommerce-productformulier */
    #main .shop-product .summary {
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #main .shop-product form.cart {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Prijs en aantal naast elkaar */
    #main .shop-product .shop-prijs-aantal {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 4px !important;
    }

    #main .shop-product .shop-prijs-aantal .shop-prijs {
        flex: 1 !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* Aantalveld */
    #main .shop-product .quantity {
        flex: 0 0 auto !important;
        float: none !important;
        margin: 0 !important;
    }

    #main .shop-product .quantity input.qty {
        width: 60px !important;
        text-align: center !important;
    }

    /* Toevoegen aan winkelwagen */
    #main .shop-product .single_add_to_cart_button {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-break: normal !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding: 12px !important;
        box-sizing: border-box !important;
    }

    /* Winkelwagen onder de producten */
    #main .winkelmand-onder-producten {
        width: 100% !important;
        margin-top: 24px !important;
        clear: both !important;
    }

}
/* =========================================
   WEBSHOP - MOBIELE AFREKENPAGINA
   ========================================= */

@media (max-width: 781px) {

    /* Klantgegevens over de volledige breedte */
    body.woocommerce-checkout #customer_details {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Factuurgegevens */
    body.woocommerce-checkout #customer_details .col-1 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Factuurvelden */
    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Invoervelden onder elkaar */
    body.woocommerce-checkout .woocommerce-billing-fields .form-row {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 0 16px 0 !important;
        box-sizing: border-box !important;
    }

    /* Breedte van de invoervelden */
    body.woocommerce-checkout .woocommerce-billing-fields .input-text {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    /* Titel factuurgegevens */
    body.woocommerce-checkout .woocommerce-billing-fields h3 {
        width: 100% !important;
        font-size: 24px !important;
        word-break: normal !important;
        margin-bottom: 16px !important;
    }

}