/**
 * Banda superior de la tienda: carrusel INFINITO de categorías (iconos) — SINGER.
 *
 * Reemplaza visualmente al banner "Productos" + migas. El carrusel es propio
 * (JS vanilla en archive/banner-bar.php): loop continuo, autoplay, flechas,
 * swipe y nº de ítems visibles responsive. Reutiliza el look de tarjeta del tema
 * (.oz-shop-category-strip__item/__thumb/__label).
 *
 * @package OZ_Tema_2_Child
 */

/* ── Banda a todo el ancho, contenido centrado al contenedor ─────────────── */
.singer-cat-band {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #ececec;
	box-sizing: border-box;
}
.singer-cat-band__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 12px 16px;
	box-sizing: border-box;
}

/* ── Carrusel ─────────────────────────────────────────────────────────────── */
.singer-cc {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}
.singer-cc__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.singer-cc__track {
	display: flex;
	gap: 10px;
	will-change: transform;
}
/* Antes de inicializar el JS, ocultar el track para evitar un "salto" inicial. */
.singer-cc:not(.is-ready) .singer-cc__track {
	visibility: hidden;
}

/* Cada tarjeta ocupa el ancho calculado por el JS (--cc-w). Anula el min/max
   del tema para que quepan exactamente N por vista. */
.singer-cc__track .oz-shop-category-strip__item {
	flex: 0 0 var(--cc-w, 120px);
	width: var(--cc-w, 120px);
	min-width: 0 !important;
	max-width: none !important;
	box-sizing: border-box;
}

/* ── Flechas ──────────────────────────────────────────────────────────────── */
.singer-cc__nav {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	background: #fff;
	color: #333;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.singer-cc__nav:hover {
	border-color: var(--oz-side-accent, #ff0047);
	color: var(--oz-side-accent, #ff0047);
	box-shadow: 0 4px 12px rgba(255, 0, 71, .14);
}
.singer-cc__nav:focus-visible {
	outline: 2px solid var(--oz-side-accent, #ff0047);
	outline-offset: 2px;
}

/* ── Iconos a color (ilustraciones originales) ───────────────────────────── */
.singer-cat-band .oz-shop-category-strip__thumb {
	width: 56px;
	height: 56px;
	object-fit: contain;
}
/* En hover/activo el tema pinta la tarjeta en azul e invierte el icono a blanco;
   aquí mantenemos el icono a color sobre tarjeta blanca y solo resaltamos. */
.singer-cat-band .oz-shop-category-strip__item:hover .oz-shop-category-strip__thumb,
.singer-cat-band .oz-shop-category-strip__item:focus-visible .oz-shop-category-strip__thumb,
.singer-cat-band .oz-shop-category-strip__item.is-active .oz-shop-category-strip__thumb {
	filter: none;
}
.singer-cat-band .oz-shop-category-strip__item:hover,
.singer-cat-band .oz-shop-category-strip__item:focus-visible,
.singer-cat-band .oz-shop-category-strip__item.is-active {
	background: #fff;
	color: var(--oz-side-accent, #ff0047);
	border-color: var(--oz-side-accent, #ff0047);
	box-shadow: 0 6px 16px rgba(255, 0, 71, .12);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.singer-cat-band__inner {
		padding: 10px 8px;
	}
	.singer-cc {
		gap: 6px;
	}
	.singer-cc__nav {
		width: 30px;
		height: 30px;
		font-size: 17px;
	}
	.singer-cat-band .oz-shop-category-strip__thumb {
		width: 46px;
		height: 46px;
	}
}
