/* Tostao · Sitio — tienda y categorías de producto. Diseño aprobado el 21-nov-2026 (prototipo v35, escena «Tienda y tarjetas»).
   Todo cuelga de .ts-w; clases con prefijo ts-t-. Cortes: 960 (tableta) y 600 (móvil). */

/* ---- base y reinicio local (el kit de Elementor, el tema y WooCommerce estilan títulos, listas, imágenes y enlaces) ---- */
.ts-w .ts-t { color: var(--ts-granate); font-family: var(--ts-fuente); background: #fff; line-height: 1.5; overflow-x: clip; }
.ts-w .ts-t :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
.ts-w .ts-t :where(h1, h2, h3) { font-family: var(--ts-fuente); font-weight: 700; color: inherit; text-transform: none; letter-spacing: normal; }
.ts-w .ts-t :where(ul, ol) { list-style: none; }
.ts-w .ts-t img { display: block; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.ts-w .ts-t a { color: inherit; text-decoration: none; }
.ts-w .ts-t :focus-visible { outline: 3px solid var(--ts-granate); outline-offset: 3px; }
.ts-w .ts-t .ts-t-primera :focus-visible { outline-color: var(--ts-amarillo); }
.ts-w .ts-t-in { max-width: var(--ts-ancho); margin: 0 auto; padding: 20px 40px 64px; }

/* ---- botones: relleno amarillo con texto granate; secundarios en contorno ---- */
.ts-w .ts-t .ts-t-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--ts-amarillo); color: var(--ts-granate); font: 700 14px/1.2 var(--ts-fuente); letter-spacing: .01em; padding: 13px 26px; border: 0; border-radius: 999px; text-align: center; transition: background .15s, color .15s; }
.ts-w .ts-t .ts-t-btn:hover { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-t .ts-t-primera .ts-t-btn:hover { background: #fff; color: var(--ts-granate); }
.ts-w .ts-t .ts-t-btn-lin { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ts-granate); }
.ts-w .ts-t .ts-t-btn-lin:hover { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-t-centro { display: flex; justify-content: center; margin-top: 28px; }
.ts-w .ts-t-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

/* ---- cabecera de página ---- */
.ts-w .ts-t-migas { font-size: 12.5px; color: var(--ts-suave); }
.ts-w .ts-t-migas a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ts-w .ts-t-cab { text-align: center; }
.ts-w .ts-t-cab h1 { margin: 10px 0 8px; font-size: 46px; font-weight: 700; letter-spacing: -1px; line-height: 1.05; }
.ts-w .ts-t-cab h1:last-child { margin-bottom: 22px; }
.ts-w .ts-t-intro { max-width: 660px; margin: 0 auto 24px; color: var(--ts-suave); font-size: 15px; line-height: 1.6; }

/* ---- filtros por categoría (enlaces reales) ---- */
.ts-w .ts-t-filtros ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.ts-w .ts-t .ts-t-pi { display: inline-block; border: 1px solid var(--ts-granate); border-radius: 999px; padding: 9px 18px; font-size: 12px; font-weight: 700; letter-spacing: .8px; line-height: 1.3; text-transform: uppercase; background: #fff; color: var(--ts-granate); white-space: nowrap; transition: background .15s; }
.ts-w .ts-t .ts-t-pi:hover { background: var(--ts-crema-claro); }
.ts-w .ts-t .ts-t-pi[aria-current="page"] { background: var(--ts-granate); border-color: var(--ts-granate); color: var(--ts-amarillo); }

/* ---- contador y orden ---- */
.ts-w .ts-t-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; border: 1px solid var(--ts-linea); border-radius: 999px; padding: 6px 8px 6px 22px; background: var(--ts-crema-claro); font-size: 13px; font-weight: 600; }
.ts-w .ts-t-cuenta { font-weight: 700; white-space: nowrap; }
.ts-w .ts-t-orden { display: flex; align-items: center; gap: 10px; margin: 0; }
.ts-w .ts-t-orden label { font-weight: 600; color: var(--ts-suave); white-space: nowrap; margin: 0; }
.ts-w .ts-t .ts-t-orden select { appearance: none; -webkit-appearance: none; max-width: 100%; border: 1px solid var(--ts-granate); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5l4.5 4.5 4.5-4.5' fill='none' stroke='%235B1117' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 11px 8px; padding: 8px 36px 8px 16px; font: 700 13px/1.3 var(--ts-fuente); color: var(--ts-granate); cursor: pointer; margin: 0; height: auto; box-shadow: none; }
.ts-w .ts-t .ts-t-orden select:hover { background-color: var(--ts-crema-claro); }
.ts-w .ts-t .ts-t-ordenar { border: 1px solid var(--ts-granate); border-radius: 999px; padding: 8px 16px; font: 700 13px var(--ts-fuente); background: #fff; color: var(--ts-granate); }

/* ---- rejilla de productos ---- */
.ts-w .ts-t-rej { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.ts-w .ts-t-item { display: flex; min-width: 0; }
.ts-w .ts-t-card { position: relative; display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--ts-linea); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.ts-w .ts-t-card:hover, .ts-w .ts-t-card:focus-within { border-color: #d9c99c; box-shadow: 0 10px 26px rgba(63, 21, 14, .1); }
.ts-w .ts-t-foto { position: relative; aspect-ratio: 1 / 1; background: var(--ts-gris); overflow: hidden; }
.ts-w .ts-t-foto img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform .5s ease; }
.ts-w .ts-t-card:hover .ts-t-foto img { transform: scale(1.04); }
.ts-w .ts-t-foto.ts-t-pend { display: grid; place-items: center; color: var(--ts-suave); }
.ts-w .ts-t-pend-in { display: grid; justify-items: center; gap: 10px; padding: 0 12px 22px; text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.4; }
.ts-w .ts-t-pend-in svg { width: 84px; height: 84px; stroke: currentColor; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.ts-w .ts-t-badge { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--ts-granate); color: var(--ts-amarillo); font-size: 11px; font-weight: 800; line-height: 1.3; padding: 4px 10px; border-radius: 6px; letter-spacing: .4px; }
.ts-w .ts-t-badge.ts-t-agotado { background: #fff; color: var(--ts-suave); box-shadow: inset 0 0 0 1px var(--ts-linea); }

/* botón de añadir: redondo en productos simples, «Elegir opciones» en el resto */
.ts-w .ts-t .ts-t-add { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; margin: 0; padding: 0; border-radius: 50%; background: var(--ts-granate); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(94, 33, 41, .3); transition: background .15s; }
.ts-w .ts-t .ts-t-add:hover { background: var(--ts-granate-osc); }
.ts-w .ts-t .ts-t-add svg { grid-area: 1 / 1; width: 20px; height: 20px; stroke: var(--ts-amarillo); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ts-w .ts-t .ts-t-add .ts-t-i-hecho, .ts-w .ts-t .ts-t-add.added .ts-t-i-cesta { display: none; }
.ts-w .ts-t .ts-t-add.added .ts-t-i-hecho { display: block; }
.ts-w .ts-t .ts-t-add::before, .ts-w .ts-t .ts-t-add::after { content: none; }
.ts-w .ts-t .ts-t-add.loading { opacity: .65; pointer-events: none; }
.ts-w .ts-t .ts-t-add.loading svg { animation: ts-t-gira 1s linear infinite; }
@keyframes ts-t-gira { to { transform: rotate(360deg); } }
.ts-w .ts-t .added_to_cart { display: none; }
.ts-w .ts-t .ts-t-opc { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: var(--ts-granate); color: var(--ts-amarillo); font: 700 12px/1.2 var(--ts-fuente); padding: 11px 15px; border-radius: 999px; box-shadow: 0 4px 12px rgba(94, 33, 41, .3); transition: background .15s; }
.ts-w .ts-t .ts-t-opc:hover { background: var(--ts-granate-osc); }

/* cuerpo de la tarjeta: el titular es el enlace y se amplía a toda la tarjeta */
.ts-w .ts-t-cuerpo { display: flex; flex: 1; flex-direction: column; gap: 5px; padding: 14px 16px 18px; text-align: center; }
.ts-w .ts-t-cuerpo h3 { font-size: 14.5px; line-height: 1.3; font-weight: 700; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ts-w .ts-t-cuerpo h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ts-w .ts-t-card:hover h3 a { text-decoration: underline; text-underline-offset: 3px; }
.ts-w .ts-t-cuerpo h3 a:focus-visible { outline: none; }
.ts-w .ts-t-cuerpo h3 a:focus-visible::after { outline: 3px solid var(--ts-granate); outline-offset: -3px; border-radius: 16px; }
.ts-w .ts-t-ideal { font-size: 12.5px; color: var(--ts-suave); line-height: 1.4; }
.ts-w .ts-t-precio { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 4px; }
.ts-w .ts-t-precio b { font-size: 17px; font-weight: 800; }
.ts-w .ts-t-precio span { font-size: 12px; color: var(--ts-suave); }
.ts-w .ts-t-precio .ts-t-desde { font-weight: 600; }

/* ---- paginación (solo si hay más de 60 productos) ---- */
.ts-w .ts-t-pag { margin-top: 30px; }
.ts-w .ts-t-pag ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ts-w .ts-t-pag .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 16px; border: 1px solid var(--ts-granate); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; color: var(--ts-granate); }
.ts-w .ts-t-pag a.page-numbers:hover { background: var(--ts-crema-claro); }
.ts-w .ts-t-pag .page-numbers.current { background: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-t-pag .page-numbers.dots { border-color: transparent; }

/* ---- sin productos ---- */
.ts-w .ts-t-vacio { margin-top: 18px; padding: 48px 24px; text-align: center; border: 1.5px dashed var(--ts-linea); border-radius: 20px; background: var(--ts-crema-claro); }
.ts-w .ts-t-vacio h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.4px; }
.ts-w .ts-t-vacio p { max-width: 520px; margin: 10px auto 0; color: var(--ts-suave); font-size: 15px; line-height: 1.6; }
.ts-w .ts-t-vacio .ts-t-botones { margin-top: 22px; }

/* ---- «Aprende con nosotros» ---- */
.ts-w .ts-t-aprende { margin-top: 64px; }
.ts-w .ts-t-aprende h2 { text-align: center; font-size: 34px; line-height: 1.1; letter-spacing: -.6px; }
.ts-w .ts-t-sub { margin: 8px 0 24px; text-align: center; color: var(--ts-suave); font-size: 14.5px; }
.ts-w .ts-t-forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ts-w .ts-t-form { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ts-linea); border-radius: 16px; overflow: hidden; }
.ts-w .ts-t-form-foto { position: relative; height: 210px; background: var(--ts-crema-claro); flex: none; }
.ts-w .ts-t-form-foto img { width: 100%; height: 100%; object-fit: cover; }
.ts-w .ts-t-tag { position: absolute; left: 12px; top: 12px; background: var(--ts-crema); color: var(--ts-granate); font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; line-height: 1.3; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.ts-w .ts-t-form h3 { padding: 16px 18px 0; font-size: 18px; line-height: 1.2; }
.ts-w .ts-t-form-frase { padding: 8px 18px 0; font-size: 13px; color: var(--ts-suave); line-height: 1.45; }
.ts-w .ts-t-chips { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 8px; padding: 12px 18px 0; }
.ts-w .ts-t-chips:empty { display: none; }
.ts-w .ts-t-chips > span { font-size: 12px; font-weight: 700; line-height: 1.3; border: 1px solid var(--ts-linea); background: var(--ts-crema-claro); border-radius: 999px; padding: 4px 10px; }
.ts-w .ts-t-chips > .ts-t-etq.ts-libre { background: #fff; box-shadow: inset 0 0 0 1px var(--ts-granate); border-color: transparent; }
.ts-w .ts-t-chips > .ts-t-etq.ts-conf { background: var(--ts-granate); border-color: var(--ts-granate); color: var(--ts-amarillo); }
.ts-w .ts-t-chips > .ts-t-etq.ts-escasez { background: var(--ts-amarillo); border-color: var(--ts-amarillo); color: var(--ts-granate); }
.ts-w .ts-t-chips > .ts-t-etq.ts-lleno { background: #fff; color: var(--ts-suave); }
.ts-w .ts-t-form-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 16px 18px 20px; }
.ts-w .ts-t-form-pie b { font-size: 20px; font-weight: 800; white-space: nowrap; }
.ts-w .ts-t-form-pie .ts-t-desde { font-size: 12px; font-weight: 600; color: var(--ts-suave); }
.ts-w .ts-t .ts-t-btn-sec { display: inline-block; border: 1.5px solid var(--ts-granate); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 13px; line-height: 1.2; background: #fff; color: var(--ts-granate); white-space: nowrap; transition: background .15s, color .15s; }
.ts-w .ts-t .ts-t-btn-sec:hover { background: var(--ts-granate); color: var(--ts-amarillo); }
/* con subgrid cada fila (foto, título, texto, datos, precio y botón) se alinea entre tarjetas aunque un texto cambie de largo */
@supports (grid-template-rows: subgrid) {
	.ts-w .ts-t-forms { row-gap: 0; }
	.ts-w .ts-t-form { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
	.ts-w .ts-t-form-pie { margin-top: 0; align-self: end; padding-top: 14px; }
	.ts-w .ts-t-chips:empty { display: block; }
	.ts-w .ts-t-forms > .ts-t-form + .ts-t-form { margin: 0; }
}

/* ---- «¿Primera vez en Tostao?» ---- */
.ts-w .ts-t-primera { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 30px 34px; background: var(--ts-granate); color: var(--ts-crema); border-radius: 20px; }
.ts-w .ts-t-primera h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.4px; color: #fff; }
.ts-w .ts-t-primera h2 span { color: var(--ts-amarillo); }
.ts-w .ts-t-primera p { margin-top: 4px; font-size: 14px; opacity: .92; }

/* ---- aviso al añadir a la cesta ---- */
.ts-w .ts-t-aviso { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 22px; z-index: 9000; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 12px 14px 12px 20px; background: var(--ts-granate-osc); color: var(--ts-crema); border-radius: 999px; box-shadow: 0 12px 32px rgba(43, 13, 17, .35); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ts-w .ts-t-aviso[hidden] { display: none; }
.ts-w .ts-t .ts-t-aviso a { flex: none; color: var(--ts-amarillo); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ts-w .ts-t .ts-t-aviso button { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--ts-crema); }
.ts-w .ts-t .ts-t-aviso button:hover { background: rgba(255, 255, 255, .16); }
.ts-w .ts-t .ts-t-aviso button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.ts-w .ts-t .ts-t-aviso :focus-visible { outline-color: var(--ts-amarillo); }

/* ---- avisos de WooCommerce (al añadir sin JavaScript) ---- */
.ts-w .ts-t .woocommerce-notices-wrapper { margin-bottom: 12px; }
.ts-w .ts-t .woocommerce-message, .ts-w .ts-t .woocommerce-error, .ts-w .ts-t .woocommerce-info { margin: 0 0 10px; padding: 14px 20px; border: 1px solid var(--ts-linea); border-radius: 14px; background: var(--ts-crema-claro); color: var(--ts-granate); font-size: 14px; list-style: none; }
.ts-w .ts-t .woocommerce-message::before, .ts-w .ts-t .woocommerce-error::before, .ts-w .ts-t .woocommerce-info::before { content: none; }
.ts-w .ts-t .woocommerce-message a.button, .ts-w .ts-t .woocommerce-message .wc-forward { float: none; display: inline-block; margin-right: 12px; padding: 7px 16px; border-radius: 999px; background: var(--ts-granate); color: var(--ts-amarillo); font-weight: 700; font-size: 13px; }

/* ---- tableta ---- */
@media (max-width: 960px) {
	.ts-w .ts-t-in { padding: 16px 28px 52px; }
	.ts-w .ts-t-cab h1 { font-size: 34px; }
	.ts-w .ts-t-filtros ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -28px 14px; padding-left: 28px; padding-right: 28px; scrollbar-width: thin; }
	.ts-w .ts-t-filtros li { flex: none; }
	.ts-w .ts-t-rej { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.ts-w .ts-t-aprende { margin-top: 52px; }
	.ts-w .ts-t-aprende h2 { font-size: 28px; }
	.ts-w .ts-t-form-foto { height: 170px; }
	.ts-w .ts-t-form h3 { padding: 14px 16px 0; font-size: 16.5px; }
	.ts-w .ts-t-form-frase { padding: 8px 16px 0; font-size: 12.5px; }
	.ts-w .ts-t-chips { padding: 10px 16px 0; }
	.ts-w .ts-t-form-pie { padding: 14px 16px 18px; flex-wrap: wrap; }
	.ts-w .ts-t .ts-t-btn-sec { padding: 9px 14px; font-size: 12.5px; }
	.ts-w .ts-t-primera { padding: 26px 28px; }
}

/* ---- móvil ---- */
@media (max-width: 600px) {
	.ts-w .ts-t-in { padding: 14px 18px 40px; }
	.ts-w .ts-t-cab h1 { font-size: 28px; }
	.ts-w .ts-t-intro { font-size: 14.5px; margin-bottom: 18px; }
	.ts-w .ts-t-filtros ul { margin: 0 -18px 12px; padding-left: 18px; padding-right: 18px; }
	.ts-w .ts-t-barra { padding: 5px 6px 5px 18px; }
	.ts-w .ts-t-orden-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
	.ts-w .ts-t-rej { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ts-w .ts-t-cuerpo { padding: 12px 12px 16px; }
	.ts-w .ts-t-cuerpo h3 { font-size: 13.5px; -webkit-line-clamp: 4; }
	.ts-w .ts-t-pend-in svg { width: 64px; height: 64px; }
	.ts-w .ts-t-pend-in { padding-bottom: 34px; font-size: 11px; }
	.ts-w .ts-t-orden { flex: 1; justify-content: flex-end; min-width: 0; }
	.ts-w .ts-t .ts-t-orden select { font-size: 12.5px; padding: 8px 32px 8px 14px; min-width: 0; }
	.ts-w .ts-t-ideal { font-size: 12px; }
	.ts-w .ts-t-precio b { font-size: 16px; }
	.ts-w .ts-t .ts-t-add { right: 8px; bottom: 8px; width: 40px; height: 40px; }
	.ts-w .ts-t .ts-t-add svg { width: 18px; height: 18px; }
	.ts-w .ts-t .ts-t-opc { right: 8px; bottom: 8px; padding: 9px 12px; font-size: 11.5px; }
	.ts-w .ts-t-badge { top: 8px; right: 8px; font-size: 10.5px; }
	.ts-w .ts-t-centro .ts-t-btn, .ts-w .ts-t-botones .ts-t-btn { flex: 1 1 100%; }
	.ts-w .ts-t-aprende { margin-top: 44px; }
	.ts-w .ts-t-aprende h2 { font-size: 25px; }
	.ts-w .ts-t-sub { font-size: 13.5px; margin-bottom: 18px; }
	.ts-w .ts-t-forms { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.ts-w .ts-t-form { display: flex; grid-row: auto; }
	.ts-w .ts-t-form-foto { height: 180px; }
	.ts-w .ts-t-form h3 { padding: 16px 18px 0; font-size: 18px; }
	.ts-w .ts-t-form-frase { padding: 8px 18px 0; }
	.ts-w .ts-t-chips { padding: 12px 18px 0; }
	.ts-w .ts-t-form-pie { padding: 16px 18px 20px; flex-wrap: nowrap; align-self: stretch; }
	.ts-w .ts-t-primera { margin-top: 44px; padding: 24px 22px; }
	.ts-w .ts-t-primera h2 { font-size: 22px; }
	.ts-w .ts-t-primera .ts-t-btn { flex: 1 1 100%; }
	.ts-w .ts-t-aviso { bottom: 14px; border-radius: 18px; }
	.ts-w .ts-t-vacio { padding: 36px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.ts-w .ts-t *, .ts-w .ts-t *::before, .ts-w .ts-t *::after { transition: none !important; animation: none !important; }
	.ts-w .ts-t-card:hover .ts-t-foto img { transform: none; }
}

/* ---- barra de categorías fija al desplazarse (como la navegación de la carta de Vinícola) ---- */
.ts-w .ts-t-catalogo { position: relative; }
.ts-w .ts-t-filtros.ts-t-fija { position: sticky; top: var(--ts-sticky-top, 0px); z-index: 30; padding: 12px 0 2px; margin: 0 0 6px; background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
.ts-w .ts-t-filtros.ts-t-fija ul { margin-bottom: 10px; }
.ts-w .ts-t-filtros.ts-t-fija::after { content: ""; position: absolute; left: -100vmax; right: -100vmax; bottom: 0; height: 1px; background: var(--ts-linea); opacity: 0; transition: opacity .15s; pointer-events: none; }
.ts-w .ts-t-filtros.ts-t-fija.ts-t-pegada::after { opacity: 1; }
/* segunda fila: subcategorías del grupo activo */
.ts-w .ts-t-filtros ul.ts-t-subfiltros { gap: 8px; margin-top: -2px; }
.ts-w .ts-t .ts-t-sub { display: inline-block; border: 1px solid var(--ts-linea); border-radius: 999px; padding: 6px 14px; font: 700 11.5px/1.3 var(--ts-fuente); letter-spacing: .6px; text-transform: uppercase; background: var(--ts-crema-claro); color: var(--ts-granate); text-decoration: none; white-space: nowrap; }
.ts-w .ts-t .ts-t-sub:hover { background: #fff; border-color: var(--ts-granate); }
.ts-w .ts-t .ts-t-sub[aria-current="page"] { background: var(--ts-crema); border-color: var(--ts-granate); }
@media (prefers-reduced-motion: reduce) { .ts-w .ts-t-filtros.ts-t-fija::after { transition: none; } }
/* sin barra de desplazamiento visible en la fila de categorías (se desliza con el dedo) */
.ts-w .ts-t-filtros ul { scrollbar-width: none; }
.ts-w .ts-t-filtros ul::-webkit-scrollbar { display: none; }
/* el filete de la barra fija sale a todo el ancho: se recorta el desbordamiento horizontal (clip no crea contenedor de scroll, la barra sigue fija) */
.ts-w .ts-t { overflow-x: clip; }

/* «Aprende con nosotros»: el rótulo de lugar (una cápsula de una línea) se cortaba en móvil («… · C. MATA»): en pantallas estrechas puede ocupar varias líneas */
@media (max-width: 600px) { .ts-w .ts-t p.ts-t-sub { display: block; white-space: normal; border-radius: 18px; padding: 8px 14px; text-wrap: balance; } }

/* objetivos táctiles de 44 px (filtros de categoría, botones y migas de la tienda: eran de 36–43 px) */
.ts-w .ts-t .ts-t-pi { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.ts-w .ts-t .ts-t-btn { min-height: 44px; }
.ts-w .ts-t .ts-t-btn-sec { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-block: 0; }
.ts-w .ts-t-migas a { position: relative; }
.ts-w .ts-t-migas a::after { content: ""; position: absolute; inset: -15px -6px; } /* zona táctil de 44 px sin mover el texto */
.ts-w .ts-t .ts-t-orden select { min-height: 44px; }
@media (max-width: 600px) {
	.ts-w .ts-t .ts-t-add { width: 44px; height: 44px; }
	.ts-w .ts-t .ts-t-opc { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
}

/* cafeteras (módulo cafeteras): la máquina entera, sin recortar los lados ni el depósito de granos (con cover se cortaba); el blanco sigue fundiéndose con el gris (multiply) */
.ts-w .ts-t-foto.ts-t-contener img { object-fit: contain; box-sizing: border-box; padding: 5%; }

/* ---- RECORTES SIN FONDO (PNG/WebP transparentes; el adjunto lleva la marca _tostao_foto_sin_fondo y el módulo pone .ts-sf) ----
   Sin panel gris y sin multiply: la máquina directamente sobre el crema claro de la tarjeta, más grande, apoyada en el suelo y con una sombra
   de suelo suave (elipse con degradado). La foto se alinea abajo (object-position) y el elipse se coloca justo a la altura de su base. */
.ts-w .ts-t-foto.ts-sf { background: var(--ts-sf-fondo, var(--ts-crema-claro)); }
.ts-w .ts-t-foto.ts-sf::before { content: ""; position: absolute; z-index: 0; left: 17%; right: 17%; bottom: 9.4%; height: 5.4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(63, 21, 14, .34), rgba(63, 21, 14, .15) 56%, rgba(63, 21, 14, 0)); pointer-events: none; }
.ts-w .ts-t-foto.ts-sf img { position: relative; z-index: 1; box-sizing: border-box; padding: 8% 7% 12%; object-fit: contain; object-position: 50% 100%; mix-blend-mode: normal; transform-origin: 50% 88%; }
.ts-w .ts-t-card:hover .ts-t-foto.ts-sf img { transform: scale(1.03); }
.ts-w .ts-t-foto.ts-sf .ts-t-badge, .ts-w .ts-t-foto.ts-sf .ts-t-add, .ts-w .ts-t-foto.ts-sf .ts-t-opc { z-index: 3; }
/* móvil (tarjetas de ~170 px): el botón «Ver producto» ocupa casi un cuarto de la foto; la máquina se sube para que no quede tapada */
@media (max-width: 600px) {
	.ts-w .ts-t-foto.ts-t-contener:not(.ts-sf) img { padding: 4% 5% 20%; }
	.ts-w .ts-t-foto.ts-sf.ts-t-contener img { padding: 6% 6% 21%; }
	.ts-w .ts-t-foto.ts-sf.ts-t-contener::before { bottom: 18.4%; }
}

/* ---- Revisión de diseño (23-nov-2026) ---- */
/* Cafeteras con recorte: el botón «Ver producto» ocupa la franja de abajo de la foto; la máquina se apoya por encima de esa franja (antes el botón tapaba la esquina de la base) */
@media (min-width: 601px) {
	.ts-w .ts-t-foto.ts-sf.ts-t-contener img { padding: 7% 7% 17%; }
	.ts-w .ts-t-foto.ts-sf.ts-t-contener::before { bottom: 14.2%; }
}
/* con «reducir movimiento» el recorte tampoco se amplía al pasar el ratón */
@media (prefers-reduced-motion: reduce) {
	.ts-w .ts-t-card:hover .ts-t-foto.ts-sf img { transform: none !important; transition: none !important; }
}

/* ---- Revisión de diseño 2 (24-nov-2026) ---- */
/* Título de una cafetera independiente: la gama (se recorta si hace falta) y, debajo, el acabado SIEMPRE entero (antes «… Acer…» y tres tarjetas parecían la misma) */
.ts-w .ts-t-cuerpo h3:has(.ts-t-ac) { display: block; -webkit-line-clamp: unset; overflow: visible; }
.ts-w .ts-t-cuerpo h3 .ts-t-g { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ts-w .ts-t-cuerpo h3 .ts-t-ac { display: block; margin-top: 4px; font-size: .94em; font-weight: 600; line-height: 1.3; }
@media (max-width: 600px) { .ts-w .ts-t-cuerpo h3 .ts-t-g { -webkit-line-clamp: 4; } }
/* «Ver producto»: objetivo táctil de 44 px también en tableta (antes solo ≤ 600 px; en 601-960 medía 36) y con puntero táctil */
@media (max-width: 960px), (pointer: coarse) {
	.ts-w .ts-t .ts-t-opc { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
}
/* foto blanca de una cafetera sobre el panel gris: la máquina entera se queda por encima de la franja del botón «Ver producto» (la base tocaba el botón) */
@media (min-width: 601px) {
	.ts-w .ts-t-foto.ts-t-contener:not(.ts-sf) img { padding: 3% 4% 11%; }
}
