/* === Algemene stijlen voor de slider === */
.studio-icon-swiper-container {
	width: 100%;
	margin: 0 auto;
	padding: 20px 0;
	overflow: hidden;
}

/* === Stijl van de slides === */
.swiper-slide {
	text-align: center;
	background: #fff;
	padding: 15px;
	border-radius: 10px;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease-in-out;
}

/* === Afbeeldingen === */
.swiper-slide img {
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* === Navigatieknoppen === */
.swiper-button-next,
.swiper-button-prev {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.3s ease;
	border-radius: 50%;
	width: 30px;
	height: 30px;
}

.swiper-button-next {
	margin-right: -50px;
}

.swiper-button-prev {
	margin-left: -50px;
}

.swiper-button-next:after, .swiper-button-prev:after {
	font-size: 16px;
	font-weight: 700;
	color: #000;
	width: inherit;
	height: inherit;
	border-radius: inherit;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* === Paginatie === */

.swiper-pagination {
	bottom: -15px !important;
}
.swiper-pagination-bullet {
	background: #ccc;
	width: 10px;
	height: 10px;
	opacity: 1;
	transition: background 0.3s ease;
}

.swiper-pagination-bullet-active {
	background: #000;
}

.product-title,
.product-price {
	line-height: 16px;
	font-weight: 600;
	margin: 0;
}

.product-title {
	text-align: left;
	color: #333;
	flex: 1; /* Laat de titel de beschikbare ruimte nemen */
	white-space: normal; /* Sta meerdere regels toe */
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2; /* Maximaal 2 regels */
	-webkit-box-orient: vertical;
	padding-bottom: 0;
	font-size: 14px;
}

.product-price {
	color: #000;
	white-space: nowrap;
	margin-left: 10px;
	font-size: 15px;
}

/* === Hover Actions Container (Qty + Add to Cart naast elkaar) === */
.hover-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin: 0 auto;
	background: #fff;

}

/* === Quantity Selector Styling === */
.studio-icon-quantity-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #000;
	border-radius: 6px;
	background: #fff;
	flex: 1;
	height: 35px;
}

.studio-icon-quantity-wrapper button {
	background: none;
	border: none;
	font-weight: bold;
	cursor: pointer;
	color: #000;
}

.product-quantity {
	width: 100%;
	min-width: 28px;
	text-align: center;
	border: none;
	outline: none;
	background: transparent;
}

/* Plus en min knoppen */
.quantity-minus {
	height: 100%;
	border-radius: 6px 0 0 6px;
	padding: 0 12px;
}

.quantity-plus {
	height: 100%;
	border-radius: 0 6px 6px 0;
	padding: 0 11px;
}

/* Verwijder standaard up/down pijltjes in input type="number" */
.product-quantity::-webkit-outer-spin-button,
.product-quantity::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.product-quantity {
	-moz-appearance: textfield;
}

/* === Add to Cart Knop Styling === */
.studio-icon-add-to-cart {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #000;
	border-radius: 6px;
	background: #fff;
	color: #000;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.3s, color 0.3s;
	flex: 2;
	height: 35px;
}

.studio-icon-add-to-cart:hover {
	background: #000;
	color: #fff;
}

/* Status toegevoegd */
.studio-icon-add-to-cart.added {
	background-color: #28a745;
}

/* Laadicoon en check-icoon */
.studio-icon-add-to-cart .loading-icon,
.studio-icon-add-to-cart .check-icon {
	display: none;
}

/* Knop tijdens laden */
.studio-icon-add-to-cart.loading .loading-icon,
.studio-icon-add-to-cart.added .check-icon {
	display: inline-block;
}

/* Spinning effect */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.studio-icon-add-to-cart.loading .loading-icon {
	width: 16px;
	height: 16px;
	border: 2px solid white;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}





/* === Algemene styling voor de product-content === */
.product-content {
	position: relative;
	overflow: hidden; /* Voorkomt dat hover-actions buiten de card beweegt */
	height: 80px;
}

.product-info {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-top: 8px;
	padding-bottom: 8px;
	background: #fff;
}

/* === Titel & Prijs standaard op de plek van de knoppen (alleen op desktop) === */
@media (hover: hover) {
	.product-info {
		transition: transform 0.3s ease-in-out;
		transform: translateY(40px); /* Startpositie: titel en prijs op de plek van de Add to Cart */
		opacity: 1;
	}

	/* Hover Actions standaard verborgen op desktop */
	.hover-actions {
		position: absolute;
		bottom: 0;
		width: 100%;
		opacity: 0;
		transform: translateY(100%);
		transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
	}

	/* === Bij hover: Titel & Prijs omhoog, Hover Actions komen omhoog === */
	.product-card:hover .product-info,
	.product-card:hover .hover-actions {
		transform: translateY(0); /* Titel, prijs en knoppen bewegen samen omhoog */
	}

	.product-card:hover .hover-actions {
		opacity: 1;
	}
}

/* === Op touchscreen apparaten: Knoppen altijd zichtbaar === */
.touch-device .product-content {
	align-content: flex-end;
}

.touch-device .product-info {
	transform: translateY(0) !important; /* Titel en prijs blijven op hun plek */
}

.touch-device .hover-actions {
	opacity: 1 !important;
	transform: translateY(0) !important; /* Knoppen altijd zichtbaar */
	position: relative;
}

/* Zorg dat de afbeeldingen overlappen en identiek blijven */
.product-image {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px; /* Houd dezelfde rondingen */
	width: 100%; /* Zorgt ervoor dat het element zich aanpast */
	aspect-ratio: 1 / 1; /* Zorgt voor een vaste verhouding, past aan als nodig */
}

/* Zorg dat beide afbeeldingen dezelfde afmetingen hebben */
.primary-image,
.secondary-image {
	width: 100%;
	height: 100%;
	object-fit: cover; /* Houdt de aspect ratio intact zonder te vervormen */
	border-radius: inherit;
	position: absolute;
	top: 0;
	left: 0;
	transition: opacity 0.3s ease-in-out;
}

/* Eerste afbeelding is standaard zichtbaar */
.primary-image {
	opacity: 1;
	position: relative;
}

/* Tweede afbeelding is standaard verborgen */
.secondary-image {
	opacity: 0;
}

/* Hover-effect ALLEEN als er een tweede afbeelding is */
.has-secondary-image:hover .primary-image {
	opacity: 0;
}

.has-secondary-image:hover .secondary-image {
	opacity: 1;
}


/* Container voor de prijzen, zodat oude prijs rechts staat */

/* Stijl voor de oude prijs (rechts, doorstreept) */
.old-price {
	text-decoration: line-through;
	color: #000;
	margin-left: 4px;
}

