body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'CoFo Sans', sans-serif;
    background-color: #FFF;
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px 1rem 30px;
    background-color: black;
    color: #fff;
    top: 0;
    width: 100%;
    z-index: 15;
}

.nav-links {
    display: none;
}

.nav-links ul {
    display: flex;
    list-style-type: none;
    gap: 1vw;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #fff;
    font-family: Ubuntu;
    font-style: bold;
    text-decoration: none;
    font-size: 1.15rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
}

body {
    margin-top: 6.5rem;
}

.logo1 a {
    margin-left: 2.25rem;
    display: block;
    width: 120px;
    height: auto;
}
  
.logo1 a img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo2 a {
    display: block;
    height: 57.41px;
    width: auto;
}

.logo2 a img {
    max-height: 100%;
    width: auto;
    display: block;
}

.algemeneVoorwaarden a {
    font-style: italic;
}

.containerProducten {
    max-width: 80vw;
    margin: 2rem auto;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.containerProducten h2 {
    color: #333;
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    padding-top: 1.25rem;
    padding-bottom: .75rem;
    font-family: Ubuntu;
}

.product {
    display: flex;
    gap: 2rem;
    padding: 40px 20px;
    border-bottom: 1px solid #ddd;
    margin: 1rem;
}

.product:last-of-type {
    border-bottom: none;
}

.product-info .prijs {
    margin: .2rem 0 0 0;
    font-weight: bold;
    font-size: 18px;
}

.setBevat {
    margin: 4rem 0 0 0;
    font-weight: bold;
}

.product-info {
    flex-grow: 1;
    font-family: sans-serif;
}

.setBevatExtraMarge {
    margin-top: 1rem;
}

.product-info a, .naamProduct {
    color: #444;
    font-size: 1.6em;
    margin: 0 0 30px;
    font-weight: 600;
}

.product-info a:hover {
    text-decoration: underline; /* Onderstreping bij hover */
}

.product-info a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    color: black;
}

.product-info a.hoverLinkFabrikant {
    position: relative;
    cursor: pointer;
}

.product-info a.hoverLinkFabrikant .hoverLinkFabrikant-text {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    position: absolute;
    z-index: 50;
    top: 125%;
    left: 70%;
    transform: translateX(-70%);
    white-space: nowrap;
    opacity: 0.5;
    transition: opacity 0.3s;
    font-size: 15px;
}

.product-info a.hoverLinkFabrikant .hoverLinkFabrikant-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent black transparent;
}

.product-info a.hoverLinkFabrikant:hover .hoverLinkFabrikant-text {
    visibility: visible;
    opacity: 1;
}

.product-info p {
    line-height: 1.6;
    margin: 10px 0 0 0;
}

.product:hover {
    background-color: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specificaties {
    font-weight: 600;
    margin-top: 5rem;
}

.prijs, .binnekortBeschikbaar, .setBevat, .specificaties, .combineerbaar {
    font-family: Ubuntu;
}

.combineerbaar {
    font-weight: 500;
    font-style: italic;
}

.binnekortBeschikbaar {
    font-style: italic;
    margin: .8rem 0 0 0;
    font-weight: bold;
    font-size: 18px;
    color: #666;
}

.bekabeling, .inbegrepen {
    padding-top: .6rem;
}

.inbegrepen {
    font-weight: 600;
}

.containerProducten ul ul{
    margin-left: 1rem;
}

.productBeschrijving {
    font-weight: 600;
    font-size: 18px;
    margin-top: 0;
    padding-bottom: .75rem;
}


/* Galerij container */
.gallery {
    position: relative;
    width: 100%;
    max-width: 600px;  /* Max breedte op desktops */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Galerij afbeeldingen */
.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.gallery-image.active {
    opacity: 1;
    position: relative;
}

/* Navigatieknoppen */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    border-radius: 3px;
    z-index: 10;
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.containerProducten li {
    list-style-type: disc;
    margin-left: 1rem;
    margin-top: .5rem;
    font-family: ubuntu;
}



.voorwaardenTekst {
    text-align: center;
    padding: 1rem 0 1.5rem 0;
}

.voorwaardenTekst a {
    font-style: italic;
    color: black;
    text-decoration: none;
    color: black;
    font-weight: 500;
}

.voorwaardenTekst a:hover {
    text-decoration: underline;  /* Onderstreping bij hover */
}


/* Stijling voor de "Naar boven" knop */
.to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;  /* Start als verborgen */
    font-size: 14px;
    z-index: 1000;  /* Zodat het boven de andere elementen verschijnt */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

/* Maak de knop zichtbaar wanneer de gebruiker heeft gescrolld */
.to-top.visible {
    display: block;
}

/* Verander de kleur bij hover */
.to-top:hover {
    background-color: #555;
}






.lightbox {
    display: none; /* Verberg standaard */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}




/* Responsieve aanpassingen */
@media (max-width: 600px) {
    .gallery {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    .containerProducten h2 {
        font-size: 10vw;
    }
}

/* Media Queries */

@media (max-width: 1300px) {
    header h1 {
        font-size: 2.5rem;
    }
    .gallery {
        max-width: 35%;
        margin: 0 3rem;
    }
    header h1 {
        font-size: 2rem;
    }
    .containerProducten {
        max-width: 80%;
        padding: 5%;
    }
    .product {
        flex-direction: column;
        align-items: center;
        text-align: left;
        padding: 40px 5px;
    }
    .gallery {
        max-width: 70%;
        margin: 0 1rem;
        max-width: 480px;
        height: calc(480px * 0.75);
    }
    .logo1 img {
        height: 40px;
    }

    .product-info {
        max-width: 100%;
    }
}

@media (max-width: 450px) {
    header h1 {
        font-size: 2rem;
    }
    .containerProducten {
        max-width: 100%;
        padding: 5%;
        padding-top: 0;
    }
    .gallery {
        max-width: 100%;
    }
}


@media (min-width: 1100px) {
    .nav-links {
        display: flex;
        justify-content: flex-end;
        flex-grow: 1;
    }
    .hamburger {
        display: none;
    }
    header {
        justify-content: center;
    }
}

@media (max-width: 1099px) {
    .logo1, .logo2 {
        margin: 0 auto;
    }
    .logo1 a {
        width: 10.4vw;
    }
    .logo2 a {
        height: 5vw;
    }
    .logo1 a, .logo1 a img, .logo2 a, .logo2 a img {
        padding: 0;
        margin: 0;
    }

    .hamburger {
        position: absolute;
        right: 2vw;
    }

    .nav-links.active {
        display: block;
        position: fixed;
        top: 70px;
        right: 0;
        width: 300px;
        background-color: #333;
        padding: 0 0;
        text-align: right;
        border-radius: 4px 0 0 6px;
        box-shadow: -4px 0 8px rgba(1, 0, 0, 0.2);
    }
    .nav-links li {
        z-index: 50;
        padding: 10px 20px;
        border-bottom: 1px solid #444;
    }
    .nav-links li:last-of-type {
        border-bottom: none;
    }
    .nav-links ul {
        flex-direction: column;
        gap: 1px;
    }
}


@media only screen and (max-width: 450px) {
    .logo2, .logo1 {
        display: flex;
    }
    .logo2 a {
        height: 31px;
    }

    .logo1 a {
        width: 76px;
        height: auto;
    }
}