/**
 * GlobalAudio Suite: Smart Hero Home Carousel Styles
 * Tarjetas 2x2 de productos, categorías, banners individuales y tarjeta inteligente de vistos recientemente.
 * Estilo sobrio, minimalista, tipografía Inter #1b1b1b y barra de navegación sutil inferior (Sweetwater style).
 */

.ga-smart-hero-wrap {
	margin: 15px 0 25px 0;
	position: relative;
}

/* Anular padding inferior excesivo heredado de tarjetas de catálogo */
.ga-smart-hero-wrap .ga-swiper-clip {
	padding: 4px 0 0 0 !important;
	margin-bottom: 0 !important;
}

.ga-smart-hero-wrap .ga-swiper-container .swiper-slide {
	padding-bottom: 0 !important;
}

.ga-smart-hero__header {
	margin-bottom: 20px;
}

.ga-smart-hero__title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 24px;
	font-weight: 800;
	color: #1b1b1b;
	margin: 0;
	letter-spacing: -0.02em;
}

.ga-smart-hero__subtitle {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	color: #64748b;
	margin: 4px 0 0 0;
}

/* Tarjeta individual dentro del carrusel */
.ga-smart-hero-slide {
	height: auto;
	display: flex;
	box-sizing: border-box;
}

.ga-hero-card {
	background: #ffffff;
	border: 1px solid var(--ga-border, #e2e8f0);
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	min-height: 380px;
	transition: var(--ga-transition, all 0.25s ease);
}

.ga-hero-card:hover {
	border-color: var(--ga-border-hover, #cbd5e1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ga-hero-card__title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: #1b1b1b;
	margin: 0 0 16px 0;
	line-height: 1.3;
}

/* Grilla 2x2 interna */
.ga-hero-card__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	flex-grow: 1;
	align-content: start;
	margin-bottom: 16px;
}

.ga-hero-grid-item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease;
}

.ga-hero-grid-item:hover {
	opacity: 0.85;
}

.ga-hero-grid-item__image-wrap {
	width: 100%;
	height: 85px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-bottom: 6px;
	background: #ffffff;
}

.ga-hero-grid-item__image-wrap img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.ga-hero-grid-item__badge {
	position: absolute;
	top: 0;
	left: 0;
	font-size: 8.5px;
	font-weight: 800;
	color: #dc2626;
	border: 1px solid #f87171;
	border-radius: 4px;
	padding: 1px 5px;
	background: #ffffff;
	line-height: 1.2;
	text-transform: uppercase;
}

.ga-hero-grid-item__info {
	display: flex;
	flex-direction: column;
}

.ga-hero-grid-item__brand {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 9.5px;
	font-weight: 800;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 2px;
}

.ga-hero-grid-item__title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	color: #1b1b1b;
	line-height: 1.35;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ga-hero-grid-item__price {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	color: #1b1b1b !important;
	display: flex;
	align-items: baseline;
	gap: 5px;
}

.ga-hero-grid-item__price del {
	font-size: 10.5px;
	color: #94a3b8;
	font-weight: 400;
	text-decoration: line-through;
}

.ga-hero-grid-item__price ins,
.ga-hero-grid-item__price .amount,
.ga-hero-grid-item__price bdi {
	text-decoration: none;
	color: #1b1b1b !important;
	font-weight: 700;
}

/* Categorías 2x2 */
.ga-hero-grid-item--category .ga-hero-grid-item__image-wrap {
	height: 105px;
}

.ga-hero-grid-item__cat-title {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #1b1b1b;
	text-align: center;
	margin-top: 4px;
	line-height: 1.3;
}

/* Banner individual */
.ga-hero-card--single-banner {
	padding: 20px;
}

.ga-hero-card__banner-media {
	width: 100%;
	height: 250px;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	margin-bottom: 14px;
	position: relative;
}

.ga-hero-card__banner-media img {
	width: 100%;
	height: 100%;
	display: block;
}

.ga-hero-card__banner-subtitle {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	color: #1b1b1b;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

/* Enlace inferior de tarjeta */
.ga-hero-card__footer-link {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #1b1b1b;
	text-decoration: none;
	align-self: flex-start;
	transition: color 0.15s ease;
}

.ga-hero-card__footer-link:hover {
	text-decoration: underline;
	color: #2563eb;
}

/* ══════════════════════════════════════════════════
   Barra de Navegación Inferior Sutil (Sweetwater style)
   ══════════════════════════════════════════════════ */
.ga-smart-hero-nav-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	margin: 14px auto 0 auto;
	padding: 0 4px;
	box-sizing: border-box;
}

.ga-smart-hero-nav-btn {
	background: transparent;
	border: none;
	padding: 4px;
	margin: 0;
	cursor: pointer;
	color: #94a3b8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: color 0.15s ease;
	line-height: 1;
	flex-shrink: 0;
}

.ga-smart-hero-nav-btn:hover:not(:disabled):not(.swiper-button-disabled) {
	color: #1b1b1b;
}

.ga-smart-hero-nav-btn:disabled,
.ga-smart-hero-nav-btn.swiper-button-disabled {
	color: #cbd5e1;
	cursor: default;
	pointer-events: none;
	opacity: 0.35;
}

.ga-smart-hero-nav-btn svg {
	width: 13px;
	height: 13px;
	stroke-width: 2.8;
}

.ga-smart-hero-scrollbar-track {
	flex: 1;
	max-width: 100%;
	position: relative;
	height: 14px;
	display: flex;
	align-items: center;
}

.ga-smart-hero-scrollbar.swiper-scrollbar {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	top: auto !important;
	width: 100% !important;
	height: 4px !important;
	background: #e2e8f0 !important;
	border-radius: 999px !important;
	cursor: pointer;
	overflow: hidden;
}

.ga-smart-hero-scrollbar .swiper-scrollbar-drag {
	background: #94a3b8 !important;
	border-radius: 999px !important;
	height: 100% !important;
	position: relative;
	transition: background-color 0.15s ease;
	cursor: grab;
}

.ga-smart-hero-scrollbar .swiper-scrollbar-drag:hover,
.ga-smart-hero-scrollbar .swiper-scrollbar-drag:active {
	background: #64748b !important;
}

/* Fallback antes de inicializar Swiper */
.ga-smart-hero-slider:not(.swiper-initialized) .swiper-wrapper {
	display: grid;
	grid-template-columns: repeat(var(--ga-slider-cols, 4), minmax(0, 1fr));
	gap: var(--ga-slider-gap, 20px);
}

.ga-smart-hero-slider:not(.swiper-initialized) .swiper-slide {
	width: 100% !important;
}
