/* ============================================================
   PDP — Product Detail Page
   ============================================================ */

/* ── PDP Layout ── */
.pdp { --pdp-gap: 48px; }
.pdp__inner {
	display: grid;
	/*
	 * Three named areas:
	 *   hero    = first product image   (left col, row 1)
	 *   summary = product info / CTA    (right col, spans both rows — sticky)
	 *   rest    = remaining images      (left col, row 2)
	 *
	 * On mobile (≤ 1023px) the grid collapses to a single column and the
	 * natural DOM order gives: hero → summary → rest.
	 */
	grid-template-columns: 1fr 440px;
	grid-template-rows: auto 1fr;
	grid-template-areas:
		"hero    summary"
		"rest    summary";
	column-gap: var(--pdp-gap); /* 48px tra gallery e colonna summary */
	row-gap: 4px;               /* stesso gap usato tra le singole immagini */
	align-items: start;
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

/* ── Gallery containers ── */
.pdp-gallery--hero { grid-area: hero;    min-width: 0; }
.pdp-gallery--rest { grid-area: rest;    min-width: 0; }

/* Legacy selector kept for any remaining references */
.pdp__gallery-col {
	min-width: 0;
}

/* ── SVI Gallery overrides — Gentle Monster vertical stack ────
   SVI renderizza .gallery-svi > .svi_wrapper > .woosvi_strap
   In stacked mode aggiunge .svi-stacked-parent + ul.svistacked  */

/* Rimuovi sticky di default su .woocommerce-product-gallery */
.pdp__gallery-col .woocommerce-product-gallery,
.pdp__gallery-col .gallery-svi {
	position: static !important;
	opacity: 1 !important;
}

/* Wrapper SVI: occupa tutta la larghezza */
.pdp__gallery-col .woosvi_strap {
	width: 100% !important;
	max-width: 100% !important;
	max-height: none !important;
}

/* ── Stacked mode (SVI Settings → Stacked Layout → ON) ─────── */
/* La lista stacked diventa una colonna a larghezza piena */
.pdp__gallery-col ul.svistacked {
	display: flex !important;
	flex-direction: column;
	gap: 4px;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
}

.pdp__gallery-col ul.svistacked li,
.pdp__gallery-col ul.svistacked.columns-1 li {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	line-height: 0;
	background: var(--color-bg-alt);
}

.pdp__gallery-col ul.svistacked li img,
.pdp__gallery-col ul.svistacked li a img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block !important;
	max-width: 100% !important;
	max-height: none !important;
}

/* Sezione stacked: rimuovi indent/margin di SVI */
.pdp__gallery-col div.svi-stackedsection {
	display: block !important;
	width: 100% !important;
	margin-top: 0 !important;
}

/* ── Non-stacked fallback: nascondi i thumb di lato, main full ─ */
.pdp__gallery-col .svi-thumbsection,
.pdp__gallery-col .svi-gallery-thumbs {
	display: none !important;
}
.pdp__gallery-col .svi-mainsection,
.pdp__gallery-col .svi-gallery-top {
	flex-basis: 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* Immagine principale (slider non-stacked): aspect ratio */
.pdp__gallery-col .svi-mainsection img,
.pdp__gallery-col .svi-gallery-top img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* ── Custom theme gallery fallback (.pdp-gallery from product-image.php) ───
   Used when SVI is not configured for a product or validate_run() = false.
   Stacks all product images vertically, matching the SVI stacked style.    */
.pdp-gallery {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.pdp-gallery__figure {
	margin: 0;
	line-height: 0;
	position: relative;
	background: var(--color-bg-alt);
}

.pdp-gallery__img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
}

/* Badge "Sale" */
.pdp-gallery__sale-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
}

/* ── Summary — sticky mentre la gallery scorre ── */
.pdp__summary-col {
	grid-area: summary;
	position: sticky;
	top: calc(var(--header-height) + 24px);
	align-self: start;
	max-height: calc(100vh - var(--header-height) - 48px);
	overflow-y: auto;
	scrollbar-width: none;
	display: flex;
	flex-direction: column;
	padding: 40px 0;
}
.pdp__summary-col::-webkit-scrollbar { display: none; }
.pdp__summary {
	flex: 1;
}
.pdp__overline {
	color: var(--color-text-secondary);
	margin: 0 0 12px;
}

/* WC hook outputs — title */
.pdp__summary .product_title {
	font-size: var(--typo-h2-size, 36px);
	font-weight: var(--typo-h2-weight, 700);
	line-height: var(--typo-h2-lh, 1.15);
	margin: 0 0 12px;
}

/* Price */
.pdp__summary .price {
	font-size: var(--typo-price_large-size, 22px);
	font-weight: var(--typo-price_large-weight, 600);
	margin-bottom: 24px;
	display: block;
}
.pdp__summary .price del { color: var(--color-text-secondary); font-size: 0.8em; margin-right: 8px; }
.pdp__summary .price ins { color: var(--color-sale); text-decoration: none; }

/* Short description */
.pdp__summary .woocommerce-product-details__short-description {
	font-size: var(--typo-body-size, 15px);
	color: var(--color-text-secondary);
	line-height: 1.6;
	margin-bottom: 24px;
}

/* Variations — stacked: label above swatches/select */
.pdp__summary .variations {
	display: block;
	border: none;
	margin-bottom: 24px;
	width: 100%;
}
.pdp__summary .variations tbody { display: block; }
.pdp__summary .variations tr     { display: block; margin-bottom: 20px; }
.pdp__summary .variations tr:last-child { margin-bottom: 0; }

/* ── Variation Swatches ─────────────────────────────────────── */
.jpr-swatch-field {
	width: 100%;
}

/* Row of dot swatches */
.jpr-swatch-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 5px;        /* room for outline-offset on all sides — no scale overflow */
}

/* Base dot swatch */
.jpr-swatch {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	/* outline follows border-radius in modern browsers — no overflow side-effects */
	transition: border-color 0.15s ease, outline-color 0.2s ease;
	outline: 2px solid transparent;
	outline-offset: 3px;
	position: relative;
}
.jpr-swatch:hover {
	/* Preview ring on hover: no scale, no overflow */
	outline-color: rgba(0, 0, 0, 0.22);
}
.jpr-swatch.is-selected {
	border-color: var(--color-primary);
	outline-color: var(--color-primary);
}
/* White swatch needs an inner ring so it's visible on white backgrounds */
.jpr-swatch--light {
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.jpr-swatch--light.is-selected {
	box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); /* keep only inner ring */
	outline-color: var(--color-primary);
}
/* Unavailable */
.jpr-swatch.is-disabled {
	opacity: 0.25;
	cursor: not-allowed;
	transform: none;
}
.jpr-swatch.is-disabled::after {
	content: '';
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	background: repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 3px,
		rgba(0,0,0,0.3) 3px,
		rgba(0,0,0,0.3) 4px
	);
}

/* Pill swatch (used for lens-color without a hex value) */
.jpr-swatch--pill {
	width: auto;
	height: auto;
	border-radius: var(--radius-sm);
	padding: 6px 12px;
	font-size: var(--typo-caption-size, 11px);
	font-weight: 500;
	letter-spacing: 0.04em;
	background: var(--color-bg-alt);
	color: var(--color-text);
	border: 1px solid transparent;
}
.jpr-swatch--pill:hover {
	transform: none;
	background: var(--color-bg-alt);
	border-color: var(--color-text-secondary);
}
.jpr-swatch--pill.is-selected {
	border-color: var(--color-primary);
	box-shadow: none;
	background: var(--color-primary);
	color: var(--color-text-light);
}

/* Swatch field: row with swatches left, label right */
.jpr-swatch-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Selected colour name — inline right of swatches */
.jpr-swatch-label {
	display: block;
	margin-top: 0;
	margin-left: auto;
	font-size: var(--typo-caption-size, 12px);
	color: var(--color-text-secondary);
	letter-spacing: 0.03em;
	white-space: nowrap;
}

/* ── Size Spec Strip ────────────────────────────────────────── */
.jpr-size-spec {
	display: flex;
	align-items: center;
	gap: 0;
	border: var(--border);
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: 20px;
	/* hidden by default — JS removes the [hidden] attr when a variation matches */
}
.jpr-size-spec__item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 8px;
	border-right: var(--border);
	text-align: center;
}
.jpr-size-spec__item:last-of-type {
	border-right: none;
}
.jpr-size-spec__value {
	font-size: var(--typo-body-size, 15px);
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.2;
}
.jpr-size-spec__label {
	font-size: var(--typo-caption-size, 11px);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-secondary);
}
.jpr-size-spec__guide-link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 12px 14px;
	font-size: var(--typo-caption-size, 11px);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text-secondary);
	border-left: var(--border);
	white-space: nowrap;
	flex-shrink: 0;
	transition: color var(--transition);
}
.jpr-size-spec__guide-link:hover,
.jpr-size-spec__guide-link:visited { color: var(--color-text); }
.pdp__summary .variations td,
.pdp__summary .variations th {
	display: block;
	padding: 0;
	width: auto;
	vertical-align: top;
}
.pdp__summary .variations .label {
	display: none;
}
.pdp__summary .variations select {
	width: 100%;
	padding: 10px 14px;
	font-size: var(--typo-input-size, 14px);
}
.pdp__summary .reset_variations {
	font-size: var(--typo-caption-size, 12px);
	color: var(--color-text-secondary);
	text-decoration: underline;
	margin-left: 0;
	display: inline-block;
	margin-top: 6px;
}

/* Cart form — eyewear is always qty 1, no quantity selector needed */
.pdp__summary form.cart {
	display: block;
	margin-bottom: 0;
}

/* Hide quantity control entirely */
.pdp__summary .quantity,
.pdp__summary .qty,
.qty-btn { display: none; }

/* Add to Cart button — full width, price on the right */
.pdp__summary .single_add_to_cart_button,
.pdp__summary button[type="submit"].button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	height: 52px;
	padding: 0 20px;
	background: var(--color-primary);
	color: var(--color-text-light);
	border: 1px solid var(--color-primary);
	border-radius: var(--radius-sm);
	font-size: var(--typo-button-size, 13px);
	font-weight: var(--typo-button-weight, 600);
	letter-spacing: var(--typo-button-ls, 0.06em);
	text-transform: var(--typo-button-transform, uppercase);
	cursor: pointer;
	transition: all var(--transition);
}
.pdp__summary .single_add_to_cart_button:hover,
.pdp__summary button[type="submit"].button:hover {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
}

/* ATC button — relative for spinner overlay */
.pdp__summary .single_add_to_cart_button,
.pdp__summary button[type="submit"].button {
	position: relative;
	overflow: hidden;
}

/* Loading / Added state: no interaction, text fades */
.pdp__summary .single_add_to_cart_button.is-adding,
.pdp__summary .single_add_to_cart_button.is-added {
	pointer-events: none;
}
.pdp__summary .single_add_to_cart_button.is-adding .pdp-btn-label,
.pdp__summary .single_add_to_cart_button.is-adding .pdp-btn-price,
.pdp__summary .single_add_to_cart_button.is-added .pdp-btn-label,
.pdp__summary .single_add_to_cart_button.is-added .pdp-btn-price {
	opacity: 0;
	transition: opacity 0.15s ease;
}

/* Spinner */
@keyframes pdp-spin { to { transform: rotate(360deg); } }

.pdp-atc-spinner {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.pdp-atc-spinner::before {
	content: '';
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pdp-spin 0.65s linear infinite;
}

/* Checkmark */
@keyframes pdp-check-pop {
	0%   { transform: scale(0.5); opacity: 0; }
	60%  { transform: scale(1.1); }
	100% { transform: scale(1);   opacity: 1; }
}
.pdp-atc-check {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	animation: pdp-check-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Stock — WooCommerce default position (inside form.cart, above ATC button) */
.pdp__summary .stock {
	font-size: var(--typo-caption-size, 12px);
	color: var(--color-text-secondary);
	margin: 6px 0 0;
	padding: 0;
	letter-spacing: 0.02em;
}
.pdp__summary .stock.in-stock {
	color: var(--color-text-secondary);
}
.pdp__summary .stock.out-of-stock {
	color: var(--color-error, #c0392b);
}

/* Price injected by JS inside the ATC button */
.pdp-btn-price {
	font-size: var(--typo-button-size, 13px);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	opacity: 0.85;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Payment method icons strip ── */
.pdp__payment-icons {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 10px 0 0;
	margin: 0;
}

.pdp__payment-icon-wrap {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.pdp__payment-icon-wrap .pdp__payment-icon,
.pdp__payment-icon {
	height: 22px;
	width: auto;
	display: block;
}

.pdp__payment-more {
	font-size: var(--typo-caption-size, 11px);
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--color-text-secondary);
}

/* ── Short description: editorial numbered feature list ── */
.woocommerce-product-details__short-description ul,
.woocommerce-product-details__short-description ol {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: pdp-feat;
}

.woocommerce-product-details__short-description li {
	counter-increment: pdp-feat;
	display: grid;
	grid-template-columns: 26px 1fr;
	gap: 12px;
	padding: 13px 0;
	border-bottom: 1px solid var(--color-border);
	font-size: var(--typo-body_small-size, 14px);
	color: var(--color-text);
	line-height: 1.5;
	align-items: start;
}

.woocommerce-product-details__short-description li:first-child {
	border-top: 1px solid var(--color-border);
}

.woocommerce-product-details__short-description li::before {
	content: counter(pdp-feat, decimal-leading-zero);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: var(--color-text-secondary);
	padding-top: 3px;
}

/* Trust bar (shipping, returns, etc.) */
.pdp__trust {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 0;
	border-top: var(--border);
	border-bottom: var(--border);
	margin-bottom: 24px;
}
.pdp__trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--typo-body_small-size, 13px);
	color: var(--color-text-secondary);
}
.pdp__trust-item svg { color: var(--color-primary); flex-shrink: 0; }

/* Meta (SKU, categories, tags) */
.pdp__summary .product_meta {
	font-size: var(--typo-caption-size, 12px);
	color: var(--color-text-secondary);
	margin-top: 20px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

/* SKU — forces a full-width row so pills appear below it */
.pdp__summary .product_meta .sku_wrapper {
	width: 100%;
	display: flex;
	gap: 4px;
	margin-bottom: 2px;
}

/* Category + Tag: hide label text, flow inline as pill containers */
.pdp__summary .product_meta .posted_in,
.pdp__summary .product_meta .tagged_as {
	font-size: 0;          /* hides "Category: " / "Tag: " text node */
	display: inline-flex;  /* inline so both appear on the same row */
	gap: 6px;
}

/* Pill badge */
.pdp__summary .product_meta .posted_in a,
.pdp__summary .product_meta .tagged_as a {
	font-size: var(--typo-caption-size, 12px);
	color: var(--color-text-secondary);
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 100px;
	padding: 3px 8px 3px 6px;
	text-decoration: none;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: border-color var(--transition), color var(--transition);
}
.pdp__summary .product_meta .posted_in a:hover,
.pdp__summary .product_meta .tagged_as a:hover {
	color: var(--color-text);
	border-color: rgba(0, 0, 0, 0.38);
}

/* Category icon — folder */
.pdp__summary .product_meta .posted_in a::before {
	content: '';
	display: inline-block;
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tag icon — price label */
.pdp__summary .product_meta .tagged_as a::before {
	content: '';
	display: inline-block;
	width: 11px;
	height: 11px;
	flex-shrink: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Ccircle cx='7' cy='7' r='1.5' fill='%23999' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Wishlist button — below ATC */
.pdp__wishlist-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	margin-top: 10px;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-size: var(--typo-button-size, 13px);
	font-weight: var(--typo-button-weight, 600);
	letter-spacing: var(--typo-button-ls, 0.06em);
	text-transform: var(--typo-button-transform, uppercase);
	color: var(--color-text-secondary);
	cursor: pointer;
	transition: border-color var(--transition), color var(--transition);
}
.pdp__wishlist-btn:hover {
	border-color: var(--color-primary);
	color: var(--color-primary);
}
.pdp__wishlist-btn.is-wishlisted {
	border-color: var(--color-primary);
	color: var(--color-primary);
}
.pdp__wishlist-btn.is-wishlisted svg {
	fill: var(--color-primary);
}

/* ── Summary CTA area — visual reorder via flexbox order ──────
   DOM order (plugin-driven) vs desired visual order:
     1. Add to Cart (.cart)
     2. Save to Wishlist (.pdp__wishlist-btn)
     3. Payment icons (.pdp__payment-icons)
     4. Express payments — Google Pay / Apple Pay (#wc-stripe-express-checkout-element)
     5. PayPal installment message (.ppcp-messages)
     6. PayPal button (.ppc-button-wrapper)
     7. SKU / tags (.product_meta)
─────────────────────────────────────────────────────────────── */
.entry-summary {
	display: flex;
	flex-direction: column;
}

/* Elements before the ATC form (title, price, description…) keep default order: 0 */

.entry-summary form.cart                                { order: 1; }
.entry-summary #wc-stripe-express-checkout-element      { order: 2; }
.entry-summary wc-stripe-express-checkout__order-attribution-inputs { order: 2; }
.entry-summary .ppcp-messages                           { order: 3; }
.entry-summary .ppc-button-wrapper                      { order: 3; }
.entry-summary #ppcp-recaptcha-v2-container             { order: 3; }
.entry-summary .pdp__wishlist-btn                       { order: 4; }
.entry-summary .pdp__payment-icons                      { order: 5; }
.entry-summary .product_meta                            { order: 6; }

/* ── Sticky CTA (mobile) ── */
.pdp__sticky-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--color-bg);
	border-top: var(--border);
	padding: 12px 0;
	z-index: 100;
	transform: translateY(100%);
	transition: transform 0.3s ease;
	display: none;
}
.pdp__sticky-cta.is-visible { transform: translateY(0); }
.pdp__sticky-cta-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}
.pdp__sticky-name {
	flex: 1;
	font-size: var(--typo-button-size, 14px);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pdp__sticky-price { font-size: var(--typo-input-size, 15px); font-weight: 600; flex-shrink: 0; }
.pdp__sticky-add { flex-shrink: 0; padding: 12px 20px; font-size: var(--typo-button-size, 13px); }

/* ── Below fold ── */
.pdp__below { padding: 48px var(--container-padding); }

/* ── Tabs (accordion) ── */
.pdp-tabs { border-top: var(--border); margin-bottom: 48px; }

/* When tabs live inside the sticky summary col: no bottom margin,
   slightly tighter trigger padding to keep the sidebar compact.     */
.pdp__summary-col .pdp-tabs {
	margin-bottom: 0;
	margin-top: 32px;
}
.pdp__summary-col .pdp-tabs__trigger {
	padding: 16px 0;
}

.pdp-tabs__item { border-bottom: var(--border); }
.pdp-tabs__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 20px 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: var(--typo-button-size, 14px);
	font-weight: var(--typo-button-weight, 600);
	letter-spacing: var(--typo-button-ls, 0.04em);
	text-transform: var(--typo-button-transform, uppercase);
	color: var(--color-text);
	text-align: left;
	transition: opacity var(--transition);
}
.pdp-tabs__trigger:hover { opacity: 0.7; }
.pdp-tabs__chevron {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}
.pdp-tabs__trigger[aria-expanded="true"] .pdp-tabs__chevron {
	transform: rotate(180deg);
}
.pdp-tabs__panel {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.4s ease;
}
.pdp-tabs__panel[aria-hidden="false"] {
	max-height: 2000px;   /* generous cap — covers long descriptions with images */
}
.pdp-tabs__content {
	padding: 0 0 24px;
	font-size: var(--typo-body-size, 15px);
	line-height: 1.7;
	color: var(--color-text-secondary);
}
/* WooCommerce injects an <h2> heading inside each tab panel — hidden since
   the accordion trigger already labels the section */
.pdp-tabs__content > h2 { display: none; }

/* Additional-information table in the sidebar */
.pdp__summary-col .pdp-tabs__content .shop_attributes {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--typo-body_small-size, 13px);
	table-layout: fixed;
}
.pdp__summary-col .pdp-tabs__content .shop_attributes tr {
	display: table-row;
}
.pdp__summary-col .pdp-tabs__content .shop_attributes th,
.pdp__summary-col .pdp-tabs__content .shop_attributes td {
	display: table-cell;   /* override any global block reset */
	padding: 10px 0;
	text-align: left;
	border-bottom: var(--border);
	vertical-align: top;
}
.pdp__summary-col .pdp-tabs__content .shop_attributes th {
	color: var(--color-text-secondary);
	font-weight: 600;
	width: 42%;
	padding-right: 16px;
}
/* WooCommerce wraps values in <p> — strip the margin */
.pdp__summary-col .pdp-tabs__content .shop_attributes td p {
	margin: 0;
}

/* Related / Upsells sections */
.related.products,
.upsells.products {
	padding-top: 64px;
}
.related.products h2,
.upsells.products h2 {
	font-size: var(--typo-h4-size, 22px);
	font-weight: 600;
	margin-bottom: 32px;
}

/* ── Responsive PDP ── */
@media (max-width: 1199px) {
	.pdp__inner { grid-template-columns: 1fr 420px; --pdp-gap: 48px; }
}

@media (max-width: 1023px) {
	.pdp__inner {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		/* Natural DOM order: hero → summary → rest */
		grid-template-areas:
			"hero"
			"summary"
			"rest";
		--pdp-gap: 0;
	}
	.pdp__summary-col {
		position: static;  /* sticky disabilitato su mobile */
		max-height: none;
		overflow-y: visible;
		padding-top: 32px;
	}
	.pdp__summary .product_title { font-size: var(--typo-h3-size, 28px); }
	.pdp__sticky-cta { display: block; }
}

/* (no mobile overrides needed for cart form — ATC is always full width) */


/* ── EU Declaration of Conformity — PDP tab content ─────── */

.pdp-doc-conformity {
	padding: 4px 0;
}

.pdp-doc-conformity__desc {
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--color-text-secondary);
	margin: 0 0 20px;
}

.pdp-doc-conformity__download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border: 1px solid var(--color-text, #1a1a1a);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-text);
	text-decoration: none;
	transition: background 0.18s, color 0.18s;
}

.pdp-doc-conformity__download:hover {
	background: var(--color-text, #1a1a1a);
	color: var(--color-bg, #fff);
}

.pdp-doc-conformity__download svg {
	flex-shrink: 0;
}
