body {
    background-color: #D6D6D6;
    margin: 0;
    font-family: Arial, sans-serif; 
    display: flex;
    flex-direction: column; 
    min-height: 100vh;
}

header {
    background-color: #EAEAEA;
    width: 100%; 
    height: 80px; 
    display: flex;
    justify-content: center;
    align-items: center; 
    position: sticky;
    top: 0;
    z-index: 100;
}

#hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 55px; /* Breder maken */     /*niet meer veranderen*/
    height: 35px;   /*niet meer veranderen*/
    cursor: pointer;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* De drie streepjes */
#hamburger-menu span {
    display: flex;
    width: 100%;
    height: 5px; /* Dikker maken */
    background-color: #000000;
    border-radius: 4px;
}

/* Websitenaam in het midden van de header */
.site-name {
    text-align: center;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

/* Navigatie links (verbergen standaard) */
#nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background-color: #000000;                   /*nog veranderen*/
    padding: 20px 0;
    z-index: 99;
}

/* Links in het navigatiemenu */
#nav-links a {
    color: #2563EB;
    text-decoration: none;
    font-size: 18px;
    margin: 10px 0;
}

/* Hover effect voor de links */
#nav-links a:hover {
    text-decoration: underline;
}

/* Zoekbalk wrapper */
.search-wrapper {
    position: absolute;
    right: 75px; /* Zet het naast de winkelwagen */
    display: flex;
    align-items: center;
}

/* Zoekicoon (vergrootglas) */
.search-icon {
    font-size: 25px;
    color: black;
    cursor: pointer;
    transition: transform 0.3s ease; /* Je kunt de animatie aanpassen */
    display: block; /* Zorg ervoor dat de zoekbalk zichtbaar is bij de start */
}

/* Sluitknop (kruisje), standaard verborgen */
.close-icon {
    font-size: 25px;
    color: black;
    cursor: pointer;
    display: none; /* Verbergen als de zoekbalk niet actief is */
}

/* Verborgen zoekbalk */
.search-input {
    width: 0;
    padding: 8px;
    border: none;
    outline: none;
    border-radius: 20px;
    transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Zorgt voor een vloeiende overgang */
    background-color: white;
    opacity: 0;
    position: absolute;
    right: 30px; /* Startpositie rechts van het icoon */
}

/* Actieve zoekbalk (breed en zichtbaar) */
.search-wrapper.active .search-input {
    width: 200px;  /* Breedte van de zoekbalk */
    opacity: 1;
    border: 1px solid #ccc;
    padding-left: 10px;
    right: 30px; /* Blijft naast het icoon */
}

/* Wanneer de zoekbalk actief is, maak het kruisje zichtbaar en verberg het zoekicoon */
.search-wrapper.active .close-icon {
    display: block; /* Maakt de sluitknop zichtbaar */
}

.search-wrapper.active .search-icon {
    display: none; /* Verbergt het zoekicoon wanneer het kruisje zichtbaar is */
}

/* Eventuele animaties voor het vergrootglas */
@keyframes rotateSearch {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(180deg);
    }
}




/*winkelwagen*/

#cart-container {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#cart-container i {
    font-size: 28px;
    color: #000;
}

#cart-count {
    background-color: #EAEAEA;
    color: #000;
    font-size: 13px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    border: 2px  solid black;
}


/* Scroll-balk stijl */
#scroll-bar {
    background-color: #4f81ef;
    height: 40px; 
    width: 100%;
    position: fixed;
    top: 80px;
    left: 0;
    transition: transform 0.3s ease; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

/* Main container */
main {
    flex-grow: 1;
    padding: 45px;
}


/* Algemene productstijl */
.product {
    padding: 20px;
    background-color: #f0f0f0;
    text-align: center;
    border: 1px solid #2563EB;
    box-shadow: 0 3px 8px rgba(183, 183, 183, 0.6);
    box-sizing: border-box;
    height: 420px;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none; /* Zorg ervoor dat de link geen onderstreping krijgt */
    overflow: hidden; /* Zorg ervoor dat de box geen randen overschrijdt bij hover */
}

.product a {
    display: block;
    width: 100%;
    height: 100%;
}

.product:hover a {
    pointer-events: all; /* Zorg ervoor dat de gehele box klikbaar blijft, zelfs bij hover */
}

.product {
    padding: 0; /* Verwijder de padding hier, zodat de klikbare ruimte altijd volledig is */
}



.product:hover {
    transform: scale(1.05); /* Vergroot het product een beetje */
    cursor: pointer;  /* Laat zien dat het klikbaar is */
}


/* Streep onderaan het product */
.product::after {
    content: "";
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #2563EB;
}

/* Container voor de tekst en maatknoppen */
.product-info {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 10px;
}

/* Naam van het product linksboven */
.product-name {
    font-weight: bold;
    font-size: 18px;
    margin-left: 2%;
    margin-bottom: -18px;
    position: relative;
    display: inline-block;
    color: #000; /* Naam blijft zwart */
}

/* Prijs van het product rechts uitgelijnd */
.product-price {
    font-size: 16px;
    color: #2563EB;
    text-align: right;
    margin-bottom: 8px;
    margin-right: 2%;
}

/* Maten onder de naam en prijs */
.product-sizes {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Ronde maatknoppen */
.size-button {
    width: 30px;
    height: 30px;
    border: 2px solid #2563EB;
    border-radius: 50%;
    background-color: white;
    color: #2563EB;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-in-out;
    margin-bottom: -10px;
}

.size-button:hover {
    background-color: #ddd;
}

.size-button.active {
    background-color: #2563EB;
    color: white;
    border-color: #2563EB;
}

/* Producten grid */
.producten {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 15px;
    row-gap: 15px;
    margin: 15px 0;
    width: 100%;
}

/* Responsief voor middelgrote schermen */
@media (max-width: 1024px) {
    .producten {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsief voor kleinere schermen */
@media (max-width: 768px) {
    .producten {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsief voor extra kleine schermen */
@media (max-width: 480px) {
    .producten {
        grid-template-columns: 1fr;
    }
}


/* Footer */
footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #EAEAEA;
    width: 100%; 
    height: 130px; 
    bottom: 0;
}

/* Copyright */
.copyrigt {
    display: flex;
    position: relative;
    bottom: -20px;
    left: 0;
    margin-left: 2%;  
}









/*productpagina*/
/* Zorg ervoor dat de productcontainer een flexbox wordt */
.product-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35%;
    padding: 20px;
    background-color: #f0f0f0;
    box-shadow: 0 3px 8px rgba(183, 183, 183, 0.6);
    margin-left: auto; /* Duwt het element naar rechts */
}
/* De afbeeldingen krijgen een vaste breedte */
.product-images {
    width: 45%;  /* Dit zorgt ervoor dat de afbeeldingen niet te groot worden */
    margin-right: 20px;  /* Dit geeft een beetje ruimte tussen de afbeeldingen en de tekst */
}


/* Zorg ervoor dat de afbeeldingen goed worden weergegeven */
.product-images img {
    width: 100%; /* Zorg ervoor dat de hoofdafbeelding altijd de breedte van de container vult */
    height: auto;
    margin-bottom: 10px;  /* Ruimte tussen de afbeelding en de thumbnails */
}

/* Kleine thumbnails krijgen een hoogte en marge */
.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;  /* Zorgt ervoor dat de afbeeldingen niet vervormd worden */
    cursor: pointer;
}

/* Style voor de knoppen en de productinfo */
.add-to-cart {
    padding: 10px;
    background-color: #2563EB;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.add-to-cart:hover {
    background-color: #1D50A1;
}


/* Winkelwagen dropdown */
.cart-dropdown {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 300px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 15px;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.cart-dropdown.active {
    display: block;
}

.cart-item {
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item p {
    margin: 0;
    font-size: 14px;
}

.remove-item {
    background: none;
    border: none;
    color: red;
    font-size: 16px;
    cursor: pointer;
}

.remove-item:hover {
    text-decoration: underline;
}

#go-to-cart {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border: none;
    cursor: pointer;
}

#go-to-cart:hover {
    background-color: #555;
}

/* Winkelwagenpagina */
#cart-items-list {
    margin-top: 20px;
}

.cart-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#total {
    margin-top: 20px;
}

#checkout-button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#checkout-button:hover {
    background-color: #218838;
}



/*recent bekeken*/
#recent-products {
    margin-top: 50px;
}

.recent-product-box {
    display: inline-block;
    padding: 10px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #2563EB;
    margin-bottom: 4px;
    margin-left: 6px;
}

.recent-product-box h4 {
    font-size: 16px;
}

.recent-product-box p {
    font-size: 14px;
    color: #555;
}


/* Scrollbare container */
#recent-products {
    overflow-x: auto; /* Maakt horizontaal scrollen mogelijk */
    white-space: nowrap; /* Voorkomt dat de items naar een nieuwe regel springen */
    display: flex;
    padding-bottom: 10px; /* Extra ruimte voor de scrollbalk */
    max-width: 100%;
    scrollbar-width: none; /* Verbergt de scrollbar in Firefox */
}

/* Scrollbalk verbergen in Chrome, Edge en Safari */
#recent-products::-webkit-scrollbar {
    display: none;
}

/* Individuele productdozen */
.recent-product-box {
    display: inline-block;
    width: 178px;
    text-align: center;
    background-color: #f0f0f0;
    border: 1px solid #2563EB;
}

.product-image {
    object-fit: contain;  /* Behoudt de verhoudingen van de afbeelding */
    margin-bottom: 25px;
    max-height: 310px;  /* Max hoogte instellen */
    width: 100%;  /* De afbeelding vult altijd de breedte van de container */
    display: block;  /* Zorg ervoor dat de afbeelding een blokniveau-element is */
    margin-left: auto;
    margin-right: auto; /* Zorg ervoor dat de afbeelding horizontaal gecentreerd wordt */
}


.cart-item-image {
    max-width: 180px;
    height: auto; /* Behoudt de verhoudingen */
    object-fit: contain; /* Zorgt ervoor dat de afbeelding niet uitrekt */
}