/*
 * serviNec: Tienda «Todos los productos» (woocommerce/archive-product.php)
 * assets/css/tienda.css · las tarjetas (.snec-pcard) vienen de sections/product-carousel.css
 */

.snec-shop {
	--shop-blue: #1565e8;
	--shop-ink: #111827;
	--shop-soft: #6b7280;
	--shop-line: #eceef2;
	--shop-radius: 12px;
	background: #f9f9f9;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	color: var(--shop-ink);
}

.snec-shop .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.snec-shop__wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 16px 64px;
	box-sizing: border-box;
}

.snec-shop__head,
.snec-shop__body {
	display: grid;
	grid-template-columns: 274px minmax(0, 1fr);
	gap: 24px;
}

.snec-shop__head {
	align-items: center;
	margin-bottom: 24px;
}

/* ── Migas, título y contador ────────────────────────────────────────────── */
.snec-shop__crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8a8f98;
}

.snec-shop__crumbs li + li::before {
	content: "|";
	margin: 0 10px;
	color: #b4b8c0;
}

.snec-shop__crumbs a {
	color: inherit;
	text-decoration: none;
}

.snec-shop__crumbs a:hover {
	color: var(--shop-blue);
}

.snec-shop__title {
	margin: 0 0 8px;
	font-size: clamp(22px, 2.3vw, 27px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--shop-ink);
}

.snec-shop__count {
	margin: 0;
	font-size: 12px;
	color: var(--shop-soft);
}

/* ── Carrusel de categorías ──────────────────────────────────────────────── */
.snec-shop__cats {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 14px;
	background: #ffffff;
	border-radius: var(--shop-radius);
}

.snec-shop__cats-track {
	position: relative;
	display: flex;
	gap: 12px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.snec-shop__cats-track::-webkit-scrollbar {
	display: none;
}

.snec-shop__cats-track > li {
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.snec-shop__cat {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 202px;
	min-height: 66px;
	padding: 9px 12px 9px 9px;
	box-sizing: border-box;
	background: #f6f7f9;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--shop-ink);
	text-decoration: none;
	transition: border-color .18s, background .18s;
}

.snec-shop__cat:hover {
	border-color: #d6e3fb;
	background: #f1f5fd;
}

.snec-shop__cat[aria-current="page"] {
	border-color: var(--shop-blue);
	background: #eef4fe;
}

.snec-shop__cat-img {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	background: #ffffff;
	border-radius: 7px;
}

.snec-shop__cat-img img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.snec-shop__cat-txt {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	text-align: center;
	flex: 1;
}

.snec-shop__cat-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.snec-shop__cat-num {
	font-size: 11px;
	color: var(--shop-soft);
}

.snec-shop__cats-btn {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--shop-blue);
	cursor: pointer;
	transform: translateY(-50%);
}

.snec-shop__cats-btn[hidden] {
	display: none;
}

.snec-shop__cats-btn svg {
	width: 18px;
	height: 18px;
}

.snec-shop__cats-btn--next {
	right: 4px;
}

.snec-shop__cats-btn--prev {
	left: 4px;
}

.snec-shop__cats-btn--prev svg {
	transform: rotate(180deg);
}

/* ── Filtros ─────────────────────────────────────────────────────────────── */
.snec-shop__filters {
	align-self: start;
	position: sticky;
	top: 140px;
	padding: 18px 20px 22px;
	background: #ffffff;
	border-radius: var(--shop-radius);
}

.snec-shop__filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--shop-line);
}

.snec-shop__filters-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--shop-ink);
}

.snec-shop__clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--shop-blue);
	text-decoration: none;
}

.snec-shop__clear svg {
	width: 15px;
	height: 15px;
}

.snec-shop__clear:hover {
	text-decoration: underline;
}

.snec-shop__group {
	margin: 0 0 18px;
	padding: 0 0 18px;
	border: 0;
	border-bottom: 1px solid var(--shop-line);
	min-width: 0;
}

/* El último grupo visible en escritorio (Valoración solo existe en móvil). */
.snec-shop__group:last-of-type,
.snec-shop__group:has(+ .snec-shop__group--movil) {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.snec-shop__group-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--shop-ink);
	list-style: none;
	cursor: default;
}

.snec-shop__group-title::-webkit-details-marker {
	display: none;
}

.snec-shop__group-title > svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--shop-ink);
	transition: transform .2s ease;
}

.snec-shop__opts {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Piezas que solo existen en el panel móvil. */
.snec-shop__group-num,
.snec-shop__group-title > svg,
.snec-shop__solo-m,
.snec-shop__price-m,
.snec-shop__group--movil,
.snec-shop__close,
.snec-shop__active-num,
.snec-shop__chips,
.snec-shop__sheet-foot,
.snec-shop__backdrop,
.snec-shop__sort-btn {
	display: none;
}

.snec-shop__stars {
	font-size: 16px;
	letter-spacing: 2px;
	color: var(--shop-blue);
}

.snec-shop__check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 0;
	font-size: 12.5px;
	color: var(--shop-soft);
	cursor: pointer;
}

.snec-shop__check input {
	flex: none;
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1.5px solid #c3c8d1;
	border-radius: 3px;
	background: #ffffff;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.snec-shop__check input:checked {
	border-color: var(--shop-blue);
	background: var(--shop-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.snec-shop__check input:focus-visible {
	outline: 2px solid var(--shop-blue);
	outline-offset: 2px;
}

.snec-shop__check:hover .snec-shop__check-label {
	color: var(--shop-ink);
}

.snec-shop__check-label {
	flex: 1;
	min-width: 0;
}

.snec-shop__check-num {
	font-size: 11.5px;
	color: #9aa0aa;
}

.snec-shop__check--inline .snec-shop__check-label {
	flex: none;
}

/* Rango de precio (un tirador: precio máximo) */
.snec-shop__range {
	--pct: 100%;
	display: block;
	width: 100%;
	height: 18px;
	margin: 4px 0 10px;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.snec-shop__range::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(to right, var(--shop-blue) var(--pct), #d9d9d9 var(--pct));
}

.snec-shop__range::-moz-range-track {
	height: 4px;
	border-radius: 4px;
	background: #d9d9d9;
}

.snec-shop__range::-moz-range-progress {
	height: 4px;
	border-radius: 4px;
	background: var(--shop-blue);
}

.snec-shop__range::-webkit-slider-thumb {
	width: 14px;
	height: 14px;
	margin-top: -5px;
	border: 0;
	border-radius: 50%;
	background: var(--shop-blue);
	appearance: none;
	-webkit-appearance: none;
}

.snec-shop__range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: var(--shop-blue);
}

.snec-shop__range:focus-visible {
	outline: 2px solid var(--shop-blue);
	outline-offset: 4px;
	border-radius: 4px;
}

.snec-shop__range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	color: var(--shop-soft);
}

/* Sin JS: botón para enviar. Con JS los filtros se aplican al momento. */
.snec-shop__apply {
	width: 100%;
	margin-top: 18px;
	padding: 10px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--shop-blue);
	color: #ffffff;
	font: 600 13px/1.2 'Inter', system-ui, sans-serif;
	cursor: pointer;
}

.snec-shop.is-js .snec-shop__apply {
	display: none;
}

/* ── Barra: buscador y orden ─────────────────────────────────────────────── */
.snec-shop__toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.snec-shop__search {
	position: relative;
	flex: 0 1 432px;
	min-width: 0;
	margin-right: auto;
}

.snec-shop__search svg {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 15px;
	height: 15px;
	color: #4b5563;
	transform: translateY(-50%);
	pointer-events: none;
}

.snec-shop__search input {
	width: 100%;
	height: 42px;
	padding: 0 16px 0 40px;
	box-sizing: border-box;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #ffffff;
	font: 400 13px/1 'Inter', system-ui, sans-serif;
	color: var(--shop-ink);
}

.snec-shop__search input::placeholder {
	color: #9aa0aa;
}

.snec-shop__search input:focus {
	outline: none;
	border-color: #bcd2f8;
	box-shadow: 0 0 0 3px rgba(21, 101, 232, .12);
}

.snec-shop__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
}

.snec-shop__sort-label {
	font-size: 12px;
	color: #4b5563;
}

.snec-shop__select {
	position: relative;
}

.snec-shop__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #374151;
	border-bottom: 1.5px solid #374151;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.snec-shop__select select {
	height: 40px;
	padding: 0 38px 0 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: #ffffff;
	font: 500 12px/1 'Inter', system-ui, sans-serif;
	color: var(--shop-ink);
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.snec-shop__select select:focus-visible {
	outline: 2px solid var(--shop-blue);
	outline-offset: 2px;
}

.snec-shop__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	font: 600 13px/1 'Inter', system-ui, sans-serif;
	color: var(--shop-ink);
	cursor: pointer;
}

.snec-shop__toggle[hidden] {
	display: none;
}

@media (min-width: 901px) {
	.snec-shop__toggle {
		display: none;
	}
}

.snec-shop__toggle svg {
	width: 16px;
	height: 16px;
}

/* ── Rejilla de productos ────────────────────────────────────────────────── */
.snec-shop__results {
	transition: opacity .2s;
}

.snec-shop.is-loading .snec-shop__results {
	opacity: .45;
	pointer-events: none;
}

.snec-shop__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snec-shop__item {
	min-width: 0;
}

.snec-shop .snec-pcard {
	background: #ffffff;
	border-color: transparent;
}

.snec-shop .snec-pcard__tag {
	max-width: calc(100% - 34px);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.snec-shop .snec-pcard__tag:empty {
	visibility: hidden;
}

.snec-shop .snec-pcard__rating {
	min-height: 16px;
}

.snec-shop .snec-pcard__cart-ico,
.snec-shop .snec-pcard__cart-ok {
	display: none;
}

.snec-shop .snec-pcard__cart-btn {
	border-radius: 999px;
}

/* Sin resultados */
.snec-shop__empty {
	padding: 56px 24px;
	background: #ffffff;
	border-radius: var(--shop-radius);
	text-align: center;
	font-size: 14px;
	color: var(--shop-soft);
}

.snec-shop__empty p {
	margin: 0 0 6px;
}

.snec-shop__empty-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--shop-ink);
}

.snec-shop__empty-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--shop-blue);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

/* ── Paginación ──────────────────────────────────────────────────────────── */
.snec-shop__pages {
	margin-top: 36px;
}

.snec-shop__pages ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.snec-shop__pages .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 6px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #ffffff;
	font-size: 13px;
	font-weight: 500;
	color: var(--shop-ink);
	text-decoration: none;
	transition: background .15s, color .15s;
}

.snec-shop__pages a.page-numbers:hover {
	background: #e8f0fd;
	color: var(--shop-blue);
}

.snec-shop__pages .page-numbers.current {
	background: var(--shop-blue);
	color: #ffffff;
	font-weight: 600;
}

.snec-shop__pages .page-numbers.dots {
	color: #6b7280;
}

.snec-shop__pages a.page-numbers:focus-visible {
	outline: 2px solid var(--shop-blue);
	outline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.snec-shop__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.snec-shop__head,
	.snec-shop__body {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.snec-shop__body {
		display: block;
	}

	/* ── Toolbar: «Filtros» y «Ordenar» como botones ─── */
	.snec-shop__toolbar {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
		margin-bottom: 22px;
	}

	.snec-shop__search {
		grid-column: 1 / -1;
		order: -1;
		margin: 0;
	}

	.snec-shop__toggle,
	.snec-shop__sort-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		height: 46px;
		padding: 0 14px;
		box-sizing: border-box;
		border: 1px solid var(--shop-blue);
		border-radius: 8px;
		background: #ffffff;
		font: 500 15px/1 'Inter', system-ui, sans-serif;
		color: var(--shop-ink);
	}

	.snec-shop__toggle svg,
	.snec-shop__sort-btn svg {
		width: 19px;
		height: 19px;
		color: var(--shop-blue);
	}

	.snec-shop__toggle-num {
		display: inline-grid;
		place-items: center;
		min-width: 22px;
		height: 22px;
		padding: 0 6px;
		box-sizing: border-box;
		border-radius: 999px;
		background: var(--shop-blue);
		color: #ffffff;
		font-size: 12px;
		font-weight: 600;
	}

	.snec-shop__sort {
		display: block;
		min-width: 0;
	}

	.snec-shop__sort-label,
	.snec-shop__select::after {
		display: none;
	}

	.snec-shop__select {
		display: block;
	}

	/* El <select> nativo queda invisible encima del botón: el móvil abre su selector. */
	.snec-shop__select select {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		opacity: 0;
		font-size: 16px;
	}

	.snec-shop__select select:focus-visible + .snec-shop__sort-btn {
		outline: 2px solid var(--shop-blue);
		outline-offset: 2px;
	}

	/* ── Panel inferior de filtros (con JS) ─── */
	.snec-shop.is-js .snec-shop__filters {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		z-index: 100002;
		max-height: 88vh;
		max-height: 88dvh;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 24px 16px 0;
		border-radius: 26px 26px 0 0;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
		visibility: hidden;
		transform: translateY(100%);
		transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .3s;
	}

	.snec-shop.is-js .snec-shop__filters.is-open {
		visibility: visible;
		transform: none;
		transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s;
	}

	.snec-shop.is-js .snec-shop__backdrop:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100001;
		background: rgba(17, 17, 17, .62);
	}

	/* Sin JS: los filtros se ven encima de los productos, como antes. */
	.snec-shop:not(.is-js) .snec-shop__filters {
		position: static;
		margin-bottom: 18px;
	}

	.snec-shop__filters-head {
		gap: 10px;
		padding-bottom: 0;
		margin-bottom: 16px;
		border-bottom: 0;
	}

	.snec-shop__filters-title {
		font-size: 20px;
		font-weight: 700;
	}

	.snec-shop__active-num:not(:empty) {
		display: inline-block;
		padding: 5px 11px;
		border-radius: 999px;
		background: #e8f0fd;
		font-size: 12px;
		font-weight: 500;
		color: var(--shop-blue);
	}

	.snec-shop__clear {
		display: none;
	}

	.snec-shop.is-js .snec-shop__close {
		display: grid;
		place-items: center;
		width: 34px;
		height: 34px;
		margin: -4px -6px 0 auto;
		padding: 4px;
		border: 0;
		background: none;
		color: var(--shop-blue);
		cursor: pointer;
	}

	.snec-shop__close svg {
		width: 26px;
		height: 26px;
	}

	.snec-shop__chips:not(:empty) {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
		margin-bottom: 18px;
	}

	.snec-shop__chip {
		display: inline-flex;
		align-items: center;
		gap: 12px;
		padding: 9px 15px;
		border-radius: 999px;
		background: #e8f0fd;
		font-size: 13px;
		font-weight: 600;
		color: var(--shop-blue);
		text-decoration: none;
	}

	.snec-shop__chip-x {
		font-weight: 500;
	}

	.snec-shop__group,
	.snec-shop__group:last-of-type,
	.snec-shop__group:has(+ .snec-shop__group--movil) {
		display: block;
		margin: 0;
		padding: 0;
		border-bottom: 0;
		border-top: 1px solid var(--shop-line);
	}

	.snec-shop__group-title {
		margin: 0;
		padding: 18px 6px;
		font-size: 16px;
		cursor: pointer;
	}

	.snec-shop__group-name {
		margin-right: auto;
	}

	.snec-shop__group-num {
		display: inline;
		margin-right: 6px;
		font-size: 14px;
		font-weight: 400;
		color: #6b7280;
	}

	.snec-shop__group-title > svg {
		display: block;
	}

	.snec-shop__group[open] > .snec-shop__group-title > svg {
		transform: rotate(-90deg);
	}

	.snec-shop__opts {
		padding: 0 6px 18px;
	}

	.snec-shop__solo-d,
	.snec-shop__price-d {
		display: none;
	}

	.snec-shop__solo-m {
		display: inline;
	}

	.snec-shop.is-js .snec-shop__price-m {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.snec-shop:not(.is-js) .snec-shop__price-d {
		display: block;
	}

	.snec-shop__money-label {
		display: block;
		margin-bottom: 8px;
		font-size: 12px;
		color: #6b7280;
	}

	.snec-shop__money-box {
		display: flex;
		align-items: center;
		gap: 6px;
		height: 44px;
		padding: 0 12px;
		border: 1px solid #d9d9d9;
		border-radius: 4px;
		font-size: 14px;
		color: var(--shop-ink);
	}

	.snec-shop__money-box:focus-within {
		border-color: var(--shop-blue);
	}

	.snec-shop__money-box input {
		width: 100%;
		min-width: 0;
		padding: 0;
		border: 0;
		background: transparent;
		font: 400 16px/1 'Inter', system-ui, sans-serif;
		color: var(--shop-ink);
		-moz-appearance: textfield;
	}

	.snec-shop__money-box input::-webkit-inner-spin-button,
	.snec-shop__money-box input::-webkit-outer-spin-button {
		-webkit-appearance: none;
		margin: 0;
	}

	.snec-shop__money-box input:focus {
		outline: none;
	}

	.snec-shop__group--movil {
		display: block;
	}

	.snec-shop__check {
		gap: 12px;
		padding: 7px 0;
		font-size: 15px;
		color: #374151;
	}

	.snec-shop__check input {
		width: 20px;
		height: 20px;
	}

	.snec-shop.is-js .snec-shop__sheet-foot {
		position: sticky;
		bottom: 0;
		display: flex;
		gap: 12px;
		margin: 0 -16px;
		padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--shop-line);
		background: #ffffff;
	}

	.snec-shop__see,
	.snec-shop__reset {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 1;
		height: 52px;
		border-radius: 999px;
		font: 500 16px/1 'Inter', system-ui, sans-serif;
		text-decoration: none;
		cursor: pointer;
	}

	.snec-shop__see {
		border: 0;
		background: var(--shop-blue);
		color: #ffffff;
	}

	.snec-shop__reset {
		border: 1px solid var(--shop-blue);
		background: #ffffff;
		color: var(--shop-blue);
	}

	/* ── Carrusel de categorías: tarjetas sueltas ─── */
	.snec-shop__cats {
		margin: 0 -16px;
		padding: 0;
		background: transparent;
	}

	.snec-shop__cats-track {
		gap: 12px;
		padding: 4px 16px 6px;
		scroll-padding-left: 16px;
	}

	.snec-shop__cats-btn {
		display: none !important;
	}

	.snec-shop__cat {
		width: 184px;
		min-height: 84px;
		gap: 10px;
		padding: 12px;
		border-radius: 16px;
		background: #ffffff;
	}

	.snec-shop__cat-img {
		width: 52px;
		height: 52px;
		background: transparent;
	}

	.snec-shop__cat-img img {
		width: 52px;
		height: 52px;
	}

	.snec-shop__cat-name {
		font-size: 13.5px;
		line-height: 1.25;
		font-weight: 600;
		color: #4b5563;
	}

	.snec-shop__cat-num {
		font-size: 14px;
	}
}

@media (max-width: 680px) {
	.snec-shop__wrap {
		padding-top: 22px;
	}

	.snec-shop__crumbs ol {
		margin-bottom: 12px;
	}

	.snec-shop__title {
		font-size: 24px;
	}

	.snec-shop__count {
		font-size: 14px;
	}

	.snec-shop__head {
		margin-bottom: 20px;
	}

	/* En móvil se busca desde la cabecera. */
	.snec-shop__search {
		display: none;
	}

	.snec-shop__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	/* Tarjeta móvil del diseño */
	.snec-shop .snec-pcard {
		padding: 12px;
		border: 1px solid #e5e7eb;
		border-radius: 6px;
	}

	.snec-shop .snec-pcard__title {
		min-height: 0;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.25;
	}

	.snec-shop .snec-pcard__title {
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.snec-shop .snec-pcard__price-box {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 2px 8px;
	}

	.snec-shop .snec-pcard__price {
		font-size: 16px;
	}

	.snec-shop .snec-pcard__tax-envio {
		display: none;
	}

	.snec-shop .snec-pcard__cart-btn {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.snec-shop__cats-track {
		scroll-behavior: auto;
	}

	.snec-shop__results,
	.snec-shop__cat {
		transition: none;
	}
}

/* ══ Archivo de categoría (inc/snec-categoria.php) ═══════════════════════════════
 * Cabecera a todo el ancho: migas, título, descripción y pestañas de subcategorías.
 * Tarjeta «Encuentra el repuesto…» como primera celda de la rejilla.
 */
.snec-shop__head--cat {
	display: block;
}

.snec-shop__desc {
	max-width: 760px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--shop-soft);
}

.snec-shop__desc p {
	margin: 0;
}

.snec-shop__desc p + p {
	margin-top: 6px;
}

.snec-shop__tabs {
	margin-top: 26px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #f1f1f3;
	border-radius: var(--shop-radius);
}

/* position: relative contiene los textos ocultos (absolutos) dentro de la franja con scroll. */
.snec-shop__tabs ul {
	position: relative;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(140px, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}

.snec-shop__tabs ul::-webkit-scrollbar {
	display: none;
}

.snec-shop__tabs li {
	scroll-snap-align: start;
}

.snec-shop__tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 100%;
	min-height: 58px;
	padding: 8px 12px;
	box-sizing: border-box;
	border-radius: 9px;
	background: #f6f6f7;
	color: var(--shop-ink);
	text-align: center;
	text-decoration: none;
	transition: background .18s, color .18s;
}

.snec-shop__tab-name {
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.25;
}

.snec-shop__tab-num {
	font-size: 11px;
	color: var(--shop-soft);
}

.snec-shop__tab:hover {
	background: #e8f0fd;
	color: var(--shop-blue);
}

.snec-shop__tab[aria-current="page"] {
	background: var(--shop-blue);
	color: #ffffff;
}

.snec-shop__tab[aria-current="page"] .snec-shop__tab-num {
	color: rgba(255, 255, 255, .85);
}

.snec-shop__tab:focus-visible {
	outline: 2px solid var(--shop-blue);
	outline-offset: 2px;
}

/* Tarjeta promocional */
.snec-shop__item--promo {
	display: flex;
}

.snec-catpromo-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 14px 14px 18px;
	box-sizing: border-box;
	border: 1px solid #84aef1;
	border-radius: 8px;
	background: #f2f6fd;
}

.snec-catpromo-card__ico {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-bottom: auto;
	border-radius: 6px;
	background: #d5e1f9;
	color: var(--shop-blue);
	overflow: hidden;
}

/* El logo es horizontal: solo se ve el emblema (su parte izquierda). */
.snec-catpromo-card__logo {
	width: 22px;
	height: 22px;
	object-fit: cover;
	object-position: 0 50%;
}

.snec-catpromo-card__ico svg {
	width: 18px;
	height: 18px;
}

.snec-catpromo-card__title {
	margin: 56px 0 12px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--shop-ink);
}

.snec-catpromo-card__title > span,
.snec-catpromo-card__title > strong {
	display: block;
}

.snec-catpromo-card__title > strong {
	font-weight: 600;
	color: var(--shop-blue);
}

.snec-catpromo-card__text {
	margin: 0 0 22px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--shop-soft);
}

.snec-catpromo-card__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.snec-catpromo-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 38px;
	padding: 0 14px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--shop-blue);
	color: #ffffff;
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background .18s;
}

.snec-catpromo-card__btn svg {
	flex: none;
	width: 13px;
	height: 13px;
}

.snec-catpromo-card__btn:hover {
	background: #0f55c9;
	color: #ffffff;
}

.snec-catpromo-card__link {
	font-size: 13px;
	color: var(--shop-ink);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.snec-catpromo-card__link:hover {
	color: var(--shop-blue);
}

.snec-catpromo-card__btn:focus-visible,
.snec-catpromo-card__link:focus-visible {
	outline: 2px solid var(--shop-blue);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.snec-shop__tabs {
		margin-top: 18px;
		padding: 10px;
	}

	.snec-shop__tabs ul {
		grid-auto-columns: minmax(124px, 1fr);
		gap: 8px;
	}
}

/* Móvil: la tarjeta ocupa la fila entera y se pone en horizontal. */
@media (max-width: 680px) {
	.snec-shop__item--promo {
		grid-column: 1 / -1;
	}

	.snec-catpromo-card {
		display: grid;
		grid-template-columns: 32px minmax(0, 1fr);
		column-gap: 12px;
		padding: 16px;
	}

	.snec-catpromo-card__ico {
		grid-row: span 2;
		margin: 2px 0 0;
	}

	.snec-catpromo-card__title {
		margin: 0 0 6px;
		font-size: 15px;
		line-height: 1.35;
	}

	.snec-catpromo-card__title > span,
	.snec-catpromo-card__title > strong {
		display: inline;
	}

	.snec-catpromo-card__text {
		margin-bottom: 14px;
		font-size: 12px;
	}

	.snec-catpromo-card__actions {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: space-between;
		gap: 14px;
	}

	.snec-catpromo-card__btn {
		flex: 1;
		width: auto;
		height: 42px;
		font-size: 13px;
	}

	.snec-catpromo-card__link {
		flex: none;
	}
}
