/* ################# */
/* ##### DEBUG ##### */
/* ################# */
/* * { */
    /* outline: 1px solid red;  */
/* } */
.layout {
    display: flex;
    flex-direction: row;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Optioneel: een subtiele beweging */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInSlow {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
        transform: translateY(20px); /* Optioneel: een subtiele beweging */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ######### */
/* FILTERTJE */
/* ######### */
.producten-filter-grid {
    width: 500px;
    margin-right: 100px;
    background-color: #2c2c2c;
}
.producten-filter {
    box-sizing: border-box;
    
    top: 100px;
    position: sticky;
}
.filtertje {
    min-height: 500px;
    width: 100%;
    border-radius: 10px;
    font-family: Roboto-Regular;
}
.filtertje-inhoud {
    padding: 30px;
}
.filtertje-inhoud h2 {
    height: auto;
    margin: 0;
    font-family: Roboto-Black;
}
.filtertje-divider {
    margin-bottom: 15px;
    margin-top: 15px;
    background-color: #363636;
    height: 5px;
    border-radius: 3px;
}
.filtertje-checkbox-row {
    display: flex;
    flex-direction: row;
}
.filtertje-inhoud-checkbox {
    appearance: none;
    width: 17px;
    height: 17px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease-in-out;
}
.filtertje-inhoud-checkbox:checked {
    background-color: #ffc400;
    border-color: #ffc400;
}
.filtertje-inhoud-checkbox-label {
    padding-left: 5px;
}
@media screen and (max-width: 1300px) {
    .producten-filter-grid {
        display: none !important;
    }
}



/* ######### */
/* PRODUCTEN */
/* ######### */
.producten-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Exact 2 items per rij */
    gap: 50px;
    box-sizing: border-box;
    margin-top: 100px;
    margin-bottom: 200px;
    
    opacity: 0; /* Begin met onzichtbaar */
    animation: fadeIn 1s ease-out forwards;
}
@media screen and (min-width: 2000px) {
    .producten-grid {
        grid-template-columns: repeat(3, 1fr); /* Exact 2 items per rij */
    }
}

.product-box {
    background-color: transparent;
    border: none;
    text-align:left;
    font-family: Roboto-Regular;
}
.product-box-container {
    background-color: #222;
    height: fit-content;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 20px 0 #202020;
    transition: all 0.3s ease-in-out;
}.product-box-container:hover {
    transform: translateY(-10px);
}
.product-box-container-padding {
    padding: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    height: 10rem;
    display: flex;
    gap: 5px;
    align-content: flex-start;
    flex-wrap: wrap;
}

.product-thumbnail {
    border-radius: 5px;
    width: 100%;
}

.product-info-row {
    padding: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}.product-info-row h1 {
    font-family: Roboto-Black;
    margin: 0;
}.product-info-row h3 {
    font-family: Roboto-Regular;
    margin: 0;
    color: #ffc400;
}

.product-button-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8vw;
}.product-button-row button {
    background-color: #ccc;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    border-radius: 100px;
    transition: ease-in-out 0.2s all;
}.product-button-row button:hover {
    background-color: #fff;
    cursor: pointer;
}.product-button-row a {
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    text-decoration: none;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    border-radius: 100px;
    transition: ease-in-out 0.2s all;
}.product-button-row a:hover {
    background-color: #fff;
    cursor: pointer;
}

.product-tag {
    backdrop-filter: blur(4px);
    border: 2px solid #ccc;
    border-radius: 5px;
    width: fit-content;
    height: fit-content;
    padding: 5px;
    white-space: nowrap;
}



/* ################# */
/* ##### POPUP ##### */
/* ################# */
.popup-verduistering {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 97;
}

#productPopup {
    position: fixed;              /* Zet popup vast op het scherm */
    top: 50%;                     /* 50% van boven */
    left: 50%;                    /* 50% van links */
    transform: translate(-50%, -50%); /* Trek de helft terug om exact te centreren */
    z-index: 98;                /* Bovenop alles */
    width: 80%;
    height: 80%;
    box-sizing: border-box;
    display: none;
}

.product-popup {
    width: 100%;
    height: 100%;
    background-color: #4e4e4e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 30px 10px #2424244b;
}

.product-popup-layout {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.product-informatiekaartje {
    border-radius: 15px;
    background-color: #3f3f3f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin: 40px;
    animation: fadeIn 1s ease-out forwards;
}

.product-titel {
    margin: 0;
    color: #eeeeee;
    font-family: tahoma-bold;
}

.product-beschrijving {
    margin-top: 20px;
    color: #ccc;
    font-family: tahoma;
}

.product-benodigdheden {
    margin-top: 20px;
    margin-bottom: 0;
    color: #eeeeee;
    font-family: tahoma;
}

.product-benodigdheden-item {
    margin: 0;
    color: #ccc;
    font-family: tahoma;
}

.product-prijs {
    margin-top: 20px;
    color: #ffc400;
    font-family: tahoma-bold;
}

.product-afbeelding {
    border-radius: 15px;
    aspect-ratio: 16 / 9; 
    width: 100%;
    object-fit: cover;
    max-height: 70%;
    animation: fadeIn 1s ease-out forwards;
}

.product-afbeelding-klein-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding-top: 20px;
    overflow-x: auto; /* horizontale scrollbar als het te breed wordt */
    -webkit-overflow-scrolling: touch; /* smooth scroll op mobiel */
}

.product-afbeelding-klein {
    width: 100%;
    height: 100%;
    object-fit: cover; /* vult de container zonder vervorming */
    animation: fadeInSlow 1.5s ease-out forwards;
    transition: all 0.2s ease-in-out;
}.product-afbeelding-klein:hover {
    filter: blur(2px);
}

.afbeelding-hover-container {
    flex: 0 0 auto; /* voorkomt dat items krimpen of uitrekken */
    aspect-ratio: 16 / 9; /* altijd 16:9 */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.afbeelding-hover-container video {
    width: 100%;            /* vult de breedte van de container */
    height: 100%;           /* vult de hoogte van de container */
    object-fit: cover;      /* behoudt 16:9 en vult de box zonder vervorming */
    border-radius: 15px;    /* optioneel, past bij container */
    display: block;         /* voorkomt kleine whitespace onder video */
    animation: fadeInSlow 1.5s ease-out forwards;
}

.hover-knop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0);
    color: white;
    border: none;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.afbeelding-hover-container:hover .hover-knop {
    opacity: 1;
}

.product-afbeelding-box {
    margin: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-kopen-knop {
    width: 100%;
    border-radius: 20px;
    border: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0);
    border: 3px solid #ffc400;
    color: #ffc400;
    font-family: tahoma-bold;
    bottom: 0;
    transition: ease-in-out all 0.1s;
}
.product-kopen-knop:hover {
    background-color: #ffc4006c;
    cursor: pointer;
}

.terug-knop-container {
    margin: 40px;
    margin-top: 0px;
    animation: fadeIn 1s ease-out forwards;
}

.terug-knop {
    width: 100%;
    border-radius: 20px;
    border: none;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0);
    border: 3px solid #b1b1b1;
    color: #b1b1b1;
    font-family: tahoma-bold;
    bottom: 0;
    transition: ease-in-out all 0.1s;
}
.terug-knop:hover {
    background-color: #b1b1b16c;
    color: #eeeeee;
    cursor: pointer;
    border-color: #eeeeee;
}





/* ################## */
/* ##### LOADER ##### */
/* ################## */
#loader {
    height: 60vh;
    display: flex; 
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.loader-bolletje {
    border-radius: 100%;
    background-color: #666666;
    height: 20px;
    width: 20px;
    animation: bounce 0.8s ease-in-out infinite;
}

/* Tweede bolletje start iets later */
.loader-bolletje:nth-child(2) {
    animation-delay: 0.15s;
}

/* Derde bolletje start nog iets later */
.loader-bolletje:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes bounce {
    0%, 100% { transform: scale(0.9); }
    50% { transform: scale(1.2); }
}