/*
Theme Name: Close Mi Tienda de Muñecas
Theme URI: https://mitiendademunecas.com
Author: CLOSE Marketing
Author URI: https://close.marketing
Description: Tema de bloques para Mi Tienda de Muñecas (WooCommerce).
Version: 1.9.11
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: close-mitiendademunecas-theme
Tags: block-theme, full-site-editing, e-commerce, custom-colors
*/


/**
 * Estilos propios del tema.
 * Solo lo que no se puede resolver con atributos de bloque ni theme.json:
 * iconos, estados hover, comportamiento responsive y componentes reutilizables.
 */

/* ─── Layout ─────────────────────────────────────────────────────────────── */

body {
	--theme-container-padding-x: var(--wp--preset--spacing--container);
}

@media (min-width: 1024px) {
	body {
		--theme-container-padding-x: var(--wp--preset--spacing--container-lg);
	}
}

.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.is-radius-lg { border-radius: var(--wp--preset--border-radius--lg); }
.is-radius-xl { border-radius: var(--wp--preset--border-radius--xl); }
.is-radius-2xl { border-radius: var(--wp--preset--border-radius--xxl); overflow: hidden; }
.is-radius-full { border-radius: var(--wp--preset--border-radius--full); }

.is-scroll-x {
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
}

.is-scroll-x::-webkit-scrollbar {
	display: none;
}

/* ─── Iconos (máscara SVG que hereda currentColor) ───────────────────────── */

.icon-before::before,
.icon-link::before,
.icon-after::after,
.icon-after .wp-block-button__link::after {
	content: "";
	display: inline-block;
	flex: none;
	width: var(--icon-size, 1.125rem);
	height: var(--icon-size, 1.125rem);
	background-color: currentColor;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}

.icon-gift { --icon: url("assets/icons/gift.svg"); }
.icon-truck { --icon: url("assets/icons/truck.svg"); }
.icon-lock { --icon: url("assets/icons/lock.svg"); }
.icon-store { --icon: url("assets/icons/store.svg"); }
.icon-chat { --icon: url("assets/icons/chat.svg"); }
.icon-whatsapp { --icon: url("assets/icons/whatsapp.svg"); }
.icon-user { --icon: url("assets/icons/user.svg"); }
.icon-heart { --icon: url("assets/icons/heart.svg"); }
.icon-menu { --icon: url("assets/icons/menu.svg"); }
.icon-search { --icon: url("assets/icons/search.svg"); }
.icon-close { --icon: url("assets/icons/close.svg"); }
.icon-bag { --icon: url("assets/icons/bag.svg"); }
.icon-chevron-down { --icon: url("assets/icons/chevron-down.svg"); }
.icon-arrow-right { --icon: url("assets/icons/arrow-right.svg"); }
.icon-instagram { --icon: url("assets/icons/instagram.svg"); }
.icon-facebook { --icon: url("assets/icons/facebook.svg"); }
.icon-youtube { --icon: url("assets/icons/youtube.svg"); }

.icon-before {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
}

.icon-after .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
}

.icon-after.wp-block-button::after {
	content: none;
}

/* ─── Barra de promociones ───────────────────────────────────────────────── */

.promo-bar {
	padding-top: 0;
	padding-bottom: 0;
}

.promo-bar a {
	color: inherit;
	text-decoration: underline;
}

.promo-bar__inner {
	justify-content: center;
	-ms-overflow-style: none;
}

.promo-item,
.promo-sep {
	margin: 0;
	flex: none;
	font-weight: 600;
}

.promo-sep {
	opacity: 0.5;
}

/* Las secciones a ancho completo van pegadas entre sí: sin el hueco del espaciado entre bloques. */
.alignfull {
	margin-block: 0;
}

/* ─── Cabecera ───────────────────────────────────────────────────────────── */

/* Cabecera fija solo en pantallas grandes: en móvil ocuparía media pantalla.
   Al bajar se oculta la barra de promociones y se encoge el logo. */
/* Distancia a la que se pegan las columnas fijas (ficha, checkout). Con la cabecera
   fija hay que dejar sitio debajo de ella; effects.js mide su altura real. */
:root {
	--sticky-top: var(--wp--preset--spacing--20);
}

@media (min-width: 1025px) {
	:root {
		--sticky-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--header-height, 9rem) + var(--wp--preset--spacing--6));
	}

	html {
		overflow-anchor: none;
	}

	header.wp-block-template-part {
		position: sticky;
		top: 0;
		z-index: 100;
	}

	.admin-bar header.wp-block-template-part {
		top: var(--wp-admin--admin-bar--height, 0);
	}

	.promo-bar {
		max-height: 6rem;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.is-scrolled .promo-bar {
		max-height: 0;
	}

	.site-header {
		transition: box-shadow 0.3s ease;
	}

	.is-scrolled .site-header {
		box-shadow: var(--wp--preset--shadow--float);
	}
}

.site-header {
	padding-top: 0;
	padding-bottom: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.site-header__main {
	row-gap: var(--wp--preset--spacing--4);
	column-gap: var(--wp--preset--spacing--8);
}

.site-logo-img {
	margin: 0;
}

.site-logo-img img {
	display: block;
	width: auto;
	height: 72px;
	transition: height 0.3s ease;
}

@media (min-width: 1025px) {
	.site-logo-img img {
		height: 84px;
	}

	.is-scrolled .site-logo-img img {
		height: 56px;
	}
}

.site-header__search {
	order: 3;
	flex: 1 1 320px;
	max-width: 560px;
	margin: 0;
}

.site-header__search .wp-block-search__inside-wrapper,
.search-pill .wp-block-search__inside-wrapper {
	align-items: center;
	height: 48px;
	padding: 0 6px 0 var(--wp--preset--spacing--5);
	gap: var(--wp--preset--spacing--2);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--full);
}

.site-header__search .wp-block-search__input,
.search-pill .wp-block-search__input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--contrast);
}

.site-header__search .wp-block-search__input:focus,
.search-pill .wp-block-search__input:focus {
	outline: none;
}

.site-header__search .wp-block-search__inside-wrapper:focus-within,
.search-pill .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--primary);
}

.site-header__search .wp-block-search__button,
.search-pill .wp-block-search__button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--base);
}

.site-header__search .wp-block-search__button:hover,
.search-pill .wp-block-search__button:hover {
	background: var(--wp--preset--color--pink-dark);
}

.site-header__actions {
	order: 2;
}

.icon-link-wrap {
	margin: 0;
}

.icon-link {
	--icon-size: 1.375rem;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--wp--preset--border-radius--full);
	color: var(--wp--preset--color--contrast);
	transition: background-color 0.15s ease;
}

.icon-link:hover {
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--contrast);
}

.header-cart .wc-block-mini-cart__button {
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}

.header-cart .wc-block-mini-cart__button:hover {
	background: var(--wp--preset--color--border-strong);
}

.header-cart .wc-block-mini-cart__button.is-bumping {
	animation: cart-bump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cart-bump {
	0% { transform: scale(1) rotate(0); }
	25% { transform: scale(1.25) rotate(-12deg); }
	50% { transform: scale(1.15) rotate(10deg); }
	75% { transform: scale(1.1) rotate(-5deg); }
	100% { transform: scale(1) rotate(0); }
}

/* ─── Navegación de categorías ───────────────────────────────────────────── */

.nav-categories {
	width: 100%;
}

.nav-categories .wp-block-navigation__container {
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--1);
	width: 100%;
}

.nav-categories .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--1);
	padding: var(--wp--preset--spacing--3) 0.5rem;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--titan-one);
	font-size: 0.8125rem;
	font-weight: 400;
	white-space: nowrap;
}

.nav-categories .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary-dark);
}

.nav-categories .has-chevron > .wp-block-navigation-item__content::after {
	content: "";
	width: 0.875rem;
	height: 0.875rem;
	background-color: currentColor;
	-webkit-mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
	mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
}

.nav-categories .nav-pill {
	margin-left: auto;
}

.nav-categories .nav-pill > .wp-block-navigation-item__content {
	margin: var(--wp--preset--spacing--1) 0;
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 400;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-categories .nav-pill > .wp-block-navigation-item__content:hover,
.nav-categories .nav-pill > .wp-block-navigation-item__content:focus-visible {
	background: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--base);
}

.site-header .wp-block-navigation {
	overflow-x: auto;
	scrollbar-width: none;
}

.site-header .wp-block-navigation::-webkit-scrollbar {
	display: none;
}

/* Submenús desplegables. En táctil y pantallas estrechas se abren con un toque
   (nav-submenu.js) y el panel va fijo bajo la barra, porque la barra se desplaza y recorta. */
.nav-categories .sub-menu {
	display: none;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: var(--wp--preset--spacing--2);
	list-style: none;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
}

.nav-categories .menu-item-has-children.is-open > .sub-menu {
	display: flex;
}

.nav-categories .sub-menu .wp-block-navigation-item__content {
	display: flex;
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--3);
	border-radius: var(--wp--preset--border-radius--sm);
	font-weight: 400;
	white-space: normal;
}

.nav-categories .sub-menu .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--primary-light);
}

.nav-categories .sub-menu__all .wp-block-navigation-item__content {
	font-weight: 600;
}

@media (max-width: 1279px) {
	.nav-categories .sub-menu {
		position: fixed;
		top: var(--submenu-top, 0);
		right: var(--wp--preset--spacing--4);
		left: var(--wp--preset--spacing--4);
		z-index: 20;
		max-height: 60vh;
		overflow-y: auto;
	}
}

@media (min-width: 1280px) {
	.site-header .wp-block-navigation {
		overflow: visible;
	}

	.nav-categories .menu-item {
		position: relative;
	}

	.nav-categories .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 20;
		min-width: 280px;
	}

	.nav-categories .menu-item-has-children:hover > .sub-menu,
	.nav-categories .menu-item-has-children:focus-within > .sub-menu {
		display: flex;
	}
}

/* Móvil y tablet: el menú de categorías se abre con el botón de las tres rayas y se
   despliega sobre el contenido; las subcategorías van en acordeón. */
.nav-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
	--icon: url("assets/icons/close.svg");
	background: var(--wp--preset--color--primary-light);
}

@media (max-width: 1024px) {
	.nav-toggle {
		display: grid;
	}

	.site-header {
		position: relative;
	}

	.site-header .nav-categories {
		display: none;
	}

	.has-nav-open .site-header .nav-categories {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 30;
		display: block;
		max-height: calc(100vh - 8rem);
		overflow-y: auto;
		border-bottom: 1px solid var(--wp--preset--color--border);
		background: var(--wp--preset--color--base);
		box-shadow: var(--wp--preset--shadow--float);
	}

	.nav-categories .wp-block-navigation__container {
		box-sizing: border-box;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--container);
	}

	.nav-categories .menu-item {
		display: block;
		border-bottom: 1px solid var(--wp--preset--color--border);
	}

	.nav-categories .wp-block-navigation-item__content {
		display: flex;
		justify-content: space-between;
		padding: var(--wp--preset--spacing--4) 0;
		font-size: 1rem;
		white-space: normal;
	}

	.nav-categories .menu-item-has-children.is-open > .wp-block-navigation-item__content::after {
		transform: rotate(180deg);
	}

	.nav-categories .nav-pill {
		margin: var(--wp--preset--spacing--3) 0;
		border-bottom: 0;
	}

	.nav-categories .nav-pill > .wp-block-navigation-item__content {
		justify-content: center;
		margin: 0;
	}

	.nav-categories .sub-menu {
		position: static;
		max-height: none;
		margin: 0 0 var(--wp--preset--spacing--3);
		padding: 0 0 0 var(--wp--preset--spacing--3);
		border: 0;
		border-left: 2px solid var(--wp--preset--color--primary-light);
		border-radius: 0;
		box-shadow: none;
	}

	.nav-categories .sub-menu .menu-item {
		border-bottom: 0;
	}

	.nav-categories .sub-menu .wp-block-navigation-item__content {
		padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--2);
	}
}

.search-toggle {
	display: none;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.search-toggle[aria-expanded="true"] {
	background: var(--wp--preset--color--primary-light);
}

/* En el móvil el botón de WhatsApp flotante ya está en pantalla: se libera sitio en la cabecera.
   La búsqueda pasa a ser un icono que despliega el campo. */
@media (max-width: 781px) {
	.search-toggle {
		display: grid;
	}

	.site-header__search {
		display: none;
	}

	.has-search-open .site-header__search {
		display: block;
		flex-basis: 100%;
		max-width: none;
	}

	.site-header__actions .icon-link-wrap:has(.icon-whatsapp) {
		display: none;
	}

	.site-header__main {
		column-gap: var(--wp--preset--spacing--3);
	}
}

/* Listados en móvil: categorías y filtros plegados detrás de un botón (archive-filters.js). */
.filters-toggle {
	display: none;
	width: 100%;
	margin: 0 0 var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--5);
	border: 1px solid var(--wp--preset--color--border-button);
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-align: left;
	cursor: pointer;
}

.filters-toggle:not([hidden]) {
	display: block;
}

.filters-toggle[aria-expanded="true"] {
	background: var(--wp--preset--color--primary-light);
}

.archive-sidebar.is-collapsible:not(.is-open) {
	display: none;
}

/* Cabecera y portada en móvil, como las quiere el cliente: menú y búsqueda a la izquierda,
   logo centrado, carrito, favoritos y cuenta a la derecha, y la imagen principal a todo el
   ancho justo debajo. */
@media (max-width: 781px) {
	.site-header__main > .site-header__actions {
		display: contents;
	}

	.site-header__main {
		flex-wrap: wrap;
		justify-content: flex-start;
		column-gap: 0;
	}

	.nav-toggle-wrap {
		order: 1;
	}

	.search-toggle-wrap {
		order: 2;
	}

	.site-header__main .site-logo-img {
		display: flex;
		flex: 1 1 0;
		order: 3;
		justify-content: center;
		padding-left: 44px;
	}

	.site-header__main .header-cart {
		order: 4;
	}

	.site-header__main .icon-link-wrap:has(.favorites-link) {
		order: 5;
	}

	.site-header__main .icon-link-wrap:has(.icon-user) {
		order: 6;
	}

	.site-header__search {
		order: 10;
	}

	.hero-home > .alignwide {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--6);
	}

	.hero-home > .alignwide > * {
		margin-block: 0;
	}

	.hero-home > .alignwide > .hero-home__image {
		order: -1;
		width: 100vw;
		max-width: 100vw;
		margin-top: calc(-1 * var(--wp--preset--spacing--12));
		margin-inline: calc(50% - 50vw);
	}

	.hero-home__image img {
		border-radius: 0;
	}
}

/* ─── Componentes ────────────────────────────────────────────────────────── */

.pill-badge {
	display: inline-flex;
	margin: 0;
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
}

.eyebrow {
	margin: 0;
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
	text-transform: uppercase;
}

.section-head {
	margin-bottom: var(--wp--preset--spacing--6);
}

.link-arrow {
	margin: 0;
	font-weight: 700;
}

.link-arrow a::after {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	margin-left: var(--wp--preset--spacing--2);
	vertical-align: -0.1875rem;
	background-color: currentColor;
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
}

.mt-card {
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mt-card:hover {
	box-shadow: var(--wp--preset--shadow--card);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.mt-card,
	.icon-link {
		transition: none;
	}

	.mt-card:hover {
		transform: none;
	}
}

/* Enlace que cubre toda la tarjeta: el contenedor posicionado es la propia tarjeta. */
.brand-card,
.post-feature {
	position: relative;
}

.card-link a::after,
.product-card__title a::after,
.post-feature__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Los controles propios de la tarjeta quedan por encima del enlace. */
.product-card .wc-block-components-product-button,
.post-feature .post-feature__more {
	position: relative;
	z-index: 2;
}

.circle-arrow {
	--icon-size: 1rem;
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

/* ─── Grids que reparten el 100% del ancho entre sus elementos ────────────── */

.wp-block-group.grid-auto-fit {
	grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 220px), 100%), 1fr));
}

.wp-block-group.seo-box__cards {
	--grid-min: 260px;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero-home__intro {
	flex: 1 1 520px;
	max-width: 720px;
}

.hero-home__image img {
	display: block;
	width: 100%;
	aspect-ratio: 1049 / 438;
	object-fit: cover;
}

@media (max-width: 781px) {
	.hero-home__image img {
		aspect-ratio: 4 / 3;
	}
}

.benefit-card {
	height: 100%;
	padding: 0.875rem var(--wp--preset--spacing--4);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--base);
}

.benefit-card__icon {
	--icon-size: 1.25rem;
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	margin: 0;
	border-radius: var(--wp--preset--border-radius--sm);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

/* En el móvil las cuatro ventajas van en dos columnas, sin icono, para no alargar la portada. */
@media (max-width: 781px) {
	.wp-block-group.grid-auto-fit:has(.benefit-card) {
		--grid-min: 140px;
	}

	.benefit-card__icon {
		display: none;
	}
}

.benefit-card__text {
	margin: 0;
	line-height: 1.35;
}

.benefit-card__text strong {
	display: block;
	color: var(--wp--preset--color--contrast);
}

/* ─── Marcas ─────────────────────────────────────────────────────────────── */

.brand-card {
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--xl);
}

.brand-card__foot {
	min-height: 6.5rem;
	margin-top: auto;
}

/* Glide fija height: 100% en cada diapositiva; con auto se estiran todas a la más alta. */
.brand-carousel {
	align-items: stretch;
}

.brand-carousel > .brand-card.glide__slide {
	height: auto;
}

/* La imagen va fuera de flujo para que una foto vertical no estire la tarjeta. */
.brand-card__image {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3;
	box-sizing: border-box;
}

.brand-card__image img {
	position: absolute;
	inset: var(--wp--preset--spacing--5);
	display: block;
	width: calc(100% - 2 * var(--wp--preset--spacing--5));
	height: calc(100% - 2 * var(--wp--preset--spacing--5));
	object-fit: contain;
	mix-blend-mode: multiply;
}

.brand-card--rose {
	background: var(--wp--preset--color--tint-rose);
}

.brand-card--lilac {
	background: var(--wp--preset--color--tint-lilac);
}

.brand-card--peach {
	background: var(--wp--preset--color--tint-peach);
}

.brand-card--sky {
	background: var(--wp--preset--color--tint-sky);
}

.brand-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--wp--preset--color--base);
	width: 100%;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--5);
}

.brand-card__name {
	margin: 0;
}

/* ─── Tarjeta de producto (WooCommerce Product Collection) ───────────────── */

.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-template {
	gap: var(--wp--preset--spacing--5);
}

.product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--base);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
	transform: translateY(-4px);
	border-color: var(--wp--preset--color--primary-light);
	box-shadow: var(--wp--preset--shadow--float);
}

.product-card__badge {
	position: absolute;
	top: var(--wp--preset--spacing--3);
	left: var(--wp--preset--spacing--3);
	z-index: 2;
	margin: 0;
	padding: var(--wp--preset--spacing--1) 0.625rem;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
}

.product-card__fav {
	--icon-size: 1.25rem;
	position: absolute;
	top: var(--wp--preset--spacing--2);
	right: var(--wp--preset--spacing--2);
	z-index: 2;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--muted);
	cursor: pointer;
}

.product-card__fav:hover {
	color: var(--wp--preset--color--primary-dark);
}

.product-card__fav[aria-pressed="true"] {
	--icon: url("assets/icons/heart-filled.svg");
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

.product-card__fav::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid var(--wp--preset--color--primary);
	border-radius: var(--wp--preset--border-radius--full);
	opacity: 0;
	pointer-events: none;
}

.product-card__fav.is-popping::before {
	animation: fav-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card__fav.is-popping::after {
	animation: fav-ring 0.5s ease-out;
}

.fav-burst {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.fav-burst i {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary);
	animation: fav-burst 0.6s ease-out forwards;
}

.fav-burst i:nth-child(odd) {
	width: 4px;
	height: 4px;
	margin: -2px 0 0 -2px;
	background: var(--wp--preset--color--primary-dark);
}

.fav-burst i:nth-child(1) { --angle: 0deg; }
.fav-burst i:nth-child(2) { --angle: 45deg; }
.fav-burst i:nth-child(3) { --angle: 90deg; }
.fav-burst i:nth-child(4) { --angle: 135deg; }
.fav-burst i:nth-child(5) { --angle: 180deg; }
.fav-burst i:nth-child(6) { --angle: 225deg; }
.fav-burst i:nth-child(7) { --angle: 270deg; }
.fav-burst i:nth-child(8) { --angle: 315deg; }

@keyframes fav-burst {
	0% { transform: rotate(var(--angle)) translateY(-10px) scale(1); opacity: 1; }
	100% { transform: rotate(var(--angle)) translateY(-30px) scale(0); opacity: 0; }
}

@keyframes fav-pop {
	0% { transform: scale(0.6); }
	60% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

@keyframes fav-ring {
	0% { transform: scale(0.6); opacity: 0.8; }
	100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.product-card__fav.is-popping::before,
	.product-card__fav.is-popping::after,
	.product-card .wc-block-components-product-sale-badge::after,
	.product-card .wc-block-components-product-button__button.is-added,
	.product-card .wc-block-components-product-button__button.is-added::before,
	.header-cart .wc-block-mini-cart__button.is-bumping,
	.fav-burst i {
		animation: none;
	}

	.product-card,
	.product-card .wc-block-components-product-image img {
		transition: none;
	}

	.product-card:hover,
	.product-card:hover .wc-block-components-product-image img {
		transform: none;
	}
}

.product-card .wc-block-components-product-image {
	margin: 0;
	padding: var(--wp--preset--spacing--4);
	box-sizing: border-box;
}

.product-card .wc-block-components-product-image a {
	position: relative;
	display: block;
}

.product-card .wc-block-components-product-image img {
	object-fit: contain;
	transition: transform 0.5s ease;
}

.product-card:hover .wc-block-components-product-image img {
	transform: scale(1.06);
}

/* Segunda imagen de la galería: aparece al pasar el ratón por la tarjeta. */
.product-card .wc-block-components-product-image .product-card__hover-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--wp--preset--color--base);
	opacity: 0;
	transition: opacity 0.4s ease, transform 0.5s ease;
}

.product-card:hover .wc-block-components-product-image .product-card__hover-image {
	opacity: 1;
}

.product-card .wc-block-components-product-sale-badge {
	position: relative;
	overflow: hidden;
	border: 0;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
}

.product-card .wc-block-components-product-sale-badge::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.75) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: badge-shine 4s ease-in-out infinite;
}

@keyframes badge-shine {
	0%, 60% { transform: translateX(-120%); }
	100% { transform: translateX(120%); }
}

.product-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--wp--preset--spacing--1) var(--wp--preset--spacing--4) var(--wp--preset--spacing--4);
}

.product-card__brand a,
.product-buy__brand a {
	display: inline-block;
	padding-block: 3px;
}

.product-card__brand,
.product-card__brand a {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-weight: 700;
	text-transform: uppercase;
}

.product-card__title {
	flex: 1;
	margin: 0;
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 600;
	line-height: 1.4;
}

.product-card__title a {
	color: var(--wp--preset--color--contrast);
}

.product-card .wp-block-woocommerce-product-price {
	margin: var(--wp--preset--spacing--1) 0 var(--wp--preset--spacing--2);
}

.product-card .wc-block-components-product-button,
.product-card .wc-block-components-product-button .wc-block-components-product-button__button {
	width: 100%;
	margin-inline: 0;
}

.product-card .wc-block-components-product-button__button {
	padding-inline: var(--wp--preset--spacing--3);
	white-space: nowrap;
}

.product-card .wc-block-components-product-button__button::before {
	content: "";
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	background-color: currentColor;
	-webkit-mask: url("assets/icons/bag.svg") center / contain no-repeat;
	mask: url("assets/icons/bag.svg") center / contain no-repeat;
}

.product-card .wc-block-components-product-button__button.is-added::before {
	-webkit-mask-image: url("assets/icons/check.svg");
	mask-image: url("assets/icons/check.svg");
	animation: fav-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card .wc-block-components-product-button__button.is-added {
	animation: btn-added 0.5s ease;
}

@keyframes btn-added {
	0% { transform: scale(1); }
	40% { transform: scale(0.96); }
	100% { transform: scale(1); }
}

.product-card .wc-block-components-product-price del {
	margin-right: var(--wp--preset--spacing--2);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
}

.product-card .wc-block-components-product-price ins {
	text-decoration: none;
}

.product-card .woocommerce-price-suffix {
	white-space: nowrap;
	margin-left: var(--wp--preset--spacing--1);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
}

.product-card .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--2);
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
}

/* ─── Franja en movimiento y cifras (FrontBlocks) ────────────────────────── */

.marquee-strip {
	padding: var(--wp--preset--spacing--3) 0;
	font-weight: 600;
}

.marquee-strip .gb-marquee-infinite-scroll {
	margin: 0;
}

.stat-card {
	height: 100%;
	padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--4);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--base);
	text-align: center;
}

.stat-card__number {
	margin: 0;
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 1.1;
}

.stat-card__label {
	margin: 0;
}

/* Botón de volver arriba (FrontBlocks) con los colores de la tienda. */
body .frbl-scroll-top {
	background-color: var(--wp--preset--color--pink);
	box-shadow: var(--wp--preset--shadow--float);
}

body .frbl-scroll-top:hover {
	background-color: var(--wp--preset--color--pink-dark);
	box-shadow: var(--wp--preset--shadow--float);
}

/* ─── Carrusel de productos (FrontBlocks) ────────────────────────────────── */

/* La pista recorta lo que sale de ella: se amplía en vertical para que se vea
   la tarjeta elevada y su sombra al pasar el ratón. */
.product-carousel .glide__track {
	margin: calc(-1 * var(--wp--preset--spacing--2)) 0 calc(-1 * var(--wp--preset--spacing--8));
	padding: var(--wp--preset--spacing--2) 0 var(--wp--preset--spacing--8);
}

.product-carousel .wp-block-post-template.glide__slides,
.product-carousel .wp-block-post-template .glide__slide {
	overflow: visible;
}

.product-carousel .frontblocks .glide__arrows--side .glide__arrow {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid var(--wp--preset--color--border-button);
	border-radius: var(--wp--preset--border-radius--full);
	box-shadow: var(--wp--preset--shadow--card);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-carousel .frontblocks .glide__arrows--side .glide__arrow:hover {
	border-color: var(--wp--preset--color--primary);
}

.product-carousel .frontblocks .glide__arrows--side .glide__arrow--left {
	left: var(--wp--preset--spacing--2);
}

.product-carousel .frontblocks .glide__arrows--side .glide__arrow--right {
	right: var(--wp--preset--spacing--2);
}

/* Con espacio a los lados, las flechas quedan a medias fuera del carrusel. */
@media (min-width: 1320px) {
	.product-carousel .frontblocks .glide__arrows--side .glide__arrow--left {
		left: -1.375rem;
	}

	.product-carousel .frontblocks .glide__arrows--side .glide__arrow--right {
		right: -1.375rem;
	}
}

/* ─── Archivo de productos ───────────────────────────────────────────────── */

.archive-breadcrumbs {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
}

.archive-breadcrumbs a {
	color: var(--wp--preset--color--muted);
}

.archive-breadcrumbs .breadcrumb-sep {
	margin: 0 var(--wp--preset--spacing--2);
}

/* Titan One solo tiene un peso, muy grueso: en móvil el título de categoría baja de tamaño
   (el trazo se ve menos pesado) y gana algo de aire entre letras. */
@media (max-width: 781px) {
	.archive-header .wp-block-query-title {
		font-size: 1.75rem;
		line-height: 1.2;
		letter-spacing: 0.02em;
	}
}

.wp-block-group.archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--8);
	align-items: start;
}

.wp-block-group.archive-layout > * + * {
	margin-block-start: 0;
}

@media (min-width: 1024px) {
	.wp-block-group.archive-layout {
		grid-template-columns: minmax(16rem, 18.75rem) minmax(0, 1fr);
	}
}

.archive-sidebar {
	--wc-product-filter-price-slider: var(--wp--preset--color--primary);
	--wc-product-filter-price-slider-handle: var(--wp--preset--color--base);
	--wc-product-filter-price-slider-handle-border: var(--wp--preset--color--primary);
}

.filter-card {
	padding: var(--wp--preset--spacing--5);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
}

.wp-block-woocommerce-product-filters.filter-card {
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--5);
}

/* En móvil WooCommerce muestra un botón que abre los filtros en una capa: sin tarjeta. */
@media (max-width: 600px) {
	.wp-block-woocommerce-product-filters.filter-card {
		padding: 0;
		border: 0;
	}
}

.filter-card__title {
	margin: 0;
	font-weight: 600;
}

.filter-card__subtitle {
	margin: 0 0 var(--wp--preset--spacing--3);
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 700;
}

.filter-card .wc-block-product-filter-clear-button .wp-block-button__link,
.filter-card .wc-block-product-filter-clear-button button {
	padding: var(--wp--preset--spacing--2) 0;
	border: 0;
	background: none;
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
}

.filter-card .wc-block-product-filter-price-slider__content {
	row-gap: var(--wp--preset--spacing--3);
}

.filter-card .wc-block-product-filter-price-slider__content input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	height: 40px;
	padding: 0 var(--wp--preset--spacing--3);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--sm);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--contrast);
}

.filter-categories ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.filter-categories .wc-block-product-categories-list--depth-0 > li {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.filter-categories .wc-block-product-categories-list--depth-0 > li:last-child {
	border-bottom: 0;
}

.filter-categories a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--wp--preset--spacing--3) 0;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
}

.filter-categories a:hover,
.filter-categories a.is-current {
	color: var(--wp--preset--color--primary-dark);
}

.filter-categories a.is-current,
.filter-categories .is-open > a {
	font-weight: 700;
}

.filter-categories li:has(> ul) > a::after {
	content: "+";
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.filter-categories li.is-open:has(> ul) > a::after {
	content: "−";
	color: var(--wp--preset--color--primary-dark);
}

.filter-categories .wc-block-product-categories-list--depth-1 {
	display: none;
	padding: 0 0 var(--wp--preset--spacing--2) var(--wp--preset--spacing--3);
}

.filter-categories .is-open > .wc-block-product-categories-list--depth-1 {
	display: block;
}

.filter-categories .wc-block-product-categories-list--depth-1 a {
	padding: var(--wp--preset--spacing--2) 0;
	font-weight: 400;
}

.filter-categories .wc-block-product-categories-list--depth-1 a.is-current {
	font-weight: 700;
}

.archive-products .wc-block-product-template__responsive.wc-block-product-template {
	grid-template-columns: repeat(auto-fill, minmax(min(13.125rem, 100%), 1fr));
	gap: var(--wp--preset--spacing--5);
}

.archive-pagination {
	gap: var(--wp--preset--spacing--2);
	margin-top: var(--wp--preset--spacing--10);
}

.archive-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: var(--wp--preset--spacing--2);
}

.archive-pagination .page-numbers,
.archive-pagination .wp-block-query-pagination-previous,
.archive-pagination .wp-block-query-pagination-next {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--full);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

.archive-pagination .wp-block-query-pagination-previous,
.archive-pagination .wp-block-query-pagination-next {
	display: flex;
	gap: var(--wp--preset--spacing--2);
	padding: 0 var(--wp--preset--spacing--5);
	color: var(--wp--preset--color--primary-dark);
	white-space: nowrap;
}

.archive-pagination .page-numbers.current {
	border-color: var(--wp--preset--color--pink);
	background: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--base);
}

.archive-pagination a:hover {
	background: var(--wp--preset--color--primary-light);
}

.archive-seo__box h2 {
	margin: 0 0 var(--wp--preset--spacing--4);
	font-size: var(--wp--preset--font-size--title);
}

.archive-seo__box h3 {
	margin: var(--wp--preset--spacing--6) 0 var(--wp--preset--spacing--2);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--lg);
}

.archive-seo__box p {
	margin: 0 0 var(--wp--preset--spacing--3);
}

.archive-seo__box p:last-child {
	margin-bottom: 0;
}

/* ─── Ficha de producto ──────────────────────────────────────────────────── */

.wp-block-group.product-layout,
.wp-block-group.product-detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--10);
	align-items: start;
}

.wp-block-group.product-layout > * + *,
.wp-block-group.product-detail-layout > * + * {
	margin-block-start: 0;
}

@media (min-width: 1024px) {
	.wp-block-group.product-layout {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: var(--wp--preset--spacing--14);
	}

	.wp-block-group.product-detail-layout {
		grid-template-columns: minmax(0, 1fr) minmax(18rem, 21.25rem);
		gap: var(--wp--preset--spacing--12);
	}
}

.product-gallery {
	position: relative;
}

@media (max-width: 1023px) {
	.product-gallery {
		width: 100%;
		max-width: 36rem;
		margin-inline: auto;
	}
}

.woocommerce .product-gallery .wp-block-woocommerce-product-image-gallery {
	max-width: none;
}

.product-gallery .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery.images {
	float: none;
	width: 100%;
	margin: 0;
}

.product-gallery .flex-viewport {
	border-radius: var(--wp--preset--border-radius--title);
	background: var(--wp--preset--color--surface);
}

.product-gallery .woocommerce-product-gallery__image {
	background: var(--wp--preset--color--surface);
}

.product-gallery .woocommerce-product-gallery__image img {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: var(--wp--preset--spacing--8);
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Etiqueta de oferta de la ficha: misma píldora rosa que en las tarjetas. */
.woocommerce .product-gallery span.onsale {
	top: var(--wp--preset--spacing--4);
	right: auto;
	left: var(--wp--preset--spacing--4);
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: var(--wp--preset--spacing--1) 0.625rem;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1.5;
}

.product-gallery .product-card__fav {
	top: var(--wp--preset--spacing--4);
	right: var(--wp--preset--spacing--4);
}

.product-gallery .flex-control-thumbs {
	display: flex;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.woocommerce .product-gallery .woocommerce-product-gallery.images .flex-control-thumbs {
	margin-top: var(--wp--preset--spacing--4);
}

.product-gallery__thumbs {
	position: relative;
}

.product-gallery__thumbs-btn {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1.5px solid var(--wp--preset--color--border-button);
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
	box-shadow: var(--wp--preset--shadow--card);
	cursor: pointer;
	transform: translateY(-50%);
}

.product-gallery__thumbs-btn[hidden] {
	display: none;
}

.product-gallery__thumbs-btn::before {
	content: "";
	width: 0.875rem;
	height: 0.875rem;
	background-color: currentColor;
	-webkit-mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
	mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
}

.product-gallery__thumbs-btn--prev {
	left: calc(-1 * var(--wp--preset--spacing--2));
}

.product-gallery__thumbs-btn--prev::before {
	transform: rotate(90deg);
}

.product-gallery__thumbs-btn--next {
	right: calc(-1 * var(--wp--preset--spacing--2));
}

.product-gallery__thumbs-btn--next::before {
	transform: rotate(-90deg);
}

.product-gallery__thumbs-btn:hover {
	background: var(--wp--preset--color--primary-light);
}

.product-gallery .flex-control-thumbs::-webkit-scrollbar {
	display: none;
}

.product-gallery .flex-control-thumbs li {
	flex: 0 0 calc((100% - 2.5rem) / 5);
	float: none;
	width: auto;
	margin: 0;
	aspect-ratio: 1;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--surface);
	scroll-snap-align: start;
}

.product-gallery .flex-control-thumbs li:has(.flex-active) {
	border-color: var(--wp--preset--color--primary);
}

.product-gallery .flex-control-thumbs img {
	width: 100%;
	height: 100%;
	padding: var(--wp--preset--spacing--1);
	box-sizing: border-box;
	object-fit: contain;
	mix-blend-mode: multiply;
	opacity: 1;
}

.product-buy__brand,
.product-buy__brand a,
.product-buy__sku {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-weight: 700;
	text-transform: uppercase;
}

.product-buy__sku {
	font-weight: 400;
	text-transform: none;
}

.product-buy__title {
	margin: 0;
}

.product-buy__price {
	gap: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
}

.product-buy__price .wc-block-components-product-price {
	margin: 0;
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--title);
	font-weight: 600;
	line-height: 1;
}

.product-buy__price .woocommerce-price-suffix {
	margin-left: var(--wp--preset--spacing--2);
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 400;
}

.product-buy__price .wc-block-components-product-stock-indicator {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	margin: 0;
	color: var(--wp--preset--color--accent);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}

.product-buy__price .wc-block-components-product-stock-indicator::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: var(--wp--preset--border-radius--full);
	background: currentColor;
}

.product-buy__price .wc-block-components-product-stock-indicator--out-of-stock {
	color: var(--wp--preset--color--primary-dark);
}

.product-buy__price .wc-block-components-product-stock-indicator--available-on-backorder {
	color: var(--wp--preset--color--muted);
}

/* El formulario repite el stock que ya muestra el indicador. */
.product-buy .wc-block-add-to-cart-form > .stock {
	display: none;
}

.product-buy form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--3);
	margin: 0;
}

.product-buy form.cart .quantity {
	display: flex;
	align-items: center;
	height: 52px;
	border: 1.5px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--full);
}

.product-buy form.cart .qty {
	width: 4.5rem;
	height: 100%;
	border: 0;
	background: none;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-weight: 700;
	text-align: center;
}

/* Con los botones − y + el campo se estrecha y pierde las flechas nativas. */
.product-buy form.cart .quantity.has-stepper .qty {
	width: 2.75rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

.product-buy form.cart .quantity .qty::-webkit-inner-spin-button,
.product-buy form.cart .quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.product-buy form.cart .quantity__btn {
	position: relative;
	flex: none;
	width: 2.75rem;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--wp--preset--border-radius--full);
	background: none;
	color: var(--wp--preset--color--primary-dark);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.product-buy form.cart .quantity__btn::before,
.product-buy form.cart .quantity__btn--plus::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 0.875rem;
	height: 2px;
	border-radius: 2px;
	background-color: currentColor;
	transform: translate(-50%, -50%);
}

.product-buy form.cart .quantity__btn--plus::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.product-buy form.cart .quantity__btn:hover:not(:disabled),
.product-buy form.cart .quantity__btn:focus-visible {
	background-color: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

.product-buy form.cart .quantity__btn:disabled {
	color: var(--wp--preset--color--border-strong);
	cursor: not-allowed;
}

.woocommerce .product-buy .wc-block-add-to-cart-form form.cart button.single_add_to_cart_button {
	display: flex;
	flex: 1 1 13.75rem;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--3);
	height: 52px;
	padding-block: 0;
	padding-inline: var(--wp--preset--spacing--4);
	font-size: var(--wp--preset--font-size--md);
	white-space: nowrap;
}

.woocommerce .product-buy .wc-block-add-to-cart-form form.cart button.single_add_to_cart_button::before {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: url("assets/icons/bag.svg") center / contain no-repeat;
	mask: url("assets/icons/bag.svg") center / contain no-repeat;
}

.product-buy__benefits {
	padding: var(--wp--preset--spacing--4) 0;
	border-block: 1px solid var(--wp--preset--color--border);
}

.product-buy__benefits .icon-before {
	display: flex;
	margin: 0;
}

.product-buy__benefits .icon-before::before {
	background-color: var(--wp--preset--color--primary);
}

.product-facts {
	background: var(--wp--preset--color--base);
	border: 0;
}

@media (min-width: 1024px) {
	.product-detail-aside {
		position: sticky;
		top: var(--sticky-top);
	}
}

.product-facts__title {
	margin: 0 0 var(--wp--preset--spacing--3);
	font-size: var(--wp--preset--font-size--md);
}

.product-facts__list {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
}

.product-facts__list dt {
	color: var(--wp--preset--color--muted);
}

.product-facts__list dd {
	margin: 0;
	font-weight: 600;
}

.faq-item {
	margin: 0 0 var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--1) var(--wp--preset--spacing--5);
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--base);
}

.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--3);
	min-height: 3.25rem;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	flex: none;
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 400;
	line-height: 1;
}

.faq-item[open] summary::after {
	content: "−";
}

h3 + .faq-item {
	margin-top: var(--wp--preset--spacing--3);
}

.faq-item > :not(summary) {
	margin-block: 0 var(--wp--preset--spacing--4);
	font-size: var(--wp--preset--font-size--base);
}

/* ─── Avisos de WooCommerce ──────────────────────────────────────────────── */

.wc-block-components-notice-banner {
	border-radius: var(--wp--preset--border-radius--md);
}

.wc-block-components-notice-banner.is-success,
.woocommerce-message {
	border-color: var(--wp--preset--color--border-button);
	background-color: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

.wc-block-components-notice-banner.is-success > svg {
	background-color: var(--wp--preset--color--primary);
	fill: var(--wp--preset--color--base);
}

.wc-block-components-notice-banner.is-success a,
.woocommerce-message a {
	color: var(--wp--preset--color--primary-dark);
}

/* ─── Carrito y finalización de compra ───────────────────────────────────── */

.wp-block-woocommerce-cart .wc-block-cart__sidebar,
.wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
	align-self: start;
	padding: var(--wp--preset--spacing--5);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--surface);
}

.wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
	padding: 0;
}

@media (min-width: 783px) {
	.wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
		position: sticky;
		top: var(--sticky-top);
		align-self: flex-start;
	}
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 600;
}

.wp-block-woocommerce-cart .wc-block-cart-items__header,
.wp-block-woocommerce-cart .wc-block-cart__totals-title {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
}

.wp-block-woocommerce-cart .wc-block-cart-items__row {
	border-color: var(--wp--preset--color--border);
}

.wp-block-woocommerce-cart .wc-block-cart-item__image img,
.wp-block-woocommerce-checkout .wc-block-components-order-summary-item__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--surface);
	object-fit: contain;
}

/* Solo en la tabla de escritorio: en móvil y tablet WooCommerce usa una cuadrícula con la columna de la imagen de 80 px. */
.wp-block-woocommerce-cart .is-large table.wc-block-cart-items td.wc-block-cart-item__image {
	width: 9.5rem;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image {
	flex: 0 0 5rem;
	width: 5rem;
}

.wp-block-woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__image > img {
	width: 100%;
	max-width: none;
}

.wp-block-woocommerce-cart .wc-block-cart-items .wc-block-components-product-name,
.wp-block-woocommerce-checkout .wc-block-components-product-name {
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

.wp-block-woocommerce-cart .wc-block-components-product-name:hover {
	color: var(--wp--preset--color--primary-dark);
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector,
.wp-block-woocommerce-checkout .wc-block-components-quantity-selector {
	border-radius: var(--wp--preset--border-radius--full);
}

.wp-block-woocommerce-cart .wc-block-components-quantity-selector::after,
.wp-block-woocommerce-checkout .wc-block-components-quantity-selector::after {
	border-color: var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--full);
}

.wp-block-woocommerce-cart .wc-block-cart-item__remove-link,
.wp-block-woocommerce-cart .wc-block-cart-item__remove-link:hover {
	color: var(--wp--preset--color--primary-dark);
}

.wp-block-woocommerce-cart .wc-block-components-product-price__value,
.wp-block-woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 600;
}

.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
.wp-block-woocommerce-checkout .wc-block-components-title {
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 600;
}

.wp-block-woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input input[type],
.wp-block-woocommerce-checkout .wc-block-checkout__main .wc-block-components-textarea,
.wp-block-woocommerce-checkout .wc-block-checkout__main .wc-blocks-components-select .wc-blocks-components-select__select,
.wp-block-woocommerce-checkout .wc-block-checkout__main .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wp-block-woocommerce-cart .wc-block-components-totals-coupon__input input {
	border-color: var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--sm);
	background-color: var(--wp--preset--color--base);
}

.wp-block-woocommerce-checkout .wc-block-checkout__main .wc-block-components-text-input input[type]:focus,
.wp-block-woocommerce-checkout .wc-block-checkout__main .wc-block-components-textarea:focus,
.wp-block-woocommerce-checkout .wc-block-checkout__main .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary);
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
	min-height: 52px;
	border-radius: var(--wp--preset--border-radius--full);
	font-weight: 700;
}

/* ─── Búsqueda en vivo ───────────────────────────────────────────────────── */

.wp-block-search.site-header__search,
.wp-block-search.search-pill {
	position: relative;
}

.live-search {
	position: absolute;
	top: calc(100% + var(--wp--preset--spacing--2));
	right: 0;
	left: 0;
	z-index: 50;
	max-height: min(32rem, 70vh);
	overflow-y: auto;
	padding: var(--wp--preset--spacing--2);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--card);
}

.live-search[hidden] {
	display: none;
}

.live-search__status {
	margin: 0;
	padding: var(--wp--preset--spacing--4);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--sm);
}

.live-search__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--3);
	border-radius: var(--wp--preset--border-radius--md);
	color: var(--wp--preset--color--contrast);
}

.live-search__item:hover,
.live-search__item.is-active {
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--contrast);
}

.live-search__thumb {
	display: block;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--sm);
	background: var(--wp--preset--color--surface);
}

.live-search__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.live-search__name {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	line-height: 1.4;
}

.live-search__price {
	color: var(--wp--preset--color--primary-dark);
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 600;
	white-space: nowrap;
}

.live-search__all {
	display: block;
	margin-top: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--3);
	border-top: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-align: center;
}

.live-search__all:hover {
	color: var(--wp--preset--color--primary-dark);
}

/* ─── Mi cuenta ──────────────────────────────────────────────────────────── */

/* Aviso informativo: azul suave de la paleta (secondary). */
.wc-block-components-notice-banner.is-info,
.woocommerce-info {
	border-color: var(--wp--preset--color--secondary);
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--secondary-dark);
}

.wc-block-components-notice-banner__content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--3);
}

/* WooCommerce fija fondo, color y relleno de este enlace con !important: se mantiene su
   estilo de enlace subrayado y aquí solo se ajusta lo demás. */
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward {
	order: 2;
	float: none;
	margin: 0;
	opacity: 1;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}

.wc-block-components-notice-banner.is-info a {
	color: var(--wp--preset--color--secondary-dark);
	font-weight: 700;
}

.wc-block-components-notice-banner.is-info > svg {
	background-color: var(--wp--preset--color--secondary-dark);
	fill: var(--wp--preset--color--base);
}

/* El shortcode no es un bloque ancho: se libera del ancho de contenido de WordPress. */
.woocommerce-account .wp-block-post-content > .woocommerce {
	max-width: none;
}

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--6) var(--wp--preset--spacing--10);
	align-items: start;
}

/* El clearfix de WooCommerce se comportaría como un elemento más de la rejilla. */
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
	content: none;
}

@media (min-width: 900px) {
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		grid-template-columns: 16rem minmax(0, 1fr);
	}
}

.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	padding: var(--wp--preset--spacing--3);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--surface);
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--1);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 899px) {
	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
	}
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
	border-radius: var(--wp--preset--border-radius--md);
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.woocommerce-account .woocommerce-MyAccount-content > :first-child {
	margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content a:not(.button):hover {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
}

/* Subtítulos y bloques de datos dentro de la cuenta */
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	margin: var(--wp--preset--spacing--8) 0 var(--wp--preset--spacing--4);
	font-size: var(--wp--preset--font-size--xl);
}

.woocommerce-account .woocommerce-customer-details address {
	padding: var(--wp--preset--spacing--5);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--base);
	font-style: normal;
	line-height: 1.7;
}

/* Tabla de pedidos */
.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.shop_table {
	width: 100%;
	border: 1px solid var(--wp--preset--color--border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--wp--preset--border-radius--lg);
	overflow: hidden;
	font-size: var(--wp--preset--font-size--sm);
}

.woocommerce-account table.shop_table th {
	padding: var(--wp--preset--spacing--4);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	text-align: left;
	text-transform: uppercase;
}

.woocommerce-account table.shop_table tbody th {
	padding: var(--wp--preset--spacing--4);
	border-top: 1px solid var(--wp--preset--color--border);
	background: transparent;
	color: inherit;
	font-size: var(--wp--preset--font-size--sm);
	text-transform: none;
}

.woocommerce-account table.shop_table td {
	padding: var(--wp--preset--spacing--4);
	border-top: 1px solid var(--wp--preset--color--border);
	vertical-align: middle;
}

.woocommerce-account .woocommerce-orders-table__cell-order-number a {
	font-weight: 700;
}

.woocommerce-account .woocommerce-orders-table__cell-order-status {
	font-weight: 700;
}

@media (max-width: 768px) {
	.woocommerce-account .woocommerce-orders-table__cell-order-status::before {
		color: var(--wp--preset--color--contrast);
	}
}

@media (min-width: 769px) {
	.woocommerce-account .woocommerce-orders-table__cell-order-status::before {
		content: "";
		display: inline-block;
		width: 0.5rem;
		height: 0.5rem;
		margin-right: var(--wp--preset--spacing--2);
		border-radius: var(--wp--preset--border-radius--full);
		background: currentColor;
	}
}

.woocommerce-account .woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status {
	color: var(--wp--preset--color--accent);
}

.woocommerce-account .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status {
	color: var(--wp--preset--color--primary-dark);
}

.woocommerce-account .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-orders-table__row--status-pending .woocommerce-orders-table__cell-order-status {
	color: var(--wp--preset--color--muted);
}

.woocommerce-account .woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status,
.woocommerce-account .woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status {
	color: var(--wp--preset--color--primary-dark);
}

/* Botones secundarios dentro de la cuenta (Ver, Pagar, Cancelar…) */
.woocommerce-account .woocommerce-MyAccount-content a.button,
.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 var(--wp--preset--spacing--4);
	border: 1.5px solid var(--wp--preset--color--border-button);
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content a.button:hover,
.woocommerce-account .woocommerce-MyAccount-content a.woocommerce-button:hover {
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

/* Direcciones */
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after {
	content: none;
}

.woocommerce-account .woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: var(--wp--preset--spacing--5);
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: auto;
	padding: var(--wp--preset--spacing--5);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--base);
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address .woocommerce-Address-title.title::before,
.woocommerce-account .woocommerce-Addresses .woocommerce-Address .woocommerce-Address-title.title::after {
	content: none;
}

.woocommerce-account .woocommerce-Address-title a.edit {
	float: none;
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-start;
	gap: var(--wp--preset--spacing--1) var(--wp--preset--spacing--4);
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
}

.woocommerce-account .woocommerce-Address address {
	margin: var(--wp--preset--spacing--3) 0 0;
	font-style: normal;
}

/* Formularios: acceso, detalles de la cuenta y direcciones */
.woocommerce-account .woocommerce form .form-row label {
	margin-bottom: var(--wp--preset--spacing--1);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}

.woocommerce-account .woocommerce form .form-row input.input-text,
.woocommerce-account .woocommerce form .form-row select,
.woocommerce-account .woocommerce form .form-row textarea {
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 var(--wp--preset--spacing--4);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--sm);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.woocommerce-account .woocommerce form .form-row textarea {
	padding-block: var(--wp--preset--spacing--3);
}

.woocommerce-account .woocommerce form .form-row input.input-text:focus,
.woocommerce-account .woocommerce form .form-row select:focus,
.woocommerce-account .woocommerce form .form-row textarea:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary);
	outline: none;
}

.woocommerce-account .woocommerce form fieldset {
	margin: var(--wp--preset--spacing--6) 0 0;
	padding: var(--wp--preset--spacing--5);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
}

.woocommerce-account .woocommerce form fieldset legend {
	padding: 0 var(--wp--preset--spacing--2);
	font-family: var(--wp--preset--font-family--roboto);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
}

.woocommerce-account .woocommerce form button.button,
.woocommerce-account .woocommerce form .woocommerce-Button {
	min-height: 48px;
	padding: 0 var(--wp--preset--spacing--8);
	border-radius: var(--wp--preset--border-radius--full);
	font-weight: 700;
}

/* Acceso y recuperación de contraseña: tarjeta centrada */
.woocommerce-account .woocommerce > h2 {
	max-width: 32rem;
	margin-inline: auto;
	font-size: var(--wp--preset--font-size--title);
}

.woocommerce-account .woocommerce form.woocommerce-form-login,
.woocommerce-account .woocommerce form.woocommerce-form-register,
.woocommerce-account .woocommerce form.woocommerce-ResetPassword,
.woocommerce-account .woocommerce form.lost_reset_password {
	box-sizing: border-box;
	max-width: 32rem;
	margin: var(--wp--preset--spacing--4) auto 0;
	padding: var(--wp--preset--spacing--8);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--surface);
}

.woocommerce-account .woocommerce form.woocommerce-form-login .woocommerce-form-login__submit {
	margin-right: var(--wp--preset--spacing--4);
}

.woocommerce-account .woocommerce .lost_password {
	margin-top: var(--wp--preset--spacing--4);
}

/* ─── Favoritos ──────────────────────────────────────────────────────────── */

.favorites-link {
	position: relative;
}

.favorites-count {
	position: absolute;
	top: 2px;
	right: 2px;
	display: grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3125rem;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1;
}

.favorites-count[hidden] {
	display: none;
}

.favorites-empty {
	padding-block: var(--wp--preset--spacing--12);
}

.favorites-empty__icon {
	--icon-size: 2.5rem;
	display: grid;
	place-items: center;
	margin: 0 auto;
	width: 5rem;
	height: 5rem;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
}

/* ─── Entrada destacada del blog ─────────────────────────────────────────── */

.post-feature {
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--xl);
	background: var(--wp--preset--color--base);
}

.post-feature__media {
	flex: 1 1 320px;
	box-sizing: border-box;
	max-width: 520px;
	margin: 0;
	padding: var(--wp--preset--spacing--6);
	background: var(--wp--preset--color--surface);
}

.post-feature__media img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.post-feature__body {
	flex: 999 1 320px;
}

.post-feature__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	height: 44px;
	padding: 0 var(--wp--preset--spacing--5);
	border: 1.5px solid var(--wp--preset--color--border-button);
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
	text-decoration: none;
}

.post-feature__more:hover {
	background: var(--wp--preset--color--primary-light);
}

.post-feature__title a {
	color: var(--wp--preset--color--contrast);
}

/* ─── Texto SEO ──────────────────────────────────────────────────────────── */

.seo-box__intro {
	flex: 1 1 320px;
	max-width: 440px;
}

.seo-box__cards {
	flex: 999 1 420px;
}

.seo-box__card {
	border-radius: var(--wp--preset--border-radius--lg);
	background: var(--wp--preset--color--base);
}

/* ─── Pie de página ──────────────────────────────────────────────────────── */

.site-footer {
	padding-top: 0;
	padding-bottom: 0;
	border-top: 1px solid var(--wp--preset--color--border);
}

.site-footer a {
	color: var(--wp--preset--color--contrast-soft);
}

.site-footer a:hover {
	color: var(--wp--preset--color--primary-dark);
}

.site-footer .footer-contact a:first-child {
	font-weight: 700;
}

.footer-social {
	display: flex;
	gap: var(--wp--preset--spacing--3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-social__link {
	--icon-size: 1.375rem;
	display: flex;
	color: var(--wp--preset--color--pink);
	transition: color 0.15s ease;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
	color: var(--wp--preset--color--pink-dark);
}

.footer-chips {
	gap: var(--wp--preset--spacing--2);
}

.footer-chip {
	margin: 0;
	padding: 6px var(--wp--preset--spacing--3);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--base);
}

.wp-block-navigation.footer-nav {
	font-family: var(--wp--preset--font-family--roboto);
	font-weight: 400;
}

.footer-nav .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--2);
	align-items: flex-start;
}

.footer-nav .wp-block-navigation-item__content {
	padding: 0;
}

.footer-legal {
	border-top: 1px solid var(--wp--preset--color--border-strong);
}

.footer-legal__links {
	margin: 0;
}

.pay-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pay-list li {
	display: flex;
	margin: 0;
}

.pay-list img {
	display: block;
	width: auto;
	height: 32px;
}

.whatsapp-float {
	position: fixed;
	right: var(--wp--preset--spacing--5);
	bottom: var(--wp--preset--spacing--5);
	z-index: 90;
	margin: 0;
}

.whatsapp-float a {
	--icon-size: 1.75rem;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--whatsapp);
	color: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--float);
}

.seo-box{
	border-radius: var(--wp--preset--border-radius--lg);
}

.whatsapp-float a {
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.whatsapp-float a:hover,
.whatsapp-float a:focus-visible {
	background: var(--wp--preset--color--whatsapp-dark);
	color: var(--wp--preset--color--base);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.whatsapp-float a {
		transition: none;
	}

	.whatsapp-float a:hover,
	.whatsapp-float a:focus-visible {
		transform: none;
	}
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 781px) {
	.site-header__actions {
		margin-left: auto;
	}

	.hero-home__actions {
		width: 100%;
	}

	.post-feature__media {
		max-width: none;
	}

	.wp-block-navigation__responsive-container.is-menu-open {
		background-color: var(--wp--preset--color--base);
		padding: var(--wp--preset--spacing--8);
	}
}

@media (max-width: 600px) {
	.promo-bar__inner {
		justify-content: flex-start;
	}
}

/* Compensa la barra de administración si hay elementos fijos. */
.admin-bar .whatsapp-float {
	bottom: var(--wp--preset--spacing--5);
}

/*
 * El botón «volver arriba» de FrontBlocks se ancla por defecto en la misma esquina
 * que el WhatsApp flotante (abajo a la derecha) y los dos acaban superpuestos. El
 * WhatsApp se queda en su sitio de siempre y el de volver arriba sube por encima.
 */
.frbl-scroll-top.frbl-scroll-top--right {
	bottom: calc(var(--wp--preset--spacing--5) + 56px + var(--wp--preset--spacing--3));
}

@media (max-width: 768px) {
	.frbl-scroll-top.frbl-scroll-top--right {
		bottom: calc(var(--wp--preset--spacing--5) + 56px + var(--wp--preset--spacing--2));
	}
}

/*
 * En el sitio el botón de volver arriba está configurado a la izquierda, donde
 * FrontConsent (el plugin de cookies, distinto de FrontBlocks) ancla su icono para
 * reabrir el panel de cookies: 44px de alto, pegado a 16px del borde. El de volver
 * arriba sube por encima para no montarse encima de ese icono.
 */
.frbl-scroll-top.frbl-scroll-top--left {
	bottom: calc(16px + 44px + var(--wp--preset--spacing--3));
}

/* Mapa del sitio en HTML */
.sitemap-html {
	display: grid;
	gap: var(--wp--preset--spacing--6);
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	align-items: start;
}

.sitemap-html h2 {
	grid-column: 1 / -1;
	margin: var(--wp--preset--spacing--4) 0 0;
}

.sitemap-html ul {
	grid-column: 1 / -1;
	margin: 0;
	padding-left: 1.25rem;
	columns: 2 240px;
}

.sitemap-html li {
	margin-bottom: 0.375rem;
	break-inside: avoid;
}

.sitemap-html ul ul {
	columns: 1;
	margin-top: 0.375rem;
}

/* ─── Gravity Forms: estilo de marca ─────────────────────────────────────── */
/* El .entry-content añade especificidad para ganar a las reglas propias del
 * plugin sin recurrir a !important. */

.entry-content .gform_wrapper .gfield_label,
.entry-content .gform_wrapper legend.gfield_label {
	margin-bottom: var(--wp--preset--spacing--1);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.entry-content .gform_wrapper .gfield_required_text,
.entry-content .gform_wrapper .gfield_required {
	color: var(--wp--preset--color--primary-dark);
}

.entry-content .gform_wrapper input[type="text"],
.entry-content .gform_wrapper input[type="email"],
.entry-content .gform_wrapper input[type="tel"],
.entry-content .gform_wrapper input[type="number"],
.entry-content .gform_wrapper input[type="url"],
.entry-content .gform_wrapper select,
.entry-content .gform_wrapper textarea {
	box-sizing: border-box;
	min-height: 48px;
	padding: 0 var(--wp--preset--spacing--4);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--wp--preset--border-radius--sm);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font: inherit;
}

.entry-content .gform_wrapper textarea {
	padding-block: var(--wp--preset--spacing--3);
}

.entry-content .gform_wrapper select {
	height: 48px;
	line-height: 46px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: var(--wp--preset--spacing--8);
	background-image: url("assets/icons/chevron-down.svg");
	background-repeat: no-repeat;
	background-position: right var(--wp--preset--spacing--4) center;
	background-size: 14px;
}

.entry-content .gform_wrapper input[type="text"]:focus,
.entry-content .gform_wrapper input[type="email"]:focus,
.entry-content .gform_wrapper input[type="tel"]:focus,
.entry-content .gform_wrapper input[type="number"]:focus,
.entry-content .gform_wrapper input[type="url"]:focus,
.entry-content .gform_wrapper select:focus,
.entry-content .gform_wrapper textarea:focus {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary);
	outline: none;
}

.entry-content .gform_wrapper input[type="file"] {
	display: inline-flex;
	align-items: center;
	border: 0;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--contrast-soft);
}

.entry-content .gform_wrapper input[type="file"]::file-selector-button {
	display: inline-flex;
	align-items: center;
	margin-right: var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
	border: 0;
	border-radius: var(--wp--preset--border-radius--full);
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.entry-content .gform_wrapper .ginput_container_consent input[type="checkbox"] {
	accent-color: var(--wp--preset--color--pink);
}

.entry-content .gform_wrapper .gfield_consent_label {
	font-size: var(--wp--preset--font-size--sm);
}

.entry-content .gform_wrapper .gform_footer,
.entry-content .gform_wrapper .gform_page_footer {
	margin-top: var(--wp--preset--spacing--5);
}

.entry-content .gform_wrapper.gform-theme.gform-theme--framework .gform_footer .button,
.entry-content .gform_wrapper.gform-theme.gform-theme--framework .gform_footer input[type="submit"],
.entry-content .gform_wrapper.gform-theme.gform-theme--framework button.gform_button {
	min-height: 48px;
	padding: 0 var(--wp--preset--spacing--8);
	border: 0;
	border-radius: var(--wp--preset--border-radius--full);
	background-color: var(--wp--preset--color--pink);
	color: var(--wp--preset--color--base);
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.entry-content .gform_wrapper.gform-theme.gform-theme--framework .gform_footer .button:hover,
.entry-content .gform_wrapper.gform-theme.gform-theme--framework .gform_footer input[type="submit"]:hover,
.entry-content .gform_wrapper.gform-theme.gform-theme--framework button.gform_button:hover {
	background-color: var(--wp--preset--color--pink-dark);
}

.entry-content .gform_wrapper .validation_message,
.entry-content .gform_wrapper .gfield_validation_message,
.entry-content .gform_wrapper .gform_submission_error {
	color: var(--wp--preset--color--primary-dark);
}

.entry-content .gform_wrapper .gfield_validation_message,
.entry-content .gform_wrapper .gfield--type-fileupload .gfield_description {
	font-size: var(--wp--preset--font-size--xs);
}
