/* header.php: stijlen (kleuren via --mamoda-* variabelen, zie inc/options.php) */
.dropdown-menu {
    display: none;
    /* Voorkomt dat het menu altijd zichtbaar is */
    width: 100%;
}

.mega-menu {
    display: flex;
    flex-wrap: wrap;
}

.mega-menu .column {
    flex: 1;
    padding: 15px;
}
    .upper-header .container {
        white-space: nowrap;
    }

    .upper-header .row {
        display: flex;
        flex-wrap: nowrap;
    }

    .check {
        margin-right: 4px;
    }
    
                    .navbar.navbar-expand-lg ul {
                        list-style: none;
                        margin: 0;
                        padding: 0;
                        display: flex;
                        gap: 30px;
                        flex-wrap: wrap;
                    }

                    .navbar.navbar-expand-lg ul li {
                        position: relative;
                    }

                    .has-mega-menu p {
                        margin-bottom: 0;
                    }

                    .navbar.navbar-expand-lg ul li a {
                        color: #000 !important;
                        text-decoration: none;
                        margin-right: 0;
                    }

                    .menu-item.active a {
                        font-weight: bold !important;
                    }

                    .menu-item:hover a,
                    .has-mega-menu:hover .mega-menu-title {
                        text-decoration: underline !important;
                    }

                    .has-mega-menu {
                        position: relative;
                    }

                    .mega-menu {
                        position: absolute;
                        width: 1902px;
                        top: 100%;
                        left: -773%;
                        background: white;
                        box-shadow: 0 6px 10px 0px rgba(0, 0, 0, 0.1);
                        display: none;
                        padding: 20px;
                        opacity: 0;
                        /* Zorgt ervoor dat het menu niet zichtbaar is bij het laden */
                        transform: translateY(10px);
                        /* Beginpositie voor animatie */
                        transition: opacity 0.3s ease, transform 0.3s ease;
                        /* Animatie voor zichtbaar maken */
                        border-radius: 10px;
                        z-index: 11;
                    }

                    .has-mega-menu:hover .mega-menu {
                        display: block;
                        opacity: 1;
                        /* Menu wordt zichtbaar bij hover */
                        transform: translateY(0);
                        /* Het menu beweegt omhoog */
                    }

                    .mega-menu .container {
                        display: flex;
                        flex-wrap: wrap;
                        padding: 0;
                        /* Verwijder padding van de container */
                        max-width: 1881px !important;
                        width: 100% !important;
                    }

                    @media (max-width: 1701px) {
                        .mega-menu .container {
                            max-width: 1600px !important;
                        }
                    }

                    @media (max-width: 1500px) {
                        .mega-menu .container {
                            max-width: 1400px !important;
                        }
                    }

                    @media (max-width: 1425px) {
                        .mega-menu .container {
                            max-width: 1300px !important;
                            margin-left: 200px !important;
                        }

                        .bottom-header .container .row .col-3 .navbar .container .collapse.navbar-collapse .navbar-nav {
                            width: 94%;
                        }
                    }

                    @media (max-width: 1400px) {
                        .mega-menu .container {
                            margin-left: 100px !important;
                        }

                        .bottom-header .container .row .col-3 .navbar .container .collapse.navbar-collapse .navbar-nav {
                            width: 80%;
                        }
                    }

                    @media(max-width: 1300px) {
                        .navbar.navbar-expand-lg.navbar-white #navbarNav {
                            margin-left: 0 !important;
                        }

                        .btn.btn-primary.dropdown-toggle {
                            display: none;
                        }

                        .go-to-contact {
                            display: block !important;
                        }
                    }

                    @media(max-width: 1200px) {
                        .menu-item:first-child {
                            display: none;
                        }

                        .menu-item.go-to-contact-menu {
                            display: none;
                        }

                        .mega-menu {
                            width: 1200px;
                            left: -392%;
                        }

                        .upper-header .col-upper-header:last-child {
                            display: none;
                        }
                    }

                    @media (max-width: 1024px) {

                        .mega-menu {
                            width: 1003px;
                            left: -297%;
                        }
                    }

                    @media (max-width: 991px) {
                        .menu-item:first-child {
                            display: block;
                        }
                    }

                    @media (max-width: 475px) {
                        .hero-text-2 {
                            left: 28% !important;
                        }
                    }

                    .mega-menu .container .row {
                        width: 100%;
                    }

                    .mega-menu ul {
                        margin: 0;
                        /* Verwijder standaard marge */
                        padding: 0;
                        /* Verwijder standaard padding */
                        list-style-type: none;
                        /* Verwijder opsommingstekens */
                    }

                    .mega-menu li {
                        margin: 0;
                        /* Verwijder marge van de lijstitems */
                    }

                    .mega-menu a {
                        color: #7A7A7A !important;
                    }

                    .mega-nav-item a:hover {
                        text-decoration: underline !important;
                    }

                    .current-menu-item a {
                        font-weight: 600 !important;
                    }

                    .menu-item-object-page:hover a {
                        font-weight: 600 !important;
                    }

                    .navbar .navbar-nav {
                        padding: 0;
                    }

                    .navbar .mega-nav-item {
                        position: relative;
                        padding-top: 10px;
                    }

                    .dropdown-cat .dropdown-item:not(:last-child)::after {
                        content: '';
                        /* Pseudo-element voor de lijn */
                        position: absolute;
                        bottom: 0;
                        left: 4px !important;
                        /* Beginpunt van de lijn */
                        right: 4px !important;
                        /* Eindpunt van de lijn */
                        height: 1px;
                        background-color: #000;
                        /* Zwarte kleur voor de lijn */
                    }

                    /* Verberg de standaard Bootstrap pijl */
                    .dropdown-toggle::after {
                        display: none !important;
                    }

                    /* De nieuwe SVG-pijl stylen */
                    .dropdown-arrow {
                        display: inline-block;
                        margin-left: 10px;
                        /* Voeg wat ruimte toe tussen de tekst en het icoon */
                        vertical-align: middle;
                        /* Zorg ervoor dat het icoon goed uitgelijnd is met de tekst */
                        transition: transform 0.2s ease-in-out;
                        /* Voeg een overgang toe voor de draaiing */
                    }

                    /* Voeg een draai-effect toe wanneer de dropdown wordt geopend */
                    .dropdown-menu.show~.dropdown-toggle .dropdown-arrow {
                        transform: rotate(180deg);
                        /* Draai de pijl om wanneer het menu wordt geopend */
                    }

                    .mega-menu {
                        animation: fadeIn 0.5s;
                    }

                    @keyframes fadeIn {
                        0% {
                            opacity: 0;
                        }

                        100% {
                            opacity: 1;
                        }
                    }
                    
                    .dropdown-toggle:hover {
                        background-color: #0e3364 !important;
                        color: #fff !important;
                    }

                    .link-to-category:hover svg {
                        transform: translateX(75%);
                    }

                    .link-to-category svg {
                        transition: 0.1s ease-in;
                    }

                    .contact-opnemen {
                        background-color: #0E3364;
                        padding: 30px;
                        border-radius: 10px;
                        margin-bottom: 10px;
                    }

                    .offerte-opvragen {
                        background: transparent;
                        padding: 30px;
                        border-radius: 10px;
                        border: 1px solid #0E3364;
                        margin-bottom: 10px;
                    }

                    .onze-producten {
                        background: transparent;
                        padding: 30px;
                        border-radius: 10px;
                        border: 1px solid #0E3364;
                    }

                    .contact-opnemen-btn:before {
                        top: 3%;
                        left: 27.5%;
                        background-color: #fff;
                        background-image: url('data:image/svg+xml,%3Csvg width="8" height="15" style="scale: 0.7;" viewBox="0 0 8 15" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1L7 7.5L1 14" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') !important;
                    }

                    .offerte-opvragen-btn:before {
                        top: 36%;
                        left: 27.5%;
                        background-color: #e8e8e8;
                        background-image: url('data:image/svg+xml,%3Csvg width="8" height="15" style="scale: 0.7;" viewBox="0 0 8 15" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1L7 7.5L1 14" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') !important;
                    }

                    .onze-producten-btn:before {
                        top: 70%;
                        left: 27.5%;
                        background-color: #e8e8e8;
                        background-image: url('data:image/svg+xml,%3Csvg width="8" height="15" style="scale: 0.7;" viewBox="0 0 8 15" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1L7 7.5L1 14" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') !important;
                    }

                    .go-to-page::before {
                        content: '' !important;
                        background-repeat: no-repeat !important;
                        background-position: center !important;
                        width: 34px !important;
                        height: 34px !important;
                        border-radius: 4px;
                        color: black !important;
                        transition-duration: 0.3s;
                        -webkit-transition-duration: 0.3s;
                    }

                    .contact-opnemen-btn:before,
                    .offerte-opvragen-btn:before,
                    .onze-producten-btn:before {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        width: 24px;
                        height: 24px;
                        font-size: 1.5rem;
                        line-height: 1;
                        text-decoration: none;
                        position: absolute;
                        z-index: 10;
                    }

                    .titel-offerte-opvragen,
                    .titel-onze-producten {
                        color: #0E3364 !important;
                    }

                    .tekst-contact-opnemen,
                    .tekst-offerte-opvragen,
                    .tekst-onze-producten {
                        width: 78%;
                        margin-bottom: 0;
                    }

                    .contact-opnemen,
                    .offerte-opvragen,
                    .onze-producten {
                        width: 87%;
                        margin-left: 36px;
                        -webkit-transition-duration: 0.3s;
                        transition-duration: 0.3s;
                    }

                    .contact-opnemen:hover,
                    .offerte-opvragen:hover,
                    .onze-producten:hover {
                        transform: scale(0.9);
                        -webkit-transform: scale(0.9);
                    }

                    .contact-opnemen:hover {
                        background-color: transparent !important;
                        border: 1px solid #0E3364;
                    }

                    .offerte-opvragen:hover,
                    .onze-producten:hover {
                        background-color: #0E3364 !important;
                    }

                    .offerte-opvragen:hover h5,
                    .onze-producten:hover h5,
                    .offerte-opvragen:hover p,
                    .onze-producten:hover p {
                        color: #fff !important;
                    }

                    .titel-contact-opnemen,
                    .tekst-contact-opnemen {
                        color: #fff !important;
                    }

                    .contact-opnemen:hover .titel-contact-opnemen {
                        color: #0E3364 !important;
                    }

                    .contact-opnemen:hover .tekst-contact-opnemen {
                        color: #000 !important;
                    }

                    .dropdown-cat .dropdown-menu {
                        padding: 0;
                        /* Verwijdert extra padding rond de dropdown */
                    }

                    .dropdown-cat .dropdown-item {
                        position: relative;
                        /* Nodig voor pseudo-element */
                        padding: 10px 20px;
                        /* Zorgt voor padding binnen het item */
                    }

                    .dropdown-cat .dropdown-item:not(:last-child)::after {
                        content: '';
                        /* Pseudo-element voor de lijn */
                        position: absolute;
                        bottom: 0;
                        left: 4px !important;
                        /* Beginpunt van de lijn */
                        right: 4px !important;
                        /* Eindpunt van de lijn */
                        height: 1px;
                        background-color: #000;
                        /* Zwarte kleur voor de lijn */
                    }

                    /* Verberg de standaard Bootstrap pijl */
                    .dropdown-toggle::after {
                        display: none !important;
                    }

                    /* De nieuwe SVG-pijl stylen */
                    .dropdown-arrow {
                        display: inline-block;
                        margin-left: 10px;
                        /* Voeg wat ruimte toe tussen de tekst en het icoon */
                        vertical-align: middle;
                        /* Zorg ervoor dat het icoon goed uitgelijnd is met de tekst */
                        transition: transform 0.2s ease-in-out;
                        /* Voeg een overgang toe voor de draaiing */
                    }

                    /* Voeg een draai-effect toe wanneer de dropdown wordt geopend */
                    .dropdown-menu.show~.dropdown-toggle .dropdown-arrow {
                        transform: rotate(180deg);
                        /* Draai de pijl om wanneer het menu wordt geopend */
                    }
                    
                    .aws-search-form.aws-show-clear {
                        margin-bottom: 0px !important;
                        height: 47px;
                    }

                    .aws-container .aws-search-form .aws-form-btn {
                        background: #F2F2F2 !important;
                        border-radius: 5px 0 0 5px !important;
                        border-left: 0 !important;
                    }

                    .aws-container .aws-search-form .aws-search-field {
                        background: #F2F2F2 !important;
                    }

                    .woocommerce-Price-amount.amount {
                        color: #000000 !important;
                    }

                    .aws-container .aws-search-field {
                        border-right: 0 !important;
                        border-radius: 0 5px 5px 0 !important;
                    }

                    .aws_result_item.aws_search_more {
                        display: none !important;
                    }

                    /* .aws-search-form.aws-show-clear input[type="search"]:focus {
                                background-color: white;
                                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
                                transform: scale(1.02);
                                z-index: 9999995; 
                            } */
                    
            .aws-container .aws-search-form .aws-form-btn {
                background: #F2F2F2 !important;
                border-radius: 0px 5px 5px 0px !important;
                border: none !important;
            }

            .woocommerce-Price-amount.amount {
                color: #000000 !important;
            }

            .aws-container .aws-search-field {
                border: none !important;
                border-radius: 5px 0px 0px 5px !important;
                font-size: 15px !important;
            }

            .aws_result_item.aws_search_more {
                display: none !important;
            }
            
@media (max-width: 1200px) {
    .bottom-header .container .row .col-3 .navbar .container .collapse.navbar-collapse .navbar-nav {
        width: 65%;
    }

    .mega-menu .container {
        margin-left: 0 !important;
        max-width: 1220px !important;
    }
}

@media (max-width: 1024px) {
    .cart-count {
        right: 35px;
    }
}

/* Zorg ervoor dat de kleur van het zoekicoon zwart blijft, zelfs bij hover */
@media (min-width: 992px) {
    .btn-outline-secondary:hover svg {
        color: black;
    }

    .btn-outline-secondary svg {
        color: black;
    }

    /* Bovenste header styling */
    .upper-header {
        background-color: var(--mamoda-primary-color);
        padding: 5px 0;
    }

    .upper-header .row {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        justify-content: flex-start;
    }

    .upper-header .col {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        white-space: nowrap;
        flex: 0 0 0%;
    }

    .upper-header span {
        font-size: 14px;
    }

    /* Middelste header styling */
    header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .navbar-toggler {
        border: none;
        background-color: transparent;
        font-size: 24px;
        color: var(--mamoda-text-color);
    }

    .nav-link {
        color: var(--mamoda-text-color);
        margin-right: 15px;
    }

    .nav-link:last-child {
        margin-right: 0;
    }

    /* CTA styling */
    .cta-container {
        display: none;
    }

    .menu-item a {
        text-decoration: none !important;
    }

    .dropdown-menu .dropdown-item {
        border-bottom: 1px solid #ccc;
        /* Lijn tussen de items */
    }

    .dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
        /* Verwijder de lijn bij het laatste item */
    }

    .cta-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }

    .dropdown-cat .dropdown-menu {
        width: 100% !important;
        /* Maak dropdown-items even breed als de knop */
        max-width: 23.5% !important;
    }

    .phone-header {
        display: none;
        flex-direction: column;
    }
}

@media (max-width: 991px) {

    .upper-header-scroll {
        background-color: var(--mamoda-primary-color);
        padding: 5px 0;
        overflow-x: auto;
    }

    .upper-header-scroll .row {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        justify-content: flex-start;
    }

    .upper-header-scroll .col {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .upper-header-scroll span {
        font-size: 14px;
        color: #fff !important;
    }

    /* Styling voor de middle-header */
    .middle-header {
        background-color: white;
        padding: 10px 0;
    }

    .navbar-toggler {
        border: none;
        background-color: transparent;
    }

    .navbar-toggler-icon {
        font-size: 24px !important;
    }

    /* Winkelwagen knop */
    .winkelwagen-btn {
        width: 35px;
        height: 35px;
        position: relative;
        display: flex;
        justify-content: right;
        align-items: right;
        float: right;
        margin-right: 0 !important;
    }

    .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        font-size: 12px;
        color: white;
        background-color: #49380A;
        border-radius: 50%;
        padding: 2px 8px;
    }

    /* Zoekbalk */
    .search-bar {
        padding: 10px 0;
        background-color: #F2F2F2;
    }

    .search-bar input {
        border-radius: 0;
        padding-right: 40px;
        `
    }

    .search-bar button {
        padding: 0;
        border: none;
        background-color: transparent;
    }

    .pc-header {
        display: none;
    }

    .phone-header {
        display: flex;
        flex-direction: column;
    }

    .phone-header .upper-header-scroll {
        background-color: var(--mamoda-primary-color);
        padding: 5px 0;
        overflow-x: auto;
    }

    .phone-header .row {
        display: flex;
        gap: 4px;
    }

    .phone-header .col {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        white-space: nowrap;
    }

    .phone-header .search-bar {
        width: 100% !important;
        padding-right: 10px;
        padding-left: 10px;

    }

}
/* Overlay-menu-stijlen voor mobiel */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.80);
    /* background: rgba(0, 0, 255, 0.99); */
    color: white;
    display: none;
    z-index: 2000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}


.menu-overlay.active {
    display: flex;
}

.menu-overlay ul {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: flex-start;
}

.menu-overlay ul li {
    padding: 5px 0;
}

.menu-overlay ul li a {
    color: #F0F0F0D6;
    text-decoration: none;
}

.menu-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3.5rem;
    /* Grotere sluitknop */
    cursor: pointer;
}

/* Alleen tonen voor mobiel */
@media (min-width: 992px) {

    .menu-toggle,
    .contact-btn {
        display: none;
    }

    .menu-overlay {
        display: none !important;
    }
}

/* Contactknop en hamburgerpositie op mobiel */
.header-buttons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.contact-btn {
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    font-size: 1rem;
    margin-right: 10px;
}

.contact-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.menu-toggle {
    padding: 5px 15px;
    border: none;
    background: none;
}
    .material-symbols-outlined {
        font-variation-settings:
            'FILL'0,
            'wght'400,
            'GRAD'0,
            'opsz'48
    }

    .accordion-header-overlay {
        width: 90%;
        margin-left: 5%;
        height: auto;
        padding-bottom: 3%;
        margin-top: 30%;
    }

    .accordion-header-header-overlay {
        position: relative;
        padding-bottom: 10px;
        padding-top: 10px;
        border-bottom: 2px solid #fff;
        font-size: 20px !important;
        margin-bottom: 0;
    }

    .accordion-button-header-overlay:not(.collapsed) {
        font-weight: bold !important;
    }

    .accordion-button-header-overlay {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border: none;
        cursor: pointer;
        font-size: 21px !important;
        padding-left: 0;
        font-weight: bold;
        color: #fff !important;
    }

    .accordion-button-header-overlay::after {
        margin-left: auto;
        background-image: url('data:image/svg+xml,%3Csvg width="16" height="10" viewBox="0 0 13 7" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1L6.5009 6L12 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
        background-repeat: no-repeat;
        background-position: center;
        display: inline-block;
        content: '';
        width: 16px;
        height: 10px;
        transition: transform .4s ease-in-out;
        transform: rotateX(-180deg);
    }

    .accordion-button-header-overlay:not(.collapsed)::after {
        background-image: url('data:image/svg+xml,%3Csvg width="16" height="10" viewBox="0 0 13 7" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M1 1L6.5009 6L12 1" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
        transform: rotateX(0deg);
    }

    .accordion-button-header-overlay:focus {
        outline: none;
    }

    .accordion-body-header-overlay {
        margin-top: 5%;
    }

    .accordion-body-header-overlay a,
    .accordion-header-overlay p {
        color: #F0F0F0D6 !important;
        text-decoration: none;
        font-size: 18px !important;
    }

    .accordion-body-header-overlay:hover a {
        color: #F0F0F0 !important;
    }

    .accordion-body-header-overlay h5 {
        color: #fff !important;
        font-size: 20px !important;
    }

    .email {
        margin-bottom: 1%;
    }

    .navbar-nav .current-menu-item a {
        color: #000 !important;
        font-weight: normal;
    }

    .dropdown-toggle-full-border {
        display: none;
    }

    .contact-btn-scroll-down {
        display: block !important;
    }

    .bottom-header-padding-bottom {
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
    }

/* quirks-regelhoogte: "We helpen je graag" / bel / mail onder elkaar */
.cta-text {
    display: flex;
    flex-direction: column;
}

.cta-text br {
    display: none;
}
