/**
 * PDP — referencia Gymshark, marca Bars Breakers.
 */

.bb-shop-pdp-page .bb-shop-main {
	padding-top: var(--bb-shop-space-2);
}

/* Ficha a todo el ancho del main, alineada con el menú como el resto de la tienda
   (shell-contenido-v1.md, SH11 rev. 1.3). En pantallas anchas la galería pasa a rejilla de fotos
   para que no salgan gigantes; el texto de las pestañas conserva una medida de lectura. */
.bb-shop-pdp {
	margin: 0;
	padding: 0 0 var(--bb-shop-space-5);
}

.bb-shop-pdp .woocommerce-breadcrumb {
	margin: 0 0 var(--bb-shop-space-3);
	font-size: 0.75rem;
	color: var(--bb-color-text-muted);
}

.bb-shop-pdp .woocommerce-breadcrumb a {
	color: var(--bb-color-text-primary); /* 3,6:1 frente al texto muted (link-in-text-block). */
	text-decoration: none;
}

.bb-shop-pdp .woocommerce-breadcrumb a:hover {
	color: var(--bb-color-action);
}

.bb-shop-pdp__grid {
	display: grid;
	gap: var(--bb-shop-space-4);
	align-items: start;
}

@media (min-width: 992px) {
	.bb-shop-pdp__grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
		gap: var(--bb-shop-space-5);
	}

	.bb-shop-pdp__buybox {
		position: sticky;
		top: calc(var(--bb-shop-topbar-height) + var(--bb-shop-header-height) + 12px);
	}

	/* Menos de 3 fotos (content-single-product.php): la galería se queda fija y se baja por la
	   columna de compra, que es la más alta. */
	.bb-shop-pdp__grid--few-photos .bb-shop-pdp__gallery {
		position: sticky;
		top: calc(var(--bb-shop-topbar-height) + var(--bb-shop-header-height) + 12px);
	}

	.bb-shop-pdp__grid--few-photos .bb-shop-pdp__buybox {
		position: static;
	}

	/* Fija solo sirve si cabe en pantalla: el lado de cada foto (cuadrada) no pasa del alto
	   disponible bajo la cabecera. A 1280×720 la foto grande medía 676px y se cortaba. */
	.bb-shop-pdp__grid--few-photos .bb-shop-pdp__gallery .woocommerce-product-gallery__image {
		max-width: calc(100dvh - var(--bb-shop-topbar-height) - var(--bb-shop-header-height) - 36px);
	}
}

/* Galería */
.bb-shop-pdp__gallery {
	min-width: 0;
	width: 100%;
}

.bb-shop-pdp__gallery div.images,
.bb-shop-pdp__gallery .woocommerce-product-gallery {
	width: 100% !important;
	max-width: none;
	float: none !important;
	margin: 0 0 var(--bb-shop-space-3);
}

.bb-shop-pdp__gallery .woocommerce-product-gallery__wrapper {
	width: 100%;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: var(--bb-shop-space-2);
}

.bb-shop-pdp__gallery .woocommerce-product-gallery__image {
	width: auto !important;
	margin: 0;
	background: var(--bb-color-surface-1);
	border-radius: var(--bb-shop-radius-card);
	overflow: hidden;
}

.bb-shop-pdp__gallery .woocommerce-product-gallery__image a {
	display: block;
	line-height: 0;
}

.bb-shop-pdp__gallery .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

@media (min-width: 992px) {
	.bb-shop-pdp__gallery .woocommerce-product-gallery__wrapper {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
		grid-template-rows: auto;
		gap: var(--bb-shop-space-2);
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__image:first-child {
		grid-column: 2;
		grid-row: 1 / span 6;
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__image:not(:first-child) {
		grid-column: 1;
		cursor: pointer;
		opacity: 0.65;
		transition: opacity 0.15s ease, box-shadow 0.15s ease;
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__image:not(:first-child):hover,
	.bb-shop-pdp__gallery .woocommerce-product-gallery__image.flex-active-slide {
		opacity: 1;
		box-shadow: inset 0 0 0 2px var(--bb-color-text-primary);
	}
}

/* Pantallas anchas: todas las fotos en rejilla (2 columnas; 3 desde 2560px si hay 3 fotos o más), sin miniaturas, y
   columna de compra algo más ancha. Con foto grande + miniaturas, a 1920px la foto pasaba de
   1300px de lado. */
@media (min-width: 1440px) {
	.bb-shop-pdp__grid {
		grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__image:first-child,
	.bb-shop-pdp__gallery .woocommerce-product-gallery__image:not(:first-child),
	.bb-shop-pdp__gallery .woocommerce-product-gallery__image:not(:first-child):hover {
		grid-column: auto;
		grid-row: auto;
		cursor: zoom-in;
		opacity: 1;
		box-shadow: none;
	}
}

/* 3 columnas solo con 3 fotos cuadradas o más (clase de content-single-product.php): con menos, la
   tercera columna quedaba vacía. Las apaisadas no cuentan: van en su propia fila. */
@media (min-width: 2560px) {
	.bb-shop-pdp__grid--3-squares .bb-shop-pdp__gallery .woocommerce-product-gallery__wrapper {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---- Fotos apaisadas (`bb-shop-pdp__photo--wide`, inc/single-product.php) ----
 * P. ej. la presentación 2:1 de las camisetas. Se ven enteras, nunca recortadas a cuadrado:
 * - Desde 1440px ocupan toda la fila de la rejilla con su proporción; las cuadradas siguen
 *   llenando cada una su columna.
 * - 992–1439px: como foto grande, con su proporción; como miniatura, recortada (72px).
 * - Menos de 992px (carrusel): dentro del hueco cuadrado del carrusel, entera y centrada. */
@media (min-width: 1440px) {
	/* `:not(:first-child):hover` para ganar a la regla de «Pantallas anchas» (grid-column: auto al
	   pasar el ratón): con ella la foto encogía a una columna, el ratón salía y volvía a crecer. */
	.bb-shop-pdp__gallery .woocommerce-product-gallery__image.bb-shop-pdp__photo--wide,
	.bb-shop-pdp__gallery .woocommerce-product-gallery__image.bb-shop-pdp__photo--wide:not(:first-child):hover {
		grid-column: 1 / -1;
	}

	.bb-shop-pdp__gallery .bb-shop-pdp__photo--wide img {
		aspect-ratio: auto;
	}

	/* La apaisada, si es la última foto, se queda fija bajo la cabecera mientras se baja por la
	   columna de compra, hasta las pestañas («Diseñado para»…). Para eso la galería se estira a
	   todo el alto de la fila y la rejilla de fotos con ella. Con menos de 3 fotos no hace falta:
	   ya es fija la galería entera. */
	.bb-shop-pdp__grid:not(.bb-shop-pdp__grid--few-photos) .bb-shop-pdp__gallery:has(.bb-shop-pdp__photo--wide:last-child) {
		align-self: stretch;
		display: flex;
		flex-direction: column;
	}

	.bb-shop-pdp__grid:not(.bb-shop-pdp__grid--few-photos) .bb-shop-pdp__gallery:has(.bb-shop-pdp__photo--wide:last-child) div.images {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
	}

	.bb-shop-pdp__grid:not(.bb-shop-pdp__grid--few-photos) .bb-shop-pdp__gallery:has(.bb-shop-pdp__photo--wide:last-child) .woocommerce-product-gallery__wrapper {
		flex: 1 1 auto;
		align-content: start;
	}

	.bb-shop-pdp__grid:not(.bb-shop-pdp__grid--few-photos) .bb-shop-pdp__gallery .woocommerce-product-gallery__image.bb-shop-pdp__photo--wide:last-child {
		position: sticky;
		top: calc(var(--bb-shop-topbar-height) + var(--bb-shop-header-height) + 12px);
		align-self: start;
	}
}

@media (min-width: 992px) and (max-width: 1439.98px) {
	.bb-shop-pdp__gallery .bb-shop-pdp__photo--wide:first-child img {
		aspect-ratio: auto;
	}
}

@media (max-width: 991.98px) {
	.bb-shop-pdp__gallery .bb-shop-pdp__photo--wide img {
		object-fit: contain;
	}
}

.bb-shop-pdp__gallery .onsale {
	top: var(--bb-shop-space-2);
	left: var(--bb-shop-space-2);
	border-radius: var(--bb-shop-radius-cta);
	background: var(--bb-color-action);
	font-family: var(--bb-font-heading);
	font-size: 0.6875rem;
	text-transform: uppercase;
	padding: 0.35rem 0.65rem;
	min-height: auto;
	line-height: 1.2;
}

/* Buy box */
.bb-shop-pdp__buybox {
	min-width: 0;
	width: 100% !important;
	max-width: 100%;
	float: none !important;
	clear: none !important;
	margin: 0;
	box-sizing: border-box;
}

@media (min-width: 992px) {
	.bb-shop-pdp__buybox {
		padding-left: var(--bb-shop-space-2);
	}
}

.bb-shop-pdp__badge {
	margin: 0 0 0.5rem;
	font-family: var(--bb-font-heading);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bb-shop-pdp__badge a {
	color: var(--bb-color-text-secondary);
	text-decoration: none;
}

.bb-shop-pdp__badge a:hover {
	color: var(--bb-color-action);
}

.bb-shop-pdp__buybox .product_title {
	margin: 0 0 0.75rem;
	font-family: var(--bb-font-heading);
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: var(--bb-color-text-primary);
}

/* Precio + reseña compacta (Gymshark price-review-container) */
.bb-shop-pdp__price-review {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.85rem;
	margin: 0 0 1rem;
	line-height: 1.25;
}

.bb-shop-pdp__price-review-price .price {
	margin: 0;
	font-family: var(--bb-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--bb-color-text-primary);
}

.bb-shop-pdp__price-review-price .price .woocommerce-Price-amount,
.bb-shop-pdp__price-review-price .price bdi {
	color: var(--bb-color-text-primary);
}

.bb-shop-pdp__price-review-price .price del {
	color: var(--bb-color-text-muted);
	font-weight: 400;
	font-size: 0.875rem;
	margin-right: 0.35rem;
}

.bb-shop-pdp__price-review-price .price ins {
	text-decoration: none;
}

.bb-shop-pdp__price-review-rating {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-family: var(--bb-font-body);
	font-size: 0.875rem;
	line-height: 1.25;
	color: var(--bb-color-text-secondary);
	text-decoration: none;
}

.bb-shop-pdp__price-review-star {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--bb-color-text-primary);
	line-height: 0;
}

.bb-shop-pdp__price-review-rating:hover,
.bb-shop-pdp__price-review-rating:focus-visible {
	color: var(--bb-color-text-primary);
}

.bb-shop-pdp__price-review-score {
	font-weight: 600;
	color: var(--bb-color-text-primary);
}

.bb-shop-pdp__price-review-count {
	font-weight: 400;
	color: var(--bb-color-text-secondary);
}

.bb-shop-pdp__buybox .woocommerce-product-rating {
	display: none;
}

.bb-shop-pdp__buybox .woocommerce-product-details__short-description {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--bb-color-text-secondary);
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}

.bb-shop-pdp__buybox .woocommerce-product-details__short-description p {
	margin: 0 0 0.65rem;
	text-align: justify;
}

/* Descripción corta: 3 líneas y «Ver más» (single-product-shop.js). Solo con JavaScript: sin él se
   ve entera. Los párrafos se juntan en línea para que el recorte acabe en «…». */
.bb-shop-has-js .bb-shop-pdp__buybox .woocommerce-product-details__short-description:not(.is-expanded) {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	margin-bottom: 0.35rem;
}

.bb-shop-has-js .bb-shop-pdp__buybox .woocommerce-product-details__short-description:not(.is-expanded) p {
	display: inline;
	margin: 0;
}

.bb-shop-has-js .bb-shop-pdp__buybox .woocommerce-product-details__short-description:not(.is-expanded) p + p::before {
	content: " ";
}

.bb-shop-pdp__desc-toggle {
	display: block;
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bb-color-text-primary);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.bb-shop-pdp__variation-label-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--bb-shop-space-2);
	width: 100%;
}

.bb-shop-pdp__size-guide {
	margin: 0;
	font-size: 0.8125rem;
	flex-shrink: 0;
}

.bb-shop-pdp__size-guide a,
.bb-shop-pdp__anchor-caracteristicas {
	color: var(--bb-color-text-primary);
	font-weight: 400;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* «Guía de tallas»: botón con aspecto de enlace que abre la imagen de la guía (1-dic-2026). */
.bb-shop-pdp__size-guide-open {
	padding: 0;
	font: inherit;
	color: var(--bb-color-text-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: 0;
	cursor: pointer;
}

.bb-shop-pdp__size-guide-open:hover {
	color: var(--bb-color-action);
}

.bb-shop-pdp__size-guide-open:focus-visible {
	outline: 2px solid var(--bb-color-action);
	outline-offset: 2px;
}

/* Ventana de la guía: centrada, ancho de la imagen (600px) y alto de la pantalla como máximo. */
.bb-shop-size-guide {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--bb-shop-space-2);
}

.bb-shop-size-guide[hidden] {
	display: none;
}

.bb-shop-size-guide__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(600px, 100%);
	max-height: calc(100% - var(--bb-shop-space-2));
	background: var(--bb-color-bg);
	border-radius: var(--bb-shop-radius-card);
	box-shadow: 0 24px 64px rgba(14, 14, 14, 0.25);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.24s ease, transform 0.24s ease;
}

.bb-shop-size-guide.is-open .bb-shop-size-guide__panel {
	opacity: 1;
	transform: translateY(0);
}

.bb-shop-size-guide__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bb-shop-space-2);
	padding: var(--bb-shop-space-1) var(--bb-shop-space-1) var(--bb-shop-space-1) var(--bb-shop-space-3);
	border-bottom: 1px solid var(--bb-shop-border);
}

.bb-shop-size-guide__title {
	margin: 0;
	font-family: var(--bb-font-display, inherit);
	font-size: 1.125rem;
	text-transform: uppercase;
}

.bb-shop-size-guide__body {
	overflow-y: auto;
	padding: var(--bb-shop-space-2);
}

.bb-shop-size-guide__body .bb-shop-size-guide__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
}

@media (prefers-reduced-motion: reduce) {
	.bb-shop-size-guide__panel {
		transition: none;
	}
}

/* Guía de tallas en HTML y SVG (camisetas): paridad con la guía en imagen, pero ligera y adaptable. */
.bb-shop-size-chart {
	padding: var(--bb-shop-space-1) var(--bb-shop-space-1) var(--bb-shop-space-2);
	color: var(--bb-color-text-primary);
}

.bb-shop-size-chart__eyebrow {
	margin: 0 0 0.25rem;
	font-family: var(--bb-font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bb-color-action);
}

.bb-shop-size-chart__meta {
	margin: 0 0 var(--bb-shop-space-3);
	padding-bottom: var(--bb-shop-space-2);
	font-size: 0.875rem;
	color: var(--bb-color-text-secondary, #5c5c5c);
	background: linear-gradient(var(--bb-color-action), var(--bb-color-action)) left bottom / 3rem 3px no-repeat;
}

.bb-shop-size-chart__table {
	width: 100%;
	margin: 0 0 var(--bb-shop-space-3);
	border-collapse: collapse;
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.bb-shop-size-chart__table thead th {
	padding: 0.75rem 0.5rem;
	font-family: var(--bb-font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--bb-color-action);
	background: var(--bb-color-surface-1);
	text-align: center;
	border: 0;
}

.bb-shop-size-chart__table tbody th,
.bb-shop-size-chart__table tbody td {
	width: 50%;
	padding: 0.625rem 0.5rem;
	text-align: center;
	border: 0;
	border-bottom: 1px solid var(--bb-shop-border);
}

.bb-shop-size-chart__table tbody th {
	font-weight: 700;
}

.bb-shop-size-chart__how {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(8rem, 11rem);
	align-items: center;
	gap: var(--bb-shop-space-2);
}

.bb-shop-size-chart__how-title {
	margin: 0 0 0.5rem;
	font-family: var(--bb-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: uppercase;
}

.bb-shop-size-chart__how-text p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--bb-color-text-secondary, #5c5c5c);
}

.bb-shop-size-chart__shirt {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.bb-shop-size-chart__shirt-body {
	fill: var(--bb-color-surface-1);
	stroke: var(--bb-color-text-primary);
	stroke-width: 4;
	stroke-linejoin: round;
}

.bb-shop-size-chart__shirt-line {
	fill: none;
	stroke: var(--bb-color-text-primary);
	stroke-width: 4;
	stroke-linecap: round;
}

.bb-shop-size-chart__arrow {
	stroke: var(--bb-color-action);
	stroke-width: 3;
}

.bb-shop-size-chart__arrow-head {
	fill: var(--bb-color-action);
}

.bb-shop-size-chart__arrow-label {
	font-family: var(--bb-font-heading);
	font-size: 15px;
	font-weight: 700;
	fill: var(--bb-color-action);
}

.bb-shop-size-chart__note {
	margin: calc(-1 * var(--bb-shop-space-2)) 0 var(--bb-shop-space-3);
	font-size: 0.8125rem;
	color: var(--bb-color-text-secondary, #5c5c5c);
}

/* Pasos numerados (térmicas y tops): el número es el mismo círculo rojo del dibujo. */
.bb-shop-size-chart__steps {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bb-size-step;
}

.bb-shop-size-chart__steps li {
	position: relative;
	margin: 0 0 0.75rem;
	padding-left: 2.25rem;
	counter-increment: bb-size-step;
}

.bb-shop-size-chart__steps li::before {
	content: counter(bb-size-step);
	position: absolute;
	top: 0.05rem;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
	background: var(--bb-color-action);
	border-radius: 50%;
}

.bb-shop-size-chart__steps strong {
	display: block;
	font-size: 0.9375rem;
}

.bb-shop-size-chart__steps span {
	display: block;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--bb-color-text-secondary, #5c5c5c);
}

.bb-shop-size-chart__badge circle {
	fill: var(--bb-color-action);
}

.bb-shop-size-chart__badge text {
	font-family: var(--bb-font-heading);
	font-size: 11px;
	font-weight: 700;
	fill: #fff;
}

/* Con 4 o 5 columnas: celdas más justas para que quepan en móvil sin desplazar. */
.bb-shop-size-chart--cols-4 .bb-shop-size-chart__table tbody th,
.bb-shop-size-chart--cols-4 .bb-shop-size-chart__table tbody td,
.bb-shop-size-chart--cols-5 .bb-shop-size-chart__table tbody th,
.bb-shop-size-chart--cols-5 .bb-shop-size-chart__table tbody td {
	width: auto;
	padding-inline: 0.25rem;
}

@media (max-width: 479.98px) {
	.bb-shop-size-chart--cols-4 .bb-shop-size-chart__table,
	.bb-shop-size-chart--cols-5 .bb-shop-size-chart__table {
		font-size: 0.875rem;
	}

	.bb-shop-size-chart--cols-4 .bb-shop-size-chart__table thead th,
	.bb-shop-size-chart--cols-5 .bb-shop-size-chart__table thead th {
		padding-inline: 0.125rem;
		font-size: 0.75rem;
		line-height: 1.2;
	}
}

@media (max-width: 479.98px) {
	.bb-shop-size-chart__how {
		grid-template-columns: 1fr;
	}

	.bb-shop-size-chart__shirt {
		max-width: 10rem;
		margin-inline: auto;
	}
}

.bb-shop-pdp .variations {
	margin: 0 0 1rem;
	border: none;
	width: 100%;
}

.bb-shop-pdp .variations tr {
	display: block;
	margin-bottom: 1rem;
}

.bb-shop-pdp .variations th.label {
	display: block;
	padding: 0;
	margin: 0 0 0.5rem;
	text-align: left;
}

.bb-shop-pdp .variations th.label label {
	font-family: var(--bb-font-heading);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bb-color-text-primary);
}

.bb-shop-pdp .variations td.value {
	display: block;
	padding: 0;
}

.bb-shop-pdp .variations select.bb-shop-pdp__select-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bb-shop-pdp__option-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.bb-shop-pdp__option-btn {
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 0.65rem;
	font-family: var(--bb-font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--bb-color-text-primary);
	background: var(--bb-color-bg);
	border: 1px solid var(--bb-shop-border-strong);
	border-radius: 2px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.bb-shop-pdp__option-btn:hover {
	border-color: var(--bb-color-text-primary);
}

.bb-shop-pdp__option-btn.is-selected {
	border-color: var(--bb-color-text-primary);
	background: var(--bb-color-text-primary);
	color: #fff;
}

.bb-shop-pdp .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: var(--bb-color-text-muted);
}

/*
 * Sin selector de cantidad en la ficha (la cantidad se cambia en el carrito). `!important` porque, al
 * elegir una variante, WooCommerce lo vuelve a mostrar con un estilo en línea (`$qty.show()` en
 * add-to-cart-variation.js).
 */
.bb-shop-pdp .quantity {
	display: none !important;
}

/* Precio de la variante elegida (cuando las variantes tienen precios distintos): como el precio de
 * arriba. Cuatro clases para ganar a `.woocommerce div.product span.price` (verde oliva) de
 * woocommerce.css. */
.bb-shop-pdp .single_variation .woocommerce-variation-price .price {
	margin: 0;
	font-family: var(--bb-font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--bb-color-text-primary);
}

.bb-shop-pdp .single_variation .woocommerce-variation-price .price del {
	color: var(--bb-color-text-muted);
	font-weight: 400;
	font-size: 0.875rem;
	margin-right: 0.35rem;
}

.bb-shop-pdp .single_variation .woocommerce-variation-price .price ins {
	text-decoration: none;
}

.bb-shop-pdp .woocommerce-variation-add-to-cart {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.bb-shop-pdp .single_add_to_cart_button {
	width: 100%;
	min-height: 48px;
	padding: 0.85rem 1.5rem !important;
	font-size: 0.8125rem !important;
	letter-spacing: 0.06em;
}

.bb-shop-pdp .single_add_to_cart_button:disabled,
.bb-shop-pdp .single_add_to_cart_button.disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.bb-shop-pdp__trust {
	list-style: none;
	margin: var(--bb-shop-space-3) 0 0;
	padding: var(--bb-shop-space-2) 0 0;
	border-top: 1px solid var(--bb-shop-border);
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--bb-color-text-secondary);
}

.bb-shop-pdp__trust li {
	position: relative;
	padding-left: 1.1rem;
	margin: 0 0 0.5rem;
}

.bb-shop-pdp__trust li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bb-color-action);
}

/* Métodos de pago (iconos) bajo la franja de confianza. */
.bb-shop-pdp__payments {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	list-style: none;
	margin: var(--bb-shop-space-1) 0 0;
	padding: 0;
}

.bb-shop-pdp__payments li {
	margin: 0;
	padding: 0;
}

.bb-shop-pdp__payments img {
	display: block;
	width: auto;
	height: 24px;
	border-radius: 3px;
}

/* ---- Ritmo vertical de la columna de compra (30-nov-2026) ----
 * Tres distancias: 8px dentro de un grupo (título y precio; descripción y «Ver más»), 24px entre grupos (descripción, reserva, cada elección, botón) y 32px antes de
 * lo que va tras el botón (pack, aviso de alumno, confianza). Aquí, y no en packs-shop.css ni en
 * alumnos-shop.css, porque solo vale para la ficha. */
.bb-shop-pdp__buybox .product_title {
	margin-bottom: var(--bb-shop-space-1);
}

.bb-shop-pdp__buybox .bb-shop-pdp__price-review {
	margin-bottom: var(--bb-shop-space-2);
}

/* La descripción cierra su grupo (24px); con «Ver más» debajo, 8px y es «Ver más» quien lo cierra. */
.bb-shop-pdp__buybox .woocommerce-product-details__short-description {
	margin-bottom: var(--bb-shop-space-3);
}

.bb-shop-pdp__buybox .woocommerce-product-details__short-description:has(+ .bb-shop-pdp__desc-toggle) {
	margin-bottom: var(--bb-shop-space-1);
}

.bb-shop-pdp__desc-toggle {
	margin-bottom: var(--bb-shop-space-3);
}

.bb-shop-pdp__buybox .bb-shop-reserve {
	margin: 0 0 var(--bb-shop-space-3);
}

/* Misma especificidad que `.woocommerce div.product form.cart .variations` (margin-bottom: 1em) de
   woocommerce.css, que se carga antes: gana esta. */
.woocommerce .bb-shop-pdp__buybox form.cart table.variations {
	margin-bottom: 0;
}

.bb-shop-pdp__buybox .variations tr {
	margin-bottom: var(--bb-shop-space-3);
}

.bb-shop-pdp__buybox .variations tr:last-child {
	margin-bottom: 0;
}

/* «Limpiar» de WooCommerce: oculto pero ocupaba ~40px bajo las tallas. Con botones, la talla se
   cambia pulsando otra. */
.bb-shop-pdp__buybox .variations .reset_variations {
	display: none !important;
}

.bb-shop-pdp__buybox .woocommerce-variation-add-to-cart {
	gap: var(--bb-shop-space-3);
	margin-top: var(--bb-shop-space-3);
}

.bb-shop-pdp__buybox .woocommerce-variation-add-to-cart > :is(.bb-shop-reserve__mode, .bb-shop-reserve__field) {
	margin-bottom: 0;
}

.bb-shop-pdp__buybox form.cart {
	margin-bottom: var(--bb-shop-space-4);
}

.bb-shop-pdp__buybox .bb-shop-pack--pdp {
	margin: 0 0 var(--bb-shop-space-3);
}

.bb-shop-pdp__buybox .bb-shop-member-note--pdp {
	margin: 0 0 var(--bb-shop-space-3);
}

.bb-shop-pdp__buybox .bb-shop-pdp__trust {
	margin-top: 0;
}

/* Pestañas — paridad Gymshark tabs-new */
.bb-shop-pdp__below {
	margin-top: var(--bb-shop-space-5);
	padding-top: 0;
	border-top: none;
}

.bb-shop-pdp-tabs {
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	scroll-margin-top: calc(var(--bb-shop-topbar-height) + var(--bb-shop-header-height) + 12px);
}

.bb-shop-pdp-tabs.woocommerce-tabs ul.tabs {
	margin: 0 0 var(--bb-shop-space-2) !important;
	padding: 0 !important;
	overflow: visible;
	position: static;
	border: none;
}

/* Una sola línea inferior (WC añade ::before con otro border) */
.bb-shop-pdp-tabs.woocommerce-tabs ul.tabs::before,
.bb-shop-pdp-tabs.woocommerce-tabs ul.tabs::after {
	display: none !important;
	content: none !important;
}

.bb-shop-pdp-tabs__bar {
	border-bottom: none;
	padding-inline: 0;
}

.bb-shop-pdp-tabs__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 2rem;
	min-height: 38px;
	margin: 0 0 var(--bb-shop-space-2) !important;
	padding: 0 !important;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.bb-shop-pdp-tabs__list::-webkit-scrollbar {
	display: none;
}

.bb-shop-pdp-tabs__item {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
}

.bb-shop-pdp-tabs__item::before,
.bb-shop-pdp-tabs__item::after {
	display: none !important;
	content: none !important;
	box-shadow: none !important;
	border: none !important;
}

.bb-shop-pdp-tabs__item a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0;
	font-family: var(--bb-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: var(--bb-color-text-muted);
	text-decoration: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: 0;
	box-shadow: none !important;
	background: none !important;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.bb-shop-pdp-tabs__item a:hover {
	color: var(--bb-color-text-primary);
}

.bb-shop-pdp-tabs__item.active a {
	color: var(--bb-color-text-primary);
	font-weight: 600;
	border-bottom-color: var(--bb-color-text-primary);
}

.bb-shop-pdp-tabs__panels {
	padding: 0 0 var(--bb-shop-space-4);
	border-top: none;
}

/* Secciones de abajo a todo el ancho del contenedor y en el negro principal (petición de José
   Carlos, 30-nov-2026; antes 80ch y gris #5c5c5c). */
.bb-shop-pdp-tabs__panel,
.bb-shop-pdp-tabs .woocommerce-Tabs-panel.panel {
	max-width: none;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--bb-color-text-primary);
	border: none !important;
	border-top: none !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0;
}

.bb-shop-pdp-tabs__panel > :first-child,
.bb-shop-pdp-tabs__designed-for > :first-child {
	margin-top: 0;
}

.bb-shop-pdp-tabs__panel :is(p, ul, ol, table, .shop_attributes):first-child,
.bb-shop-pdp-tabs__designed-for :is(p, ul, ol):first-child {
	margin-top: 0;
}

.bb-shop-pdp-tabs__panel > h2:first-child {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bb-shop-pdp-tabs__designed-for {
	font-size: 1rem;
	line-height: 1.55;
	color: var(--bb-color-text-primary);
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}

.bb-shop-pdp-tabs__designed-for p,
.bb-shop-pdp-tabs__panel#tab-description,
.bb-shop-pdp-tabs__panel#tab-description p {
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}

.bb-shop-pdp-tabs__panel .shop_attributes {
	margin: 0;
	border: none;
	border-top: none;
}

.bb-shop-pdp-tabs__panel .shop_attributes th,
.bb-shop-pdp-tabs__panel .shop_attributes td {
	padding: 0.65rem 0;
	border-top: none;
	border-bottom: 1px solid var(--bb-shop-border);
	font-size: 0.875rem;
	vertical-align: top;
}

.bb-shop-pdp-tabs__panel .shop_attributes tr:last-child th,
.bb-shop-pdp-tabs__panel .shop_attributes tr:last-child td {
	border-bottom: none;
}

.bb-shop-pdp-tabs__panel .shop_attributes th {
	font-weight: 600;
	color: var(--bb-color-text-primary);
	width: 40%;
}


.bb-shop-pdp__below .related.products > h2 {
	margin: var(--bb-shop-space-5) 0 var(--bb-shop-space-3);
}

.bb-shop-pdp__below .related.products ul.products {
	display: grid;
	grid-auto-flow: row;
	grid-auto-columns: unset;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--bb-shop-grid-gap);
	overflow: visible;
	padding-bottom: 0;
	scroll-snap-type: none;
}

@media (min-width: 768px) {
	.bb-shop-pdp__below .related.products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.bb-shop-pdp__below .related.products ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Mismas columnas que la rejilla de las categorías (plp-shop.css) a todo el ancho. */
@media (min-width: 2200px) {
	.bb-shop-pdp__below .related.products ul.products {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 2800px) {
	.bb-shop-pdp__below .related.products ul.products {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.bb-shop-pdp__below .related.products ul.products::before,
.bb-shop-pdp__below .related.products ul.products::after {
	content: none;
	display: none;
}

.bb-shop-pdp__below .related.products ul.products li.product {
	width: auto !important;
	max-width: none;
	min-width: 0;
	clear: none !important;
	margin: 0 !important;
}

.bb-shop-pdp__below .related.products ul.products li.product .button,
.bb-shop-pdp__below .related.products ul.products li.product .screen-reader-text {
	display: none;
}

/* ---- Galería como Gymshark (assets/js/pdp-gallery.js) ---- */

/* Móvil y tableta: carrusel a todo el ancho que se desliza, con puntos debajo. */
@media (max-width: 991.98px) {
	/* De borde a borde: anula el margen lateral del main. */
	.bb-shop-pdp__gallery div.images.woocommerce-product-gallery {
		width: auto !important;
		margin-inline: calc(-1 * var(--bb-shop-gutter));
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__wrapper {
		flex-direction: row;
		gap: 0;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__wrapper::-webkit-scrollbar {
		display: none;
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__image {
		flex: 0 0 100%;
		width: 100% !important;
		border-radius: 0;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
}

.bb-shop-pdp-dots {
	display: flex;
	justify-content: center;
	gap: 0;
	margin-top: var(--bb-shop-space-1);
}

@media (min-width: 992px) {
	.bb-shop-pdp-dots {
		display: none;
	}
}

.bb-shop-pdp-dots__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.bb-shop-pdp-dots__dot::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: var(--bb-color-surface-3);
	transition: width 0.2s ease, background 0.2s ease;
}

.bb-shop-pdp-dots__dot.is-active {
	width: 32px;
}

.bb-shop-pdp-dots__dot.is-active::before {
	width: 24px;
	background: var(--bb-color-text-primary);
}

/* Sin anillo de foco al pulsar con el ratón o el dedo (con teclado sí se ve). */
.bb-shop-pdp__gallery .woocommerce-product-gallery__image a:focus:not(:focus-visible) {
	outline: none;
}

/* Escritorio con ratón: zoom dentro de la propia foto, que sigue al ratón. */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
	.bb-shop-pdp__gallery .woocommerce-product-gallery__image a {
		cursor: zoom-in;
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__image.is-zoomed a {
		cursor: zoom-out;
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__image.is-zoomed {
		background-repeat: no-repeat;
	}

	.bb-shop-pdp__gallery .woocommerce-product-gallery__image.is-zoom-ready img {
		opacity: 0;
	}
}

/* Miniaturas (992–1439px): se pulsan para pasar a la foto grande. */
@media (min-width: 992px) and (max-width: 1439.98px) {
	.bb-shop-pdp__gallery .woocommerce-product-gallery__image:not(:first-child) a {
		cursor: pointer;
	}
}

/* ---- Foto a pantalla completa (táctil) ---- */

html.bb-shop-pdp-zoom-open {
	overflow: hidden;
}

.bb-shop-pdp-zoom {
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--bb-color-bg);
}

.bb-shop-pdp-zoom::backdrop {
	background: var(--bb-color-bg);
}

.bb-shop-pdp-zoom__scroller {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: auto;
	scrollbar-width: none;
}

.bb-shop-pdp-zoom.is-zoomed .bb-shop-pdp-zoom__scroller {
	display: block;
}

/* Doble clase: `.woocommerce img { height: auto }` la pisaría. */
.bb-shop-pdp-zoom .bb-shop-pdp-zoom__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	cursor: zoom-in;
}

.bb-shop-pdp-zoom.is-zoomed .bb-shop-pdp-zoom__img {
	width: 250%;
	height: auto;
	cursor: zoom-out;
}

.bb-shop-pdp-zoom__close {
	position: fixed;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bb-color-bg);
	color: var(--bb-color-text-primary);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}
