/**
 * Productos Destacados - Safety Garage
 */

.featured-products {
	padding: 5rem 1.5rem;
	background: #f9fafb;
}

.featured-products__container {
	max-width: 1200px;
	margin: 0 auto;
}

/* Header */
.featured-products__header {
	text-align: center;
	margin-bottom: 3rem;
}

.featured-products__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 1rem;
	font-style: italic;
}

.featured-products__subtitle {
	font-size: 1rem;
	color: #5a6a7a;
	max-width: 600px;
	margin: 0 auto 1.5rem;
	line-height: 1.6;
}

.featured-products__line {
	display: block;
	width: 80px;
	height: 4px;
	background: var(--sg-red, #c01617);
	margin: 0 auto;
	border-radius: 2px;
}

/* Slider Container */
.featured-products__slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.featured-products__track-wrapper {
	overflow: hidden;
	flex: 1;
}

.featured-products__track {
	display: flex;
	gap: 1.5rem;
	transition: transform 0.4s ease;
}

/* Navigation Arrows */
.featured-products__nav {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border: none;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a9aa8;
	transition: all 0.2s ease;
}

.featured-products__nav:hover {
	color: var(--sg-dark, #122d5c);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.featured-products__nav:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Product Card */
.product-card {
	flex: 0 0 calc(33.333% - 1rem);
	min-width: calc(33.333% - 1rem);
	background: #fff;
	border-radius: 12px;
	padding: 1.75rem;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
}

.product-card__content {
	flex: 1;
}

.product-card__category {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: #8a9aa8;
	margin-bottom: 0.5rem;
}

.product-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 0.75rem;
	line-height: 1.3;
}

.product-card__excerpt {
	font-size: 0.9rem;
	color: #5a6a7a;
	line-height: 1.6;
	margin-bottom: 1.25rem;
}

/* Product Image */
.product-card__image {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.product-card__image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Actions */
.product-card__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.product-card__actions .btn--primary {
	display: inline-block;
	background: var(--sg-red, #c01617);
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.85rem 1.75rem;
	border-radius: 6px;
	border: none;
	box-shadow: 0 2px 8px rgba(192, 22, 23, 0.3);
	transition: all 0.2s ease;
}

.product-card__actions .btn--primary:hover {
	background: var(--sg-red-hover, #a81213);
	box-shadow: 0 4px 12px rgba(192, 22, 23, 0.4);
	transform: translateY(-1px);
}

.product-card__link {
	font-size: 0.875rem;
	color: #5a6a7a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.product-card__link:hover {
	color: var(--sg-dark, #122d5c);
}

/* Pagination */
.featured-products__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2.5rem;
}

.featured-products__dots {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.featured-products__dot {
	width: auto;
	height: auto;
	padding: 0.25rem 0.5rem;
	border: none;
	background: transparent;
	font-size: 1rem;
	font-weight: 600;
	color: #8a9aa8;
	cursor: pointer;
	transition: color 0.2s ease;
	position: relative;
}

.featured-products__dot:hover {
	color: var(--sg-dark, #122d5c);
}

.featured-products__dot.is-active {
	color: var(--sg-dark, #122d5c);
}

.featured-products__dot.is-active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 2px;
	background: var(--sg-dark, #122d5c);
}

.featured-products__page-prev,
.featured-products__page-next {
	width: 32px;
	height: 32px;
	border: 1px solid #dde3ea;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a9aa8;
	transition: all 0.2s ease;
}

.featured-products__page-prev:hover,
.featured-products__page-next:hover {
	border-color: var(--sg-dark, #122d5c);
	color: var(--sg-dark, #122d5c);
}

/* Empty State */
.featured-products__empty {
	text-align: center;
	color: #8a9aa8;
	padding: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
	.product-card {
		flex: 0 0 calc(50% - 0.75rem);
		min-width: calc(50% - 0.75rem);
	}
}

@media (max-width: 768px) {
	.featured-products {
		padding: 3rem 1rem;
	}

	.featured-products__nav {
		display: none;
	}

	.product-card {
		flex: 0 0 100%;
		min-width: 100%;
	}

	.featured-products__track {
		gap: 1rem;
	}
}
