/* LFAB Taverna — página de producto */

.lt-pdp-wrap { max-width: 1320px; margin: 0 auto; padding: 26px 24px 0; }
.lt-pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

/* ── Galería ──────────────────────────────────────── */
.lt-pdp-gallery { position: sticky; top: 100px; }
.lt-pdp-main {
	position: relative; aspect-ratio: 1 / 1;
	background: linear-gradient(160deg, #F7F3EC, #EAE3D5);
	border-radius: 20px; overflow: hidden; border: 1px solid var(--lt-border);
}
.lt-pdp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lt-pdp-main .lt-product-badge { top: 18px; left: 18px; font-size: 11px; padding: 6px 12px; }
.lt-pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.lt-thumb {
	width: 76px; height: 76px; border-radius: 12px; overflow: hidden;
	background: #EAE3D5; border: 2px solid transparent; padding: 0; flex-shrink: 0;
	cursor: pointer; transition: border-color .2s ease;
}
.lt-thumb.is-active { border-color: var(--lt-copper); }
.lt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Info ─────────────────────────────────────────── */
.lt-pdp-info { animation: ltFade .6s ease both; }
.lt-pdp-brand { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lt-copper); margin-bottom: 10px; }
.lt-pdp-title { font-size: clamp(28px, 3.6vw, 42px); color: var(--lt-cream); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 14px; }

.lt-pdp-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.lt-pdp-stars { color: var(--lt-copper); }
.lt-pdp-stars small { font-size: 13px; color: var(--lt-muted); }
.lt-dot { width: 4px; height: 4px; border-radius: 999px; background: #B9B2A4; }
.lt-stock { font-size: 13px; }
.lt-stock--in { color: var(--lt-green); }
.lt-stock--out { color: var(--lt-muted); }

.lt-pdp-pricing { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.lt-pdp-price, .lt-pdp-price .woocommerce-Price-amount {
	font-family: var(--lt-font-display); font-size: 38px; font-weight: 700; color: var(--lt-cream);
}
.lt-pdp-price del { opacity: .4; font-size: 22px; }
.lt-pdp-price ins { text-decoration: none; }
.lt-pdp-transfer {
	font-size: 14px; color: var(--lt-green); background: var(--lt-green-soft);
	border: 1px solid var(--lt-green-line); padding: 4px 10px; border-radius: 999px;
}
.lt-pdp-transfer .woocommerce-Price-amount { font-size: 14px; font-weight: 600; color: var(--lt-green); }
.lt-pdp-promo { font-size: 13px; color: var(--lt-muted); margin-bottom: 26px; }
.lt-pdp-excerpt { font-size: 15.5px; line-height: 1.65; color: #514D45; margin-bottom: 26px; }
.lt-pdp-excerpt p { margin: 0 0 10px; }

/* ── Atributos (compactos, se ajustan al contenido) ── */
.lt-pdp-attrs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.lt-pdp-attr {
	background: var(--lt-surface); border: 1px solid var(--lt-border);
	border-radius: 12px; padding: 10px 16px;
	flex: 0 1 auto; min-width: 110px;
}
.lt-pdp-attr-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8A8477; margin-bottom: 5px; }
.lt-pdp-attr-value { font-size: 14.5px; color: var(--lt-text); font-weight: 600; }

/* ── Compra (form nativo Woo estilado) ────────────── */
.lt-pdp-buy form.cart { display: flex; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; align-items: stretch; }
/* Woo renderiza la cantidad como input hidden cuando min=max (stock 1): ocultamos la píldora vacía */
.lt-pdp-buy .quantity.hidden,
.lt-pdp-buy .quantity:not(:has(input[type="number"], input[type="text"])) { display: none; }
.lt-pdp-buy .quantity {
	display: flex; align-items: center;
	background: rgba(17,17,17,.05); border: 1px solid var(--lt-border-strong);
	border-radius: 999px; padding: 0 10px; height: 56px;
}
.lt-pdp-buy .quantity input[type="number"] {
	width: 56px; height: 100%; background: none; border: none; text-align: center;
	color: var(--lt-strong); font-family: inherit; font-size: 17px; font-weight: 600; outline: none;
	-moz-appearance: textfield; appearance: textfield;
}
.lt-pdp-buy .quantity input::-webkit-outer-spin-button,
.lt-pdp-buy .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lt-pdp-buy button.single_add_to_cart_button {
	flex: 1; min-width: 220px; height: 56px;
	background: var(--lt-copper); color: var(--lt-bg); border: none;
	font-family: inherit; font-size: 16px; font-weight: 600; border-radius: 999px; cursor: pointer;
	box-shadow: 0 14px 30px -12px rgba(184,145,112,.6);
}
.lt-pdp-buy button.single_add_to_cart_button:hover { filter: brightness(1.08); }
.lt-pdp-buy .variations { width: 100%; }
.lt-pdp-buy .variations td { padding: 4px 0; border: none; }
.lt-pdp-buy .variations label { color: var(--lt-muted-2); font-size: 13px; }
.lt-pdp-buy table { border: none; background: none; }

/* ── Trust + acordeones ───────────────────────────── */
.lt-pdp-trust {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
	margin: 24px 0; padding: 20px 0;
	border-top: 1px solid var(--lt-border); border-bottom: 1px solid var(--lt-border);
}

.lt-pdp-accordions details { border-bottom: 1px solid var(--lt-border); }
.lt-pdp-accordions summary {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 2px; cursor: pointer; list-style: none;
	font-family: var(--lt-font-display); font-size: 15.5px; font-weight: 600; color: var(--lt-text);
}
.lt-pdp-accordions summary::-webkit-details-marker { display: none; }
.lt-pdp-accordions summary span { color: var(--lt-copper); font-size: 20px; line-height: 1; transition: transform .2s; }
.lt-pdp-accordions details[open] summary span { transform: rotate(45deg); }
.lt-pdp-accordions details > div { font-size: 14px; line-height: 1.6; color: #6B6B6B; padding: 0 2px 20px; }

/* ── Relacionados ─────────────────────────────────── */
.lt-pdp-related { max-width: 1320px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 24px 40px; }

/* ── Sticky buy (mobile) ──────────────────────────── */
.lt-sticky-buy {
	display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
	background: rgba(17,17,17,.96); backdrop-filter: blur(12px);
	border-top: 1px solid var(--lt-copper-line); padding: 12px 16px;
	align-items: center; gap: 12px;
}
.lt-sticky-buy-name { font-size: 11px; color: var(--lt-muted); }
.lt-sticky-buy-price, .lt-sticky-buy-price .woocommerce-Price-amount {
	font-family: var(--lt-font-display); font-size: 18px; font-weight: 700; color: var(--lt-cream);
}
.lt-sticky-buy .lt-btn { flex: 1; height: 50px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
	.lt-pdp-grid { grid-template-columns: 1fr; }
	.lt-pdp-gallery { position: static; }
	.lt-sticky-buy { display: flex; }
	.lt-pdp { padding-bottom: 84px; }
	/* WhatsApp por encima de la barra de compra sticky */
	body.single-product #ht-ctc-chat { bottom: 96px !important; }
}
