/* =================================================================
   TuPerfumeria.cl — estilos
   Colores de la marca: negro, rojo #D10F17 y blanco.
   ================================================================= */

:root {
	/* Contenido claro (fondo blanco, como Elite) */
	--tp-fondo: #FFFFFF;
	--tp-superficie: #F6F6F6;
	--tp-superficie-2: #EFEFEF;
	--tp-borde: #E5E5E5;
	--tp-rojo: #E30613;          /* botones, franjas, etiquetas (texto blanco encima) */
	--tp-rojo-hover: #C00510;
	--tp-rojo-texto: #E30613;    /* rojo para texto sobre blanco */
	--tp-texto: #111111;
	--tp-texto-2: #4D4D4D;
	--tp-texto-3: #6B6B6B;
	--tp-verde-wa: #1FA855;
	--tp-tarjeta: #FFFFFF;
	--tp-brillo: linear-gradient(160deg, #FFFFFF 0%, #FFF1F1 100%);
	--tp-titulos: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--tp-cuerpo: "Inter", "Helvetica Neue", Arial, sans-serif;
	--tp-radio: 12px;
	--tp-ancho: 1240px;
}

/* Zonas oscuras (encabezado, menú, banner de portada y pie) */
.tp-barra, .tp-header, .tp-hero, .tp-footer {
	--tp-fondo: #0B0B0C;
	--tp-superficie: #141416;
	--tp-superficie-2: #1C1C1F;
	--tp-borde: #27272A;
	--tp-rojo-texto: #FF3B3B;
	--tp-texto: #F4F4F5;
	--tp-texto-2: #C7C7CC;
	--tp-texto-3: #A1A1AA;
	--tp-tarjeta: #141416;
	--tp-brillo: radial-gradient(circle at 50% 40%, #5A070B, #1A0204 52%, #000);
	color: var(--tp-texto-2);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body,
body.tp-tema {
	background: var(--tp-fondo);
	color: var(--tp-texto-2);
	font-family: var(--tp-cuerpo);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body.tp-tema h1, body.tp-tema h2, body.tp-tema h3, body.tp-tema h4, body.tp-tema h5, body.tp-tema h6 {
	color: var(--tp-texto);
	font-family: var(--tp-titulos);
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.2;
}
body.tp-tema a { color: var(--tp-texto); text-decoration: none; }
body.tp-tema a:hover { color: var(--tp-rojo-texto); }
body.tp-tema .tp-texto a,
body.tp-tema .entry-content a:not(.tp-boton):not(.button) { color: var(--tp-rojo-texto); text-decoration: underline; text-underline-offset: 3px; }
body.tp-tema :focus-visible { outline: 2px solid var(--tp-rojo-texto); outline-offset: 2px; }
body.tp-tema hr { background: var(--tp-borde); }
body.tp-tema strong { color: var(--tp-texto); }
img { max-width: 100%; height: auto; }
body { margin: 0; }
.tp-boton, .tp-filtro, .tp-header__icono, body.tp-tema .button, body.tp-tema input, body.tp-tema select, body.tp-tema textarea { box-sizing: border-box; }

.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.tp-saltar { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--tp-rojo); color: #fff !important; padding: 10px 16px; }
.tp-saltar:focus { left: 8px; top: 8px; }
.tp-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.tp-contenedor,
body.tp-tema .col-full {
	max-width: var(--tp-ancho);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}
@media (max-width: 600px) {
	.tp-contenedor, body.tp-tema .col-full { padding-left: 16px; padding-right: 16px; }
}
body.tp-tema .site-content { padding-top: 0; }
body.tp-tema:not(.home) .site-content { padding-bottom: 56px; }

/* ---------- Botones ---------- */
.tp-boton,
body.tp-tema .button,
body.tp-tema button.button,
body.tp-tema input[type="submit"],
body.tp-tema .wp-block-button__link,
body.tp-tema .woocommerce a.button,
body.tp-tema .woocommerce button.button,
body.tp-tema .woocommerce input.button,
body.tp-tema .wc-block-components-button:not(.is-link),
body.tp-tema .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid var(--tp-rojo);
	border-radius: 999px;
	background: var(--tp-rojo);
	color: #fff !important;
	font-family: var(--tp-cuerpo);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .2s, border-color .2s, transform .1s;
}
.tp-boton:hover,
body.tp-tema .button:hover,
body.tp-tema button.button:hover,
body.tp-tema input[type="submit"]:hover,
body.tp-tema .wc-block-components-button:not(.is-link):hover {
	background: var(--tp-rojo-hover);
	border-color: var(--tp-rojo-hover);
	color: #fff !important;
}
.tp-boton:active { transform: translateY(1px); }
.tp-boton--borde,
body.tp-tema .tp-boton--borde {
	background: transparent;
	border-color: var(--tp-texto);
	color: var(--tp-texto) !important;
}
.tp-boton--borde:hover { background: var(--tp-texto); border-color: var(--tp-texto); color: var(--tp-fondo) !important; }
.tp-boton--whatsapp,
body.tp-tema .tp-boton--whatsapp { background: var(--tp-verde-wa); border-color: var(--tp-verde-wa); }
.tp-boton--whatsapp:hover,
body.tp-tema .tp-boton--whatsapp:hover { background: #178a45; border-color: #178a45; }
.tp-boton--ancho { width: 100%; }
.tp-boton .tp-icono { width: 20px; height: 20px; }
body.tp-tema .button.loading { opacity: .7; }
body.tp-tema .button.added::after { content: " ✓"; }
body.tp-tema .added_to_cart { background: transparent; color: var(--tp-texto) !important; border-color: var(--tp-borde); margin-top: 8px; width: 100%; }

/* ---------- Formularios ---------- */
body.tp-tema input[type="text"],
body.tp-tema input[type="email"],
body.tp-tema input[type="search"],
body.tp-tema input[type="tel"],
body.tp-tema input[type="password"],
body.tp-tema input[type="number"],
body.tp-tema input[type="url"],
body.tp-tema textarea,
body.tp-tema select,
body.tp-tema .select2-container .select2-selection,
body.tp-tema .wc-block-components-text-input input,
body.tp-tema .wc-blocks-components-select__select,
body.tp-tema .wc-block-components-combobox .components-combobox-control input {
	background: var(--tp-fondo) !important;
	color: var(--tp-texto) !important;
	border: 1px solid #D4D4D4 !important;
	border-radius: 10px;
	min-height: 48px;
	padding: 10px 14px;
	box-shadow: none;
	font-family: var(--tp-cuerpo);
	font-size: 16px;
}
body.tp-tema input:focus, body.tp-tema textarea:focus, body.tp-tema select:focus { border-color: var(--tp-rojo-texto) !important; }
body.tp-tema ::placeholder { color: var(--tp-texto-3); opacity: 1; }
body.tp-tema label, body.tp-tema .wc-block-components-text-input label { color: var(--tp-texto-2); }
body.tp-tema .select2-container .select2-selection__rendered { color: var(--tp-texto) !important; line-height: 26px; }
body.tp-tema .select2-dropdown { background: var(--tp-fondo); color: var(--tp-texto); border-color: var(--tp-borde); }
body.tp-tema .select2-results__option--highlighted { background: var(--tp-rojo) !important; }

/* ---------- Barra roja ---------- */
.tp-barra { background: var(--tp-rojo); color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 8px 16px; }
.tp-barra p { margin: 0; }
.tp-barra strong { color: #fff; font-weight: 700; }

/* ---------- Encabezado ---------- */
.tp-header { position: sticky; top: 0; z-index: 100; background: rgba(0, 0, 0, .96); border-bottom: 1px solid var(--tp-borde); }
/* (sin backdrop-filter: rompería el menú lateral del celular) */
.tp-menu-abierto .tp-header { z-index: 300; }
.tp-menu-abierto { overflow: hidden; }
.admin-bar .tp-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tp-header { top: 0; } }
.tp-header__fila { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.tp-logo { display: block; flex: 0 0 auto; }
.tp-logo img { display: block; width: 240px; height: auto; }
/* Los logos tienen fondo negro: 'screen' hace que el negro se funda con el fondo */
.tp-logo img, .tp-hero__logo img, .tp-footer__marca img { mix-blend-mode: screen; }
.tp-header__acciones { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.tp-header__icono {
	display: inline-flex; align-items: center; justify-content: center;
	position: relative; width: 44px; height: 44px; padding: 0;
	background: transparent !important; border: 0 !important; border-radius: 50%;
	color: var(--tp-texto) !important; cursor: pointer;
}
.tp-header__icono:hover { background: var(--tp-superficie-2) !important; color: var(--tp-rojo-texto) !important; }
.tp-icono { width: 24px; height: 24px; flex: 0 0 auto; }
.tp-carrito__contador {
	position: absolute; top: 2px; right: 0;
	min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
	border-radius: 999px; background: var(--tp-rojo); color: #fff;
	font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
.tp-carrito__contador.es-cero { display: none; }
.tp-menu-abrir, .tp-menu__cabeza { display: none !important; }

.tp-menu__lista { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tp-menu__lista li { margin: 0; }
.tp-menu__lista a {
	display: block; padding: 12px 12px; border-radius: 8px;
	color: var(--tp-texto) !important; font-weight: 600; font-size: 15px;
}
.tp-menu__lista a:hover,
.tp-menu__lista .current-menu-item > a { color: var(--tp-rojo-texto) !important; }
.tp-menu__lista .sub-menu { display: none; }

.tp-buscador { border-top: 1px solid var(--tp-borde); background: var(--tp-superficie); padding: 16px 0; }
.tp-buscador[hidden] { display: none; }
.tp-buscador form { display: flex; gap: 8px; }
.tp-buscador input[type="search"] { flex: 1; }
.tp-velo { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.6); }
.tp-velo[hidden] { display: none; }

@media (max-width: 1023px) {
	.tp-header__fila { gap: 8px; min-height: 64px; }
	.tp-menu-abrir { display: inline-flex !important; }
	.tp-logo { margin: 0 auto; }
	.tp-logo img { width: 190px; }
	.tp-header__acciones { margin-left: 0; }
	.tp-ocultar-movil { display: none !important; }
	.tp-menu {
		position: fixed; top: 0; bottom: 0; left: 0; z-index: 200;
		width: min(320px, 85vw); padding: 16px;
		background: var(--tp-superficie); border-right: 1px solid var(--tp-borde);
		transform: translateX(-105%); transition: transform .25s ease; overflow-y: auto;
		visibility: hidden;
	}
	.tp-menu-abierto .tp-menu { transform: none; visibility: visible; }
	.tp-menu__cabeza { display: flex !important; align-items: center; justify-content: space-between; margin-bottom: 8px; color: var(--tp-texto); font-family: var(--tp-titulos); font-weight: 800; }
	.tp-menu__lista { flex-direction: column; }
	.tp-menu__lista a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--tp-borde); border-radius: 0; }
}
@media (max-width: 380px) { .tp-logo img { width: 150px; } }

/* Storefront: ocultar su encabezado y miga de pan clara */
body.tp-tema .site-header { display: none; }
body.tp-tema .storefront-breadcrumb { margin: 0 0 24px; padding: 20px 0 0; background: transparent; }
body.tp-tema .woocommerce-breadcrumb { color: var(--tp-texto-3); font-size: 14px; }
body.tp-tema .woocommerce-breadcrumb a { color: var(--tp-texto-2); }
body.tp-tema .woocommerce-breadcrumb .breadcrumb-separator { color: var(--tp-texto-3); }

/* ---------- Secciones ---------- */
.tp-seccion { padding: 64px 0; }
.tp-seccion--oscura { background: var(--tp-superficie); border-top: 1px solid var(--tp-borde); border-bottom: 1px solid var(--tp-borde); }
.tp-titulo-seccion,
body.tp-tema .tp-titulo-seccion { font-size: clamp(24px, 3vw, 34px); margin: 0 0 28px; }
.tp-titulo-fila { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tp-enlace-rojo, body.tp-tema .tp-enlace-rojo { color: var(--tp-rojo-texto); font-weight: 600; }
.tp-sobretitulo { color: var(--tp-rojo-texto); font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.tp-vacio { color: var(--tp-texto-3); background: var(--tp-superficie); border: 1px dashed var(--tp-borde); border-radius: var(--tp-radio); padding: 32px; text-align: center; }

/* Portada */
.tp-hero { background: radial-gradient(ellipse at 75% 45%, rgba(209,15,23,.22), transparent 60%), var(--tp-fondo); border-bottom: 1px solid var(--tp-borde); }
.tp-hero__grilla { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
body.tp-tema .tp-hero h1 { font-size: clamp(34px, 5vw, 60px); margin: 0 0 20px; }
.tp-hero__bajada { font-size: 18px; color: var(--tp-texto-2); max-width: 520px; margin: 0 0 32px; }
.tp-hero__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.tp-hero__logo img { display: block; width: 100%; max-width: 580px; margin: 0 auto; border-radius: var(--tp-radio); }
@media (max-width: 860px) {
	.tp-hero__grilla { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; gap: 24px; }
	.tp-hero__logo { order: -1; }
	.tp-hero__logo img { max-width: 420px; }
	.tp-hero__botones .tp-boton { flex: 1 1 200px; }
}

/* Categorías */
.tp-categorias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tp-categoria {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 28px 16px 24px; border: 1px solid var(--tp-borde); border-radius: var(--tp-radio);
	background: var(--tp-brillo); overflow: hidden;
	transition: border-color .2s, transform .2s;
}
.tp-categoria:hover { border-color: var(--tp-rojo); transform: translateY(-3px); }
.tp-categoria .tp-frasco { width: 74px; height: auto; margin-bottom: 16px; filter: drop-shadow(0 8px 24px rgba(209,15,23,.45)); }
.tp-categoria__nombre { color: var(--tp-texto); font-family: var(--tp-titulos); font-weight: 800; font-size: 20px; }
.tp-categoria__bajada { color: var(--tp-texto-2); font-size: 14px; margin-top: 4px; }
.tp-categoria__ver { color: var(--tp-rojo-texto); font-size: 14px; font-weight: 600; margin-top: 14px; }
@media (max-width: 900px) { .tp-categorias { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* Regalos por presupuesto */
.tp-presupuesto__opciones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
body.tp-tema .tp-presupuesto__opcion {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
	min-height: 132px; padding: 20px 76px 20px 22px; margin: 0; cursor: pointer; overflow: hidden;
	background: var(--tp-superficie); color: var(--tp-texto-2); border: 1px solid var(--tp-borde); border-radius: var(--tp-radio);
	font-family: var(--tp-cuerpo); font-weight: 400; line-height: 1.3; box-shadow: none;
	transition: border-color .2s, background-color .2s, transform .2s;
}
body.tp-tema .tp-presupuesto__opcion:hover { border-color: var(--tp-rojo); transform: translateY(-2px); background: var(--tp-superficie-2); }
body.tp-tema .tp-presupuesto__opcion[aria-selected="true"] { background: var(--tp-rojo); border-color: var(--tp-rojo); color: #fff; box-shadow: 0 12px 32px rgba(209,15,23,.35); }
.tp-presupuesto__sobre { font-size: 15px; }
.tp-presupuesto__monto { font-family: var(--tp-titulos); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); color: var(--tp-texto); margin: 2px 0 8px; letter-spacing: -.01em; }
.tp-presupuesto__bajada { font-size: 14px; color: var(--tp-texto-3); }
.tp-presupuesto__opcion[aria-selected="true"] .tp-presupuesto__monto,
.tp-presupuesto__opcion[aria-selected="true"] .tp-presupuesto__bajada { color: #fff; }
.tp-presupuesto__opcion .tp-frasco { position: absolute; right: 18px; bottom: 18px; width: 40px; height: auto; opacity: .9; }
.tp-presupuesto__opcion[aria-selected="true"] .tp-frasco { filter: drop-shadow(0 4px 12px rgba(0,0,0,.35)); }
.tp-presupuesto__panel[hidden] { display: none; }
.tp-presupuesto__mas { text-align: center; margin: 28px 0 0; }
@media (max-width: 900px) {
	.tp-presupuesto__opciones { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	body.tp-tema .tp-presupuesto__opcion { min-height: 112px; padding: 16px 56px 16px 16px; }
	.tp-presupuesto__opcion .tp-frasco { width: 30px; right: 14px; bottom: 14px; }
}
@media (max-width: 600px) {
	body.tp-tema .tp-presupuesto__opcion { min-height: 0; padding: 14px; }
	.tp-presupuesto__opcion .tp-frasco { display: none; }
	.tp-presupuesto__monto { font-size: 24px; white-space: nowrap; margin-bottom: 4px; }
	.tp-presupuesto__sobre, .tp-presupuesto__bajada { font-size: 13px; }
}

/* Beneficios */
.tp-beneficios { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tp-beneficio { text-align: center; padding: 8px; }
.tp-beneficio .tp-icono { width: 36px; height: 36px; color: var(--tp-rojo-texto); }
body.tp-tema .tp-beneficio h3 { font-size: 17px; margin: 12px 0 6px; }
.tp-beneficio p { margin: 0; font-size: 14px; color: var(--tp-texto-3); }
@media (max-width: 900px) { .tp-beneficios { grid-template-columns: repeat(2, 1fr); } }

/* Marcas */
.tp-marcas, .tp-marcas-lista { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; list-style: none; margin: 0; padding: 0; }
.tp-marcas li, .tp-marcas-lista li { margin: 0; }
.tp-marcas a, .tp-marcas-lista a {
	display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 12px;
	border: 1px solid var(--tp-borde); border-radius: var(--tp-radio); background: var(--tp-superficie);
	color: var(--tp-texto) !important; font-family: var(--tp-titulos); font-weight: 800; font-size: 16px;
	letter-spacing: .06em; text-transform: uppercase; text-align: center; text-decoration: none !important;
	transition: border-color .2s, color .2s;
}
.tp-marcas a:hover, .tp-marcas-lista a:hover { border-color: var(--tp-rojo); color: var(--tp-rojo-texto) !important; }
.tp-marcas-lista { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 24px; }
@media (max-width: 900px) { .tp-marcas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .tp-marcas { grid-template-columns: repeat(2, 1fr); } }

/* Suscripción */
.tp-suscripcion {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center;
	padding: 40px; border-radius: 20px; border: 1px solid var(--tp-borde);
	background: radial-gradient(circle at 0% 0%, rgba(209,15,23,.28), transparent 55%), var(--tp-superficie);
}
.tp-suscripcion .tp-titulo-seccion { margin-bottom: 8px; }
.tp-suscripcion p { margin: 0; }
.tp-suscripcion__form { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.tp-suscripcion__form input[type="email"] { flex: 1 1 240px; }
.tp-suscripcion__msg { flex-basis: 100%; color: #15803D; font-weight: 600; }
.tp-suscripcion__msg--error { color: var(--tp-rojo-texto); }
@media (max-width: 760px) { .tp-suscripcion { grid-template-columns: 1fr; padding: 28px 20px; } .tp-suscripcion__form .tp-boton { flex: 1 1 100%; } }

/* ---------- Grilla de productos ---------- */
body.tp-tema ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 32px !important;
	padding: 0;
	list-style: none;
}
body.tp-tema ul.products::before,
body.tp-tema ul.products::after { display: none !important; content: none !important; }
body.tp-tema ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
	text-align: left;
}
@media (max-width: 1023px) { body.tp-tema ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { body.tp-tema ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Filas deslizables (Perfumes de hombre / mujer) */
.tp-carrusel__acciones { display: flex; align-items: center; gap: 10px; }
.tp-carrusel__acciones .tp-enlace-rojo { margin-right: 6px; white-space: nowrap; }
body.tp-tema .tp-carrusel__flecha {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; margin: 0;
	border-radius: 50%; border: 1px solid var(--tp-borde); background: var(--tp-superficie); color: var(--tp-texto);
	font-size: 24px; line-height: 1; cursor: pointer; transition: border-color .2s, background-color .2s;
}
body.tp-tema .tp-carrusel__flecha:hover { border-color: var(--tp-rojo); background: var(--tp-rojo); color: #fff; }
body.tp-tema .tp-carrusel__flecha:disabled { opacity: .35; cursor: default; background: var(--tp-superficie); border-color: var(--tp-borde); }
body.tp-tema .tp-carrusel ul.products {
	grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding-bottom: 14px !important; margin-bottom: 0 !important;
	scrollbar-width: thin; scrollbar-color: var(--tp-rojo) var(--tp-superficie-2);
}
body.tp-tema .tp-carrusel ul.products li.product { scroll-snap-align: start; }
body.tp-tema .tp-carrusel ul.products::-webkit-scrollbar { height: 6px; }
body.tp-tema .tp-carrusel ul.products::-webkit-scrollbar-track { background: var(--tp-superficie-2); border-radius: 3px; }
body.tp-tema .tp-carrusel ul.products::-webkit-scrollbar-thumb { background: var(--tp-rojo); border-radius: 3px; }
@media (max-width: 1023px) { body.tp-tema .tp-carrusel ul.products { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 767px) {
	body.tp-tema .tp-carrusel ul.products { grid-auto-columns: 47%; grid-template-columns: none; gap: 12px; }
	body.tp-tema .tp-carrusel ul.products li.product .button { font-size: 14px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
	.tp-carrusel__flecha { display: none !important; }
}

/* Tarjeta */
.tp-tarjeta {
	display: flex; flex-direction: column;
	background: var(--tp-tarjeta); border: 1px solid var(--tp-borde); border-radius: var(--tp-radio);
	overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tp-tarjeta:hover { border-color: #D4D4D4; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.tp-tarjeta__imagen { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
body.tp-tema .tp-tarjeta__imagen img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; display: block; transition: transform .4s; }
.tp-tarjeta:hover .tp-tarjeta__imagen img { transform: scale(1.04); }
.tp-etiquetas { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.tp-etiqueta {
	display: inline-block; padding: 4px 10px; border-radius: 999px;
	background: var(--tp-rojo); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4;
}
.tp-etiqueta--oferta { background: var(--tp-rojo); color: #fff; font-weight: 800; margin-left: auto; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.tp-tarjeta__info { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.tp-tarjeta__marca { margin: 0 0 4px; color: var(--tp-rojo-texto); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
body.tp-tema .tp-tarjeta__nombre,
body.tp-tema ul.products li.product .woocommerce-loop-product__title.tp-tarjeta__nombre {
	margin: 0 0 6px; padding: 0; font-family: var(--tp-cuerpo); font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--tp-texto);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tp-tarjeta__nombre a { color: var(--tp-texto) !important; }
.tp-tarjeta__detalle { margin: 0 0 10px; color: var(--tp-texto-3); font-size: 13px; }
.tp-tarjeta .tp-precio { margin-top: auto; margin-bottom: 12px; }
body.tp-tema .tp-tarjeta__boton .button { width: 100%; padding: 10px 14px; font-size: 14px; white-space: nowrap; }
@media (max-width: 767px) {
	.tp-tarjeta__info { padding: 12px; }
	body.tp-tema .tp-tarjeta__nombre { font-size: 14px; }
	body.tp-tema .tp-tarjeta__boton .button { font-size: 13px; padding: 10px 6px; }
	.tp-etiqueta { font-size: 11px; padding: 3px 8px; }
}

/* Precio */
.tp-precio, body.tp-tema .price { color: var(--tp-texto) !important; font-weight: 700; font-size: 18px; }
body.tp-tema .price del, .tp-precio del { color: var(--tp-texto-3); font-weight: 400; font-size: .8em; opacity: 1; margin-right: 6px; }
body.tp-tema .price ins, .tp-precio ins { text-decoration: none; background: transparent; color: var(--tp-texto); font-weight: 700; }
.tp-precio--grande, body.tp-tema .tp-precio--grande { font-size: 30px; font-family: var(--tp-titulos); font-weight: 800; }

/* "Sin foto": brillo rojo + frasco */
.tp-sinfoto {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	width: 100%; height: 100%; min-height: 100%; padding: 16px; box-sizing: border-box; text-align: center;
	background: var(--tp-brillo);
}
.tp-sinfoto .tp-frasco { width: 38%; max-width: 120px; height: auto; filter: drop-shadow(0 10px 30px rgba(209,15,23,.5)); margin-bottom: 8px; }
.tp-sinfoto__marca { color: var(--tp-rojo-texto); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.tp-sinfoto__nombre { color: var(--tp-texto); font-family: var(--tp-titulos); font-weight: 800; font-size: 14px; line-height: 1.25; max-width: 90%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-sinfoto--grande { aspect-ratio: 1 / 1; border-radius: var(--tp-radio); }
.tp-sinfoto--grande .tp-frasco { width: 34%; max-width: 180px; }
.tp-sinfoto--grande .tp-sinfoto__marca { font-size: 14px; }
.tp-sinfoto--grande .tp-sinfoto__nombre { font-size: 22px; }
.tp-sinfoto--mini { display: inline-flex; width: 64px; height: 64px; padding: 6px; border-radius: 8px; }
.tp-sinfoto--mini .tp-frasco { width: 60%; margin: 0; }

/* ---------- Catálogo ---------- */
body.tp-tema .woocommerce-products-header { padding: 8px 0 0; }
body.tp-tema .woocommerce-products-header__title,
body.tp-tema h1.page-title { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
body.tp-tema .term-description, body.tp-tema .page-description { color: var(--tp-texto-2); }
.tp-catalogo-barra { margin: 8px 0 24px; }
.tp-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tp-filtro,
body.tp-tema .tp-filtro {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
	border: 1px solid var(--tp-borde); border-radius: 999px; background: var(--tp-superficie);
	color: var(--tp-texto) !important; font-weight: 600; font-size: 14px;
}
.tp-filtro:hover { border-color: var(--tp-rojo); }
.tp-filtro.es-activo { background: var(--tp-rojo); border-color: var(--tp-rojo); color: #fff !important; }
.tp-catalogo-barra__fila { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.tp-tema .tp-catalogo-barra .woocommerce-result-count { float: none; margin: 0; padding: 0; color: var(--tp-texto-3); font-size: 14px; }
body.tp-tema .tp-catalogo-barra .woocommerce-ordering { float: none; margin: 0; }
body.tp-tema .tp-catalogo-barra .woocommerce-ordering select { min-width: 230px; }
@media (max-width: 600px) {
	.tp-filtros { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -16px; scrollbar-width: none; }
	.tp-filtro { flex: 0 0 auto; }
	body.tp-tema .tp-catalogo-barra .woocommerce-ordering, body.tp-tema .tp-catalogo-barra .woocommerce-ordering select { width: 100%; }
}

/* Paginación */
body.tp-tema .woocommerce-pagination { text-align: center; float: none; }
body.tp-tema .woocommerce-pagination .page-numbers { border: 0; display: inline-flex; gap: 6px; }
body.tp-tema .woocommerce-pagination .page-numbers li { border: 0; }
body.tp-tema .woocommerce-pagination .page-numbers li .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px;
	border: 1px solid var(--tp-borde); border-radius: 10px; background: var(--tp-superficie); color: var(--tp-texto);
}
body.tp-tema .woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--tp-rojo); border-color: var(--tp-rojo); color: #fff; }

/* ---------- Página de producto ---------- */
.tp-producto__grilla { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .tp-producto__grilla { grid-template-columns: 1fr; gap: 24px; } }
body.tp-tema.single-product div.product .woocommerce-product-gallery,
body.tp-tema.single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.tp-producto__galeria { position: relative; }
.tp-producto__descuento { position: absolute; top: 14px; left: 14px; z-index: 10; font-size: 15px; padding: 6px 14px; margin: 0; }
body.tp-tema .woocommerce-product-gallery { position: relative; }
body.tp-tema .woocommerce-product-gallery .flex-viewport,
body.tp-tema .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child { border-radius: var(--tp-radio); overflow: hidden; background: #fff; border: 1px solid var(--tp-borde); }
body.tp-tema .woocommerce-product-gallery__image img { width: 100%; display: block; }
body.tp-tema .woocommerce-product-gallery__trigger { z-index: 20; background: var(--tp-superficie-2); border-radius: 50%; }
body.tp-tema .woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
body.tp-tema .woocommerce-product-gallery .flex-control-thumbs li { width: auto !important; margin: 0 !important; float: none !important; }
body.tp-tema .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; border: 2px solid transparent; opacity: .6; cursor: pointer; transition: opacity .2s, border-color .2s; }
body.tp-tema .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.tp-tema .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--tp-rojo); }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav a {
	position: absolute; top: 0; z-index: 15; width: 44px; height: 44px; margin-top: calc(min(50%, 300px) - 22px);
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--tp-borde);
	color: transparent; font-size: 0; overflow: hidden;
}
body.tp-tema .woocommerce-product-gallery .flex-direction-nav a::before { color: var(--tp-texto); font-size: 22px; font-weight: 700; line-height: 1; }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 12px; }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav .flex-prev::before { content: "‹"; }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav .flex-next { right: 12px; }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav .flex-next::before { content: "›"; }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav a:hover { background: var(--tp-rojo); border-color: var(--tp-rojo); }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav a:hover::before { color: #fff; }
body.tp-tema .woocommerce-product-gallery .flex-direction-nav .flex-disabled { opacity: .35; pointer-events: none; }

.tp-producto__marca { margin: 0 0 6px; color: var(--tp-rojo-texto); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
body.tp-tema .tp-producto__titulo { font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 8px; }
.tp-producto__detalle { margin: 0 0 18px; color: var(--tp-texto-3); }
.tp-producto__precio { padding: 18px 0; border-top: 1px solid var(--tp-borde); border-bottom: 1px solid var(--tp-borde); margin-bottom: 18px; }
.tp-producto__precio .price { margin: 0 !important; }
.tp-producto__ahorro { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; color: #4ade80; font-weight: 600; }
.tp-producto__ahorro .tp-etiqueta--oferta { margin-left: 0; }
.tp-producto__corta { color: var(--tp-texto-2); margin-bottom: 18px; }
.tp-producto__compra { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
body.tp-tema.single-product div.product form.cart { display: flex; gap: 12px; margin: 0; padding: 0; }
body.tp-tema.single-product div.product form.cart::before,
body.tp-tema.single-product div.product form.cart::after { display: none; }
body.tp-tema.single-product div.product form.cart .quantity { float: none; margin: 0; }
body.tp-tema .quantity .qty { width: 84px; min-height: 52px; text-align: center; font-weight: 700; }
body.tp-tema.single-product div.product form.cart .single_add_to_cart_button { flex: 1; float: none; min-height: 52px; font-size: 16px; }
body.tp-tema .stock { color: var(--tp-texto-2); }
body.tp-tema .stock.out-of-stock { color: var(--tp-rojo-texto); }
.tp-producto__garantias { list-style: none; margin: 0; padding: 16px; border-radius: var(--tp-radio); background: var(--tp-superficie); border: 1px solid var(--tp-borde); display: grid; gap: 10px; }
.tp-producto__garantias li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--tp-texto-2); }
.tp-producto__garantias .tp-icono { color: var(--tp-rojo-texto); width: 22px; height: 22px; }

.tp-producto__secciones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 56px 0; }
.tp-seccion-producto { background: var(--tp-superficie); border: 1px solid var(--tp-borde); border-radius: var(--tp-radio); padding: 24px; }
.tp-seccion-producto:first-child { grid-column: 1 / -1; }
body.tp-tema .tp-seccion-producto h2 { font-size: 20px; margin: 0 0 14px; }
.tp-seccion-producto .tp-texto p:last-child { margin-bottom: 0; }
.tp-notas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tp-nota { background: var(--tp-brillo); border: 1px solid var(--tp-borde); border-radius: 10px; padding: 14px; }
body.tp-tema .tp-nota h3 { margin: 0 0 6px; font-size: 13px; color: var(--tp-rojo-texto); letter-spacing: .12em; text-transform: uppercase; }
.tp-nota p { margin: 0; font-size: 14px; color: var(--tp-texto); }
.tp-ficha { width: 100%; border-collapse: collapse; margin: 0; background: transparent; }
body.tp-tema .tp-ficha th, body.tp-tema .tp-ficha td { padding: 10px 0; border-bottom: 1px solid var(--tp-borde); background: transparent !important; text-align: left; font-size: 15px; }
body.tp-tema .tp-ficha th { color: var(--tp-texto-3); font-weight: 500; width: 45%; }
body.tp-tema .tp-ficha td { color: var(--tp-texto); font-weight: 600; }
@media (max-width: 860px) {
	.tp-producto__secciones { grid-template-columns: 1fr; margin: 36px 0; }
	.tp-notas { grid-template-columns: 1fr; }
}
body.tp-tema .related.products > h2,
body.tp-tema .upsells.products > h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 24px; text-align: left; }

/* ---------- Carrito, checkout y cuenta ---------- */
body.tp-tema .entry-title,
body.tp-tema .hentry .entry-header .entry-title { font-size: clamp(28px, 4vw, 42px); }
body.tp-tema .hentry { margin-bottom: 0; padding-bottom: 0; border: 0; }
body.tp-tema table,
body.tp-tema table th,
body.tp-tema table td { background: transparent; color: var(--tp-texto-2); border-color: var(--tp-borde); }
body.tp-tema table.shop_table { border: 1px solid var(--tp-borde); border-radius: var(--tp-radio); overflow: hidden; }
body.tp-tema table.shop_table thead th, body.tp-tema table.cart th { background: var(--tp-superficie) !important; color: var(--tp-texto); }
body.tp-tema table tbody tr:nth-child(2n) td, body.tp-tema table tbody tr td { background: transparent !important; }
body.tp-tema .cart-collaterals .cart_totals,
body.tp-tema .woocommerce-checkout-review-order,
body.tp-tema #payment,
body.tp-tema .wc-block-components-sidebar .wc-block-components-totals-wrapper,
body.tp-tema .woocommerce-MyAccount-navigation,
body.tp-tema .wc-block-components-panel { background: var(--tp-superficie) !important; border-color: var(--tp-borde) !important; border-radius: var(--tp-radio); color: var(--tp-texto-2); }
body.tp-tema #payment .payment_box { background: var(--tp-superficie-2) !important; color: var(--tp-texto-2); }
body.tp-tema #payment .payment_box::before { border-bottom-color: var(--tp-superficie-2) !important; }
body.tp-tema .woocommerce-MyAccount-navigation ul li { border-color: var(--tp-borde); }
body.tp-tema .woocommerce-MyAccount-navigation ul li a { color: var(--tp-texto); }
body.tp-tema .woocommerce-MyAccount-navigation ul li.is-active a { color: var(--tp-rojo-texto); }
body.tp-tema .wc-block-components-product-name,
body.tp-tema .wc-block-components-totals-item,
body.tp-tema .wc-block-components-title,
body.tp-tema .wc-block-components-checkout-step__title { color: var(--tp-texto) !important; }
body.tp-tema .wc-block-components-checkout-step__description,
body.tp-tema .wc-block-components-product-metadata { color: var(--tp-texto-3); }
body.tp-tema .wc-block-components-radio-control__option,
body.tp-tema .wc-block-components-radio-control-accordion-option { color: var(--tp-texto); }
body.tp-tema .wc-block-cart-item__image img { border-radius: 8px; }
body.tp-tema table.cart td.actions { border-top: 1px solid var(--tp-borde) !important; background: var(--tp-superficie) !important; }

/* Avisos */
body.tp-tema .woocommerce-message,
body.tp-tema .woocommerce-info,
body.tp-tema .woocommerce-error,
body.tp-tema .woocommerce-noreviews,
body.tp-tema p.no-comments {
	background: var(--tp-superficie-2) !important; color: var(--tp-texto) !important;
	border-left: 4px solid var(--tp-rojo) !important; border-radius: 10px;
}
body.tp-tema .woocommerce-message a, body.tp-tema .woocommerce-info a, body.tp-tema .woocommerce-error a { color: var(--tp-rojo-texto); }
body.tp-tema .woocommerce-message .button, body.tp-tema .woocommerce-info .button { color: #fff !important; }
body.tp-tema .woocommerce-store-notice, body.tp-tema p.demo_store { background: var(--tp-rojo); color: #fff; }

/* Mini imágenes en carrito */
body.tp-tema table.cart td.product-thumbnail .tp-sinfoto--mini { width: 56px; height: 56px; }

/* ---------- Pie de página ---------- */
.tp-footer { background: #1F1F1F; border-top: 0; color: var(--tp-texto-3); padding-top: 56px; }
.tp-footer__grilla { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.tp-footer__marca img { width: 220px; height: auto; display: block; margin-bottom: 16px; }
.tp-footer__marca p { font-size: 14px; max-width: 320px; }
body.tp-tema .tp-footer__titulo { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 16px; color: var(--tp-texto); }
.tp-footer ul { list-style: none; margin: 0; padding: 0; }
.tp-footer li { margin: 0 0 6px; }
.tp-footer li a { display: inline-block; padding: 4px 0; color: var(--tp-texto-2) !important; font-size: 15px; }
.tp-footer li a:hover { color: var(--tp-rojo-texto) !important; }
.tp-footer__redes { display: flex; gap: 8px; }
.tp-footer__redes a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tp-borde); color: var(--tp-texto) !important; }
.tp-footer__redes a:hover { background: var(--tp-rojo); border-color: var(--tp-rojo); color: #fff !important; }
.tp-footer__base { border-top: 1px solid var(--tp-borde); padding: 18px 0; font-size: 13px; }
.tp-footer__base p { margin: 0; }
.tp-aviso-admin { font-size: 13px; color: #fbbf24; }
@media (max-width: 900px) { .tp-footer__grilla { grid-template-columns: 1fr 1fr; } .tp-footer__marca { grid-column: 1 / -1; } }

/* Botón flotante de WhatsApp */
.tp-wa-flotante {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--tp-verde-wa); color: #fff !important; box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.tp-wa-flotante .tp-icono { width: 30px; height: 30px; }
.tp-wa-flotante:hover { background: #178a45; }

/* Páginas de texto */
body.tp-tema .entry-content { color: var(--tp-texto-2); max-width: 820px; }
body.tp-tema.woocommerce-cart .entry-content,
body.tp-tema.woocommerce-checkout .entry-content,
body.tp-tema.woocommerce-account .entry-content { max-width: none; }
body.tp-tema .entry-content h2 { font-size: 24px; margin-top: 32px; }

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

/* Storefront: sin barra lateral, contenido a todo el ancho */
body.tp-tema .content-area { width: 100% !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; }
body.tp-tema #secondary, body.tp-tema .widget-area { display: none; }
body.tp-tema .site-main { margin-bottom: 0; }
body.tp-tema .storefront-handheld-footer-bar, body.tp-tema .storefront-sticky-add-to-cart { display: none !important; }

/* ---------- Filtros del catálogo (barra lateral) ---------- */
.tp-catalogo { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.tp-catalogo__principal { min-width: 0; }
body.tp-tema .tp-catalogo ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tp-filtros-panel__boton { display: none; }
.tp-filtros-panel__boton::-webkit-details-marker { display: none; }
.tp-filtro-grupo { border-bottom: 1px solid var(--tp-borde); padding: 16px 0; }
.tp-filtro-grupo:first-child { padding-top: 0; }
.tp-filtro-grupo__titulo {
	display: flex; align-items: center; justify-content: space-between; margin: 0;
	font-family: var(--tp-titulos); font-weight: 700; font-size: 15px; color: var(--tp-texto); cursor: pointer; list-style: none;
}
.tp-filtro-grupo__titulo::-webkit-details-marker { display: none; }
summary.tp-filtro-grupo__titulo::after {
	content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(-135deg); margin: 4px 4px 0 0; transition: transform .2s;
}
.tp-filtro-grupo:not([open]) > summary.tp-filtro-grupo__titulo::after { transform: rotate(45deg); margin-top: -4px; }
.tp-filtro-lista { list-style: none; margin: 12px 0 0; padding: 0; }
.tp-filtro-lista.es-corta .tp-filtro-extra { display: none; }
body.tp-tema .tp-filtro-opcion {
	display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 0;
	color: var(--tp-texto-2); font-size: 15px; text-decoration: none;
}
body.tp-tema .tp-filtro-opcion:hover { color: var(--tp-texto); }
.tp-filtro-opcion__caja {
	flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid #8A8A8A; border-radius: 3px; background: #fff; position: relative;
}
.tp-filtro-opcion:hover .tp-filtro-opcion__caja { border-color: var(--tp-texto); }
.tp-filtro-opcion.es-activo .tp-filtro-opcion__caja { background: var(--tp-texto); border-color: var(--tp-texto); }
.tp-filtro-opcion.es-activo .tp-filtro-opcion__caja::after {
	content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
body.tp-tema .tp-filtro-opcion.es-activo { color: var(--tp-texto); font-weight: 600; }
.tp-filtro-opcion__nombre { flex: 1 1 auto; }
.tp-filtro-opcion__cuenta { color: var(--tp-texto-3); font-size: 13px; }
.tp-filtro-opcion.es-vacio { opacity: .5; }
body.tp-tema .tp-filtro-mas, body.tp-tema .tp-filtros-limpiar {
	display: inline-block; margin: 8px 0 0; padding: 0; background: none; border: 0; min-height: 0;
	color: var(--tp-rojo-texto) !important; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
body.tp-tema .tp-filtro-mas:hover { background: none; color: var(--tp-rojo-hover) !important; }
.tp-filtros-activos { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
body.tp-tema .tp-filtros-activos a { display: inline-flex; align-items: center; gap: 8px; color: var(--tp-texto); font-size: 15px; }
.tp-filtros-activos__x {
	display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
	background: #555; color: #fff; font-size: 14px; line-height: 1;
}
.tp-filtros-activos a:hover .tp-filtros-activos__x { background: var(--tp-rojo); }
.tp-filtro-precio { margin-top: 12px; }
.tp-filtro-precio__campos { display: flex; align-items: center; gap: 8px; }
.tp-filtro-precio__campo {
	flex: 1 1 0; display: flex; align-items: center; gap: 4px; padding: 0 10px; min-width: 0;
	border: 1px solid #D4D4D4; border-radius: 999px; color: var(--tp-texto-3); font-size: 14px;
}
body.tp-tema .tp-filtro-precio__campo input {
	width: 100%; min-width: 0; border: 0 !important; padding: 8px 0 !important; background: transparent !important;
	font-size: 14px; box-shadow: none; -moz-appearance: textfield;
}
.tp-filtro-precio__campo input::-webkit-outer-spin-button,
.tp-filtro-precio__campo input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-filtro-precio__campo:focus-within { border-color: var(--tp-texto); }
.tp-filtro-precio__guion { color: var(--tp-texto-3); }
body.tp-tema .tp-filtro-precio__aplicar { width: 100%; margin-top: 10px; min-height: 40px; padding: 6px 14px; font-size: 14px; }
.tp-catalogo .tp-vacio { padding: 32px 0; color: var(--tp-texto-2); }
@media (max-width: 1100px) { body.tp-tema .tp-catalogo ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	.tp-catalogo { grid-template-columns: 1fr; gap: 16px; }
	.tp-filtros-panel__boton {
		display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; cursor: pointer; list-style: none;
		border: 1px solid var(--tp-texto); border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--tp-texto);
	}
	.tp-filtros-panel[open] .tp-filtros-panel__boton { background: var(--tp-texto); color: var(--tp-fondo); }
	.tp-filtros-panel__cuerpo { margin-top: 12px; padding: 4px 16px; border: 1px solid var(--tp-borde); border-radius: var(--tp-radio); }
	.tp-filtro-grupo:first-child { padding-top: 16px; }
	.tp-filtro-grupo:last-child { border-bottom: 0; }
}
@media (max-width: 767px) { body.tp-tema .tp-catalogo ul.products { gap: 12px; } }

/* ---------- Franja de marcas (portada) ---------- */
.tp-marcas-franja { position: relative; background: #F3F3F3; padding: 34px 0; margin: 0 0 8px; }
.tp-marcas-franja__ventana { overflow: hidden; }
.tp-marcas-franja__pista { display: flex; width: max-content; animation: tp-marcas-giro 60s linear infinite; }
.tp-marcas-franja:hover .tp-marcas-franja__pista,
.tp-marcas-franja:focus-within .tp-marcas-franja__pista,
.tp-marcas-franja.es-pausada .tp-marcas-franja__pista { animation-play-state: paused; }
@keyframes tp-marcas-giro { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tp-marcas-franja__lista { display: flex; align-items: center; gap: 72px; list-style: none; margin: 0; padding: 0 36px; }
.tp-marcas-franja__lista li { margin: 0; flex: 0 0 auto; }
body.tp-tema .tp-marcas-franja__lista a { display: flex; align-items: center; min-height: 56px; color: #111 !important; opacity: .85; transition: opacity .2s; }
body.tp-tema .tp-marcas-franja__lista a:hover { opacity: 1; color: #111 !important; }
.tp-marcas-franja__logo { display: block; max-height: 48px; max-width: 190px; width: auto; height: auto; filter: grayscale(1); }
.tp-marcas-franja__nombre { white-space: nowrap; line-height: 1; color: #111; }
.tp-marca--serif { font-family: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, serif; font-size: 27px; text-transform: uppercase; letter-spacing: .1em; font-weight: 400; }
.tp-marca--negrita { font-family: var(--tp-titulos); font-size: 31px; font-weight: 800; text-transform: lowercase; letter-spacing: -.01em; }
.tp-marca--clasica { font-family: "Baskerville", "Libre Baskerville", Georgia, serif; font-size: 32px; font-weight: 700; }
.tp-marca--fina { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 26px; font-weight: 300; text-transform: uppercase; letter-spacing: .22em; }
.tp-marca--espaciada { font-family: var(--tp-titulos); font-size: 23px; font-weight: 600; text-transform: uppercase; letter-spacing: .24em; }
body.tp-tema .tp-marcas-franja__pausa {
	position: absolute; right: 10px; bottom: 8px; width: 28px; height: 28px; min-height: 0; padding: 0; margin: 0;
	display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
	background: rgba(0,0,0,.06); border: 0; color: #555; cursor: pointer;
}
body.tp-tema .tp-marcas-franja__pausa:hover { background: rgba(0,0,0,.14); color: #111; }
@media (max-width: 767px) {
	.tp-marcas-franja { padding: 24px 0; }
	.tp-marcas-franja__lista { gap: 44px; padding: 0 22px; }
	.tp-marca--serif { font-size: 21px; } .tp-marca--negrita { font-size: 24px; } .tp-marca--clasica { font-size: 25px; }
	.tp-marca--fina { font-size: 20px; } .tp-marca--espaciada { font-size: 18px; }
	.tp-marcas-franja__logo { max-height: 38px; max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
	.tp-marcas-franja__pista { animation: none; }
	.tp-marcas-franja__ventana { overflow-x: auto; }
	.tp-marcas-franja__lista[aria-hidden="true"], .tp-marcas-franja__pausa { display: none !important; }
}
