/* ==========================================================================
   Tienda Base — WooCommerce: catálogo, ficha, variaciones, carrito, checkout, cuenta.
   (Se desactivan los estilos de WooCommerce; todo se define aquí.)
   ========================================================================== */

/* ---------- Avisos ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	list-style: none; margin: 0 0 24px; padding: 16px 20px;
	border: 1px solid var(--line); border-left: 4px solid var(--ink);
	border-radius: var(--radius); background: var(--surface);
	font-size: 0.9375rem;
}
.woocommerce-error { border-left-color: var(--accent); }
.woocommerce-error li { width: 100%; }
.woocommerce-message .button { order: 2; margin-left: auto; min-height: 40px; }
.woocommerce-info a:not(.button), .woocommerce-message a:not(.button), .woocommerce-error a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Migas ---------- */
.tb-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 18px 0 8px; font-size: 0.8125rem; color: var(--muted); }
.tb-breadcrumb a { text-decoration: none; transition: color 0.2s; }
.tb-breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tb-bc-sep { opacity: 0.5; }

/* ---------- Catálogo ---------- */
.shop-main, .single-main { padding-bottom: clamp(40px, 6vw, 88px); }
.shop-head { padding: clamp(12px, 2vw, 24px) 0 clamp(16px, 2vw, 24px); }
.shop-title { margin: 0 0 8px; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.shop-head .term-description, .shop-head .page-description { color: var(--muted); max-width: 60ch; }
.shop-head .term-description p:last-child { margin: 0; }

.shop-toolbar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 14px 0; margin-bottom: clamp(16px, 2vw, 28px);
	border-block: 1px solid var(--line);
}
.shop-toolbar__left { display: flex; align-items: center; gap: 16px; }
.woocommerce-result-count { margin: 0; font-size: 0.875rem; color: var(--muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 42px; padding: 0 36px 0 14px; font-size: 0.9375rem; }

/* Grilla */
.products.tb-grid,
ul.products {
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: clamp(24px, 3.4vw, 44px) clamp(12px, 2vw, 24px);
	list-style: none; margin: 0; padding: 0;
}
@media (max-width: 1023px) { .products.tb-grid, ul.products { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); } }
@media (max-width: 699px)  { .products.tb-grid, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tb-card { position: relative; display: flex; flex-direction: column; margin: 0; transition: transform 0.25s var(--ease); }
.tb-card:hover { transform: translateY(-2px); }
.tb-card__media {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: var(--card-ratio);
	border-radius: var(--radius);
	background: var(--surface);
}
.tb-card__img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transition: transform 0.5s var(--ease), opacity 0.35s;
}
.tb-card:hover .tb-card__img { transform: scale(1.03); }
.tb-card__img--alt { opacity: 0; }
@media (hover: hover) { .tb-card:hover .tb-card__img--alt { opacity: 1; } }

.tb-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tb-badge {
	display: inline-block; padding: 5px 10px; border-radius: 999px;
	font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.02em;
}
.tb-badge--sale { background: var(--accent); color: var(--accent-ink); }
.tb-badge--out { background: var(--ink); color: var(--bg); }
.onsale.tb-badge { position: absolute; top: 14px; left: 14px; z-index: 5; }

.tb-card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tb-card__title { margin: 0; font: 500 0.9375rem/1.35 var(--font-body); letter-spacing: 0; }
.tb-card__title a {
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
	transition: background-size 0.3s var(--ease);
}
.tb-card:hover .tb-card__title a { background-size: 100% 1px; }
.tb-card__price { font-weight: 600; font-size: 0.9375rem; }
.tb-card__price del, .price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.tb-card__price ins, .price ins { text-decoration: none; color: var(--accent); }
.tb-card__cta { margin-top: 10px; }
.tb-card__cta .button { min-height: 40px; width: 100%; font-size: 0.875rem; background: transparent; color: var(--ink); border-color: var(--line-strong); }
.tb-card__cta .button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tb-card__cta .button.loading { opacity: 0.6; }
.tb-card__cta .added_to_cart { display: none; }

.tb-card-swatches { display: flex; align-items: center; gap: 6px; margin: 2px 0 2px; }
.tb-card-swatches i {
	width: 14px; height: 14px; border-radius: 50%; background: var(--sw);
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.16);
}
.tb-card-swatches small { font-size: 0.75rem; color: var(--muted); }

.woocommerce-no-products-found { padding: 48px 0; text-align: center; }

/* ---------- Ficha de producto ---------- */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(24px, 5vw, 80px);
	align-items: start;
	padding-top: 8px;
}
.single-product div.product { position: relative; }
.single-product div.product > .onsale { top: 24px; left: 16px; }
.single-product div.product > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.single-product div.product > .related,
.single-product div.product > .upsells,
.single-product div.product > .up-sells { grid-column: 1 / -1; margin-top: clamp(32px, 5vw, 72px); }
.single-product div.product > .related > h2,
.single-product div.product > .upsells > h2,
.single-product div.product > .up-sells > h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); margin-bottom: 24px; }

/* Galería */
.woocommerce-product-gallery { position: relative; min-width: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--radius); overflow: hidden; }
.woocommerce-product-gallery .flex-control-thumbs {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px;
	list-style: none; margin: 12px 0 0; padding: 0;
}
.woocommerce-product-gallery .flex-control-thumbs li { margin: 0; }
.woocommerce-product-gallery .flex-control-thumbs img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover; cursor: pointer;
	border-radius: calc(var(--radius) - 1px); border: 2px solid transparent; opacity: 0.6;
	transition: opacity 0.2s, border-color 0.2s;
}
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--ink); }
.woocommerce-product-gallery__trigger {
	position: absolute; top: 12px; right: 12px; z-index: 9;
	display: grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; background: var(--bg); text-decoration: none; font-size: 1rem;
	transition: transform 0.15s var(--ease);
}
.woocommerce-product-gallery__trigger:hover { transform: scale(1.06); }

/* Resumen */
.summary.entry-summary { min-width: 0; }
/* Sin sticky en la columna de compra: con descripción larga queda más alta que la pantalla y se encima con lo que sigue. */
.product_title { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); margin-bottom: 14px; }
.summary .price { margin: 0 0 18px; font: 600 1.5rem/1.2 var(--font-body); }
.summary .price del { font-size: 1.0625rem; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.875rem; }
.star-rating { position: relative; display: inline-block; width: 5.4em; height: 1em; line-height: 1; font-size: 1rem; overflow: hidden; letter-spacing: 0.1em; }
.star-rating::before { content: "★★★★★"; position: absolute; inset: 0; color: var(--line-strong); }
.star-rating span { position: absolute; inset: 0 auto 0 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; position: absolute; top: 0; left: 0; color: var(--ink); }
.woocommerce-product-details__short-description { color: var(--muted); margin-bottom: 22px; }
.woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* ---------- Variaciones: muestras de color y tallas ---------- */
table.variations { width: 100%; border: 0; border-collapse: collapse; margin: 0 0 8px; }
table.variations tr { display: block; margin-bottom: 22px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; }
table.variations tr:has(.tb-sw-head) th.label { display: none; }
table.variations th.label label { font-weight: 600; }
.tb-select-hidden { display: none; }

.tb-sw-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 0.9375rem; }
.tb-sw-label { font-weight: 600; }
.tb-sw-value { font-weight: 400; color: var(--muted); }
.tb-sizeguide-open {
	margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
	padding: 0 0 2px; border: 0; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
	font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: background-size 0.3s var(--ease);
}
.tb-sizeguide-open:hover { background-size: 0 1px; background-position: right bottom; }

.tb-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.tb-swatches.is-attention { animation: tb-nudge 0.5s var(--ease); }
@keyframes tb-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.tb-sw { appearance: none; margin: 0; cursor: pointer; font: inherit; color: var(--ink); }

/* Tallas y opciones de texto */
.tb-sw--pill {
	position: relative;
	min-width: 52px; height: 46px; padding: 0 16px;
	border: 1px solid var(--line-strong); border-radius: var(--radius);
	background: var(--bg); font-weight: 500; font-size: 0.9375rem;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.12s var(--ease);
}
.tb-sw--pill:hover { border-color: var(--ink); }
.tb-sw--pill:active { transform: scale(0.96); }
.tb-sw--pill.is-selected { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Colores */
.tb-sw--color {
	width: 42px; height: 42px; padding: 3px;
	border: 2px solid transparent; border-radius: 50%; background: transparent;
	transition: border-color 0.2s, transform 0.12s var(--ease);
}
.tb-sw__dot { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.16); }
.tb-sw--color:hover { border-color: var(--line-strong); }
.tb-sw--color:active { transform: scale(0.94); }
.tb-sw--color.is-selected { border-color: var(--ink); }

/* Agotado / no disponible con la combinación elegida */
.tb-sw.is-soldout, .tb-sw.is-unavailable { cursor: not-allowed; }
.tb-sw--pill.is-soldout, .tb-sw--pill.is-unavailable {
	color: var(--muted); border-color: var(--line); background: var(--surface);
	background-image: linear-gradient(to top right, transparent calc(50% - 1px), var(--line-strong) 50%, transparent calc(50% + 1px));
}
.tb-sw--color.is-soldout .tb-sw__dot, .tb-sw--color.is-unavailable .tb-sw__dot { opacity: 0.35; }
.tb-sw--color.is-soldout, .tb-sw--color.is-unavailable { position: relative; }
.tb-sw--color.is-soldout::after, .tb-sw--color.is-unavailable::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%;
	background: linear-gradient(to top right, transparent calc(50% - 1px), var(--ink) 50%, transparent calc(50% + 1px));
}

.reset_variations.tb-reset[style*="hidden"] { display: none; }
.reset_variations.tb-reset { display: inline-block; margin-top: 10px; font-size: 0.8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-variation-price, .woocommerce-variation-description { display: none; }
.woocommerce-variation-availability { margin-bottom: 14px; font-size: 0.875rem; }
.woocommerce-variation-availability p { margin: 0; }
.stock.out-of-stock { color: var(--accent); font-weight: 600; }
.stock.in-stock { color: var(--muted); }

/* Cantidad + botón */
form.cart { margin: 0 0 8px; }
.woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.quantity { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.quantity .qty { width: 48px; min-height: 52px; padding: 0; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tb-qty__btn { display: grid; place-items: center; width: 44px; min-height: 52px; border: 0; background: none; cursor: pointer; transition: background-color 0.15s; }
.tb-qty__btn:hover { background: var(--surface); }
.tb-qty__btn:active { background: var(--line); }
.single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; font-size: 1rem; }
.single_add_to_cart_button.is-busy { opacity: 0.7; pointer-events: none; }
.tb-inline-error { flex-basis: 100%; margin: 0; font-size: 0.875rem; color: var(--accent); }

/* Ventajas y acordeón */
.tb-perks { list-style: none; margin: 22px 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.tb-perks li { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; }
.tb-perks .tb-icon { color: var(--muted); }
.tb-accordion { margin-top: 8px; border-bottom: 1px solid var(--line); }
.tb-acc { border-top: 1px solid var(--line); }
.tb-acc > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600;
}
.tb-acc > summary::-webkit-details-marker { display: none; }
.tb-acc > summary .tb-icon { transition: transform 0.25s var(--ease); }
.tb-acc[open] > summary .tb-icon { transform: rotate(180deg); }
.tb-acc__body { padding-bottom: 22px; color: var(--muted); font-size: 0.9375rem; }
.tb-acc__body h2 { display: none; }
.tb-acc__body > * + * { margin-top: 1em; }
.tb-acc__body table { width: 100%; border-collapse: collapse; }
.tb-acc__body th, .tb-acc__body td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.product_meta { margin-top: 20px; font-size: 0.8125rem; color: var(--muted); display: grid; gap: 4px; }
.product_meta a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reseñas ---------- */
.single-product div.product > .tb-rev { grid-column: 1 / -1; margin-top: clamp(32px, 5vw, 64px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); max-width: 860px; width: 100%; justify-self: start; }
.tb-rev__title { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); margin-bottom: 20px; }
.tb-rev__empty, .tb-rev__note { margin: 0 0 20px; color: var(--muted); font-size: 0.9375rem; }
.tb-rev__summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 40px; align-items: center; margin-bottom: 28px; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--surface); }
.tb-rev__avg { display: grid; justify-items: center; gap: 4px; text-align: center; }
.tb-rev__avg strong { font: 700 3rem/1 var(--font-head); letter-spacing: -0.03em; }
.tb-rev__avg > span { font-size: 0.8125rem; color: var(--muted); }
.tb-rev__bars { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tb-rev__bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-size: 0.8125rem; color: var(--muted); }
.tb-rev__bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tb-rev__bar i { display: block; height: 100%; border-radius: 4px; background: #e0a100; }
.tb-rev__n { text-align: right; }
@media (max-width: 559px) { .tb-rev__summary { grid-template-columns: minmax(0, 1fr); padding: 18px; } }

.tb-rev__list { list-style: none; margin: 0 0 24px; padding: 0; }
.tb-review { margin: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
.tb-review:first-child { padding-top: 0; }
.tb-review__in { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.tb-review__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 1.0625rem var(--font-head); }
.tb-review__top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 4px; }
.tb-review__name { font-size: 0.9375rem; }
.tb-review__badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-style: normal; font-weight: 600; color: #168a4a; }
.tb-review__date { margin-left: auto; font-size: 0.8125rem; color: var(--muted); }
.tb-review__text { margin-top: 8px; font-size: 0.9375rem; line-height: 1.6; }
.tb-review__text p { margin: 0 0 0.6em; }
.tb-review__text p:last-child { margin: 0; }
.tb-review__photo { margin: 12px 0 0; }
.tb-review__photo a { display: inline-block; width: 160px; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; vertical-align: top; }
.tb-review__photo img { display: block; width: 100%; height: auto; }
.tb-review__photo a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tb-review__pending { margin: 8px 0 0; font-size: 0.875rem; color: var(--muted); font-style: italic; }
.tb-review .star-rating { font-size: 0.9375rem; }

/* Estrellas (promedio y reseñas): amarillas, sin texto auxiliar */
.star-rating::before { color: var(--line-strong); }
.star-rating span::before { color: #e0a100; }

/* Formulario */
.tb-rev__formbox > summary { list-style: none; display: inline-flex; cursor: pointer; }
.tb-rev__formbox > summary::-webkit-details-marker { display: none; }
.tb-rev__formbox[open] > summary { margin-bottom: 18px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tb-rev__form { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tb-rev__form .comment-form > p, .tb-rev__form .comment-form-rating { margin: 0 0 16px; }
.tb-rev__form .comment-form-author, .tb-rev__form .comment-form-email { display: inline-block; width: calc(50% - 8px); vertical-align: top; }
.tb-rev__form .comment-form-email { margin-left: 12px; }
@media (max-width: 559px) { .tb-rev__form .comment-form-author, .tb-rev__form .comment-form-email { display: block; width: 100%; margin-left: 0; } }
.tb-rev__form .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.tb-rev__form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.tb-rev__form .form-submit { margin: 4px 0 0; }
.tb-rev__form .form-submit .tb-btn { width: 100%; }
@media (min-width: 560px) { .tb-rev__form .form-submit .tb-btn { width: auto; } }

/* Selector de estrellas (WooCommerce convierte el <select> en p.stars) */
.comment-form-rating select { max-width: 100%; }
p.stars { margin: 0; }
p.stars span { display: inline-flex; gap: 2px; }
p.stars a { position: relative; display: inline-block; width: 36px; height: 36px; font-size: 0; text-decoration: none; color: #e0a100; }
p.stars a::before { content: "☆"; display: block; font-size: 32px; line-height: 36px; text-align: center; }
p.stars:hover a::before { content: "★"; }
p.stars a:hover ~ a::before { content: "☆"; }
p.stars.selected a.active::before { content: "★"; }
p.stars.selected a.active ~ a::before { content: "☆"; }
p.stars.selected a:not(.active)::before { content: "★"; }
.tb-acc > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 4px; }
.tb-acc > summary:focus:not(:focus-visible) { outline: none; }

/* Barra de compra fija (móvil) */
.tb-sticky-atc {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 54;
	display: flex; align-items: center; gap: 14px;
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
	background: var(--bg); border-top: 1px solid var(--line);
	transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.tb-sticky-atc.is-visible { transform: none; }
.tb-sticky-atc__info { flex: 1; min-width: 0; line-height: 1.25; }
.tb-sticky-atc__name { display: block; font-weight: 600; font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-sticky-atc__price { font-size: 0.875rem; color: var(--muted); }
.tb-sticky-atc__price del { display: none; }
.tb-sticky-atc__price ins { text-decoration: none; color: var(--accent); }
.tb-sticky-atc .tb-btn { flex: none; }
@media (min-width: 900px) { .tb-sticky-atc { display: none; } }
@media (max-width: 899px) { .single-product .wa-float { bottom: 88px; } }

@media (max-width: 959px) {
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- Formularios (checkout, cuenta, cupones) ---------- */
label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 500; }
.required { color: var(--accent); text-decoration: none; border: 0; }
.optional { color: var(--muted); font-weight: 400; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], textarea, select,
.select2-container--default .select2-selection--single {
	width: 100%; min-height: 50px; padding: 0 14px;
	border: 1px solid var(--line-strong); border-radius: var(--radius);
	background: var(--bg); color: var(--ink); font: 400 1rem var(--font-body);
	transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { padding: 12px 14px; min-height: 110px; }
select { appearance: none; padding-right: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 14%, transparent); }
::placeholder { color: color-mix(in srgb, var(--ink) 42%, var(--bg)); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; }
.form-row { margin: 0 0 16px; }
.form-row.woocommerce-invalid input, .form-row.woocommerce-invalid select, .form-row.woocommerce-invalid .select2-selection { border-color: var(--accent); }
.form-row.woocommerce-invalid label { color: var(--accent); }
.woocommerce-input-wrapper { display: block; }

/* Select2 (país/departamento/ciudad) */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { display: flex; align-items: center; padding: 0 14px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.2; color: var(--ink); width: 100%; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: 8px; }
.select2-dropdown { border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--bg); z-index: 200; }
.select2-search--dropdown { padding: 8px; }
.select2-search--dropdown .select2-search__field { min-height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 12px; }
.select2-results__option { padding: 11px 14px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--surface); color: var(--ink); }
.select2-container--default .select2-results__option[aria-selected="true"], .select2-container--default .select2-results__option[data-selected="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Pasos del flujo de compra ---------- */
.tb-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; list-style: none; margin: 0 0 clamp(22px, 3vw, 36px); padding: 0; font-size: 0.875rem; }
.tb-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.tb-steps li + li::before { content: ""; width: clamp(18px, 5vw, 44px); height: 1px; margin: 0 12px; background: var(--line-strong); }
.tb-steps__n { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line-strong); border-radius: 50%; font-weight: 600; font-size: 0.75rem; }
.tb-steps .is-current { color: var(--ink); font-weight: 600; }
.tb-steps .is-current .tb-steps__n { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tb-steps .is-done { color: var(--ink); }
.tb-steps .is-done .tb-steps__n { border-color: var(--ink); }

/* ---------- Carrito ---------- */
.tb-cart { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 899px) { .tb-cart { grid-template-columns: minmax(0, 1fr); } }
.tb-cart__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tb-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.tb-line__thumb { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.tb-line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tb-line__name { margin: 0 0 4px; font-weight: 600; }
.tb-line__name a { text-decoration: none; }
.tb-line__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tb-line__unit { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); }
.tb-line__total { font-weight: 600; text-align: right; }
.tb-line__row { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.tb-line__row .quantity .qty { min-height: 42px; width: 40px; }
.tb-line__row .tb-qty__btn { min-height: 42px; width: 38px; }
.tb-line__remove { font-size: 0.8125rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.tb-line__remove:hover { color: var(--accent); }
dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 4px 0 0; font-size: 0.8125rem; color: var(--muted); }
dl.variation dt { font-weight: 500; }
dl.variation dd { margin: 0; }
dl.variation p { margin: 0; }
@media (max-width: 520px) { .tb-line { grid-template-columns: 78px minmax(0, 1fr); } .tb-line__total { grid-column: 2; text-align: left; } }

.tb-cart__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 20px 0; }
.coupon { display: flex; gap: 8px; flex: 1 1 300px; }
.coupon .input-text { min-height: 40px; }
.tb-update { margin-left: auto; }
.tb-cart__side .cart_totals { padding: clamp(20px, 3vw, 28px); background: var(--surface); border-radius: var(--radius-lg); }
.cart_totals h2 { font-size: 1.25rem; margin-bottom: 14px; }
.wc-proceed-to-checkout { margin-top: 18px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: 1rem; }
.cart-empty.woocommerce-info { justify-content: center; text-align: center; }
.return-to-shop { text-align: center; }

/* Tablas de totales (carrito y resumen del checkout) */
.shop_table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.shop_table th, .shop_table td { padding: 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.shop_table td { text-align: right; }
.shop_table tr:last-child th, .shop_table tr:last-child td { border-bottom: 0; }
.shop_table .order-total th, .shop_table .order-total td { font-size: 1.125rem; font-weight: 700; padding-top: 16px; }
.shop_table .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; text-align: right; }
.shop_table .woocommerce-shipping-methods label { display: inline; font-weight: 400; }
.shop_table .includes_tax { font-size: 0.8125rem; color: var(--muted); }

/* ---------- Checkout ---------- */
.tb-checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 959px) { .tb-checkout { grid-template-columns: minmax(0, 1fr); } }
.tb-checkout__side {
	padding: clamp(20px, 3vw, 32px);
	background: var(--surface); border-radius: var(--radius-lg);
}
@media (min-width: 960px) { .tb-checkout__side { position: sticky; top: calc(var(--header-h) + 24px); } }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-size: 1.25rem; margin-bottom: 18px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px;
}
.woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-shipping-fields__field-wrapper .form-row { grid-column: 1 / -1; float: none; width: auto; }
.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-first, .woocommerce-shipping-fields__field-wrapper .form-row-last { grid-column: span 1; }
@media (max-width: 520px) {
	.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 1 / -1; }
}
.tb-checkout__heading { font-size: 1.25rem; margin-bottom: 16px; }
#order_review .shop_table { margin-bottom: 18px; }
#order_review .product-name { text-align: left; font-weight: 500; }
#order_review .product-quantity { font-weight: 400; color: var(--muted); }
#order_review .cart_item td.product-total { white-space: nowrap; padding-left: 12px; }

/* Cupón */
.woocommerce-form-coupon-toggle { margin-bottom: 8px; }
.woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 16px; border-left-color: var(--line-strong); background: var(--bg); }
.checkout_coupon { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.checkout_coupon p { margin: 0; }
.checkout_coupon .form-row-first { flex: 1 1 200px; }

/* Pago */
#payment { margin-top: 4px; }
#payment .payment_methods { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
#payment .payment_methods > li { padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); transition: border-color 0.2s; }
#payment .payment_methods > li:has(input:checked) { border-color: var(--ink); }
#payment .payment_methods label { display: inline; font-weight: 600; font-size: 0.9375rem; cursor: pointer; }
#payment .payment_methods img { display: inline-block; max-height: 22px; width: auto; margin-left: 8px; vertical-align: middle; }
#payment .payment_box { margin-top: 10px; padding: 12px 14px; border-radius: calc(var(--radius) - 2px); background: var(--surface); color: var(--muted); font-size: 0.875rem; }
#payment .payment_box p:last-child { margin: 0; }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; font-size: 0.8125rem; color: var(--muted); }
.woocommerce-privacy-policy-text p { font-size: 0.8125rem; color: var(--muted); }
#place_order { width: 100%; min-height: 58px; font-size: 1.0625rem; }
.tb-cod-note { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 0.875rem; color: var(--muted); }
.tb-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.tb-trust li { display: inline-flex; align-items: center; gap: 6px; }
.blockUI.blockOverlay { background: var(--surface) !important; opacity: 0.6 !important; }

/* ---------- Pedido recibido ---------- */
.woocommerce-order-received .page-head { display: none; }
.woocommerce-order-received .page-shell { padding-top: clamp(24px, 4vw, 56px); }
.tb-thanks { max-width: 980px; margin-inline: auto; display: grid; gap: clamp(20px, 3vw, 32px); }
.tb-thanks__hero { display: grid; justify-items: center; gap: 12px; padding: clamp(28px, 5vw, 52px) clamp(18px, 4vw, 40px); text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, color-mix(in srgb, #168a4a 7%, var(--bg)), var(--bg) 70%); }
.tb-thanks__check { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #168a4a; color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, #168a4a 14%, transparent); margin-bottom: 8px; }
.tb-thanks__check .tb-icon { stroke-width: 2.6; }
.tb-thanks .tb-thanks__title { margin: 0; font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tb-thanks__lead { margin: 0; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--muted); max-width: 48ch; }
.tb-thanks__lead strong { color: var(--ink); }
.tb-thanks__pay { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 12px 18px; border-radius: 999px; background: var(--surface); font-size: 0.9375rem; text-align: left; }
.tb-thanks__pay .tb-icon { color: #168a4a; flex: none; }
.tb-thanks__wa { display: grid; justify-items: center; gap: 10px; margin-top: 14px; }
.tb-thanks__wa .tb-btn { min-width: min(100%, 320px); font-weight: 800; box-shadow: 0 8px 20px color-mix(in srgb, var(--wa) 35%, transparent); }
.tb-thanks__wa p { margin: 0; font-size: 0.875rem; color: var(--muted); max-width: 44ch; }
.tb-thanks .tb-thanks__h { margin: 0 0 16px; font-size: 1.125rem; letter-spacing: -0.01em; }
.tb-thanks__next { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--surface); }
.tb-thanks__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 24px; list-style: none; margin: 0; padding: 0; }
.tb-thanks__steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.tb-thanks__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 0.9375rem var(--font-head); }
.tb-thanks__steps strong { display: block; margin-bottom: 2px; }
.tb-thanks__steps div span { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.tb-thanks__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.tb-card { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.tb-thanks__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tb-thanks__items li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.tb-thanks__thumb { width: 64px; height: 64px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tb-thanks__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tb-thanks__iname strong { display: block; font-size: 0.9375rem; line-height: 1.35; }
.tb-thanks__iname span { display: block; font-size: 0.8125rem; color: var(--muted); }
.tb-thanks__iname .wc-item-meta { margin: 4px 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--muted); }
.tb-thanks__iname .wc-item-meta p { display: inline; margin: 0; }
.tb-thanks__iprice { font-weight: 700; white-space: nowrap; }
.tb-thanks__totals { display: grid; gap: 8px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.tb-thanks__totals > div { display: flex; justify-content: space-between; gap: 16px; }
.tb-thanks__totals dt { color: var(--muted); }
.tb-thanks__totals dd { margin: 0; text-align: right; }
.tb-thanks__totals .is-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.1875rem; font-weight: 800; }
.tb-thanks__totals .is-total dt { color: var(--ink); }
.tb-thanks__method { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); font-size: 0.875rem; font-weight: 600; }
.tb-thanks__method .tb-icon { color: #168a4a; flex: none; }
.tb-thanks__data { display: grid; gap: 14px; margin: 0; }
.tb-thanks__data div { display: grid; gap: 2px; }
.tb-thanks__data dt { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tb-thanks__data dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.tb-thanks__hint { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.tb-thanks__meta { margin: 0; text-align: center; font-size: 0.8125rem; color: var(--muted); }
.tb-thanks__back { margin: 0; text-align: center; }
@media (max-width: 799px) {
	.tb-thanks__grid { grid-template-columns: minmax(0, 1fr); }
	.tb-thanks__pay { border-radius: var(--radius); }
	.tb-thanks__back .tb-btn { width: 100%; }
}

/* ---------- Cuenta ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 500; transition: background-color 0.2s; }
.woocommerce-MyAccount-navigation a:hover { background: var(--surface); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: var(--bg); }
.woocommerce-MyAccount-content > * + * { margin-top: 1em; }
.woocommerce-orders-table, .woocommerce-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.woocommerce-orders-table th, .woocommerce-orders-table td, .woocommerce-table th, .woocommerce-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.u-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.u-columns .u-column1, .u-columns .u-column2 { float: none; width: auto; }
.woocommerce-form-login, .woocommerce-form-register { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (max-width: 859px) {
	.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-MyAccount-navigation ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; border: 1px solid var(--line); }
	.u-columns { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Carrito lateral ---------- */
.widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tb-drawer__body--cart.is-loading { opacity: 0.55; pointer-events: none; }
.tb-freeship { padding: 14px 20px; background: var(--surface); font-size: 0.875rem; }
.tb-freeship p { margin: 0 0 8px; font-weight: 500; }
.tb-freeship__bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tb-freeship__bar span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.4s var(--ease); }
.tb-freeship.is-done .tb-freeship__bar span { background: var(--ink); }

.tb-mini { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 0 20px; }
.tb-mini__item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 18px 28px 18px 0; border-bottom: 1px solid var(--line); }
.tb-mini__thumb { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.tb-mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tb-mini__name { margin: 0 0 2px; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.tb-mini__name a { text-decoration: none; }
.tb-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tb-mini__price { font-weight: 600; font-size: 0.9375rem; }
.tb-mini__remove { position: absolute; top: 14px; right: -6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.tb-mini__remove:hover { background: var(--surface); color: var(--ink); }
.tb-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.tb-stepper button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; cursor: pointer; transition: background-color 0.15s; }
.tb-stepper button:hover { background: var(--surface); }
.tb-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.tb-stepper__n { min-width: 26px; text-align: center; font-weight: 600; font-size: 0.9375rem; }
.tb-mini__foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0 0 14px; font-size: 1.0625rem; font-weight: 700; }
.woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; min-height: 52px; background: transparent; color: var(--ink); border-color: var(--line-strong); }
.woocommerce-mini-cart__buttons .button:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.woocommerce-mini-cart__buttons .button.checkout { order: -1; background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.woocommerce-mini-cart__buttons .button.checkout:hover { background: color-mix(in srgb, var(--btn) 84%, var(--bg)); }
.tb-mini__empty { display: grid; justify-items: center; align-content: center; gap: 12px; flex: 1; padding: 40px 24px; text-align: center; color: var(--muted); }
.tb-mini__empty p { margin: 0; font-size: 1.0625rem; color: var(--ink); }

/* ---------- Filtros (widgets) ---------- */
.tb-filter { padding: 20px 0; border-bottom: 1px solid var(--line); }
.tb-filter__title { font-size: 1rem; margin-bottom: 12px; }
.tb-filter ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-filter a { text-decoration: none; }
.tb-filter a:hover { text-decoration: underline; text-underline-offset: 3px; }
.price_slider_wrapper .price_slider { height: 4px; margin: 12px 6px 20px; background: var(--line); border-radius: 2px; position: relative; }
.price_slider .ui-slider-range { position: absolute; height: 100%; background: var(--ink); }
.price_slider .ui-slider-handle { position: absolute; top: -7px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); cursor: grab; }
.price_slider_amount { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.price_slider_amount .button { min-height: 38px; font-size: 0.8125rem; }

/* Tienda de un solo país: el campo País no aporta nada (el valor se sigue enviando). */
#billing_country_field:has(.country_to_state--single),
#shipping_country_field:has(.country_to_state--single) { display: none !important; } /* WooCommerce fija display:block en línea */

/* Móvil: miniaturas de la galería en una sola fila deslizable */
@media (max-width: 959px) {
	.woocommerce-product-gallery .flex-control-thumbs {
		display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
		margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none;
	}
	.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
	.woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 64px; scroll-snap-align: start; }
}

/* Títulos de bloques en gracias / cuenta */
.woocommerce-order h2, .woocommerce-column__title, .woocommerce-order-details__title, .woocommerce-customer-details h2 { font-size: 1.375rem; margin: 28px 0 14px; }
.woocommerce-order .woocommerce-customer-details address { font-style: normal; line-height: 1.6; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }

/* Reseñas dentro de una landing ([tb_resenas]) */
.tb-rev--lp { max-width: 720px; margin-inline: auto; text-align: left; }
.tb-rev__avg--row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin-bottom: 24px; }
.tb-rev__avg--row strong { font-size: 2.25rem; }
.tb-rev--lp .tb-rev__list { margin-bottom: 12px; }
.tb-rev__cta { margin: 0; text-align: center; font-size: 0.9375rem; }
.tb-rev__cta a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Paginación de reseñas: de a 5 */
.tb-rev__pager, .tb-rev .woocommerce-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 20px; }
/* Solo los enlaces y la página actual son botones; la lista conserva su fila flex. */
.tb-rev__pager a, .tb-rev__pager span, .tb-rev .woocommerce-pagination a.page-numbers, .tb-rev .woocommerce-pagination span.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.9375rem; font-weight: 600; text-decoration: none; color: var(--ink); background: var(--bg); }
.tb-rev__pager span[aria-current], .tb-rev .woocommerce-pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tb-rev__pager a:hover, .tb-rev .woocommerce-pagination a.page-numbers:hover { border-color: var(--ink); }
.tb-rev .woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
