/* Ficha de producto (PDP). Tokens heredados del diseno: Neue Montreal, #111, radios 8-12px. */

body.single-product .uh-main {
	padding-block: 0;
}
body.single-product .uh-container {
	max-width: var(--page-width, 90rem);
	padding-inline: var(--page-margin, 20px);
}

.uh-pdp {
	--uh-fg: #111;
	--uh-muted: #6a6a6a;
	--uh-line: #e6e6e6;
	--uh-soft: #f4f4f4;
	--uh-gold: #c9a24b;
	--uh-gold-dark: #a67c2e;
	--uh-green: #14a05a;
	--uh-orange: #f08a00;
	--uh-red: #d33a2c;
	--uh-r: 12px;
	--uh-r-sm: 8px;
	color: var(--uh-fg);
	font-family: var(--font-primary--family, 'Neue Montreal', 'DM Sans', sans-serif);
	padding-bottom: 96px;
}
.uh-pdp *,
.uh-pdp *::before,
.uh-pdp *::after {
	box-sizing: border-box;
}
.uh-pdp .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Migas */
.uh-pdp__crumbs {
	padding: 20px 0 16px;
	font-size: 13px;
	color: var(--uh-muted);
}
.uh-pdp__crumbs a {
	color: inherit;
	text-decoration: none;
}
.uh-pdp__crumbs a:hover {
	color: var(--uh-fg);
}

/* Estructura */
.uh-pdp__top {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(24px, 4.5vw, 72px);
	align-items: start;
	padding-bottom: 48px;
}

/* Galeria */
.uh-pdp__gallery {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 12px;
	position: sticky;
	top: 110px;
}
.uh-pdp__gallery--single {
	grid-template-columns: minmax(0, 1fr);
}
.uh-pdp__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: min(640px, 80vh);
	overflow-y: auto;
	scrollbar-width: none;
}
.uh-pdp__thumb {
	flex: 0 0 auto;
	width: 76px;
	aspect-ratio: 1;
	padding: 0;
	border: 1px solid transparent;
	border-radius: var(--uh-r-sm);
	background: var(--uh-soft);
	overflow: hidden;
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.2s, border-color 0.2s;
}
.uh-pdp__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.uh-pdp__thumb:hover,
.uh-pdp__thumb[aria-current='true'] {
	opacity: 1;
}
.uh-pdp__thumb[aria-current='true'] {
	border-color: var(--uh-fg);
}
.uh-pdp__stage {
	position: relative;
	min-width: 0;
}
.uh-pdp__track {
	position: relative;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	border-radius: var(--uh-r);
	background: var(--uh-soft);
	aspect-ratio: 1;
	outline-offset: 3px;
}
.uh-pdp__track::-webkit-scrollbar {
	display: none;
}
.uh-pdp__slide {
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: center;
}
.uh-pdp__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.uh-pdp__slide--empty {
	display: grid;
	place-items: center;
}
.uh-pdp__slide--empty img {
	width: 50%;
	height: auto;
	opacity: 0.35;
}
.uh-pdp__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--uh-fg);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
}

/* Resumen */
.uh-pdp__summary {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.uh-pdp__rating {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 14px;
	color: var(--uh-muted);
	text-decoration: none;
	align-self: flex-start;
}
.uh-pdp__title {
	margin: 0 0 14px;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1.1;
	font-weight: 400;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.uh-pdp__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 30px;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.uh-pdp__price .price {
	display: inline-flex;
	flex-direction: row-reverse;
	align-items: baseline;
	gap: 12px;
}
.uh-pdp__price ins {
	text-decoration: none;
	font-weight: 500;
	color: var(--uh-fg);
}
.uh-pdp__price del {
	font-size: 18px;
	color: var(--uh-muted);
	opacity: 1;
}
.uh-pdp__save {
	padding: 5px 10px;
	border-radius: 6px;
	background: linear-gradient(135deg, #e4c47a, var(--uh-gold) 55%, var(--uh-gold-dark));
	color: #1a1305;
	font-size: 13px;
	font-weight: 500;
}
.uh-pdp__tax {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--uh-muted);
}
.uh-pdp__short {
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.5;
	color: #333;
}
.uh-pdp__short ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}
.uh-pdp__short li {
	position: relative;
	padding-left: 28px;
}
.uh-pdp__short li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--uh-fg)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
		center / 11px no-repeat;
}
.uh-pdp__short p {
	margin: 0 0 10px;
}

/* Stock */
.uh-pdp__stock {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 22px 0 14px;
	font-size: 14px;
}
.uh-pdp__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--uh-green);
	box-shadow: 0 0 0 4px rgba(20, 160, 90, 0.18);
}
.uh-pdp__stock.is-low .uh-pdp__dot {
	background: var(--uh-orange);
	box-shadow: 0 0 0 4px rgba(240, 138, 0, 0.18);
}
.uh-pdp__stock.is-out .uh-pdp__dot {
	background: var(--uh-red);
	box-shadow: 0 0 0 4px rgba(211, 58, 44, 0.18);
}

/* Boton y cantidad */
.uh-btn,
.uh-pdp .single_add_to_cart_button,
.uh-pdp #respond .form-submit input {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--uh-r-sm);
	background: var(--uh-fg);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}
.uh-btn:hover,
.uh-pdp .single_add_to_cart_button:hover,
.uh-pdp #respond .form-submit input:hover {
	background: #2b2b2b;
}
.uh-pdp .single_add_to_cart_button:active {
	transform: scale(0.99);
}
.uh-pdp .single_add_to_cart_button.disabled,
.uh-pdp .single_add_to_cart_button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
.uh-pdp form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}
.uh-pdp form.cart .single_add_to_cart_button {
	flex: 1 1 200px;
}
.uh-pdp .quantity {
	display: inline-flex;
	align-items: center;
	height: 56px;
	border: 1px solid var(--uh-line);
	border-radius: var(--uh-r-sm);
	background: #fff;
}
.uh-pdp .quantity input.qty {
	width: 44px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 16px;
	-moz-appearance: textfield;
	appearance: textfield;
}
.uh-pdp .quantity input.qty::-webkit-outer-spin-button,
.uh-pdp .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.uh-qty__btn {
	width: 44px;
	height: 100%;
	border: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	color: var(--uh-fg);
	cursor: pointer;
}
.uh-qty__btn:hover {
	background: var(--uh-soft);
}
.uh-pdp .quantity .screen-reader-text {
	position: absolute;
}

/* Variaciones (para productos variables) */
.uh-pdp table.variations {
	width: 100%;
	margin: 0 0 16px;
	border-collapse: collapse;
}
.uh-pdp table.variations th,
.uh-pdp table.variations td {
	display: block;
	padding: 0 0 8px;
	text-align: left;
	font-weight: 500;
}
.uh-pdp table.variations select {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1px solid var(--uh-line);
	border-radius: var(--uh-r-sm);
	background: #fff;
}
.uh-pdp .reset_variations {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	color: var(--uh-muted);
}
.uh-pdp .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	width: 100%;
}
.uh-pdp .woocommerce-variation-add-to-cart .single_add_to_cart_button {
	flex: 1 1 200px;
}
.uh-pdp .woocommerce-variation-price {
	margin-bottom: 12px;
	font-size: 22px;
}

/* Garantias */
.uh-pdp__trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 22px 0 8px;
	padding: 0;
	list-style: none;
}
.uh-pdp__trust li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px;
	border-radius: var(--uh-r-sm);
	background: var(--uh-soft);
	font-size: 13px;
	line-height: 1.25;
	text-align: center;
}

/* Acordeon */
.uh-pdp__acc {
	margin-top: 16px;
	border-top: 1px solid var(--uh-line);
}
.uh-pdp__details {
	border-bottom: 1px solid var(--uh-line);
}
.uh-pdp__details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	font-size: 16px;
	cursor: pointer;
	list-style: none;
}
.uh-pdp__details summary::-webkit-details-marker {
	display: none;
}
.uh-pdp__details summary .uh-icon {
	transition: transform 0.25s;
}
.uh-pdp__details[open] summary .uh-icon {
	transform: rotate(45deg);
}
.uh-pdp__panel {
	padding: 0 0 20px;
	font-size: 15px;
	line-height: 1.55;
	color: #333;
}
.uh-pdp__panel p {
	margin: 0;
}
.uh-pdp table.woocommerce-product-attributes {
	width: 100%;
	border-collapse: collapse;
}
.uh-pdp .woocommerce-product-attributes th,
.uh-pdp .woocommerce-product-attributes td {
	padding: 9px 0;
	border-bottom: 1px solid var(--uh-line);
	text-align: left;
	font-weight: 400;
	vertical-align: top;
}
.uh-pdp .woocommerce-product-attributes th {
	width: 38%;
	color: var(--uh-muted);
}
.uh-pdp .woocommerce-product-attributes tr:last-child th,
.uh-pdp .woocommerce-product-attributes tr:last-child td {
	border-bottom: 0;
}
.uh-pdp .woocommerce-product-attributes p {
	margin: 0;
}
.uh-pdp__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 18px 0 0;
	font-size: 13px;
	color: var(--uh-muted);
}
.uh-pdp__meta a {
	color: inherit;
}

/* Secciones inferiores */
.uh-pdp__section {
	padding: 48px 0;
	border-top: 1px solid var(--uh-line);
}
.uh-pdp__h2 {
	margin: 0 0 28px;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.uh-pdp__prose {
	max-width: 760px;
	font-size: 17px;
	line-height: 1.6;
	color: #2a2a2a;
}
.uh-pdp__prose h3 {
	margin: 32px 0 10px;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.01em;
}
.uh-pdp__prose h3:first-child {
	margin-top: 0;
}
.uh-pdp__prose p,
.uh-pdp__prose ul,
.uh-pdp__prose ol {
	margin: 0 0 14px;
}
.uh-pdp__prose ul,
.uh-pdp__prose ol {
	padding-left: 22px;
}
.uh-pdp__prose img {
	border-radius: var(--uh-r);
}

/* Resenas */
.uh-pdp #reviews {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px 64px;
	align-items: start;
}
.uh-pdp #reviews .woocommerce-Reviews-title,
.uh-pdp #reviews .comment-reply-title {
	display: block;
	margin: 0 0 20px;
	font-size: 26px;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.uh-pdp .woocommerce-noreviews,
.uh-pdp .woocommerce-verification-required {
	margin: 0;
	color: var(--uh-muted);
}
.uh-pdp ol.commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 22px;
}
.uh-pdp ol.commentlist li .comment_container {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 14px;
}
.uh-pdp ol.commentlist img.avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}
.uh-pdp ol.commentlist .comment-text {
	padding-bottom: 22px;
	border-bottom: 1px solid var(--uh-line);
}
.uh-pdp ol.commentlist .meta {
	margin: 0 0 6px;
	font-size: 14px;
	color: var(--uh-muted);
}
.uh-pdp ol.commentlist .meta strong {
	color: var(--uh-fg);
	font-weight: 500;
}
.uh-pdp ol.commentlist .description p {
	margin: 0;
	line-height: 1.5;
}
.uh-pdp #review_form_wrapper {
	padding: 28px;
	border-radius: var(--uh-r);
	background: var(--uh-soft);
}
.uh-pdp #respond p {
	margin: 0 0 16px;
}
.uh-pdp #respond label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
}
.uh-pdp #respond input[type='text'],
.uh-pdp #respond input[type='email'],
.uh-pdp #respond textarea,
.uh-pdp #respond select {
	width: 100%;
	padding: 14px;
	border: 1px solid var(--uh-line);
	border-radius: var(--uh-r-sm);
	background: #fff;
	font: inherit;
	font-size: 15px;
}
.uh-pdp #respond .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}
.uh-pdp #respond .comment-form-cookies-consent label {
	margin: 0;
	font-size: 13px;
	color: var(--uh-muted);
}

/* Estrellas */
.uh-pdp .star-rating {
	position: relative;
	display: inline-block;
	width: 5.6em;
	height: 1.1em;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.1;
	letter-spacing: 0.08em;
	color: transparent;
}
.uh-pdp .star-rating::before,
.uh-pdp .star-rating span::before {
	content: '★★★★★';
	position: absolute;
	top: 0;
	left: 0;
	color: #d7d7d7;
}
.uh-pdp .star-rating span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	overflow: hidden;
	color: transparent;
}
.uh-pdp .star-rating span::before {
	color: var(--uh-gold);
}
.uh-pdp p.stars {
	margin: 0 0 16px;
}
.uh-pdp p.stars span {
	display: inline-flex;
	gap: 4px;
}
.uh-pdp p.stars a {
	position: relative;
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	font-size: 26px;
	text-indent: -999em;
	overflow: hidden;
}
.uh-pdp p.stars a::before {
	content: '★';
	position: absolute;
	top: 0;
	left: 0;
	text-indent: 0;
	line-height: 1.2;
	color: #cfcfcf;
}
.uh-pdp p.stars:hover a::before {
	color: var(--uh-gold);
}
.uh-pdp p.stars a:hover ~ a::before {
	color: #cfcfcf;
}
.uh-pdp p.stars.selected a.active::before {
	color: var(--uh-gold);
}
.uh-pdp p.stars.selected a.active ~ a::before {
	color: #cfcfcf;
}
.uh-pdp p.stars.selected a:not(.active)::before {
	color: var(--uh-gold);
}

/* Relacionados */
.uh-pdp__cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.uh-card__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}
.uh-card__media {
	position: relative;
	display: block;
	margin-bottom: 8px;
	border-radius: var(--uh-r);
	background: var(--uh-soft);
	overflow: hidden;
	aspect-ratio: 1;
}
.uh-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}
.uh-card__link:hover .uh-card__media img {
	transform: scale(1.03);
}
.uh-card__title {
	font-size: 16px;
	line-height: 1.3;
}
.uh-card__price {
	font-size: 16px;
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 8px;
	align-items: baseline;
}
.uh-card__price .price {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 8px;
	align-items: baseline;
}
.uh-card__price ins {
	text-decoration: none;
	font-weight: 500;
}
.uh-card__price del {
	font-size: 14px;
	color: var(--uh-muted);
}

/* Barra fija */
.uh-pdp__sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px max(var(--page-margin, 20px), calc((100vw - var(--page-width, 90rem)) / 2 + var(--page-margin, 20px))) calc(12px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--uh-line);
	transform: translateY(110%);
	transition: transform 0.3s ease;
}
.uh-pdp__sticky.is-visible {
	transform: none;
}
.uh-pdp__sticky-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.2;
}
.uh-pdp__sticky-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 15px;
}
.uh-pdp__sticky-price {
	font-size: 15px;
	font-weight: 500;
}
.uh-pdp__sticky-price del {
	margin-left: 6px;
	color: var(--uh-muted);
	font-weight: 400;
}
.uh-pdp__sticky-price ins {
	text-decoration: none;
}
.uh-pdp__sticky .uh-btn {
	flex: 0 0 auto;
	min-height: 48px;
}

/* Avisos de WooCommerce (anadido al carrito, errores) */
.woocommerce-notices-wrapper {
	max-width: var(--page-width, 90rem);
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin: 16px 0 0;
	padding: 14px 18px;
	border-radius: 10px;
	border-left: 4px solid var(--uh-green, #14a05a);
	background: #f4f4f4;
	font-size: 15px;
	list-style: none;
}
.woocommerce-error {
	border-left-color: #d33a2c;
	flex-direction: column;
	align-items: flex-start;
}
.woocommerce-message .button {
	order: 2;
	padding: 10px 18px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}

/* Tablet y movil */
@media (max-width: 1100px) {
	.uh-pdp__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 899px) {
	.uh-pdp__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.uh-pdp__gallery {
		position: static;
		grid-template-columns: minmax(0, 1fr);
	}
	.uh-pdp__stage {
		order: 1;
	}
	.uh-pdp__thumbs {
		order: 2;
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
	}
	.uh-pdp__thumb {
		width: 64px;
	}
	.uh-pdp__track {
		border-radius: var(--uh-r-sm);
	}
	.uh-pdp #reviews {
		grid-template-columns: minmax(0, 1fr);
	}
	.uh-pdp__section {
		padding: 36px 0;
	}
	.uh-pdp__price {
		font-size: 26px;
	}
}
@media (max-width: 480px) {
	.uh-pdp__trust {
		gap: 8px;
	}
	.uh-pdp__trust li {
		padding: 12px 4px;
		font-size: 12px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.uh-pdp__sticky,
	.uh-pdp__details summary .uh-icon,
	.uh-card__media img {
		transition: none;
	}
}
