/* Variable product page — loaded via single-product-variable.php */

/* ── Local variables ─────────────────────────────────────────── */
.tt-product-variable {
	--text-mid: #4a5568;
	--border-light: rgba(50,61,76,0.06);
	--teal-pale: rgba(78,165,156,0.10);
	--navy-pale: rgba(10,30,63,0.08);
	--salmon-pale: rgba(249,130,119,0.10);
	--orange-pale: rgba(255,139,89,0.12);
	--shadow-sm: 0 1px 4px rgba(10,30,63,0.06), 0 1px 2px rgba(10,30,63,0.04);
	--shadow: 0 4px 20px rgba(10,30,63,0.08), 0 1px 4px rgba(10,30,63,0.04);
	--shadow-lg: 0 16px 48px rgba(10,30,63,0.12), 0 4px 12px rgba(10,30,63,0.06);
	--shadow-teal: 0 8px 24px rgba(78,165,156,0.25);
	--gradient-hero: linear-gradient(160deg, #0A1E3F 40%, #4EA59C 100%);
}

/* ── Shared ── */
.tt-product-variable .btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--teal);
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 600;
	padding: 14px 36px;
	border-radius: 100px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
	box-shadow: var(--shadow-teal);
}
.tt-product-variable .btn-primary:hover {
	background: var(--wp--preset--color--teal-dark);
	color: #fff;
	transform: translateY(-2px);
}

/* ── Hero ── */
.pv-hero {
	background: var(--wp--preset--gradient--hero);
	padding: 80px 24px 64px;
	position: relative;
	overflow: hidden;
}
.pv-hero::before {
	content: '';
	position: absolute;
	top: -200px;
	right: -150px;
	width: 500px;
	height: 500px;
	border-radius: 50%;
	background: rgba(78,165,156,0.08);
	z-index: 0;
}
.pv-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.12;
	mix-blend-mode: luminosity;
}
.pv-hero-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 48px;
	align-items: center;
	position: relative;
	z-index: 1;
}
.pv-hero-content {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.pv-hero-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--salmon);
	margin-bottom: 16px;
}
.pv-hero h1 {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	color: #fff;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin-bottom: 16px;
}
.pv-hero-lead {
	font-size: 16px;
	color: rgba(255,255,255,0.75);
	line-height: 1.7;
	max-width: 520px;
	margin-bottom: 28px;
}
.pv-hero-lead p {
	margin: 0 0 12px;
}
.pv-hero-lead p:last-child {
	margin-bottom: 0;
}

/* ── Price card ── */
.tt-product-variable .price-card {
	background: var(--wp--preset--color--white);
	border-radius: 24px;
	padding: 36px 28px;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.tt-product-variable .price-card-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
	margin-bottom: 12px;
	text-align: center;
}
.tt-product-variable .price-card-price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	font-weight: 400;
	color: var(--wp--preset--color--primary);
	line-height: 1.2;
	margin-bottom: 20px;
	text-align: center;
}
.tt-product-variable .price-card-price del {
	opacity: 0.5;
	font-size: 0.7em;
}
.tt-product-variable .price-card-price ins {
	text-decoration: none;
}
.tt-product-variable .price-card-guarantee {
	font-size: 12px;
	color: var(--wp--preset--color--mid-grey);
	margin-top: 16px;
	text-align: center;
}

/* ── WooCommerce variation form inside price card ── */
.tt-product-variable .price-card-form .cart {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Variations table */
.tt-product-variable .price-card-form .variations {
	width: 100%;
	margin-bottom: 16px;
	border-collapse: collapse;
}
.tt-product-variable .price-card-form .variations td,
.tt-product-variable .price-card-form .variations th {
	padding: 8px 0;
	border: none;
	display: block;
	width: 100%;
}
.tt-product-variable .price-card-form .variations tr {
	display: block;
	margin-bottom: 8px;
}
.tt-product-variable .price-card-form .variations label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	letter-spacing: 0.02em;
	display: block;
	margin-bottom: 6px;
}
.tt-product-variable .price-card-form .variations select {
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	padding: 12px 16px;
	border: 1.5px solid var(--border);
	border-radius: 12px;
	background: var(--wp--preset--color--off-white);
	color: var(--wp--preset--color--primary);
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	cursor: pointer;
	transition: border-color 0.2s;
}
.tt-product-variable .price-card-form .variations select:focus {
	outline: none;
	border-color: var(--wp--preset--color--teal);
	box-shadow: 0 0 0 3px rgba(78,165,156,0.15);
}
.tt-product-variable .price-card-form .variations select:hover {
	border-color: var(--wp--preset--color--teal);
}

/* Reset / clear link */
.tt-product-variable .price-card-form .reset_variations {
	color: var(--wp--preset--color--teal);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
	margin-top: 4px;
	transition: color 0.2s;
}
.tt-product-variable .price-card-form .reset_variations:hover {
	color: var(--wp--preset--color--teal-dark);
}

/* Variation price display */
.tt-product-variable .price-card-form .woocommerce-variation-price {
	margin-bottom: 12px;
	text-align: center;
}
.tt-product-variable .price-card-form .woocommerce-variation-price .price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.2rem;
	font-weight: 400;
	color: var(--wp--preset--color--primary);
	line-height: 1.2;
}
.tt-product-variable .price-card-form .woocommerce-variation-price .price del {
	opacity: 0.5;
	font-size: 0.65em;
}
.tt-product-variable .price-card-form .woocommerce-variation-price .price ins {
	text-decoration: none;
}

/* Variation description */
.tt-product-variable .price-card-form .woocommerce-variation-description p {
	font-size: 14px;
	color: var(--text-mid);
	line-height: 1.6;
	margin-bottom: 12px;
	text-align: center;
}

/* Hide quantity input — service products default to 1 */
.tt-product-variable .quantity {
	display: none !important;
}

/* Add to cart button */
.tt-product-variable .price-card-form .single_add_to_cart_button,
.tt-product-variable .price-card-form button[type="submit"] {
	display: block;
	width: 100%;
	background: var(--wp--preset--color--deep-navy);
	color: #fff;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 600;
	padding: 14px;
	border-radius: 100px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: all 0.2s;
	box-shadow: 0 6px 20px rgba(10,30,63,0.28);
}
.tt-product-variable .price-card-form .single_add_to_cart_button:hover,
.tt-product-variable .price-card-form button[type="submit"]:hover {
	background: #0d2a52;
	color: #fff;
	transform: translateY(-2px);
}
.tt-product-variable .price-card-form .single_add_to_cart_button:disabled,
.tt-product-variable .price-card-form button[type="submit"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Hide the single_variation_wrap price when the card already shows it */
.tt-product-variable .price-card-form .woocommerce-variation-add-to-cart-enabled .woocommerce-variation-price + .woocommerce-variation-availability {
	margin-bottom: 8px;
}

/* Availability text */
.tt-product-variable .price-card-form .woocommerce-variation-availability p {
	font-size: 13px;
	text-align: center;
	margin-bottom: 8px;
}
.tt-product-variable .price-card-form .woocommerce-variation-availability .in-stock {
	color: var(--green);
}
.tt-product-variable .price-card-form .woocommerce-variation-availability .out-of-stock {
	color: var(--red);
}

/* ── Section shared styles ── */
.pv-section-inner {
	max-width: 900px;
	margin: 0 auto;
}
.pv-section-inner h2 {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 400;
	color: var(--wp--preset--color--primary);
	text-align: center;
	letter-spacing: -0.02em;
	margin-bottom: 32px;
}

/* ── Video ── */
.pv-video {
	background: var(--wp--preset--color--white);
	padding: 64px 24px;
}
.pv-video-inner {
	max-width: 800px;
	margin: 0 auto;
}
.pv-video .video-embed {
	position: relative;
	padding-bottom: 56.25%;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}
.pv-video .video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ── Outcomes ── */
.pv-outcomes {
	background: var(--wp--preset--color--off-white);
	padding: 64px 24px;
}
.pv-outcomes-content {
	font-size: 15px;
	color: var(--text-mid);
	line-height: 1.7;
}
.pv-outcomes-content ul,
.pv-outcomes-content ol {
	padding-left: 20px;
	margin-bottom: 16px;
}
.pv-outcomes-content li {
	margin-bottom: 10px;
	padding-left: 8px;
}
.pv-outcomes-content li::marker {
	color: var(--wp--preset--color--teal);
}
.pv-outcomes-content p {
	margin-bottom: 14px;
}

/* ── Topics ── */
.pv-topics {
	background: var(--wp--preset--color--white);
	padding: 64px 24px;
}
.pv-topics-content {
	font-size: 15px;
	color: var(--text-mid);
	line-height: 1.7;
}
.pv-topics-content ul,
.pv-topics-content ol {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 32px;
}
.pv-topics-content li {
	font-size: 14px;
	color: var(--text-mid);
	padding: 10px 0;
	border-bottom: 1px solid var(--border-light);
	display: flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.5;
}
.pv-topics-content li::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--teal);
	flex-shrink: 0;
	margin-top: 7px;
}
.pv-topics-content p {
	margin-bottom: 14px;
}

/* ── Product content (the_content) ── */
.pv-content {
	background: var(--wp--preset--color--off-white);
	padding: 64px 24px;
}
.pv-content-inner {
	max-width: 800px;
	margin: 0 auto;
	font-size: 15px;
	color: var(--text-mid);
	line-height: 1.7;
}
.pv-content-inner h2,
.pv-content-inner h3,
.pv-content-inner h4 {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	color: var(--wp--preset--color--primary);
	letter-spacing: -0.02em;
	margin-bottom: 16px;
	margin-top: 32px;
}
.pv-content-inner h2 {
	font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}
.pv-content-inner h3 {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
}
.pv-content-inner p {
	margin-bottom: 14px;
}
.pv-content-inner ul,
.pv-content-inner ol {
	padding-left: 20px;
	margin-bottom: 16px;
}
.pv-content-inner li {
	margin-bottom: 8px;
}
.pv-content-inner img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	margin: 24px 0;
}

/* ── Coaches ── */
.pv-coaches {
	background: var(--wp--preset--color--white);
	padding: 64px 24px;
}
.pv-coaches-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}
.pv-coach-card {
	background: var(--wp--preset--color--off-white);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 28px;
	text-align: center;
	transition: transform 0.2s, box-shadow 0.2s;
}
.pv-coach-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}
.pv-coach-photo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 16px;
	border: 3px solid var(--wp--preset--color--white);
	box-shadow: var(--shadow-sm);
}
.pv-coach-card h3 {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.2rem;
	font-weight: 500;
	color: var(--wp--preset--color--primary);
	margin-bottom: 8px;
}
.pv-coach-card p {
	font-size: 14px;
	color: var(--text-mid);
	line-height: 1.6;
}

/* ── Testimonials ── */
.pv-testimonials {
	background: var(--wp--preset--color--deep-navy);
	padding: 64px 24px;
	position: relative;
	overflow: hidden;
}
.pv-testimonials::before {
	content: '';
	position: absolute;
	bottom: -100px;
	left: -80px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	background: rgba(78,165,156,0.06);
}
.pv-testimonials .pv-section-inner {
	position: relative;
	z-index: 1;
}
.pv-testimonials .pv-section-inner h2 {
	color: #fff;
}
.pv-testimonials-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

/* Testimonial card */
.tt-product-variable .testi-card {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
	padding: 28px;
	display: flex;
	flex-direction: column;
}
.tt-product-variable .testi-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}
.tt-product-variable .testi-card-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255,255,255,0.15);
	flex-shrink: 0;
}
.tt-product-variable .testi-card-avatar-placeholder {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(78,165,156,0.2);
	color: var(--wp--preset--color--teal);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3rem;
	font-weight: 500;
	flex-shrink: 0;
}
.tt-product-variable .testi-stars {
	color: var(--wp--preset--color--orange);
	font-size: 14px;
	letter-spacing: 2px;
}
.tt-product-variable .testi-card blockquote {
	font-size: 14px;
	color: rgba(255,255,255,0.8);
	line-height: 1.7;
	font-style: italic;
	margin: 0 0 16px;
	flex: 1;
}
.tt-product-variable .testi-author {
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--teal-light);
}
.tt-product-variable .testi-role {
	font-size: 12px;
	color: rgba(255,255,255,0.5);
	margin-top: 2px;
}

/* ── FAQs ── */
.pv-faqs {
	background: var(--wp--preset--color--off-white);
	padding: 64px 24px;
}

/* ── Upsells ── */
.pv-upsells {
	background: var(--wp--preset--color--white);
	padding: 64px 24px;
}
.pv-upsells-inner {
	max-width: 1000px;
	margin: 0 auto;
}
.pv-upsells-inner h2 {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 400;
	color: var(--wp--preset--color--primary);
	text-align: center;
	letter-spacing: -0.02em;
	margin-bottom: 32px;
}
.pv-upsells-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.pv-upsell-card {
	background: var(--wp--preset--color--off-white);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.2s, box-shadow 0.2s;
}
.pv-upsell-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}
.pv-upsell-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}
.pv-upsell-card-body {
	padding: 18px;
}
.pv-upsell-card-body h3 {
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin-bottom: 6px;
	line-height: 1.3;
}
.pv-upsell-price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
	font-weight: 400;
	color: var(--wp--preset--color--teal-dark);
}
.pv-upsell-price del {
	opacity: 0.5;
	font-size: 0.85em;
}
.pv-upsell-price ins {
	text-decoration: none;
}

/* ── CTA ── */
.pv-cta {
	background: var(--wp--preset--gradient--hero);
	padding: 80px 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.pv-cta::before {
	display: none;
}
.pv-cta-inner {
	max-width: 600px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}
.pv-cta h2 {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 400;
	color: #fff;
	margin-bottom: 16px;
	letter-spacing: -0.02em;
}
.pv-cta p {
	font-size: 16px;
	color: rgba(255,255,255,0.75);
	line-height: 1.7;
	margin-bottom: 28px;
}
.pv-cta-price-note {
	font-size: 14px;
	color: rgba(255,255,255,0.6);
	margin-top: 16px;
}

/* ── Responsive: 900px ── */
@media (max-width: 900px) {
	.pv-hero {
		padding: 64px 24px 48px;
	}
	.pv-hero-inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.pv-hero-lead {
		margin-left: auto;
		margin-right: auto;
	}
	.tt-product-variable .price-card {
		max-width: 420px;
		margin: 0 auto;
	}
	.pv-coaches-grid {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin: 0 auto;
	}
	.pv-testimonials-grid {
		grid-template-columns: 1fr;
	}
	.pv-upsells-grid {
		grid-template-columns: 1fr 1fr;
	}
	.pv-topics-content ul,
	.pv-topics-content ol {
		grid-template-columns: 1fr;
	}
}

/* ── Responsive: 600px ── */
@media (max-width: 600px) {
	.pv-hero {
		padding: 48px 20px 36px;
	}
	.pv-hero h1 {
		font-size: 1.8rem;
	}
	.pv-outcomes,
	.pv-topics,
	.pv-content,
	.pv-coaches,
	.pv-testimonials,
	.pv-faqs,
	.pv-upsells,
	.pv-video {
		padding: 48px 20px;
	}
	.pv-upsells-grid {
		grid-template-columns: 1fr;
	}
	.pv-cta {
		padding: 56px 20px;
	}
	.tt-product-variable .price-card {
		padding: 28px 20px;
	}
	.pv-upsell-card img {
		height: 150px;
	}
}
