/* ============================================================
   MARCH — Featured Products Carousel
   Fiel a milkbarstore.com:
   - Fondo crema/blanco
   - Imagen cuadrada con object-fit: cover
   - Nombre bold uppercase
   - Descripción gris
   - Botón negro full-width "VER DETALLES"
   - Flechas circulares a los lados
   ============================================================ */

/* ── Sección ── */
.march-fp {
	padding: clamp(48px, 6vw, 80px) 0;
	overflow: hidden; /* ocultar desbordamiento del swiper */
}

/* ── Encabezado centrado ── */
.march-fp-header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto clamp(32px, 4vw, 52px);
	padding: 0 clamp(16px, 3vw, 40px);
}

/* ── Wrap del carrusel: posición relativa para las flechas ── */
.march-fp-carousel-wrap {
	position: relative;
	padding: 0 clamp(40px, 5vw, 64px); /* espacio para las flechas */
}

/* ── Swiper container ── */
.march-fp-swiper {
	overflow: visible !important; /* permitir ver el card parcial siguiente */
}

.march-fp-swiper .swiper-wrapper {
	align-items: stretch;
}

/* ── Slide ── */
.march-fp-slide {
	height: auto;
}

/* ── Card ── */
.march-fp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	cursor: pointer;
}

/* ── Imagen ── */
.march-fp-card-img-wrap {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1; /* cuadrado */
	background: #f4f4f4;
}

.march-fp-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.march-fp-card:hover .march-fp-card-img {
	transform: scale(1.04);
}

.march-fp-card-no-img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ── Badges (NEW!, OFERTA) — estilo Milk Bar ── */
.march-fp-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-family: 'Outfit', sans-serif;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	border-radius: 99px;
	line-height: 1;
	z-index: 2;
}
.march-fp-badge--new {
	background: #ffffff;
	color: #111111;
	border: 1.5px solid #111111;
}
.march-fp-badge--sale {
	background: #111111;
	color: #ffffff;
}

/* ── Body de la card ── */
.march-fp-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 0 0;
	gap: 6px;
}

/* ── Nombre del producto ── */
.march-fp-card-name {
	font-family: 'Outfit', sans-serif;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	line-height: 1.3;
	margin: 0;
	color: #111111;
}
.march-fp-card-name a {
	color: inherit;
	text-decoration: none;
}
.march-fp-card-name a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Descripción corta ── */
.march-fp-card-desc {
	font-size: 13px;
	font-weight: 400;
	color: #666666;
	line-height: 1.5;
	margin: 0;
	flex: 1;
	/* 3 líneas máximo */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Botón "VER DETALLES" — negro, full-width, igual a Milk Bar ── */
.march-fp-card-btn {
	display: block;
	width: 100%;
	padding: 14px 16px;
	margin-top: 12px;
	background: #111111;
	color: #ffffff;
	font-family: 'Outfit', sans-serif;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	text-align: center;
	text-decoration: none;
	border: 2px solid #111111;
	border-radius: 0;
	transition: background 0.2s ease, color 0.2s ease;
	line-height: 1;
}
.march-fp-card-btn:hover {
	background: #ffffff;
	color: #111111;
}

/* ── Flechas de navegación ── */
.march-fp-prev,
.march-fp-next {
	position: absolute;
	top: 50%;
	transform: translateY(-60%); /* -60% para compensar el body de la card */
	z-index: 10;
	width: 40px;
	height: 40px;
	background: #ffffff;
	border: 1.5px solid #dddddd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #111111;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.march-fp-prev { left: 0; }
.march-fp-next { right: 0; }
.march-fp-prev:hover,
.march-fp-next:hover {
	background: #111111;
	color: #ffffff;
	border-color: #111111;
}

.march-fp-prev.swiper-button-disabled,
.march-fp-next.swiper-button-disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* ── Footer: botón "Ver toda la tienda" ── */
.march-fp-footer {
	text-align: center;
	margin-top: clamp(32px, 4vw, 48px);
}

/* ── Placeholder (sin productos) ── */
.march-fp-card--placeholder .march-fp-card-img-wrap {
	background: #eeeeee;
}
.march-fp-ph-line {
	background: #eeeeee;
	border-radius: 2px;
	animation: march-shimmer 1.6s ease-in-out infinite alternate;
}
.march-fp-ph-line--title { height: 14px; width: 80%; }
.march-fp-ph-line--desc  { height: 10px; width: 95%; margin-top: 6px; }
.march-fp-ph-btn         { height: 42px; background: #eeeeee; margin-top: 12px; animation: march-shimmer 1.6s ease-in-out infinite alternate; }

@keyframes march-shimmer {
	from { opacity: 0.5; }
	to   { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.march-fp-carousel-wrap {
		padding: 0 clamp(16px, 3vw, 32px);
	}
	.march-fp-prev { left: -4px; }
	.march-fp-next { right: -4px; }
}
