/**
 * El Sueño Animado — Catálogo (tienda, categorías, subcategorías)
 * Solo aplica con body.esa-shop-redesign
 */

body.esa-shop-redesign {
	--esa-shop-purple: #7470e5;
	--esa-shop-purple-dark: #5a56c4;
	--esa-shop-lavender: #f4f0ff;
	--esa-shop-lavender-mid: #e8e5f8;
	--esa-shop-white: #ffffff;
	--esa-shop-text: #2d2a45;
	--esa-shop-muted: #575372;
	--esa-shop-border: #e6e3f2;
	--esa-shop-accent: #f0a04b;
	--esa-shop-radius: 12px;
	--esa-shop-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	--esa-shop-sidebar: 240px;
	--esa-shop-max: 1520px;
	--esa-radius-sm: 10px;
	--esa-purple: var(--esa-shop-purple);
	--esa-purple-dark: var(--esa-shop-purple-dark);
	--esa-lavender: var(--esa-shop-lavender);
	--esa-white: var(--esa-shop-white);
	--esa-text: var(--esa-shop-text);
	--esa-muted: var(--esa-shop-muted);
	--esa-accent: var(--esa-shop-accent);
	--esa-font: var(--esa-shop-font);
}

/* -------------------------------------------------------------------------- */
/* Apilamiento vs megamenú                                                     */
/* Sticky/transform del catálogo crean contextos que pueden pintar por encima  */
/* del panel del megamenú (anclado al header con z-index 80).                  */
/* -------------------------------------------------------------------------- */

body.esa-shop-redesign .esa-shop-page {
	position: relative;
	z-index: 1;
	padding-bottom: 3.5rem;
	font-family: var(--esa-shop-font);
	color: var(--esa-shop-text);
	background: var(--esa-shop-white);
}

body.esa-shop-redesign.esa-header-redesign header {
	z-index: 100;
}

/* Con menú abierto el header debe superar el overlay (.open-shop-mobile-menu-wrapper ~1050). */
@media screen and (max-width: 1024px) {
	body.esa-shop-redesign.esa-header-redesign.mobile-menu-active header {
		z-index: 1100;
	}

	/*
	 * El aside de filtros es position:fixed pero vive dentro de .esa-shop-page
	 * (stacking context z:1). Sin elevar la página, el header (z:100) tapa panel y overlay.
	 */
	body.esa-shop-filters-open .esa-shop-page {
		z-index: 1200;
	}
}

/* El padre fija .container a ~1220px; ampliamos solo en catálogo. */
body.esa-shop-redesign .esa-shop-page .content-wrap > .container,
body.esa-shop-redesign .page-content.esa-shop-page .container {
	max-width: var(--esa-shop-max) !important;
	width: 100%;
	padding-left: clamp(1rem, 2.2vw, 1.75rem);
	padding-right: clamp(1rem, 2.2vw, 1.75rem);
}

/* -------------------------------------------------------------------------- */
/* Encabezado compacto                                                         */
/* -------------------------------------------------------------------------- */

body.esa-shop-redesign .esa-shop-header {
	margin: 0 0 1rem;
	padding: 0.35rem 0 0.85rem;
	background: transparent;
	border: 0;
	border-radius: 0;
	border-bottom: 1px solid var(--esa-shop-border);
}

body.esa-shop-redesign .esa-shop-header__inner {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-width: none;
}

body.esa-shop-redesign .esa-shop-header__crumbs {
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--esa-shop-muted);
}

body.esa-shop-redesign .esa-shop-header__crumbs .woocommerce-breadcrumb,
body.esa-shop-redesign .esa-shop-header__crumbs .rank-math-breadcrumb,
body.esa-shop-redesign .esa-shop-header__crumbs nav,
body.esa-shop-redesign .esa-shop-header__crumbs ol,
body.esa-shop-redesign .esa-shop-header__crumbs ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.35rem;
	background: transparent;
	border: 0;
	box-shadow: none;
}

body.esa-shop-redesign .esa-shop-header__crumbs a {
	color: var(--esa-shop-muted);
	text-decoration: none;
}

body.esa-shop-redesign .esa-shop-header__crumbs a:hover,
body.esa-shop-redesign .esa-shop-header__crumbs a:focus-visible {
	color: var(--esa-shop-purple-dark);
}

body.esa-shop-redesign .esa-shop-header__heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem 0.75rem;
}

body.esa-shop-redesign .esa-shop-header__title {
	margin: 0;
	font-family: var(--esa-shop-font);
	font-size: clamp(1.25rem, 1.6vw, 1.55rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--esa-shop-text);
}

body.esa-shop-redesign .esa-shop-header__count {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--esa-shop-muted);
}

body.esa-shop-redesign .esa-shop-header__desc {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--esa-shop-muted);
	font-weight: 450;
	max-width: 48rem;
}

body.esa-shop-redesign .esa-shop-header__desc p {
	margin: 0;
}

body.esa-shop-redesign .esa-shop .page-head,
body.esa-shop-redesign .esa-shop .woocommerce-products-header__title,
body.esa-shop-redesign .esa-shop .woocommerce-breadcrumb:not(.esa-shop-header__crumbs *) {
	display: none;
}

body.esa-shop-redesign .esa-shop-subcats {
	display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Layout filtros + productos                                                  */
/* -------------------------------------------------------------------------- */

body.esa-shop-redesign .esa-shop-layout {
	display: grid;
	grid-template-columns: var(--esa-shop-sidebar) minmax(0, 1fr);
	gap: 1.5rem 1.75rem;
	align-items: start;
}

body.esa-shop-redesign .esa-shop-main {
	width: 100%;
	min-width: 0;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.esa-shop-redesign .esa-shop-main .primary-content-wrap {
	padding: 0;
	margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Filtros                                                                     */
/* -------------------------------------------------------------------------- */

body.esa-shop-redesign .esa-shop-filters {
	position: sticky;
	top: 1rem;
	z-index: 2;
	max-height: calc(100vh - 2rem);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0.75rem 0.85rem 0.9rem;
	background: var(--esa-shop-white);
	border: 1px solid var(--esa-shop-border);
	border-radius: var(--esa-shop-radius);
	align-self: start;
	scrollbar-width: thin;
	scrollbar-color: var(--esa-shop-lavender-mid) transparent;
}

body.esa-shop-redesign .esa-shop-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--esa-shop-border);
}

body.esa-shop-redesign .esa-shop-filters__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--esa-shop-text);
}

body.esa-shop-redesign .esa-shop-filters__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--esa-shop-lavender);
	color: var(--esa-shop-text);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

body.esa-shop-redesign .esa-shop-filters__chips {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0 0 0.65rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--esa-shop-border);
}

body.esa-shop-redesign .esa-shop-filters__chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.esa-shop-redesign .esa-shop-filters__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	max-width: 100%;
	min-height: 1.85rem;
	padding: 0.3rem 0.4rem 0.3rem 0.65rem;
	border: 1px solid var(--esa-shop-border);
	border-radius: 999px;
	background: var(--esa-shop-lavender);
	color: var(--esa-shop-text);
	font-size: 0.74rem;
	font-weight: 550;
	line-height: 1;
	text-decoration: none;
	vertical-align: middle;
}

body.esa-shop-redesign .esa-shop-filters__chip:hover,
body.esa-shop-redesign .esa-shop-filters__chip:focus-visible {
	border-color: rgba(116, 112, 229, 0.45);
	color: var(--esa-shop-purple-dark);
	outline: none;
}

body.esa-shop-redesign .esa-shop-filters__chip-label {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	max-width: 12rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.2;
}

/* X geométrica (no carácter tipográfico ×): dos trazos centrados en la caja. */
body.esa-shop-redesign .esa-shop-filters__chip-remove {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	border-radius: 50%;
	color: var(--esa-shop-muted);
}

body.esa-shop-redesign .esa-shop-filters__chip-remove::before,
body.esa-shop-redesign .esa-shop-filters__chip-remove::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.55rem;
	height: 1.5px;
	margin: 0;
	border-radius: 1px;
	background: currentColor;
}

body.esa-shop-redesign .esa-shop-filters__chip-remove::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

body.esa-shop-redesign .esa-shop-filters__chip-remove::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

body.esa-shop-redesign .esa-shop-filters__chip:hover .esa-shop-filters__chip-remove {
	color: var(--esa-shop-purple-dark);
}

body.esa-shop-redesign .esa-shop-filters__clear {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	min-height: 1.85rem;
	margin-top: 0.15rem;
	padding: 0;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--esa-shop-purple);
	text-decoration: none;
}

body.esa-shop-redesign .esa-shop-filters__clear:hover,
body.esa-shop-redesign .esa-shop-filters__clear:focus-visible {
	color: var(--esa-shop-purple-dark);
	text-decoration: underline;
}

body.esa-shop-redesign .esa-shop-filter + .esa-shop-filter {
	margin-top: 0.15rem;
	padding-top: 0.15rem;
	border-top: 1px solid var(--esa-shop-border);
}

body.esa-shop-redesign .esa-shop-filter__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	width: 100%;
	margin: 0;
	padding: 0.7rem 0.1rem;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

body.esa-shop-redesign .esa-shop-filter__title {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--esa-shop-text);
}

body.esa-shop-redesign .esa-shop-filter__chevron {
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--esa-shop-muted);
	border-bottom: 1.5px solid var(--esa-shop-muted);
	transform: rotate(45deg);
	transition: transform 0.18s ease;
	margin-top: -3px;
}

body.esa-shop-redesign .esa-shop-filter--accordion.is-open .esa-shop-filter__chevron {
	transform: rotate(-135deg);
	margin-top: 3px;
}

body.esa-shop-redesign .esa-shop-filter__panel {
	padding: 0 0 0.65rem;
}

body.esa-shop-redesign .esa-shop-filter__panel[hidden] {
	display: none;
}

body.esa-shop-redesign .esa-shop-filter__list,
body.esa-shop-redesign .esa-shop-filter__widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	max-height: 220px;
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--esa-shop-lavender-mid) transparent;
}

body.esa-shop-redesign .esa-shop-filter__list::-webkit-scrollbar,
body.esa-shop-redesign .esa-shop-filter__widget ul::-webkit-scrollbar {
	width: 5px;
}

body.esa-shop-redesign .esa-shop-filter__list::-webkit-scrollbar-thumb,
body.esa-shop-redesign .esa-shop-filter__widget ul::-webkit-scrollbar-thumb {
	background: var(--esa-shop-lavender-mid);
	border-radius: 999px;
}

body.esa-shop-redesign .esa-shop-filter__widget .widget-title,
body.esa-shop-redesign .esa-shop-filter__widget > h2 {
	display: none;
}

body.esa-shop-redesign .esa-shop-filter__widget li,
body.esa-shop-redesign .esa-shop-attr-item {
	display: block;
	margin: 0;
	min-width: 0;
}

body.esa-shop-redesign .esa-shop-filter__link,
body.esa-shop-redesign .esa-shop-attr-option {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.4rem 0.25rem;
	border-radius: 6px;
	color: var(--esa-shop-text);
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 500;
	line-height: 1.35;
}

/* Anular la X roja del icon-font de WooCommerce en .chosen a::before */
body.esa-shop-redesign .esa-shop-filter__widget a::before,
body.esa-shop-redesign .esa-shop-filter__widget .chosen a::before,
body.esa-shop-redesign .esa-shop-filter__widget .woocommerce-widget-layered-nav-list__item--chosen a::before,
body.esa-shop-redesign .woocommerce-widget-layered-nav-list .woocommerce-widget-layered-nav-list__item--chosen a::before {
	content: none !important;
	display: none !important;
	font-family: inherit !important;
}

body.esa-shop-redesign .esa-shop-filter__check {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 15px;
	height: 15px;
	margin-top: 0.12rem;
	border: 1.5px solid rgba(116, 112, 229, 0.55);
	border-radius: 3px;
	background: var(--esa-shop-white);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 9px 9px;
	transition: background-color 0.15s ease, border-color 0.15s ease, background-image 0.15s ease;
}

body.esa-shop-redesign .esa-shop-filter__link.is-active .esa-shop-filter__check,
body.esa-shop-redesign .esa-shop-attr-item.is-chosen .esa-shop-filter__check,
body.esa-shop-redesign .esa-shop-attr-item.chosen .esa-shop-filter__check {
	border-color: var(--esa-shop-purple);
	background-color: var(--esa-shop-purple);
	/* Check blanco (no la X del icon-font de WooCommerce). */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpolyline fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' points='3.2,8.4 6.6,11.6 12.8,4.4'/%3E%3C/svg%3E");
}

body.esa-shop-redesign .esa-shop-filter__label {
	flex: 1 1 auto;
	min-width: 0;
	word-break: break-word;
	text-align: left;
}

body.esa-shop-redesign .esa-shop-filter__link:hover,
body.esa-shop-redesign .esa-shop-filter__link:focus-visible,
body.esa-shop-redesign .esa-shop-attr-option:hover,
body.esa-shop-redesign .esa-shop-attr-option:focus-visible {
	background: var(--esa-shop-lavender);
	outline: none;
}

body.esa-shop-redesign .esa-shop-filter__count,
body.esa-shop-redesign .esa-shop-attr-option .count,
body.esa-shop-redesign .esa-shop-filter__widget .count {
	flex: 0 0 auto;
	display: inline-block;
	margin: 0.12rem 0 0 auto;
	padding: 0;
	font-size: 0.72rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--esa-shop-muted);
	white-space: nowrap;
	text-align: right;
}

body.esa-shop-redesign .esa-shop-attr-item--disabled .esa-shop-attr-option {
	opacity: 0.48;
	cursor: not-allowed;
}

body.esa-shop-redesign .esa-shop-attr-list {
	gap: 0.05rem;
}

/* Precio — widget WC real, sin solapes del tema padre */
body.esa-shop-redesign .esa-shop-filter--price .price_slider_wrapper {
	padding: 0.15rem 0.15rem 0;
}

body.esa-shop-redesign .esa-shop-filter--price .ui-slider {
	position: relative;
	background: var(--esa-shop-lavender-mid) !important;
	border: 0 !important;
	height: 4px !important;
	border-radius: 999px;
	margin: 1.05rem 0.55rem 0.85rem !important;
}

body.esa-shop-redesign .esa-shop-filter--price .ui-slider-range {
	background: var(--esa-shop-purple) !important;
	border-radius: 999px;
}

body.esa-shop-redesign .esa-shop-filter--price .ui-slider-handle {
	width: 15px !important;
	height: 15px !important;
	top: -6px !important;
	margin-left: -7px !important;
	border: 2px solid var(--esa-shop-purple) !important;
	border-radius: 50% !important;
	background: var(--esa-shop-white) !important;
	cursor: pointer;
	box-shadow: none !important;
}

body.esa-shop-redesign .esa-shop-filter--price .price_slider_amount {
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin: 0.85rem 0 0 !important;
	padding: 0 !important;
	float: none !important;
	line-height: 1.4;
	position: static !important;
	min-height: 0 !important;
	height: auto !important;
	text-align: left !important;
	clear: both;
}

body.esa-shop-redesign .esa-shop-filter--price .price_label {
	order: 0;
	float: none !important;
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0.15rem 0 0 !important;
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--esa-shop-muted);
	line-height: 1.45;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

body.esa-shop-redesign .esa-shop-filter--price .price_label .from,
body.esa-shop-redesign .esa-shop-filter--price .price_label .to {
	font-weight: 600;
	color: var(--esa-shop-text);
	white-space: nowrap;
}

body.esa-shop-redesign .esa-shop-filter--price .button {
	order: 1;
	float: none !important;
	position: static !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0.38rem 0.85rem !important;
	border: 1px solid var(--esa-shop-border) !important;
	border-radius: 7px;
	background: var(--esa-shop-white) !important;
	color: var(--esa-shop-text) !important;
	font-family: var(--esa-shop-font);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	clear: both;
	box-shadow: none !important;
}

body.esa-shop-redesign .esa-shop-filter--price .button:hover,
body.esa-shop-redesign .esa-shop-filter--price .button:focus-visible {
	border-color: rgba(116, 112, 229, 0.45) !important;
	background: var(--esa-shop-lavender) !important;
	color: var(--esa-shop-purple-dark) !important;
	outline: none;
}

body.esa-shop-redesign .esa-shop-filter--price input[type="text"],
body.esa-shop-redesign .esa-shop-filter--price input[type="number"] {
	display: none !important;
}

body.esa-shop-redesign .esa-shop-filters-backdrop {
	display: none;
}

/* -------------------------------------------------------------------------- */
/* Toolbar                                                                     */
/* -------------------------------------------------------------------------- */

body.esa-shop-redesign .esa-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	margin: 0 0 1rem;
	padding: 0.55rem 0.15rem;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--esa-shop-border);
	border-radius: 0;
}

body.esa-shop-redesign .esa-shop-filters-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--esa-shop-border);
	border-radius: 8px;
	background: var(--esa-shop-white);
	color: var(--esa-shop-text);
	font-family: var(--esa-shop-font);
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}

body.esa-shop-redesign .esa-shop-filters-toggle:hover,
body.esa-shop-redesign .esa-shop-filters-toggle:focus-visible {
	border-color: rgba(116, 112, 229, 0.45);
	background: var(--esa-shop-lavender);
	outline: none;
}

body.esa-shop-redesign .esa-shop-toolbar__count .woocommerce-result-count {
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--esa-shop-muted);
	float: none;
}

body.esa-shop-redesign .esa-shop-toolbar__order .woocommerce-ordering {
	margin: 0;
	float: none;
}

body.esa-shop-redesign .esa-shop-toolbar__order .orderby {
	min-width: 190px;
	max-width: 100%;
	padding: 0.4rem 2rem 0.4rem 0.7rem;
	border: 1px solid var(--esa-shop-border);
	border-radius: 8px;
	background: var(--esa-shop-white);
	color: var(--esa-shop-text);
	font-family: var(--esa-shop-font);
	font-size: 0.82rem;
	font-weight: 500;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6785' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	cursor: pointer;
}

body.esa-shop-redesign .esa-shop-toolbar__order .orderby:focus-visible {
	outline: 2px solid var(--esa-shop-purple);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Cuadrícula de productos — 4 columnas en escritorio grande                   */
/* -------------------------------------------------------------------------- */

body.esa-shop-redesign .esa-shop-products ul.products,
body.esa-shop-redesign .esa-shop-main ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem 0.9rem;
	margin: 0 0 1.75rem !important;
	padding: 0 !important;
	list-style: none;
	width: 100% !important;
}

body.esa-shop-redesign .esa-shop-main ul.products::before,
body.esa-shop-redesign .esa-shop-main ul.products::after {
	display: none !important;
	content: none !important;
}

body.esa-shop-redesign .esa-shop-main ul.products li.product {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0.75rem !important;
	float: none !important;
	clear: none !important;
	background: var(--esa-shop-white);
	border: 1px solid var(--esa-shop-border);
	border-radius: var(--esa-shop-radius);
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.esa-shop-redesign .esa-shop-main ul.products li.product:hover {
	border-color: rgba(116, 112, 229, 0.35);
	box-shadow: 0 6px 18px rgba(45, 42, 69, 0.05);
}

body.esa-shop-redesign .esa-shop-main ul.products li.product .esa-product-card,
body.esa-shop-redesign .esa-shop-main ul.products li.product .esa-shop-card {
	height: 100%;
}

body.esa-shop-redesign .esa-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	text-align: left;
}

body.esa-shop-redesign .esa-product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
	background: #fbfaff;
	text-decoration: none;
	flex: 0 0 auto;
}

body.esa-shop-redesign .esa-product-card__img,
body.esa-shop-redesign .esa-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	padding: 0.4rem;
	transition: transform 0.35s ease;
}

body.esa-shop-redesign .esa-product-card:hover .esa-product-card__img,
body.esa-shop-redesign .esa-product-card:hover .esa-product-card__media img {
	transform: scale(1.03);
}

body.esa-shop-redesign .esa-product-card__badge {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1;
	padding: 0.18rem 0.4rem;
	border-radius: 5px;
	background: var(--esa-shop-accent);
	color: #2f220f;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.03em;
}

body.esa-shop-redesign .esa-shop-card__stock {
	position: absolute;
	right: 0.5rem;
	bottom: 0.5rem;
	z-index: 1;
	padding: 0.18rem 0.4rem;
	border-radius: 5px;
	background: rgba(45, 42, 69, 0.78);
	color: #fff;
	font-size: 0.66rem;
	font-weight: 600;
}

body.esa-shop-redesign .esa-product-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.65rem 0.05rem 0.05rem;
	flex: 1 1 auto;
	min-height: 0;
}

/*
 * Open Shop aplica a .thunk-woo-product-list .woocommerce-loop-product__title
 * max-height:24px y line-clamp:1. Nuestra tarjeta reutiliza esa clase.
 */
body.esa-shop-redesign .esa-product-card__title,
body.esa-shop-redesign .thunk-woo-product-list .esa-product-card__title.woocommerce-loop-product__title,
body.esa-shop-redesign li.product .esa-product-card__title.woocommerce-loop-product__title {
	margin: 0;
	min-height: 0;
	max-height: none;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

body.esa-shop-redesign .esa-product-card__title a {
	color: var(--esa-shop-text);
	text-decoration: none;
}

body.esa-shop-redesign .esa-product-card__title a:hover,
body.esa-shop-redesign .esa-product-card__title a:focus-visible {
	color: var(--esa-shop-purple-dark);
	outline: none;
}

body.esa-shop-redesign .esa-product-card__meta {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.55rem;
	width: 100%;
}

body.esa-shop-redesign .esa-product-card__price {
	min-height: 1.45em;
	font-size: 0.98rem;
	font-weight: 700;
	color: var(--esa-shop-text);
	letter-spacing: -0.02em;
	line-height: 1.35;
}

body.esa-shop-redesign .esa-product-card__price del {
	margin-right: 0.3rem;
	font-size: 0.8em;
	font-weight: 500;
	color: var(--esa-shop-muted);
}

body.esa-shop-redesign .esa-product-card__price ins {
	text-decoration: none;
	color: var(--esa-shop-purple-dark);
}

body.esa-shop-redesign .esa-product-card__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
}

/*
 * WooCommerce (.woocommerce ul.products li.product .button) fuerza display:inline-block
 * con más especificidad; al ser hijo de un flex container se «blockifica» a block y
 * align-items/justify-content dejan de centrar el texto.
 * .woocommerce vive en body (no es descendiente): body.esa-shop-redesign.woocommerce …
 */
body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions .button,
body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions .add_to_cart_button,
body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions .product_type_simple,
body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions .product_type_variable,
body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 2.5rem;
	height: 2.5rem;
	margin: 0;
	padding: 0 0.85rem;
	border: 1px solid var(--esa-shop-purple);
	border-radius: 8px;
	background: transparent;
	color: var(--esa-shop-purple-dark) !important;
	/* Open Shop Pro fuerza font-weight:400 !important en .product_type_variable */
	font-family: var(--esa-shop-font) !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.8px;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions .button:hover,
body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions a.button:hover,
body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions .button:focus-visible,
body.esa-shop-redesign.woocommerce ul.products li.product .esa-product-card__actions a.button:focus-visible {
	background: var(--esa-shop-purple);
	border-color: var(--esa-shop-purple);
	color: var(--esa-shop-white) !important;
	outline: none;
}

body.esa-shop-redesign .esa-product-card__actions .added_to_cart {
	display: inline-block;
	margin-top: 0.2rem;
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--esa-shop-purple-dark);
}

body.esa-shop-redesign .esa-shop-card--outofstock .esa-product-card__actions .button {
	opacity: 0.7;
}

body.esa-shop-redesign .thunk-product-hover,
body.esa-shop-redesign .thunk-quckview,
body.esa-shop-redesign .thunk-compare,
body.esa-shop-redesign .shop-tooler .thunk-grid-view,
body.esa-shop-redesign .shop-tooler .thunk-list-view {
	display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Paginación                                                                  */
/* -------------------------------------------------------------------------- */

body.esa-shop-redesign .esa-shop-products,
body.esa-shop-redesign .esa-shop-main .woocommerce-pagination {
	clear: both;
}

body.esa-shop-redesign nav.woocommerce-pagination,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination {
	display: block !important;
	width: 100% !important;
	max-width: 100%;
	margin: 1.5rem 0 2rem !important;
	padding: 0.35rem 0 0;
	text-align: center;
	float: none !important;
	clear: both;
	position: relative;
	z-index: auto;
	overflow: visible;
}

body.esa-shop-redesign nav.woocommerce-pagination ul,
body.esa-shop-redesign nav.woocommerce-pagination ul.page-numbers,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination ul,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: center;
	align-items: center;
	gap: 0.35rem;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 auto !important;
	padding: 0 !important;
	list-style: none !important;
	border: 0 !important;
	background: transparent !important;
	float: none !important;
	line-height: normal !important;
	white-space: normal !important;
}

body.esa-shop-redesign nav.woocommerce-pagination ul li,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination ul li {
	display: inline-flex !important;
	float: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

body.esa-shop-redesign nav.woocommerce-pagination a.page-numbers,
body.esa-shop-redesign nav.woocommerce-pagination span.page-numbers,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination a.page-numbers,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination span.page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: auto !important;
	min-width: 38px;
	height: 38px !important;
	min-height: 38px;
	margin: 0 !important;
	padding: 0 0.6rem !important;
	border: 1px solid var(--esa-shop-border) !important;
	border-radius: 9px !important;
	background: var(--esa-shop-white) !important;
	color: var(--esa-shop-text) !important;
	font-family: var(--esa-shop-font);
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1 !important;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.esa-shop-redesign nav.woocommerce-pagination a.page-numbers:hover,
body.esa-shop-redesign nav.woocommerce-pagination a.page-numbers:focus-visible,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination a.page-numbers:hover,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination a.page-numbers:focus-visible {
	border-color: rgba(116, 112, 229, 0.45) !important;
	background: var(--esa-shop-lavender) !important;
	color: var(--esa-shop-purple-dark) !important;
	outline: none;
}

body.esa-shop-redesign nav.woocommerce-pagination span.page-numbers.current,
body.esa-shop-redesign .woocommerce nav.woocommerce-pagination span.page-numbers.current {
	border-color: var(--esa-shop-purple) !important;
	background: var(--esa-shop-purple) !important;
	color: var(--esa-shop-white) !important;
}

body.esa-shop-redesign nav.woocommerce-pagination span.page-numbers.dots {
	border-color: transparent !important;
	background: transparent !important;
	min-width: 1.5rem;
	color: var(--esa-shop-muted) !important;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */

@media screen and (max-width: 1100px) {
	body.esa-shop-redesign .esa-shop-main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 1024px) {
	body.esa-shop-redesign {
		--esa-shop-sidebar: 220px;
	}

	body.esa-shop-redesign .esa-shop-layout {
		grid-template-columns: 1fr;
	}

	body.esa-shop-redesign .esa-shop-filters-toggle {
		display: inline-flex;
	}

	/*
	 * Filtros por encima del overlay de menú (1050) y del header elevado (1100).
	 * Por debajo del modal TAIOWC del plugin.
	 */
	body.esa-shop-redesign .esa-shop-filters {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 1220;
		width: min(320px, 88vw);
		max-width: 100%;
		max-height: none;
		margin: 0;
		padding: 1rem 1rem 1.25rem;
		border-radius: 0;
		border: 0;
		border-right: 1px solid var(--esa-shop-border);
		background: var(--esa-shop-white);
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateX(-105%);
		transition: transform 0.24s ease;
		visibility: hidden;
		pointer-events: none;
		box-shadow: 4px 0 24px rgba(45, 42, 69, 0.12);
	}

	body.admin-bar.esa-shop-redesign .esa-shop-filters {
		top: 46px;
	}

	@media screen and (min-width: 783px) {
		body.admin-bar.esa-shop-redesign .esa-shop-filters {
			top: 32px;
		}
	}

	body.esa-shop-redesign.esa-shop-filters-open .esa-shop-filters,
	body.esa-shop-filters-open .esa-shop-filters {
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
	}

	body.esa-shop-redesign .esa-shop-filters__close {
		display: inline-flex;
	}

	body.esa-shop-redesign .esa-shop-filters-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1210;
		background: rgba(42, 39, 64, 0.4);
	}

	body.esa-shop-redesign .esa-shop-filters-backdrop[hidden] {
		display: none;
	}

	body.esa-shop-filters-open {
		overflow: hidden;
	}

	body.esa-shop-redesign .esa-shop-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem 0.7rem;
	}
}

@media screen and (max-width: 767px) {
	body.esa-shop-redesign .esa-shop-header {
		padding: 0.25rem 0 0.7rem;
		margin-bottom: 0.85rem;
	}

	body.esa-shop-redesign .esa-shop-header__title {
		font-size: 1.2rem;
	}

	body.esa-shop-redesign .esa-shop-toolbar {
		padding: 0.45rem 0;
	}

	body.esa-shop-redesign .esa-shop-toolbar__order {
		width: 100%;
	}

	body.esa-shop-redesign .esa-shop-toolbar__order .orderby {
		width: 100%;
		min-width: 0;
	}

	body.esa-shop-redesign .esa-shop-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.7rem 0.5rem;
	}

	body.esa-shop-redesign .esa-shop-main ul.products li.product {
		padding: 0.5rem !important;
	}

	body.esa-shop-redesign .esa-product-card__title,
	body.esa-shop-redesign .thunk-woo-product-list .esa-product-card__title.woocommerce-loop-product__title,
	body.esa-shop-redesign li.product .esa-product-card__title.woocommerce-loop-product__title {
		font-size: 0.82rem;
		line-height: 1.35;
		min-height: 0;
		max-height: none;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		line-clamp: 3;
		overflow: hidden;
	}

	body.esa-shop-redesign .esa-product-card__body {
		gap: 0.35rem;
	}

	body.esa-shop-redesign .esa-product-card__meta {
		gap: 0.4rem;
	}

	body.esa-shop-redesign .esa-product-card__price {
		font-size: 0.9rem;
	}

	body.esa-shop-redesign .esa-product-card__actions .button,
	body.esa-shop-redesign .esa-product-card__actions a.button {
		width: 100%;
		min-height: 2.5rem;
		height: 2.5rem;
		padding: 0 0.55rem;
		font-size: 0.72rem;
	}

	body.esa-shop-redesign {
		overflow-x: hidden;
	}
}

@media screen and (max-width: 379px) {
	body.esa-shop-redesign .esa-shop-main ul.products {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------- */
/* Accesibilidad                                                               */
/* -------------------------------------------------------------------------- */

body.esa-shop-redesign .esa-shop a:focus-visible,
body.esa-shop-redesign .esa-shop button:focus-visible {
	outline: 2px solid var(--esa-shop-purple);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Páginas curadas (Ofertas / Novedades / Lo más vendido)                      */
/* -------------------------------------------------------------------------- */

body.esa-curated-catalog .esa-shop--curated {
	padding: 0 0 2rem;
}

body.esa-curated-catalog .esa-shop--curated .esa-shop-main {
	width: 100%;
	max-width: none;
}

body.esa-curated-catalog .shop-tooler,
body.esa-curated-catalog .thunk-grid-view,
body.esa-curated-catalog .thunk-list-view,
body.esa-curated-catalog .thunk-list-grid-switcher {
	display: none !important;
}

body.esa-curated-catalog .esa-shop-main ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.esa-curated-catalog .esa-shop-main ul.products::before,
body.esa-curated-catalog .esa-shop-main ul.products::after {
	display: none;
}

body.esa-curated-catalog .esa-shop-main ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	padding: 0.75rem;
	border: 1px solid var(--esa-shop-border);
	border-radius: 12px;
	background: #fff;
}

@media (max-width: 1024px) {
	body.esa-curated-catalog .esa-shop-main ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	body.esa-curated-catalog .esa-shop-main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.7rem 0.5rem;
	}
}

/* Avisos WC en catálogo: CTA con marca (sin tocar .woocommerce-error). */
body.esa-shop-redesign .woocommerce .woocommerce-message .button,
body.esa-shop-redesign .woocommerce .woocommerce-info .button,
body.esa-shop-redesign .woocommerce-message a.button,
body.esa-shop-redesign .woocommerce-info a.button {
	color: var(--esa-shop-purple);
	border-color: var(--esa-shop-purple);
	background-color: transparent;
}

body.esa-shop-redesign .woocommerce .woocommerce-message .button:hover,
body.esa-shop-redesign .woocommerce .woocommerce-info .button:hover,
body.esa-shop-redesign .woocommerce-message a.button:hover,
body.esa-shop-redesign .woocommerce-info a.button:hover {
	color: #fff;
	background-color: var(--esa-shop-purple);
	border-color: var(--esa-shop-purple);
}
