/**
 * Totoland PDP V3.1.2 — Simplified purchase architecture pilot.
 * Scoped to body.tt-pdp-v31-pilot only.
 */
/* TT-NAV-01: Browse Categories must remain available on single-product pages.
 * PDP V3.1 previously hid the global navigation control here.
 */

body.tt-pdp-v31-pilot .tt-product-v2-summary__price{
	font-size:clamp(1.5rem,5vw,2rem);
	font-weight:800;
	line-height:1.15;
	margin:8px 0;
}

body.tt-pdp-v31-pilot .tt-product-v2-summary__stock,
body.tt-pdp-v31-pilot .tt-product-v2-summary__availability{
	margin-block:6px;
}

body.tt-pdp-v31-pilot .tt-pdp-v31-highlights{
	margin:12px 0;
	padding:11px 12px;
	border:1px solid rgba(17,24,39,.10);
	border-radius:12px;
	background:#fff;
}

body.tt-pdp-v31-pilot .tt-pdp-v31-highlights h2{
	margin:0 0 7px;
	font-size:1rem;
	line-height:1.3;
}

body.tt-pdp-v31-pilot .tt-pdp-v31-highlights ul{
	display:grid;
	gap:5px;
	margin:0;
	padding:0;
	list-style:none;
}

body.tt-pdp-v31-pilot .tt-pdp-v31-highlights li{
	position:relative;
	padding-left:16px;
	font-size:.9rem;
	line-height:1.35;
}

body.tt-pdp-v31-pilot .tt-pdp-v31-highlights li::before{
	content:'✓';
	position:absolute;
	left:0;
	top:0;
	font-weight:700;
}

body.tt-pdp-v31-pilot .tt-product-v2-summary__purchase{
	margin-top:12px;
}

body.tt-pdp-v31-pilot .tt-product-v2-summary__purchase form.cart{
	margin-bottom:0;
}

body.tt-pdp-v31-pilot .tt-product-v2-summary__purchase .single_add_to_cart_button{
	min-height:50px;
	font-weight:800;
}

/* Compact Marcnet-inspired reassurance/help panel. */
body.tt-pdp-v31-pilot .tt-pdp-v312-support{
	margin:12px 0 14px;
	padding:12px;
	border:1px solid rgba(17,24,39,.12);
	border-radius:12px;
	background:#f8fafc;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support h2{
	margin:0 0 8px;
	font-size:1rem;
	line-height:1.3;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support__rows{
	display:grid;
	gap:7px;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support__row{
	display:grid;
	grid-template-columns:minmax(120px,.42fr) minmax(0,1fr);
	gap:10px;
	align-items:start;
	font-size:.86rem;
	line-height:1.35;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support__row strong{
	color:#111827;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support__row span{
	color:#4b5563;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support__actions{
	display:flex;
	flex-wrap:wrap;
	gap:8px 12px;
	align-items:center;
	margin-top:10px;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support__whatsapp{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	min-height:42px;
	padding:9px 14px;
	border-radius:9px;
	background:#16a34a;
	color:#fff;
	font-weight:800;
	text-decoration:none;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support__whatsapp:hover,
body.tt-pdp-v31-pilot .tt-pdp-v312-support__whatsapp:focus-visible{
	color:#fff;
	text-decoration:none;
}

body.tt-pdp-v31-pilot .tt-pdp-v312-support__text-link{
	font-size:.82rem;
	font-weight:700;
	text-underline-offset:2px;
}

/* The legacy V2 assistance sidebar is redundant for the simplified pilot. */
body.tt-pdp-v31-pilot .tt-product-v2__sidebar{
	display:none!important;
}

body.tt-pdp-v31-pilot .tt-product-v2-summary__excerpt--below-purchase{
	margin-top:14px;
	padding-top:12px;
	border-top:1px solid rgba(17,24,39,.08);
}

@media (min-width:1024px){
	body.tt-pdp-v31-pilot .tt-product-v2__hero{
		grid-template-columns:minmax(0,1fr) minmax(360px,.92fr)!important;
		gap:34px!important;
	}
	body.tt-pdp-v31-pilot .tt-product-v2__summary{
		max-width:620px;
	}
}

@media(max-width:767px){
	body.tt-pdp-v31-pilot .tt-product-v2{
		overflow-x:clip;
	}

	body.tt-pdp-v31-pilot .tt-product-v2__container{
		padding-inline:12px;
	}

	body.tt-pdp-v31-pilot .tt-product-v2__hero{
		display:flex;
		flex-direction:column;
		gap:12px;
	}

	body.tt-pdp-v31-pilot .tt-product-v2__gallery{order:1}
	body.tt-pdp-v31-pilot .tt-product-v2__summary{order:2}
	body.tt-pdp-v31-pilot .tt-product-v2__sidebar{order:3}

	body.tt-pdp-v31-pilot .tt-product-v2-summary__category,
	body.tt-pdp-v31-pilot .tt-product-v2-summary__rating{
		margin-bottom:5px;
	}

	body.tt-pdp-v31-pilot .tt-product-v2-summary__title .product_title{
		font-size:clamp(1.45rem,7vw,2rem)!important;
		line-height:1.08!important;
		margin-bottom:7px!important;
	}

	body.tt-pdp-v31-pilot .tt-product-v2-summary__purchase form.cart{
		width:100%;
	}

	body.tt-pdp-v31-pilot .tt-product-v2-summary__purchase .single_add_to_cart_button{
		width:100%;
		min-width:0;
	}

	body.tt-pdp-v31-pilot .tt-pdp-v312-support{
		padding:10px;
	}

	body.tt-pdp-v31-pilot .tt-pdp-v312-support__row{
		grid-template-columns:1fr;
		gap:1px;
	}

	body.tt-pdp-v31-pilot .tt-pdp-v312-support__actions{
		display:grid;
		grid-template-columns:1fr 1fr;
		gap:8px;
	}

	body.tt-pdp-v31-pilot .tt-pdp-v312-support__whatsapp{
		grid-column:1/-1;
		width:100%;
	}

	body.tt-pdp-v31-pilot .tt-pdp-v312-support__text-link{
		dis:flex;
		align-items:center;
		justify-content:center;
		min-height:34px;
		text-align:center;
	}

	body.tt-pdp-v31-pilot .tt-product-v2-summary__excerpt{
		max-height:8rem;
		overflow:hidden;
	}

	body.tt-pdp-v31-pilot .tt-product-v2-summary__excerpt.is-expanded{
		max-height:none;
	}

	/* Legacy trust strip is not used by the V3.1.2 pilot summary. */
	body.tt-pdp-v31-pilot .tt-product-v2-trust{
		display:none!important;
	}
}

/* =========================================================
   TT-PDP-V3.2 — RESPONSIVE TECHNICAL VALIDATION SAFEGUARDS
   These rules do not change WooCommerce product/cart logic.
   ========================================================= */
body.tt-pdp-v32-validation .tt-product-v2,
body.tt-pdp-v32-validation .tt-product-v2__container,
body.tt-pdp-v32-validation .tt-product-v2__hero,
body.tt-pdp-v32-validation .tt-product-v2__gallery,
body.tt-pdp-v32-validation .tt-product-v2__summary,
body.tt-pdp-v32-validation .tt-product-v2-summary__purchase,
body.tt-pdp-v32-validation .tt-pdp-v31-highlights,
body.tt-pdp-v32-validation .tt-pdp-v312-support {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.tt-pdp-v32-validation .tt-product-v2-summary__title .product_title,
body.tt-pdp-v32-validation .tt-product-v2-summary__price,
body.tt-pdp-v32-validation .tt-pdp-v31-highlights li,
body.tt-pdp-v32-validation .tt-pdp-v312-support__row,
body.tt-pdp-v32-validation .tt-pdp-v312-support__row span,
body.tt-pdp-v32-validation .tt-pdp-v312-support__row strong {
	overflow-wrap: anywhere;
	word-break: normal;
}

body.tt-pdp-v32-validation .tt-product-v2-summary__purchase form.cart,
body.tt-pdp-v32-validation .tt-product-v2-summary__purchase .quantity,
body.tt-pdp-v32-validation .tt-product-v2-summary__purchase .single_add_to_cart_button {
	box-sizing: border-box;
	max-width: 100%;
}

/* Fix the V3.1.2 display typo without altering the component hierarchy. */
body.tt-pdp-v32-validation .tt-pdp-v312-support__text-link {
	display: flex;
}

/* Small mobile: 360/375/390/412 validation family. */
@media (max-width: 412px) {
	body.tt-pdp-v32-validation .tt-product-v2__container {
		padding-inline: 10px;
	}

	body.tt-pdp-v32-validation .tt-product-v2-summary__title .product_title {
		font-size: clamp(1.34rem, 6.3vw, 1.72rem) !important;
		line-height: 1.1 !important;
	}

	body.tt-pdp-v32-validation .tt-product-v2-summary__price {
		font-size: clamp(1.42rem, 6vw, 1.8rem);
	}

	body.tt-pdp-v32-validation .tt-pdp-v312-support__actions {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	body.tt-pdp-v32-validation .tt-pdp-v312-support__actions > * {
		min-width: 0;
		max-width: 100%;
	}

	body.tt-pdp-v32-validation .tt-product-v2-sticky-cart__inner {
		width: calc(100% - 12px);
		gap: 6px;
		padding-bottom: max(7px, env(safe-area-inset-bottom));
	}

	body.tt-pdp-v32-validation .tt-product-v2-sticky-cart__product {
		min-width: 0;
		flex: 1 1 auto;
	}

	body.tt-pdp-v32-validation .tt-product-v2-sticky-cart__actions {
		flex: 0 1 auto;
		min-width: 0;
	}

	body.tt-pdp-v32-validation .tt-product-v2-sticky-cart__button,
	body.tt-pdp-v32-validation .tt-product-v2-sticky-cart__whatsapp {
		min-width: 0;
		padding-inline: 9px;
		white-space: nowrap;
	}
}

/* Tablet: keep the summary readable without creating a narrow desktop column. */
@media (min-width: 768px) and (max-width: 1023px) {
	body.tt-pdp-v32-validation .tt-product-v2__hero {
		grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr) !important;
		gap: 24px !important;
	}

	body.tt-pdp-v32-validation .tt-pdp-v312-support__row {
		grid-template-columns: minmax(110px, .38fr) minmax(0, 1fr);
	}
}

/* Desktop validation: retain purchase priority and prevent summary over-stretch. */
@media (min-width: 1024px) {
	body.tt-pdp-v32-validation .tt-product-v2__summary {
		min-width: 0;
	}

	body.tt-pdp-v32-validation .tt-pdp-v312-support {
		max-width: 620px;
	}
}
