/* =========================================================================
   TIENDA DE TERRAN — tienda, categorías y marcas, ficha de producto y carrito.
   Igual que el sitio anterior (tema «ozado»). La tarjeta de producto está en
   style.css porque también sale en la portada. Plantillas en woocommerce/ del
   hijo y ganchos en inc/tienda.php.
   El prefijo «html body» gana a woocommerce.css sin !important.
   ========================================================================= */

/* ----- Migas (tienda y ficha) ----- */
html body .tr-tienda .woocommerce-breadcrumb,
html body .tr-ficha .woocommerce-breadcrumb {
	margin: 0;
	padding: 0;
	color: #6b6b6b;
	font-family: 'Unbounded', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	text-transform: uppercase;
}
html body .tr-tienda .woocommerce-breadcrumb a,
html body .tr-ficha .woocommerce-breadcrumb a {
	color: #6b6b6b;
	text-decoration: none;
}
html body .tr-tienda .woocommerce-breadcrumb a:hover,
html body .tr-ficha .woocommerce-breadcrumb a:hover { color: #000; }

/* =========================================================================
   TIENDA, CATEGORÍAS Y MARCAS
   ========================================================================= */
.tr-tienda__contenedor {
	box-sizing: border-box;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 34px 16px 64px;
}
html body .tr-tienda .woocommerce-breadcrumb { margin-bottom: 32px; }

.tr-tienda__grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

/* ----- Filtros (widgets «Tienda WooCommerce» en Apariencia → Widgets) ----- */
.tr-tienda__filtros-cabecera { display: none; }
.tr-tienda__filtros .widget {
	margin: 0 0 32px;
	padding: 16px 16px 12px;
	border: 1px solid #e7e7e7;
	border-radius: 8px;
	background: #fff;
}
html body .tr-tienda__filtros .widget-title {
	margin: 0 0 12px;
	padding: 0 0 8px;
	border-bottom: 2px solid var(--oz-brand-accent, #e74520);
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
}
.tr-tienda__filtros .widget ul {
	max-height: 232px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	scrollbar-width: thin;
}
.tr-tienda__filtros .widget li {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin: 0;
	padding: 0;
	color: #000;
	font-size: 13px;
	line-height: 1.3;
}
.tr-tienda__filtros .widget li a {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	min-height: 24px;
	padding: 3px 0;
	color: #555;
	font-family: 'Unbounded', sans-serif;
	font-size: 13px;
	font-weight: 300;
	text-decoration: none;
}
/* Casilla dibujada (como el sitio anterior): marcada = cuadro negro. */
.tr-tienda__filtros .widget li a::before {
	content: "";
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	border: 1px solid #756e65;
	border-radius: 2px;
	background: #fff;
}
.tr-tienda__filtros .widget li.chosen a::before {
	background: #000;
	box-shadow: inset 0 0 0 3px #fff;
}
.tr-tienda__filtros .widget li a:hover { color: #000; }
.tr-tienda__filtros .widget li.chosen a { color: #000; font-weight: 500; }
.tr-tienda__filtros .widget .count { padding-top: 3px; color: #000; font-size: 12px; }

.tr-tienda__borrar {
	display: block;
	padding: 6px 12px;
	border-radius: 3px;
	background: var(--oz-brand-accent, #e74520);
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}
.tr-tienda__borrar:hover { background: #000; color: #fff; }

/* ----- Cabecera del listado: título, «Mostrando…» y orden ----- */
.tr-tienda__cabecera {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin: 0 0 24px;
}
html body .tr-tienda__titulo {
	flex: 1 1 380px;
	margin: 0;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 31px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}
.tr-tienda__barra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 12px 26px;
}
html body .tr-tienda__barra .woocommerce-result-count {
	float: none;
	margin: 0;
	color: #6b6b6b;
	font-size: 14px;
}
html body .tr-tienda__barra .woocommerce-ordering { float: none; margin: 0; }
html body .tr-tienda__barra .woocommerce-ordering select.orderby {
	min-height: 48px;
	padding: 12px 52px 12px 20px;
	border: 1px solid #d6d6d6;
	border-radius: 4px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E74520' d='M6 8 0 1.4 1.4 0 6 4.6 10.6 0 12 1.4z'/%3E%3C/svg%3E") no-repeat right 18px center;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 15px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}
html body .tr-tienda__barra .woocommerce-ordering select.orderby:hover,
html body .tr-tienda__barra .woocommerce-ordering select.orderby:focus { border-color: var(--oz-brand-accent, #e74520); }
.tr-tienda__btn-filtros { display: none; }

/* Texto corto de la categoría, bajo el título. */
.tr-tienda__intro {
	margin: -8px 0 24px;
	color: #222;
	font-size: 15px;
	line-height: 1.55;
}
.tr-tienda__intro p { margin: 0 0 8px; }

/* ----- Grilla de productos ----- */
html body .tr-tienda ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
}
html body .tr-tienda ul.products::before,
html body .tr-tienda ul.products::after { content: none; }

/* ----- Paginación ----- */
html body .tr-tienda nav.woocommerce-pagination { margin: 48px 0 0; text-align: center; }
html body .tr-tienda nav.woocommerce-pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin: 0;
	border: 1px solid #ddd;
	border-right: 0;
}
html body .tr-tienda nav.woocommerce-pagination ul li { float: none; border-right: 1px solid #ddd; }
html body .tr-tienda nav.woocommerce-pagination ul li a,
html body .tr-tienda nav.woocommerce-pagination ul li span {
	min-width: 44px;
	padding: 13px 10px;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}
html body .tr-tienda nav.woocommerce-pagination ul li span.current {
	background: var(--oz-brand-accent, #e74520);
	color: #000;
}
html body .tr-tienda nav.woocommerce-pagination ul li a:hover,
html body .tr-tienda nav.woocommerce-pagination ul li a:focus { background: #f2f2f2; color: #000; }

/* ----- Texto largo de la categoría (al final) ----- */
.tr-tienda .tr-term-descripcion { margin-top: 56px; }

/* ----- Tablet y celular: filtros en panel lateral ----- */
@media (max-width: 1199.98px) {
	.tr-tienda__grid { grid-template-columns: minmax(0, 1fr); }
	.tr-tienda__filtros {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		z-index: 100000;
		box-sizing: border-box;
		width: min(320px, 88vw);
		padding: 0 16px 24px;
		overflow-y: auto;
		background: #fff;
		box-shadow: 0 0 40px rgba(0, 0, 0, .25);
		transform: translateX(-105%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.tr-tienda__filtros.is-open {
		transform: none;
		visibility: visible;
		transition: transform .25s ease;
	}
	.tr-tienda__filtros-cabecera {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -16px 16px;
		padding: 12px 8px 12px 16px;
		background: #000;
	}
	.tr-tienda__filtros-titulo {
		margin: 0;
		color: #fff;
		font-family: 'Unbounded', sans-serif;
		font-size: 15px;
		font-weight: 500;
	}
	.tr-tienda__filtros-cerrar {
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		color: #fff;
		font-size: 30px;
		line-height: 1;
		cursor: pointer;
	}
	.tr-tienda__filtros .widget { margin-bottom: 20px; }
	.tr-tienda__filtros .widget ul { max-height: none; }
	.tr-tienda__fondo {
		position: fixed;
		inset: 0;
		z-index: 99999;
		background: rgba(0, 0, 0, .5);
	}
	.tr-tienda__fondo[hidden] { display: none; }
	html.tr-filtros-abiertos { overflow: hidden; }

	.tr-tienda__btn-filtros {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 48px;
		padding: 10px 18px;
		border: 1px solid var(--oz-brand-accent, #e74520);
		border-radius: 4px;
		background: #fff;
		color: #000;
		font-family: 'Unbounded', sans-serif;
		font-size: 14px;
		cursor: pointer;
	}
	.tr-tienda__btn-filtros::before {
		content: "";
		width: 18px;
		height: 14px;
		background:
			linear-gradient(#e74520, #e74520) 0 0 / 18px 2px no-repeat,
			linear-gradient(#e74520, #e74520) 3px 6px / 12px 2px no-repeat,
			linear-gradient(#e74520, #e74520) 6px 12px / 6px 2px no-repeat;
	}
	.tr-tienda__btn-filtros:hover { background: var(--oz-brand-accent, #e74520); }
	.tr-tienda__btn-filtros:hover::before { filter: brightness(0); }
	.tr-tienda__barra { justify-content: flex-start; }
	html body .tr-tienda ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
	.tr-tienda__contenedor { padding-top: 24px; }
	html body .tr-tienda .woocommerce-breadcrumb { margin-bottom: 20px; font-size: 12px; }
	html body .tr-tienda__titulo { flex-basis: 100%; font-size: 23px; }
	.tr-tienda__barra { width: 100%; justify-content: space-between; gap: 12px; }
	html body .tr-tienda__barra .woocommerce-result-count { order: 3; width: 100%; font-size: 13px; }
	html body .tr-tienda__barra .woocommerce-ordering select.orderby { padding-left: 14px; font-size: 14px; }
	html body .tr-tienda ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.tr-tienda__intro { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.tr-tienda__filtros, .tr-tienda__filtros.is-open { transition: none; }
}

/* =========================================================================
   FICHA DE PRODUCTO
   ========================================================================= */
html body div.product.tr-ficha {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 515px);
	align-items: stretch;
	margin: 0;
}
.tr-ficha__izq {
	box-sizing: border-box;
	min-width: 0;
	padding: 32px 16px 80px;
}
.tr-ficha__der {
	box-sizing: border-box;
	min-width: 0;
	background: #eee;
	border-left: 1px solid #e3e3e3;
}
html body .tr-ficha .woocommerce-breadcrumb { margin-bottom: 40px; }

/* ----- Fotos: dos por fila, a tamaño completo ----- */
html body .woocommerce div.product.tr-ficha div.images.tr-galeria,
html body div.product.tr-ficha div.images.tr-galeria {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	float: none;
	width: auto;
	margin: 0 0 48px;
}
html body div.product.tr-ficha div.images.tr-galeria--una { grid-template-columns: minmax(0, 1fr); }
html body div.product.tr-ficha div.images.tr-galeria--una .tr-galeria__item { max-width: 620px; margin: 0 auto; }
html body div.product.tr-ficha div.images.tr-galeria .tr-galeria__item {
	display: block;
	width: auto;
	margin: 0;
	overflow: hidden;
}
html body div.product.tr-ficha div.images.tr-galeria img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	box-shadow: none;
	transition: transform .15s ease-out;
}
@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
	.tr-galeria__item { cursor: zoom-in; }
	.tr-galeria__item:hover img { transform: scale(1.5); }
}
html body div.product.tr-ficha div.images.tr-galeria span.onsale,
html body div.product.tr-ficha span.onsale {
	top: 12px;
	left: 12px;
	right: auto;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	min-width: 0;
	height: 64px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--oz-brand-accent, #e74520);
	color: #000;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

/* ----- Acordeones «Descripción» e «Información adicional» ----- */
.tr-acordeon { margin: 0 0 48px; border-bottom: 1px solid #ccc; }
.tr-acordeon__item { border-top: 1px solid #ccc; }
.tr-acordeon__titulo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	padding: 18px 48px 18px 16px;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
	list-style: none;
	cursor: pointer;
}
.tr-acordeon__titulo::-webkit-details-marker { display: none; }
/* Iconos + y − (dos trazos; el vertical desaparece al abrir). */
.tr-acordeon__titulo::before,
.tr-acordeon__titulo::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 16px;
	height: 2px;
	margin-top: -1px;
	background: #000;
	transition: transform .2s ease;
}
.tr-acordeon__titulo::after { transform: rotate(90deg); }
.tr-acordeon__item[open] > .tr-acordeon__titulo::after { transform: rotate(0deg); }
.tr-acordeon__titulo:hover { color: var(--oz-brand-accent, #e74520); }
.tr-acordeon__titulo:focus-visible { outline: 2px solid #000; outline-offset: -2px; }
.tr-acordeon__contenido {
	padding: 0 16px 24px;
	color: #222;
	font-size: 15px;
	line-height: 1.6;
}
.tr-acordeon__contenido > h2:first-child { display: none; }
/* Las tablas de la descripción traen medidas fijas (width="662", height:441px). */
html body .tr-acordeon__contenido table {
	width: 100% !important;
	height: auto !important;
	margin: 0 0 20px;
	border-collapse: collapse;
}
html body .tr-acordeon__contenido table td,
html body .tr-acordeon__contenido table th {
	width: auto !important;
	padding: 8px 12px;
	border: 1px solid #e3e3e3;
	text-align: left;
	vertical-align: top;
}
html body .tr-acordeon__contenido table.shop_attributes th {
	width: 30% !important;
	font-weight: 600;
}
html body .tr-acordeon__contenido table.shop_attributes td p { margin: 0; padding: 0; }
html body .tr-acordeon__contenido table.shop_attributes a { color: #000; }

/* ----- «También te recomendamos…» y «Productos relacionados» ----- */
html body .tr-ficha section.up-sells,
html body .tr-ficha section.related { margin: 0 0 56px; }
html body .tr-ficha section.up-sells > h2,
html body .tr-ficha section.related > h2 {
	margin: 0 0 24px;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 36px;
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}
html body .tr-ficha section.up-sells > h2 { font-size: 26px; }
html body .tr-ficha ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
}
html body .tr-ficha ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .tr-ficha ul.products::before,
html body .tr-ficha ul.products::after { content: none; }

/* ----- Resumen (derecha, fijo) ----- */
html body .woocommerce div.product.tr-ficha div.summary,
html body div.product.tr-ficha div.summary {
	position: sticky;
	top: 0;
	float: none;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 32px;
	color: #000;
}
html body div.product.tr-ficha .product_title {
	margin: 0 0 12px;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.25;
}
html body div.product.tr-ficha div.summary p.price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 16px;
	margin: 0 0 18px;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
}
html body div.product.tr-ficha div.summary p.price del {
	color: #6b6b6b;
	font-size: 24px;
	font-weight: 300;
	opacity: 1;
}
html body div.product.tr-ficha div.summary p.price ins { color: #000; text-decoration: none; }
html body div.product.tr-ficha .woocommerce-product-details__short-description {
	margin: 0 0 24px;
	padding: 20px 0;
	border-bottom: 1px solid #ddd;
	font-size: 14px;
	line-height: 1.5;
}
html body div.product.tr-ficha .woocommerce-product-details__short-description ul {
	margin: 0;
	padding: 0 0 0 18px;
}
html body div.product.tr-ficha .woocommerce-product-details__short-description li { margin: 0; }
html body div.product.tr-ficha .woocommerce-product-details__short-description p:last-child { margin-bottom: 0; }

/* «Consultar» por WhatsApp (verde). */
.tr-ficha__consultar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0 0 16px;
	padding: 13px 15px;
	border-radius: 20px;
	background: #0bd900;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}
.tr-ficha__consultar svg { width: 17px; height: 17px; fill: currentColor; }
.tr-ficha__consultar:hover { background: #000; color: #fff; }

/* Cantidad + «Añadir al carrito». */
html body div.product.tr-ficha form.cart {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	margin: 0 0 16px;
}
html body div.product.tr-ficha form.cart::before,
html body div.product.tr-ficha form.cart::after { content: none; }
html body div.product.tr-ficha form.cart.variations_form { display: block; }
html body div.product.tr-ficha form.cart .woocommerce-variation-add-to-cart {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
}
html body div.product.tr-ficha form.cart div.quantity { float: none; margin: 0; }
html body div.product.tr-ficha form.cart .oz-qty-stepper {
	display: flex;
	align-items: center;
	gap: 4px;
}
html body div.product.tr-ficha form.cart .oz-qty-stepper__btn {
	width: 40px;
	height: 44px;
	padding: 0;
	border: 1px solid #b4b4b4;
	border-radius: 10px;
	background: #fff;
	color: #000;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
html body div.product.tr-ficha form.cart .oz-qty-stepper__btn:hover { border-color: var(--oz-brand-accent, #e74520); background: var(--oz-brand-accent, #e74520); }
html body div.product.tr-ficha form.cart input.qty {
	width: 48px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	font-size: 16px;
	text-align: center;
	-moz-appearance: textfield;
}
html body div.product.tr-ficha form.cart input.qty::-webkit-outer-spin-button,
html body div.product.tr-ficha form.cart input.qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
html body div.product.tr-ficha form.cart .single_add_to_cart_button,
html body div.product.tr-ficha form.cart .single_add_to_cart_button.alt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 12px 10px;
	border: 0;
	border-radius: 20px;
	background: var(--oz-brand-accent, #e74520);
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	opacity: 1;
}
html body div.product.tr-ficha form.cart .single_add_to_cart_button::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM1 2v2h2l3.6 7.6-1.4 2.4A2 2 0 0 0 7 17h12v-2H7.4l1.1-2h7.5a2 2 0 0 0 1.7-1l3.6-6.5A1 1 0 0 0 20.4 4H5.2l-.9-2H1Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM1 2v2h2l3.6 7.6-1.4 2.4A2 2 0 0 0 7 17h12v-2H7.4l1.1-2h7.5a2 2 0 0 0 1.7-1l3.6-6.5A1 1 0 0 0 20.4 4H5.2l-.9-2H1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body div.product.tr-ficha form.cart .single_add_to_cart_button:hover { background: #000; color: #fff; }
/* Deshabilitado (falta elegir la variación): gris con texto oscuro. Con el naranja
   rebajado por opacity el texto quedaba en 2,2:1. */
html body div.product.tr-ficha form.cart .single_add_to_cart_button.disabled,
html body div.product.tr-ficha form.cart .single_add_to_cart_button:disabled {
	background: #e7e7e7;
	color: #595959;
	opacity: 1;
	cursor: not-allowed;
}
html body div.product.tr-ficha form.cart table.variations { margin: 0 0 16px; }
html body div.product.tr-ficha form.cart table.variations th,
html body div.product.tr-ficha form.cart table.variations td { display: block; padding: 0 0 6px; text-align: left; }
html body div.product.tr-ficha form.cart table.variations select {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid #b4b4b4;
	border-radius: 8px;
	background: #fff;
}
html body div.product.tr-ficha .reset_variations { color: #000; }
html body div.product.tr-ficha .added_to_cart { display: none; }

/* Certificado y ficha técnica. */
.tr-ficha__docs {
	display: flex;
	gap: 16px;
	margin: 0 0 24px;
	padding: 0 0 24px;
	border-bottom: 1px solid #ddd;
}
.tr-ficha__doc {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 13px 10px;
	border: 1px solid #b4b4b4;
	border-radius: 20px;
	color: #000;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}
.tr-ficha__doc::before {
	content: "";
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background: no-repeat center / contain;
}
.tr-ficha__doc--pdf::before { background-image: url("/wp-content/uploads/2025/10/ft.webp"); }
.tr-ficha__doc--certificado::before { background-image: url("/wp-content/uploads/2025/10/certificado.webp"); }
.tr-ficha__doc:hover { border-color: #000; background: #fff; }

/* Categoría, etiquetas y marca. */
html body div.product.tr-ficha .product_meta {
	display: grid;
	gap: 8px;
	color: #000;
	font-size: 14px;
	line-height: 1.5;
}
html body div.product.tr-ficha .product_meta > span { display: block; font-weight: 600; }
html body div.product.tr-ficha .product_meta a { color: #000; font-weight: 400; }
html body div.product.tr-ficha .product_meta a:hover { color: var(--oz-brand-accent, #e74520); }

@media (max-width: 1199.98px) {
	html body div.product.tr-ficha { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
	html body div.product.tr-ficha .product_title { font-size: 25px; }
	html body .tr-ficha section.related > h2 { font-size: 25px; }
	html body .tr-ficha section.up-sells > h2 { font-size: 22px; }
	html body .tr-ficha ul.products,
	html body .tr-ficha ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html body div.product.tr-ficha div.summary { padding: 24px; }
}
@media (max-width: 991.98px) {
	html body div.product.tr-ficha { display: flex; flex-direction: column; }
	.tr-ficha__izq { display: contents; }
	html body .tr-ficha .woocommerce-breadcrumb { order: 1; margin: 0; padding: 24px 16px 20px; }
	html body div.product.tr-ficha div.images.tr-galeria { order: 2; margin: 0 16px 8px; }
	.tr-ficha__der { order: 3; border: 0; background: none; }
	html body div.product.tr-ficha div.summary { position: static; padding: 16px 16px 32px; }
	.tr-acordeon { order: 4; margin: 0 16px 40px; }
	html body .tr-ficha section.up-sells { order: 5; margin: 0 16px 40px; }
	html body .tr-ficha section.related { order: 6; margin: 0 16px 56px; }
	html body .tr-ficha ul.products,
	html body .tr-ficha ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 575.98px) {
	html body div.product.tr-ficha div.images.tr-galeria { gap: 8px; }
	/* La primera foto a todo el ancho; las demás, dos por fila. */
	html body div.product.tr-ficha div.images.tr-galeria .tr-galeria__item:first-of-type { grid-column: 1 / -1; }
	html body div.product.tr-ficha .product_title { font-size: 22px; }
	html body div.product.tr-ficha div.summary p.price { font-size: 24px; }
	html body div.product.tr-ficha div.summary p.price del { font-size: 20px; }
	html body .tr-ficha section.related > h2 { font-size: 22px; }
	html body .tr-ficha section.up-sells > h2 { font-size: 19px; }
	.tr-ficha__docs { flex-direction: column; gap: 10px; }
	.tr-acordeon__titulo { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	html body div.product.tr-ficha div.images.tr-galeria img,
	.tr-acordeon__titulo::before,
	.tr-acordeon__titulo::after { transition: none; }
}

/* =========================================================================
   CARRITO (se cierra por WhatsApp, sin «Finalizar compra»)
   ========================================================================= */
/* Como en el sitio anterior: solo producto y cantidad (sin precio ni subtotal). */
html body.woocommerce-cart table.shop_table .product-price,
html body.woocommerce-cart table.shop_table .product-subtotal { display: none; }
html body.woocommerce-cart table.shop_table {
	border: 1px solid #e3e3e3;
	border-radius: 0;
}
html body.woocommerce-cart table.shop_table thead { background: #e3e3e3; }
html body.woocommerce-cart table.shop_table thead th {
	padding: 18px 20px;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 16px;
	font-weight: 500;
}
html body.woocommerce-cart table.shop_table td { padding: 14px 20px; }
html body.woocommerce-cart table.shop_table td.product-name a { color: #000; font-weight: 500; text-decoration: none; }
html body.woocommerce-cart table.shop_table td.product-name a:hover { color: var(--oz-brand-accent, #e74520); }
html body.woocommerce-cart table.shop_table img { width: 80px; }
html body.woocommerce-cart table.shop_table a.remove { color: #000 !important; }
html body.woocommerce-cart table.shop_table a.remove:hover { background: #000; color: #fff !important; }
html body.woocommerce-cart table.shop_table td.actions .button {
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 8px;
	background: #000;
	color: #fff;
}
html body.woocommerce-cart table.shop_table td.actions .button:disabled { opacity: .6; }
html body.woocommerce-cart table.shop_table td.actions .coupon .input-text { min-height: 44px; }
html body.woocommerce-cart .cart-collaterals { display: none; }

.tr-carrito__acciones {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin: 24px 0 64px;
}
.tr-carrito__wsp,
.tr-carrito__seguir {
	display: flex;
	flex: 0 1 378px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px;
	border-radius: 12px;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
}
.tr-carrito__wsp { background: var(--oz-brand-accent, #e74520); }
.tr-carrito__wsp svg { width: 22px; height: 22px; fill: currentColor; }
.tr-carrito__wsp:hover { background: #000; color: #fff; }
.tr-carrito__seguir { border: 1px solid #ddd; background: #fff; }
.tr-carrito__seguir:hover { border-color: #000; }
@media (max-width: 767.98px) {
	.tr-carrito__wsp, .tr-carrito__seguir { flex-basis: 100%; }
	html body.woocommerce-cart table.shop_table_responsive tr td { padding: 10px 14px; }
}

/* ----- Tallas y colores (swatches del tema padre; sustituyen a woo-variation-swatches) ----- */
html body div.product.tr-ficha .oz-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 4px;
}
html body div.product.tr-ficha .oz-swatch-btn {
	box-sizing: border-box;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #b4b4b4;
	border-radius: 8px;
	background: #fff;
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
html body div.product.tr-ficha .oz-swatch-btn:hover { border-color: #000; }
html body div.product.tr-ficha .oz-swatch-btn.is-selected {
	border-color: #000;
	background: #000;
	color: #fff;
}
html body div.product.tr-ficha .oz-swatch-btn.is-disabled {
	border-style: dashed;
	color: #6b6b6b;
	opacity: 1;
	text-decoration: line-through;
}
html body div.product.tr-ficha .oz-swatch-btn:focus-visible { outline: 2px solid var(--oz-brand-accent, #e74520); outline-offset: 2px; }
/* El desplegable de respaldo lo deja el tema padre fuera de pantalla, pero sigue
   disponible para teclado y lectores de pantalla: aquí no se toca. */
html body div.product.tr-ficha table.variations th.label label {
	color: #000;
	font-family: 'Unbounded', sans-serif;
	font-size: 14px;
	font-weight: 500;
}
