/*
Theme Name: Tercera Hoja
Theme URI: https://tercerahoja.com.ar
Author: Tercera Hoja
Description: Tema propio de la tienda. Todo el diseño vive acá; no usa constructores de páginas.
Version: 1.0.0
Requires PHP: 8.2
Text Domain: tercerahoja
*/

@font-face {
	font-family: "Learning Curve";
	src: url("assets/fonts/learningcurve-webfont.woff2") format("woff2");
	font-display: swap;
}

:root {
	--th-violeta: #8a5fb3;
	--th-violeta-oscuro: #6e4794;
	--th-ciruela: #6d4f6b;
	--th-rosa: #f4b6b8;
	--th-rosa-claro: #fbe7e7;
	--th-arena: #c8b79e;
	--th-tierra: #4f4a40;
	--th-texto: #4a4141;
	--th-suave: #7d7171;
	--th-borde: #ebe5e0;
	--th-fondo: #faf8f6;
	--th-blanco: #fff;
	--th-radio: 10px;
	--th-sombra: 0 6px 24px rgb(79 74 64 / 8%);
	--th-ancho: 1180px;
	--th-sombra-alta: 0 14px 34px rgb(79 74 64 / 16%);
	--th-curva: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--th-texto);
	background: var(--th-fondo);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--th-violeta-oscuro); text-underline-offset: 3px; }
a:hover { color: var(--th-ciruela); }
h1, h2, h3 { line-height: 1.25; font-weight: 500; color: var(--th-tierra); }
:focus-visible { outline: 2px solid var(--th-violeta); outline-offset: 2px; }

.th-contenedor { width: min(100% - 32px, var(--th-ancho)); margin-inline: auto; }
.th-manuscrita { font-family: "Learning Curve", cursive; font-weight: 400; }
.th-centrado { text-align: center; }
.th-icono { flex: none; }

.th-saltar { position: absolute; left: -9999px; }
.th-saltar:focus { left: 16px; top: 16px; z-index: 100; background: var(--th-blanco); padding: 8px 12px; }

/* ---------------------------------------------------------------- botones */

.th-boton,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--th-violeta);
	color: var(--th-blanco);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, box-shadow .25s var(--th-curva), transform .25s var(--th-curva);
}
.th-boton:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--th-violeta-oscuro);
	color: var(--th-blanco);
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgb(110 71 148 / 28%);
}
.th-boton:active,
.woocommerce a.button:active,
.woocommerce button.button:active { transform: translateY(0); box-shadow: none; }

.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--th-violeta); color: var(--th-blanco); }
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--th-violeta-oscuro); }

.th-boton--secundario,
.woocommerce a.th-boton-consultar {
	background: transparent;
	color: var(--th-violeta-oscuro);
	box-shadow: inset 0 0 0 1.5px var(--th-violeta);
}
.th-boton--secundario:hover,
.woocommerce a.th-boton-consultar:hover { background: var(--th-violeta); color: var(--th-blanco); box-shadow: inset 0 0 0 1.5px var(--th-violeta), 0 8px 18px rgb(110 71 148 / 22%); }

.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] { background: var(--th-arena); color: var(--th-blanco); opacity: .7; }

/* ---------------------------------------------------------------- cabecera */

.th-cabecera {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--th-blanco);
	border-bottom: 1px solid var(--th-borde);
}
.th-cabecera__fila {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}
.th-marca img { width: 264px; transition: opacity .2s; }
.th-marca:hover img { opacity: .85; }
.th-nav { margin-left: auto; }
.th-nav ul { list-style: none; margin: 0; padding: 0; }
.th-nav__escritorio { display: flex; gap: 32px; }
.th-nav a {
	position: relative;
	color: var(--th-texto);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.th-nav a { transition: color .2s; }
.th-nav__escritorio a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transition: transform .3s var(--th-curva);
}
.th-nav a:hover,
.th-nav a[aria-current="page"] { color: var(--th-violeta); }
.th-nav__escritorio a:hover::after,
.th-nav__escritorio a[aria-current="page"]::after { transform: scaleX(1); }
.th-nav__movil { display: none; }

.th-acciones { display: flex; align-items: center; gap: 14px; }
.th-cuenta,
.th-carrito { position: relative; display: inline-flex; color: var(--th-tierra); padding: 6px; transition: color .2s, transform .25s var(--th-curva); }
.th-cuenta:hover,
.th-carrito:hover { color: var(--th-violeta); transform: translateY(-2px); }
.th-carrito.is-saltando { animation: th-saltar .6s var(--th-curva); }
@keyframes th-saltar {
	0%, 100% { transform: none; }
	30% { transform: translateY(-6px) scale(1.12); }
	60% { transform: translateY(1px) scale(.96); }
}
.th-carrito__cantidad {
	position: absolute;
	top: -2px;
	right: -6px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--th-violeta);
	color: var(--th-blanco);
	font-size: 11px;
	font-weight: 600;
	line-height: 19px;
	text-align: center;
}

@media (max-width: 760px) {
	.th-cabecera__fila { min-height: 64px; gap: 8px; }
	.th-marca img { width: 192px; }
	.th-nav__escritorio { display: none; }
	.th-nav { order: -1; margin-left: 0; }
	.th-nav__movil { display: block; position: relative; }
	.th-nav__movil summary { list-style: none; cursor: pointer; padding: 6px; display: flex; color: var(--th-tierra); }
	.th-nav__movil summary::-webkit-details-marker { display: none; }
	.th-nav__movil ul {
		position: absolute;
		top: calc(100% + 10px);
		left: -8px;
		width: min(80vw, 280px);
		padding: 8px 0;
		background: var(--th-blanco);
		border-radius: var(--th-radio);
		box-shadow: var(--th-sombra);
	}
	.th-nav__movil a { display: block; padding: 12px 20px; }
	.th-acciones { margin-left: auto; }
}

/* ---------------------------------------------------------------- portada */

.th-portada {
	position: relative;
	display: grid;
	min-height: min(68vh, 560px);
	overflow: hidden;
	background: var(--th-tierra);
	color: var(--th-blanco);
	text-align: center;
}
.th-carrusel__diapositiva {
	grid-area: 1 / 1;
	position: relative;
	display: grid;
	place-items: center;
	padding: 64px 72px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity .9s ease, visibility 0s .9s;
}
.th-carrusel__diapositiva.is-activa { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; z-index: 1; }
/* La foto, con un zoom lento mientras la diapositiva está activa. */
.th-carrusel__diapositiva::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(rgb(40 30 40 / 50%), rgb(40 30 40 / 50%)), var(--th-portada) center / cover;
	transform: scale(1.08);
	transition: transform 7s ease-out;
}
.th-carrusel__diapositiva.is-activa::before { transform: scale(1); }
.th-portada__texto { position: relative; max-width: 720px; }
.th-portada__titulo { margin: 0 0 12px; color: var(--th-blanco); font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.15; }
.th-portada p { margin: 0 auto 28px; max-width: 520px; font-size: 1.05rem; }
/* El texto entra después de la foto. */
.th-portada__texto > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s var(--th-curva); }
.is-activa .th-portada__texto > * { opacity: 1; transform: none; }
.is-activa .th-portada__texto > :nth-child(1) { transition-delay: .25s; }
.is-activa .th-portada__texto > :nth-child(2) { transition-delay: .4s; }
.is-activa .th-portada__texto > :nth-child(3) { transition-delay: .55s; }

.th-carrusel__flecha {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 16%);
	color: var(--th-blanco);
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background-color .2s, transform .25s var(--th-curva);
}
.th-carrusel__flecha:hover { background: rgb(255 255 255 / 32%); transform: scale(1.08); }
.th-carrusel__flecha--anterior { left: 20px; }
.th-carrusel__flecha--siguiente { right: 20px; }
.th-carrusel__flecha .th-icono { width: 24px; height: 24px; }

.th-carrusel__puntos {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.th-carrusel__puntos button {
	position: relative;
	width: 28px;
	height: 6px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: rgb(255 255 255 / 40%);
	cursor: pointer;
	transition: width .3s var(--th-curva), background-color .2s;
}
.th-carrusel__puntos button:hover { background: rgb(255 255 255 / 70%); }
.th-carrusel__puntos button[aria-current="true"] { width: 48px; }
/* Barrita que se llena hasta el cambio de diapositiva. */
.th-carrusel__puntos button[aria-current="true"]::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--th-blanco);
	transform-origin: left;
}
.th-carrusel.is-corriendo .th-carrusel__puntos button[aria-current="true"]::after { animation: th-progreso var(--th-intervalo, 6s) linear; }
@keyframes th-progreso { from { transform: scaleX(0); } }

@media (max-width: 760px) {
	.th-carrusel__diapositiva { padding: 56px 20px 64px; }
	.th-carrusel__flecha { display: none; }
}

.th-beneficios {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	padding-block: 56px;
	text-align: center;
}
.th-beneficio { padding: 8px 12px; }
.th-beneficio__icono { position: relative; display: block; width: 96px; margin: 0 auto 18px; }
.th-beneficio__icono img { position: relative; z-index: 1; width: 96px; border-radius: 50%; transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
/* Dos anillos: uno fijo que aparece y otro que late hacia afuera. */
.th-beneficio__icono::before,
.th-beneficio__icono::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	pointer-events: none;
}
.th-beneficio__icono::before { box-shadow: 0 0 0 0 var(--th-rosa-claro); transition: box-shadow .45s var(--th-curva); }
.th-beneficio__icono::after { border: 2px solid var(--th-rosa); opacity: 0; }
.th-beneficio:hover .th-beneficio__icono img { transform: translateY(-6px) rotate(-8deg) scale(1.05); }
.th-beneficio:hover .th-beneficio__icono::before { box-shadow: 0 0 0 9px var(--th-rosa-claro); }
.th-beneficio:hover .th-beneficio__icono::after { animation: th-latido 1.4s ease-out infinite; }
@keyframes th-latido {
	from { opacity: .9; scale: 1; }
	to { opacity: 0; scale: 1.45; }
}
.th-beneficio h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: color .25s; }
.th-beneficio h2::after {
	content: "";
	display: block;
	width: 0;
	height: 2px;
	margin: 6px auto 0;
	border-radius: 2px;
	background: var(--th-rosa);
	transition: width .4s var(--th-curva);
}
.th-beneficio:hover h2 { color: var(--th-violeta-oscuro); }
.th-beneficio:hover h2::after { width: 48px; }
.th-beneficio p { margin: 0; color: var(--th-suave); font-size: .95rem; }

.th-promo {
	padding: 28px 16px;
	background: linear-gradient(rgb(60 30 70 / 55%), rgb(60 30 70 / 55%)), var(--th-promo) center / cover;
	color: var(--th-blanco);
	text-align: center;
}
.th-promo p { margin: 0; font-size: clamp(1rem, 2.4vw, 1.3rem); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

.th-seccion { padding-block: 56px 16px; }
.th-titulo-seccion {
	margin: 0 0 32px;
	color: var(--th-ciruela);
	font-size: clamp(2rem, 4vw, 2.6rem);
	text-align: center;
}
.th-titulo-seccion::after {
	content: "";
	display: block;
	width: 140px;
	height: 6px;
	margin: 4px auto 0;
	border-radius: 999px;
	background: var(--th-rosa);
}

.th-categorias { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.th-categoria {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--th-radio);
	color: var(--th-blanco);
	text-decoration: none;
}
.th-categoria { transition: box-shadow .35s var(--th-curva), transform .35s var(--th-curva); }
.th-categoria img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--th-curva); }
.th-categoria:hover { box-shadow: var(--th-sombra-alta); transform: translateY(-4px); }
.th-categoria:hover img { transform: scale(1.07); }
.th-categoria span {
	position: absolute;
	inset: auto 0 0;
	padding: 18px 20px;
	background: linear-gradient(transparent, rgb(55 30 65 / 85%));
	font-size: clamp(1rem, 2.4vw, 1.3rem);
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
	transition: padding .35s var(--th-curva);
}
.th-categoria span::after { content: " →"; display: inline-block; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--th-curva); }
.th-categoria:hover { color: var(--th-blanco); }
.th-categoria:hover span { padding-bottom: 26px; }
.th-categoria:hover span::after { opacity: 1; transform: none; }

/* Entrada al aparecer en pantalla (la clase la pone el JS antes de pintar). Usa animation y
   la propiedad translate para no pisar las transiciones de transform del hover. */
.th-con-animaciones .th-revelar:not(.is-visible) { opacity: 0; }
.th-con-animaciones .th-revelar.is-visible { animation: th-entrar .8s var(--th-curva) calc(var(--th-orden, 0) * 120ms) both; }
@keyframes th-entrar { from { opacity: 0; translate: 0 28px; } }
.th-con-animaciones .th-beneficio.is-visible .th-beneficio__icono { animation: th-icono-entrar .8s cubic-bezier(.34, 1.56, .64, 1) calc(var(--th-orden, 0) * 120ms + .15s) both; }
@keyframes th-icono-entrar { from { scale: .6; rotate: -20deg; } }

@media (max-width: 760px) {
	.th-beneficios { grid-template-columns: 1fr; gap: 28px; padding-block: 40px; }
	.th-categorias { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- páginas */

.th-principal { min-height: 50vh; }
.th-pagina { padding-block: 40px 64px; }
.th-pagina__titulo { margin: 0 0 24px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.th-texto { max-width: 760px; }
.woocommerce-cart .th-texto,
.woocommerce-checkout .th-texto,
.woocommerce-account .th-texto { max-width: none; }
.correo_argentino_review_order_section:empty,
.correo_argentino_review_order_section:not(:has(address:not([style*="display: none"]))) { display: none; }
.th-texto h2 { margin-top: 2em; font-size: 1.2rem; }

.th-tarjeta {
	padding: 28px;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
}
.th-tarjeta h2 { margin-top: 0; }

.th-lista-contacto,
.th-pie__contacto { list-style: none; margin: 0 0 20px; padding: 0; }
.th-lista-contacto li,
.th-pie__contacto li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.th-lista-contacto .th-icono { color: var(--th-violeta); }

/* ---------------------------------------------------------------- pie */

.th-pie { margin-top: 64px; padding-top: 56px; background: var(--th-tierra); color: #e9e4dc; font-size: 14px; }
.th-pie a { color: #e9e4dc; text-decoration: none; }
.th-pie a { transition: color .2s; }
.th-pie a:hover { color: var(--th-blanco); }
.th-pie nav a { display: inline-block; transition: color .2s, transform .25s var(--th-curva); }
.th-pie nav a:hover { transform: translateX(4px); }
.th-pie__contacto a:hover { text-decoration: underline; }
.th-pie h2 { margin: 0 0 14px; color: var(--th-blanco); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.th-pie ul { list-style: none; margin: 0; padding: 0; }
.th-pie nav li { padding: 4px 0; }
.th-pie__columnas { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr .8fr; gap: 32px; padding-bottom: 40px; }
.th-pie__marca img { width: 170px; }
.th-redes { display: flex; gap: 10px; }
.th-redes a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgb(255 255 255 / 12%);
}
.th-redes a { transition: background-color .2s, transform .25s var(--th-curva); }
.th-redes a:hover { background: var(--th-violeta); transform: translateY(-3px); text-decoration: none; }
.th-pie__legal { margin: 0; padding: 18px 16px; border-top: 1px solid rgb(255 255 255 / 12%); text-align: center; font-size: 13px; }

@media (max-width: 860px) {
	.th-pie__columnas { grid-template-columns: 1fr 1fr; }
	.th-pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.th-pie__columnas { grid-template-columns: 1fr; }
}

.th-whatsapp {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 30;
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 13px;
	border-radius: 999px;
	background: #25d366;
	color: var(--th-blanco);
	text-decoration: none;
	box-shadow: 0 6px 18px rgb(0 0 0 / 20%);
	transition: background-color .2s, transform .3s var(--th-curva), box-shadow .3s;
}
/* Pulso suave cada tanto, para que se note sin molestar. */
.th-whatsapp::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	animation: th-pulso 3.2s ease-out 2s infinite;
	pointer-events: none;
}
@keyframes th-pulso {
	0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 55%); }
	45%, 100% { box-shadow: 0 0 0 16px rgb(37 211 102 / 0%); }
}
.th-whatsapp .th-icono { flex: none; width: 30px; height: 30px; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.th-whatsapp__texto {
	max-width: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	transition: max-width .45s var(--th-curva), opacity .3s, margin .45s var(--th-curva);
}
.th-whatsapp:hover { color: var(--th-blanco); background: #1fb457; box-shadow: 0 10px 24px rgb(37 211 102 / 40%); }
.th-whatsapp:hover::before { animation: none; }
.th-whatsapp:hover .th-icono { transform: rotate(-12deg) scale(1.05); }
.th-whatsapp:hover .th-whatsapp__texto { max-width: 220px; margin: 0 10px 0 6px; opacity: 1; }
@media (hover: none) {
	.th-whatsapp__texto { display: none; }
}

/* ---------------------------------------------------------------- tienda */

.woocommerce .woocommerce-breadcrumb { margin-bottom: 16px; color: var(--th-suave); font-size: 13px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--th-suave); }
.woocommerce-products-header__title { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.woocommerce .woocommerce-result-count { color: var(--th-suave); font-size: 14px; }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select,
.th-formulario select {
	appearance: none;
	padding: 9px 40px 9px 16px;
	border: 1px solid #d9d1ca;
	border-radius: 999px;
	background: var(--th-blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5fb3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
	color: var(--th-texto);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s;
}
.woocommerce .woocommerce-ordering select:hover,
.th-formulario select:hover { border-color: var(--th-violeta); }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 32px; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	display: flex;
	flex-direction: column;
	width: auto;
	margin: 0;
	padding: 0 0 16px;
	float: none;
	clear: none;
	overflow: hidden;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	container-type: inline-size;
	transition: box-shadow .35s var(--th-curva), transform .35s var(--th-curva), opacity .7s ease;
}
.woocommerce ul.products li.product:hover { box-shadow: var(--th-sombra-alta); transform: translateY(-6px); }
.woocommerce ul.products li.product > a { text-decoration: none; }
.th-tarjeta__foto { position: relative; display: block; margin: 0 0 14px; overflow: hidden; }
.woocommerce ul.products li.product a .th-tarjeta__foto img { margin: 0; aspect-ratio: 1; object-fit: cover; transition: transform .7s var(--th-curva); }
.woocommerce ul.products li.product:hover .th-tarjeta__foto img { transform: scale(1.06); }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 16px;
	transition: color .2s;
	color: var(--th-texto);
	font-size: 15px;
	font-weight: 500;
}
.woocommerce ul.products li.product .price {
	display: block;
	margin: 4px 0 14px;
	padding: 0 16px;
	color: var(--th-ciruela);
	font-size: 16px;
	font-weight: 600;
}
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: var(--th-violeta-oscuro); }

/* Acciones de la tarjeta: cantidad + agregar en una fila, ver detalle abajo. */
.th-tarjeta-acciones {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 8px;
	margin: auto 16px 0;
}
.th-tarjeta-acciones > :not(.th-cantidad, .add_to_cart_button) { grid-column: 1 / -1; }
.woocommerce ul.products li.product .th-tarjeta-acciones .button { display: flex; justify-content: center; margin: 0; font-size: 14px; padding: 10px 14px; text-align: center; }
.woocommerce ul.products li.product .th-tarjeta-acciones .added_to_cart { display: none; }
.th-tarjeta-acciones .button { gap: 7px; }
.th-tarjeta-acciones .button .th-icono { width: 17px; height: 17px; transition: transform .3s var(--th-curva); }
.th-tarjeta-acciones .add_to_cart_button:hover .th-icono { animation: th-sacudir .5s ease; }
.th-tarjeta-acciones .th-boton-detalle:hover .th-icono { transform: translateX(4px); }
@keyframes th-sacudir {
	25% { transform: rotate(-12deg); }
	60% { transform: rotate(9deg); }
}
.woocommerce ul.products li.product a.button.add_to_cart_button { white-space: nowrap; }
.woocommerce ul.products li.product a.th-boton-detalle {
	background: transparent;
	color: var(--th-violeta-oscuro);
	box-shadow: inset 0 0 0 1.5px var(--th-borde);
}
.woocommerce ul.products li.product a.th-boton-detalle:hover {
	background: var(--th-rosa-claro);
	color: var(--th-violeta-oscuro);
	box-shadow: inset 0 0 0 1.5px var(--th-rosa);
}
.th-sin-stock { padding: 8px 0 2px; color: #a2453f; font-size: 14px; font-weight: 500; text-align: center; }

.th-cantidad {
	display: flex;
	align-items: center;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1.5px var(--th-borde);
	transition: box-shadow .2s;
}
.th-cantidad:hover,
.th-cantidad:focus-within { box-shadow: inset 0 0 0 1.5px var(--th-violeta); }
.th-cantidad button {
	display: grid;
	place-items: center;
	width: 32px;
	height: 38px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--th-violeta-oscuro);
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s, transform .15s;
}
.th-cantidad button:hover:not(:disabled) { color: var(--th-violeta); transform: scale(1.2); }
.th-cantidad button:disabled { color: var(--th-borde); cursor: default; }
.th-cantidad__numero {
	width: 30px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--th-texto);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	text-align: center;
	-moz-appearance: textfield;
}
.th-cantidad__numero::-webkit-inner-spin-button,
.th-cantidad__numero::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.th-cantidad__numero:focus { outline: none; }

/* Tarjeta angosta (celular, dos columnas): todo en columna. */
@container (max-width: 230px) {
	.th-tarjeta-acciones { grid-template-columns: 1fr; margin-inline: 12px; }
	.th-cantidad { justify-content: space-between; }
}
.woocommerce span.onsale {
	top: 10px;
	left: 10px;
	min-width: 0;
	min-height: 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--th-rosa);
	color: var(--th-tierra);
	font-size: 12px;
	line-height: 1.5;
}
.woocommerce ul.products li.product .outofstock-badge,
.woocommerce .stock.out-of-stock { color: #a2453f; }
.th-consultar { color: var(--th-suave); font-weight: 500; font-size: 14px; }

.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { border-radius: 8px; padding: 8px 13px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--th-violeta); color: var(--th-blanco); }

@media (max-width: 960px) {
	.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 12px; font-size: 14px; }
	.woocommerce ul.products li.product .price { padding: 0 12px; }
	.woocommerce ul.products li.product .th-tarjeta-acciones .button { font-size: 13px; padding: 9px 10px; }
}

/* producto */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: auto; float: none; margin: 0; }
.woocommerce div.product div.images img { border-radius: var(--th-radio); }
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .product_title { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--th-ciruela); font-size: 1.6rem; font-weight: 600; }
.woocommerce div.product form.cart { display: flex; gap: 12px; align-items: center; margin: 24px 0; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce .quantity .qty {
	width: 72px;
	padding: 10px;
	border: 1px solid var(--th-borde);
	border-radius: 999px;
	font: inherit;
	text-align: center;
}
.woocommerce div.product .product_meta { color: var(--th-suave); font-size: 14px; }
.woocommerce div.product .product_meta > span { display: block; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 20px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--th-borde); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: none; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { box-shadow: inset 0 -2px 0 var(--th-violeta); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-child { display: none; }
.related > h2 { margin-top: 48px; }

@media (max-width: 760px) {
	.woocommerce div.product { grid-template-columns: 1fr; gap: 24px; }
}

/* avisos, carrito y checkout */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 0;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--th-violeta); }
.woocommerce-message { border-left: 4px solid var(--th-violeta); }

.woocommerce table.shop_table {
	border: 0;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	border-collapse: separate;
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table th { border-color: var(--th-borde); padding: 14px 16px; }
.woocommerce table.cart img { width: 64px; border-radius: 8px; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: min(100%, 460px); margin-left: auto; }
.woocommerce-cart .cart-collaterals .cart_totals h2 { margin-top: 0; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single {
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid #d9d1ca;
	border-radius: 8px;
	background: var(--th-blanco);
	font: inherit;
	font-size: 15px;
}
.woocommerce .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 22px; }
.woocommerce .select2-container .select2-selection--single .select2-selection__arrow { top: 9px; right: 8px; }
.woocommerce form .form-row label { font-size: 14px; font-weight: 500; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.th-formulario input,
.th-formulario textarea,
.th-formulario select { transition: border-color .2s, box-shadow .2s; }
.woocommerce form .form-row input.input-text:hover,
.th-formulario input:hover,
.th-formulario textarea:hover { border-color: #c3b6c9; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.th-formulario input:focus,
.th-formulario textarea:focus,
.th-formulario select:focus,
.woocommerce .woocommerce-ordering select:focus {
	border-color: var(--th-violeta);
	outline: none;
	box-shadow: 0 0 0 4px rgb(138 95 179 / 15%);
}

.woocommerce-checkout #customer_details { margin-bottom: 32px; }
.woocommerce-checkout #payment {
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
}
.woocommerce-checkout #payment div.payment_box { background: var(--th-rosa-claro); color: var(--th-texto); border-radius: 8px; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--th-rosa-claro); }
.woocommerce ul#shipping_method li { margin-bottom: 6px; }

@media (min-width: 960px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		gap: 0 48px;
		align-items: start;
	}
	.woocommerce-checkout form.checkout > * { grid-column: 1; }
	.woocommerce-checkout form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
	.woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-top: 0; }
	.woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 100px; }
	.woocommerce-checkout #customer_details .col-1,
	.woocommerce-checkout #customer_details .col-2 { float: none; width: auto; }
}

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 8px 0; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--th-violeta); font-weight: 600; }

/* envío a cotizar (Correo no respondió) */
.th-aviso-envio {
	padding: 12px 14px;
	border-left: 4px solid var(--th-rosa);
	border-radius: 8px;
	background: var(--th-rosa-claro);
	color: var(--th-texto);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}
.woocommerce-order .th-aviso-envio { margin: 0 0 24px; }

/* formularios propios (contacto, arrepentimiento) */
.th-formulario { max-width: 560px; }
.th-formulario p { margin: 0 0 16px; }
.th-formulario label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.th-formulario input,
.th-formulario textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid #d9d1ca;
	border-radius: 10px;
	background: var(--th-blanco);
	font: inherit;
	font-size: 15px;
}
.th-formulario select { width: 100%; min-height: 46px; border-radius: 10px; font-size: 15px; }
.th-formulario textarea { min-height: 140px; resize: vertical; }
.th-formulario input:user-invalid,
.th-formulario textarea:user-invalid { border-color: #c4655f; }
.th-opcional { color: var(--th-suave); font-weight: 400; }
.th-oculto { position: absolute; left: -9999px; }
.th-arrepentimiento { font-weight: 600; text-decoration: underline !important; }

/* ---------------------------------------------------------------- utilidades */

:root { interpolate-size: allow-keywords; }
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
body.th-sin-scroll { overflow: hidden; }
.th-insignia {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--th-violeta);
	color: var(--th-blanco);
	font-size: 12px;
	font-weight: 600;
}
@keyframes th-flotar {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -6px; }
}
@keyframes th-aparecer { from { opacity: 0; } }
@keyframes th-pop {
	0% { scale: .4; opacity: 0; }
	70% { scale: 1.1; opacity: 1; }
}

/* ---------------------------------------------------------------- encabezado de página */

.th-encabezado {
	position: relative;
	overflow: hidden;
	margin-bottom: 40px;
	padding: 44px 0 40px;
	background: linear-gradient(135deg, var(--th-rosa-claro), #f1eaf6);
	text-align: center;
}
.th-encabezado__contenido { position: relative; z-index: 1; }
.th-encabezado__icono {
	display: inline-grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--th-blanco);
	color: var(--th-violeta);
	box-shadow: var(--th-sombra);
	animation: th-flotar 4s ease-in-out infinite;
}
.th-encabezado__icono .th-icono { width: 26px; height: 26px; }
.th-encabezado__ante { margin: 0; color: var(--th-violeta-oscuro); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.th-encabezado__titulo { margin: 2px 0 6px; color: var(--th-ciruela); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.2; }
.th-encabezado__bajada { max-width: 560px; margin: 0 auto; color: var(--th-suave); }
.th-encabezado__hojas {
	position: absolute;
	right: -40px;
	bottom: -70px;
	width: 240px;
	fill: rgb(138 95 179 / 7%);
	stroke: rgb(138 95 179 / 16%);
	stroke-width: 2;
	rotate: -14deg;
}
.th-con-animaciones .th-encabezado__contenido > * { animation: th-entrar .8s var(--th-curva) both; }
.th-con-animaciones .th-encabezado__contenido > :nth-child(1) { animation: th-entrar .8s var(--th-curva) both, th-flotar 4s ease-in-out .8s infinite; }
.th-con-animaciones .th-encabezado__contenido > :nth-child(2) { animation-delay: .08s; }
.th-con-animaciones .th-encabezado__contenido > :nth-child(3) { animation-delay: .16s; }
.th-con-animaciones .th-encabezado__contenido > :nth-child(4) { animation-delay: .24s; }
.th-con-animaciones .th-encabezado__hojas { animation: th-hojas 1.2s var(--th-curva) both; }
@keyframes th-hojas { from { opacity: 0; translate: 40px 40px; rotate: 10deg; } }

/* ---------------------------------------------------------------- tienda: filtros */

.th-tienda--listado {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	padding-bottom: 32px;
}
.th-tienda__abrir-filtros { display: none; }
.th-tienda--listado ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.th-filtros {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 22px;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	scrollbar-width: thin;
	transition: opacity .2s;
}
.th-filtros.is-cargando { opacity: .55; pointer-events: none; }
.th-filtros__cabecera { display: none; }
.th-filtros__grupo { min-width: 0; margin: 0; padding: 0; border: 0; }
.th-filtros__titulo {
	margin: 0 0 10px;
	padding: 0;
	color: var(--th-ciruela);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.th-filtros__form { display: flex; flex-direction: column; gap: 24px; }

.th-filtros__buscar { position: relative; }
.th-filtros__buscar .th-icono { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--th-suave); pointer-events: none; transition: color .2s; }
.th-filtros__buscar input {
	width: 100%;
	padding: 10px 14px 10px 40px;
	border: 1px solid #d9d1ca;
	border-radius: 999px;
	background: var(--th-fondo);
	font: inherit;
	font-size: 14px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.th-filtros__buscar input:focus { border-color: var(--th-violeta); outline: none; background: var(--th-blanco); box-shadow: 0 0 0 4px rgb(138 95 179 / 15%); }
.th-filtros__buscar:focus-within .th-icono { color: var(--th-violeta); }

.th-arbol,
.th-arbol ul { list-style: none; margin: 0; padding: 0; }
.th-arbol ul { margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1.5px solid var(--th-borde); }
.th-arbol a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 8px;
	color: var(--th-texto);
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color .2s, color .2s, padding .25s var(--th-curva);
}
.th-arbol ul a { font-size: 13.5px; }
.th-arbol a:hover { padding-left: 14px; background: var(--th-fondo); color: var(--th-violeta-oscuro); }
.th-arbol a[aria-current="page"] { background: var(--th-violeta); color: var(--th-blanco); font-weight: 500; }
.th-arbol__cuenta {
	flex: none;
	min-width: 24px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--th-fondo);
	color: var(--th-suave);
	font-size: 12px;
	text-align: center;
	transition: background-color .2s, color .2s;
}
.th-arbol a:hover .th-arbol__cuenta { background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); }
.th-arbol a[aria-current="page"] .th-arbol__cuenta { background: rgb(255 255 255 / 22%); color: var(--th-blanco); }

.th-interruptor { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.th-interruptor input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.th-interruptor__pista {
	position: relative;
	flex: none;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: #ddd5ce;
	transition: background-color .25s;
}
.th-interruptor__pista::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--th-blanco);
	box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
	transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.th-interruptor:hover .th-interruptor__pista { background: #cdc2b8; }
.th-interruptor input:checked + .th-interruptor__pista { background: var(--th-violeta); }
.th-interruptor input:checked + .th-interruptor__pista::after { transform: translateX(16px); }
.th-interruptor input:focus-visible + .th-interruptor__pista { outline: 2px solid var(--th-violeta); outline-offset: 2px; }

.th-precio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.th-precio label > span:first-child { display: block; margin-bottom: 4px; color: var(--th-suave); font-size: 12px; }
.th-precio__campo {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 10px;
	border: 1px solid #d9d1ca;
	border-radius: 8px;
	background: var(--th-blanco);
	color: var(--th-suave);
	font-size: 14px;
	transition: border-color .2s, box-shadow .2s;
}
.th-precio__campo:focus-within { border-color: var(--th-violeta); box-shadow: 0 0 0 4px rgb(138 95 179 / 15%); }
.th-precio__campo input { width: 100%; min-width: 0; padding: 9px 0; border: 0; outline: none; background: none; color: var(--th-texto); font: inherit; font-size: 14px; }
.th-filtros__acciones { display: flex; flex-direction: column; gap: 10px; }
.th-filtros__limpiar { font-size: 14px; text-align: center; }

/* Barra de resultados y filtros aplicados */
.th-tienda__barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.woocommerce .th-tienda__barra .woocommerce-result-count,
.woocommerce .th-tienda__barra .woocommerce-ordering { float: none; margin: 0; }
.th-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; padding: 0; list-style: none; }
.th-chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px 6px 14px;
	border-radius: 999px;
	background: var(--th-rosa-claro);
	color: var(--th-ciruela);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	animation: th-pop .35s var(--th-curva) both;
	transition: background-color .2s;
}
.th-chips a .th-icono { width: 14px; height: 14px; transition: transform .3s var(--th-curva); }
.th-chips a:hover { background: var(--th-rosa); color: var(--th-tierra); }
.th-chips a:hover .th-icono { transform: rotate(90deg); }
.th-chips .th-chips__limpiar { background: none; color: var(--th-violeta-oscuro); text-decoration: underline; animation: none; }
.th-chips .th-chips__limpiar:hover { background: none; color: var(--th-ciruela); }

.th-vacio { padding: 56px 24px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); text-align: center; }
.th-vacio__icono {
	display: inline-grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--th-rosa-claro);
	color: var(--th-violeta);
	animation: th-flotar 3.5s ease-in-out infinite;
}
.th-vacio__icono .th-icono { width: 32px; height: 32px; }
.th-vacio h2 { margin: 0 0 6px; font-size: 1.3rem; }
.th-vacio p { margin: 0 0 20px; color: var(--th-suave); }
.th-vacio .th-vacio__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }

@media (max-width: 960px) {
	.th-tienda--listado { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.th-js .th-tienda__abrir-filtros { display: inline-flex; justify-self: start; }
	.th-js .th-filtros {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 60;
		width: min(88vw, 340px);
		overflow: auto;
		border-radius: 0 16px 16px 0;
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .4s var(--th-curva), visibility 0s .4s;
	}
	.th-js .th-filtros.is-abierto { transform: none; visibility: visible; transition: transform .4s var(--th-curva); }
	.th-js .th-filtros__cabecera { display: flex; align-items: center; justify-content: space-between; }
	.th-filtros__cabecera p { margin: 0; color: var(--th-tierra); font-size: 1.15rem; font-weight: 600; }
	.th-filtros__cerrar {
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--th-fondo);
		color: var(--th-tierra);
		cursor: pointer;
		transition: background-color .2s, transform .3s var(--th-curva);
	}
	.th-filtros__cerrar:hover { background: var(--th-rosa-claro); transform: rotate(90deg); }
	.th-filtros__fondo { position: fixed; inset: 0; z-index: 55; background: rgb(40 30 40 / 45%); animation: th-aparecer .3s ease; }
}
@media (max-width: 680px) {
	.th-tienda--listado ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- portada: cómo comprar */

.th-pasos { margin-top: 56px; padding: 56px 0 64px; background: var(--th-blanco); }
.th-pasos__lista { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.th-pasos__lista::before {
	content: "";
	position: absolute;
	top: 40px;
	left: 17%;
	right: 17%;
	border-top: 2px dashed var(--th-rosa);
}
.th-paso { position: relative; padding: 0 12px; text-align: center; }
.th-paso__icono {
	position: relative;
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--th-rosa-claro);
	color: var(--th-violeta-oscuro);
	box-shadow: 0 0 0 10px var(--th-blanco);
	transition: background-color .3s, color .3s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.th-paso__icono > .th-icono { width: 34px; height: 34px; }
.th-paso__numero {
	position: absolute;
	top: -2px;
	right: -2px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--th-violeta);
	color: var(--th-blanco);
	font-size: 13px;
	font-weight: 600;
	transition: background-color .3s, color .3s, scale .3s;
}
.th-paso:hover .th-paso__icono { background: var(--th-violeta); color: var(--th-blanco); transform: translateY(-6px) rotate(-6deg); }
.th-paso:hover .th-paso__numero { background: var(--th-rosa); color: var(--th-tierra); scale: 1.15; }
.th-paso h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; transition: color .25s; }
.th-paso:hover h3 { color: var(--th-violeta-oscuro); }
.th-paso p { max-width: 300px; margin: 0 auto; color: var(--th-suave); font-size: .95rem; }
.th-con-animaciones .th-paso.is-visible .th-paso__icono > .th-icono { animation: th-icono-entrar .8s cubic-bezier(.34, 1.56, .64, 1) calc(var(--th-orden, 0) * 120ms + .15s) both; }
.th-con-animaciones .th-pasos__lista::before { transform-origin: left; scale: 0 1; transition: scale 1.2s var(--th-curva) .3s; }
.th-con-animaciones .th-pasos__lista:has(.is-visible)::before { scale: 1 1; }

@media (max-width: 760px) {
	.th-pasos__lista { grid-template-columns: 1fr; gap: 36px; }
	.th-pasos__lista::before { display: none; }
}

/* ---------------------------------------------------------------- contacto */

.th-canales { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 36px; padding: 0; list-style: none; }
.th-canal__enlace {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	padding: 20px;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	color: var(--th-texto);
	text-decoration: none;
	transition: transform .35s var(--th-curva), box-shadow .35s var(--th-curva);
}
a.th-canal__enlace:hover { color: var(--th-texto); transform: translateY(-4px); box-shadow: var(--th-sombra-alta); }
.th-canal__icono {
	display: grid;
	flex: none;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--th-rosa-claro);
	color: var(--th-violeta-oscuro);
	transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.th-canal__icono--whatsapp { background: #e2f8ea; color: #1b9e4f; }
.th-canal__icono--instagram { background: #fbe6ef; color: #b8326f; }
a.th-canal__enlace:hover .th-canal__icono { transform: rotate(-10deg) scale(1.08); }
.th-canal__texto { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.th-canal__texto strong { color: var(--th-tierra); font-size: 15px; font-weight: 600; }
.th-canal__texto span { font-size: 13.5px; overflow-wrap: anywhere; }
.th-canal__icono--email + .th-canal__texto span { overflow-wrap: normal; word-break: normal; }
.th-canal__texto small { margin-top: 2px; color: var(--th-suave); font-size: 12px; }
.th-canal__flecha { position: absolute; top: 20px; right: 20px; color: var(--th-violeta); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--th-curva); }
.th-canal__flecha .th-icono { width: 18px; height: 18px; }
a.th-canal__enlace:hover .th-canal__flecha { opacity: 1; transform: none; }

.th-contacto__grilla { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-bottom: 64px; }
.th-contacto__formulario { padding: 32px; scroll-margin-top: 110px; }
.th-contacto__formulario h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 1.35rem; }
.th-contacto__formulario h2 .th-icono { color: var(--th-violeta); }
.th-contacto__nota { margin: 0 0 22px; color: var(--th-suave); }
.th-formulario--contacto { max-width: none; }
.th-formulario__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.th-formulario__enviar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 0 !important; }
.th-formulario__enviar .th-boton { padding: 13px 26px; }
.th-formulario__enviar .th-boton .th-icono { width: 18px; height: 18px; transition: transform .35s var(--th-curva); }
.th-formulario__enviar .th-boton:hover .th-icono { transform: translate(3px, -3px); }
.th-contacto__privacidad { color: var(--th-suave); font-size: 13px; }

.th-exito { padding: 20px 8px 8px; text-align: center; }
.th-exito__icono { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 12px; border-radius: 50%; background: #e2f8ea; color: #1b9e4f; animation: th-pop .6s var(--th-curva) both; }
.th-exito__icono .th-icono { width: 34px; height: 34px; }
.th-exito h3 { margin: 0 0 8px; font-size: 1.25rem; }
.th-exito p { max-width: 440px; margin: 0 auto 20px; color: var(--th-suave); }

.th-contacto__lateral { position: sticky; top: 110px; display: grid; gap: 20px; }
.th-contacto__whatsapp { position: relative; overflow: hidden; background: linear-gradient(160deg, #25d366, #128c4a); color: var(--th-blanco); }
.th-contacto__whatsapp h2 { color: var(--th-blanco); font-size: 1.25rem; }
.th-contacto__whatsapp p { color: rgb(255 255 255 / 90%); }
.th-contacto__whatsapp-icono { position: absolute; top: -18px; right: -18px; opacity: .16; }
.th-contacto__whatsapp-icono .th-icono { width: 120px; height: 120px; }
.th-contacto__whatsapp:hover .th-contacto__whatsapp-icono { animation: th-flotar 2.5s ease-in-out infinite; }
.th-boton--whatsapp { background: var(--th-blanco); color: #128c4a; }
.th-boton--whatsapp .th-icono { width: 20px; height: 20px; }
.th-boton.th-boton--whatsapp:hover { background: #effcf4; color: #0e7a3f; box-shadow: 0 8px 18px rgb(0 0 0 / 18%); }
.th-contacto__redes h2 { font-size: 1.1rem; }
.th-contacto__redes p { margin: 0 0 14px; color: var(--th-suave); font-size: 14px; }
.th-redes--claras a { background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); }
.th-redes--claras a:hover { background: var(--th-violeta); color: var(--th-blanco); }

.th-preguntas { padding-bottom: 16px; }
.th-preguntas__grupo { padding: 24px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }
.th-preguntas__grupo h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; color: var(--th-ciruela); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.th-preguntas__icono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.th-preguntas__icono .th-icono { width: 20px; height: 20px; }
.th-preguntas__grupo:hover .th-preguntas__icono { transform: rotate(-10deg) scale(1.08); }
.th-preguntas details { border-bottom: 1px solid var(--th-borde); }
.th-preguntas details:last-child { border-bottom: 0; }
.th-preguntas summary { position: relative; padding: 14px 40px 14px 0; font-weight: 500; list-style: none; cursor: pointer; transition: color .2s; }
.th-preguntas summary::-webkit-details-marker { display: none; }
.th-preguntas summary:hover { color: var(--th-violeta-oscuro); }
.th-preguntas summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--th-fondo);
	color: var(--th-violeta);
	font-size: 1.2rem;
	line-height: 1;
	translate: 0 -50%;
	transition: transform .35s var(--th-curva), background-color .25s, color .25s;
}
.th-preguntas summary:hover::after { background: var(--th-rosa-claro); }
.th-preguntas details[open] summary::after { transform: rotate(45deg); background: var(--th-violeta); color: var(--th-blanco); }
/* Apertura animada donde el navegador lo permite. */
.th-preguntas details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--th-curva), content-visibility .35s allow-discrete; }
.th-preguntas details[open]::details-content { block-size: auto; }
.th-preguntas__respuesta p { margin: 0 0 16px; color: var(--th-suave); }

@media (max-width: 960px) {
	.th-canales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.th-contacto__grilla { grid-template-columns: 1fr; }
	.th-contacto__lateral { position: static; }
}
@media (max-width: 680px) {
	.th-canales,
	.th-formulario__fila { grid-template-columns: 1fr; }
	.th-contacto__formulario { padding: 24px 20px; }
	.th-canales { gap: 12px; }
	.th-canal__enlace { flex-direction: row; align-items: center; padding: 16px; }
	.th-canal__flecha { position: static; margin-left: auto; opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- preguntas frecuentes */

.th-preguntas__grupo h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; color: var(--th-ciruela); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.th-preguntas details { scroll-margin-top: 120px; }
.th-preguntas details.is-resaltada { animation: th-resaltar 1.8s ease; }
@keyframes th-resaltar {
	0%, 40% { background: var(--th-rosa-claro); box-shadow: 0 0 0 8px var(--th-rosa-claro); }
}
.th-preguntas mark { padding: 0 2px; border-radius: 3px; background: var(--th-rosa); color: inherit; }

.th-ayuda { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 16px; }
.th-ayuda__lateral { position: sticky; top: 110px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; padding: 20px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }
.th-ayuda__temas ul { margin: 0; padding: 0; list-style: none; }
.th-ayuda__temas a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--th-texto);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .2s, color .2s, padding .25s var(--th-curva);
}
.th-ayuda__temas a:hover { padding-left: 14px; background: var(--th-fondo); color: var(--th-violeta-oscuro); }
.th-ayuda__temas a.is-activo { background: var(--th-violeta); color: var(--th-blanco); }
.th-ayuda__temas .th-arbol__cuenta { margin-left: auto; }
.th-ayuda__temas a.is-activo .th-arbol__cuenta { background: rgb(255 255 255 / 22%); color: var(--th-blanco); }
.th-ayuda__tema-icono { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background-color .2s, color .2s; }
.th-ayuda__tema-icono .th-icono { width: 17px; height: 17px; }
.th-ayuda__temas a:hover .th-ayuda__tema-icono { transform: rotate(-10deg) scale(1.08); }
.th-ayuda__temas a.is-activo .th-ayuda__tema-icono { background: rgb(255 255 255 / 20%); color: var(--th-blanco); }
.th-ayuda__principal { display: grid; gap: 20px; }
.th-ayuda__principal .th-preguntas__grupo { scroll-margin-top: 110px; }
.th-ayuda__principal .th-preguntas__grupo[hidden],
.th-ayuda__principal details[hidden] { display: none; }

.th-ayuda__contacto {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 26px;
	border-radius: var(--th-radio);
	background: linear-gradient(135deg, var(--th-rosa-claro), #f1eaf6);
}
.th-ayuda__contacto-icono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--th-blanco); color: var(--th-violeta); box-shadow: var(--th-sombra); animation: th-flotar 4s ease-in-out infinite; }
.th-ayuda__contacto > div:nth-child(2) { flex: 1; min-width: 220px; }
.th-ayuda__contacto h2 { margin: 0 0 2px; font-size: 1.15rem; }
.th-ayuda__contacto p { margin: 0; color: var(--th-suave); font-size: 14px; }
.th-ayuda__contacto-botones { display: flex; flex-wrap: wrap; gap: 10px; }

.th-boton.th-boton--whatsapp-lleno { background: #25d366; }
.th-boton.th-boton--whatsapp-lleno:hover { background: #1fb457; box-shadow: 0 8px 18px rgb(37 211 102 / 35%); }
.th-boton--whatsapp-lleno .th-icono { width: 20px; height: 20px; }
.th-boton--flecha .th-icono { width: 18px; height: 18px; transition: transform .3s var(--th-curva); }
.th-boton--flecha:hover .th-icono { transform: translateX(4px); }

/* Adelanto en contacto */
.th-preguntas--adelanto { max-width: 800px; margin: 0 auto; }
.th-preguntas__intro { margin: -12px 0 24px; color: var(--th-suave); text-align: center; }
.th-preguntas__lista { margin-bottom: 24px; padding: 6px 24px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }

@media (max-width: 860px) {
	.th-ayuda { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.th-ayuda__lateral { position: static; padding: 14px; }
	.th-ayuda__temas .th-filtros__titulo { display: none; }
	.th-ayuda__temas ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
	.th-ayuda__temas a { white-space: nowrap; }
	.th-ayuda__temas .th-arbol__cuenta { display: none; }
}

/* ---------------------------------------------------------------- mi cuenta sin sesión */

.woocommerce-account .woocommerce-notices-wrapper { max-width: 980px; margin-inline: auto; }
.th-acceso {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	max-width: 980px;
	margin: 8px auto 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--th-blanco);
	box-shadow: var(--th-sombra-alta);
}
.th-acceso__bienvenida {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	padding: 48px 40px;
	background: linear-gradient(160deg, rgb(110 71 148 / 93%), rgb(109 79 107 / 90%)), var(--th-acceso) center / cover;
	color: var(--th-blanco);
}
.th-acceso__hoja { position: absolute; top: -40px; right: -40px; opacity: .14; animation: th-flotar 6s ease-in-out infinite; }
.th-acceso__hoja .th-icono { width: 200px; height: 200px; stroke-width: 1; }
.th-acceso__ante { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.th-acceso__bienvenida h1 { margin: 2px 0 10px; color: var(--th-blanco); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1.2; }
.th-acceso__bienvenida > p { margin: 0; color: rgb(255 255 255 / 88%); }
.th-acceso__ventajas { display: grid; gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.th-acceso__ventajas li { display: flex; align-items: flex-start; gap: 14px; }
.th-acceso__ventajas li > span {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgb(255 255 255 / 16%);
	transition: background-color .25s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.th-acceso__ventajas li:hover > span { background: rgb(255 255 255 / 28%); transform: rotate(-10deg) scale(1.08); }
.th-acceso__ventajas div { color: rgb(255 255 255 / 82%); font-size: 14px; line-height: 1.45; }
.th-acceso__ventajas strong { display: block; color: var(--th-blanco); font-size: 15px; font-weight: 600; }
.th-con-animaciones .th-acceso__ventajas li { animation: th-entrar .7s var(--th-curva) calc(var(--th-orden, 0) * 120ms + .2s) both; }

.th-acceso__panel { padding: 40px; }
.th-pestanas { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; padding: 4px; border-radius: 999px; background: var(--th-fondo); }
.th-pestanas[hidden] { display: none; }
.th-pestanas button {
	position: relative;
	z-index: 1;
	padding: 10px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--th-suave);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: color .3s;
}
.th-pestanas button:hover { color: var(--th-violeta-oscuro); }
.th-pestanas button[aria-selected="true"] { color: var(--th-blanco); }
.th-pestanas__marca {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: var(--th-ancho, 50%);
	border-radius: 999px;
	background: var(--th-violeta);
	box-shadow: 0 6px 14px rgb(110 71 148 / 30%);
	transform: translateX(var(--th-x, 4px));
	transition: transform .4s var(--th-curva), width .4s var(--th-curva);
}
.th-js [data-th-oculto] { display: none; }
.th-js .th-acceso__formulario h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.th-acceso__formulario h2 { margin: 0 0 16px; font-size: 1.3rem; }
.th-acceso__formulario + .th-acceso__formulario { margin-top: 32px; }
.th-js .th-acceso__formulario + .th-acceso__formulario { margin-top: 0; }
.th-acceso__formulario.is-entrando { animation: th-entrar .45s var(--th-curva); }
.woocommerce .th-acceso form.woocommerce-form { margin: 0; padding: 0; border: 0; border-radius: 0; }
.th-acceso .form-row { margin: 0 0 16px; padding: 0; }

.th-campo-icono { position: relative; display: block; }
.th-campo-icono > .th-icono { position: absolute; top: 50%; left: 14px; z-index: 1; width: 18px; height: 18px; translate: 0 -50%; color: var(--th-suave); pointer-events: none; transition: color .2s; }
.th-campo-icono:focus-within > .th-icono { color: var(--th-violeta); }
.woocommerce .th-campo-icono input.input-text { width: 100%; padding-left: 44px; border-radius: 10px; }
.th-campo-icono .password-input { display: block; }

.th-acceso__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 20px; }
.th-acceso__olvido { font-size: 14px; }
.th-casilla { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: 14px !important; font-weight: 400 !important; cursor: pointer; }
.th-casilla input {
	appearance: none;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1.5px solid #c9bdb3;
	border-radius: 5px;
	background: var(--th-blanco);
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.th-casilla input::after { content: ""; width: 10px; height: 6px; border-bottom: 2px solid var(--th-blanco); border-left: 2px solid var(--th-blanco); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.th-casilla:hover input { border-color: var(--th-violeta); }
.th-casilla input:checked { border-color: var(--th-violeta); background: var(--th-violeta); }
.th-casilla input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }

.woocommerce .th-acceso__enviar { width: 100%; padding: 13px 22px; font-size: 16px; }
.th-acceso__enviar .th-icono { width: 18px; height: 18px; transition: transform .3s var(--th-curva); }
.th-acceso__enviar:hover .th-icono { transform: translateX(4px); }
.th-acceso__aviso { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px; background: var(--th-rosa-claro); font-size: 14px; line-height: 1.5; }
.th-acceso__aviso .th-icono { width: 18px; height: 18px; margin-top: 2px; color: var(--th-violeta); }
.th-acceso .woocommerce-privacy-policy-text p { margin: 0 0 16px; color: var(--th-suave); font-size: 13px; }
.th-acceso__invitado { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--th-borde); color: var(--th-suave); font-size: 14px; }
.th-acceso__invitado .th-icono { color: var(--th-violeta); }

/* Validación propia (data-th-validar) */
.th-campo-error {
	display: flex;
	flex-basis: 100%;
	align-items: center;
	gap: 6px;
	margin: 6px 0 0;
	color: #b23b34;
	font-size: 13px;
	font-weight: 500;
	animation: th-error-entrar .3s var(--th-curva);
}
.th-campo-error svg { flex: none; }
@keyframes th-error-entrar { from { opacity: 0; translate: 0 -4px; } }
.is-invalido :is(input.input-text, .th-formulario input, textarea, select),
.woocommerce form .form-row.is-invalido :is(input.input-text, textarea, select),
.is-invalido .select2-container .select2-selection,
.th-formulario .is-invalido :is(input, textarea, select) { border-color: #c4655f; background-color: #fffafa; }
.is-invalido :is(input, textarea, select):focus { box-shadow: 0 0 0 4px rgb(196 101 95 / 15%); }
.form-row:has(.th-campo-error) .checkout-inline-error-message { display: none; }
form.is-sacudido .is-invalido :is(input, textarea, select, .select2-container) { animation: th-sacudida .4s ease; }
.form-row.is-invalido .th-campo-icono > .th-icono { color: #c4655f; }
.woocommerce form .form-row.is-valido input.input-text,
.th-formulario .is-valido :is(input, textarea) { border-color: #7cc49a; }
.form-row.is-valido .th-campo-icono > .th-icono { color: #1b9e4f; }
.form-row label .required { color: #b23b34; }
form.is-sacudido .is-invalido .th-campo-icono { animation: th-sacudida .4s ease; }
@keyframes th-sacudida {
	20%, 60% { translate: -6px 0; }
	40%, 80% { translate: 6px 0; }
}
/* Enviando: el texto deja lugar a un círculo que gira. */
button.is-enviando { position: relative; color: transparent !important; pointer-events: none; }
button.is-enviando .th-icono { opacity: 0; }
button.is-enviando::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgb(255 255 255 / 40%);
	border-top-color: var(--th-blanco);
	border-radius: 50%;
	animation: th-girar .7s linear infinite;
}
@keyframes th-girar { to { rotate: 360deg; } }

/* Recuperar contraseña: misma tarjeta */
.woocommerce-account form.woocommerce-ResetPassword {
	max-width: 520px;
	margin: 8px auto 0;
	padding: 32px;
	border-radius: 18px;
	background: var(--th-blanco);
	box-shadow: var(--th-sombra-alta);
}
.woocommerce-account form.woocommerce-ResetPassword .form-row { float: none; width: 100%; }
.th-clave__ayuda { margin: 0 0 20px; color: var(--th-suave); }
.woocommerce-account form.woocommerce-ResetPassword .th-clave__acciones { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 0; }
.th-clave__acciones .th-volver { margin: 0; }
@media (max-width: 480px) { .woocommerce-account form.woocommerce-ResetPassword .th-clave__acciones { justify-content: flex-start; } .woocommerce-account form.woocommerce-ResetPassword { padding: 24px 20px; } }
.th-clave__acciones .button .th-icono { width: 18px; height: 18px; }
.th-clave-enviada { max-width: 520px; margin: 8px auto 0; padding: 36px 32px; border-radius: 18px; background: var(--th-blanco); box-shadow: var(--th-sombra-alta); text-align: center; }
.th-clave-enviada__icono { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); animation: th-flotar 3s ease-in-out infinite; }
.th-clave-enviada__icono .th-icono { width: 30px; height: 30px; }
.th-clave-enviada h2 { margin: 0 0 8px; font-size: 1.4rem; }
.th-clave-enviada p { margin: 0 0 20px; color: var(--th-suave); }
.th-clave-enviada__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

@media (max-width: 860px) {
	.th-acceso { grid-template-columns: 1fr; }
	.th-acceso__bienvenida { padding: 32px 24px; }
	.th-acceso__ventajas { display: none; }
	.th-acceso__panel { padding: 28px 22px; }
}

/* ---------------------------------------------------------------- producto */

.th-pagina--con-encabezado { padding-top: 0; }
.th-migas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 24px; color: var(--th-suave); font-size: 13px; }
.woocommerce .th-migas a { color: var(--th-suave); text-decoration: none; transition: color .2s; }
.woocommerce .th-migas a:hover { color: var(--th-violeta-oscuro); }
.th-migas__sep { display: inline-flex; color: #c3b6c9; }
.th-migas__sep .th-icono { width: 14px; height: 14px; }

.woocommerce div.product div.images { position: relative; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { overflow: hidden; border-radius: var(--th-radio); box-shadow: var(--th-sombra); }
.woocommerce div.product div.images .woocommerce-product-gallery__image img { border-radius: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
	top: 14px;
	right: 14px;
	width: 40px;
	height: 40px;
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	transition: transform .3s var(--th-curva);
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger:hover { transform: scale(1.1); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: 84px; }
.woocommerce div.product div.images .flex-control-thumbs li img {
	border-radius: 10px;
	opacity: .55;
	box-shadow: inset 0 0 0 2px transparent;
	transition: opacity .25s, transform .3s var(--th-curva), outline-color .25s;
	outline: 2px solid transparent;
	outline-offset: 2px;
}
.woocommerce div.product div.images .flex-control-thumbs li img:hover { opacity: 1; transform: translateY(-2px); }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; outline-color: var(--th-violeta); }

@media (min-width: 761px) {
	.woocommerce div.product div.summary { position: sticky; top: 110px; }
}
.th-producto__categoria {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--th-rosa-claro);
	color: var(--th-ciruela);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s;
}
.th-producto__categoria:hover { background: var(--th-rosa); color: var(--th-tierra); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--th-suave); }
.woocommerce div.product form.cart { flex-wrap: wrap; padding: 20px 0; border-block: 1px solid var(--th-borde); }
.woocommerce div.product form.cart .button { flex: 1; min-width: 200px; padding: 14px 24px; font-size: 16px; }
.woocommerce div.product .stock { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.woocommerce div.product .stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.woocommerce div.product .stock.in-stock { color: #1b9e4f; }

/* Selector de cantidad de WooCommerce (producto y carrito) con los botones del tema. */
.woocommerce .quantity.th-cantidad { display: inline-flex; background: var(--th-blanco); }
.woocommerce .quantity.th-cantidad .qty {
	width: 40px;
	padding: 0;
	border: 0;
	background: none;
	font-weight: 500;
	-moz-appearance: textfield;
}
.woocommerce .quantity.th-cantidad .qty::-webkit-inner-spin-button,
.woocommerce .quantity.th-cantidad .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .quantity.th-cantidad .qty:focus { outline: none; }
.woocommerce div.product form.cart .quantity.th-cantidad button { height: 48px; width: 40px; }

.th-producto__ventajas { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.th-producto__ventajas li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--th-suave); }
.th-producto__ventajas li > span {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--th-rosa-claro);
	color: var(--th-violeta-oscuro);
	transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background-color .25s, color .25s;
}
.th-producto__ventajas li > span .th-icono { width: 20px; height: 20px; }
.th-producto__ventajas li:hover > span { background: var(--th-violeta); color: var(--th-blanco); transform: rotate(-8deg) scale(1.06); }
.th-producto__ventajas strong { display: block; color: var(--th-tierra); font-weight: 600; }
.th-producto__consulta { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; background: #effcf4; font-size: 14px; }
.th-producto__consulta .th-icono { color: #1b9e4f; }
.woocommerce div.product .product_meta { margin-top: 20px; font-size: 13px; }

.woocommerce div.product .woocommerce-tabs { margin-top: 24px; padding: 28px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 4px; color: var(--th-suave); font-weight: 500; transition: color .2s; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--th-violeta-oscuro); }
.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 {
	margin: 56px 0 28px;
	color: var(--th-ciruela);
	font-family: "Learning Curve", cursive;
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 400;
	text-align: center;
}

/* ---------------------------------------------------------------- carrito lateral */

.th-minicarrito {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 70;
	display: flex;
	flex-direction: column;
	width: min(92vw, 400px);
	background: var(--th-blanco);
	box-shadow: -10px 0 40px rgb(40 30 40 / 18%);
	transform: translateX(105%);
	transition: transform .4s var(--th-curva);
}
.th-minicarrito.is-abierto { transform: none; }
.th-minicarrito[hidden] { display: none; }
.th-minicarrito__fondo { position: fixed; inset: 0; z-index: 65; background: rgb(40 30 40 / 45%); animation: th-aparecer .3s ease; }
.th-minicarrito__cabecera { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--th-borde); }
.th-minicarrito__cabecera h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.15rem; }
.th-minicarrito__cabecera h2 .th-icono { color: var(--th-violeta); }
.th-minicarrito__cantidad { color: var(--th-suave); font-size: 13px; font-weight: 400; }
.th-minicarrito__cerrar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--th-fondo);
	color: var(--th-tierra);
	cursor: pointer;
	transition: background-color .2s, transform .3s var(--th-curva);
}
.th-minicarrito__cerrar:hover { background: var(--th-rosa-claro); transform: rotate(90deg); }
.th-minicarrito .widget_shopping_cart_content { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.th-minicarrito ul.woocommerce-mini-cart.cart_list { flex: 1; overflow: auto; margin: 0; padding: 8px 20px; list-style: none; }
.th-minicarrito ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	margin: 0;
	padding: 14px 36px 14px 0;
	border-bottom: 1px solid var(--th-borde);
	color: var(--th-tierra);
	font-size: 14px;
	font-weight: 500;
	animation: th-entrar .4s var(--th-curva) both;
}
/* Sin el clearfix de WooCommerce: en una grilla, sus pseudo-elementos ocupan celdas. */
.th-minicarrito ul.woocommerce-mini-cart li.woocommerce-mini-cart-item::before,
.th-minicarrito ul.woocommerce-mini-cart li.woocommerce-mini-cart-item::after { display: none; }
/* El enlace envuelve foto y nombre: se "abre" para ubicar cada parte en la grilla. */
.th-minicarrito ul.woocommerce-mini-cart li.woocommerce-mini-cart-item > a:not(.remove) { display: contents; color: var(--th-tierra); font-weight: 500; text-decoration: none; }
.th-minicarrito ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img {
	grid-row: span 2;
	float: none;
	width: 64px;
	height: 64px;
	margin: 0;
	border-radius: 10px;
	object-fit: cover;
	transition: transform .3s var(--th-curva);
}
.th-minicarrito ul.woocommerce-mini-cart li.woocommerce-mini-cart-item:hover img { transform: scale(1.05); }
.th-minicarrito ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity { align-self: start; color: var(--th-suave); font-size: 13px; font-weight: 400; }
.th-minicarrito ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity .amount { color: var(--th-ciruela); font-weight: 600; }
.th-minicarrito a.remove {
	position: absolute;
	top: 50%;
	right: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--th-fondo);
	color: var(--th-suave) !important;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	translate: 0 -50%;
	transition: background-color .2s, color .2s, transform .3s var(--th-curva);
}
.th-minicarrito a.remove:hover { background: #fbe3e1 !important; color: #a2453f !important; transform: rotate(90deg); }
.th-minicarrito .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 0;
	padding: 16px 20px 6px;
	border-top: 1px solid var(--th-borde);
	font-size: 16px;
}
.th-minicarrito .woocommerce-mini-cart__total .amount { color: var(--th-ciruela); font-weight: 600; }
.th-minicarrito__nota { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 20px 14px; color: var(--th-suave); font-size: 12.5px; }
.th-minicarrito__nota .th-icono { width: 18px; height: 18px; color: var(--th-violeta); }
.th-minicarrito .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0 20px 20px; }
.th-minicarrito .woocommerce-mini-cart__buttons a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--th-violeta);
	color: var(--th-blanco);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s, box-shadow .25s var(--th-curva), transform .25s var(--th-curva);
}
.th-minicarrito .woocommerce-mini-cart__buttons a.button:hover { background: var(--th-violeta-oscuro); color: var(--th-blanco); transform: translateY(-2px); box-shadow: 0 8px 18px rgb(110 71 148 / 28%); }
.th-minicarrito .woocommerce-mini-cart__buttons a.button:not(.checkout) { background: transparent; color: var(--th-violeta-oscuro); box-shadow: inset 0 0 0 1.5px var(--th-violeta); }
.th-minicarrito .woocommerce-mini-cart__buttons a.button:not(.checkout):hover { background: var(--th-violeta); color: var(--th-blanco); }
.th-minicarrito .woocommerce-mini-cart__buttons a.button::after { display: none; }
.th-minicarrito .woocommerce-mini-cart__empty-message { margin: 0; padding: 56px 24px 8px; color: var(--th-suave); text-align: center; }
.th-minicarrito .woocommerce-mini-cart__empty-message::before {
	content: "";
	display: block;
	width: 72px;
	height: 72px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: var(--th-rosa-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a5fb3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12.5H6L5 8Z'/%3E%3Cpath d='M9 10V6.5a3 3 0 0 1 6 0V10'/%3E%3C/svg%3E") no-repeat center / 32px;
	animation: th-flotar 3.5s ease-in-out infinite;
}
.th-minicarrito__vacio { margin: 0; padding: 8px 24px; text-align: center; }

/* ---------------------------------------------------------------- carrito */

.woocommerce-cart .woocommerce table.cart td.product-remove a.remove {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--th-fondo);
	color: var(--th-suave) !important;
	transition: background-color .2s, color .2s, transform .3s var(--th-curva);
}
.woocommerce-cart .woocommerce table.cart td.product-remove a.remove:hover { background: #fbe3e1; color: #a2453f !important; transform: rotate(90deg); }
.woocommerce table.cart td.product-name a { color: var(--th-tierra); font-weight: 500; text-decoration: none; }
.woocommerce table.cart td.product-name a:hover { color: var(--th-violeta-oscuro); }
.woocommerce table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce table.cart td.actions .coupon .input-text {
	width: 180px;
	min-height: 42px;
	padding: 8px 16px;
	border: 1px solid #d9d1ca;
	border-radius: 999px;
	font: inherit;
	font-size: 14px;
}
.woocommerce table.cart td.actions .coupon .input-text:focus { border-color: var(--th-violeta); outline: none; box-shadow: 0 0 0 4px rgb(138 95 179 / 15%); }
.th-js .woocommerce table.cart button[name="update_cart"] { display: none; }
.woocommerce .cart-collaterals .cart_totals h2 { margin-top: 0; font-size: 1.2rem; }
.woocommerce .cart-collaterals .cart_totals .amount { color: var(--th-ciruela); }
.woocommerce .wc-proceed-to-checkout a.checkout-button { font-size: 17px; padding: 15px 24px; }
.woocommerce-checkout #payment #place_order { width: 100%; margin-top: 8px; padding: 15px 24px; font-size: 17px; }
.woocommerce-checkout #payment ul.payment_methods li > label { font-weight: 500; cursor: pointer; }

@media (min-width: 960px) {
	.woocommerce-cart .th-texto > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
	.woocommerce-cart .th-texto > .woocommerce > :not(.woocommerce-cart-form, .cart-collaterals) { grid-column: 1 / -1; }
	.woocommerce-cart .cart-collaterals { position: sticky; top: 110px; }
	.woocommerce-cart .cart-collaterals .cart_totals { width: 100%; padding: 24px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }
	.woocommerce-cart .cart-collaterals .cart_totals table.shop_table { box-shadow: none; }
}

/* ---------------------------------------------------------------- mi cuenta con sesión */

.woocommerce-account.logged-in .th-texto > .woocommerce { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.woocommerce-account.logged-in .th-texto > .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-account.logged-in .th-texto > .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account.logged-in .th-texto > .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.th-cuenta-menu { position: sticky; top: 110px; padding: 12px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }
.woocommerce-account .th-cuenta-menu ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .th-cuenta-menu li a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px;
	border-radius: 10px;
	color: var(--th-texto);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .2s, color .2s, padding .25s var(--th-curva);
}
.th-cuenta-menu li a .th-icono { width: 20px; height: 20px; color: var(--th-violeta); transition: color .2s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.woocommerce-account .th-cuenta-menu li a:hover { padding-left: 18px; background: var(--th-fondo); color: var(--th-violeta-oscuro); }
.th-cuenta-menu li a:hover .th-icono { transform: rotate(-10deg) scale(1.1); }
.woocommerce-account .th-cuenta-menu li.is-active a { background: var(--th-violeta); color: var(--th-blanco); font-weight: 500; }
.th-cuenta-menu li.is-active a .th-icono { color: var(--th-blanco); }
.th-cuenta-menu li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--th-borde); }
.woocommerce-account .th-cuenta-menu li.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--th-suave); }
.th-cuenta-menu li.woocommerce-MyAccount-navigation-link--customer-logout a .th-icono { color: var(--th-suave); }

.th-ultimo-pedido {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	padding: 22px 24px;
	border-radius: var(--th-radio);
	background: linear-gradient(135deg, var(--th-rosa-claro), #f1eaf6);
}
.th-ultimo-pedido__icono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--th-blanco); color: var(--th-violeta); box-shadow: var(--th-sombra); }
.th-ultimo-pedido__icono .th-icono { width: 26px; height: 26px; }
.th-ultimo-pedido__datos { flex: 1; min-width: 200px; }
.th-ultimo-pedido__datos h2 { margin: 0 0 2px; font-size: 1.05rem; }
.th-ultimo-pedido__datos p { margin: 0; color: var(--th-suave); font-size: 14px; }
.th-estado { padding: 4px 12px; border-radius: 999px; background: var(--th-blanco); color: var(--th-ciruela); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.th-estado--completed { background: #e2f8ea; color: #1b7e43; }
.th-estado--processing { background: #e8f0fd; color: #2f5ea8; }
.th-estado--on-hold,
.th-estado--pending { background: #fdf3dd; color: #8a6413; }
.th-estado--cancelled,
.th-estado--failed { background: #fbe3e1; color: #a2453f; }

.th-accesos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.th-accesos a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 22px;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	color: var(--th-suave);
	font-size: 14px;
	text-decoration: none;
	transition: transform .35s var(--th-curva), box-shadow .35s var(--th-curva);
}
.th-accesos a:hover { color: var(--th-suave); transform: translateY(-4px); box-shadow: var(--th-sombra-alta); }
.th-accesos strong { color: var(--th-tierra); font-size: 16px; font-weight: 600; }
.th-accesos__icono { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 14px; background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background-color .25s, color .25s; }
.th-accesos a:hover .th-accesos__icono { background: var(--th-violeta); color: var(--th-blanco); transform: rotate(-10deg) scale(1.06); }
.th-accesos__flecha { position: absolute; top: 22px; right: 22px; color: var(--th-violeta); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .3s var(--th-curva); }
.th-accesos a:hover .th-accesos__flecha { opacity: 1; transform: none; }

.woocommerce-account .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-account .woocommerce-orders-table .button { padding: 7px 14px; font-size: 13px; }

@media (max-width: 860px) {
	.woocommerce-account.logged-in .th-texto > .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.woocommerce-account.logged-in .th-texto > .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; }
	.th-cuenta-menu { position: static; padding: 6px; }
	.woocommerce-account .th-cuenta-menu ul { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
	.woocommerce-account .th-cuenta-menu li a { white-space: nowrap; }
	.th-cuenta-menu li.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
	.th-accesos,
	.th-direcciones { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- mi cuenta: aviso de contraseña temporal */

.th-cuenta__alerta {
	position: absolute;
	top: 3px;
	right: 3px;
	width: 10px;
	height: 10px;
	border: 2px solid var(--th-blanco);
	border-radius: 50%;
	background: #e0902b;
	animation: th-alerta 2s ease-in-out infinite;
}
@keyframes th-alerta {
	0%, 100% { box-shadow: 0 0 0 0 rgb(224 144 43 / 50%); }
	50% { box-shadow: 0 0 0 5px rgb(224 144 43 / 0%); }
}
.th-aviso-clave {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 20px;
	margin-bottom: 24px;
	padding: 22px 24px;
	overflow: hidden;
	border: 1px solid #f1cf9c;
	border-radius: var(--th-radio);
	background: linear-gradient(135deg, #fff6e6, #fdebd0);
	box-shadow: 0 8px 24px rgb(224 144 43 / 14%);
	animation: th-entrar .6s var(--th-curva) both;
}
.th-aviso-clave::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: #e0902b; }
.th-aviso-clave__icono {
	display: grid;
	flex: none;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--th-blanco);
	color: #c9741a;
	box-shadow: 0 4px 12px rgb(224 144 43 / 22%);
	animation: th-flotar 3s ease-in-out infinite;
}
.th-aviso-clave__icono .th-icono { width: 26px; height: 26px; }
.th-aviso-clave__texto { flex: 1; min-width: 240px; }
.th-aviso-clave h2 { margin: 0 0 4px; color: #7a4a10; font-size: 1.15rem; font-weight: 600; }
.th-aviso-clave p { margin: 0; color: #6b5233; font-size: 14.5px; line-height: 1.5; }
.th-aviso-clave--enviado { border-color: #b9dcc6; background: linear-gradient(135deg, #effbf3, #e0f5e8); box-shadow: 0 8px 24px rgb(27 158 79 / 10%); }
.th-aviso-clave--enviado::before { background: #1b9e4f; }
.th-aviso-clave--enviado .th-aviso-clave__icono { color: #1b9e4f; }
.th-aviso-clave--enviado h2 { color: #145f33; }
.th-aviso-clave--enviado p { color: #3d5a47; }
.th-boton.th-aviso-clave__boton { background: #c9741a; }
.th-boton.th-aviso-clave__boton:hover { background: #a85f12; box-shadow: 0 8px 18px rgb(201 116 26 / 30%); }
.th-aviso-clave__boton .th-icono { width: 18px; height: 18px; transition: transform .35s var(--th-curva); }
.th-aviso-clave__boton:hover .th-icono { transform: translate(3px, -3px); }

/* ---------------------------------------------------------------- mi cuenta: direcciones y formularios */

.th-direcciones__intro { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--th-suave); font-size: 14px; }
.th-direcciones__intro .th-icono { width: 18px; height: 18px; color: #1b9e4f; }
.th-direcciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.th-direccion {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	transition: transform .35s var(--th-curva), box-shadow .35s var(--th-curva);
}
.th-direccion:hover { transform: translateY(-3px); box-shadow: var(--th-sombra-alta); }
.th-direccion__cabecera { display: flex; align-items: flex-start; gap: 14px; }
.th-direccion__cabecera h2 { margin: 0 0 2px; font-size: 1.05rem; }
.th-direccion__cabecera p { margin: 0; color: var(--th-suave); font-size: 13px; line-height: 1.45; }
.th-direccion__icono { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.th-direccion:hover .th-direccion__icono { transform: rotate(-10deg) scale(1.06); }
.th-direccion address { flex: 1; padding: 14px 16px; border-radius: 10px; background: var(--th-fondo); color: var(--th-texto); font-size: 14px; font-style: normal; line-height: 1.6; }
.th-direccion__vacia { flex: 1; display: grid; place-items: center; margin: 0; padding: 18px; border: 1.5px dashed var(--th-borde); border-radius: 10px; color: var(--th-suave); font-size: 14px; }
.th-direccion .th-boton { align-self: flex-start; }
.th-direccion .th-boton .th-icono { width: 18px; height: 18px; }

.th-volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--th-suave); font-size: 14px; text-decoration: none; transition: color .2s; }
.th-volver .th-icono { width: 16px; height: 16px; transition: transform .3s var(--th-curva); }
.th-volver:hover { color: var(--th-violeta-oscuro); }
.th-volver:hover .th-icono { transform: translateX(-3px); }

.th-tarjeta-form { padding: 28px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }
.th-tarjeta-form .woocommerce-address-fields { padding: 0; background: none; box-shadow: none; }
.th-tarjeta-form .th-tarjeta-form__titulo { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 1.2rem; }
.th-tarjeta-form__titulo > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); }
.th-tarjeta-form__titulo .th-icono { width: 21px; height: 21px; }
.th-tarjeta-form__grupo { margin: 24px 0 8px; padding: 22px 0 0; border: 0; border-top: 1px solid var(--th-borde); }
.th-tarjeta-form__grupo legend { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 0; color: var(--th-tierra); font-size: 1.05rem; font-weight: 600; }
.th-tarjeta-form__grupo legend .th-icono { width: 19px; height: 19px; color: var(--th-violeta); }
.th-tarjeta-form__ayuda { margin: 0 0 14px; color: var(--th-suave); font-size: 14px; }
.th-tarjeta-form__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 18px 0 0; }
.th-tarjeta-form__acciones .button .th-icono { width: 18px; height: 18px; }
.th-tarjeta-form__cancelar { color: var(--th-suave); font-size: 14px; }
.th-tarjeta-form .form-row { margin-bottom: 14px; }
.th-tarjeta-form #billing_country_field strong { display: inline-block; padding: 10px 14px; border-radius: 8px; background: var(--th-fondo); font-weight: 500; }

/* ---------------------------------------------------------------- pedidos: lista, detalle y "gracias" */

.th-boton--chico { padding: 7px 14px; font-size: 13px; }

.th-pedidos { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.th-pedido {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "fotos datos total" "fotos acciones acciones";
	align-items: center;
	gap: 6px 20px;
	padding: 18px 22px;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	transition: transform .35s var(--th-curva), box-shadow .35s var(--th-curva);
}
.th-pedido:hover { transform: translateY(-3px); box-shadow: var(--th-sombra-alta); }
.th-pedido__enlace { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.th-pedido__enlace:focus-visible { outline-offset: 3px; }
.th-pedido .th-fotos-pedido { grid-area: fotos; }
.th-pedido__datos { grid-area: datos; }
.th-pedido__numero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; }
.th-pedido__numero strong { color: var(--th-tierra); font-size: 1.05rem; font-weight: 600; }
.th-pedido__numero time { color: var(--th-suave); font-size: 14px; }
.th-pedido__items { margin: 2px 0 0; overflow: hidden; color: var(--th-suave); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.th-pedido__total { grid-area: total; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.th-pedido__total strong { color: var(--th-tierra); font-size: 1.05rem; font-weight: 600; }
.th-pedido__total span:last-child { color: var(--th-suave); font-size: 13px; }
.th-pedido__acciones { grid-area: acciones; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.th-pedido__acciones .th-boton { position: relative; z-index: 2; }
.th-pedido__ver { display: inline-flex; align-items: center; gap: 6px; color: var(--th-violeta-oscuro); font-size: 14px; font-weight: 500; }
.th-pedido__ver .th-icono { width: 17px; height: 17px; transition: transform .3s var(--th-curva); }
.th-pedido:hover .th-pedido__ver .th-icono { transform: translateX(4px); }

.th-fotos-pedido { display: flex; align-items: center; }
.th-fotos-pedido__foto,
.th-fotos-pedido__mas {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-left: -18px;
	overflow: hidden;
	border: 3px solid var(--th-blanco);
	border-radius: 14px;
	background: var(--th-fondo);
	box-shadow: 0 2px 8px rgb(79 74 64 / 10%);
	transition: transform .35s var(--th-curva);
}
.th-fotos-pedido__foto:first-child { margin-left: 0; }
.th-fotos-pedido__foto img { width: 100%; height: 100%; object-fit: cover; }
.th-fotos-pedido__mas { color: var(--th-violeta-oscuro); font-size: 14px; font-weight: 600; }
.th-pedido:hover .th-fotos-pedido__foto:nth-child(2) { transform: translateX(6px) rotate(3deg); }
.th-pedido:hover .th-fotos-pedido__foto:nth-child(3) { transform: translateX(12px) rotate(-3deg); }

.th-paginacion-pedidos { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }

/* estado del pedido */
.th-estado-pedido { margin-bottom: 24px; padding: 24px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }
.th-estado-pedido__cabeza { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px; }
.th-estado-pedido__icono { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--th-rosa-claro); color: var(--th-violeta-oscuro); }
.th-estado-pedido__icono .th-icono { width: 26px; height: 26px; }
.th-estado-pedido--on-hold .th-estado-pedido__icono,
.th-estado-pedido--pending .th-estado-pedido__icono { background: #fdf3dd; color: #8a6413; }
.th-estado-pedido--processing .th-estado-pedido__icono { background: #e8f0fd; color: #2f5ea8; }
.th-estado-pedido--completed .th-estado-pedido__icono { background: #e2f8ea; color: #1b7e43; }
.th-estado-pedido--cancelled .th-estado-pedido__icono,
.th-estado-pedido--failed .th-estado-pedido__icono { background: #fbe3e1; color: #a2453f; }
.th-estado-pedido__ante { margin: 0 0 2px; color: var(--th-suave); font-size: 13px; letter-spacing: .02em; }
.th-estado-pedido h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 600; }
.th-estado-pedido__cabeza p:last-child { margin: 0; color: var(--th-suave); font-size: 15px; }
.th-estado-pedido__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.th-estado-pedido__acciones .th-icono { width: 18px; height: 18px; }
.th-estado-pedido__acciones .th-boton--whatsapp { background: #25d366; color: var(--th-blanco); }
.th-estado-pedido__acciones .th-boton.th-boton--whatsapp:hover { background: #1fb457; color: var(--th-blanco); }

.th-pasos-pedido { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; padding: 0; list-style: none; counter-reset: paso; }
.th-pasos-pedido li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--th-suave); font-size: 13px; text-align: center; }
.th-pasos-pedido li + li::before { content: ""; position: absolute; top: 17px; right: 50%; left: -50%; height: 3px; border-radius: 3px; background: var(--th-borde); }
.th-pasos-pedido li.is-hecho + li::before { background: var(--th-violeta); }
.th-pasos-pedido__marca {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--th-borde);
	border-radius: 50%;
	background: var(--th-blanco);
	color: var(--th-suave);
	font-weight: 600;
}
.th-pasos-pedido__marca .th-icono { width: 18px; height: 18px; }
.th-pasos-pedido li.is-hecho { color: var(--th-tierra); }
.th-pasos-pedido li.is-hecho .th-pasos-pedido__marca { border-color: var(--th-violeta); background: var(--th-violeta); color: var(--th-blanco); }
.th-pasos-pedido li.is-actual { color: var(--th-violeta-oscuro); font-weight: 600; }
.th-pasos-pedido li.is-actual .th-pasos-pedido__marca { border-color: var(--th-violeta); color: var(--th-violeta-oscuro); animation: th-latido 2.4s ease-in-out infinite; }
@keyframes th-latido { 0%, 100% { box-shadow: 0 0 0 0 rgb(138 95 179 / 30%); } 50% { box-shadow: 0 0 0 8px rgb(138 95 179 / 0%); } }

/* novedades */
.th-novedades { margin-bottom: 24px; }
.th-novedades h2 { margin: 0 0 12px; font-size: 1.15rem; }
.th-novedades ol { margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--th-borde); list-style: none; }
.th-novedades li { position: relative; margin-bottom: 14px; padding: 14px 18px; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); }
.th-novedades li::before { content: ""; position: absolute; top: 20px; left: -26px; width: 12px; height: 12px; border: 2px solid var(--th-fondo); border-radius: 50%; background: var(--th-violeta); }
.th-novedades time { color: var(--th-suave); font-size: 13px; }
.th-novedades li p { margin: 4px 0 0; }

/* resumen en "gracias" */
.woocommerce ul.order_details.th-resumen-pedido { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.woocommerce ul.order_details.th-resumen-pedido::before,
.woocommerce ul.order_details.th-resumen-pedido::after { display: none; }
.woocommerce ul.order_details.th-resumen-pedido li {
	float: none;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
	color: var(--th-suave);
	font-size: 13px;
	text-transform: none;
}
.woocommerce ul.order_details.th-resumen-pedido li strong { display: block; margin-top: 2px; color: var(--th-tierra); font-size: 15px; }

/* datos para transferir */
.th-datos-transferencia:empty { display: none; }
.th-datos-transferencia { margin-bottom: 24px; }
.th-datos-transferencia > p { margin: 0 0 12px; color: var(--th-suave); }
.th-datos-transferencia .wc-bacs-bank-details-heading { margin: 0 0 10px; font-size: 1.15rem; }
.th-datos-transferencia .wc-bacs-bank-details-account-name { display: none; }
.woocommerce .th-datos-transferencia ul.wc-bacs-bank-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 20px;
	border: 2px dashed var(--th-rosa);
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	list-style: none;
}
.woocommerce .th-datos-transferencia ul.wc-bacs-bank-details::before,
.woocommerce .th-datos-transferencia ul.wc-bacs-bank-details::after { display: none; }
.woocommerce .th-datos-transferencia ul.wc-bacs-bank-details li { float: none; margin: 0; padding: 0; border: 0; color: var(--th-suave); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.woocommerce .th-datos-transferencia ul.wc-bacs-bank-details li strong { display: block; margin-top: 4px; color: var(--th-tierra); font-size: 15px; letter-spacing: 0; text-transform: none; word-break: break-all; }

/* detalle del pedido y direcciones */
.woocommerce-order-details__title,
.woocommerce-column__title { font-size: 1.15rem; }
.th-item-pedido { display: inline-flex; align-items: center; gap: 12px; vertical-align: middle; }
.th-item-pedido__foto { flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 10px; background: var(--th-fondo); }
.th-item-pedido__foto img { width: 100%; height: 100%; object-fit: cover; }
.woocommerce .woocommerce-customer-details address { padding: 18px 20px; border: 0; border-radius: var(--th-radio); background: var(--th-blanco); box-shadow: var(--th-sombra); line-height: 1.7; }
.woocommerce .woocommerce-customer-details .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.woocommerce .woocommerce-customer-details .woocommerce-columns--addresses::before,
.woocommerce .woocommerce-customer-details .woocommerce-columns--addresses::after { display: none; }
.woocommerce .woocommerce-customer-details .woocommerce-column { float: none; width: auto; max-width: none; padding: 0; }
/* avisos de WooCommerce con un botón (p. ej. confirmar el email): texto primero, botón debajo o al costado */
.woocommerce .woocommerce-info:has(> .wc-forward) { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.woocommerce .woocommerce-info > .button.wc-forward { order: 2; float: none; margin: 0; padding: 9px 18px; font-size: 14px; }
.woocommerce-info.th-aviso-envio::before { display: none; }
.woocommerce .woocommerce-info.th-aviso-envio { padding: 12px 14px; border-top: 0; }

@media (max-width: 640px) {
	.th-pedido { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "fotos total" "datos datos" "acciones acciones"; padding: 16px; }
	.th-pedido__acciones { justify-content: space-between; }
	.th-fotos-pedido__foto,
	.th-fotos-pedido__mas { width: 50px; height: 50px; }
	.th-estado-pedido { padding: 18px; }
	.th-estado-pedido__cabeza { grid-template-columns: auto minmax(0, 1fr); }
	.th-estado-pedido__cabeza > .th-estado { grid-column: 1 / -1; justify-self: start; }
	.th-estado-pedido__icono { width: 44px; height: 44px; }
	.th-pasos-pedido { font-size: 12px; }
	.woocommerce .woocommerce-customer-details .woocommerce-columns--addresses { grid-template-columns: minmax(0, 1fr); }
	.woocommerce table.woocommerce-table--order-details .product-total { width: 1%; white-space: nowrap; }
	.woocommerce table.woocommerce-table--order-details tfoot td { min-width: 120px; }
	.th-item-pedido { gap: 10px; }
	.th-item-pedido__foto { width: 40px; height: 40px; }
}

/* ---------------------------------------------------------------- checkout en pasos */

.woocommerce-checkout form.checkout { counter-reset: paso-checkout; }
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .th-pago-titulo {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-size: 1.25rem;
	font-weight: 600;
}
.woocommerce-checkout .woocommerce-billing-fields > h3::before,
.woocommerce-checkout #order_review_heading::before,
.woocommerce-checkout .th-pago-titulo::before {
	counter-increment: paso-checkout;
	content: counter(paso-checkout);
	display: grid;
	place-items: center;
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--th-violeta);
	color: var(--th-blanco);
	font-size: 16px;
	font-weight: 600;
}
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	padding: 26px;
	border-radius: var(--th-radio);
	background: var(--th-blanco);
	box-shadow: var(--th-sombra);
}
.woocommerce-checkout #customer_details .col-2 { margin-top: 20px; }
.woocommerce-checkout #ship-to-different-address { margin: 0; font-size: 1rem; font-weight: 500; }
.woocommerce-checkout #ship-to-different-address label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.woocommerce-checkout .woocommerce-shipping-fields + .woocommerce-additional-fields { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--th-borde); }
.woocommerce-checkout .woocommerce-additional-fields > h3 { display: none; }
.woocommerce-checkout .woocommerce-billing-fields .form-row .description { margin-top: 4px; color: var(--th-suave); font-size: 13px; }
.woocommerce-checkout .woocommerce-account-fields { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--th-borde); }

.woocommerce-checkout #order_review .shop_table { margin-bottom: 24px; }
.woocommerce-checkout #order_review .shop_table .product-name { line-height: 1.35; }
.woocommerce-checkout #order_review .product-quantity { white-space: nowrap; }
.woocommerce-checkout .th-pago-titulo { margin-top: 4px; }
.th-item-pedido__nombre { display: flex; flex-direction: column; }
.th-item-pedido__cantidad { color: var(--th-suave); font-size: 13px; }
.th-checkout-seguro { clear: both; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: var(--th-suave); font-size: 13px; text-align: center; }
.th-checkout-seguro .th-icono { width: 16px; height: 16px; color: var(--th-violeta); }

@media (max-width: 959px) {
	.woocommerce-checkout #order_review_heading { margin-top: 32px; }
	.woocommerce-checkout #customer_details { margin-bottom: 0; }
}
@media (max-width: 480px) {
	.woocommerce-checkout #customer_details .col-1,
	.woocommerce-checkout #customer_details .col-2 { padding: 20px 16px; }
}

/* ---------------------------------------------------------------- avisame cuando vuelva */

.th-aviso-stock { margin: 18px 0; padding: 18px 20px; border-radius: var(--th-radio); background: linear-gradient(135deg, var(--th-rosa-claro), #f1eaf6); }
.th-aviso-stock p { margin: 0; }
.th-aviso-stock__titulo { margin-bottom: 12px !important; color: var(--th-texto); font-size: 15px; }
.th-aviso-stock__titulo strong { display: block; color: var(--th-tierra); font-size: 16px; }
.th-aviso-stock__form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.th-aviso-stock__form .form-row { flex: 1 1 200px; margin: 0; padding: 0; }
.woocommerce .th-aviso-stock__form input.input-text { width: 100%; padding: 11px 14px; border-radius: 999px; }
.th-aviso-stock__nota { margin-top: 8px !important; color: var(--th-suave); font-size: 12px; }
.th-aviso-stock__error { margin-bottom: 10px !important; color: #a2453f; font-size: 14px; }
.th-aviso-stock__listo { color: #1b7e43; }

/* ---------------------------------------------------------------- barra de compra en el celular */

.th-barra-compra { display: none; }
@media (max-width: 760px) {
	.th-barra-compra {
		position: fixed;
		right: 10px;
		bottom: 10px;
		left: 10px;
		z-index: 31;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 8px 8px 8px 10px;
		border-radius: 18px;
		background: rgb(255 255 255 / 96%);
		box-shadow: 0 10px 30px rgb(79 74 64 / 22%);
		backdrop-filter: blur(8px);
		translate: 0 140%;
		transition: translate .4s var(--th-curva);
	}
	.th-barra-compra[hidden] { display: none; }
	.th-barra-compra.is-visible { translate: 0 0; }
	.th-barra-compra__foto { flex: none; width: 46px; height: 46px; overflow: hidden; border-radius: 12px; background: var(--th-fondo); }
	.th-barra-compra__foto img { width: 100%; height: 100%; object-fit: cover; }
	.th-barra-compra__datos { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
	.th-barra-compra__datos strong { overflow: hidden; color: var(--th-tierra); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
	.th-barra-compra__datos span { color: var(--th-violeta-oscuro); font-size: 14px; font-weight: 600; }
	.th-barra-compra__datos .th-consultar { color: var(--th-suave); font-weight: 500; }
	.th-barra-compra__boton { flex: none; padding: 12px 18px; }
	.th-barra-compra__boton .th-icono { width: 19px; height: 19px; }
	.th-barra-compra__boton--consultar { background: #25d366; }
	.th-barra-compra__boton--consultar:hover { background: #1fb457; }
	.th-barra-compra__boton.is-enviando { opacity: .7; pointer-events: none; }
	/* El botón flotante de WhatsApp sube para no taparla. */
	.th-whatsapp { transition: background-color .2s, transform .3s var(--th-curva), box-shadow .3s, bottom .4s var(--th-curva); }
	.th-con-barra-compra .th-whatsapp { bottom: 92px; }
	body:has(.th-barra-compra) .th-pie { padding-bottom: 90px; }
}

/* ---------------------------------------------------------------- movimiento reducido */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
}
