/* ===================================
Product Container Styles
=================================== */
.studio_icon_products {
	display: flex;
	flex-wrap: wrap;
}

.studio_icon_products .product-content {
	height: 95px !important;
}

.studio_icon_products .product {
	width: calc(25% - 11.333px); /* 4 producten per rij op desktop */
	list-style: none;
	margin-right: 15px;
	margin-bottom: 20px !important;
}
.studio_icon_products .product:nth-child(4n) {
	margin-right: 0;
}
.studio_icon_products .product .et_shop_image img {
	width: 100%;
}
.studio_icon_products .product .woocommerce-loop-product__title {
	font-size: 1rem;
	line-height: 1.1rem;
}

@media (max-width: 980px) {
	.studio_icon_products .product {
		width: calc(50% - 10px);
		box-sizing: border-box;
		list-style: none;
		margin-right: 0;
	}
	
	.studio_icon_products .product:nth-child(odd) {
		margin-right: 20px;
	}
}

/* ===================================
Product Filters Styles
=================================== */
.studio-icon-product-filter {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	padding: 15px;
}
.product-filters {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: flex-start;
}
#category-filter,
.filter-dropdown {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
}
#sort-filter {
	border: none !important;
	font-size: 13px !important;
	font-weight: 500;
	color: #333;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" viewBox="0 0 14 14" fill="none"><path d="M3.5 5.83325L7 9.33325L10.5 5.83325" stroke="%233C3C3B" stroke-linecap="square"/></svg>') no-repeat right 10px center;
	background-size: 1rem;
	border: 1px solid #ddd;
	font-size: 14px;
}

#mobile-sort-filter {
	border: none !important;
	font-size: 13px !important;
	font-weight: 500;
	color: #333;
	padding-left: 0;
	padding-right: 0;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1rem" height="1rem" viewBox="0 0 14 14" fill="none"><path d="M3.5 5.83325L7 9.33325L10.5 5.83325" stroke="%233C3C3B" stroke-linecap="square"/></svg>') no-repeat right 6px center;
	background-size: 1rem;
	border: 1px solid #ddd;
	font-size: 14px;
}

/* Algemene filtergroepen */
.filter-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
	position: relative;
}
.filter-group label {
	font-size: 13px;
	font-weight: 600;
	color: #333;
}
#mobile-price-range-slider {
	display: none;
}
#price-range-slider {
	display: none;
	/* 	display: flex; */
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
#price-range-slider input {
	width: 80px;
	text-align: center;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}
#slider-range {
	width: 200px;
	height: 6px;
	background: #ddd;
	border-radius: 4px;
	position: relative;
}
.selected-filters {
	margin: 10px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.filter-tag {
	display: flex;
	align-items: center;
	background-color: #000;
	color: #fff !important;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
}
.filter-tag .remove-filter {
	margin-left: 8px;
	cursor: pointer;
	font-weight: bold;
	color: #fff;
}
.remove-filter:hover {
	color: red;
}

#filtered-products {
	margin-top: 2rem;
}

#filtered-products.loading {
	opacity: 0.5;
	position: relative;
}
#filtered-products.loading::after {
	content: "Laden...";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 10px 15px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#clear-filters {
	background-color: #fff;
    border: 2px solid #000;
    border-radius: 4px;
    padding: 0 12px;
}

#clear-filters:hover {
	background-color: #eee;
	cursor: pointer;
}

/* Responsieve aanpassingen voor product-filters */
@media (max-width: 980px) {
	/* 	.product-filters {
	flex-direction: column;
	align-items: stretch;
} */
	#slider-range {
		width: 100%;
	}
}
@media (max-width: 980px) {
	.product-filters {
		gap: 15px;
		padding: 10px;
	}
	#category-filter,
	.filter-dropdown,
	#price-range-slider input {
		width: 100%;
	}
}

/* ===================================
Dropdown Filter Styles
=================================== */
.filter-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}
.filter-group-header label {
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
}
.checkbox-list {
	min-width: calc(100% + 2px);
	position: absolute;
	top: 100%;
	left: -1px;
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(5, auto);
	padding-bottom: 2.2rem;
	width: fit-content;
	background-color: white;
	border: 1px solid #ccc;
	padding: 10px 0;
	z-index: 10;
	overflow: hidden;
	transition: max-height 0.1s ease-in-out;
}
.filter-checkbox {
	display: flex;
	cursor: pointer;
	align-items: center;
	padding: 5px 15px;
}
.filter-checkbox input[type=checkbox] {
	margin-right: 10px;
}
.dropdown-toggle {
	border: none;
	background-color: transparent;
	cursor: pointer;
}
.dropdown-toggle[aria-expanded="true"] + .checkbox-list {
	max-height: 200px;
	overflow-y: auto;
}
.dropdown-icon {
	transform: rotate(0deg);
	transition: transform 0.1s ease;
}
.filter-group.open .dropdown-icon {
	transform: rotate(180deg);
}

/* Mobile Dropdown aanpassing: content duwt naar beneden (breakpoint: 980px) */
@media (max-width: 980px) {
	.checkbox-list {
		position: static;
		width: 100%;
		top: auto;
		left: auto;
		z-index: auto;
		display: block;
		transition: max-height 0.1s ease-in-out;
		border: none;
	}

	.filter-group-header label, .filter-group label, #mobile-sort-filter {
		font-size: 16px !important;
		font-weight: 600;
	}

	.filter-group-header, #mobile-sort-filter{
		padding: 10px 0;
	}
}

/* ===================================
Mobiele Overlay voor Filters & Sorteren
=================================== */
.mobile-filter-button {
	display: none;
	background: #000;
	color: #fff;
	border: none;
	padding: 10px 20px;
	font-size: 14px;
	width: 100%;
	font-weight: 600;
}
@media (max-width: 980px) {
	.studio-icon-product-filter {
		display: none;
	}
	.mobile-filter-button {
		display: block;
	}
}
.mobile-filter-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
	z-index: 1000;
	transform: translateX(100%);
	transition: transform 0.1s ease;
	overflow-y: auto;
	padding: 20px;
}
.mobile-filter-overlay.open {
	transform: translateX(0%);
}

.mobile-overlay-content {
	width: 100%;
	max-width: 600px;
	padding-top: 200px;
	margin: 0 auto;
}

.mobile-overlay-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.mobile-overlay-header h2 {
	font-size: 1.5rem;
	margin: 0;
}
.mobile-overlay-close {
	background: transparent;
	border: none;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
}
.mobile-filters-container {
	/* Pas deze container aan naar wens */
}
.mobile-overlay-footer {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}
.mobile-overlay-clear,
.mobile-overlay-apply {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
}
.mobile-overlay-clear {
	background: #ccc;
	color: #333;
}
.mobile-overlay-apply {
	background: #000;
	color: #fff;
}
