/*
 * TruTech · componentes del tema.
 * Los tokens (colores, tipografías, radios) vienen de theme.json como variables --wp--…
 * Aquí no se escriben colores sueltos: se usan los alias de abajo.
 *
 *  1. Alias de tokens
 *  2. Base
 *  3. Encabezado
 *  4. Encabezados de sección y hero
 *  5. Carriles (categorías, vitrinas, beneficios)
 *  6. Tarjeta de producto
 *  7. Listado de productos (archivo, búsqueda)
 *  8. Ficha de producto
 *  9. WooCommerce: botones, campos, carrito y pago
 * 10. Pie de página
 */

/* ---------- 1. Alias de tokens ---------- */
:root {
	--tt-bg: var(--wp--preset--color--background);
	--tt-canvas: var(--wp--preset--color--canvas);
	--tt-subtle: var(--wp--preset--color--surface-subtle);
	--tt-fg: var(--wp--preset--color--foreground);
	--tt-muted-fg: var(--wp--preset--color--muted-foreground);
	--tt-border: var(--wp--preset--color--border);
	--tt-primary: var(--wp--preset--color--primary);
	--tt-primary-hover: var(--wp--preset--color--primary-hover);
	--tt-brand: var(--wp--preset--color--brand);
	--tt-danger: var(--wp--preset--color--danger);
	--tt-success: var(--wp--preset--color--success);
	--tt-flag: #b45309;
	/* Estados en pastel: fondo claro + texto oscuro del mismo tono (limpio, poco saturado). */
	--tt-red-soft: #fdeaea;
	--tt-red-soft-fg: #b42318;
	--tt-green-soft: #e6f6ec;
	--tt-green-soft-fg: #157347; /* "Nuevo" / "Oferta": warning-soft-foreground del sistema administrativo */
	--tt-field: #f3f4f6;
	--tt-field-hover: #eceef1;
	--tt-ring: #447aee;

	--tt-r-control: var(--wp--custom--radius--control);
	--tt-r-item: var(--wp--custom--radius--item);
	--tt-r-tile: var(--wp--custom--radius--tile);
	--tt-r-panel: var(--wp--custom--radius--panel);
	--tt-r-dialog: var(--wp--custom--radius--dialog);
	--tt-r-card: var(--wp--custom--radius--card);
	--tt-card-ring: var(--wp--custom--card-ring);
	--tt-float: var(--wp--custom--float-shadow);
	--tt-header-h: var(--wp--custom--header-height);

	/* Margen interior de los carriles: alinea el primer elemento con el contenido ancho. */
	/* Heroicons para reemplazar íconos de WordPress/WooCommerce que no se pueden cambiar en el HTML. */
	--tt-i-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z'/%3E%3C/svg%3E");
	--tt-i-bars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5'/%3E%3C/svg%3E");
	--tt-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18 18 6M6 6l12 12'/%3E%3C/svg%3E");
	--tt-i-zoom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6'/%3E%3C/svg%3E");

	--tt-i-prev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.75' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15.75 19.5 8.25 12l7.5-7.5'/%3E%3C/svg%3E");
	--tt-i-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.75' stroke='black'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m8.25 4.5 7.5 7.5-7.5 7.5'/%3E%3C/svg%3E");

	--tt-i-logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 371 328'%3E%3Cpath d='M233 118h-49l-50 97h49ZM268 51H54L32 97h86L0 328h53L170 97h75ZM371 0h-54L196 234h-72l-24 47h211l22-47h-84Z'/%3E%3C/svg%3E");
	/* Ángulo de los trazos del logo (≈63°): se usa en las texturas de líneas. */
	--tt-logo-angle: 117deg;

	--tt-inline: max(var(--wp--style--root--padding-left, 1rem), calc((100vw - var(--wp--style--global--wide-size)) / 2));
}

/* ---------- 2. Base ---------- */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--tt-ring);
	outline-offset: 2px;
}

.tt-icon {
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
}

.tt-main {
	padding-top: var(--wp--preset--spacing--50);
	padding-bottom: var(--wp--preset--spacing--80);
}

.tt-main--store > * + * {
	margin-top: var(--wp--preset--spacing--70);
}

.tt-main--store > .tt-cats {
	margin-top: var(--wp--preset--spacing--50);
}

/* Números con ancho fijo (precios, cantidades). */
.price,
.wc-block-components-product-price,
.tt-card__price,
.woocommerce-Price-amount {
	font-variant-numeric: tabular-nums;
}

/* WordPress separa encabezado, contenido y pie con margen: aquí se tocan. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ---------- 3. Encabezado ---------- */
/* Alto por variante (Apariencia → Tema TruTech → Encabezado). */
body {
	--tt-header-h: 4.75rem;
}

body.tt-hh-sm {
	--tt-header-h: 4rem;
}

body.tt-hh-lg {
	--tt-header-h: 5.5rem;
}

body.tt-hh-xl {
	--tt-header-h: 6rem;
}

/*
 * Fijo: se fija el contenedor de la parte "header" (si se fijara el encabezado por dentro, solo
 * bajaría lo que mide su contenedor).
 */
.tt-header-sticky .wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

@media (max-width: 600px) {
	.admin-bar.tt-header-sticky .wp-site-blocks > header.wp-block-template-part {
		top: 0; /* en celular la barra de administración no queda fija */
	}
}

.tt-header {
	position: relative;
	z-index: 50;
	border-bottom: 1px solid var(--tt-border);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

html.tt-scrolled .tt-header-sticky .tt-header {
	box-shadow: 0 10px 30px -22px rgb(17 24 39 / 0.45);
}

/*
 * El vidrio esmerilado va en una capa aparte: un backdrop-filter en el propio encabezado lo
 * vuelve contenedor de lo `position: fixed` que lleva dentro (cajón del carrito, menú de
 * celular), que dejarían de cubrir la pantalla.
 */
.tt-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(255 255 255 / 0.72);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	transition: background-color 0.3s ease;
}

.tt-header-solid .tt-header::before {
	background: var(--tt-bg);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

/* Sobre la portada: el encabezado se monta encima del azul y se vuelve vidrio al bajar. */
.tt-header-overlay .wp-site-blocks > header.wp-block-template-part {
	margin-bottom: calc(-1 * var(--tt-header-h) - 1px);
}

.tt-header-overlay .tt-hero {
	padding-top: calc(var(--tt-header-h) + clamp(3rem, 8vw, 6rem));
}

html:not(.tt-scrolled) .tt-header-overlay .tt-header {
	border-color: rgb(255 255 255 / 0.12);
	color: #fff;
}

html:not(.tt-scrolled) .tt-header-overlay .tt-header::before {
	background: rgb(21 31 83 / 0);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

html:not(.tt-scrolled) .tt-header-overlay .tt-header :is(.tt-logo, .tt-icon-btn, .wc-block-mini-cart__button, .wp-block-navigation__responsive-container-open) {
	color: #fff;
}

html:not(.tt-scrolled) .tt-header-overlay .tt-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	color: rgb(255 255 255 / 0.82);
}

html:not(.tt-scrolled) .tt-header-overlay .tt-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover {
	color: #fff;
}

html:not(.tt-scrolled) .tt-header-overlay .tt-header__tools :where(.tt-icon-btn, .wc-block-mini-cart__button):hover {
	background: rgb(255 255 255 / 0.12);
}

/* El texto de "Ingresar" solo se ve en las variantes altas; en las demás lo leen los lectores. */
.tt-account__text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Clásico: logo al centro, menú a la izquierda y herramientas a la derecha (como GOYA). */
.tt-header-classic .tt-header__bar {
	display: grid !important;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.tt-header-classic .tt-header__bar > .tt-logo {
	grid-column: 2;
	grid-row: 1;
}

.tt-header-classic .tt-nav {
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	--navigation-layout-justification-setting: flex-start;
}

.tt-header-classic .tt-nav .wp-block-navigation__container {
	justify-content: flex-start;
}

.tt-header-classic .tt-header__tools {
	grid-column: 3;
	grid-row: 1;
	justify-self: end;
}

:is(.tt-header-classic, .tt-header-wide) .tt-logo--mark .tt-logo__mark {
	width: 2.75rem;
}

/* El logo crece con la altura elegida. */
.tt-header-classic .tt-logo--mark .tt-logo__mark {
	width: clamp(2.25rem, calc(var(--tt-header-h) * 0.5), 3.25rem);
}

.tt-header-classic .tt-header__tools {
	gap: 0.5rem;
}

.tt-header-classic .tt-header__tools :where(.tt-icon-btn, .wc-block-mini-cart__button) {
	width: 2.75rem;
	height: 2.75rem;
}

.tt-header-classic .tt-header__tools svg,
.tt-header-classic .wc-block-mini-cart__quantity-badge::before {
	width: 1.625rem;
	height: 1.625rem;
}

.tt-header-classic .tt-catmenu__toggle {
	min-height: 2.75rem;
	font-size: 1rem;
}

.tt-header-classic .tt-catmenu__bars {
	width: 1.5rem;
	height: 1.5rem;
}

:is(.tt-header-classic, .tt-header-wide) .tt-nav .wp-block-navigation-item__content {
	font-size: 0.9375rem;
}

:is(.tt-header-classic, .tt-header-wide) .tt-header__tools svg {
	width: 1.5rem;
	height: 1.5rem;
}

/* Menú "Categorías" desplegable: solo en el encabezado clásico (reemplaza al menú de enlaces). */
.tt-catmenu {
	display: none;
}

.tt-header-classic .tt-catmenu {
	display: block;
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
}

.tt-header-classic .tt-nav {
	display: none !important;
}

.tt-catmenu__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0 0.875rem 0 0.625rem;
	border: 0;
	border-radius: var(--tt-r-control);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.tt-catmenu__toggle:hover,
.tt-catmenu__toggle[aria-expanded="true"] {
	background: rgb(17 24 39 / 0.06);
}

html:not(.tt-scrolled) .tt-header-overlay .tt-catmenu__toggle:is(:hover, [aria-expanded="true"]) {
	background: rgb(255 255 255 / 0.12);
}

.tt-catmenu__bars {
	width: 1.375rem;
	height: 1.375rem;
}

.tt-catmenu__chevron {
	width: 1rem;
	height: 1rem;
	opacity: 0.6;
	transition: transform 0.25s ease;
}

.tt-catmenu__toggle[aria-expanded="true"] .tt-catmenu__chevron {
	transform: rotate(180deg);
}

/* Panel: vidrio blanco bajo el encabezado, a todo el ancho. */
.tt-catmenu__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	color: var(--tt-fg);
	background: rgb(255 255 255 / 0.9);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	backdrop-filter: saturate(180%) blur(24px);
	border-top: 1px solid var(--tt-border);
	box-shadow: 0 30px 60px -30px rgb(17 24 39 / 0.35);
	animation: tt-drop 0.22s ease-out;
}

.tt-catmenu__panel[hidden] {
	display: none;
}

.tt-catmenu__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 15rem;
	gap: 2rem;
	max-width: var(--wp--style--global--wide-size);
	max-height: calc(100dvh - var(--tt-header-h) - 2rem);
	margin-inline: auto;
	padding: 1.5rem var(--wp--style--root--padding-left, 1rem) 2rem;
	overflow-y: auto;
	box-sizing: border-box;
}

.tt-catmenu__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-catmenu__item {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.5rem;
	border-radius: var(--tt-r-panel);
	color: var(--tt-fg);
	text-decoration: none;
	transition: background-color 0.2s;
}

.tt-catmenu__item:hover {
	background: var(--tt-field);
	color: var(--tt-fg);
	text-decoration: none;
}

.tt-catmenu__thumb {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	padding: 0.375rem;
	box-sizing: border-box;
	border-radius: var(--tt-r-tile);
	background: var(--tt-bg);
	box-shadow: var(--tt-card-ring);
}

.tt-catmenu__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tt-catmenu__name {
	display: grid;
	font-size: 0.9375rem;
	font-weight: 500;
}

.tt-catmenu__name small {
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
}

.tt-catmenu__aside {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-left: 2rem;
	border-left: 1px solid var(--tt-border);
}

.tt-catmenu__aside ul {
	display: grid;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-catmenu__aside ul a {
	display: block;
	padding: 0.5rem 0;
	color: var(--tt-fg);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	text-decoration: none;
}

.tt-catmenu__aside ul a:hover {
	color: var(--tt-primary);
}

.tt-catmenu__help {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding: 0.625rem 1rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-green-soft);
	color: var(--tt-green-soft-fg);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	text-decoration: none;
}

.tt-catmenu__help:hover {
	text-decoration: none;
	color: var(--tt-green-soft-fg);
	filter: brightness(0.97);
}

.tt-catmenu__help .tt-icon {
	width: 1.125rem;
	height: 1.125rem;
}

@media (max-width: 781px) {
	.tt-catmenu__toggle span,
	.tt-catmenu__chevron {
		display: none;
	}

	.tt-catmenu__toggle {
		padding: 0.5rem;
	}

	.tt-catmenu__inner {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.tt-catmenu__grid {
		grid-template-columns: 1fr;
	}

	.tt-catmenu__aside {
		padding: 1rem 0 0;
		border-left: 0;
		border-top: 1px solid var(--tt-border);
	}
}

/* Amplio: logo y menú juntos a la izquierda. */
.tt-header-wide .tt-nav {
	margin-left: clamp(1rem, 3vw, 2.5rem);
	--navigation-layout-justification-setting: flex-start;
}

.tt-header-wide .tt-nav .wp-block-navigation__container {
	justify-content: flex-start;
}

.tt-header__bar {
	min-height: var(--tt-header-h);
	gap: var(--wp--preset--spacing--40);
}

.tt-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--tt-brand);
	text-decoration: none;
}

.tt-logo:hover {
	text-decoration: none;
}

.tt-logo__mark {
	width: 1.75rem;
	height: auto;
}

.tt-logo--mark .tt-logo__mark {
	width: 2.125rem;
}

.tt-logo__word {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.32em;
	margin-right: -0.32em; /* compensa el espaciado tras la última letra */
}

.tt-nav {
	flex: 1;
	--navigation-layout-justification-setting: center;
}

.tt-nav .wp-block-navigation-item__content {
	color: rgb(17 24 39 / 0.8);
	padding: 0.25rem 0;
	transition: color 0.2s;
}

.tt-nav .wp-block-navigation-item__content:hover,
.tt-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--tt-fg);
	text-decoration: none;
}

.tt-nav .wp-block-navigation__container {
	gap: 1.75rem;
}

.tt-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--40);
}

.tt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.tt-header__tools {
	gap: 0.25rem;
}

.tt-header__tools :where(.tt-icon-btn, .wc-block-mini-cart__button) {
	color: var(--tt-fg);
	background: transparent;
	border: 0;
	padding: 0.5rem;
	border-radius: var(--tt-r-control);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}

.tt-header__tools :where(.tt-icon-btn, .wc-block-mini-cart__button):hover {
	background: rgb(17 24 39 / 0.06);
}

.tt-header__tools svg {
	width: 1.375rem;
	height: 1.375rem;
}

.tt-search .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
}

.tt-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	background: var(--tt-field);
	border: 0;
	border-radius: var(--tt-r-control);
	padding: 0.5rem 1rem;
	min-width: min(16rem, 50vw);
	font-size: var(--wp--preset--font-size--sm);
}

.wc-block-mini-cart__badge {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 1.125rem !important;
	height: 1.125rem !important;
	padding: 0 0.3rem !important;
	border: 0 !important;
	border-radius: var(--tt-r-control) !important;
	background: var(--tt-primary) !important;
	color: #fff !important;
	font-size: 0.6875rem !important;
	font-weight: 700;
	line-height: 1 !important;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 0 0 2px var(--tt-bg);
	transform: none !important;
	top: -0.375rem !important;
	left: auto !important;
	right: -0.5rem !important;
}

.tt-header--checkout .tt-header__secure {
	color: var(--tt-muted-fg);
	margin: 0;
}

/* Celular: logo a la izquierda, herramientas y menú a la derecha. */
@media (max-width: 599px) {
	body:not(.tt-header-classic) .tt-nav {
		order: 3;
		flex: 0;
	}

	.tt-header__tools {
		margin-left: auto;
	}

	.tt-header--checkout .tt-header__secure {
		display: none;
	}
}

/* ---------- Barra de avisos (inc/announcement.php) ---------- */
.tt-ann {
	position: relative;
	background: var(--tt-ann-bg, var(--tt-brand));
	color: var(--tt-ann-fg, #fff);
	font-size: 0.8125rem;
	font-weight: 500;
	text-align: center;
}

.tt-ann-closed .tt-ann {
	display: none;
}

.tt-ann__viewport {
	height: 2.25rem;
	overflow: hidden;
	padding-inline: 2.75rem;
}

.tt-ann__track {
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tt-ann__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.25rem;
	white-space: nowrap;
}

.tt-ann__text {
	overflow: hidden;
	text-overflow: ellipsis;
}

.tt-ann__text a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.tt-ann--static .tt-ann__item:not(:first-child) {
	display: none;
}

.tt-ann--fade .tt-ann__track {
	display: grid;
}

.tt-ann--fade .tt-ann__item {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.tt-ann--fade .tt-ann__item.is-active {
	opacity: 1;
	transform: none;
}

.tt-ann--marquee .tt-ann__viewport {
	padding-inline: 0 2.75rem;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}

.tt-ann--marquee .tt-ann__track {
	display: flex;
	width: max-content;
	animation: tt-marquee calc(var(--tt-ann-speed, 4s) * var(--tt-ann-count, 3) * 2.5) linear infinite;
}

.tt-ann--marquee .tt-ann__item {
	padding-inline: 2.5rem;
}

.tt-ann--marquee:hover .tt-ann__track,
.tt-ann--marquee:focus-within .tt-ann__track {
	animation-play-state: paused;
}

@keyframes tt-marquee {
	to {
		transform: translateX(-50%);
	}
}

.tt-ann__close {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: var(--tt-r-control);
	background: transparent;
	color: inherit;
	opacity: 0.75;
	transform: translateY(-50%);
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}

.tt-ann__close:hover {
	opacity: 1;
	background: rgb(255 255 255 / 0.15);
}

.tt-ann__close .tt-icon {
	width: 1rem;
	height: 1rem;
}

@media (max-width: 599px) {
	.tt-ann {
		font-size: 0.75rem;
	}

	.tt-ann__viewport {
		padding-inline: 1rem 2.5rem;
	}
}

/* ---------- 4. Encabezados de sección y hero ---------- */
.tt-heading {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin: 0;
}

.tt-head__text {
	margin: 0.375rem 0 0;
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--base);
	max-width: 60ch;
}

.tt-head--page {
	padding-top: var(--wp--preset--spacing--40);
}

.tt-head--page .tt-heading {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.tt-heading--page {
	font-size: var(--wp--preset--font-size--xxl);
}



/* ---------- Texturas (Apariencia → Tema TruTech → Colores y texturas) ---------- */
/* Intensidad: opacidad de la capa. El color va sólido y la capa lo atenúa. */
:root {
	--tt-tex-o: 0.06;
	--tt-tex-lo: 0.05;
	--tt-tex-c: #fff;
}

body.tt-tex-soft {
	--tt-tex-o: 0.035;
	--tt-tex-lo: 0.03;
}

body.tt-tex-strong {
	--tt-tex-o: 0.1;
	--tt-tex-lo: 0.08;
}

/* Fondos azules: portada, franja y pie. */
.tt-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	-webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 85%);
	mask-image: linear-gradient(90deg, #000 30%, transparent 85%);
}

:is(.tt-hero, .tt-band, .tt-foot)::before {
	opacity: var(--tt-tex-o);
	pointer-events: none;
}

body.tt-tex-dark-lines :is(.tt-hero, .tt-band, .tt-foot)::before {
	background: repeating-linear-gradient(var(--tt-logo-angle), var(--tt-tex-c) 0 1px, transparent 1px 26px);
}

body.tt-tex-dark-grid :is(.tt-hero, .tt-band, .tt-foot)::before {
	background-image: linear-gradient(var(--tt-tex-c) 1px, transparent 1px), linear-gradient(90deg, var(--tt-tex-c) 1px, transparent 1px);
	background-size: 32px 32px;
}

body.tt-tex-dark-dots :is(.tt-hero, .tt-band, .tt-foot)::before {
	background-image: radial-gradient(var(--tt-tex-c) 1.3px, transparent 1.9px);
	background-size: 18px 18px;
	opacity: calc(var(--tt-tex-o) * 2);
}

/* Circuito: pistas y nodos como una placa (el color sale de --tt-tex-c con una máscara). */
body.tt-tex-dark-circuit :is(.tt-hero, .tt-band, .tt-foot)::before {
	background-color: var(--tt-tex-c);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 30h34l12 12v38M60 0v18l16 16h44M90 120V86l-12-12H50M120 70H98l-8 8M20 120v-22l10-10'/%3E%3Ccircle cx='46' cy='84' r='3'/%3E%3Ccircle cx='76' cy='34' r='3'/%3E%3Ccircle cx='50' cy='74' r='3'/%3E%3Ccircle cx='90' cy='78' r='3'/%3E%3Ccircle cx='30' cy='88' r='3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M0 30h34l12 12v38M60 0v18l16 16h44M90 120V86l-12-12H50M120 70H98l-8 8M20 120v-22l10-10'/%3E%3Ccircle cx='46' cy='84' r='3'/%3E%3Ccircle cx='76' cy='34' r='3'/%3E%3Ccircle cx='50' cy='74' r='3'/%3E%3Ccircle cx='90' cy='78' r='3'/%3E%3Ccircle cx='30' cy='88' r='3'/%3E%3C/svg%3E");
	-webkit-mask-size: 120px 120px;
	mask-size: 120px 120px;
	opacity: calc(var(--tt-tex-o) * 2.2);
}

body.tt-tex-dark-none :is(.tt-hero, .tt-band, .tt-foot)::before {
	display: none;
}

body.tt-tex-nologo :is(.tt-band, .tt-foot)::after {
	display: none;
}

/* Secciones grises. */
body.tt-tex-light-grid .tt-section--gray::before {
	background-image: linear-gradient(#111827 1px, transparent 1px), linear-gradient(90deg, #111827 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: center top;
}

body.tt-tex-light-dots .tt-section--gray::before {
	background-image: radial-gradient(#111827 1.2px, transparent 1.8px);
	background-size: 20px 20px;
	opacity: calc(var(--tt-tex-lo) * 2.2);
}

body.tt-tex-light-lines .tt-section--gray::before {
	background: repeating-linear-gradient(var(--tt-logo-angle), #111827 0 1px, transparent 1px 26px);
}

body.tt-tex-light-none .tt-section--gray::before {
	display: none;
}

/* ---------- 4b. Portada: secciones, hero azul y franja ---------- */
/* Solo sin relleno vertical: el horizontal lo usa WordPress para estirar las secciones a todo el ancho. */
.tt-main--home {
	padding-block: 0;
}

.tt-main--home > * {
	margin-block: 0;
}

/* Secciones a todo el ancho que alternan fondo. */
.tt-section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.tt-section--white {
	background: var(--tt-bg);
}

.tt-section--gray {
	position: relative;
	isolation: isolate;
	background: var(--tt-canvas);
}

/* Rejilla tenue que se desvanece hacia abajo. */
.tt-section--gray::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: var(--tt-tex-lo);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000, transparent);
	pointer-events: none;
}

.tt-section > .tt-shelf,
.tt-section > .tt-cats {
	margin: 0;
}

/* Hero: lo único llamativo de la página. Azul TruTech con los más vendidos encima. */
.tt-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--tt-brand);
	color: #fff;
	padding-block: clamp(3rem, 8vw, 6rem);
}

/* Textura del hero: líneas con el ángulo del logo, más visibles a la derecha (detrás de los productos). */
.tt-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	-webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
	mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}

.tt-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left, 1rem);
}

.tt-hero__title {
	margin: 0;
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 4.6vw, 3.75rem);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.035em;
	max-width: 15ch;
	text-wrap: balance;
}

.tt-hero__text {
	margin: 1.25rem 0 0;
	color: var(--wp--preset--color--brand-accent);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.5;
	max-width: 38ch;
}

.tt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

/* Los productos flotan sobre un halo claro (da profundidad al azul). */
.tt-hero__products {
	position: relative;
	height: clamp(18rem, 32vw, 26rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-hero__products::before {
	content: "";
	position: absolute;
	inset: -10% -5%;
	background: radial-gradient(closest-side, rgb(197 206 245 / 0.22), transparent);
	pointer-events: none;
}

.tt-hero__tile {
	position: absolute;
	width: 46%;
	aspect-ratio: 1;
	animation: tt-tile-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	animation-delay: calc(0.25s + var(--i) * 0.12s);
}

.tt-hero__tile a {
	display: block;
	width: 100%;
	height: 100%;
	padding: 12%;
	box-sizing: border-box;
	background: #fff;
	border-radius: var(--tt-r-card);
	box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.55);
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tt-hero__tile img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tt-hero__tile:nth-child(1) {
	left: 27%;
	top: 4%;
	width: 52%;
	z-index: 2;
	--r: -2deg;
}

.tt-hero__tile:nth-child(2) {
	left: 0;
	top: 40%;
	width: 38%;
	z-index: 1;
	--r: -7deg;
}

.tt-hero__tile:nth-child(3) {
	right: 0;
	top: 46%;
	width: 36%;
	z-index: 3;
	--r: 6deg;
}

.tt-hero__tile a {
	transform: rotate(var(--r, 0deg));
}

.tt-hero__tile a:hover {
	transform: rotate(0deg) translateY(-6px);
}

.tt-hero__copy > * {
	animation: tt-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tt-hero__copy > :nth-child(2) {
	animation-delay: 0.08s;
}

.tt-hero__copy > :nth-child(3) {
	animation-delay: 0.16s;
}

@keyframes tt-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@keyframes tt-tile-in {
	from {
		opacity: 0;
		transform: translateY(40px) scale(0.92);
	}
}

@media (max-width: 781px) {
	.tt-hero__inner {
		grid-template-columns: 1fr;
	}

	.tt-hero__products {
		height: auto;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0.75rem;
	}

	.tt-hero__products::before {
		display: none;
	}

	.tt-hero__tile,
	.tt-hero__tile:nth-child(n) {
		position: static;
		width: auto;
	}

	.tt-hero__tile a {
		border-radius: var(--tt-r-dialog);
	}
}

/* Botones sobre el azul. */
.tt-btn--lg {
	min-height: 3rem;
	padding: 0 1.5rem;
	font-size: var(--wp--preset--font-size--base);
}

.tt-btn.tt-btn--light {
	background: #fff;
	color: var(--tt-brand);
}

.tt-btn.tt-btn--light:hover {
	background: var(--wp--preset--color--brand-accent);
	color: var(--tt-brand);
}

.tt-btn.tt-btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4);
}

.tt-btn.tt-btn--ghost:hover {
	background: rgb(255 255 255 / 0.1);
	color: #fff;
}

.tt-btn:active {
	transform: scale(0.97);
}

.tt-btn .tt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

/* Franja azul: ayuda para elegir y datos de la tienda, sin tarjetas. */
.tt-band {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--tt-brand);
	color: #fff;
	padding-block: clamp(3rem, 7vw, 5rem);
}

/* El símbolo de TruTech como marca de agua de la franja. */
.tt-band::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -4%;
	z-index: -1;
	width: min(32rem, 55vw);
	aspect-ratio: 371 / 328;
	background: rgb(255 255 255 / 0.05);
	-webkit-mask: var(--tt-i-logo) center / contain no-repeat;
	mask: var(--tt-i-logo) center / contain no-repeat;
	transform: translateY(-50%);
}

.tt-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left, 1rem);
}

.tt-band__title {
	margin: 0;
	color: #fff;
	font-size: var(--wp--preset--font-size--xxl);
	font-weight: 800;
	letter-spacing: -0.03em;
	max-width: 18ch;
	text-wrap: balance;
}

.tt-band__text {
	margin: 1rem 0 1.75rem;
	color: var(--wp--preset--color--brand-accent);
	font-size: var(--wp--preset--font-size--lg);
	max-width: 42ch;
}

.tt-band__facts {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-band__facts li {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.125rem 0;
	border-top: 1px solid rgb(255 255 255 / 0.14);
	font-size: var(--wp--preset--font-size--base);
}

.tt-band__facts li:last-child {
	border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

.tt-band__facts .tt-icon {
	color: var(--wp--preset--color--brand-accent);
}

@media (max-width: 781px) {
	.tt-band__inner {
		grid-template-columns: 1fr;
	}
}

/* ---------- 5. Carriles ---------- */
.tt-rail {
	/* Contenedor de lo absoluto de adentro (p. ej. textos de lector de pantalla de WooCommerce
	   en los precios): sin esto, se salen del recorte y ensanchan la página. */
	position: relative;
	display: flex;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--tt-inline);
	padding: 0.75rem var(--tt-inline) 1.5rem;
	scrollbar-width: none;
}

.tt-rail::-webkit-scrollbar {
	display: none;
}

.tt-rail > li {
	scroll-snap-align: start;
	flex-shrink: 0;
}

.tt-shelf__head,
.tt-cats > .tt-head {
	padding-inline: var(--tt-inline);
}

.tt-shelf__head {
	display: flex;
	align-items: flex-end;
	margin-bottom: 0.5rem;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--30);
}

.tt-shelf__actions {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	flex-shrink: 0;
}

.tt-shelf__more {
	font-size: var(--wp--preset--font-size--sm);
	white-space: nowrap;
}

.tt-shelf__nav {
	display: flex;
	gap: 0.5rem;
}

.tt-shelf__nav[hidden] {
	display: none;
}

.tt-round-btn {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: var(--tt-r-control);
	background: rgb(17 24 39 / 0.07);
	color: var(--tt-fg);
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}

.tt-round-btn:hover {
	background: rgb(17 24 39 / 0.12);
}

.tt-round-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.tt-round-btn .tt-icon {
	width: 1.125rem;
	height: 1.125rem;
}

@media (max-width: 781px) {
	.tt-shelf__nav {
		display: none;
	}
}

/* Categorías */
.tt-rail--cats {
	gap: 0.5rem;
	padding-bottom: 0.5rem;
}

.tt-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	width: 7rem;
	color: var(--tt-fg);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	text-align: center;
	text-decoration: none;
}

.tt-cat:hover {
	text-decoration: none;
	color: var(--tt-primary);
}

.tt-cat__media {
	display: grid;
	place-items: center;
	width: 5.5rem;
	height: 5.5rem;
	padding: 0.625rem;
	background: var(--tt-bg);
	border-radius: var(--tt-r-dialog);
	box-shadow: var(--tt-card-ring);
	transition: transform 0.3s ease;
}

.tt-cat:hover .tt-cat__media {
	transform: translateY(-2px);
}

.tt-cat__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ---------- 6. Tarjeta de producto ---------- */
/* Toda la tarjeta lleva a la ficha (el enlace del título se estira); el botón queda encima. */
.tt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: clamp(14.5rem, 21vw, 17.5rem);
	background: var(--tt-bg);
	border-radius: var(--tt-r-dialog);
	box-shadow: var(--tt-card-ring);
	color: var(--tt-fg);
	overflow: hidden;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tt-card:hover {
	box-shadow: var(--tt-card-ring), var(--tt-float);
	transform: translateY(-2px);
}

.tt-card__link {
	color: inherit;
	text-decoration: none;
}

.tt-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.tt-card__link:hover {
	text-decoration: none;
}

.tt-card:has(.tt-card__link:focus-visible) {
	outline: 2px solid var(--tt-ring);
	outline-offset: 2px;
}

.tt-card__link:focus-visible {
	outline: none;
}

.tt-card__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: clamp(1.75rem, 12%, 2.75rem);
}

.tt-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tt-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0 var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	flex: 1;
}

.tt-card__eyebrow {
	color: var(--tt-flag);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
}

.tt-card__eyebrow--muted {
	color: var(--tt-muted-fg);
}

.tt-card__title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tt-card__foot {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.tt-card__price {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 0.5rem;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.tt-card__price del {
	font-size: 0.8125rem;
}

.tt-card__price del,
.wc-block-components-product-price del,
.price del {
	color: var(--tt-muted-fg);
	font-weight: 400;
}

.tt-card__price ins,
.price ins {
	text-decoration: none;
}

/* Etiqueta de oferta (-17%): sobre la foto en la tarjeta, junto a la categoría en la ficha. */
.tt-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.625rem;
	border-radius: var(--tt-r-control);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	background: var(--tt-red-soft);
	color: var(--tt-red-soft-fg);
}

.tt-badge--red {
	background: var(--tt-danger);
	color: #fff;
}

.tt-card__media .tt-badge {
	position: absolute;
	top: 0.875rem;
	left: 0.875rem;
}

.tt-badge--red-soft {
	background: var(--tt-red-soft);
	color: var(--tt-red-soft-fg);
}

.tt-badge--dark {
	background: var(--tt-fg);
	color: var(--tt-bg);
}

.tt-badge--brand {
	background: var(--tt-brand);
	color: #fff;
}

/* Botones de la tarjeta (por encima del enlace estirado). */
.tt-btn {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	border: 0;
	border-radius: var(--tt-r-control);
	background: var(--tt-primary);
	color: #fff;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}

.tt-btn:hover {
	background: var(--tt-primary-hover);
	color: #fff;
	text-decoration: none;
}

.tt-btn--block {
	width: 100%;
}

.tt-btn--icon {
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	flex-shrink: 0;
}

.tt-btn--icon .tt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.tt-btn--block .tt-btn__icon {
	width: 1.125rem;
	height: 1.125rem;
}



.tt-btn--secondary {
	background: var(--tt-field);
	color: var(--tt-fg);
}

.tt-btn--secondary:hover {
	background: var(--tt-field-hover);
	color: var(--tt-fg);
}

.tt-btn--disabled,
.tt-btn--disabled:hover {
	background: var(--tt-field);
	color: var(--tt-muted-fg);
	cursor: not-allowed;
}

/* Estados que pone WooCommerce al agregar por AJAX: cargando, luego agregado (check). */

/* Cargando: un giro en lugar del ícono (al agregar, al pagar, al filtrar). */
.tt-btn.loading,
.single_add_to_cart_button.is-loading,
.tt-btn.is-loading {
	pointer-events: none;
	cursor: progress;
}

.tt-btn--icon.loading :is(.tt-btn__icon, .tt-btn__plus) {
	opacity: 0 !important;
}

.tt-btn--icon.loading::after,
.tt-btn--block.loading::before,
.single_add_to_cart_button.is-loading::before,
.tt-btn.is-loading::before {
	content: "";
	width: 1.125rem;
	height: 1.125rem;
	box-sizing: border-box;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: tt-spin 0.7s linear infinite;
}

.tt-btn--icon.loading::after {
	position: absolute;
	inset: 0;
	margin: auto;
}

.tt-btn--block.loading .tt-btn__icon {
	display: none;
}

.single_add_to_cart_button.is-loading,
.tt-btn.is-loading {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
}

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

/* Esqueleto mientras carga el buscador. */
.tt-skeleton {
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	align-items: center;
	gap: 0.875rem;
	padding: 0.5rem;
}

.tt-skeleton::before,
.tt-skeleton span {
	content: "";
	display: block;
	border-radius: var(--tt-r-tile);
	background: linear-gradient(90deg, var(--tt-field) 25%, var(--tt-field-hover) 50%, var(--tt-field) 75%);
	background-size: 200% 100%;
	animation: tt-shimmer 1.2s ease-in-out infinite;
}

.tt-skeleton::before {
	height: 3.5rem;
}

.tt-skeleton span {
	height: 0.875rem;
	width: 70%;
}

@keyframes tt-shimmer {
	from {
		background-position: 100% 0;
	}

	to {
		background-position: -100% 0;
	}
}

.tt-btn--soft {
	background: var(--tt-field);
	color: var(--tt-fg);
}

.tt-btn--soft:hover {
	background: var(--tt-field-hover);
	color: var(--tt-fg);
}

/* Al agregar: destello verde pastel y vuelve (se puede seguir agregando). */
.tt-btn.added {
	animation: tt-added 0.9s ease;
}

@keyframes tt-added {
	0%,
	40% {
		background: var(--tt-green-soft);
		color: var(--tt-green-soft-fg);
	}
}

/* Ícono de carrito que se vuelve "+" al pasar el mouse o con el foco del teclado. */
.tt-btn--icon[data-tt-add] .tt-btn__icon,
.tt-btn--icon[data-tt-add] .tt-btn__plus {
	position: absolute;
	inset: 0;
	margin: auto;
	transition: opacity 0.18s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tt-btn__plus {
	display: none;
}

.tt-btn--icon[data-tt-add] .tt-btn__plus {
	display: block;
	opacity: 0;
	transform: rotate(-90deg) scale(0.6);
}

.tt-btn--icon[data-tt-add]:is(:hover, :focus-visible) .tt-btn__icon {
	opacity: 0;
	transform: scale(0.6);
}

.tt-btn--icon[data-tt-add]:is(:hover, :focus-visible) .tt-btn__plus {
	opacity: 1;
	transform: none;
}

/* Burbuja con cuántos hay en el carrito (como la de la bolsa del encabezado). */
.tt-btn__count {
	position: absolute;
	top: -0.375rem;
	right: -0.375rem;
	display: grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.3125rem;
	box-sizing: border-box;
	border-radius: var(--tt-r-control);
	background: var(--tt-primary);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 0 0 2px var(--tt-bg);
	pointer-events: none;
}

.tt-btn__count[hidden] {
	display: none;
}

.tt-btn--block .tt-btn__count {
	position: static;
	box-shadow: none;
	margin-left: 0.25rem;
}

.tt-btn.added .tt-btn__count {
	animation: tt-bump 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}


/* WooCommerce agrega un enlace "Ver carrito" tras agregar: el ícono del carrito ya avisa. */
.tt-card .added_to_cart {
	display: none !important;
}

/* Variante ícono: el botón siempre abajo a la derecha; el precio se parte en dos líneas si no cabe. */
.tt-card--btn-icon .tt-card__foot {
	flex-wrap: nowrap;
	align-items: flex-end;
}

.tt-card--btn-icon .tt-card__price {
	min-width: 0;
}

.tt-card--btn-button .tt-card__foot {
	flex-direction: column;
	align-items: stretch;
}

/* ---------- 7. Listado de productos ---------- */
.tt-archive-head {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tt-archive-head__desc {
	color: var(--tt-muted-fg);
	max-width: 60ch;
}

.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	color: var(--tt-muted-fg);
}

.woocommerce-breadcrumb a {
	color: inherit;
}

.tt-archive-tools {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--tt-muted-fg);
}

.tt-archive-tools .woocommerce-result-count,
.tt-archive-tools .woocommerce-ordering {
	margin: 0;
}

.woocommerce-ordering select,
.wc-block-catalog-sorting select {
	appearance: none;
	background: var(--tt-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") no-repeat right 0.875rem center / 1rem;
	border: 0;
	box-shadow: var(--tt-card-ring);
	border-radius: var(--tt-r-control);
	padding: 0.5rem 2.5rem 0.5rem 1rem;
	font: inherit;
	color: var(--tt-fg);
}

.tt-grid .wc-block-product-template {
	gap: 1.25rem;
}

.tt-grid .wc-block-product {
	display: flex;
	padding: 0;
	background: none;
	box-shadow: none;
	text-align: left;
}

.tt-grid .wc-block-product > .tt-card {
	width: 100%;
}

.wc-block-components-product-sale-badge {
	background: var(--tt-bg);
	color: var(--tt-flag);
	border: 0;
	border-radius: var(--tt-r-control);
	box-shadow: var(--tt-card-ring);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0;
	padding: 0.25rem 0.625rem;
}

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--60);
	gap: 0.25rem;
	font-size: var(--wp--preset--font-size--sm);
}

.wp-block-query-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--tt-r-control);
	color: var(--tt-fg);
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--tt-fg);
	color: var(--tt-bg);
}

/* Anterior / siguiente: botón redondo con chevron; el texto sigue ahí para lectores de pantalla. */
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-bg);
	box-shadow: var(--tt-card-ring);
	color: var(--tt-fg) !important;
	font-size: 0 !important;
	text-decoration: none !important;
	transition: box-shadow 0.2s;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
	box-shadow: 0 0 0 1px rgb(17 24 39 / 0.16);
}

.wp-block-query-pagination-previous::after,
.wp-block-query-pagination-next::after {
	content: "";
	width: 1.125rem;
	height: 1.125rem;
	background: currentColor;
	-webkit-mask: var(--tt-i-next) center / contain no-repeat;
	mask: var(--tt-i-next) center / contain no-repeat;
}

.wp-block-query-pagination-previous::after {
	-webkit-mask-image: var(--tt-i-prev);
	mask-image: var(--tt-i-prev);
}

.wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination-next-arrow {
	display: none;
}

/* ---------- 8. Ficha de producto ---------- */
.tt-main--product {
	padding-top: var(--wp--preset--spacing--40);
}

.tt-product {
	gap: clamp(2rem, 5vw, 4.5rem) !important;
	margin-top: var(--wp--preset--spacing--40);
}

.tt-product__media .woocommerce-product-gallery {
	background: var(--tt-bg);
	border-radius: var(--tt-r-card);
	box-shadow: var(--tt-card-ring);
	padding: var(--wp--preset--spacing--40);
	margin: 0;
	width: 100% !important;
	float: none !important;
}

.tt-product__media .woocommerce-product-gallery__image img {
	border-radius: var(--tt-r-dialog);
}

.tt-product__media .flex-control-thumbs {
	display: flex;
	gap: 0.5rem;
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0;
	list-style: none;
}

.tt-product__media .flex-control-thumbs li {
	width: 4rem !important;
	float: none !important;
}

.tt-product__media .flex-control-thumbs img {
	border-radius: var(--tt-r-tile);
	box-shadow: var(--tt-card-ring);
	opacity: 0.6;
	transition: opacity 0.2s;
}

.tt-product__media .flex-control-thumbs img.flex-active,
.tt-product__media .flex-control-thumbs img:hover {
	opacity: 1;
}

.tt-product__buy > * {
	margin-block: 0;
}

.tt-product__buy > * + * {
	margin-top: var(--wp--preset--spacing--30);
}

.tt-eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.875rem;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--tt-muted-fg);
	margin: 0;
}

.tt-eyebrow a {
	color: inherit;
}

.tt-product__title {
	font-size: var(--wp--preset--font-size--xxl);
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-top: 0.25rem !important;
}

.tt-product__price {
	font-size: var(--wp--preset--font-size--xl) !important;
	font-weight: 500;
}

.tt-product__price del {
	font-size: 0.7em;
	margin-right: 0.25rem;
}

/* La etiqueta "Oferta" ya va arriba del título: fuera el globo de WooCommerce. */
.tt-product__media .onsale {
	display: none;
}

/* El bloque de galería trae 512 px fijos: que ocupe su columna. */
.tt-product__media .wp-block-woocommerce-product-image-gallery {
	width: 100%;
	max-width: none;
}

.tt-product__media .woocommerce-product-gallery {
	box-sizing: border-box;
}

.tt-product__summary {
	color: var(--tt-muted-fg);
}

.tt-product__cart form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: var(--wp--preset--spacing--40) 0 0;
}

.tt-product__cart form.cart .variations,
.tt-product__cart form.cart .single_variation_wrap,
.tt-product__cart form.cart .woocommerce-variation-add-to-cart {
	width: 100%;
}

.tt-product__cart .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 0.75rem;
}

.tt-product__cart .variations {
	border: 0;
	margin-bottom: 0.5rem;
}

.tt-product__cart .variations th,
.tt-product__cart .variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.tt-product__cart .variations label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
}

.tt-product__cart .variations select,
.tt-product__cart .quantity .qty {
	height: 3rem;
	border: 0;
	border-radius: var(--tt-r-control);
	background-color: var(--tt-field);
	font: inherit;
	color: var(--tt-fg);
}

.tt-product__cart .variations select {
	width: 100%;
	padding: 0 1rem;
	margin: 0.375rem 0 0.75rem;
}

.tt-product__cart .quantity .qty {
	width: 5rem;
	text-align: center;
}

/* Cantidad con botones - y + (los agrega theme.js): una sola píldora. */
.quantity.tt-qty {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.125rem;
	height: 3rem;
	padding: 0 0.25rem;
	background: var(--tt-field);
	border-radius: var(--tt-r-control);
}

.quantity.tt-qty .qty {
	width: 2.75rem !important;
	height: 2.5rem !important;
	margin: 0 !important;
	padding: 0;
	background: transparent !important;
	text-align: center;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
}

.quantity.tt-qty .qty::-webkit-outer-spin-button,
.quantity.tt-qty .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.quantity.tt-qty .qty:focus {
	outline: none;
}

.quantity.tt-qty:focus-within {
	box-shadow: 0 0 0 2px var(--tt-ring);
}

.tt-qty__btn {
	align-self: center;
	flex-shrink: 0;
	margin: 0;
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: var(--tt-r-control);
	background: transparent;
	color: var(--tt-fg);
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}

.tt-qty__btn svg {
	width: 1.125rem;
	height: 1.125rem;
}

.tt-qty__btn:hover:not(:disabled) {
	background: rgb(17 24 39 / 0.07);
}

.tt-qty__btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.tt-product__cart .single_add_to_cart_button {
	flex: 1;
	white-space: nowrap;
	min-height: 3rem;
	border-radius: var(--tt-r-control) !important;
	background: var(--tt-primary) !important;
	color: #fff !important;
	font-size: var(--wp--preset--font-size--base) !important;
	font-weight: 500;
}

.tt-product__cart .single_add_to_cart_button:hover {
	background: var(--tt-primary-hover) !important;
}

.tt-product__cart .stock {
	width: 100%;
	font-size: var(--wp--preset--font-size--sm);
	margin: 0;
}

.tt-product__cart .stock {
	display: inline-flex;
	width: auto;
	padding: 0.25rem 0.75rem;
	border-radius: var(--tt-r-control);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
}

.tt-product__cart .stock.in-stock {
	background: var(--tt-green-soft);
	color: var(--tt-green-soft-fg);
}

.tt-product__cart .stock.out-of-stock {
	background: var(--tt-red-soft);
	color: var(--tt-red-soft-fg);
}

.tt-product__cart form.cart > .stock,
.tt-product__cart .woocommerce-variation-availability {
	flex-basis: 100%;
}

.tt-buy-info {
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0.5rem var(--wp--preset--spacing--40);
	background: var(--tt-subtle);
	border-radius: var(--tt-r-panel);
	font-size: var(--wp--preset--font-size--sm);
}

.tt-buy-info li {
	display: flex;
	gap: 0.875rem;
	padding: 0.75rem 0;
}

.tt-buy-info li + li {
	border-top: 1px solid var(--tt-border);
}

.tt-buy-info .tt-icon {
	color: var(--tt-muted-fg);
}

.tt-buy-info strong,
.tt-buy-info span {
	display: block;
}

.tt-buy-info strong {
	font-weight: 600;
}

.tt-buy-info span {
	color: var(--tt-muted-fg);
}

.tt-buy-info a {
	color: inherit;
}

.tt-buy-info a:hover strong {
	color: var(--tt-primary);
}

.tt-product__meta {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--tt-muted-fg);
}

/* Pestañas de descripción: control segmentado en píldora. */
.tt-product__details {
	margin-top: var(--wp--preset--spacing--70) !important;
}

.tt-product__details .woocommerce-tabs ul.tabs {
	display: inline-flex;
	gap: 0.25rem;
	padding: 0.25rem !important;
	margin: 0 0 var(--wp--preset--spacing--40) !important;
	background: var(--tt-field);
	border-radius: var(--tt-r-control);
	list-style: none;
	border: 0 !important;
}

.tt-product__details .woocommerce-tabs ul.tabs::before,
.tt-product__details .woocommerce-tabs ul.tabs li::before,
.tt-product__details .woocommerce-tabs ul.tabs li::after {
	display: none !important;
}

.tt-product__details .woocommerce-tabs ul.tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	border-radius: var(--tt-r-control) !important;
}

.tt-product__details .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 0.5rem 1rem !important;
	color: var(--tt-muted-fg) !important;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500 !important;
	text-decoration: none !important;
}

.tt-product__details .woocommerce-tabs ul.tabs li.active {
	background: var(--tt-bg) !important;
	box-shadow: 0 1px 2px rgb(17 24 39 / 0.08);
}

.tt-product__details .woocommerce-tabs ul.tabs li.active a {
	color: var(--tt-fg) !important;
}

.tt-product__details .woocommerce-Tabs-panel {
	max-width: 70ch;
}

.tt-product__details .woocommerce-Tabs-panel > h2:first-child {
	display: none; /* "Descripción" repetido bajo la pestaña */
}

.tt-main--product .tt-shelf {
	margin-top: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--60);
	background: var(--tt-canvas);
}

/* ---------- 9. WooCommerce: botones, campos, carrito y pago ---------- */
.wc-block-components-button:not(.is-link),
.woocommerce .button,
.wp-element-button {
	border-radius: var(--tt-r-control);
}

.wc-block-components-button.contained,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	background: var(--tt-primary);
	color: #fff;
	min-height: 3rem;
	font-weight: 500;
}

.wc-block-components-button.contained:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background: var(--tt-primary-hover);
	color: #fff;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: var(--tt-r-control) !important;
	border-color: var(--tt-border) !important;
}

.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus {
	border-color: var(--tt-ring) !important;
	box-shadow: 0 0 0 1px var(--tt-ring) !important;
}

.wc-block-components-title,
.wc-block-cart__totals-title {
	font-family: var(--wp--preset--font-family--display) !important;
	letter-spacing: -0.02em;
}

.wc-block-components-sidebar .wc-block-components-panel,
.wc-block-components-totals-wrapper {
	border-color: var(--tt-border);
}

.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart .wc-block-cart__sidebar > .wp-block-woocommerce-cart-totals-block {
	background: var(--tt-subtle);
	border-radius: var(--tt-r-card);
	border: 0 !important;
	padding: var(--wp--preset--spacing--40);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: var(--tt-r-panel) !important;
}

/* Formularios clásicos (Mi cuenta, acceso, direcciones, rastreo): campos rellenos en
   píldora, sin borde; al enfocar pasan a blanco con anillo (utilidad `field` del sistema). */
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea,
.woocommerce-page form .input-text,
.woocommerce-page form select,
.woocommerce form input[type="email"],
.woocommerce form input[type="password"],
.woocommerce form input[type="text"],
.woocommerce form input[type="tel"],
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	background: var(--tt-field) !important;
	border: 0 !important;
	border-radius: var(--tt-r-control) !important;
	box-sizing: border-box;
	font: inherit;
	color: var(--tt-fg);
	transition: background-color 0.2s, box-shadow 0.2s;
}

.woocommerce form textarea {
	border-radius: var(--tt-r-panel) !important;
}

/* Campos de los bloques en píldora (rounded-control del sistema): más aire a los lados para
   que el texto y la etiqueta flotante no toquen la curva. Las áreas de texto, en panel. */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select {
	padding-left: 1.125rem !important;
	padding-right: 1.125rem !important;
}

.wc-block-components-text-input label,
.wc-block-components-combobox .wc-block-components-combobox-control label,
.wc-blocks-components-select .wc-blocks-components-select__label {
	left: 1.125rem !important;
}

.wc-block-components-textarea,
.wc-block-checkout .wc-block-components-text-input textarea,
textarea {
	border-radius: var(--tt-r-panel) !important;
}

.woocommerce form .input-text:hover,
.woocommerce form select:hover {
	background: var(--tt-field-hover) !important;
}

.woocommerce form .input-text:focus,
.woocommerce form select:focus,
.woocommerce form textarea:focus {
	background: var(--tt-bg) !important;
	box-shadow: 0 0 0 2px var(--tt-ring);
	outline: none;
}

.woocommerce form .form-row label {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	margin-bottom: 0.375rem;
}

.woocommerce form .form-row .required {
	color: var(--tt-danger);
	text-decoration: none;
}

.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.checkout_coupon,
.woocommerce form.track_order,
.woocommerce form.lost_reset_password {
	border: 0 !important;
	border-radius: var(--tt-r-dialog) !important;
	box-shadow: var(--tt-card-ring);
	padding: var(--wp--preset--spacing--50) !important;
	background: var(--tt-bg);
}

.woocommerce :where(button.button, a.button, input.button, .button.alt) {
	min-height: 2.75rem;
	padding: 0.625rem 1.5rem;
	border: 0;
	border-radius: var(--tt-r-control) !important;
	background: var(--tt-primary) !important;
	color: #fff !important;
	font: inherit;
	font-weight: 500;
}

.woocommerce :where(button.button, a.button, input.button, .button.alt):hover {
	background: var(--tt-primary-hover) !important;
}

.woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--sm);
	margin-left: 0.75rem;
}

/* Mi cuenta: más ancha, menú a la izquierda y contenido a la derecha. */
.woocommerce-account .wp-block-post-title,
.woocommerce-account .wp-block-post-content,
.woocommerce-account .wp-block-post-content > * {
	max-width: min(var(--wp--style--global--wide-size), 72rem) !important;
}

@media (min-width: 782px) {
	/* Posiciones explícitas: WooCommerce mete primero un contenedor de avisos vacío. */
	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: 15rem minmax(0, 1fr);
		gap: 0 3rem;
		align-items: start;
	}

	.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
		grid-column: 1;
		grid-row: 1 / span 3;
	}

	.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > :not(.woocommerce-MyAccount-navigation) {
		grid-column: 2;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		position: sticky;
		top: calc(var(--tt-header-h) + 1.5rem);
	}
}

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

.woocommerce-MyAccount-navigation li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	text-decoration: none !important;
}

.woocommerce-MyAccount-navigation .is-active a {
	font-weight: 600;
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--tt-red-soft-fg) !important;
}

.woocommerce-MyAccount-content > p:first-child {
	color: var(--tt-muted-fg);
}

/* Avisos (también fuera de Mi cuenta): azul pastel, sin borde, con la acción en píldora. */
.wc-block-components-notice-banner,
.woocommerce-info,
.woocommerce-message {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1rem;
	padding: 1rem 1.25rem !important;
	border: 0 !important;
	border-radius: var(--tt-r-panel) !important;
	background: #eef4ff !important;
	color: #1e3a8a !important;
	font-size: var(--wp--preset--font-size--sm);
}

.woocommerce-info::before,
.woocommerce-message::before {
	display: none !important;
}

.wc-block-components-notice-banner > svg {
	flex-shrink: 0;
	width: 1.375rem;
	height: 1.375rem;
	padding: 0 !important;
	background: none !important;
	fill: var(--tt-primary) !important;
}

.wc-block-components-notice-banner.is-success {
	background: var(--tt-green-soft) !important;
	color: var(--tt-green-soft-fg) !important;
}

.wc-block-components-notice-banner.is-success > svg {
	fill: var(--tt-green-soft-fg) !important;
}

.wc-block-components-notice-banner.is-error {
	background: var(--tt-red-soft) !important;
	color: var(--tt-red-soft-fg) !important;
}

.wc-block-components-notice-banner.is-error > svg {
	fill: var(--tt-red-soft-fg) !important;
}

.wc-block-components-notice-banner {
	flex-wrap: nowrap !important;
	align-items: center !important;
}

/* WooCommerce enfoca el aviso al mostrarlo (para lectores de pantalla): sin contorno grueso. */
.wc-block-components-notice-banner:focus,
.woocommerce-error:focus,
.woocommerce-message:focus,
.woocommerce-info:focus {
	outline: none !important;
}

.wc-block-components-notice-banner:focus-visible {
	box-shadow: 0 0 0 2px var(--tt-ring) !important;
}

.wc-block-components-notice-banner > svg {
	opacity: 0.85;
}

.woocommerce-error {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0 0 1rem !important;
	padding: 1rem 1.25rem !important;
	border: 0 !important;
	border-radius: var(--tt-r-panel) !important;
	background: var(--tt-red-soft) !important;
	color: var(--tt-red-soft-fg) !important;
	list-style: none;
	font-size: var(--wp--preset--font-size--sm);
}

.woocommerce-error::before {
	display: none !important;
}

/* Ficha: ya tiene todas las unidades en el carrito. */
.tt-stock-note {
	flex-basis: 100%;
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: var(--tt-r-panel);
	background: #eef4ff;
	color: #1e3a8a;
	font-size: var(--wp--preset--font-size--sm);
}

.tt-stock-note a {
	font-weight: 600;
	margin-left: 0.25rem;
}

.wc-block-components-notice-banner__content {
	display: flex;
	flex: 1 1 auto !important;
	min-width: 0;
	flex-basis: auto !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.wc-block-components-notice-banner__content .wc-forward,
.woocommerce-info .button,
.woocommerce-message .button {
	order: 2;
	display: inline-flex !important;
	align-items: center;
	min-height: 2.25rem !important;
	padding: 0 1rem !important;
	border-radius: var(--tt-r-control) !important;
	background: var(--tt-bg) !important;
	color: var(--tt-fg) !important;
	font-size: var(--wp--preset--font-size--sm) !important;
	font-weight: 500;
	text-decoration: none !important;
	opacity: 1 !important;
	float: none !important;
	box-shadow: var(--tt-card-ring);
}

/* Menú de Mi cuenta: lista de opciones en píldora. */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.25rem;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.5rem 1rem;
	border-radius: var(--tt-r-control);
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
}

.woocommerce-MyAccount-navigation a:hover {
	background: var(--tt-field);
	color: var(--tt-fg);
	text-decoration: none;
}

.woocommerce-MyAccount-navigation .is-active a {
	background: var(--tt-field);
	color: var(--tt-fg);
}

/* Carrito vacío: "Nuevo en la tienda" como cuadrícula de tarjetas, 2 columnas en celular. */
.wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0 !important;
}

@media (min-width: 782px) {
	.wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product {
	max-width: none !important;
	width: auto !important;
	flex: none !important;
	margin: 0 !important;
	padding: var(--wp--preset--spacing--30) !important;
	border: 0 !important;
	border-radius: var(--tt-r-dialog);
	box-shadow: var(--tt-card-ring);
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
	aspect-ratio: 1;
	object-fit: contain;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
	color: var(--tt-fg);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	line-height: 1.35;
	margin: 0.5rem 0 0 !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
	font-size: var(--wp--preset--font-size--sm);
	margin: 0 0 0.5rem !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
	margin-top: auto !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
	width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
	font-size: var(--wp--preset--font-size--sm) !important;
	padding: 0.5rem 1rem !important;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title,
.wp-block-woocommerce-empty-cart-block h2 {
	font-size: var(--wp--preset--font-size--xl);
}

/* ---------- Carrito y mini-carrito (bloques de WooCommerce) ---------- */
.wc-block-mini-cart__drawer .wc-block-components-drawer__content {
	background: var(--tt-bg);
}

.wc-block-mini-cart__title {
	margin: 0 !important;
	padding: 1.5rem 1.5rem 1rem !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl) !important;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.wp-block-woocommerce-mini-cart-title-items-counter-block {
	color: var(--tt-muted-fg);
	font-weight: 500;
}

.wc-block-components-drawer__close {
	border-radius: var(--tt-r-control) !important;
	top: 1.25rem !important;
	right: 1rem !important;
}

.wc-block-components-drawer__close:hover {
	background: var(--tt-field) !important;
}

/* Filas de productos: foto en recuadro, nombre en tinta (no azul), sin descripción. */
.wc-block-cart-items__header {
	text-transform: none !important;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--tt-muted-fg);
	letter-spacing: 0 !important;
}

.wc-block-cart-items__row {
	border-color: var(--tt-border) !important;
}

.wc-block-cart-item__image img {
	aspect-ratio: 1;
	object-fit: contain;
	padding: 0.375rem;
	box-sizing: border-box;
	border-radius: var(--tt-r-tile);
	background: var(--tt-bg);
	box-shadow: var(--tt-card-ring);
}

.wc-block-components-product-name {
	color: var(--tt-fg) !important;
	font-size: 0.9375rem !important;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none !important;
}

.wc-block-components-product-name:hover {
	color: var(--tt-primary) !important;
}

.wc-block-mini-cart__drawer .wc-block-components-product-metadata,
.wc-block-cart .wc-block-components-product-metadata__description {
	display: none;
}

.wc-block-cart-item__prices {
	font-size: var(--wp--preset--font-size--sm);
}

.wc-block-cart-item__prices del {
	color: var(--tt-muted-fg);
	font-size: 0.8125rem;
	margin-right: 0.25rem;
}

.wc-block-cart-item__prices ins {
	text-decoration: none;
}

.wc-block-cart-item__total {
	font-weight: 600;
}

/* "Ahorras $10.000": etiqueta verde pastel en vez del recuadro gris. */
.wc-block-components-sale-badge[hidden] {
	display: none !important;
}

.wc-block-components-sale-badge:not([hidden]) {
	display: inline-block !important;
	margin-top: 0.375rem !important;
	padding: 0.1875rem 0.5rem !important;
	border: 0 !important;
	border-radius: var(--tt-r-control) !important;
	background: var(--tt-green-soft) !important;
	color: var(--tt-green-soft-fg) !important;
	font-size: 0.6875rem !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	white-space: nowrap;
}

/* Cantidad: la misma píldora con − y + de la ficha de producto. */
.wc-block-components-quantity-selector {
	width: auto !important;
	min-width: 0 !important;
	height: 2.25rem;
	border: 0 !important;
	border-radius: var(--tt-r-control) !important;
	background: var(--tt-field) !important;
	padding: 0 0.125rem;
}

.wc-block-components-quantity-selector::after {
	display: none !important;
}

.wc-block-components-quantity-selector__input {
	width: 2rem !important;
	min-width: 0 !important;
	background: transparent !important;
	border: 0 !important;
	font-weight: 600 !important;
	font-size: var(--wp--preset--font-size--sm) !important;
	box-shadow: none !important;
}

.wc-block-components-quantity-selector__button {
	align-self: center;
	width: 2rem !important;
	min-width: 2rem !important;
	height: 2rem !important;
	padding: 0 !important;
	border-radius: var(--tt-r-control) !important;
	color: var(--tt-fg) !important;
	opacity: 1 !important;
	font-size: 1.125rem !important;
	transition: background-color 0.2s;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
	background: rgb(17 24 39 / 0.07) !important;
}

.wc-block-components-quantity-selector__button:disabled {
	opacity: 0.3 !important;
}

/* Quitar: botón redondo que se pone rojo pastel al pasar el mouse. */
.wc-block-cart-item__remove-link {
	display: inline-grid !important;
	place-items: center;
	width: 2.25rem !important;
	height: 2.25rem !important;
	padding: 0 !important;
	border-radius: var(--tt-r-control) !important;
	color: var(--tt-muted-fg) !important;
	transition: background-color 0.2s, color 0.2s;
}

.wc-block-cart-item__remove-link:hover {
	background: var(--tt-red-soft) !important;
	color: var(--tt-red-soft-fg) !important;
}

.wc-block-cart-item__remove-link svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: currentColor;
}

.wc-block-cart-item__quantity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Pie del mini-carrito. */
.wc-block-mini-cart__footer {
	padding: 1.25rem 1.5rem max(1.25rem, env(safe-area-inset-bottom)) !important;
	border-top: 1px solid var(--tt-border);
	background: rgb(255 255 255 / 0.85);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.wc-block-mini-cart__footer::after {
	display: none !important;
}

.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label {
	font-size: var(--wp--preset--font-size--base) !important;
	font-weight: 600 !important;
}

.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.375rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

/* Carrito y pago: total grande y botón de tamaño normal. */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	letter-spacing: -0.02em;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 3rem !important;
	font-size: var(--wp--preset--font-size--base) !important;
}

.wc-block-cart__submit-container {
	padding-top: 0.5rem;
}

.wc-block-components-totals-item__description {
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--xs) !important;
}

.wc-block-mini-cart__footer-actions {
	display: grid !important;
	grid-template-columns: 1fr 1.4fr;
	gap: 0.625rem !important;
	margin-top: 1rem;
}

.wc-block-mini-cart__footer-actions .wc-block-components-button {
	min-height: 2.75rem !important;
	height: 2.75rem;
	padding: 0 1rem !important;
	font-size: var(--wp--preset--font-size--sm) !important;
	margin: 0 !important;
	border-radius: var(--tt-r-control) !important;
	font-weight: 500 !important;
}

.wc-block-mini-cart__footer-cart.wc-block-components-button {
	border: 0 !important;
	background: var(--tt-field) !important;
	color: var(--tt-fg) !important;
	box-shadow: none !important;
}

.wc-block-mini-cart__footer-cart.wc-block-components-button:hover {
	background: var(--tt-field-hover) !important;
}

.wc-block-mini-cart__footer-checkout.wc-block-components-button {
	background: var(--tt-primary) !important;
	color: #fff !important;
}

.wc-block-mini-cart__footer-checkout.wc-block-components-button:hover {
	background: var(--tt-primary-hover) !important;
}

/* Pago: campos como en el resto del sitio (rellenos, sin borde; anillo al enfocar). */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea,
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input {
	background: var(--tt-field) !important;
	border: 0 !important;
	border-radius: var(--tt-r-control) !important;
	box-shadow: none !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-blocks-components-select__select:focus,
.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus {
	background: var(--tt-bg) !important;
	box-shadow: 0 0 0 2px var(--tt-ring) !important;
}

.wc-block-checkout .wc-blocks-components-select__container {
	background: var(--tt-field);
	border-radius: var(--tt-r-control);
}

/* Opciones de envío y de pago: tarjeta fina; la elegida, con contorno de tinta. */
.wc-block-components-radio-control--highlight-checked::after,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked::after,
.wc-block-components-radio-control-accordion-option--checked-option-highlighted::after {
	border: 0 !important;
	box-shadow: none !important;
}

.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
	border-radius: var(--tt-r-panel) !important;
	box-shadow: var(--tt-card-ring) !important;
	background: var(--tt-bg);
	margin-bottom: 0.5rem !important;
	transition: box-shadow 0.2s;
}

.wc-block-components-radio-control__option-checked,
.wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__option-checked) {
	box-shadow: 0 0 0 1.5px var(--tt-fg) !important;
}

/* El método de pago es una opción dentro de otra: solo la de afuera lleva contorno. */
.wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
	box-shadow: none !important;
	margin: 0 !important;
	background: transparent;
}

.wc-block-components-radio-control__input {
	border-color: var(--tt-input, #d1d5db) !important;
}

.wc-block-components-radio-control__input:checked {
	border-color: var(--tt-fg) !important;
}

.wc-block-components-radio-control__input:checked::before {
	background: var(--tt-fg) !important;
}

.wc-block-checkout .wc-block-components-checkbox__input {
	border-radius: 0.3125rem !important;
	border-color: #d1d5db !important;
}

.wc-block-components-order-summary-item__description,
.wc-block-components-order-summary .wc-block-components-product-metadata {
	display: none;
}

.wc-block-components-order-summary-item__image img {
	border-radius: var(--tt-r-tile);
	background: var(--tt-bg);
	box-shadow: var(--tt-card-ring);
	padding: 0.25rem;
	box-sizing: border-box;
}

.wc-block-components-order-summary-item__quantity {
	background: var(--tt-fg) !important;
	color: var(--tt-bg) !important;
	border: 2px solid var(--tt-bg) !important;
	box-shadow: none !important;
}

.wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button {
	color: var(--tt-muted-fg);
}

/* Barra "Te faltan $X para el envío gratis". */
.tt-freeship {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0.875rem 1rem;
	border-radius: var(--tt-r-panel);
	background: var(--tt-subtle);
	box-shadow: var(--tt-card-ring);
}

.tt-freeship[hidden] {
	display: none;
}

.tt-freeship__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
}

.tt-freeship__track {
	display: block;
	height: 0.375rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-field-hover);
	overflow: hidden;
}

.tt-freeship__fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--tt-primary);
	transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tt-freeship.is-done {
	background: var(--tt-green-soft);
	box-shadow: none;
	color: var(--tt-green-soft-fg);
}

.tt-freeship.is-done .tt-freeship__fill {
	background: var(--tt-green-soft-fg);
}

.wc-block-mini-cart__footer > .tt-freeship {
	margin-bottom: 1rem;
}

/* Página del carrito: títulos sin mayúsculas sostenidas. */
.wc-block-cart__totals-title,
.wc-block-components-totals-coupon__button {
	text-transform: none !important;
	letter-spacing: 0 !important;
}

/* ---------- Íconos Heroicons sobre los de WordPress y WooCommerce ---------- */
/* Se oculta el SVG original (conserva su tamaño) y se pinta el de Heroicons encima. */
.wc-block-mini-cart__quantity-badge,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	position: relative;
}

.wc-block-mini-cart__quantity-badge > svg,
.wp-block-navigation__responsive-container-open > svg,
.wp-block-navigation__responsive-container-close > svg {
	visibility: hidden;
}

.wc-block-mini-cart__quantity-badge::before,
.wp-block-navigation__responsive-container-open::before,
.wp-block-navigation__responsive-container-close::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 1.375rem;
	height: 1.375rem;
	background: currentColor;
	-webkit-mask: var(--tt-i-bag) center / contain no-repeat;
	mask: var(--tt-i-bag) center / contain no-repeat;
}

.wp-block-navigation__responsive-container-open::before {
	-webkit-mask-image: var(--tt-i-bars);
	mask-image: var(--tt-i-bars);
}

.wp-block-navigation__responsive-container-close::before {
	-webkit-mask-image: var(--tt-i-x);
	mask-image: var(--tt-i-x);
}

/* El contador va por encima del ícono pintado. */
.wc-block-mini-cart__badge {
	z-index: 1;
}

/* Lupa de la galería de producto: WooCommerce la dibuja con ::before/::after o un emoji. */
.woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1rem !important;
	right: 1rem !important;
	z-index: 9;
	display: grid !important;
	place-items: center;
	width: 2.5rem !important;
	height: 2.5rem !important;
	border-radius: var(--tt-r-control) !important;
	background: rgb(255 255 255 / 0.9) !important;
	box-shadow: var(--tt-card-ring);
	font-size: 0 !important;
	color: var(--tt-fg);
}

.woocommerce-product-gallery__trigger > *,
.woocommerce-product-gallery__trigger::after {
	display: none !important;
}

.woocommerce-product-gallery__trigger::before {
	content: "" !important;
	display: block !important;
	position: static !important;
	width: 1.25rem !important;
	height: 1.25rem !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: currentColor !important;
	-webkit-mask: var(--tt-i-zoom) center / contain no-repeat;
	mask: var(--tt-i-zoom) center / contain no-repeat;
	transform: none !important;
}

/* ---------- Buscador (inc/search-ui.php, assets/js/search.js) ---------- */
.tt-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 2.375rem;
	height: 2.375rem;
	padding: 0;
	border: 0;
	border-radius: var(--tt-r-control);
	background: transparent;
	color: var(--tt-fg);
	cursor: pointer;
	transition: background-color 0.2s;
}

.tt-icon-btn:hover {
	background: rgb(17 24 39 / 0.06);
	color: var(--tt-fg);
	text-decoration: none;
}

.tt-icon-btn .tt-icon {
	width: 1.375rem;
	height: 1.375rem;
}

/* Variante campo (404): parece un buscador y abre el modal. */
.tt-search-field {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 36rem;
	min-height: 3.25rem;
	padding: 0 1.25rem;
	background: var(--tt-bg);
	border-radius: var(--tt-r-control);
	box-shadow: var(--tt-card-ring);
	color: var(--tt-muted-fg);
	text-decoration: none;
}

.tt-search-field:hover {
	color: var(--tt-fg);
	text-decoration: none;
}

.tt-search-field span {
	flex: 1;
}

.tt-search-field kbd,
.tt-search__kbd {
	font: inherit;
	font-size: var(--wp--preset--font-size--xs);
	padding: 0.125rem 0.5rem;
	border-radius: var(--tt-r-item);
	background: var(--tt-field);
	color: var(--tt-muted-fg);
}

html.tt-search-open {
	overflow: hidden;
}

.tt-search {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tt-fg);
	overflow: hidden;
}

.tt-search::backdrop {
	background: rgb(17 24 39 / 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.tt-search[open] .tt-search__panel {
	animation: tt-drop 0.22s ease-out;
}

@keyframes tt-drop {
	from {
		opacity: 0;
		transform: translateY(-0.75rem);
	}
}

.tt-search__panel {
	display: flex;
	flex-direction: column;
	width: min(44rem, calc(100vw - 2rem));
	max-height: min(40rem, calc(100dvh - 6rem));
	margin: clamp(1rem, 8vh, 5rem) auto 0;
	padding: 0 1.5rem;
	background: var(--tt-bg);
	border-radius: var(--tt-r-card);
	box-shadow: var(--tt-card-ring), 0 40px 80px -30px rgb(17 24 39 / 0.45);
	box-sizing: border-box;
}

.tt-search__form {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 4.5rem;
	border-bottom: 1px solid var(--tt-border);
}

.tt-search__glass {
	color: var(--tt-muted-fg);
}

.tt-search__input {
	flex: 1;
	min-width: 0;
	height: 3rem;
	border: 0;
	background: transparent;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--tt-fg);
	outline: none;
}

.tt-search__input::placeholder {
	color: var(--tt-muted-fg);
	opacity: 0.7;
}

.tt-search__input::-webkit-search-cancel-button {
	display: none;
}

.tt-search__body {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1rem 0 1.5rem;
}

.tt-search__start[hidden],
.tt-search__body [hidden] {
	display: none !important;
}

.tt-search__label {
	margin: 0.75rem 0 0.5rem;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 500;
	color: var(--tt-muted-fg);
}

.tt-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
}

.tt-chip {
	display: inline-flex;
	padding: 0.375rem 0.875rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-field);
	color: var(--tt-fg);
	font-size: var(--wp--preset--font-size--sm);
	text-decoration: none;
	transition: background-color 0.2s;
}

.tt-chip:hover {
	background: var(--tt-field-hover);
	text-decoration: none;
	color: var(--tt-fg);
}

.tt-search__list {
	display: grid;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-result {
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.875rem;
	padding: 0.5rem;
	border-radius: var(--tt-r-panel);
	color: var(--tt-fg);
	text-decoration: none;
}

.tt-result:hover,
[aria-selected="true"] > .tt-result {
	background: var(--tt-field);
	text-decoration: none;
	color: var(--tt-fg);
}

.tt-result__media {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--tt-r-tile);
	background: var(--tt-bg);
	box-shadow: var(--tt-card-ring);
	overflow: hidden;
}

.tt-result__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.tt-result__text {
	display: grid;
	min-width: 0;
}

.tt-result__name {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tt-result__name mark {
	background: none;
	color: inherit;
	font-weight: 700;
}

.tt-result__meta {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--tt-muted-fg);
}

.tt-result__price {
	display: grid;
	justify-items: end;
	gap: 0.125rem;
	font-size: var(--wp--preset--font-size--sm);
	text-align: right;
	white-space: nowrap;
}

.tt-result__price ins {
	text-decoration: none;
}

.tt-result__price del {
	display: none; /* en la lista basta el precio final y el descuento */
}

.tt-badge--sm {
	padding: 0.125rem 0.5rem;
	font-size: 0.6875rem;
}

.tt-search__empty {
	padding: 1.5rem 0.5rem;
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--sm);
}

.tt-search__empty p {
	margin: 0 0 0.5rem;
}

.tt-search__empty strong {
	color: var(--tt-fg);
}

.tt-search__all {
	display: block;
	margin-top: 0.75rem;
	padding: 0.75rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-field);
	color: var(--tt-fg);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	text-align: center;
	text-decoration: none;
}

.tt-search__all:hover {
	background: var(--tt-field-hover);
	text-decoration: none;
	color: var(--tt-fg);
}

@media (max-width: 599px) {
	.tt-search__panel {
		width: 100vw;
		height: 100dvh;
		max-height: none;
		margin: 0;
		padding: 0 1rem;
		border-radius: 0;
	}

	.tt-search__input {
		font-size: var(--wp--preset--font-size--lg);
	}

	.tt-result {
		grid-template-columns: 3rem minmax(0, 1fr) auto;
	}

	.tt-result__media {
		width: 3rem;
		height: 3rem;
	}

	.tt-result__name {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

/* ---------- Filtros y orden (inc/filters.php, assets/js/filters.js) ---------- */
.tt-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
}

.tt-toolbar__filters,
.tt-toolbar__sort {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.tt-toolbar__count {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--tt-muted-fg);
	margin-right: 0.25rem;
}

.tt-toolbar__clear {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--tt-muted-fg);
	margin-left: 0.25rem;
}

.tt-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0 1rem;
	border: 0;
	border-radius: var(--tt-r-control);
	background: var(--tt-bg);
	box-shadow: var(--tt-card-ring);
	color: var(--tt-fg);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	transition: box-shadow 0.2s;
}

.tt-pill::-webkit-details-marker {
	display: none;
}

.tt-pill:hover {
	box-shadow: 0 0 0 1px rgb(17 24 39 / 0.14);
}

.tt-pill .tt-icon {
	width: 1.125rem;
	height: 1.125rem;
	color: var(--tt-muted-fg);
}

.tt-pill__count {
	display: inline-grid;
	place-items: center;
	min-width: 1.25rem;
	height: 1.25rem;
	padding: 0 0.375rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-fg);
	color: var(--tt-bg);
	font-size: 0.6875rem;
	font-weight: 600;
}

.tt-pill__chevron {
	transition: transform 0.2s;
}

details[open] > .tt-pill .tt-pill__chevron {
	transform: rotate(180deg);
}

.tt-chip--active {
	background: var(--tt-fg);
	color: var(--tt-bg);
	gap: 0.375rem;
	align-items: center;
}

.tt-chip--active:hover {
	background: #374151;
	color: var(--tt-bg);
}

button.tt-chip {
	border: 0;
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	cursor: pointer;
}

.tt-chip__x {
	width: 0.875rem;
	height: 0.875rem;
}

/* Menú "Ordenar": se abre como un popover del sistema. */
.tt-menu {
	position: relative;
}

.tt-menu__list {
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	z-index: 30;
	min-width: 15rem;
	margin: 0;
	padding: 0.375rem;
	list-style: none;
	background: var(--tt-bg);
	border-radius: var(--tt-r-panel);
	box-shadow: var(--tt-card-ring), var(--tt-float);
	animation: tt-drop 0.15s ease-out;
}

.tt-menu__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0.75rem;
	border-radius: var(--tt-r-item);
	color: var(--tt-fg);
	font-size: var(--wp--preset--font-size--sm);
	text-decoration: none;
}

.tt-menu__list a:hover,
.tt-menu__list a:focus-visible {
	background: var(--tt-field);
	text-decoration: none;
	outline: none;
}

.tt-menu__list a[aria-current] {
	font-weight: 600;
}

.tt-menu__check {
	width: 1rem;
	height: 1rem;
}

@media (max-width: 599px) {
	.tt-toolbar__count {
		display: none;
	}

	.tt-menu__list {
		right: auto;
		left: 0;
	}

	.tt-toolbar__sort .tt-menu__list {
		left: auto;
		right: 0;
	}
}

/* Panel de filtros: a la derecha en computador, desde abajo en celular. */
.tt-sheet {
	width: min(26rem, 100vw);
	max-width: none;
	height: 100dvh;
	max-height: none;
	/* !important: el diseño restringido de WordPress centra a los hijos del contenido. */
	margin: 0 0 0 auto !important;
	padding: 0;
	border: 0;
	background: var(--tt-bg);
	color: var(--tt-fg);
	box-shadow: var(--tt-float);
}

.tt-sheet::backdrop {
	background: rgb(17 24 39 / 0.35);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.tt-sheet[open] {
	animation: tt-slide 0.22s ease-out;
}

@keyframes tt-slide {
	from {
		transform: translateX(1.5rem);
		opacity: 0;
	}
}

.tt-sheet__form {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.tt-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem 1rem 1.5rem;
	border-bottom: 1px solid var(--tt-border);
}

.tt-sheet__head h2 {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
}

.tt-sheet__body {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0.5rem 1.5rem 1.5rem;
}

.tt-sheet__foot {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 0.75rem;
	padding: 1rem 1.5rem max(1rem, env(safe-area-inset-bottom));
	border-top: 1px solid var(--tt-border);
}

.tt-sheet__foot .tt-btn {
	min-height: 2.75rem;
}

.tt-filter {
	margin: 0;
	padding: 1.25rem 0;
	border: 0;
	border-bottom: 1px solid var(--tt-border);
	display: grid;
	gap: 0.75rem;
}

.tt-filter:last-child {
	border-bottom: 0;
}

.tt-filter legend {
	float: left;
	width: 100%;
	padding: 0;
	margin-bottom: 0.75rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
}

.tt-filter .tt-chips {
	margin: 0;
}

.tt-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* Deslizador de precio: dos range nativos sobre un mismo riel. */
.tt-price__out {
	display: flex;
	justify-content: space-between;
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.tt-price__track {
	position: relative;
	height: 1.5rem;
}

.tt-price__track::before,
.tt-price__fill {
	content: "";
	position: absolute;
	top: 50%;
	height: 0.25rem;
	transform: translateY(-50%);
	border-radius: var(--tt-r-control);
}

.tt-price__track::before {
	left: 0;
	right: 0;
	background: var(--tt-field-hover);
}

.tt-price__fill {
	background: var(--tt-fg);
}

.tt-price input[type="range"] {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.tt-price input[type="range"]::-webkit-slider-runnable-track {
	background: none;
}

.tt-price input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 1.375rem;
	height: 1.375rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-bg);
	box-shadow: 0 0 0 1px rgb(17 24 39 / 0.12), 0 2px 6px rgb(17 24 39 / 0.2);
	cursor: grab;
	pointer-events: auto;
	transition: transform 0.15s;
}

.tt-price input[type="range"]::-moz-range-thumb {
	width: 1.375rem;
	height: 1.375rem;
	border: 0;
	border-radius: var(--tt-r-control);
	background: var(--tt-bg);
	box-shadow: 0 0 0 1px rgb(17 24 39 / 0.12), 0 2px 6px rgb(17 24 39 / 0.2);
	cursor: grab;
	pointer-events: auto;
}

.tt-price input[type="range"]:active::-webkit-slider-thumb {
	cursor: grabbing;
	transform: scale(1.12);
}

.tt-price input[type="range"]:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 2px var(--tt-bg), 0 0 0 4px var(--tt-ring);
}

.tt-price input[type="range"]:focus-visible::-moz-range-thumb {
	box-shadow: 0 0 0 2px var(--tt-bg), 0 0 0 4px var(--tt-ring);
}

/* Casillas como fichas: se marcan en negro. */
.tt-check input,
.tt-switch input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tt-check span {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem 0.875rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-field);
	font-size: var(--wp--preset--font-size--sm);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.tt-check span:hover {
	background: var(--tt-field-hover);
}

.tt-check small,
.tt-switch small {
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--xs);
}

.tt-check input:checked + span {
	background: var(--tt-fg);
	color: var(--tt-bg);
}

.tt-check input:checked + span small {
	color: rgb(255 255 255 / 0.7);
}

.tt-check input:focus-visible + span,
.tt-switch input:focus-visible + span::before {
	outline: 2px solid var(--tt-ring);
	outline-offset: 2px;
}

/* Interruptores. */
.tt-switch span {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0 0.375rem 3.25rem;
	font-size: var(--wp--preset--font-size--sm);
	cursor: pointer;
}

.tt-switch span::before,
.tt-switch span::after {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 0.2s, transform 0.2s;
}

.tt-switch span::before {
	width: 2.5rem;
	height: 1.5rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-field-hover);
}

.tt-switch span::after {
	left: 0.1875rem;
	width: 1.125rem;
	height: 1.125rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-bg);
	box-shadow: 0 1px 2px rgb(17 24 39 / 0.2);
}

.tt-switch input:checked + span::before {
	background: var(--tt-fg);
}

.tt-switch input:checked + span::after {
	transform: translate(1rem, -50%);
}

.tt-range {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
}

.tt-range label {
	flex: 1;
	display: grid;
	gap: 0.25rem;
	font-size: var(--wp--preset--font-size--xs);
	color: var(--tt-muted-fg);
}

.tt-range input {
	width: 100%;
	min-height: 2.5rem;
	padding: 0 1rem;
	border: 0;
	border-radius: var(--tt-r-control);
	background: var(--tt-field);
	font: inherit;
	color: var(--tt-fg);
	box-sizing: border-box;
	-moz-appearance: textfield;
	appearance: textfield;
}

.tt-range input::-webkit-outer-spin-button,
.tt-range input::-webkit-inner-spin-button {
	-webkit-appearance: none;
}

.tt-range input:focus {
	outline: none;
	background: var(--tt-bg);
	box-shadow: 0 0 0 2px var(--tt-ring);
}

.tt-range > span {
	padding-bottom: 0.625rem;
	color: var(--tt-muted-fg);
}

@media (max-width: 599px) {
	.tt-sheet {
		width: 100vw;
		height: 88dvh;
		margin: auto 0 0 !important;
		border-radius: var(--tt-r-card) var(--tt-r-card) 0 0;
	}

	@keyframes tt-slide {
		from {
			transform: translateY(1.5rem);
			opacity: 0;
		}
	}
}

/* ---------- Ventana de envíos y pagos (inc/shipping-modal.php) ---------- */
.tt-modal {
	width: min(34rem, calc(100vw - 2rem));
	max-height: calc(100dvh - 2rem);
	padding: 0;
	border: 0;
	border-radius: var(--tt-r-card);
	background: var(--tt-bg);
	color: var(--tt-fg);
	box-shadow: 0 40px 90px -30px rgb(17 24 39 / 0.5);
	overflow: auto;
}

.tt-modal::backdrop {
	background: rgb(17 24 39 / 0.4);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.tt-modal[open] {
	animation: tt-pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes tt-pop {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
}

.tt-modal__card {
	position: relative;
	display: grid;
	gap: 1rem;
	padding: 2rem;
	text-align: left;
}

.tt-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.tt-modal__icon {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--tt-r-panel);
	background: #eef0fb;
	color: var(--tt-brand);
}

.tt-modal__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.tt-modal__intro {
	margin: -0.5rem 0 0;
	color: var(--tt-muted-fg);
}

.tt-times {
	margin: 0;
	padding: 0.25rem 1rem;
	border-radius: var(--tt-r-panel);
	background: var(--tt-subtle);
	box-shadow: var(--tt-card-ring);
}

.tt-times__row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
	font-size: var(--wp--preset--font-size--sm);
}

.tt-times__row + .tt-times__row {
	border-top: 1px solid var(--tt-border);
}

.tt-times dt {
	font-weight: 600;
}

.tt-times dd {
	margin: 0;
	color: var(--tt-muted-fg);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.tt-modal__highlight {
	display: flex;
	gap: 0.625rem;
	margin: 0;
	padding: 0.875rem 1rem;
	border-radius: var(--tt-r-panel);
	background: var(--tt-green-soft);
	color: var(--tt-green-soft-fg);
	font-size: var(--wp--preset--font-size--sm);
}

.tt-modal__highlight .tt-icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.tt-modal__section {
	padding-top: 1rem;
	border-top: 1px solid var(--tt-border);
}

.tt-modal__section h3 {
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 600;
	letter-spacing: 0;
}

.tt-paylogos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-paylogos li {
	display: grid;
	place-items: center;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: var(--tt-r-tile);
	background: var(--tt-bg);
	box-shadow: var(--tt-card-ring);
}

.tt-paylogos img {
	max-height: 1.625rem;
	max-width: 4.75rem;
	object-fit: contain;
}

.tt-modal__cod {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tt-modal__cod > div {
	flex: 1 1 16rem;
}

.tt-modal__cod h3 {
	margin-bottom: 0.25rem;
}

.tt-modal__cod p {
	margin: 0;
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--sm);
}

.tt-btn.tt-btn--wa {
	background: #25d366;
	color: #fff;
	min-height: 2.75rem;
	padding: 0 1.25rem;
}

.tt-btn.tt-btn--wa:hover {
	background: #1fb757;
	color: #fff;
}

.tt-modal__note {
	margin: 0;
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--xs);
}

.tt-modal__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 0.5rem;
}

.tt-modal__never {
	padding: 0;
	border: 0;
	background: none;
	color: var(--tt-muted-fg);
	font: inherit;
	font-size: var(--wp--preset--font-size--sm);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.tt-modal__never:hover {
	color: var(--tt-fg);
}

@media (max-width: 599px) {
	.tt-modal {
		width: 100vw;
		max-width: 100vw;
		max-height: 92dvh;
		margin: auto 0 0;
		border-radius: var(--tt-r-card) var(--tt-r-card) 0 0;
	}

	.tt-modal__card {
		padding: 1.5rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
	}
}

/* ---------- Pedido recibido (inc/order.php) ---------- */
.tt-main--thanks > * + * {
	margin-top: var(--wp--preset--spacing--40);
}

.tt-thanks__hero {
	text-align: center;
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}

.tt-thanks__badge {
	display: inline-grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	background: var(--tt-green-soft);
	color: var(--tt-green-soft-fg);
}

.tt-thanks__badge .tt-icon {
	width: 1.75rem;
	height: 1.75rem;
	stroke-width: 2;
}

.tt-thanks--pending .tt-thanks__badge {
	background: #fef3e2;
	color: var(--tt-flag);
}

.tt-thanks--failed .tt-thanks__badge {
	background: var(--tt-red-soft);
	color: var(--tt-red-soft-fg);
}

.tt-thanks__order {
	margin: 1.25rem 0 0.25rem;
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--sm);
	font-variant-numeric: tabular-nums;
}

.tt-thanks__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xxl);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	text-wrap: balance;
}

.tt-thanks__text {
	max-width: 34rem;
	margin: 0.875rem auto 0;
	color: var(--tt-muted-fg);
	text-wrap: pretty;
}

.tt-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.tt-thanks__next {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--tt-r-card);
	background: var(--tt-subtle);
}

.tt-thanks__next h2,
.tt-thanks__h {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.tt-thanks__next ol {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-thanks__step {
	display: grid;
	align-content: start;
	gap: 0.625rem;
}

.tt-thanks__num {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--tt-bg);
	box-shadow: var(--tt-card-ring);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
}

.tt-thanks__step h3 {
	margin: 0 0 0.25rem;
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
}

.tt-thanks__step p {
	margin: 0;
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--sm);
	line-height: 1.5;
}

.tt-thanks__help {
	margin: var(--wp--preset--spacing--30) 0 0;
	text-align: center;
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--sm);
}

.tt-thanks__help a {
	color: var(--tt-primary);
	font-weight: 500;
}

.tt-thanks__card {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--tt-r-card);
	box-shadow: var(--tt-card-ring);
	background: var(--tt-bg);
}

/* Resumen: número, fecha, total, correo y pago en dos columnas de datos. */
.tt-main--thanks .wc-block-order-confirmation-summary-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.875rem 1.5rem;
	margin: 0 0 1.25rem;
	padding: 0 0 1.25rem;
	border-bottom: 1px solid var(--tt-border);
	list-style: none;
}

.tt-main--thanks .wc-block-order-confirmation-summary-list-item {
	display: grid;
	gap: 0.125rem;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--wp--preset--font-size--sm);
	overflow-wrap: anywhere;
}

.tt-main--thanks .wc-block-order-confirmation-summary-list-item__key {
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
}

.tt-main--thanks .wc-block-order-confirmation-summary-list-item__value {
	font-weight: 500;
}

/* Totales: tabla sin bordes, el total grande al final. */
.tt-main--thanks .wc-block-order-confirmation-totals__table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--sm);
}

.tt-main--thanks .wc-block-order-confirmation-totals__table :is(th, td) {
	padding: 0.625rem 0;
	border: 0;
	border-bottom: 1px solid var(--tt-border);
	background: none;
	text-align: left;
	font-weight: 400;
}

.tt-main--thanks .wc-block-order-confirmation-totals__table thead {
	display: none;
}

.tt-main--thanks .wc-block-order-confirmation-totals__table :is(td, th):last-child {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.tt-main--thanks .wc-block-order-confirmation-totals__product a {
	color: var(--tt-fg);
	text-decoration: none;
}

.tt-main--thanks .wc-block-order-confirmation-totals__product a:hover {
	text-decoration: underline;
}

.tt-main--thanks .wc-block-order-confirmation-totals__table tfoot tr:last-child :is(th, td) {
	padding-top: 1rem;
	border-bottom: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
}

.tt-main--thanks .tt-thanks__addresses {
	gap: var(--wp--preset--spacing--30);
	margin-bottom: 0;
}

.tt-main--thanks address,
.tt-main--thanks .wc-block-order-confirmation-shipping-address,
.tt-main--thanks .wc-block-order-confirmation-billing-address {
	padding: 0;
	border: 0;
	color: var(--tt-muted-fg);
	font-size: var(--wp--preset--font-size--sm);
	font-style: normal;
	line-height: 1.6;
}

@media (max-width: 781px) {
	.tt-thanks__next ol {
		grid-template-columns: 1fr;
	}

	.tt-thanks__step {
		grid-template-columns: auto 1fr;
		gap: 0.875rem;
	}
}

/* ---------- Temporadas (inc/seasons.php): Navidad ---------- */
body.tt-season .tt-hero,
body.tt-season .tt-band,
body.tt-season .tt-foot {
	background: radial-gradient(130% 120% at 0% 0%, var(--tt-season-1), var(--tt-season-2) 55%, var(--tt-season-3));
}

body.tt-season {
	--tt-tex-c: var(--tt-gold);
}

body.tt-season .tt-band::after,
body.tt-season .tt-foot::after {
	background: rgb(227 196 141 / 0.07);
}

body.tt-season :is(.tt-hero__text, .tt-band__text, .tt-foot__tagline) {
	color: var(--tt-gold-light);
}

body.tt-season .tt-band__facts .tt-icon {
	color: var(--tt-gold);
}

body.tt-season .tt-btn.tt-btn--ghost {
	color: var(--tt-gold-light);
	box-shadow: inset 0 0 0 1px rgb(227 196 141 / 0.55);
}

body.tt-season .tt-btn.tt-btn--light {
	color: var(--tt-season-2);
}

body.tt-season .tt-btn.tt-btn--light:hover {
	background: var(--tt-gold-light);
}

/* Encabezado en temporada: el logo toma el color de la paleta; sobre la portada, dorado. */
body.tt-season .tt-header .tt-logo {
	color: var(--tt-season-2);
}

html:not(.tt-scrolled) body.tt-season.tt-header-overlay .tt-header .tt-logo {
	color: var(--tt-gold-light);
}

html:not(.tt-scrolled) body.tt-season.tt-header-overlay .tt-header {
	border-color: rgb(227 196 141 / 0.18);
}

html:not(.tt-scrolled) body.tt-season.tt-header-overlay .wc-block-mini-cart__badge {
	background: var(--tt-gold);
	color: var(--tt-season-3);
}

/* CTA principal del banner en dorado. */
body.tt-season .tt-hero .tt-btn.tt-btn--light {
	background: var(--tt-gold-light);
	color: var(--tt-season-3);
}

body.tt-season .tt-hero .tt-btn.tt-btn--light:hover {
	background: #fff;
}

body.tt-season .tt-ann {
	background: var(--tt-season-3);
	color: var(--tt-gold-light);
}

.tt-hero__slogan {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	color: var(--wp--preset--color--brand-accent);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* Rayita como en las piezas de la marca. */
.tt-hero__slogan::after {
	content: "";
	width: 2.5rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.tt-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0.375rem 0.875rem;
	border-radius: var(--tt-r-control);
	box-shadow: inset 0 0 0 1px rgb(227 196 141 / 0.5);
	color: var(--tt-gold-light);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
}

.tt-hero__pill svg {
	width: 0.875rem;
	height: 0.875rem;
	color: var(--tt-gold);
}

/* Luces a lo largo del borde inferior del encabezado. */
body.tt-season .tt-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -3px;
	height: 6px;
	background: radial-gradient(circle, var(--tt-glow) 0 2px, transparent 3px) 12px 0 / 44px 6px repeat-x;
	filter: drop-shadow(0 0 4px var(--tt-glow));
	pointer-events: none;
	animation: tt-twinkle 2.4s ease-in-out infinite alternate;
}

/* Decoración: esferas que cuelgan, luces desenfocadas, destellos y nieve. */
.tt-hero__inner,
.tt-band__inner {
	position: relative;
	z-index: 1;
}

.tt-xmas {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.tt-x-ball {
	position: absolute;
	top: 0;
	left: var(--x);
	width: 2px;
	height: var(--len);
	background: linear-gradient(var(--tt-gold-dark), var(--tt-gold));
	transform-origin: top center;
	animation: tt-sway 7s ease-in-out infinite alternate;
}

.tt-x-ball i {
	--r: 8rem;
	position: absolute;
	top: 100%;
	left: 50%;
	width: var(--r);
	height: var(--r);
	border-radius: 50%;
	transform: translate(-50%, calc(var(--r) * 0.14));
	background:
		linear-gradient(transparent 45%, var(--tt-gold-dark) 45%, var(--tt-gold-light) 49%, var(--tt-gold) 53%, var(--tt-gold-dark) 57%, transparent 57%),
		radial-gradient(circle at 35% 30%, #e25569 0%, var(--tt-ornament) 40%, #3d0710 100%);
	box-shadow: inset calc(var(--r) * -0.09) calc(var(--r) * -0.11) calc(var(--r) * 0.25) rgb(0 0 0 / 0.45), 0 calc(var(--r) * 0.12) calc(var(--r) * 0.3) rgb(0 0 0 / 0.35);
}

/* Tapa dorada y reflejo. */
.tt-x-ball i::before {
	content: "";
	position: absolute;
	top: calc(var(--r) * -0.12);
	left: 50%;
	width: calc(var(--r) * 0.21);
	height: calc(var(--r) * 0.14);
	transform: translateX(-50%);
	border-radius: 3px 3px 1px 1px;
	background: linear-gradient(90deg, var(--tt-gold-dark), var(--tt-gold-light) 35%, var(--tt-gold) 60%, var(--tt-gold-dark));
}

.tt-x-ball i::after {
	content: "";
	position: absolute;
	left: 21%;
	top: 16%;
	width: 25%;
	height: 16%;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.5);
	filter: blur(calc(var(--r) * 0.045));
	transform: rotate(-30deg);
}

.tt-x-ball--gold i {
	--r: 3.25rem;
	background: radial-gradient(circle at 35% 30%, #fff6dd 0%, var(--tt-gold) 45%, var(--tt-gold-dark) 100%);
	filter: blur(1px);
}

.tt-x-ball--small i {
	--r: 4rem;
	background: radial-gradient(circle at 35% 30%, #e25569 0%, var(--tt-ornament) 40%, #3d0710 100%);
}

.tt-x-ball--gold {
	animation-duration: 5s;
}

.tt-x-bokeh {
	position: absolute;
	width: var(--s);
	height: var(--s);
	border-radius: 50%;
	background: radial-gradient(circle, var(--tt-glow) 0%, rgb(255 217 143 / 0.35) 55%, transparent 72%);
	filter: blur(calc(var(--s) * 0.18));
	opacity: 0.5;
	animation: tt-twinkle var(--d, 4s) ease-in-out infinite alternate;
}

.tt-x-sparkle {
	position: absolute;
	width: var(--s);
	color: var(--tt-gold-light);
	filter: drop-shadow(0 0 6px rgb(255 217 143 / 0.7));
	animation: tt-twinkle 3s ease-in-out infinite alternate;
}

.tt-x-sparkle svg {
	display: block;
	width: 100%;
}

.tt-x-snow {
	display: none;
}

body.tt-season--snow .tt-x-snow {
	display: block;
	position: absolute;
	inset: -100% 0 0;
	background-image:
		radial-gradient(2px 2px at 20px 30px, #fff, transparent),
		radial-gradient(1.5px 1.5px at 80px 120px, rgb(255 255 255 / 0.8), transparent),
		radial-gradient(2.5px 2.5px at 150px 60px, rgb(255 255 255 / 0.6), transparent),
		radial-gradient(1.5px 1.5px at 120px 170px, rgb(255 255 255 / 0.7), transparent),
		radial-gradient(2px 2px at 190px 140px, rgb(255 255 255 / 0.5), transparent);
	background-size: 220px 220px;
	opacity: 0.5;
	animation: tt-snow 40s linear infinite;
}

.tt-xmas--band .tt-x-bokeh {
	opacity: 0.35;
}

@keyframes tt-sway {
	from {
		transform: rotate(-2.5deg);
	}

	to {
		transform: rotate(2.5deg);
	}
}

@keyframes tt-twinkle {
	from {
		opacity: 0.3;
	}

	to {
		opacity: 0.9;
	}
}

@keyframes tt-snow {
	to {
		transform: translateY(50%);
	}
}

@media (max-width: 781px) {
	.tt-x-ball--big {
		--x: 88% !important;
		--len: 12% !important;
	}

	.tt-x-ball--big i {
		--r: 4.5rem;
	}

	.tt-x-ball--small,
	.tt-x-ball--gold {
		display: none;
	}
}

/* ---------- Botón flotante de WhatsApp (inc/whatsapp.php) ---------- */
.tt-wa {
	--tt-wa: #25d366; /* verde de WhatsApp: color de marca, no del tema */
	position: fixed;
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 40;
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: #fff;
	text-decoration: none;
}

.tt-wa:hover {
	text-decoration: none;
}

.tt-wa--right {
	right: max(1rem, env(safe-area-inset-right));
}

.tt-wa--left {
	left: max(1rem, env(safe-area-inset-left));
	flex-direction: row-reverse;
}

.tt-wa__btn {
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-wa);
	box-shadow: var(--tt-float);
	transition: transform 0.2s ease;
}

.tt-wa--style-soft .tt-wa__btn {
	background: var(--tt-green-soft);
	color: #1f9d55;
	box-shadow: var(--tt-card-ring), var(--tt-float);
}

.tt-wa:hover .tt-wa__btn {
	transform: scale(1.06);
}

.tt-wa:focus-visible {
	outline: none;
}

.tt-wa:focus-visible .tt-wa__btn {
	box-shadow: 0 0 0 3px var(--tt-bg), 0 0 0 5px var(--tt-ring);
}

.tt-wa__icon {
	width: 1.875rem;
	height: 1.875rem;
}

.tt-wa__label {
	position: relative;
	padding: 0.5rem 0.875rem;
	border-radius: var(--tt-r-control);
	background: var(--tt-wa);
	color: #fff;
	box-shadow: var(--tt-float);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	white-space: nowrap;
	transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Piquito hacia el botón. */
.tt-wa__label::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -0.3rem;
	width: 0.6rem;
	height: 0.6rem;
	background: inherit;
	transform: translateY(-50%) rotate(45deg);
	border-radius: 0.125rem;
}

.tt-wa--left .tt-wa__label::after {
	right: auto;
	left: -0.3rem;
}

.tt-wa--style-soft .tt-wa__label {
	background: var(--tt-bg);
	color: var(--tt-fg);
	box-shadow: var(--tt-card-ring), var(--tt-float);
}

.tt-wa--label-hover .tt-wa__label {
	opacity: 0;
	transform: translateX(0.5rem) scale(0.96);
	pointer-events: none;
}

.tt-wa--left.tt-wa--label-hover .tt-wa__label {
	transform: translateX(-0.5rem) scale(0.96);
}

.tt-wa--label-hover:hover .tt-wa__label,
.tt-wa--label-hover:focus-visible .tt-wa__label {
	opacity: 1;
	transform: none;
}

@media (max-width: 781px) {
	.tt-wa__label {
		display: none;
	}

	.tt-wa__btn {
		width: 3.25rem;
		height: 3.25rem;
	}
}

/* ---------- 10. Pie de página (inc/layout.php) ---------- */
.tt-foot {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--tt-brand);
	color: rgb(255 255 255 / 0.72);
	padding-top: clamp(3rem, 7vw, 5rem);
	font-size: var(--wp--preset--font-size--sm);
}

/* Textura: líneas con el ángulo del logo y el símbolo grande, muy tenues. */
.tt-foot::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
	mask-image: linear-gradient(180deg, transparent, #000 60%);
}

.tt-foot::after {
	content: "";
	position: absolute;
	right: -6%;
	bottom: -18%;
	z-index: -1;
	width: min(30rem, 60vw);
	aspect-ratio: 371 / 328;
	background: rgb(255 255 255 / 0.04);
	-webkit-mask: var(--tt-i-logo) center / contain no-repeat;
	mask: var(--tt-i-logo) center / contain no-repeat;
}

.tt-foot__inner,
.tt-foot__bottom {
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left, 1rem);
}

.tt-foot__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
	gap: clamp(2.5rem, 6vw, 5rem);
}

.tt-foot .tt-logo {
	color: #fff;
}

.tt-foot .tt-logo__mark {
	width: 2.5rem;
}

.tt-foot .tt-logo__word {
	font-size: 1.0625rem;
}

.tt-foot__slogan {
	margin: 1.5rem 0 0.25rem;
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	letter-spacing: -0.015em;
}

.tt-foot__slogan + .tt-foot__tagline {
	margin-top: 0.25rem;
}

.tt-foot__social {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.5rem;
	padding: 0 1rem 0 0.75rem;
	border-radius: var(--tt-r-control);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28);
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s;
}

.tt-foot__social:hover {
	background: rgb(255 255 255 / 0.08);
	color: #fff;
	text-decoration: none;
}

.tt-foot__social .tt-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.tt-foot__tagline {
	margin: 1.25rem 0 1.5rem;
	color: var(--wp--preset--color--brand-accent);
	font-size: var(--wp--preset--font-size--base);
	max-width: 32ch;
}

.tt-foot__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.tt-foot__mail {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: rgb(255 255 255 / 0.35);
	text-underline-offset: 3px;
}

.tt-foot__mail:hover {
	text-decoration-color: #fff;
}

.tt-foot__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.tt-foot__title {
	margin: 0 0 1rem;
	color: #fff;
	font-family: var(--wp--preset--font-family--sans);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 600;
	letter-spacing: 0;
}

.tt-foot__col ul {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-foot__col a {
	color: rgb(255 255 255 / 0.72);
	text-decoration: none;
	transition: color 0.2s;
}

.tt-foot__col a:hover {
	color: #fff;
}

.tt-foot__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-top: clamp(2.5rem, 6vw, 4rem);
	padding-block: 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.12);
	box-sizing: content-box;
}

.tt-foot__legal {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
}

.tt-foot__pay {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--wp--preset--font-size--xs);
}

.tt-foot__pay ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tt-foot__pay li {
	padding: 0.25rem 0.625rem;
	border-radius: var(--tt-r-control);
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
	color: #fff;
}

@media (max-width: 781px) {
	.tt-foot__inner {
		grid-template-columns: 1fr;
	}

	.tt-foot__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.wc-block-mini-cart__button.tt-bump {
	animation: tt-bump 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes tt-bump {
	40% {
		transform: scale(1.18);
	}
}

/* Menos movimiento si el usuario lo pide: sin animaciones ni transiciones. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
