/* bp_shop_cats — listado de categorías dentro del shop header */

.bp-shop-cats {
	margin-top: 28px;
}

.bp-shop-cats__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}

.bp-shop-cats__item {
	flex: 0 1 auto;
}

.bp-shop-cats__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	min-width: 110px;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.85);
	transition: color var(--bp-trans), transform var(--bp-trans);
}

.bp-shop-cats__link:hover {
	transform: translateY(-3px);
	color: var(--bp-white);
}

.bp-shop-cats__media {
	position: relative;
	width: 72px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bp-shop-cats__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity var(--bp-trans);
}

/* Default visible, active oculto. */
.bp-shop-cats__img--active {
	position: absolute;
	inset: 0;
	opacity: 0;
}

/* Hover o categoría actual: swap de imágenes. */
.bp-shop-cats__item.is-current .bp-shop-cats__img--default,
.bp-shop-cats__link:hover .bp-shop-cats__img--default {
	opacity: 0;
}

.bp-shop-cats__item.is-current .bp-shop-cats__img--active,
.bp-shop-cats__link:hover .bp-shop-cats__img--active {
	opacity: 1;
}

.bp-shop-cats__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-align: center;
	color: inherit;
}

.bp-shop-cats__item.is-current .bp-shop-cats__label {
	color: var(--bp-white);
}

@media (max-width: 540px) {
	.bp-shop-cats {
		margin-top: 20px;
	}
	.bp-shop-cats__list {
		gap: 12px;
	}
	.bp-shop-cats__link {
		min-width: 80px;
		padding: 6px;
	}
	.bp-shop-cats__media {
		width: 56px;
		height: 56px;
	}
	.bp-shop-cats__label {
		font-size: 11px;
	}
}
