:root {
	--of-red: #c0392b;
	--of-red-hover: #a5301f;
	--of-dark: #1a1a1a;
	--of-bg: #f5f5f0;
	--of-card-bg: #ffffff;
	--of-border: #e2e8f0;
	--of-text-main: #1f2937;
	--of-text-muted: #6b7280;
	--of-green: #10b981;
}

.carruseles-ofertas-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 1rem 20px 2rem;
}

.carousel-section {
	margin-bottom: 2.25rem;
}

.carousel-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.carousel-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--of-dark);
	margin: 0;
}

.carousel-see-all {
	font-size: 14px;
	font-weight: 700;
	color: var(--of-red);
	text-decoration: none;
	white-space: nowrap;
}

.carousel-see-all:hover {
	text-decoration: underline;
}

.carousel-outer {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.carousel-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding: 2px 2px 8px;
	flex: 1;
	min-width: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
	display: none;
}

.carousel-arrow {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--of-border);
	background: #ffffff;
	color: var(--of-dark);
	font-size: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.carousel-arrow:hover {
	background: var(--of-red);
	color: #ffffff;
	border-color: var(--of-red);
}

/* TARJETA DE CARRUSEL (compacta, mismo lenguaje visual que page-ofertas.php) */
.carousel-card {
	scroll-snap-align: start;
	flex: 0 0 220px;
	width: 220px;
	background-color: var(--of-card-bg);
	border: 1px solid var(--of-border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--of-text-main);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}

.carousel-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.carousel-card-image {
	position: relative;
	height: 150px;
	background-color: #f8fafc;
	border-bottom: 1px solid #f1f5f9;
}

.carousel-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.carousel-card-image--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eee, #f7f7f7);
}

.carousel-card .discount-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: var(--of-red);
	color: #ffffff;
	font-weight: 800;
	font-size: 12px;
	padding: 3px 7px;
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(192, 57, 43, 0.3);
	z-index: 1;
}

.carousel-card-body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.carousel-card-shop {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--of-red);
}

.carousel-card-title {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--of-text-main);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 35px;
}

.carousel-card-price {
	margin-top: auto;
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 4px;
}

.carousel-card-price .current-price {
	font-size: 16px;
	font-weight: 800;
	color: var(--of-red);
}

.carousel-card-price .old-price {
	font-size: 12px;
	color: #9ca3af;
	text-decoration: line-through;
}

/* RESPONSIVO */
@media (max-width: 992px) {
	.carousel-arrow {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}
}

@media (max-width: 600px) {
	.carruseles-ofertas-wrap {
		padding: 1rem 16px 1.5rem;
	}
	.carousel-title {
		font-size: 17px;
	}
	.carousel-arrow {
		display: none;
	}
	.carousel-card {
		flex: 0 0 68vw;
		width: 68vw;
	}
}
