/**
 * Frontend styles for MISC Products Carousel
 * 
 * @package MISC_Products_Carousel
 */

.misc-products-carousel {
	width: 100%;
	position: relative;
	padding: 2rem 0;
}

.misc-carousel-container {
	position: relative;
	padding: 0;
	max-width: 100%;
	margin: 0 auto;
}

.misc-carousel-wrapper {
	width: 100%;
	overflow: hidden;
}

.misc-carousel-track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
	gap: 0;
	align-items: stretch;
}

.misc-carousel-slide {
	flex-shrink: 0;
	width: fit-content;
	padding: 0 0.75rem;
	display: flex;
	align-items: stretch;
	align-self: stretch;
}

@media (max-width: 1024px) {
	.misc-products-carousel{
		padding: 0 1.5rem;
		margin-top: 3rem;
	}
	.misc-carousel-slide {
		width: 50%;
	}
}

/* @media (min-width: 640px) {
	.misc-carousel-slide {
		width: 50%;
	}
}

@media (min-width: 768px) {
	.misc-carousel-slide {
		width: 33.333333%;
	}
}

@media (min-width: 1024px) {
	.misc-carousel-slide {
		width: 25%;
	}
} */

.misc-product-item {
	width: 100%;
	max-width: 270px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: start;
	text-align: left;
	padding: 0;
	align-self: stretch;
	flex: 1;
}

.misc-product-image-wrapper {
	position: relative;
	overflow: hidden;
	background: transparent;
	width: 85%;
	max-width: 280px;
	margin-bottom: 1rem;
}

.misc-product-image-wrapper img {
	width: 100%;
	height: 100%;
	max-width: 150px;
	/* aspect-ratio: 4/3; */
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.misc-product-item:hover .misc-product-image-wrapper img {
	transform: scale(1.02);
	cursor: pointer;
	transition: transform 0.3s ease;
}

.misc-product-info {
	padding: 0;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: start;
	text-align: left;
	gap: 0.75rem;
	justify-content: space-between;
	max-width: 100%;
	width: fit-content;
	min-height: 0;
}

.misc-product-title {
	font-size: 1.2rem;
	max-width: 70%;
	line-height: 1;
	color: #1f2937;
	font-weight: 500;
	margin: 0;
	font-family: var(--font-sans, 'League Spartan', sans-serif);
}

.misc-product-price {
	font-size: 1.3rem;
	color: var(--color-secondary, #A6BF86);
	font-weight: 700;
	margin: 0;
	font-family: var(--font-sans, 'League Spartan', sans-serif);
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

/* Price with discount - original price (tachado) */
.misc-product-price del {
	text-decoration: line-through;
	opacity: 0.6;
	font-size: 0.75em;
	color: #6b7280;
	font-weight: 400;
	display: block;
}

.misc-product-price del .woocommerce-Price-amount {
	color: #6b7280;
}

/* Price with discount - sale price (destacado) */
.misc-product-price ins {
	text-decoration: none;
	font-weight: 700;
	color: var(--color-secondary, #A6BF86);
	display: block;
}

.misc-product-price ins .woocommerce-Price-amount {
	color: var(--color-secondary, #A6BF86);
}

/* Regular price (sin descuento) */
.misc-product-price .woocommerce-Price-amount {
	color: var(--color-secondary, #A6BF86);
}

.misc-product-button {
	/* Usa el estilo del botón primary del tema */
	margin-top: auto;
	margin-bottom: 0;
	align-self: flex-start;
}

/* Navigation buttons (hidden for autoscroll) */
.misc-carousel-prev,
.misc-carousel-next {
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: none;
	outline: none;
}

.misc-carousel-prev:disabled,
.misc-carousel-next:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.misc-carousel-container {
		padding: 0 0.5rem;
	}
	
	.misc-carousel-slide {
		padding: 0 0.5rem;
	}
}

@media (max-width: 640px) {
	.misc-products-carousel {
		padding: 1rem 0;
	}
	
	.misc-carousel-container {
		padding: 0;
	}
	
	.misc-product-image-wrapper {
		width: 90%;
		max-width: 240px;
	}
	
	.misc-product-title {
		font-size: 0.875rem;
	}
	
	.misc-product-price {
		font-size: 1rem;
	}
	.misc-product-image-wrapper img{
		max-width: 110px;
	}
}



