/* ═══════════════════════════════════════════════════════════════════════════
   Product Detail Page — Single Product
   Covers: breadcrumb, product hero (gallery + info), price block, CTAs,
           trust signals, specs grid, included list, upgrade nudge,
           deep sections (how it works, ideal for, full specs, FAQ, CTA)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Breadcrumb Bar ─────────────────────────────────────────────────────────── */

.breadcrumb-bar {
	background: var(--slate-50);
	border-bottom: 1px solid var(--slate-100);
	padding: 1rem 0;
}

.breadcrumb {
	font-size: 0.8rem;
	color: var(--slate-400);
}

.breadcrumb a {
	color: var(--slate-500);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--green-700);
}

.breadcrumb .sep {
	margin: 0 0.4rem;
	color: var(--slate-300);
}

/* ─── Product Hero ───────────────────────────────────────────────────────────── */

.product-hero {
	padding: 3rem 0;
}

.product-hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3.5rem;
	align-items: start;
}

/* Gallery — left column */
.gallery {
	position: sticky;
	top: 100px;
}

.gallery-main {
	background: linear-gradient(135deg, var(--green-50), var(--slate-100));
	border: 1px solid var(--slate-200);
	border-radius: var(--radius-lg);
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.75rem;
	position: relative;
	overflow: hidden;
	cursor: zoom-in;
}

.gallery-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s;
}

.gallery-main-placeholder {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--slate-400);
}

.gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.5rem;
}

.gallery-thumb {
	background: var(--slate-100);
	border: 2px solid var(--slate-200);
	border-radius: var(--radius);
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s;
	overflow: hidden;
	padding: 0;
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-thumb:first-child,
.gallery-thumb.active {
	border-color: var(--green-500);
}

.gallery-thumb:hover {
	border-color: var(--green-400);
}

.gallery-thumb-placeholder {
	font-family: var(--font-mono);
	font-size: 0.6rem;
	color: var(--slate-400);
}

/* Product Info — right column */
.product-info { }

.pi-sku {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	color: var(--slate-400);
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}

.product-info h1 {
	font-family: var(--font-display);
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--slate-900);
	line-height: 1.15;
	margin-bottom: 0.5rem;
	letter-spacing: -0.02em;
}

.pi-tagline {
	font-size: 1rem;
	color: var(--slate-500);
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

/* Price Block */
.price-block {
	background: var(--green-50);
	border: 1px solid var(--green-200);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.price-row {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.price-amount {
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--green-800);
	letter-spacing: -0.02em;
}

/* WooCommerce price override */
.price-block .woocommerce-Price-amount {
	font-size: 2.25rem;
	font-weight: 700;
	color: var(--green-800);
	letter-spacing: -0.02em;
}

.price-block .woocommerce-Price-currencySymbol {
	font-size: 1.5rem;
}

.price-shipping {
	font-size: 0.85rem;
	color: var(--green-700);
	font-weight: 500;
}

.price-note {
	font-size: 0.8rem;
	color: var(--slate-500);
	line-height: 1.5;
}

/* CTAs */
.cta-stack {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.btn-buy,
.cta-stack .single_add_to_cart_button {
	display: block;
	width: 100%;
	padding: 1rem;
	background: var(--green-700);
	color: var(--white);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s;
	font-family: var(--font-body);
	text-decoration: none;
}

.btn-buy:hover,
.cta-stack .single_add_to_cart_button:hover {
	background: var(--green-800);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(22, 101, 52, 0.25);
	color: var(--white);
}

.btn-rfq {
	display: block;
	width: 100%;
	padding: 0.85rem;
	background: none;
	color: var(--green-700);
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
	border: 1px solid var(--green-300);
	border-radius: var(--radius);
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	font-family: var(--font-body);
}

.btn-rfq:hover {
	background: var(--green-50);
	color: var(--green-800);
}

.cta-sub {
	text-align: center;
	font-size: 0.75rem;
	color: var(--slate-400);
	margin-top: 0.25rem;
}

/* WooCommerce cart form integration */
.cta-stack form.cart {
	display: contents;
}

.cta-stack .quantity {
	display: none; /* Hide quantity for clean CTA layout; quantity can be adjusted in cart */
}

/* Trust Signals */
.trust-signals {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border: 1px solid var(--slate-200);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 2rem;
}

.trust-signal {
	text-align: center;
	padding: 0.85rem 0.5rem;
	border-right: 1px solid var(--slate-200);
}

.trust-signal:last-child {
	border-right: none;
}

.trust-signal .ts-icon {
	font-size: 1.2rem;
	margin-bottom: 0.25rem;
}

.trust-signal .ts-text {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--slate-700);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Quick Specs */
.quick-specs {
	margin-bottom: 2rem;
}

.quick-specs h4 {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--slate-400);
	margin-bottom: 0.75rem;
}

.qs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.qs-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.6rem 0.85rem;
	background: var(--slate-50);
	border-radius: 6px;
	font-size: 0.85rem;
}

.qs-label { color: var(--slate-500); }
.qs-value { font-weight: 600; color: var(--slate-800); text-align: right; }

/* What's Included */
.whats-included {
	margin-bottom: 2rem;
}

.whats-included h4 {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--slate-400);
	margin-bottom: 0.75rem;
}

.included-list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
}

.included-list li {
	font-size: 0.85rem;
	color: var(--slate-700);
	padding-left: 1.25rem;
	position: relative;
}

.included-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--green-600);
	font-weight: 700;
}

/* Upgrade Nudge */
.upgrade-nudge {
	background: var(--slate-50);
	border: 1px solid var(--slate-200);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.nudge-icon {
	font-size: 1.5rem;
	flex-shrink: 0;
}

.nudge-text {
	flex: 1;
}

.nudge-text strong {
	font-size: 0.85rem;
	color: var(--slate-800);
}

.nudge-text p {
	font-size: 0.78rem;
	color: var(--slate-500);
	margin-top: 0.15rem;
}

.nudge-link {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--green-700);
	white-space: nowrap;
	text-decoration: none;
}

.nudge-link:hover {
	color: var(--green-800);
}

/* ─── Deep Dive Sections ─────────────────────────────────────────────────────── */

.section-divider {
	border-top: 1px solid var(--slate-100);
}

.deep-section {
	padding: 4rem 0;
}

.deep-section.alt {
	background: var(--slate-50);
}

.deep-section h2 {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--slate-900);
	margin-bottom: 0.5rem;
	letter-spacing: -0.02em;
}

.deep-section .section-desc {
	font-size: 1rem;
	color: var(--slate-500);
	margin-bottom: 2rem;
	max-width: 600px;
}

/* How It Works (4-step grid) */
.hiw-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.hiw-step {
	text-align: center;
}

.hiw-num {
	width: 40px;
	height: 40px;
	background: var(--green-700);
	color: var(--white);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.75rem;
}

.hiw-step h4 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--slate-800);
	margin-bottom: 0.4rem;
}

.hiw-step p {
	font-size: 0.83rem;
	color: var(--slate-500);
	line-height: 1.5;
}

/* Ideal For (3-column grid, up to 6 items) */
.ideal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

.ideal-card {
	border: 1px solid var(--slate-200);
	border-radius: var(--radius);
	padding: 1.5rem;
	text-align: center;
}

.ideal-card .ic-emoji {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

.ideal-card h4 {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--slate-800);
	margin-bottom: 0.25rem;
}

.ideal-card p {
	font-size: 0.8rem;
	color: var(--slate-500);
}

/* Full Specs Table */
.specs-table {
	width: 100%;
	max-width: 600px;
	border-collapse: collapse;
}

.specs-table tr {
	border-bottom: 1px solid var(--slate-100);
}

.specs-table td {
	padding: 1rem 0;
	font-size: 0.9rem;
}

.specs-table td:first-child {
	color: var(--slate-500);
	width: 40%;
}

.specs-table td:last-child {
	font-weight: 500;
	color: var(--slate-800);
}

/* FAQ */
.faq-list {
	max-width: 700px;
}

.faq-item {
	border-bottom: 1px solid var(--slate-100);
	padding: 1.25rem 0;
}

.faq-item:last-child {
	border-bottom: none;
}

.faq-item h4 {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--slate-800);
	margin-bottom: 0.35rem;
}

.faq-item p {
	font-size: 0.88rem;
	color: var(--slate-500);
	line-height: 1.6;
}

/* Bottom CTA */
.product-bottom-cta {
	background: var(--green-950);
	padding: 3.5rem 0;
	text-align: center;
}

.product-bottom-cta h2 {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 0.5rem;
}

.product-bottom-cta p {
	color: var(--slate-400);
	margin-bottom: 1.5rem;
	font-size: 1rem;
}

.bottom-cta-buttons {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-cta-w {
	padding: 0.85rem 2rem;
	border-radius: var(--radius);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	border: none;
	font-family: var(--font-body);
	text-decoration: none;
}

.btn-cta-buy {
	background: var(--green-500);
	color: var(--white);
}

.btn-cta-buy:hover {
	background: var(--green-400);
	color: var(--white);
}

.btn-cta-quote {
	background: transparent;
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-quote:hover {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.05);
	color: var(--white);
}

/* ─── WooCommerce notices on product page ────────────────────────────────────── */

.woocommerce-notices-wrapper {
	margin-bottom: 1rem;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.product-hero-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.gallery {
		position: static;
	}

	.hiw-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ideal-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.product-info h1 { font-size: 1.75rem; }
	.price-amount,
	.price-block .woocommerce-Price-amount { font-size: 1.75rem; }
	.hiw-grid { grid-template-columns: 1fr; }
	.ideal-grid { grid-template-columns: 1fr; }
	.qs-grid { grid-template-columns: 1fr; }
	.included-list { grid-template-columns: 1fr; }
	.bottom-cta-buttons { flex-direction: column; align-items: center; }
	.upgrade-nudge { flex-direction: column; text-align: center; }
	.trust-signals { grid-template-columns: 1fr; }
	.trust-signal { border-right: none; border-bottom: 1px solid var(--slate-200); }
	.trust-signal:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
	.product-hero { padding: 2rem 0; }
	.gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
