/* Opmaak vam de producten search pagina */


.product-search-grid-ouder{
    display: flex; 
    gap: 25px;
}

.product-search-sidebar { 
    width: 20%;
}


/* Standaard grid op desktop (3 kolommen) */
#filtered-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

/* Responsiviteit: 2 kolommen op tablets */
@media (max-width: 1024px) {
    #filtered-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsiviteit: 1 kolom op mobiele schermen */
@media (max-width: 768px) {
    #filtered-products {
        grid-template-columns: 1fr;
    }
}

/* Extra ruimte voor grotere schermen */
@media (min-width: 1200px) {
    #filtered-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Filter sectie (aanpassing voor kleinere schermen) */
#product-filter-form {
    width: 100%;
}

/* Zorg ervoor dat de zoekbalk goed schaalt op mobiele schermen */
#product-search {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    display: none;
}

/* Stijlen voor het filterformulier */
.filter-group {
    margin-bottom: 15px;
}

/* Verbergen van filters indien nodig */
.hidden-option {
    display: none;
}

/* Active filters sectie */
#active-filters {
    margin-top: 20px;
    padding: 10px;
}

/* #active-filters li {
    background: white !important;
    font-size: 14px;
    
} */


#active-filters ul {
    list-style: none; 
    padding: 0; 
    margin: 10px 0;
}

#active-filters li {
    font-size: 14px;
    display: inline-block; 
    background: #f0f0f0; 
    padding: 5px 10px; 
    margin: 3px; 
    border-radius:15px;
}


.filter-link.disabled { 
    opacity: 0.5; 
    pointer-events: 
    none;
}

.filter-link .expand-collapse-icon.rotated {
    transform: rotate(180deg); 
}

.filter-link { 
    display: block;
    margin: 5px 0; 
    cursor: pointer; 
    text-decoration: none; 
    color: #333; 
}

.filter-link.active {
    font-weight: bold;
    color: #007bff;
}

.remove-filter {
    color: #666; 
    margin-left: 5px; 
    text-decoration: none;
    cursor: pointer; 
}

/* Stijl voor de filters en de wis-knop */
#clear-filters {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    margin-left: 70%;
}

#clear-filters:hover {
    background-color: #c0392b;
}

/* header van taxonomie */
.filter-header h4{
    font-size: 16px;
	border: 1px solid #ccc;
    padding: 8px;
	border-radius: 11px;
}



/* Filters in kleinere schermen (makkelijker te lezen) */
.filter-options a {
    display: block;
    margin: 5px 0;
    color: #c0392b;
    font-size: 15px;
 
}


/* Voeg ruimte toe voor filters op kleinere schermen */
#product-search {
    margin-bottom: 20px;
    width: 60%; 
    padding: 8px; 
    margin-bottom: 10px;
    border: 1px solid #c0392b;
    border-radius: 15px;
    color: #005246;
}

@media (max-width: 480px) {
    /* Verklein de font-grootte voor mobiele apparaten */
    .filter-group h4 {
        font-size: 14px;
    }

    #active-filters ul {
        padding-left: 0;
    }

    #clear-filters {
        width: 100%;
        padding: 10px;
    }
}



/* Basisopmaak voor de producten in het grid */
#filtered-products .product {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#filtered-products .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#filtered-products .product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

#filtered-products .product h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

#filtered-products .product a {
    text-decoration: none;
    color: inherit;
}




/* Voor de productdiv, maak het flexbox */



.product-item {
    border: 1px solid #ddd; 
    padding: 25px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Zorg ervoor dat de knop onderaan staat */
    height: 470px;
    border-radius: 15px;
}

/* De titel wordt links uitgelijnd */
.product-title {
    text-align: left;
    margin-bottom: 15px; /* Voeg wat ruimte toe onder de titel */
    font-size: 1em;
}

/* De knop wordt rechts uitgelijnd */
.product-button {
    align-self: flex-end; /* Zorgt ervoor dat de knop rechts wordt uitgelijnd */
    background-color: #005246;
    color: white;
    border-radius: 15px;
    padding: 5px 15px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    font-size: 16px; /* Maak de tekst kleiner */
}

/* Optioneel: zorg ervoor dat de knop niet naar buiten schuift */
.product-item a.product-button {
    width: auto; /* Zorgt ervoor dat de knop zich aanpast aan de tekst */
}

/* Meer laden knop onder productenreeks */

#load-more {
    display: none;
    background-color: #005246;
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    text-align: center;
}

#load-more:hover {
    background-color: #003a34;
}


.filter-group {
    margin-bottom: 10px;
}

.filter-header {
    cursor: pointer;
    font-weight: bold;
}

.filter-options {
    padding-left: 10px;
}

.child-filters {
    padding-left: 15px;
}

/* Alle filtersinklappen behalve top 5 */

.show-more {
    color: #005246;
    text-decoration: none; /* Verwijdert de onderstreping */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px; /* Ruimte tussen tekst en pijltje */
}

.show-more svg {
    width: 16px;
    height: 16px;
    fill: #005246;
}

/* Verbergen van de kleinkinderen standaard */
.child-term-list {
    display: none;
    margin-left: 20px;
}

/* Toon de kleinkinderen als ze open zijn */
.child-term-list.open {
    display: block;
}

/* Stijl voor de pijltjes bij de filter links */
.expand-collapse-icon {
    transform: rotate(0deg); /* Pijltje naar beneden */
    transition: transform 0.3s ease;
    margin-left: 5px;
}

/* Wanneer de subcategorieën open zijn, draai het pijltje om */
.child-term-list.open + .filter-link .expand-collapse-icon {
    transform: rotate(180deg); /* Draai het pijltje om */
}

/* Stijl voor de filter links (inclusief pijltjes) */
.filter-link {
    display: inline-block;
    margin-bottom: 5px;
    text-decoration: none;
    color: #005246;
    cursor: pointer;
}

.filter-link .expand-collapse-icon {
    margin-left: 5px;
}


/* Kleinkind top3 laten zien */
.child-term-list .more {
    display: none;
}

.sv-product-item {
    border: 1px 
    solid #ddd; 
    padding: 15px; 
    text-align: center;
}

.product-item img {
    height: 300px!important;
    object-fit: cover;
}

