/*
 * PF Producto — Product Page.dc.html.
 */

.pf-pdp-root {
	container-type: inline-size;
}

.pf-pdp {
	padding: 18px 0 72px;
}

.pf-pdp .pf-crumbs ol {
	margin-bottom: 26px;
}

.pf-pdp__main {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 56px;
	align-items: start;
}

/* ---------- Galería ---------- */

.pf-pdp__gallery {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 14px;
	min-width: 0;
}

.pf-pdp__gallery.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.pf-pdp__thumbs {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pf-pdp-root .pf-pdp__thumb {
	display: block;
	width: 100%;
	height: 74px;
	padding: 0;
	border: 1.5px solid var(--pf-line);
	border-radius: 8px;
	background: var(--pf-soft);
	overflow: hidden;
	cursor: pointer;
}

.pf-pdp-root .pf-pdp__thumb.is-active,
.pf-pdp-root .pf-pdp__thumb:hover {
	border-color: var(--pf-orange);
	background: var(--pf-soft);
}

.pf-pdp__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pf-pdp__stage {
	position: relative;
	min-width: 0;
	border: 1px solid var(--pf-line);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.pf-pdp__slide {
	display: block;
}

.pf-pdp__slide[hidden] {
	display: none;
}

.pf-pdp-root .pf-pdp__img,
.pf-pdp__stage > img {
	display: block;
	width: 100%;
	height: min(520px, 60vw);
	max-width: none;
	object-fit: contain;
	cursor: zoom-in;
}

.pf-pdp__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
	padding: 5px 10px;
	border-radius: 4px;
	background: var(--pf-ink);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

/* ---------- Caja de compra ---------- */

.pf-pdp__buy {
	min-width: 0;
}

.pf-pdp-root .pf-pdp__kicker {
	margin: 0 0 10px;
	font-family: var(--pf-font-display);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.pf-pdp__kicker a {
	color: var(--pf-orange);
}

.pf-pdp-root .pf-pdp__title {
	margin: 0 0 12px;
	font-family: var(--pf-font-display);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--pf-ink);
	text-wrap: pretty;
}

.pf-pdp-root .pf-pdp__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--pf-text-3);
}

.pf-pdp__meta > * + *::before {
	content: "|";
	margin-right: 12px;
	color: #d8d9e6;
}

.pf-pdp__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--pf-text-3);
}

.pf-stars {
	--pf-rating: 0;
	position: relative;
	display: inline-block;
	font-size: 14px;
	letter-spacing: 1px;
	line-height: 1;
}

.pf-stars::before {
	content: "★★★★★";
	color: #d8d9e6;
}

.pf-stars::after {
	content: "★★★★★";
	position: absolute;
	inset: 0;
	width: calc(var(--pf-rating) / 5 * 100%);
	overflow: hidden;
	color: var(--pf-orange);
}

.pf-pdp__price {
	margin-bottom: 6px;
	font-family: var(--pf-font-display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--pf-ink);
}

.pf-pdp__price del {
	margin-left: 10px;
	font-size: 16px;
	font-weight: 500;
	color: var(--pf-muted);
	order: 2;
}

.pf-pdp__price ins {
	text-decoration: none;
}

.pf-pdp__price .woocommerce-price-suffix {
	display: none; /* La nota de abajo ya lo dice. */
}

.pf-pdp-root .pf-pdp__note {
	margin: 0 0 22px;
	font-size: 12.5px;
	color: var(--pf-text-3);
}

.pf-pdp__short {
	margin: 0 0 20px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--pf-text-2);
}

/* Formulario real de WooCommerce. */
.pf-pdp__cart .stock {
	margin: 0 0 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: #1e8f5f;
}

.pf-pdp__cart .stock.out-of-stock {
	color: #c0392b;
}

.pf-pdp__cart form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 22px;
}

.pf-pdp__cart form.variations_form {
	display: block;
}

.pf-pdp__cart .quantity {
	display: flex;
	align-items: center;
	flex: none;
	margin: 0;
	border: 1.5px solid var(--pf-line-2);
	border-radius: 9px;
	overflow: hidden;
}

.pf-pdp-root .pf-pdp__cart .quantity .qty {
	width: 44px;
	min-height: 52px;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--pf-ink);
	font-family: var(--pf-font-display);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	-moz-appearance: textfield;
}

.pf-pdp__cart .quantity .qty::-webkit-outer-spin-button,
.pf-pdp__cart .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Los − / + propios, o los .quantity-button que ya pone un fragmento del
   tema hijo (entonces el JS no añade los suyos). */
.pf-pdp-root .pf-qty__btn,
.pf-pdp-root .pf-pdp__cart .quantity .quantity-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: auto;
	min-height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--pf-text-2);
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.pf-pdp-root .pf-pdp__cart .quantity .quantity-button:disabled {
	opacity: 0.35;
	cursor: default;
}

.pf-pdp-root .pf-qty__btn:hover,
.pf-pdp-root .pf-qty__btn:focus,
.pf-pdp-root .pf-pdp__cart .quantity .quantity-button:hover,
.pf-pdp-root .pf-pdp__cart .quantity .quantity-button:focus {
	background: var(--pf-soft);
	color: var(--pf-ink);
}

/* El tema hijo fuerza padding y radio con !important, y el tema pinta el
   botón con un selector más largo: por eso el selector y los !important. */
body .pf-pdp-root .pf-pdp__cart button.single_add_to_cart_button.button {
	flex: 1 1 200px;
	min-height: 56px;
	margin: 0;
	padding: 16px !important;
	border: 0;
	border-radius: 9px !important;
	background-color: var(--pf-orange);
	color: #fff;
	font-family: var(--pf-font-display);
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
}

body .pf-pdp-root .pf-pdp__cart button.single_add_to_cart_button.button:hover,
body .pf-pdp-root .pf-pdp__cart button.single_add_to_cart_button.button:focus {
	background-color: var(--pf-orange-dark);
	color: #fff;
}

body .pf-pdp-root .pf-pdp__cart button.single_add_to_cart_button.button.disabled {
	opacity: 0.5;
}

.pf-pdp-root .pf-pdp__buynow {
	flex: 1 1 100%;
	min-height: 54px;
	margin: 0;
	padding: 14px;
	border: 1.5px solid var(--pf-ink);
	border-radius: 9px;
	background: #fff;
	color: var(--pf-ink);
	font-family: var(--pf-font-display);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.pf-pdp-root .pf-pdp__buynow:hover,
.pf-pdp-root .pf-pdp__buynow:focus {
	background: var(--pf-ink);
	color: #fff;
}

/* Variables (tabla de Woo). */
.pf-pdp__cart table.variations {
	width: 100%;
	margin: 0 0 14px;
	border: 1px solid var(--pf-line);
	border-radius: 12px;
	border-collapse: separate;
}

.pf-pdp__cart table.variations th,
.pf-pdp__cart table.variations td {
	display: block;
	padding: 12px 16px 0;
	border: 0;
	background: none;
	text-align: left;
}

.pf-pdp__cart table.variations td {
	padding-bottom: 12px;
}

.pf-pdp__cart table.variations label {
	font-family: var(--pf-font-display);
	font-size: 13px;
	font-weight: 700;
	color: var(--pf-ink);
}

.pf-pdp-root .pf-pdp__cart table.variations select {
	width: 100%;
	min-height: 46px;
	padding: 8px 12px;
	border: 1.5px solid var(--pf-line-2);
	border-radius: 9px;
	background-color: #fff;
}

.pf-pdp__cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.pf-pdp__cart .reset_variations {
	font-size: 12.5px;
	color: var(--pf-text-3);
}

.pf-pdp__assure {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 20px 0 0;
	list-style: none;
	border-top: 1px solid var(--pf-line);
}

.pf-pdp__assure li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--pf-text);
}

.pf-pdp__tick {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 50%;
	background: #fff1e8;
	color: var(--pf-orange);
}

/* ---------- Pestañas ---------- */

.pf-pdp__tabs {
	margin-top: 64px;
}

.pf-tabs__list {
	display: flex;
	gap: 32px;
	overflow-x: auto;
	border-bottom: 1px solid var(--pf-line);
	scrollbar-width: none;
}

.pf-pdp-root .pf-tabs__tab {
	flex: none;
	margin: 0 0 -1px;
	padding: 0 0 14px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: transparent;
	color: var(--pf-muted);
	font-family: var(--pf-font-display);
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
}

.pf-pdp-root .pf-tabs__tab:hover,
.pf-pdp-root .pf-tabs__tab:focus {
	background: transparent;
	color: var(--pf-ink);
}

.pf-pdp-root .pf-tabs__tab[aria-selected="true"] {
	border-bottom-color: var(--pf-orange);
	color: var(--pf-ink);
}

.pf-tabs__panel {
	padding: 32px 0 0;
}

.pf-tabs__panel[hidden] {
	display: none;
}

/* Sin JS: todos los paneles, cada uno con su título. */
.pf-pdp:not(.is-js) .pf-tabs__list {
	display: none;
}

.pf-pdp.is-js .pf-tabs__nojs {
	display: none;
}

.pf-pdp-root .pf-tabs__nojs {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 800;
}

.pf-pdp__desc {
	max-width: 820px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--pf-text-2);
}

.pf-pdp__desc img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.pf-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 56px;
	max-width: 900px;
	margin: 0;
}

.pf-specs__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid #f2f2f6;
}

.pf-specs dt {
	font-size: 13.5px;
	color: var(--pf-text-3);
}

.pf-specs dd {
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pf-ink);
	text-align: right;
}

/* Reseñas (plantilla de Woo). */
.pf-pdp__reviews .woocommerce-Reviews-title {
	font-size: 18px;
}

.pf-pdp__reviews .commentlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pf-pdp__reviews .comment_container {
	padding: 18px 0;
	border-bottom: 1px solid #f2f2f6;
}

/* ---------- Relacionados ---------- */

.pf-pdp__related {
	margin-top: 64px;
}

.pf-pdp-root .pf-pdp__h2 {
	margin: 0 0 22px;
	font-family: var(--pf-font-display);
	font-size: 22px;
	font-weight: 800;
	color: var(--pf-ink);
}

/* Botón secundario en relacionados, como en el diseño. */
body .pf-pdp-root .pf-pdp__related .pf-card__action a.pf-card__btn,
body .pf-pdp-root .pf-pdp__related .pf-card__action a.pf-card__btn:visited {
	border: 1.5px solid var(--pf-line-2);
	background-color: #fff;
	color: var(--pf-ink);
}

body .pf-pdp-root .pf-pdp__related .pf-card__action a.pf-card__btn:hover {
	border-color: var(--pf-orange);
	background-color: var(--pf-orange);
	color: #fff;
}

/* ---------- Barra fija de compra (teléfono) ---------- */

.pf-pdp__sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;
	display: none;
	align-items: center;
	gap: 12px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
	background: #fff;
	border-top: 1px solid var(--pf-line);
	box-shadow: 0 -8px 24px rgba(18, 23, 58, 0.08);
}

.pf-pdp__sticky-price {
	flex: 1;
	min-width: 0;
	font-family: var(--pf-font-display);
	font-size: 17px;
	font-weight: 800;
	color: var(--pf-ink);
}

.pf-pdp__sticky-price del,
.pf-pdp__sticky-price .woocommerce-price-suffix {
	display: none;
}

.pf-pdp__sticky-price ins {
	text-decoration: none;
}

.pf-pdp-root .pf-pdp__sticky-btn {
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 9px;
	background: var(--pf-orange);
	color: #fff;
	font-family: var(--pf-font-display);
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

/* ---------- Tablet ---------- */

@container (max-width: 960px) {
	.pf-pdp__main {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}

	.pf-pdp-root .pf-pdp__img,
	.pf-pdp__stage > img {
		height: min(460px, 80vw);
	}
}

/* ---------- Teléfono ---------- */

@container (max-width: 600px) {
	.pf-pdp {
		padding: 8px 0 96px; /* Espacio para la barra fija. */
	}

	.pf-pdp .pf-crumbs ol {
		margin-bottom: 14px;
	}

	/* Galería: foto arriba, miniaturas en fila deslizable debajo. */
	.pf-pdp__gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.pf-pdp__thumbs {
		order: 2;
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.pf-pdp-root .pf-pdp__thumb {
		flex: none;
		width: 64px;
		height: 64px;
	}

	.pf-pdp-root .pf-pdp__img,
	.pf-pdp__stage > img {
		height: 320px;
	}

	.pf-pdp__tabs,
	.pf-pdp__related {
		margin-top: 40px;
	}

	.pf-tabs__list {
		gap: 22px;
	}

	.pf-specs {
		grid-template-columns: minmax(0, 1fr);
	}

	.pf-pdp__sticky:not([hidden]) {
		display: flex;
	}
}
