/* ============================================================
   YAGARO · Ficha de producto (single product) — diseño editorial
   Reestiliza el markup por defecto de WooCommerce/Bridge.
   ============================================================ */

/* ---------- Contención del body-grid (MISMO fix que el carrito) ----------
   El body global está en display:grid (regla legacy heredada). Sin acotar la
   columna a minmax(0,1fr), sus items tienen min-width:auto y cualquier elemento
   full-bleed (la galería a 100vw, el sangrado derecho del carrusel cross-sells)
   ESTIRA la columna del body más allá del viewport → se descuadran el centrado
   y el sangrado, y el cross-sells no se ve igual que en el carrito (que SÍ tiene
   este fix). minmax(0,1fr) rompe ese bloqueo y mantiene todo contenido. */
body.single-product {
	grid-template-columns: minmax(0, 1fr) !important;
}
/* Scope a `.content ...` para NO tocar el header de Bridge (que usa
   .container > .container_inner centrado); si no, sus iconos quedarían pegados
   a los bordes, igual que pasaba en el carrito. */
.single-product .content,
.single-product .content .content_inner,
.single-product .content .container,
.single-product .content .container_inner,
.single-product .content div.product,
.single-product .content .yagaro-cross-sells {
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* ---------- Layout general en 2 columnas ---------- */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	column-gap: 64px;
	row-gap: 56px;
	align-items: start;
	max-width: 1300px;
	margin: 0 auto !important;
	float: none !important;
}

/* La galería ocupa la izquierda; el resumen la derecha. */
.single-product div.product .woocommerce-product-gallery {
	grid-column: 1;
	width: 100% !important;
	max-width: 100%;
	margin: 0 !important;
	float: none !important;
	position: relative;
	overflow: hidden;   /* recorta el carrusel si flexslider deja los slides anchos */
}

.single-product div.product .summary,
.single-product div.product .summary.entry-summary {
	grid-column: 2;
	width: 100% !important;
	margin: 0 !important;
	padding: 4px 0 0 !important;
	float: none !important;
}

/* Bloques a ancho completo bajo las dos columnas */
.single-product div.product .yagaro-sp-accordions,
.single-product div.product .woocommerce-tabs,
.single-product div.product .yagaro-cross-sells,
.single-product div.product .up-sells,
.single-product div.product .related {
	grid-column: 1 / -1;
}

/* ---------- Galería: miniaturas verticales a la izquierda ---------- */
.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	border-radius: 14px;
	overflow: hidden;
	background: #f6f4f1;
}

.single-product .woocommerce-product-gallery img {
	border-radius: 14px;
}

/* Navegación del carrusel por PUNTOS (flexslider con controlNav => true, ver
   yagaro_gallery_dots en functions.php). Centrados bajo la imagen. */
.single-product .woocommerce-product-gallery .flex-control-paging {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}
.single-product .woocommerce-product-gallery .flex-control-paging li {
	margin: 0;
	width: auto;
	line-height: 0;
}
.single-product .woocommerce-product-gallery .flex-control-paging li a {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d2ccc1;
	text-indent: -9999px;   /* oculta el número del enlace */
	overflow: hidden;
	cursor: pointer;
	box-shadow: none;
	transition: background .2s ease, transform .2s ease;
}
.single-product .woocommerce-product-gallery .flex-control-paging li a.flex-active,
.single-product .woocommerce-product-gallery .flex-control-paging li a:hover {
	background: #1a1a1a;
	transform: scale(1.15);
}

/* Aviso de stock máximo bajo el selector de cantidad (lo inserta el JS).
   Se inserta como hermano de .quantity dentro de un contenedor flex
   (form.cart en simple, .woocommerce-variation-add-to-cart en variable),
   así que compartía fila con el stepper/botones y se salía por la derecha.
   flex-basis:100% lo fuerza a su PROPIA línea completa, debajo, sin recortes. */
.single-product .summary .yagaro-sp-qtymsg {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.3;
	color: #b54a3a;
	font-weight: 600;
}

/* ---------- Corazón de favoritos: overlay sobre la galería ----------
   Se imprime como hijo directo de .woocommerce-product-gallery desde la
   plantilla override product-image.php (sin JS).
   IMPORTANTE: comparte la clase .tinvwl_add_to_wishlist_button con el plugin
   TI Wishlist, que le inyecta su PROPIA posición (float/position) y lo mandaba
   medio fuera por la izquierda. Por eso forzamos posición con !important y
   añadimos un selector SIN hijo directo (>) por si TI lo envuelve en otro div. */
.single-product .woocommerce-product-gallery > .yagaro-sp-fav-btn,
.single-product .woocommerce-product-gallery a.yagaro-sp-fav-btn.tinvwl_add_to_wishlist_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	bottom: auto !important;
	float: none !important;
	margin: 0 !important;
	z-index: 6;
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e7e2da;
	color: #1a1a1a;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.single-product .woocommerce-product-gallery > .yagaro-sp-fav-btn:hover,
.single-product .woocommerce-product-gallery > .yagaro-sp-fav-btn.is-active {
	background: #1a1a1a;
	color: #fff;
}
.single-product .woocommerce-product-gallery > .yagaro-sp-fav-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
}

/* Badge de oferta sobre la imagen */
.single-product .woocommerce-product-gallery .onsale,
.single-product span.onsale {
	position: absolute;
	top: 16px;
	left: 16px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 999px;
	min-height: 0;
	padding: 6px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.2;
}

/* ---------- Columna de resumen ---------- */
.single-product .summary .yagaro-sp-eyebrow {
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #999;
	font-weight: 600;
	margin: 0 0 10px;
}

.single-product .summary .product_title,
.single-product .summary h1.product_title {
	font-size: 38px;
	line-height: 1.1;
	font-weight: 400;
	color: #1a1a1a;
	margin: 0 0 14px;
}

.single-product .summary .product_title em {
	font-style: italic;
}

/* Rating nativo WC (oculto — usamos el widget de Customer Reviews) */
.single-product .summary .woocommerce-product-rating { display: none !important; }

/* Widget de estrellas Yagaro ★★★★★ 4.9 · 128 valoraciones */
.single-product .summary .yagaro-sp-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
}
.single-product .summary .yagaro-sp-rating__stars {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}
/* Estrellas autosuficientes (relleno por porcentaje), tamaño ficha. */
.single-product .summary .yagaro-sp-rating .yg-stars {
	position: relative;
	display: inline-block;
	font-size: 17px;
	line-height: 1;
	letter-spacing: 2px;
}
.single-product .summary .yagaro-sp-rating .yg-stars__base { color: #d9d2c7; }
.single-product .summary .yagaro-sp-rating .yg-stars__fill {
	position: absolute;
	inset: 0;
	width: var(--yg-star-pct, 0%);
	overflow: hidden;
	white-space: nowrap;
	color: #1a1a1a;
}

/* Texto "4.9 · 128 valoraciones" */
.single-product .summary .yagaro-sp-rating__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
	color: #1a1a1a;
	font-size: 13px;
	line-height: 1;
}
.single-product .summary .yagaro-sp-rating__avg { font-weight: 600; }
.single-product .summary .yagaro-sp-rating__sep { color: #aaa; font-weight: 400; }
.single-product .summary .yagaro-sp-rating__count { color: #888; }
.single-product .summary .yagaro-sp-rating__link:hover .yagaro-sp-rating__count {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Estado vacío (producto sin reseñas): CTA "Sé el primero en valorar". */
.single-product .summary .yagaro-sp-rating--empty .yagaro-sp-rating__count {
	color: #1a1a1a;
	font-weight: 500;
}

/* Precio */
.single-product .summary .price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 6px !important;
	font-size: 26px !important;
	color: #1a1a1a !important;
	font-weight: 600;
}

.single-product .summary .price del {
	color: #b3b3b3 !important;
	font-weight: 400;
	opacity: 1;
	font-size: 18px;
}

.single-product .summary .price ins {
	text-decoration: none;
	font-weight: 600;
}

.single-product .summary .price .yagaro-sp-discount {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	color: #b8434e;
	background: #fbecee;
	border-radius: 999px;
	padding: 4px 10px;
	align-self: center;
}

/* Nota de impuestos / envío */
.single-product .summary .yagaro-sp-pricenote {
	font-size: 12.5px;
	color: #999;
	margin: 0 0 22px;
}

.single-product .summary .yagaro-sp-pricenote span {
	color: #1a1a1a;
	font-weight: 500;
}

/* Descripción corta */
.single-product .summary .woocommerce-product-details__short-description {
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	margin: 0 0 26px;
}

.single-product .summary .woocommerce-product-details__short-description p {
	margin: 0 0 12px;
}

/* ---------- Variaciones: COLOR (swatches) / TALLA (pills) ---------- */
.single-product .summary .variations {
	margin: 0 0 18px;
	border: 0;
}

.single-product .summary .variations,
.single-product .summary .variations tbody,
.single-product .summary .variations tr {
	display: block;
	width: 100%;
}

.single-product .summary .variations tr {
	margin: 0 0 16px;
}

.single-product .summary .variations th.label,
.single-product .summary .variations td.label {
	display: block;
	width: auto;
	padding: 0 0 8px;
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	color: #888;
}

.single-product .summary .variations td.value {
	display: block;
	width: 100%;
	padding: 0;
}

.single-product .summary .variations select {
	width: 100%;
	max-width: 320px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 12px 44px 12px 14px;   /* hueco a la derecha para la flecha */
	font-size: 14px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px;
}

.single-product .summary .reset_variations {
	font-size: 12px;
	color: #999;
}

/* Stock note — pill igual que los avisos de Mi cuenta */
.single-product .summary .stock,
.single-product .summary p.stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	margin: 0 0 16px;
	color: #fff;
}

/* Icono SVG izquierdo (vía mask) */
.single-product .summary .stock::before {
	content: "";
	display: inline-block;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	background-color: #fff;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 14px 14px;
	mask-size: 14px 14px;
}

.single-product .summary .stock.in-stock {
	background: #2e7d4f;
}
.single-product .summary .stock.in-stock::before {
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>');
}

.single-product .summary .stock.out-of-stock {
	background: #c1372f;
}
.single-product .summary .stock.out-of-stock::before {
	-webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>');
	mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>');
}

/* ---------- Cantidad + botones de compra ---------- */
/* Producto simple: el propio form.cart es la fila flex. */
.single-product .summary form.cart {
	margin: 0 0 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* Producto variable: el form apila (tabla de variaciones arriba) y la fila
   de compra (cantidad + botones + corazón) vive en .woocommerce-variation-add-to-cart. */
.single-product .summary form.variations_form.cart {
	display: block;
	margin: 0 0 22px;
}

.single-product .summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 16px 0 0;
}

.single-product .summary form.cart .quantity,
.single-product .summary form.cart .quantity.buttons_added {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 0;
	margin: 0 !important;
	padding: 0 !important;            /* quita el padding-top: 7px de Bridge */
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	min-height: 54px;
}

/* Botones - / + de Bridge dentro de la pastilla */
.single-product .summary form.cart .quantity .minus,
.single-product .summary form.cart .quantity .plus,
.single-product .summary form.cart .quantity input.minus,
.single-product .summary form.cart .quantity input.plus {
	width: 44px;
	min-height: 52px;
	height: 52px;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: #1a1a1a !important;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	box-shadow: none !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.single-product .summary form.cart .quantity .minus:hover,
.single-product .summary form.cart .quantity .plus:hover {
	background: #f4f2ef !important;
	color: #1a1a1a !important;
	opacity: 1;
}

.single-product .summary form.cart .quantity .minus::before,
.single-product .summary form.cart .quantity .plus::before {
	display: none !important;
	content: none !important;
}

.single-product .summary form.cart .quantity input.qty {
	width: 46px;
	min-height: 52px;
	height: 52px;
	border: 0 !important;
	border-left: 1px solid #eee !important;
	border-right: 1px solid #eee !important;
	border-radius: 0 !important;
	text-align: center;
	font-size: 15px;
	background: #fff !important;
	box-shadow: none !important;
	padding: 0 !important;
	-moz-appearance: textfield;
}

.single-product .summary form.cart .quantity input.qty::-webkit-outer-spin-button,
.single-product .summary form.cart .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* "Añadir a la bolsa" — pill negro */
.single-product .summary form.cart button.single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;                     /* puede encoger: no empuja al corazón a otra línea */
	white-space: nowrap;
	text-overflow: ellipsis;
	text-align: center !important;    /* texto centrado, sin hueco a la derecha */
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 54px !important;
	height: 54px !important;
	padding: 0 28px !important;
	background: #1a1a1a !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-size: 12.5px !important;
	font-weight: 700 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	transition: opacity .2s ease;
	position: relative;
	overflow: hidden;
}

.single-product .summary form.cart button.single_add_to_cart_button::before {
	display: none !important;
	content: none !important;
}

.single-product .summary form.cart button.single_add_to_cart_button:hover {
	opacity: .85;
	background: #1a1a1a !important;
	color: #fff !important;
}

/* "Comprar ahora" — pill outline a ancho completo */
.single-product .summary form.cart .yagaro-sp-buynow {
	flex: 1 1 100%;
	min-height: 52px;
	margin: 0;
	background: #fff;
	color: #1a1a1a;
	border: 1.5px solid #1a1a1a;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.single-product .summary form.cart .yagaro-sp-buynow:hover {
	background: #1a1a1a;
	color: #fff;
}

/* ---------- Corazón de favoritos junto a "Añadir a la bolsa" ---------- */
/* Botón SVG propio — sin depender del CSS del plugin TI, cero conflictos.
   Los !important evitan que el plugin TI sobreescriba width/height al
   compartir la clase tinvwl_add_to_wishlist_button para el AJAX. */
.single-product .summary .yagaro-sp-fav-btn {
	flex: 0 0 auto !important;
	align-self: center !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 54px !important;
	height: 54px !important;
	min-width: 54px !important;
	max-width: 54px !important;
	min-height: 54px !important;
	max-height: 54px !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	border: 1.5px solid #1a1a1a !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #1a1a1a !important;
	text-decoration: none !important;
	cursor: pointer !important;
	transition: background .2s ease, color .2s ease !important;
	flex-shrink: 0 !important;
	line-height: 1 !important;
}
.single-product .summary .yagaro-sp-fav-btn:hover {
	background: #1a1a1a !important;
	color: #fff !important;
}
.single-product .summary .yagaro-sp-fav-btn.is-active {
	background: #1a1a1a !important;
	color: #fff !important;
}
.single-product .summary .yagaro-sp-fav-btn svg {
	width: 20px !important;
	height: 20px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.6 !important;
	flex-shrink: 0 !important;
	display: block !important;
}

/* ---------- Badges de confianza ---------- */
.single-product .summary .yagaro-sp-trust {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 18px;
	margin: 8px 0 0;
	padding: 22px 0 0;
	border-top: 1px solid #eee;
	list-style: none;
}

.single-product .summary .yagaro-sp-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 13px;
	color: #444;
}

.single-product .summary .yagaro-sp-trust__ico {
	flex: 0 0 auto;
	display: inline-flex;
	color: #1a1a1a;
}

.single-product .summary .yagaro-sp-trust__ico svg {
	width: 20px;
	height: 20px;
}

/* ---------- Acordeones ---------- */
.single-product .yagaro-sp-accordions {
	max-width: 760px;
	margin: 8px 0 0;
}

/* Reseñas van dentro del resumen, pegadas a "Envío": sin margen superior ni
   doble línea (el bloque anterior ya cierra con su border-bottom). */
.single-product .yagaro-sp-accordions--reviews {
	margin-top: 0;
}
.single-product .yagaro-sp-accordions--reviews .yagaro-sp-acc:first-child {
	border-top: 0;
}

.single-product .yagaro-sp-acc {
	border-bottom: 1px solid #ececec;
}

.single-product .yagaro-sp-acc:first-child {
	border-top: 1px solid #ececec;
}

.single-product .yagaro-sp-acc__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 4px;
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #1a1a1a;
	text-align: left;
}

.single-product .yagaro-sp-acc__sign {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.single-product .yagaro-sp-acc__sign::before,
.single-product .yagaro-sp-acc__sign::after {
	content: "";
	position: absolute;
	background: #1a1a1a;
	transition: transform .2s ease, opacity .2s ease;
}

.single-product .yagaro-sp-acc__sign::before {
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
}

.single-product .yagaro-sp-acc__sign::after {
	top: 0;
	left: 6px;
	width: 2px;
	height: 14px;
}

.single-product .yagaro-sp-acc.is-open .yagaro-sp-acc__sign::after {
	opacity: 0;
	transform: scaleY(0);
}

.single-product .yagaro-sp-acc__body {
	padding: 0 4px 22px;
	font-size: 14.5px;
	line-height: 1.7;
	color: #555;
}

.single-product .yagaro-sp-acc__body p {
	margin: 0 0 12px;
}

.single-product .yagaro-sp-acc__body p:last-child {
	margin-bottom: 0;
}

/* ---------- Reseñas dentro del acordeón ---------- */
/* Limpia el formulario de reseñas / Customer Reviews para que encaje con el diseño Yagaro */
#reviews .woocommerce-Reviews-title,
#reviews .comment-reply-title { display: none; }

#reviews .yagaro-sp-acc__body { padding-top: 8px; }

/* Estrellas del formulario de reseña */
#reviews .comment-form-rating .stars a { color: #1a1a1a; }

/* Campos del formulario de reseña */
#reviews .comment-form input[type="text"],
#reviews .comment-form input[type="email"],
#reviews .comment-form textarea {
	width: 100%;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 12px 16px;
	font-size: 14px;
	color: #1a1a1a;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
}
#reviews .comment-form input[type="text"]:focus,
#reviews .comment-form input[type="email"]:focus,
#reviews .comment-form textarea:focus {
	outline: none;
	border-color: #1a1a1a;
}
#reviews .comment-form textarea { min-height: 100px; resize: vertical; }

/* Botón enviar reseña */
#reviews .comment-form input[type="submit"],
#reviews .comment-form .submit {
	background: #1a1a1a !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 14px 28px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .08em !important;
	text-transform: uppercase !important;
	cursor: pointer;
	height: auto !important;
}
#reviews .comment-form input[type="submit"]:hover { opacity: .85; }

/* Lista de reseñas existentes */
#reviews .commentlist { list-style: none; margin: 0 0 24px; padding: 0; }
#reviews .commentlist .comment { margin: 0 0 20px; padding: 0 0 20px; border-bottom: 1px solid #f0f0f0; }
#reviews .commentlist .comment:last-child { border-bottom: 0; }
#reviews .commentlist .comment_container { display: flex; gap: 14px; align-items: flex-start; }
#reviews .commentlist .avatar { border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; }
#reviews .commentlist .comment-text { flex: 1 1 auto; min-width: 0; }
/* Bridge oculta TODA clase `.meta` de forma global (.meta{display:none}) y eso
   se llevaba por delante el nombre+fecha de las reseñas, que WooCommerce mete
   dentro de <p class="meta">. Lo volvemos a mostrar solo en el listado de reseñas. */
#reviews .commentlist .meta { display: block; }
#reviews .commentlist .meta .woocommerce-review__author { font-weight: 600; font-size: 14px; }
#reviews .commentlist .meta .woocommerce-review__date { font-size: 12px; color: #999; margin-left: 8px; }
#reviews .commentlist .description p { font-size: 14px; color: #555; line-height: 1.6; margin: 6px 0 0; }

/* ---------- Productos relacionados / "Completa el look" ---------- */
.single-product .related > h2,
.single-product .up-sells > h2 {
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #999;
	font-weight: 600;
	margin: 0 0 24px;
	text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.single-product div.product {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 36px;
	}
	.single-product div.product .woocommerce-product-gallery,
	.single-product div.product .summary,
	.single-product div.product .summary.entry-summary {
		grid-column: 1;
	}
	.single-product .summary .product_title,
	.single-product .summary h1.product_title {
		font-size: 30px;
	}
}

/* Escritorio "estrecho" (2 columnas, resumen angosto): con el precio en el
   botón, cantidad + botón + corazón no caben en una fila y el corazón se
   descolocaba. Pasamos la cantidad a su propia fila; el botón (que crece) y el
   corazón comparten la siguiente con todo el ancho. */
/* Layout compartido para escritorio estrecho y móvil:
   Fila 1: [cantidad] ......... [corazón]  (corazón empujado a la derecha).
   Fila 2: "Añadir a la bolsa · 25,00 €" a ancho COMPLETO (tiene el precio,
           así nunca compite con el corazón ni se sale por la derecha).
   Fila 3: "Comprar ahora" a ancho completo. */
@media (min-width: 981px) and (max-width: 1200px) {
	.single-product .summary form.cart .quantity,
	.single-product .summary form.cart .quantity.buttons_added {
		order: 0;
		flex: 0 0 auto;
	}
	.single-product .summary .yagaro-sp-fav-btn {
		order: 1;
		margin-left: auto !important;
	}
	.single-product .summary form.cart button.single_add_to_cart_button {
		order: 2;
		flex: 1 1 100%;
	}
	.single-product .summary form.cart .yagaro-sp-buynow {
		order: 3;
	}
}

@media (max-width: 560px) {
	.single-product .summary form.cart .quantity,
	.single-product .summary form.cart .quantity.buttons_added {
		order: 0;
		flex: 0 0 auto;
	}
	.single-product .summary .yagaro-sp-fav-btn {
		order: 1;
		margin-left: auto !important;
	}
	.single-product .summary form.cart button.single_add_to_cart_button {
		order: 2;
		flex: 1 1 100%;
	}
	.single-product .summary form.cart .yagaro-sp-buynow {
		order: 3;
	}
	.single-product .summary .yagaro-sp-trust {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   GALERÍA MÓVIL — full-bleed (todo el ancho de pantalla) + CUADRADA (1:1)
   + carrusel de una imagen a la vez (sin ver dos cortadas).
   ------------------------------------------------------------
   Clave del "se ven dos cortadas": flexslider calcula el ancho de cada slide
   a partir del ancho de la galería EN EL MOMENTO de inicializarse. Como este
   CSS se aplica ANTES de que arranque flexslider, al forzar la galería a 100vw
   flexslider mide 100vw y pone cada slide a pantalla completa → una sola imagen
   visible, y el swipe/scroll sigue gestionado por flexslider (no lo rompemos).
   La imagen se recorta a 1:1 con aspect-ratio + object-fit:cover. */
@media (max-width: 768px) {
	/* Bridge fija .container_inner a un ancho FIJO centrado por breakpoint
	   (≤768px → 600px). Lo forzamos a ancho completo (igual que el carrito) para
	   quitar el gutter lateral. OJO: solo anular el margin sin tocar el width
	   dejaba la caja de 600px pegada a la izquierda (asimétrica), y el sangrado
	   del carrusel cross-sells —que asume contenedor centrado— se quedaba corto
	   por la derecha (hueco). Con width:100% el contenedor es simétrico y el
	   sangrado llega limpio al borde, como en el carrito. */
	.single-product .content .container_inner {
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		/* Sin padding lateral propio: el gutter ya lo da .content_inner (16/24px),
		   así no se duplica. Con width:100% el contenedor queda simétrico, el texto
		   respeta el gutter de .content_inner y el carrusel cross-sells sigue
		   sangrando al borde (su calc(50%-50vw) resuelve al gutter de .content_inner). */
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	/* Galería rompe los gutters del contenedor y ocupa TODO el ancho de pantalla.
	   position:relative → ancla el corazón y los puntitos superpuestos. */
	.single-product div.product .woocommerce-product-gallery {
		position: relative !important;
		width: 100vw !important;
		max-width: 100vw !important;
		margin-left: calc(50% - 50vw) !important;
		margin-right: calc(50% - 50vw) !important;
		border-radius: 0 !important;
		overflow: hidden !important;   /* clip de seguridad si flexslider deja un sobrante */
	}
	/* Viewport y tira de slides: CUADRADOS (1:1), sin bordes redondeados ni la
	   altura portrait que flexslider fija inline. */
	.single-product .woocommerce-product-gallery .flex-viewport,
	.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
		border-radius: 0 !important;
		width: 100vw !important;
		height: 100vw !important;     /* cuadrado exacto = ancho de pantalla */
		aspect-ratio: 1 / 1;
	}
	/* CADA slide a ancho completo SIN padding (flexslider/Bridge le mete 0 10px,
	   que es justo lo que dejaba margen lateral a la imagen). */
	.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image,
	.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > * {
		width: 100vw !important;
		height: 100vw !important;
		padding: 0 !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}
	/* Imagen CUADRADA a sangre, recortada (cover) sin deformar ni padding. */
	.single-product .woocommerce-product-gallery img,
	.single-product .woocommerce-product-gallery .wp-post-image {
		width: 100% !important;
		height: 100% !important;
		aspect-ratio: 1 / 1 !important;
		object-fit: cover !important;
		object-position: center 30% !important;  /* prioriza la parte alta/torso */
		border-radius: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		display: block !important;
	}
	/* Corazón arriba-derecha, sobre la imagen. */
	.single-product .woocommerce-product-gallery > .yagaro-sp-fav-btn,
	.single-product .woocommerce-product-gallery a.yagaro-sp-fav-btn.tinvwl_add_to_wishlist_button {
		top: 14px !important;
		right: 14px !important;
	}
	/* Puntitos SOBRE la imagen, centrados abajo (como el mockup). */
	.single-product .woocommerce-product-gallery .flex-control-paging {
		position: absolute !important;
		left: 0;
		right: 0;
		bottom: 14px;
		margin: 0 !important;
		z-index: 5;
	}
	/* Sobre foto: puntos claros translúcidos; activo blanco sólido. */
	.single-product .woocommerce-product-gallery .flex-control-paging li a {
		background: rgba(255, 255, 255, .55) !important;
		box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	}
	.single-product .woocommerce-product-gallery .flex-control-paging li a.flex-active {
		background: #fff !important;
		transform: none;
	}
}

/* Ocultar la línea "ETIQUETA:" del meta del producto: la colección (tag) ya se
   muestra arriba como eyebrow ("MAREA LATINA · BIKINI"), así que aquí sobra. */
.single-product .product_meta .tagged_as {
	display: none !important;
}

/* ============================================================
   Barra inferior fija (móvil) — precio + "Añadir a la bolsa"
   ============================================================ */
.yagaro-sp-bar { display: none; }

@media (max-width: 768px) {
	.yagaro-sp-bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
		background: #fff;
		border-top: 1px solid #ececec;
		box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
		box-sizing: border-box;
		max-width: 100%;
		overflow: hidden;
	}
	.yagaro-sp-bar__info {
		display: flex;
		flex-direction: column;
		line-height: 1.15;
		min-width: 0;       /* permite que el nombre encoja con elipsis */
		flex: 1 1 auto;
	}
	.yagaro-sp-bar__name {
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .04em;
		text-transform: uppercase;
		color: #8a8a8a;
		margin-bottom: 3px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}
	.yagaro-sp-bar__price,
	.yagaro-sp-bar__price .woocommerce-Price-amount {
		font-size: 17px;
		font-weight: 700;
		color: #1a1a1a;
		white-space: nowrap;
	}
	.yagaro-sp-bar__price del { display: none; }   /* en la barra, solo el precio actual */
	.yagaro-sp-bar__btn {
		flex: 0 1 auto;     /* puede encoger si no cabe, nunca se desborda */
		min-width: 0;
		max-width: 62%;
		padding: 15px 22px;
		background: #111;
		color: #fff !important;
		border: 0;
		border-radius: 40px;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .05em;
		text-transform: uppercase;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		cursor: pointer;
		transition: opacity .2s ease;
	}
	.yagaro-sp-bar__btn:hover { opacity: .85; }

	/* Hueco para que la barra fija no tape el contenido final */
	body.single-product .content .content_inner { padding-bottom: 88px !important; }

	/* En móvil la barra sticky inferior sustituye a los botones grandes de la
	   ficha (mockup): ocultamos "Añadir a la bolsa" y "Comprar ahora" in-page.
	   Se quedan en el DOM (no `display:none` del form) para que el botón de la
	   barra siga disparando su click real y respete talla/variación. */
	.single-product .summary form.cart button.single_add_to_cart_button,
	.single-product .summary form.cart .yagaro-sp-buynow {
		display: none !important;
	}
}
