/**
 * The Bio Edit — Single Product Page Styles
 * Mirrors the React ProductDetail.tsx exactly.
 * Warm Editorial Luxury — cream/gold/charcoal palette.
 */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
	--bio-gold:    #b08d72;
	--bio-gold-dk: #9a7660;
	--bio-cream:   #f7f4f0;
	--bio-light:   #f2ede8;
	--bio-charcoal:#2a2420;
	--bio-muted:   #857a74;
	--bio-border:  #e0d8d0;
	--bio-font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
	--bio-font-body:    'DM Sans', 'Inter', system-ui, sans-serif;
}

/* ── Page wrapper ───────────────────────────────────────────── */
.bio-single-page {
	background: var(--bio-cream);
	min-height: 100vh;
}

/* ── Container ──────────────────────────────────────────────── */
.bio-single-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
}
@media (max-width: 768px) {
	.bio-single-container { padding: 0 20px; }
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.bio-single-breadcrumb {
	border-bottom: 1px solid var(--bio-border);
	background: var(--bio-cream);
}
.bio-single-breadcrumb .bio-single-container {
	padding-top: 16px;
	padding-bottom: 16px;
}
.bio-single-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--bio-font-body);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bio-muted);
	text-decoration: none;
	transition: color 160ms ease;
}
.bio-single-back-link:hover { color: var(--bio-charcoal); }
.bio-single-back-link svg { color: currentColor; }

/* ── 2-column Layout ────────────────────────────────────────── */
.bio-single-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	padding-top: 60px;
	padding-bottom: 80px;
	align-items: start;
}
@media (max-width: 1024px) {
	.bio-single-layout { gap: 48px; }
}
@media (max-width: 768px) {
	.bio-single-layout {
		grid-template-columns: 1fr;
		gap: 32px;
		padding-top: 32px;
		padding-bottom: 120px; /* room for sticky bar */
	}
}

/* ── LEFT: Image Column ─────────────────────────────────────── */
.bio-single-image-col {}

.bio-single-image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--bio-light);
	border: 1px solid var(--bio-border);
	overflow: hidden;
}
.bio-single-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Badges on image */
.bio-single-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	font-family: var(--bio-font-body);
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--bio-gold);
	color: #fff;
	padding: 4px 10px;
	pointer-events: none;
}
.bio-single-badge--sale {
	background: var(--bio-charcoal);
}

/* Gallery strip */
.bio-single-gallery {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.bio-single-thumb {
	width: 64px;
	height: 64px;
	border: 1px solid var(--bio-border);
	background: none;
	cursor: pointer;
	padding: 0;
	overflow: hidden;
	transition: border-color 160ms ease;
	flex-shrink: 0;
}
.bio-single-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bio-single-thumb--active {
	border-color: var(--bio-gold);
}
.bio-single-thumb:hover {
	border-color: var(--bio-gold-dk);
}

/* ── RIGHT: Info Column ─────────────────────────────────────── */
.bio-single-info-col {
	display: flex;
	flex-direction: column;
}

/* Category tag links */
.bio-single-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 10px;
}
.bio-single-cat-tag {
	font-family: var(--bio-font-body);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bio-gold);
	text-decoration: none;
	transition: color 160ms ease;
}
.bio-single-cat-tag:not(:last-child)::after {
	content: '·';
	margin-left: 8px;
	color: var(--bio-border);
}
.bio-single-cat-tag:hover { color: var(--bio-gold-dk); }

/* Title */
.bio-single-title {
	font-family: var(--bio-font-display);
	font-size: clamp(2.4rem, 4vw, 3.6rem);
	font-weight: 300;
	color: var(--bio-charcoal);
	line-height: 1.15;
	margin: 0 0 6px;
}

/* Subtitle */
.bio-single-subtitle {
	font-family: var(--bio-font-body);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bio-muted);
	margin: 0 0 20px;
}

/* Price Row */
.bio-single-price-row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}
.bio-single-price {
	font-family: var(--bio-font-display);
	font-size: 2rem;
	font-weight: 400;
}
.bio-single-price--current {
	color: var(--bio-charcoal);
}
.bio-single-price--current ins,
.bio-single-price--current .woocommerce-Price-amount {
	text-decoration: none;
	color: var(--bio-charcoal);
}
.bio-single-price--original {
	color: var(--bio-muted);
	text-decoration: line-through;
	font-size: 1.2rem;
}
.bio-single-discount-badge {
	font-family: var(--bio-font-body);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bio-gold);
	background: #f5ede2;
	border: 1px solid #e8d9c8;
	padding: 3px 9px;
}

/* Divider */
.bio-single-rule {
	border: none;
	border-top: 1px solid var(--bio-border);
	margin: 20px 0;
}

/* Description */
.bio-single-desc {
	font-family: var(--bio-font-body);
	font-size: 13.5px;
	line-height: 1.7;
	color: #4a4440;
	margin: 0 0 24px;
}

/* ── Subscribe & Save Toggle ────────────────────────────────── */
.bio-single-purchase-toggle {
	margin-bottom: 20px;
}
.bio-single-toggle-bar {
	display: flex;
	border: 1px solid var(--bio-border);
	background: var(--bio-light);
	padding: 3px;
	gap: 3px;
	margin-bottom: 16px;
}
.bio-toggle-btn {
	flex: 1;
	padding: 10px 12px;
	font-family: var(--bio-font-body);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	border: none;
	background: transparent;
	color: var(--bio-muted);
	transition: all 180ms cubic-bezier(0.23, 1, 0.32, 1);
	white-space: nowrap;
}
.bio-toggle-btn--active {
	background: var(--bio-charcoal);
	color: #fff;
}

/* ── Membership Tiers ───────────────────────────────────────── */
.bio-single-tiers {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.bio-tiers-label {
	font-family: var(--bio-font-body);
	font-size: 9px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bio-muted);
	margin: 0 0 4px;
}
.bio-tier-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border: 1px solid var(--bio-border);
	background: var(--bio-cream);
	cursor: pointer;
	transition: all 180ms cubic-bezier(0.23, 1, 0.32, 1);
	position: relative;
	text-align: left;
	width: 100%;
}
.bio-tier-row:hover {
	border-color: var(--bio-gold);
}
.bio-tier-row--active {
	border-color: var(--bio-gold);
	background: #fdfaf6;
}
.bio-tier-popular {
	position: absolute;
	top: -1px;
	right: -1px;
	font-family: var(--bio-font-body);
	font-size: 8px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--bio-gold);
	color: #fff;
	padding: 2px 8px;
}
.bio-tier-left {
	display: flex;
	align-items: center;
	gap: 10px;
}
.bio-tier-radio {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1.5px solid var(--bio-border);
	background: transparent;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 160ms ease;
}
.bio-tier-radio--active {
	border-color: var(--bio-gold);
	background: var(--bio-gold);
}
.bio-tier-radio--active::after {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #fff;
}
.bio-tier-meta {
	display: flex;
	flex-direction: column;
	gap: 1px;
}
.bio-tier-name {
	font-family: var(--bio-font-body);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--bio-charcoal);
}
.bio-tier-period {
	font-family: var(--bio-font-body);
	font-size: 10px;
	color: var(--bio-muted);
}
.bio-tier-right {
	text-align: right;
}
.bio-tier-price {
	display: block;
	font-family: var(--bio-font-display);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--bio-charcoal);
}
.bio-tier-row--active .bio-tier-price {
	color: var(--bio-gold);
}
.bio-tier-discount {
	display: block;
	font-family: var(--bio-font-body);
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bio-muted);
}
.bio-tier-row--active .bio-tier-discount {
	color: var(--bio-gold);
}
.bio-tiers-footnote {
	font-family: var(--bio-font-body);
	font-size: 10px;
	color: var(--bio-muted);
	line-height: 1.6;
	margin: 4px 0 0;
}
.bio-tiers-footnote a {
	color: var(--bio-gold);
	text-decoration: underline;
}

/* ── Add to Cart Button ─────────────────────────────────────── */
.bio-single-atc-btn {
	display: block;
	width: 100%;
	padding: 16px 24px;
	font-family: var(--bio-font-body) !important;
	font-size: 10px !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	background: var(--bio-gold) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer !important;
	text-align: center !important;
	text-decoration: none !important;
	transition: background 160ms cubic-bezier(0.23, 1, 0.32, 1) !important;
	margin-bottom: 16px !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.bio-single-atc-btn:hover {
	background: var(--bio-gold-dk) !important;
	color: #fff !important;
}
.bio-single-atc-btn--oos {
	background: var(--bio-border) !important;
	color: var(--bio-muted) !important;
	cursor: not-allowed !important;
}
.bio-single-atc-btn--select {
	background: var(--bio-charcoal) !important;
}

/* ── Trust Badges (icon grid) ───────────────────────────────── */
.bio-single-trust-badges {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--bio-border);
	background: var(--bio-light);
	margin-bottom: 16px;
}
.bio-trust-badge {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 12px 8px;
	border-right: 1px solid var(--bio-border);
}
.bio-trust-badge:last-child { border-right: none; }
.bio-trust-badge svg { color: var(--bio-gold); flex-shrink: 0; }
.bio-trust-badge span {
	font-family: var(--bio-font-body);
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bio-muted);
	text-align: center;
	line-height: 1.3;
}

/* ── Payment Methods ────────────────────────────────────────── */
.bio-single-payment {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}
.bio-payment-label {
	font-family: var(--bio-font-body);
	font-size: 9px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bio-muted);
	flex-shrink: 0;
}
.bio-payment-method {
	font-family: var(--bio-font-body);
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bio-charcoal);
	background: var(--bio-light);
	border: 1px solid var(--bio-border);
	padding: 3px 9px;
}

/* ── Trust Signals (rows) ───────────────────────────────────── */
.bio-single-trust-signals {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
}
.bio-trust-signal {
	display: flex;
	align-items: center;
	gap: 12px;
}
.bio-trust-signal svg {
	color: var(--bio-gold);
	flex-shrink: 0;
}
.bio-trust-signal span {
	font-family: var(--bio-font-body);
	font-size: 12px;
	color: var(--bio-muted);
	line-height: 1.5;
}

/* ── RUO Disclaimer ─────────────────────────────────────────── */
.bio-single-ruo {
	background: var(--bio-light);
	border: 1px solid var(--bio-border);
	border-left: 3px solid var(--bio-gold);
	padding: 14px 16px;
}
.bio-ruo-title {
	font-family: var(--bio-font-body);
	font-size: 9.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--bio-charcoal);
	margin: 0 0 6px;
}
.bio-ruo-body {
	font-family: var(--bio-font-body);
	font-size: 11px;
	color: var(--bio-muted);
	line-height: 1.7;
	margin: 0;
}

/* ── Related Products Section ───────────────────────────────── */
.bio-related-section {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px 80px;
}
@media (max-width: 768px) {
	.bio-related-section { padding: 0 20px 60px; }
}
.bio-related-section > hr,
.bio-related-section::before {
	border: none;
	border-top: 1px solid var(--bio-border);
	display: block;
	content: '';
	margin-bottom: 48px;
}
.bio-related-heading {
	font-family: var(--bio-font-display) !important;
	font-size: 2rem !important;
	font-weight: 300 !important;
	color: var(--bio-charcoal) !important;
	margin: 0 0 32px !important;
}

/* Overline above heading */
.bio-related-section .bio-related-overline {
	font-family: var(--bio-font-body);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--bio-muted);
	margin-bottom: 10px;
}

/* ── Sticky Add to Cart Bar (all screen sizes) ──────────────── */
.bio-sticky-atc {
	display: flex;          /* always flex — JS toggles visibility via class */
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: #fdfaf6;
	border-top: 1px solid var(--bio-border);
	padding: 12px 40px;
	align-items: center;
	gap: 12px;
	box-shadow: 0 -4px 24px rgba(42, 36, 32, 0.08);
	transform: translateY(110%);  /* start off-screen */
	transition: transform 220ms cubic-bezier(0.23, 1, 0.32, 1);
	pointer-events: none;         /* not clickable while hidden */
}
.bio-sticky-atc--visible {
	transform: translateY(0);
	pointer-events: all;          /* clickable once visible */
}
.bio-sticky-info { flex: 1; min-width: 0; }
.bio-sticky-name {
	font-family: var(--bio-font-body);
	font-size: 11px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--bio-charcoal);
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
}
.bio-sticky-price {
	font-family: var(--bio-font-body);
	font-size: 10px;
	color: var(--bio-gold);
	margin: 2px 0 0;
}
.bio-sticky-btn {
	background: var(--bio-gold) !important;
	color: #fff !important;
	border: none !important;
	padding: 12px 20px !important;
	font-family: var(--bio-font-body) !important;
	font-size: 10px !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	flex-shrink: 0 !important;
	transition: background 160ms ease !important;
	border-radius: 0 !important;
}
.bio-sticky-btn:hover {
	background: var(--bio-gold-dk) !important;
}

/* ── Elementor / Hello Theme overrides ──────────────────────── */
.bio-single-page .elementor-widget-wrap,
.bio-single-page .elementor-section {
	/* Let the custom template control layout */
}

/* Ensure WooCommerce notices show above */
.bio-single-page .woocommerce-notices-wrapper {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
}

/* Remove default WC/theme padding that conflicts */
.woocommerce-page.single-product .site-content,
.woocommerce-page.single-product #content,
.woocommerce-page.single-product .woocommerce {
	padding: 0 !important;
	max-width: none !important;
}
