/* ==========================================================================
   WDigitalShop 2 — cabecera, promesas, portada y tarjetas
   Medidas de la imagen aprobada (.impeccable/mocks/decision/canon.png) a 1536 px:
   contenedor de 1210 px, titulares en Estedad, textos en Inter, violeta solo en
   botones y estados activos, superficies planas sin brillos ni degradados.
   Índice: 0 Navegador · 1 Franja demo · 2 Cabecera · 3 Idioma y moneda · 4 Menú · 5 Promesas ·
           6 Campaña · 7 Categorías · 8 Rejillas · 9 Tarjeta · 10 Pasos ·
           11 Menú móvil · 12 Pie · 13 Responsive · 14 Movimiento
   ========================================================================== */

/* 0. Superficies del navegador: selección, cursor, barras y controles en oscuro. */
html:has(body.wds-theme) {
	color-scheme: dark;
	scrollbar-color: #3a3a52 var(--wds-bg);
}

.wds-theme ::selection {
	background: var(--wds-violet);
	color: #fff;
}

.wds-theme input,
.wds-theme textarea {
	caret-color: var(--wds-lavender);
}

/* El contenido de Astra (ficha, carrito, cuenta…) se alinea con la cabecera. */
.wds-theme:not(.wds-is-home):not(.ast-page-builder-template) .site-content > .ast-container {
	max-width: calc(var(--wds-container) + 2 * var(--wds-gutter));
	padding-inline: var(--wds-gutter);
}

/* 1. Franja del modo demostración ------------------------------------------ */
.wds-demo-bar {
	padding: clamp(5px, 0.391vw, 6px) 16px;
	background: var(--wds-bg-elev);
	color: var(--wds-text);
	font-size: clamp(12.5px, 0.911vw, 14px);
	font-weight: 400;
	line-height: clamp(16px, 1.172vw, 18px);
	text-align: center;
}

/* 2. Cabecera -------------------------------------------------------------- */
.wds-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--wds-bg);
	transition: box-shadow 0.3s ease;
}

.wds-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.admin-bar .wds-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .wds-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	.admin-bar .wds-header {
		top: 0;
	}
}

.wds-header__bar {
	display: flex;
	align-items: center;
	gap: clamp(18px, 1.823vw, 28px);
	min-height: clamp(64px, 5.078vw, 78px);
}

.wds-brand {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 10px;
	color: var(--wds-text);
	text-decoration: none;
}

.wds-theme .wds-brand,
.wds-theme .wds-brand:hover {
	color: var(--wds-text);
}

.wds-theme .wds-brand .wds-brand__logo {
	display: block;
	width: auto;
	max-width: none;
	height: clamp(30px, 2.474vw, 38px);
}

.wds-brand__name {
	font-family: var(--wds-font-head);
	font-size: 24px;
	font-weight: 700;
}

.wds-brand--header .wds-brand__tagline {
	display: none;
}

.wds-search {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	max-width: min(567px, 36.914vw);
	height: clamp(38px, 2.93vw, 45px);
	margin: 0;
	border-radius: var(--wds-radius-sm);
	background: var(--wds-surface-2);
}

.wds-search:focus-within {
	box-shadow: 0 0 0 2px var(--wds-violet);
}

.wds-theme .wds-search .wds-search__input {
	flex: 1;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0 4px 0 18px;
	border: 0;
	border-radius: var(--wds-radius-sm);
	background: transparent;
	box-shadow: none;
	color: var(--wds-text);
	font-family: var(--wds-font-body);
	font-size: clamp(15px, 1.107vw, 17px);
	outline: 0;
}

.wds-search__input::placeholder {
	color: #8a8b99;
	opacity: 1;
}

.wds-search__input::-webkit-search-cancel-button {
	display: none;
}

.wds-theme .wds-search__btn,
.wds-theme .wds-search__btn:hover,
.wds-theme .wds-search__btn:focus {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: #a6a7b3;
}

.wds-theme .wds-search__btn:hover {
	color: var(--wds-text);
}

.wds-header__tools {
	display: flex;
	flex: none;
	align-items: center;
	gap: clamp(16px, 1.693vw, 26px);
	margin-left: auto;
}

.wds-theme .wds-header__account {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wds-text);
	font-size: clamp(15px, 1.107vw, 17px);
	text-decoration: none;
	white-space: nowrap;
}

.wds-theme .wds-header__account:hover {
	color: var(--wds-lavender-2);
}

.wds-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--wds-radius-sm);
	background: transparent;
	color: var(--wds-text);
	cursor: pointer;
}

.wds-theme .wds-iconbtn,
.wds-theme .wds-iconbtn:hover,
.wds-theme .wds-iconbtn:focus {
	background: transparent;
	color: var(--wds-text);
}

.wds-theme .wds-iconbtn:hover {
	background: var(--wds-surface);
}

.wds-burger {
	display: none;
}

.wds-theme .wds-cart {
	position: relative;
	color: var(--wds-text);
}

.wds-cart__count {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--wds-violet);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-sizing: border-box;
}

/* 3. Idioma y moneda: "ES | EN" y "US$ | RD$", la opción actual en blanco. */
.wds-switchers--topbar {
	display: flex;
	align-items: center;
	gap: clamp(16px, 1.693vw, 26px);
}

.wds-switch {
	display: inline-flex;
	align-items: center;
}

.wds-switch__opts {
	display: inline-flex;
	align-items: center;
}

.wds-theme .wds-switch__opt {
	padding: 2px 0;
	color: #8f909c;
	font-size: clamp(15px, 1.107vw, 17px);
	line-height: 1.2;
	text-decoration: none;
}

.wds-switch__opt + .wds-switch__opt {
	margin-left: 8px;
	padding-left: 9px;
	border-left: 1px solid #4a4b5c;
}

.wds-theme .wds-switch__opt:hover,
.wds-theme .wds-switch__opt[aria-current="true"] {
	color: var(--wds-text);
}

.wds-theme .wds-switch__opt:focus-visible {
	outline: 2px solid var(--wds-violet);
	outline-offset: 2px;
	border-radius: 2px;
}

/* 4. Menú principal y desplegable de categorías ---------------------------- */
.wds-nav {
	border-bottom: 1px solid #25253c;
}

.wds-nav__list {
	display: flex;
	align-items: center;
	gap: 6px clamp(22px, 2.214vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wds-nav__list > li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
}

.wds-theme .wds-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	min-height: clamp(30px, 2.214vw, 34px);
	padding: 0 0 2px;
	color: #e9e9ee;
	font-size: clamp(15px, 1.107vw, 17px);
	text-decoration: none;
	box-shadow: inset 0 -2px 0 transparent;
}

.wds-theme .wds-nav__list > li > a:hover,
.wds-theme .wds-nav__list > .current-menu-item > a,
.wds-theme .wds-nav__list > .current_page_item > a {
	color: #fff;
	box-shadow: inset 0 -2px 0 var(--wds-violet);
}

.wds-theme .wds-dropdown-toggle,
.wds-theme .wds-dropdown-toggle:hover,
.wds-theme .wds-dropdown-toggle:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #9fa0ad;
	cursor: pointer;
}

.wds-dropdown-toggle .wds-icon {
	transition: transform 0.2s var(--wds-ease-out);
}

.wds-nav__list .is-open > .wds-dropdown-toggle .wds-icon {
	transform: rotate(180deg);
}

.wds-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: -16px;
	z-index: 70;
	display: none;
	width: min(560px, 90vw);
	padding: 14px;
	border: 1px solid var(--wds-border);
	border-radius: var(--wds-radius-lg);
	background: var(--wds-surface);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.wds-nav__list .wds-menu-categorias.is-open > .wds-dropdown {
	display: block;
}

.wds-dropdown__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.wds-theme .wds-dropdown__grid a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: var(--wds-radius-sm);
	color: var(--wds-text);
	font-size: 15px;
	text-decoration: none;
}

.wds-theme .wds-dropdown__grid a:hover {
	background: var(--wds-surface-2);
	color: #fff;
}

.wds-dropdown__icon {
	display: inline-flex;
	color: var(--wds-lavender);
}

.wds-theme .wds-dropdown__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	color: var(--wds-lavender-2);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

/* 5. Promesas -------------------------------------------------------------- */
.wds-promises {
	background: var(--wds-bg-elev);
	border-bottom: 1px solid #202034;
}

.wds-promises__list {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(30px, 2.279vw, 35px);
	margin-block: 0;
	padding-block: 0;
	list-style: none;
	color: #f1f1f3;
	font-size: clamp(14px, 1.042vw, 16px);
	line-height: 1.3;
}

.wds-promises__list li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	white-space: nowrap;
}

.wds-promises__list li + li::before {
	content: "·";
	margin: 0 14px 0 12px;
	color: #6b6b78;
}

.wds-promises__list .wds-icon {
	color: #a3a3b0;
}

/* 6. Campaña --------------------------------------------------------------- */
.wds-campaign {
	padding-top: clamp(10px, 0.911vw, 14px);
}

.wds-campaign__panel {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(180px, 14.648vw, 225px);
	overflow: hidden;
	border-radius: var(--wds-radius-lg);
	/* Campo violeta tenue detrás de las tarjetas, como en la imagen aprobada (sin brillo). */
	background:
		radial-gradient(55% 105% at 80% 62%, rgba(100, 56, 238, 0.2), rgba(100, 56, 238, 0) 72%),
		var(--wds-surface);
}

.wds-campaign__copy {
	position: relative;
	z-index: 1;
	max-width: 48%;
	padding: clamp(16px, 1.432vw, 22px) 0 clamp(20px, 1.693vw, 26px) clamp(24px, 2.604vw, 40px);
}

.wds-theme .wds-campaign__title {
	margin: 0;
	color: #f7f7f7;
	font-family: var(--wds-font-head);
	font-size: clamp(32px, 3.32vw, 51px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
}

.wds-campaign__text {
	max-width: 32em;
	margin: clamp(8px, 0.651vw, 10px) 0 0;
	color: var(--wds-muted);
	font-size: clamp(16px, 1.237vw, 19px);
	line-height: clamp(22px, 1.693vw, 26px);
}

.wds-campaign__cta.wds-btn {
	--wds-btn-h: clamp(40px, 2.995vw, 46px);
	gap: clamp(6px, 0.521vw, 8px);
	margin-top: clamp(10px, 0.911vw, 14px);
	padding: 0 clamp(12px, 0.911vw, 14px) 0 clamp(15px, 1.237vw, 19px);
	font-size: clamp(15px, 1.107vw, 17px);
	font-weight: 500;
}

.wds-campaign__art {
	position: absolute;
	right: 0.5%;
	bottom: 0;
	width: 44.5%;
	height: auto;
	max-width: none;
	pointer-events: none;
}

/* Abanico: medidas de la composición de 1932 × 756 de la imagen aprobada. */
.wds-campaign__fan {
	aspect-ratio: 1932 / 756;
	pointer-events: auto;
}

.wds-fan-card {
	position: absolute;
	z-index: 1;
	width: 28.986%;
	height: auto;
	max-width: none;
	border-radius: 5.36% / 3.57%;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
	transform: rotate(var(--r, 0deg));
	backface-visibility: hidden;
}

.wds-fan-card--playstation {
	--r: -10deg;
	top: 11.376%;
	left: 4.607%;
}

.wds-fan-card--steam {
	--r: 10deg;
	top: 10.317%;
	left: 61.025%;
}

.wds-fan-card--xbox {
	z-index: 2;
	top: 2.116%;
	left: 32.402%;
}

/* 7. Categorías ------------------------------------------------------------ */
nav.wds-chips {
	padding-top: clamp(14px, 1.237vw, 19px);
}

.wds-chips__list {
	display: flex;
	justify-content: space-between;
	gap: clamp(6px, 0.521vw, 8px);
	margin-block: 0;
	padding-block: 0;
	list-style: none;
}

.wds-chips__list li {
	margin: 0;
}

.wds-theme a.wds-chip {
	display: inline-flex;
	align-items: center;
	gap: clamp(6px, 0.521vw, 8px);
	height: clamp(36px, 2.669vw, 41px);
	padding: 0 clamp(11px, 0.977vw, 15px) 0 clamp(10px, 0.846vw, 13px);
	border: 1px solid #34344a;
	border-radius: 999px;
	background: var(--wds-surface);
	color: var(--wds-text);
	font-size: clamp(14px, 1.042vw, 16px);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wds-theme a.wds-chip:hover {
	border-color: var(--wds-violet);
	background: var(--wds-surface-2);
	color: #fff;
}

.wds-chip__icon {
	display: inline-block;
	flex: none;
	width: clamp(17px, 1.302vw, 20px);
	height: clamp(17px, 1.302vw, 20px);
	background: currentColor;
	-webkit-mask: var(--wds-mask) center / contain no-repeat;
	mask: var(--wds-mask) center / contain no-repeat;
}

.wds-chip__icon--roblox { --wds-mask: url("../brands/roblox.svg"); }
.wds-chip__icon--playstation { --wds-mask: url("../brands/playstation.svg"); }
.wds-chip__icon--xbox { --wds-mask: url("../brands/xbox.svg"); }
.wds-chip__icon--steam { --wds-mask: url("../brands/steam.svg"); }
.wds-chip__icon--nintendo-switch { --wds-mask: url("../brands/nintendo-switch.svg"); }

.wds-chip__glyph {
	flex: none;
	color: var(--wds-text);
}

/* 8. Rejillas de productos ------------------------------------------------- */
.wds-shelf {
	padding-top: 40px;
}

.wds-shelf--featured {
	padding-top: clamp(14px, 1.172vw, 18px);
}

.wds-shelf__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(8px, 0.651vw, 10px);
}

.wds-theme .wds-shelf__title {
	margin: 0;
	color: #f5f5f6;
	font-family: var(--wds-font-head);
	font-size: clamp(22px, 1.758vw, 27px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}

.wds-theme .wds-shelf__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--wds-lavender-2);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.wds-theme .wds-shelf__more:hover {
	color: #fff;
}

.wds-tiles {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(12px, 1.237vw, 19px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wds-tiles > li {
	display: flex;
	margin: 0;
}

/* Rejilla del catálogo, las categorías, las búsquedas y Favoritos (columnas en wds-shop.css). */
.wds-products {
	display: grid;
	gap: clamp(12px, 1.237vw, 19px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wds-products > .wds-products__item {
	display: flex;
}

/* 9. Tarjeta de producto --------------------------------------------------- */
.wds-card {
	position: relative;
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	padding: clamp(8px, 0.716vw, 11px);
	border: 1px solid #262637;
	border-radius: var(--wds-radius);
	background: #181724;
	transition: border-color 0.2s ease, transform 0.25s var(--wds-ease-out);
}

.wds-card:hover {
	border-color: #3d3a66;
}

.wds-card__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--wds-radius-sm);
	background: var(--wds-surface-2);
	aspect-ratio: 297 / 276;
}

.wds-card__media-link {
	display: block;
	height: 100%;
}

.wds-theme .wds-card .wds-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--wds-ease-out);
}

.wds-card:hover .wds-card__img {
	transform: scale(1.03);
}

.wds-card__region {
	position: absolute;
	top: 5px;
	right: 5px;
	padding: 1px 7px 2px;
	border-radius: 5px;
	background: rgba(24, 24, 38, 0.92);
	color: #f2f2f4;
	font-size: clamp(11px, 0.814vw, 12.5px);
	font-weight: 500;
	line-height: clamp(15px, 1.107vw, 17px);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	pointer-events: none;
}

/* La región va arriba a la derecha (como en la imagen aprobada); el descuento, abajo a la izquierda. */
.wds-card .wds-badge {
	position: absolute;
	bottom: 7px;
	left: 7px;
}

.wds-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: clamp(8px, 0.651vw, 10px);
}

.wds-theme .wds-card__title {
	display: -webkit-box;
	min-height: clamp(36px, 2.604vw, 40px);
	margin: 0;
	overflow: hidden;
	color: #f6f6f6;
	font-family: var(--wds-font-body);
	font-size: clamp(14px, 1.042vw, 16px);
	font-weight: 500;
	line-height: clamp(18px, 1.302vw, 20px);
	letter-spacing: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wds-theme .wds-card__title a {
	color: inherit;
	text-decoration: none;
}

.wds-theme .wds-card__title a:hover {
	color: var(--wds-lavender-2);
}

.wds-card__price {
	margin: clamp(4px, 0.391vw, 6px) 0 0;
	color: #f5f5f6;
	font-size: clamp(14px, 1.042vw, 16px);
	font-weight: 700;
	line-height: clamp(18px, 1.302vw, 20px);
	font-variant-numeric: tabular-nums;
}

.wds-card__price .wds-price-from {
	margin-right: 4px;
	color: #bbbac4;
	font-size: inherit;
	font-weight: 400;
	vertical-align: baseline;
}

.wds-card__price del {
	color: var(--wds-subtle);
	font-weight: 400;
}

.wds-card__price ins {
	background: none;
	text-decoration: none;
}

.wds-card__cta.wds-btn {
	--wds-btn-h: clamp(32px, 2.279vw, 35px);
	margin-top: auto;
	font-size: clamp(14px, 1.042vw, 16px);
	font-weight: 600;
}

.wds-card__price + .wds-card__cta {
	margin-top: clamp(6px, 0.521vw, 8px);
}

/* 10. Así funciona: una fila de tres pasos con separadores, sin tarjetas. ---- */
.wds-steps {
	padding: 48px 0 56px;
}

.wds-steps__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 16px 0 0;
	padding: 0;
	border-top: 1px solid var(--wds-border);
	list-style: none;
}

.wds-steps__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 14px;
	align-content: start;
	margin: 0;
	padding: 20px 28px 4px 0;
}

.wds-steps__item + .wds-steps__item {
	padding-left: 28px;
	border-left: 1px solid var(--wds-border);
}

.wds-steps__num {
	grid-row: span 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--wds-violet-line);
	border-radius: 999px;
	color: var(--wds-lavender-2);
	font-family: var(--wds-font-head);
	font-size: 16px;
	font-weight: 700;
}

.wds-theme .wds-steps__name {
	margin: 4px 0 6px;
	color: #f5f5f6;
	font-family: var(--wds-font-body);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.wds-steps__text {
	max-width: 38ch;
	margin: 0;
	color: var(--wds-muted);
	font-size: 15px;
	line-height: 1.5;
}

/* 11. Menú móvil: marca, selectores y cuenta (el panel está en wds.css). ---- */
.wds-drawer .wds-brand .wds-brand__logo {
	height: 30px;
}

.wds-account--drawer {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
}

.wds-theme .wds-account--drawer a {
	color: var(--wds-text);
	text-decoration: none;
}

.wds-account__sep {
	color: var(--wds-subtle);
}

/* 12. Pie ------------------------------------------------------------------ */
.wds-footer {
	margin-top: 0;
	border-top: 1px solid var(--wds-border);
	background: var(--wds-bg);
}

/* Marca a la izquierda y una columna por grupo de enlaces (la de "Legal" aparece al asignar su menú). */
.wds-theme .wds-footer__grid {
	grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
	gap: 32px clamp(24px, 2.604vw, 40px);
	padding-block: clamp(40px, 3.646vw, 56px) clamp(32px, 2.604vw, 40px);
}

/* El logo conserva su proporción (junto al eslogan se estrechaba); el texto de debajo ya presenta la tienda. */
.wds-theme .wds-brand--footer .wds-brand__logo {
	flex: none;
}

.wds-brand--footer .wds-brand__tagline {
	display: none;
}

.wds-theme .wds-footer__about {
	max-width: 34ch;
	margin: 16px 0 0;
	color: var(--wds-muted);
	font-size: 15px;
	line-height: 1.6;
}

.wds-theme .wds-footer__title {
	margin: 4px 0 16px;
	color: var(--wds-text);
	font-family: var(--wds-font-body);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
}

.wds-footer__col ul {
	gap: 11px;
}

.wds-theme .wds-footer__col a {
	color: var(--wds-muted);
	font-size: 15px;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.wds-theme .wds-footer__col a:hover,
.wds-theme .wds-footer__col a:focus-visible {
	color: #fff;
	text-decoration-color: var(--wds-lavender);
}

.wds-footer__bottom {
	color: var(--wds-subtle);
}

/* 12b. Catálogo y ficha de producto --------------------------------------- */
/* El catálogo ya está dentro del contenedor de Astra: su .wds-container no suma otro margen. */
.wds-theme .site-content > .ast-container #primary.wds-shop > .wds-container {
	max-width: none;
	padding-inline: 0;
}

/* La "X" solo cierra el panel de filtros en el móvil (.wds-iconbtn la mostraba siempre). */
.wds-theme .wds-filters__close {
	display: none;
}

/* Cuatro tarjetas por fila junto a los filtros, del mismo tamaño que en la portada. */
.wds-theme .wds-shop .wds-products--grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Astra deja 60 px sobre la ficha; queda el mismo aire que en el catálogo. */
body.wds-theme.single-product #primary {
	margin-top: 0;
}

/* Entre la descripción y "También te puede interesar" quedan 64 px (Astra y WooCommerce dejaban 128). */
body.wds-theme.single-product div.product .woocommerce-tabs,
body.wds-theme.single-product div.product .woocommerce-tabs .panel {
	margin-bottom: 0;
}

.wds-theme.single-product .related > h2,
.wds-theme.single-product .upsells > h2 {
	margin-top: 32px;
}

/* Relacionados: una fila de seis, como las estanterías de la portada. */
.wds-theme .related .wds-products,
.wds-theme .upsells .wds-products {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* Búsqueda: cuántos resultados hay en cada categoría. */
.wds-subcats__count {
	margin-left: 6px;
	color: var(--wds-subtle);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.wds-theme .wds-subcats__chip.is-active .wds-subcats__count {
	color: rgba(255, 255, 255, 0.8);
}

/* 12c. Estados vacíos (búsqueda sin resultados y carrito vacío) ------------ */
.wds-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: clamp(32px, 3.646vw, 56px) clamp(16px, 2.604vw, 40px);
	border: 1px solid var(--wds-border);
	border-radius: var(--wds-radius-lg);
	background: var(--wds-surface);
	text-align: center;
}

.wds-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border: 1px solid var(--wds-violet-line);
	border-radius: 999px;
	background: var(--wds-violet-tint);
	color: var(--wds-lavender-2);
}

.wds-theme .wds-empty__title {
	margin: 18px 0 6px;
	font-family: var(--wds-font-head);
	font-size: clamp(22px, 1.758vw, 27px);
	font-weight: 700;
	line-height: 1.15;
	text-wrap: balance;
}

.wds-theme .wds-empty__text {
	max-width: 52ch;
	margin: 0;
	color: var(--wds-muted);
	font-size: 15px;
	line-height: 1.55;
}

.wds-theme .wds-empty__actions {
	margin: 22px 0 0;
}

.wds-empty nav.wds-chips {
	width: 100%;
	padding-top: 24px;
}

.wds-theme .wds-empty .wds-chips__list {
	flex-wrap: wrap;
	justify-content: center;
	max-width: none;
	margin: 0;
	padding-inline: 0;
	overflow: visible;
}

/* Estantería dentro de una página (búsqueda y carrito vacíos): sin un segundo contenedor. */
.wds-shelf--inline {
	padding-top: 40px;
}

.wds-theme .wds-shelf--inline > .wds-container {
	max-width: none;
	padding-inline: 0;
}

/* Dentro del contenido de una página, Astra sangra las listas. */
.wds-theme .wds-shelf--inline .wds-tiles {
	margin: 0;
	padding: 0;
}

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 1240px) {
	.wds-header__bar {
		gap: 22px;
	}

	.wds-theme .wds-shop .wds-products--grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wds-header__tools {
		gap: 20px;
	}

	.wds-header__account-text {
		display: none;
	}

	.wds-chips__list {
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.wds-chips__list::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 1100px) {
	.wds-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wds-theme .related .wds-products,
	.wds-theme .upsells .wds-products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wds-campaign__copy {
		max-width: 56%;
	}

	.wds-promises__list {
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
		font-size: 15px;
	}

	.wds-promises__list::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 921px) {
	.wds-theme .wds-filters__close {
		display: inline-flex;
	}

	.wds-theme .wds-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.wds-header__bar {
		flex-wrap: wrap;
		gap: 10px 12px;
		min-height: 0;
		padding-block: 10px 12px;
	}

	.wds-burger {
		display: inline-flex;
		margin-left: -10px;
	}

	.wds-brand {
		margin-right: auto;
	}

	.wds-theme .wds-brand .wds-brand__logo {
		height: 28px;
	}

	.wds-search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
		height: 44px;
	}

	.wds-nav,
	.wds-switch--lang {
		display: none;
	}

	.wds-header__tools {
		gap: 4px;
	}

	.wds-theme .wds-header__account {
		width: 44px;
		height: 44px;
		justify-content: center;
	}

	.wds-campaign__panel {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
	}

	.wds-campaign__copy {
		max-width: none;
		padding: 24px 22px 0;
	}

	.wds-campaign__art {
		position: relative;
		right: auto;
		width: min(100%, 520px);
		margin: 18px auto 0;
	}

	.wds-steps__list {
		grid-template-columns: 1fr;
	}

	.wds-steps__item,
	.wds-steps__item + .wds-steps__item {
		padding: 18px 0 16px;
		border-left: 0;
	}

	.wds-steps__item + .wds-steps__item {
		border-top: 1px solid var(--wds-border);
	}
}

@media (max-width: 480px) {
	.wds-theme .wds-brand .wds-brand__logo {
		height: 24px;
	}

	.wds-theme .wds-header__account {
		display: none;
	}

	.wds-theme .wds-switch__opt {
		font-size: 15px;
	}
}

@media (max-width: 640px) {
	/* Chips de subcategorías, de búsqueda y de los estados vacíos: una fila que se desliza. */
	.wds-subcats,
	.wds-theme .wds-empty .wds-chips__list {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
		mask-image: linear-gradient(to right, #000 85%, transparent);
	}

	.wds-subcats::-webkit-scrollbar,
	.wds-empty .wds-chips__list::-webkit-scrollbar {
		display: none;
	}

	.wds-theme .wds-subcats__chip {
		flex: none;
	}

	.wds-empty {
		align-items: stretch;
	}

	.wds-empty__icon {
		align-self: center;
	}

	/* Pie en dos columnas: las categorías a la izquierda, los demás grupos a la derecha. */
	.wds-theme .wds-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	.wds-footer__col--cats {
		grid-row: span 2;
	}

	.wds-theme .wds-shop .wds-products--grid,
	.wds-theme .related .wds-products,
	.wds-theme .upsells .wds-products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wds-demo-bar {
		font-size: 12.5px;
	}

	.wds-promises__list {
		font-size: 14px;
	}

	.wds-campaign {
		padding-top: 12px;
	}

	.wds-campaign__text {
		font-size: 16px;
		line-height: 23px;
	}

	.wds-campaign__cta.wds-btn {
		--wds-btn-h: 44px;
		font-size: 16px;
	}

	nav.wds-chips {
		padding-top: 16px;
	}

	.wds-theme a.wds-chip {
		height: 38px;
		font-size: 15px;
	}

	.wds-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.wds-theme .wds-shelf__title {
		font-size: 23px;
	}

	.wds-card {
		padding: 8px;
	}

	.wds-theme .wds-card__title {
		font-size: 15px;
	}

	.wds-card__price {
		font-size: 15px;
	}
}

/* 14. Movimiento ----------------------------------------------------------- */
/* Todo parte de un estado ya visible; con "movimiento reducido" no se anima nada. */
@media (prefers-reduced-motion: no-preference) {
	/* Listados (catálogo y búsqueda): las primeras tarjetas entran escalonadas al cargar. */
	html:not(.wds-settled) .wds-shop .wds-products > li:nth-child(-n+8) {
		animation: wds-rise 0.7s var(--wds-ease-out) both;
	}

	html:not(.wds-settled) .wds-shop .wds-products > li:nth-child(2) { animation-delay: 0.05s; }
	html:not(.wds-settled) .wds-shop .wds-products > li:nth-child(3) { animation-delay: 0.1s; }
	html:not(.wds-settled) .wds-shop .wds-products > li:nth-child(4) { animation-delay: 0.15s; }
	html:not(.wds-settled) .wds-shop .wds-products > li:nth-child(5) { animation-delay: 0.2s; }
	html:not(.wds-settled) .wds-shop .wds-products > li:nth-child(6) { animation-delay: 0.25s; }
	html:not(.wds-settled) .wds-shop .wds-products > li:nth-child(7) { animation-delay: 0.3s; }
	html:not(.wds-settled) .wds-shop .wds-products > li:nth-child(8) { animation-delay: 0.35s; }

	/* Estados vacíos: el contenido sube al cargar y después el icono flota. */
	.wds-empty__icon {
		animation: wds-float 3.2s ease-in-out infinite;
	}

	html:not(.wds-settled) .wds-empty > * {
		animation: wds-rise 0.7s var(--wds-ease-out) both;
	}

	html:not(.wds-settled) .wds-empty > :nth-child(2) { animation-delay: 0.06s; }
	html:not(.wds-settled) .wds-empty > :nth-child(3) { animation-delay: 0.12s; }
	html:not(.wds-settled) .wds-empty > :nth-child(n+4) { animation-delay: 0.18s; }

	/* Pie: las redes se elevan al pasar. */
	.wds-theme .wds-social a {
		transition: transform 0.3s var(--wds-ease-out), border-color 0.2s ease, color 0.2s ease;
	}

	.wds-theme .wds-social a:hover {
		transform: translateY(-3px);
	}

	/* Banner: las tarjetas esperan a su entrada (wds-motion.js); si el script no llega, aparecen solas. */
	.wds-motion .wds-fan-card {
		opacity: 0;
		animation: wds-fan-fallback 0.01s 2.5s forwards;
	}

	/* Botones principales: se elevan, destello al pasar y se hunden al pulsar. */
	.wds-btn--primary {
		position: relative;
		overflow: hidden;
	}

	.wds-btn--primary::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0) 65%);
		transform: translateX(-130%);
		transition: transform 0.75s var(--wds-ease-out);
		pointer-events: none;
	}

	.wds-btn--primary:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.38);
	}

	.wds-btn--primary:hover::after {
		transform: translateX(130%);
	}

	.wds-btn--primary:active {
		transform: translateY(0) scale(0.97);
		box-shadow: none;
	}

	.wds-campaign__cta .wds-icon {
		transition: transform 0.35s var(--wds-ease-out);
	}

	.wds-campaign__cta:hover .wds-icon {
		transform: translateX(4px);
	}

	/* Ficha, carrito y pago: los botones de compra se comportan como los del tema.
	   El destello va en ::before porque WooCommerce usa ::after para "cargando" y "añadido". */
	.wds-theme.single-product .single_add_to_cart_button,
	.wds-theme .woocommerce .wc-proceed-to-checkout a.checkout-button,
	.wds-theme .woocommerce #place_order {
		position: relative;
		overflow: hidden;
		transition: transform 0.25s var(--wds-ease-out), box-shadow 0.3s ease, background-color 0.2s ease, opacity 0.2s ease;
	}

	.wds-theme.single-product .single_add_to_cart_button::before,
	.wds-theme .woocommerce .wc-proceed-to-checkout a.checkout-button::before,
	.wds-theme .woocommerce #place_order::before {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0) 65%);
		transform: translateX(-130%);
		transition: transform 0.75s var(--wds-ease-out);
		pointer-events: none;
	}

	.wds-theme.single-product .single_add_to_cart_button:not(.disabled):hover,
	.wds-theme .woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
	.wds-theme .woocommerce #place_order:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.38);
	}

	.wds-theme.single-product .single_add_to_cart_button:not(.disabled):hover::before,
	.wds-theme .woocommerce .wc-proceed-to-checkout a.checkout-button:hover::before,
	.wds-theme .woocommerce #place_order:hover::before {
		transform: translateX(130%);
	}

	.wds-theme.single-product .single_add_to_cart_button:not(.disabled):active,
	.wds-theme .woocommerce .wc-proceed-to-checkout a.checkout-button:active,
	.wds-theme .woocommerce #place_order:active {
		transform: scale(0.97);
		box-shadow: none;
	}

	/* Importes de la ficha: se elevan al pasar y el elegido da un pequeño salto. */
	.wds-theme .wds-swatch {
		transition: transform 0.3s var(--wds-ease-out), border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
	}

	.wds-theme .wds-swatch:not(:disabled):hover {
		transform: translateY(-2px);
	}

	.wds-theme .wds-swatch.is-selected {
		animation: wds-pop 0.35s var(--wds-ease-out);
	}

	/* Chips: se elevan y el símbolo gira un poco. */
	.wds-theme a.wds-chip {
		transition: transform 0.35s var(--wds-ease-out), border-color 0.2s ease, background-color 0.2s ease;
	}

	.wds-theme a.wds-chip:hover {
		transform: translateY(-3px);
	}

	.wds-chip__icon,
	.wds-chip__glyph {
		transition: transform 0.4s var(--wds-ease-out);
	}

	a.wds-chip:hover .wds-chip__icon,
	a.wds-chip:hover .wds-chip__glyph {
		transform: rotate(-12deg) scale(1.15);
	}

	/* Carrito: salto del contador al añadir un producto. */
	.wds-cart__count.is-bumped {
		animation: wds-bump 0.5s var(--wds-ease-out);
	}

	/* Móvil: cinta continua con las promesas (se detiene al tocarla). */
	.wds-promises {
		overflow: hidden;
	}

	.wds-promises__list.is-marquee {
		width: max-content;
		max-width: none;
		overflow: visible;
		padding-inline: 0;
		animation: wds-marquee 30s linear infinite;
	}

	.wds-promises__list.is-marquee li {
		margin-right: 34px;
	}

	.wds-promises__list.is-marquee li + li::before {
		content: none;
	}

	.wds-promises:hover .is-marquee,
	.wds-promises .is-marquee:focus-within {
		animation-play-state: paused;
	}
}

/* Tarjetas de producto en 3D: se inclinan hacia el puntero, con brillo y profundidad. */
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
	.wds-card {
		transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px));
		transform-style: preserve-3d;
		transition: transform 0.5s var(--wds-ease-out), border-color 0.2s ease, box-shadow 0.35s ease;
	}

	.wds-card:hover {
		--lift: -4px;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
	}

	.wds-card.is-tilting {
		transition: transform 0.12s linear, border-color 0.2s ease, box-shadow 0.35s ease;
	}

	.wds-card__body {
		transform-style: preserve-3d;
	}

	.wds-card__media,
	.wds-card__cta {
		transition: transform 0.5s var(--wds-ease-out);
	}

	.wds-card.is-tilting .wds-card__media {
		transform: translateZ(26px);
	}

	.wds-card.is-tilting .wds-card__cta {
		transform: translateZ(18px);
	}

	.wds-theme .wds-card.is-tilting .wds-card__img {
		transform: scale(1.08) translate(var(--px, 0px), var(--py, 0px));
	}

	.wds-card::after {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: inherit;
		background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 45%);
		opacity: 0;
		transition: opacity 0.3s ease;
		pointer-events: none;
	}

	.wds-card.is-tilting::after {
		opacity: 1;
	}

	/* Ficha: la imagen del producto también se inclina hacia el puntero, más suave. */
	.wds-theme.single-product .woocommerce-product-gallery__image {
		position: relative;
		border-radius: var(--wds-radius-lg);
		transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
		transition: transform 0.6s var(--wds-ease-out);
	}

	.wds-theme.single-product .woocommerce-product-gallery__image.is-tilting {
		transition: transform 0.12s linear;
	}

	.wds-theme.single-product .woocommerce-product-gallery__image::after {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: inherit;
		background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 50%);
		opacity: 0;
		transition: opacity 0.3s ease;
		pointer-events: none;
	}

	.wds-theme.single-product .woocommerce-product-gallery__image.is-tilting::after {
		opacity: 1;
	}
}

@keyframes wds-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@keyframes wds-draw {
	from {
		transform: scaleX(0);
	}
}

@keyframes wds-float {
	50% {
		transform: translateY(-5px);
	}
}

@keyframes wds-fan-fallback {
	to {
		opacity: 1;
	}
}

@keyframes wds-pop {
	50% {
		transform: scale(1.06);
	}
}

@keyframes wds-bump {
	40% {
		transform: scale(1.35);
	}

	to {
		transform: scale(1);
	}
}

@keyframes wds-marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wds-card,
	.wds-card__img,
	a.wds-chip,
	.wds-dropdown-toggle .wds-icon,
	.wds-drawer__backdrop,
	.wds-drawer__panel,
	.wds-cat-tile,
	.wds-btn {
		transition: none;
	}

	.wds-cat-tile:hover {
		transform: none;
	}

	.wds-card:hover .wds-card__img {
		transform: none;
	}
}
