/* ==========================================================================
   Cuba Provider — shop.css (tienda, categorías, marcas y búsqueda)
   Móvil primero. Tokens y componentes de main.css. Clases .cp-shop-…
   ========================================================================== */

.cp-shop {
	--cp-shop-top: 144px;
	--cp-shop-pad: 16px;
	padding-top: 2px;
}

.cp-shop-results:focus {
	outline: none;
}

/* Migas: una línea deslizable en móvil */
.cp-shop .cp-breadcrumbs {
	flex-wrap: nowrap;
	overflow-x: auto;
	padding: 10px 0;
	font-size: var(--cp-fs-xs);
	white-space: nowrap;
	scrollbar-width: none;
}

.cp-shop .cp-breadcrumbs::-webkit-scrollbar {
	display: none;
}

.cp-shop .cp-breadcrumbs a {
	color: var(--cp-muted);
}

.cp-shop .cp-breadcrumbs .breadcrumb_last {
	color: var(--cp-text);
	font-weight: 650;
}

@media (min-width: 768px) {
	.cp-shop {
		--cp-shop-pad: 24px;
	}
	.cp-shop .cp-breadcrumbs {
		font-size: var(--cp-fs-sm);
	}
}

/* ─────────────────────────── Cabecera del listado ─────────────────────────── */

.cp-shop-head {
	position: relative;
	margin: 0 0 12px;
	padding: var(--cp-shop-pad);
	border-radius: var(--cp-r-lg);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
	overflow: hidden;
	isolation: isolate;
}

.cp-shop-head::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -80px;
	z-index: -1;
	width: 360px;
	height: 260px;
	background: radial-gradient(closest-side, rgba(33, 160, 74, 0.11), transparent);
	pointer-events: none;
}

.cp-shop-head__row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cp-shop-head__media {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--cp-brand-soft);
	color: var(--cp-brand);
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(33, 160, 74, 0.12);
}

.cp-shop-head__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cp-shop-head__text {
	min-width: 0;
}

.cp-shop-head__eyebrow {
	margin: 0 0 2px;
	color: var(--cp-brand-dark);
	font-size: var(--cp-fs-xs);
	font-weight: 750;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cp-shop-head__title {
	margin: 0;
	font-size: clamp(1.375rem, 1.05rem + 1.2vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
}

.cp-shop-head__meta {
	display: flex;
	flex-direction: column;
	margin: 4px 0 0;
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
	line-height: 1.35;
}

.cp-shop-head__count {
	color: var(--cp-ink);
	font-weight: 750;
	font-variant-numeric: tabular-nums;
}

@media (min-width: 600px) {
	.cp-shop-head__meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 2px 10px;
	}
	.cp-shop-head__meta > span + span::before {
		content: "·";
		margin-right: 10px;
		color: var(--cp-faint);
	}
}

@media (min-width: 768px) {
	.cp-shop-head__media {
		width: 64px;
		height: 64px;
	}
}

/* Cabecera de marca */
.cp-shop-head--brand {
	padding: 0;
}

.cp-shop-head--brand::before {
	display: none;
}

.cp-shop-brand {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px var(--cp-shop-pad);
	background: var(--cp-header-dark);
	color: #fff;
	isolation: isolate;
}

.cp-shop-brand::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(520px 240px at 92% -10%, rgba(47, 179, 90, 0.42), transparent 70%),
		radial-gradient(380px 220px at -5% 120%, rgba(255, 106, 0, 0.16), transparent 70%);
}

.cp-shop-brand__logo {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 72px;
	padding: 8px;
	border-radius: var(--cp-r-card);
	background: #fff;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	color: var(--cp-brand-dark);
	font-size: 1.75rem;
	font-weight: 800;
	overflow: hidden;
}

.cp-shop-brand__img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 56px;
	object-fit: contain;
}

.cp-shop-brand__body {
	min-width: 0;
}

.cp-shop-brand__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px 3px 7px;
	border-radius: var(--cp-r-pill);
	background: rgba(255, 255, 255, 0.12);
	color: #c9f2d6;
	font-size: 11.5px;
	font-weight: 750;
	letter-spacing: 0.02em;
}

.cp-shop-brand .cp-shop-head__title {
	margin-top: 6px;
	color: #fff;
}

.cp-shop-brand__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 8px;
	list-style: none;
	color: rgba(255, 255, 255, 0.84);
	font-size: var(--cp-fs-sm);
}

.cp-shop-brand__facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cp-shop-brand__facts .cp-icon {
	color: #7be29b;
}

.cp-shop-head--brand > :not(.cp-shop-brand) {
	margin-left: var(--cp-shop-pad);
	margin-right: var(--cp-shop-pad);
}

.cp-shop-head--brand > :last-child {
	margin-bottom: 14px;
}

.cp-shop-head--brand > .cp-shop-pills:first-of-type {
	margin-top: 16px;
}

@media (min-width: 768px) {
	.cp-shop-brand {
		gap: 24px;
		padding: 28px 32px;
	}
	.cp-shop-brand__logo {
		width: 168px;
		height: 112px;
		padding: 12px;
		border-radius: var(--cp-r-lg);
	}
	.cp-shop-brand__img {
		max-height: 88px;
	}
}

@media (max-width: 420px) {
	.cp-shop-brand__facts li:nth-child(n + 3) {
		display: none;
	}
}

/* Otras marcas */
.cp-shop-brands {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--cp-line);
	min-width: 0;
}

.cp-shop-brands__label {
	flex: none;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.cp-shop-brands__list {
	display: flex;
	gap: 8px;
	min-width: 0;
	padding: 2px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.cp-shop-brands__list::-webkit-scrollbar {
	display: none;
}

.cp-shop-brands__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 52px;
	padding: 4px 8px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-r-img);
	background: #fff;
	color: var(--cp-ink);
	font-size: var(--cp-fs-xs);
	font-weight: 800;
	transition: border-color var(--cp-fast), box-shadow var(--cp-fast);
}

.cp-shop-brands__item:hover {
	border-color: var(--cp-brand);
	box-shadow: var(--cp-shadow-card);
}

.cp-shop-brands__img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 44px;
	object-fit: contain;
}

/* Descripción plegable */
.cp-shop-desc {
	max-width: 920px;
	margin-top: 12px;
	color: var(--cp-text);
	font-size: var(--cp-fs-sm);
	line-height: 1.6;
}

.cp-shop-desc.cp-prose,
.cp-shop-desc .cp-prose {
	font-size: var(--cp-fs-sm);
}

.cp-shop-desc > :last-child,
.cp-shop-desc .cp-prose > :last-child {
	margin-bottom: 0;
}

.cp-shop-desc--fold > summary {
	cursor: pointer;
	list-style: none;
}

.cp-shop-desc--fold > summary::-webkit-details-marker {
	display: none;
}

.cp-shop-desc__toggle::before {
	content: attr(data-more);
	margin-left: 4px;
	color: var(--cp-brand-dark);
	font-weight: 700;
	white-space: nowrap;
}

.cp-shop-desc--fold[open] .cp-shop-desc__toggle::before {
	content: attr(data-less);
	margin-left: 0;
}

.cp-shop-desc--fold[open] .cp-shop-desc__excerpt {
	display: none;
}

.cp-shop-desc--fold[open] > summary {
	margin-bottom: 6px;
}

/* ─────────────────────────── Píldoras de categorías ───────────────────────────
   Una fila por nivel (template-parts/shop/subcats.php): «Todas» y las
   subcategorías (o las hermanas, con la actual marcada). Deslizable en móvil
   y tableta, con la actual centrada (shop.js); en escritorio salta de línea.
   La segunda fila (hijas de una subcategoría) va sin foto y más discreta. */

.cp-shop-pills {
	min-width: 0;
	margin-top: 14px;
}

.cp-shop-pills + .cp-shop-pills {
	margin-top: 8px;
}

.cp-shop-rail {
	position: relative;
	margin: 0 calc(-1 * var(--cp-shop-pad));
}

.cp-shop-rail__track {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: -6px;
	padding: 2px var(--cp-shop-pad) 8px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding: 0 var(--cp-shop-pad);
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.cp-shop-rail__track::-webkit-scrollbar {
	display: none;
}

.cp-shop-rail__track > li {
	flex: none;
	scroll-snap-align: start;
}

.cp-shop-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 14px 0 5px;
	border: 1px solid var(--cp-line-strong);
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface);
	color: var(--cp-text);
	font-size: var(--cp-fs-sm);
	font-weight: 650;
	line-height: 1;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: border-color var(--cp-fast), background var(--cp-fast), color var(--cp-fast), box-shadow var(--cp-fast);
}

.cp-shop-pill:hover {
	border-color: var(--cp-ink);
	color: var(--cp-ink);
}

.cp-shop-pill:active {
	transform: scale(0.97);
}

.cp-shop-pill__pic {
	position: relative;
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cp-surface-alt);
	color: var(--cp-brand-dark);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
	overflow: hidden;
}

/* Borde por encima de la foto: las de fondo blanco no se pierden. */
.cp-shop-pill__pic::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(17, 17, 17, 0.06);
	border-radius: 50%;
}

.cp-shop-pill__pic.is-empty {
	background: var(--cp-brand-soft);
}

.cp-shop-pill__pic img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cp-shop-pill__name {
	max-width: 15em;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cp-shop-pill__count {
	color: var(--cp-faint);
	font-size: 11.5px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.cp-shop-pill.is-active {
	border-color: var(--cp-brand);
	background: var(--cp-brand);
	box-shadow: 0 3px 8px rgba(33, 160, 74, 0.24);
	color: #fff;
}

.cp-shop-pill.is-active .cp-shop-pill__count {
	color: rgba(255, 255, 255, 0.82);
}

.cp-shop-pill.is-active .cp-shop-pill__pic {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.cp-shop-pill.is-active .cp-shop-pill__pic::after {
	border: 2px solid rgba(255, 255, 255, 0.7);
}

.cp-shop-pill.is-all:not(.is-active) .cp-shop-pill__pic {
	background: var(--cp-surface-alt);
	color: var(--cp-ink);
}

/* Segunda fila (hijas de la subcategoría actual): texto, sin foto. */
.cp-shop-pill--text {
	height: 36px;
	padding: 0 13px;
	border-color: var(--cp-line);
	background: var(--cp-surface-alt);
	font-weight: 600;
}

.cp-shop-pill--text:hover {
	border-color: var(--cp-line-strong);
	background: var(--cp-surface);
}

.cp-shop-pills__label {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 700;
	white-space: nowrap;
}

.cp-shop-pills__label::after {
	content: ":";
}

.cp-shop-rail__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-top: -18px;
	border: 1px solid var(--cp-line);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: var(--cp-shadow-card);
	color: var(--cp-ink);
}

.cp-shop-rail__nav--prev {
	left: 6px;
}

.cp-shop-rail__nav--next {
	right: 6px;
}

@media (hover: hover) and (min-width: 768px) and (max-width: 1023px) {
	.cp-shop-rail__nav {
		display: grid;
	}
	.cp-shop-rail__nav[hidden] {
		display: none;
	}
}

/* Escritorio: todas a la vista, en varias líneas si hace falta. */
@media (min-width: 1024px) {
	.cp-shop-rail {
		margin: 0;
	}
	.cp-shop-rail__track {
		flex-wrap: wrap;
		margin-bottom: 0;
		padding: 2px 0 0;
		overflow: visible;
		scroll-snap-type: none;
	}
	.cp-shop-pill {
		height: 40px;
	}
	.cp-shop-pill--text {
		height: 34px;
	}
}

/* ─────────────────────────── Disposición ─────────────────────────── */

@media (min-width: 1024px) {
	.cp-shop-layout {
		display: grid;
		grid-template-columns: 248px minmax(0, 1fr);
		gap: 20px;
		align-items: start;
	}
}

@media (min-width: 1280px) {
	.cp-shop-layout {
		grid-template-columns: 264px minmax(0, 1fr);
		gap: 24px;
	}
}

@media (min-width: 1024px) {
	.cp-shop-layout.cp-shop-layout--full {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ─────────────────────────── Hojas inferiores (móvil) ─────────────────────────── */

@media (max-width: 1023px) {
	.cp-shop-sheet {
		position: fixed;
		inset: 0;
		z-index: 1000;
		display: none;
	}
	.cp-shop-sheet:target,
	.cp-shop-sheet.is-open {
		display: block;
	}
	.cp-shop-sheet__overlay {
		position: absolute;
		inset: 0;
		background: var(--cp-scrim);
		animation: cp-fade var(--cp-normal) var(--cp-ease);
	}
	.cp-shop-sheet__panel {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		max-height: 88vh;
		max-height: 88dvh;
		border-radius: var(--cp-r-xl) var(--cp-r-xl) 0 0;
		background: var(--cp-surface);
		box-shadow: var(--cp-shadow-float);
		animation: cp-shop-up var(--cp-normal) var(--cp-ease);
	}
	.cp-shop-sheet.is-instant .cp-shop-sheet__panel,
	.cp-shop-sheet.is-instant .cp-shop-sheet__overlay {
		animation: none;
	}
	.cp-shop-sheet__panel::before {
		content: "";
		position: absolute;
		top: 7px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 4px;
		background: var(--cp-line-strong);
	}
	.cp-shop-sheet__head {
		display: flex;
		align-items: center;
		gap: 4px;
		padding: 16px 6px 6px 20px;
		border-bottom: 1px solid var(--cp-line);
	}
	.cp-shop-sheet__body {
		flex: 1;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	.cp-shop-sheet__foot {
		display: flex;
		gap: 10px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--cp-line);
		background: var(--cp-surface);
	}
	.cp-shop-sheet__apply {
		flex: 1;
	}
	.cp-shop-sheet--sort .cp-shop-sheet__body {
		padding: 8px 8px calc(16px + env(safe-area-inset-bottom));
	}
}

@keyframes cp-shop-up {
	from {
		transform: translateY(100%);
	}
}

/* El botón del chat no tapa la hoja abierta. */
.cp-shop-sheet-open #asa-root,
body:has(.cp-shop-sheet:target) #asa-root {
	visibility: hidden;
}

.cp-shop-sheet__title {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: var(--cp-fs-lg);
	font-weight: 800;
}

.cp-shop-sheet__title .cp-icon {
	color: var(--cp-brand);
}

.cp-shop-sheet__title:focus {
	outline: none;
}

.cp-shop-sheet__sub {
	margin: 18px 12px 10px;
	font-size: var(--cp-fs-md);
	font-weight: 750;
}

.cp-shop-filters__clear {
	padding: 10px 8px;
	color: var(--cp-brand-dark);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
	white-space: nowrap;
}

@media (min-width: 1024px) {
	.cp-shop-filters {
		position: sticky;
		top: var(--cp-shop-top);
		max-height: calc(100vh - var(--cp-shop-top) - 16px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--cp-line-strong) transparent;
		border-radius: var(--cp-r-card);
		background: var(--cp-surface);
		box-shadow: var(--cp-shadow-card);
	}
	.cp-shop-filters .cp-shop-sheet__overlay,
	.cp-shop-filters .cp-shop-sheet__close,
	.cp-shop-filters .cp-shop-sheet__foot,
	.cp-shop-chips--sheet,
	.cp-shop-sheet--sort {
		display: none !important;
	}
	.cp-shop-filters .cp-shop-sheet__head {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		padding: 12px 8px 10px 16px;
		border-bottom: 1px solid var(--cp-line);
		background: var(--cp-surface);
	}
	.cp-shop-filters .cp-shop-sheet__title {
		font-size: var(--cp-fs-md);
	}
}

/* ─────────────────────────── Facetas ─────────────────────────── */

.cp-shop-facet + .cp-shop-facet {
	border-top: 1px solid var(--cp-line);
}

.cp-shop-facet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 48px;
	padding: 6px 16px;
	cursor: pointer;
	list-style: none;
	-webkit-user-select: none;
	user-select: none;
}

.cp-shop-facet__head::-webkit-details-marker {
	display: none;
}

.cp-shop-facet__head .cp-icon {
	color: var(--cp-faint);
	transition: transform var(--cp-fast) var(--cp-ease);
}

.cp-shop-facet details[open] > .cp-shop-facet__head .cp-icon {
	transform: rotate(180deg);
}

.cp-shop-facet__title {
	margin: 0;
	font-size: var(--cp-fs-md);
	font-weight: 750;
}

.cp-shop-facet__body {
	padding: 0 8px 12px;
}

.cp-shop-facet__list {
	list-style: none;
}

.cp-shop-facet__list li[hidden] {
	display: none;
}

.cp-shop-opt {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 6px 8px;
	border-radius: var(--cp-r-img);
	color: var(--cp-text);
	font-size: var(--cp-fs-sm);
	line-height: 1.3;
	-webkit-tap-highlight-color: transparent;
}

.cp-shop-opt:hover {
	background: var(--cp-surface-alt);
	color: var(--cp-ink);
}

.cp-shop-opt__box {
	flex: none;
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	border: 1.5px solid var(--cp-line-strong);
	border-radius: 6px;
	background: var(--cp-surface);
	color: transparent;
	transition: background var(--cp-fast), border-color var(--cp-fast), color var(--cp-fast);
}

.cp-shop-opt__box::after {
	content: "";
	width: 5px;
	height: 9px;
	margin-top: -2px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
}

.cp-shop-opt:hover .cp-shop-opt__box {
	border-color: var(--cp-brand);
}

.cp-shop-opt.is-active .cp-shop-opt__box::after {
	opacity: 1;
}

.cp-shop-opt.is-active {
	color: var(--cp-ink);
	font-weight: 700;
}

.cp-shop-opt.is-active .cp-shop-opt__box {
	border-color: var(--cp-brand);
	background: var(--cp-brand);
	color: #fff;
}

.cp-shop-opt__label {
	flex: 1;
	min-width: 0;
	overflow-wrap: break-word;
}

.cp-shop-opt__count {
	flex: none;
	min-width: 26px;
	padding: 1px 7px;
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface-alt);
	color: var(--cp-muted);
	font-size: 11.5px;
	font-weight: 650;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.cp-shop-opt--nav.is-active {
	background: var(--cp-brand-soft);
	color: var(--cp-brand-dark);
}

.cp-shop-opt--nav.is-active .cp-shop-opt__count {
	background: var(--cp-surface);
	color: var(--cp-brand-dark);
}

.cp-shop-back {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: 40px;
	padding: 4px 8px;
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
	font-weight: 650;
}

.cp-shop-back:hover {
	color: var(--cp-brand-dark);
}

.cp-shop-facet__more > summary {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 4px 8px;
	color: var(--cp-brand-dark);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.cp-shop-facet__more > summary::-webkit-details-marker {
	display: none;
}

.cp-shop-facet__more[open] > summary {
	display: none;
}

.cp-shop-facet__search[type="search"] {
	min-height: 40px;
	margin: 0 0 6px;
	padding: 8px 14px;
	border-color: transparent;
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface-alt);
}

.cp-shop-facet__search[hidden] {
	display: none;
}

.cp-shop-facet__none {
	margin: 0;
	padding: 6px 8px;
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
}

/* Cabecera de sección: título y lo elegido debajo. */
.cp-shop-facet__titles {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.cp-shop-facet__picked {
	overflow: hidden;
	color: var(--cp-brand-dark);
	font-size: var(--cp-fs-xs);
	font-weight: 650;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cp-shop-facet details[open] > .cp-shop-facet__head .cp-shop-facet__picked {
	display: none;
}

.cp-shop-facet__hint {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 8px 8px 0;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
}

/* Opciones como fichas (RAM, ROM, red, colores, orden…). */
.cp-shop-fchips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 8px;
	list-style: none;
}

.cp-shop-fchip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 12px;
	border: 1.5px solid var(--cp-line-strong);
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface);
	color: var(--cp-ink);
	font-size: var(--cp-fs-sm);
	font-weight: 650;
	line-height: 1.2;
	-webkit-tap-highlight-color: transparent;
	transition: border-color var(--cp-fast), background var(--cp-fast), color var(--cp-fast);
}

.cp-shop-fchip:hover {
	border-color: var(--cp-brand);
	color: var(--cp-ink);
}

.cp-shop-fchip__n {
	color: var(--cp-faint);
	font-size: 11.5px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.cp-shop-fchip.is-active {
	border-color: var(--cp-brand);
	background: var(--cp-brand-soft);
	color: var(--cp-brand-dark);
}

.cp-shop-fchip.is-active::before {
	content: "";
	width: 5px;
	height: 9px;
	margin: -2px 1px 0 0;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.cp-shop-fchip.is-active .cp-shop-fchip__n {
	color: var(--cp-brand-dark);
}

.cp-shop-fchips--radio .cp-shop-fchip.is-active {
	background: var(--cp-ink);
	border-color: var(--cp-ink);
	color: #fff;
}

.cp-shop-fchips--radio .cp-shop-fchip.is-active::before {
	display: none;
}

.cp-shop-fchip__swatch {
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--cp-sw, #ccc);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.cp-shop-fchips--colors .cp-shop-fchip.is-active::before {
	display: none;
}

.cp-shop-fchips--colors .cp-shop-fchip.is-active .cp-shop-fchip__swatch {
	box-shadow: 0 0 0 2px var(--cp-surface), 0 0 0 3.5px var(--cp-brand);
}

/* Título de la hoja: cuántos filtros hay puestos. */
.cp-shop-sheet__n {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--cp-r-pill);
	background: var(--cp-brand);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
}

/* «Ver N resultados» mientras llega el listado. */
.cp-shop-sheet__apply-busy,
.cp-shop.is-loading .cp-shop-sheet__apply-text {
	display: none;
}

.cp-shop.is-loading .cp-shop-sheet__apply-busy {
	display: inline;
}

@media (min-width: 1024px) {
	.cp-shop-opt {
		min-height: 36px;
	}
	.cp-shop-facet__head {
		min-height: 46px;
	}
	.cp-shop-fchips {
		gap: 6px;
	}
	.cp-shop-fchip {
		min-height: 34px;
		padding: 5px 11px;
		font-size: 13px;
	}
	/* El orden, en escritorio, está sobre la rejilla. */
	.cp-shop-filters .cp-shop-facet--sort {
		display: none;
	}
}

/* Precio */
.cp-shop-price {
	display: grid;
	gap: 10px;
	padding: 0 8px;
}

.cp-shop-price__row {
	display: flex;
	align-items: flex-end;
	gap: 8px;
}

.cp-shop-price__field {
	display: block;
	flex: 1;
	min-width: 0;
	margin: 0;
	font-weight: 400;
}

.cp-shop-price__label {
	display: block;
	margin-bottom: 4px;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 650;
}

.cp-shop-price__input {
	position: relative;
	display: block;
}

.cp-shop-price__input > span {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	color: var(--cp-muted);
	font-weight: 700;
	pointer-events: none;
}

.cp-shop-price__input input {
	min-height: 42px;
	padding: 8px 8px 8px 24px;
	font-variant-numeric: tabular-nums;
}

.cp-shop-price__sep {
	padding-bottom: 10px;
	color: var(--cp-faint);
}

.cp-shop-price__range {
	margin: -2px 0 0;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-variant-numeric: tabular-nums;
}

.cp-shop-price-lock {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 8px;
	padding: 10px 12px;
	border-radius: var(--cp-r-img);
	background: var(--cp-surface-alt);
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
	line-height: 1.4;
}

.cp-shop-price-lock .cp-icon {
	flex: none;
	margin-top: 1px;
	color: var(--cp-brand);
}

.cp-shop-price-lock a {
	color: var(--cp-brand-dark);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Solo ofertas */
.cp-shop-facet--flat {
	padding: 6px 8px;
}

.cp-shop-switch {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 8px;
	border-radius: var(--cp-r-card);
	color: var(--cp-ink);
	-webkit-tap-highlight-color: transparent;
}

.cp-shop-switch:hover {
	background: var(--cp-surface-alt);
	color: var(--cp-ink);
}

.cp-shop-switch__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--cp-sale-soft);
	color: var(--cp-sale);
}

.cp-shop-switch__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	line-height: 1.25;
}

.cp-shop-switch__text strong {
	font-weight: 750;
}

.cp-shop-switch__text small {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
}

.cp-shop-switch__track {
	position: relative;
	flex: none;
	width: 44px;
	height: 26px;
	border-radius: var(--cp-r-pill);
	background: var(--cp-line-strong);
	transition: background var(--cp-fast);
}

.cp-shop-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform var(--cp-fast) var(--cp-ease);
}

.cp-shop-switch.is-on .cp-shop-switch__track {
	background: var(--cp-brand);
}

.cp-shop-switch.is-on .cp-shop-switch__thumb {
	transform: translateX(18px);
}

/* ─────────────────────────── Barra de resultados ─────────────────────────── */

.cp-shop-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
}

.cp-shop-toolbar__count,
.cp-shop-toolbar__desk {
	display: none;
}

.cp-shop-toolbar__mobile {
	display: flex;
	flex: 1;
	gap: 8px;
	min-width: 0;
}

.cp-shop-tbtn {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
	color: var(--cp-ink);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
	-webkit-tap-highlight-color: transparent;
}

.cp-shop-tbtn:hover {
	color: var(--cp-ink);
	border-color: var(--cp-line-strong);
}

.cp-shop-tbtn .cp-icon {
	color: var(--cp-brand);
}

.cp-shop-tbtn__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Móviles estrechos: cada botón mide lo que su texto (así «Más vendidos» no
   se corta a 360 px) y se reparten el sobrante. */
@media (max-width: 419px) {
	.cp-shop-tbtn {
		flex: 1 1 auto;
		gap: 5px;
		padding: 0 10px;
	}
}

.cp-shop-tbtn__badge {
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--cp-r-pill);
	background: var(--cp-brand);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
}

.cp-shop-view {
	display: flex;
	flex: none;
	padding: 3px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface);
}

.cp-shop-view[hidden] {
	display: none;
}

.cp-shop-view__btn {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: var(--cp-r-pill);
	background: transparent;
	color: var(--cp-muted);
	transition: background var(--cp-fast), color var(--cp-fast);
}

.cp-shop-view__btn:hover {
	color: var(--cp-ink);
}

.cp-shop-view__btn[aria-pressed="true"] {
	background: var(--cp-ink);
	color: #fff;
}

.cp-shop-count {
	margin: 0;
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
	font-variant-numeric: tabular-nums;
}

.cp-shop-count strong {
	color: var(--cp-ink);
}

@media (min-width: 1024px) {
	.cp-shop-toolbar {
		min-height: 56px;
		padding: 8px 8px 8px 16px;
		border-radius: var(--cp-r-card);
		background: var(--cp-surface);
		box-shadow: var(--cp-shadow-card);
	}
	.cp-shop-toolbar__count {
		display: block;
		flex: 1;
		min-width: 0;
	}
	.cp-shop-toolbar__mobile {
		display: none;
	}
	.cp-shop-toolbar__desk {
		display: flex;
		align-items: center;
		gap: 10px;
	}
	.cp-shop-view {
		border-color: transparent;
		background: var(--cp-surface-alt);
	}
}

/* Productos por página */
.cp-shop-perpage {
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface-alt);
}

.cp-shop-perpage__label {
	padding: 0 6px 0 10px;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 650;
}

.cp-shop-perpage__opt {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 32px;
	padding: 0 8px;
	border-radius: var(--cp-r-pill);
	color: var(--cp-text);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cp-shop-perpage__opt:hover {
	background: var(--cp-surface);
	color: var(--cp-ink);
}

.cp-shop-perpage__opt.is-active {
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
	color: var(--cp-ink);
}

/* Menú «Ordenar» (escritorio) */
.cp-shop-sort {
	position: relative;
}

.cp-shop-sort__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 12px 0 14px;
	border: 1px solid var(--cp-line-strong);
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface);
	color: var(--cp-ink);
	font-size: var(--cp-fs-sm);
	white-space: nowrap;
	cursor: pointer;
	list-style: none;
}

.cp-shop-sort__btn::-webkit-details-marker {
	display: none;
}

.cp-shop-sort__btn:hover,
.cp-shop-sort[open] > .cp-shop-sort__btn {
	border-color: var(--cp-ink);
}

.cp-shop-sort__btn .cp-icon {
	transition: transform var(--cp-fast);
}

.cp-shop-sort[open] > .cp-shop-sort__btn .cp-icon {
	transform: rotate(180deg);
}

.cp-shop-sort__label {
	color: var(--cp-muted);
}

.cp-shop-sort__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 30;
	min-width: 250px;
	padding: 6px;
	list-style: none;
	border-radius: var(--cp-r-card);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-float);
	animation: cp-pop var(--cp-fast) var(--cp-ease);
}

.cp-shop-sort__opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 40px;
	padding: 8px 12px;
	border-radius: var(--cp-r-img);
	color: var(--cp-text);
	font-size: var(--cp-fs-sm);
	font-weight: 600;
}

.cp-shop-sort__opt:hover {
	background: var(--cp-surface-alt);
	color: var(--cp-ink);
}

.cp-shop-sort__opt.is-active {
	color: var(--cp-brand-dark);
	font-weight: 750;
}

/* Lista de orden (hoja móvil) */
.cp-shop-sortlist {
	list-style: none;
}

.cp-shop-sortlist__opt {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 8px 12px;
	border-radius: var(--cp-r-card);
	color: var(--cp-text);
	font-weight: 600;
}

.cp-shop-sortlist__opt.is-active {
	background: var(--cp-brand-soft);
	color: var(--cp-brand-dark);
	font-weight: 750;
}

.cp-shop-sortlist__radio {
	flex: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--cp-line-strong);
	border-radius: 50%;
	background: var(--cp-surface);
}

.cp-shop-sortlist__opt.is-active .cp-shop-sortlist__radio {
	border: 6px solid var(--cp-brand);
}

.cp-shop-sheet--sort .cp-shop-price-lock {
	margin: 8px 4px 0;
}

.cp-shop-seg {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
	margin: 0 4px;
	padding: 4px;
	border-radius: var(--cp-r-pill);
	background: var(--cp-surface-alt);
}

.cp-shop-seg__opt {
	display: grid;
	place-items: center;
	height: 40px;
	border-radius: var(--cp-r-pill);
	color: var(--cp-text);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.cp-shop-seg__opt.is-active {
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
	color: var(--cp-ink);
}

/* Filtros activos */
.cp-shop-active {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 calc(-1 * var(--cp-gutter)) 10px;
	padding: 0 var(--cp-gutter);
	overflow-x: auto;
	scrollbar-width: none;
}

.cp-shop-active::-webkit-scrollbar {
	display: none;
}

.cp-shop-active__label {
	flex: none;
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
	font-weight: 700;
}

.cp-shop-chips {
	display: flex;
	gap: 6px;
	list-style: none;
}

.cp-shop-chips > li {
	flex: none;
}

.cp-shop-chip {
	gap: 6px;
	height: 34px;
	padding: 0 10px 0 12px;
}

.cp-shop-chip .cp-icon {
	opacity: 0.7;
}

.cp-shop-chip:hover .cp-icon {
	opacity: 1;
}

.cp-shop-active__clear {
	flex: none;
	padding: 6px 4px;
	color: var(--cp-brand-dark);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
	white-space: nowrap;
}

.cp-shop-chips--sheet {
	flex-wrap: wrap;
	padding: 12px 16px 4px;
}

.cp-shop-chips--center {
	flex-wrap: wrap;
	justify-content: center;
	margin: 6px 0 10px;
}

@media (min-width: 1024px) {
	.cp-shop-active {
		flex-wrap: wrap;
		margin: 0 0 12px;
		padding: 0;
		overflow: visible;
	}
	.cp-shop-active .cp-shop-chips {
		flex-wrap: wrap;
	}
}

/* Franja para invitados */
.cp-shop-guest {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid rgba(33, 160, 74, 0.16);
	border-radius: var(--cp-r-card);
	background: linear-gradient(90deg, var(--cp-brand-soft), #f6fcf8);
}

.cp-shop-guest__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--cp-surface);
	color: var(--cp-brand);
	box-shadow: var(--cp-shadow-card);
}

.cp-shop-guest__text {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: var(--cp-fs-sm);
	line-height: 1.35;
}

.cp-shop-guest__text strong {
	display: block;
	color: var(--cp-ink);
	font-weight: 750;
}

.cp-shop-guest__text span {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
}

.cp-shop-guest__actions {
	display: flex;
	gap: 8px;
}

.cp-shop-guest__join {
	border: 1px solid rgba(33, 160, 74, 0.28);
	color: var(--cp-brand-dark);
}

@media (max-width: 599px) {
	.cp-shop-guest {
		padding: 10px;
	}
	.cp-shop-guest__text {
		flex-basis: calc(100% - 48px);
	}
	.cp-shop-guest__text span {
		display: none;
	}
	.cp-shop-guest__actions {
		width: 100%;
	}
	.cp-shop-guest__actions .cp-btn {
		flex: 1;
		min-height: 40px;
	}
}

/* ─────────────────────────── Rejilla ─────────────────────────── */

.cp-shop-grid .cp-grid--products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 600px) {
	.cp-shop-grid .cp-grid--products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (min-width: 900px) {
	.cp-shop-grid .cp-grid--products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.cp-shop-grid .cp-grid--products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.cp-shop-layout--full .cp-shop-grid .cp-grid--products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.cp-shop-grid .cp-grid--products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.cp-shop-layout--full .cp-shop-grid .cp-grid--products {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 1400px) {
	.cp-shop-grid .cp-grid--products {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
	.cp-shop-layout--full .cp-shop-grid .cp-grid--products {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

/* Vista de lista compacta (mayoristas): la misma tarjeta, en fila */
.cp-shop-grid.is-list .cp-grid--products {
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
}

.cp-shop-grid.is-list .cp-card-product {
	flex-direction: row;
	align-items: center;
	gap: 12px;
	padding: 8px 12px 8px 8px;
}

.cp-shop-grid.is-list .cp-card-product:hover {
	transform: none;
}

.cp-shop-grid.is-list .cp-card-product__media {
	flex: none;
	width: 76px;
	border-radius: var(--cp-r-img);
}

.cp-shop-grid.is-list .cp-card-product__badges {
	top: 3px;
	left: 3px;
	transform: scale(0.82);
	transform-origin: top left;
}

.cp-shop-grid.is-list .cp-card-product__body {
	flex: 1;
	min-width: 0;
	padding: 0;
	gap: 3px;
}

.cp-shop-grid.is-list .cp-card-product__title {
	min-height: 0;
}

.cp-shop-grid.is-list .cp-card-product__price .cp-price {
	font-size: 1.0625rem;
}

@media (min-width: 768px) {
	.cp-shop-grid.is-list .cp-card-product__media {
		width: 88px;
	}
	.cp-shop-grid.is-list .cp-card-product__body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
		grid-template-areas:
			"brand price"
			"title price"
			"meta price";
		align-items: center;
		column-gap: 24px;
	}
	.cp-shop-grid.is-list .cp-card-product__brand {
		grid-area: brand;
		justify-self: start;
	}
	.cp-shop-grid.is-list .cp-card-product__title {
		grid-area: title;
		-webkit-line-clamp: 1;
	}
	.cp-shop-grid.is-list .cp-card-product__meta {
		grid-area: meta;
	}
	.cp-shop-grid.is-list .cp-card-product__price {
		grid-area: price;
		justify-self: end;
		text-align: right;
	}
}

/* ─────────────────────────── Paginación y «Cargar más» ─────────────────────────── */

.cp-shop-pagination {
	margin-top: 24px;
	text-align: center;
}

.cp-shop-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.cp-shop-more__status {
	margin: 0;
	color: var(--cp-muted);
	font-size: var(--cp-fs-sm);
	font-variant-numeric: tabular-nums;
}

.cp-shop-more__status strong {
	color: var(--cp-ink);
}

.cp-shop-more__bar {
	width: min(260px, 70%);
	height: 4px;
	border: 0;
	border-radius: 4px;
	background: var(--cp-line);
	color: var(--cp-brand);
	overflow: hidden;
	-webkit-appearance: none;
	appearance: none;
}

.cp-shop-more__bar::-webkit-progress-bar {
	border-radius: 4px;
	background: var(--cp-line);
}

.cp-shop-more__bar::-webkit-progress-value {
	border-radius: 4px;
	background: var(--cp-brand);
}

.cp-shop-more__bar::-moz-progress-bar {
	border-radius: 4px;
	background: var(--cp-brand);
}

.cp-shop-more__btn {
	min-width: min(280px, 100%);
	margin-top: 4px;
	background: var(--cp-surface);
}

.cp-shop-more__btn.is-loading {
	pointer-events: none;
	opacity: 0.75;
}

.cp-shop-more__btn.is-loading .cp-icon {
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: cp-shop-spin 0.7s linear infinite;
}

.cp-shop-more__btn.is-loading .cp-icon path {
	display: none;
}

@keyframes cp-shop-spin {
	to {
		transform: rotate(360deg);
	}
}

.cp-shop-pagination ul.page-numbers {
	margin-top: 18px;
}

.cp-shop-pagination .page-numbers .cp-icon {
	width: 18px;
	height: 18px;
}

.cp-shop-pagination a.page-numbers:hover {
	border-color: var(--cp-ink);
	color: var(--cp-ink);
}

.cp-shop-pagination .dots {
	border-color: transparent;
	background: transparent;
}

/* ─────────────────────────── «¿No lo encuentras?» ─────────────────────────── */

.cp-shop-cta {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-top: 28px;
	padding: 18px;
	border-radius: var(--cp-r-lg);
	background: var(--cp-header-dark);
	color: rgba(255, 255, 255, 0.8);
	overflow: hidden;
	isolation: isolate;
}

.cp-shop-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(420px 200px at 100% 0%, rgba(47, 179, 90, 0.38), transparent 70%);
}

.cp-shop-cta__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #7be29b;
}

.cp-shop-cta__text {
	flex: 1;
	min-width: 220px;
}

.cp-shop-cta__title {
	margin: 0 0 4px;
	color: #fff;
	font-size: var(--cp-fs-xl);
	font-weight: 800;
}

.cp-shop-cta__text p {
	margin: 0;
	font-size: var(--cp-fs-sm);
}

.cp-shop-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cp-shop-cta .cp-btn--secondary {
	border-color: rgba(255, 255, 255, 0.4);
	background: transparent;
	color: #fff;
}

.cp-shop-cta .cp-btn--secondary:hover {
	border-color: #fff;
	background: #fff;
	color: var(--cp-ink);
}

@media (max-width: 599px) {
	.cp-shop-cta__actions {
		width: 100%;
	}
	.cp-shop-cta__actions .cp-btn {
		flex: 1 1 100%;
	}
}

@media (min-width: 768px) {
	.cp-shop-cta {
		padding: 22px 24px;
	}
}

/* ─────────────────────────── Sin resultados ─────────────────────────── */

.cp-shop-empty {
	display: grid;
	gap: 16px;
}

.cp-shop-empty__main {
	padding: 40px 20px;
	border-radius: var(--cp-r-lg);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
}

.cp-shop-empty .cp-shop-cta {
	margin-top: 0;
}

.cp-shop-popular {
	padding: 18px;
	border-radius: var(--cp-r-lg);
	background: var(--cp-surface);
	box-shadow: var(--cp-shadow-card);
}

.cp-shop-popular__title {
	margin: 0 0 12px;
	font-size: var(--cp-fs-lg);
	font-weight: 800;
}

.cp-shop-popular__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	list-style: none;
}

.cp-shop-popular__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	column-gap: 10px;
	align-items: center;
	padding: 10px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-r-card);
	transition: border-color var(--cp-fast), box-shadow var(--cp-fast);
}

.cp-shop-popular__item:hover {
	border-color: var(--cp-brand);
	box-shadow: var(--cp-shadow-card);
}

.cp-shop-popular__pic {
	grid-row: 1 / 3;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--cp-surface-alt);
	color: var(--cp-brand-dark);
	font-weight: 800;
	overflow: hidden;
}

.cp-shop-popular__pic.is-empty {
	background: var(--cp-brand-soft);
}

.cp-shop-popular__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cp-shop-popular__name {
	color: var(--cp-ink);
	font-size: var(--cp-fs-sm);
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: break-word;
}

.cp-shop-popular__count {
	color: var(--cp-muted);
	font-size: var(--cp-fs-xs);
}

@media (min-width: 768px) {
	.cp-shop-popular__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ─────────────────────────── Cargando ─────────────────────────── */

.cp-shop.is-loading .cp-shop-results,
.cp-shop.is-loading .cp-shop-sheet__body {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity var(--cp-fast);
}

.cp-shop-progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1100;
	width: 100%;
	height: 3px;
	background: var(--cp-brand-grad);
	transform: scaleX(0);
	transform-origin: left;
	opacity: 0;
	pointer-events: none;
}

.cp-shop-progress.is-on {
	opacity: 1;
	animation: cp-shop-load 1.4s var(--cp-ease) infinite;
}

@keyframes cp-shop-load {
	0% {
		transform: scaleX(0);
	}
	60% {
		transform: scaleX(0.75);
	}
	100% {
		transform: scaleX(0.95);
	}
}

/* Selector de orden de WooCommerce (otros listados) */
.cp-shop-orderform {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cp-shop-orderform select {
	width: auto;
	min-height: 40px;
}

/* ==========================================================================
   Móvil estilo app (< 768 px)
   Como el listado de la app: la cabecera de la categoría y la barra «Filtrar
   · Ordenar» forman una banda blanca a todo el ancho; debajo, la rejilla de
   productos con 8 px de margen sobre el fondo gris. Sin tarjetas grandes con
   sombra alrededor de la cabecera ni de la barra. Filtros y orden siguen en
   hojas inferiores. La franja de repuestos (repuestos-promo.css) no cambia.
   ========================================================================== */

@media (max-width: 767px) {
	.cp-shop {
		padding-top: 0;
	}

	.cp-shop .cp-breadcrumbs {
		padding: 8px 0 6px;
	}

	/* Cabecera: banda blanca. */
	.cp-shop-head {
		margin: 0 calc(-1 * var(--cp-gutter));
		padding: 14px var(--cp-gutter) 12px;
		border-radius: 0;
		box-shadow: none;
	}

	.cp-shop-head::before {
		opacity: 0.6;
	}

	.cp-shop-head__row {
		gap: 12px;
	}

	.cp-shop-head__media {
		width: 44px;
		height: 44px;
	}

	.cp-shop-head__title {
		font-size: 1.25rem;
		line-height: 1.2;
	}

	.cp-shop-head__meta {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0 8px;
		margin-top: 2px;
		font-size: var(--cp-fs-xs);
	}

	.cp-shop-head__meta > span + span::before {
		content: "·";
		margin-right: 8px;
		color: var(--cp-faint);
	}

	.cp-shop-pills {
		margin-top: 12px;
	}

	.cp-shop-head--brand .cp-shop-brand {
		border-radius: 0;
	}

	/* Barra «Filtrar · Ordenar»: pegada a la cabecera, dentro de la misma banda. */
	.cp-shop-toolbar {
		margin: 0 calc(-1 * var(--cp-gutter));
		padding: 8px var(--cp-gutter) 10px;
		border-top: 1px solid var(--cp-line);
		background: var(--cp-surface);
	}

	.cp-shop-tbtn {
		min-height: 40px;
		border-color: transparent;
		background: var(--cp-surface-alt);
		box-shadow: none;
	}

	.cp-shop-view {
		border-color: transparent;
		background: var(--cp-surface-alt);
	}

	.cp-shop-view__btn {
		width: 34px;
		height: 34px;
	}

	/* Filtros activos e invitados: también bandas. */
	.cp-shop-active {
		margin-bottom: 0;
		padding-top: 2px;
		padding-bottom: 10px;
		background: var(--cp-surface);
	}

	.cp-shop-guest {
		margin: 0 calc(-1 * var(--cp-gutter));
		padding: 10px var(--cp-gutter);
		border: 0;
		border-top: 1px solid rgba(33, 160, 74, 0.14);
		border-radius: 0;
	}

	.cp-shop-guest__icon {
		width: 32px;
		height: 32px;
		box-shadow: none;
	}

	/* Rejilla: 8 px entre tarjetas y a los lados, como el feed de la app. */
	.cp-shop-grid {
		margin: 8px -8px 0;
	}

	.cp-shop-grid .cp-grid--products {
		gap: 8px;
	}

	.cp-shop-grid.is-list .cp-grid--products {
		gap: 6px;
	}

	.cp-shop-pagination {
		margin-top: 18px;
	}

	.cp-shop-cta {
		margin: 20px calc(-1 * var(--cp-gutter)) 0;
		border-radius: 0;
	}
}
