/* ==========================================================================
   Solprana theme stylesheet.
   Color tokens are injected as CSS custom properties on :root via
   wp_add_inline_style() (Section 6 / 22.9) — never hardcode hex here.
   ========================================================================== */

:root {
	--font-display: 'Manrope', 'Instrument Sans', system-ui, sans-serif;
	--font-body: 'Instrument Sans', system-ui, sans-serif;
	--radius: 0.25rem;
	--container-max: 80rem;
	--header-height: 80px;
	--checkout-gap: 2rem;
	--btn-radius: 0.375rem;
	--btn-height: 3rem;
	--btn-padding: 0.75rem 1.5rem;
	--btn-font-size: 0.9375rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--card-radius: 0.375rem;
	--section-padding: 2rem;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { max-width: 100%; overflow-x: clip; }
html { scroll-behavior: smooth; }
body.theme-thankyou-page { overflow-x: hidden; }

body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	margin: 0;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
img:not(.cover-img):not(.hero-bg-img):not(.theme-product-card-img):not(.theme-product-card-img-hover):not(.theme-product-main-img):not(.theme-coming-soon-img):not(.theme-journal-hero-img) {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; margin: 0; }
h1, h2, h3, h4, h5, h6, .font-display {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--color-foreground);
}
p { margin: 0; }
a { text-decoration: none; color: inherit; }
a[href], button:not(:disabled), [role="button"]:not([aria-disabled="true"]), label[for], select, summary,
.theme-section-anchor, .theme-shop-filter-btn, .theme-card-link, .theme-inquire-link,
.theme-accordion-trigger, .theme-thumb-btn, .theme-modal-close, [data-cart-open], [data-cart-close],
[data-science-doc], [data-modal-close], .cursor-pointer {
	cursor: pointer;
}
button { font-family: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* -------------------------------------------------------------------- */
/* Layout utilities                                                       */
/* -------------------------------------------------------------------- */
.container-wide { width: 100%; max-width: var(--container-max); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) { .container-wide { padding-left: 2rem; padding-right: 2rem; } }

.grid { display: grid; }
.flex { display: flex; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.font-semibold { font-weight: 600; }

@media (min-width: 640px) {
	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.lg\:col-span-4 { grid-column: span 4 / span 4; }
	.lg\:col-span-5 { grid-column: span 5 / span 5; }
	.lg\:col-span-6 { grid-column: span 6 / span 6; }
	.lg\:col-span-7 { grid-column: span 7 / span 7; }
	.lg\:col-span-8 { grid-column: span 8 / span 8; }
	.lg\:col-span-12 { grid-column: span 12 / span 12; }
}

/* -------------------------------------------------------------------- */
/* Section tone surfaces                                                  */
/* -------------------------------------------------------------------- */
.cs-section-dark      { background-color: var(--color-forest); color: var(--color-background); }
.cs-section-dark h1, .cs-section-dark h2, .cs-section-dark h3 { color: var(--color-background); }
.cs-section-cream     { background-color: var(--color-stone); color: var(--color-foreground); }
.cs-section-cream-alt { background-color: var(--color-background); color: var(--color-foreground); }
.cs-section-sand      { background-color: var(--color-sand); color: var(--color-foreground); }

.bg-forest { background-color: var(--color-forest); }
.bg-forest .cs-display,
#contact .cs-display { color: var(--color-background); }
.bg-gold { background-color: var(--color-gold); }
.bg-stone { background-color: var(--color-stone); }
.bg-background { background-color: var(--color-background); }
.text-forest { color: var(--color-forest); }
.text-background { color: var(--color-background); }
.text-gold { color: var(--color-gold); }
.text-olive { color: var(--color-olive); }
.text-foreground\/55 { color: color-mix(in srgb, var(--color-foreground) 55%, transparent); }
.text-foreground\/65 { color: color-mix(in srgb, var(--color-foreground) 65%, transparent); }
.text-foreground\/70 { color: color-mix(in srgb, var(--color-foreground) 70%, transparent); }
.text-foreground\/75 { color: color-mix(in srgb, var(--color-foreground) 75%, transparent); }
.text-foreground\/80 { color: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.text-foreground\/45 { color: color-mix(in srgb, var(--color-foreground) 45%, transparent); }
.text-background\/80 { color: color-mix(in srgb, var(--color-background) 80%, transparent); }
.text-background\/70 { color: color-mix(in srgb, var(--color-background) 70%, transparent); }
.text-background\/65 { color: color-mix(in srgb, var(--color-background) 65%, transparent); }
.text-background\/60 { color: color-mix(in srgb, var(--color-background) 60%, transparent); }
.text-forest\/80 { color: color-mix(in srgb, var(--color-forest) 80%, transparent); }
.text-forest\/75 { color: color-mix(in srgb, var(--color-forest) 75%, transparent); }
.text-forest\/70 { color: color-mix(in srgb, var(--color-forest) 70%, transparent); }
.text-forest\/55 { color: color-mix(in srgb, var(--color-forest) 55%, transparent); }
.text-forest\/45 { color: color-mix(in srgb, var(--color-forest) 45%, transparent); }
.text-forest\/40 { color: color-mix(in srgb, var(--color-forest) 40%, transparent); }
.border-forest\/10 { border-color: color-mix(in srgb, var(--color-forest) 10%, transparent); }
.border-forest\/12 { border-color: color-mix(in srgb, var(--color-forest) 12%, transparent); }
.border-forest\/15 { border-color: color-mix(in srgb, var(--color-forest) 15%, transparent); }
.border-forest\/20 { border-color: color-mix(in srgb, var(--color-forest) 20%, transparent); }
.border-forest\/25 { border-color: color-mix(in srgb, var(--color-forest) 25%, transparent); }
.border-background\/15 { border-color: color-mix(in srgb, var(--color-background) 15%, transparent); }
.border-background\/20 { border-color: color-mix(in srgb, var(--color-background) 20%, transparent); }
.border-background\/35 { border-color: color-mix(in srgb, var(--color-background) 35%, transparent); }
.bg-background\/5 { background-color: color-mix(in srgb, var(--color-background) 5%, transparent); }
.bg-stone\/40 { background-color: color-mix(in srgb, var(--color-stone) 40%, transparent); }
.bg-stone\/70 { background-color: color-mix(in srgb, var(--color-stone) 70%, transparent); }
.bg-forest\/70 { background-color: color-mix(in srgb, var(--color-forest) 70%, transparent); }
.placeholder\:text-forest\/40::placeholder { color: color-mix(in srgb, var(--color-forest) 40%, transparent); }
.placeholder\:text-forest\/45::placeholder { color: color-mix(in srgb, var(--color-forest) 45%, transparent); }
.cs-display.text-background,
.text-background.cs-display { color: var(--color-background); }
.cs-section-dark .cs-display { color: var(--color-background); }
.marquee-pausable .cs-label { color: color-mix(in srgb, var(--color-background) 80%, transparent); }

/* -------------------------------------------------------------------- */
/* Typography roles (Section 2.2)                                        */
/* -------------------------------------------------------------------- */
.cs-label {
	font-family: var(--font-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 14px;
	line-height: 1.2;
}
.cs-display {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.05;
	color: var(--color-foreground);
}
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }

/* Hero title */
#hero h1.cs-display { font-size: 2rem; line-height: 1.1; }
@media (min-width: 640px)  { #hero h1.cs-display { font-size: 3rem; } }
@media (min-width: 768px)  { #hero h1.cs-display { font-size: 3.75rem; } }
@media (min-width: 1024px) { #hero h1.cs-display { font-size: 4.5rem; } }

/* About-section headings */
.about-section.section-heading { font-size: 1.875rem; }
@media (min-width: 768px)  { .about-section.section-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-section.section-heading { font-size: 3rem; } }

/* Offerings/systems section heading */
.offerings-section.section-heading { font-size: 1.875rem; }
@media (min-width: 768px) { .offerings-section.section-heading { font-size: 3rem; } }

/* Shop / contact headings */
.shop-heading, .contact-title { font-size: 1.875rem; }
@media (min-width: 768px) { .shop-heading, .contact-title { font-size: 3rem; } }

/* -------------------------------------------------------------------- */
/* Buttons                                                                */
/* -------------------------------------------------------------------- */
.btn-hero-primary, .btn-hero-outline, .single_add_to_cart_button, .add_to_cart_button {
	text-transform: none;
}

.btn-shimmer { position: relative; overflow: hidden; isolation: isolate; transition: transform 350ms ease, opacity 350ms ease; }
.btn-shimmer::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, #fff 16%, transparent) 50%, transparent 65%);
	transform: translateX(-120%);
	transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none; z-index: 1;
}
.btn-shimmer:hover::before { transform: translateX(120%); }
.btn-shimmer > * { position: relative; z-index: 2; }

/* -------------------------------------------------------------------- */
/* Animations (Section 2.1)                                              */
/* -------------------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fadeIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 46s linear infinite; }
.marquee-pausable:hover .animate-marquee { animation-play-state: paused; }

[data-cs-fade] {
	opacity: 0; transform: translateY(28px);
	transition: opacity 850ms cubic-bezier(0.22,1,0.36,1), transform 850ms cubic-bezier(0.22,1,0.36,1);
	transition-delay: var(--cs-fade-delay, 0ms);
}
[data-cs-fade].is-visible { opacity: 1; transform: translateY(0); }
body.is-customizer [data-cs-fade],
body.is-customizer .reveal-item,
body.is-customizer .reveal-blur { opacity: 1 !important; transform: none !important; filter: none !important; }

.reveal-item { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(0.22,1,0.36,1), transform 700ms cubic-bezier(0.22,1,0.36,1); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@keyframes ken-burns {
	0%   { transform: scale(1) translate3d(0,0,0); }
	50%  { transform: scale(1.07) translate3d(-1.2%,-1.2%,0); }
	100% { transform: scale(1) translate3d(0,0,0); }
}
.ken-burns { animation: ken-burns 30s ease-in-out infinite; will-change: transform; }

.cs-tilt { transition: transform 500ms cubic-bezier(0.22,1,0.36,1); }
.cs-tilt:hover { transform: perspective(1000px) rotateX(1.6deg) rotateY(-1.6deg) translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
	[data-cs-fade], .reveal-item, .reveal-blur { opacity: 1 !important; transform: none !important; transition: none !important; }
	.cs-tilt, .cs-tilt:hover { transition: none !important; transform: none !important; }
	.ken-burns, .btn-shimmer::before, .animate-marquee { animation: none !important; }
}

/* -------------------------------------------------------------------- */
/* WordPress admin bar                                                  */
/* -------------------------------------------------------------------- */
body.admin-bar {
	--admin-bar-height: 32px;
}
@media screen and (max-width: 782px) {
	body.admin-bar {
		--admin-bar-height: 46px;
	}
}
body.admin-bar .site-header {
	top: var(--admin-bar-height);
}
body.admin-bar #back-to-top-fab {
	bottom: calc(2rem + var(--admin-bar-height));
}

/* -------------------------------------------------------------------- */
/* Header                                                                 */
/* -------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; left: 0; right: 0; z-index: 50; width: 100%;
	border-bottom: 1px solid color-mix(in srgb, var(--color-forest) 10%, transparent);
	background-color: var(--color-background);
	transition: background-color 300ms ease, border-color 300ms ease;
}
.site-header.is-solid { background-color: color-mix(in srgb, var(--color-background) 95%, transparent); backdrop-filter: blur(8px); }
.site-logo-img { height: var(--logo-height, 48px) !important; width: auto !important; display: block; }
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--color-forest); }

.theme-nav-list, .theme-nav-list-mobile { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.theme-nav-list-mobile { flex-direction: column; align-items: stretch; gap: 0.25rem; }
.theme-nav-list a, .theme-nav-list-mobile a {
	font-family: var(--font-body); font-size: 14px; color: color-mix(in srgb, var(--color-forest) 80%, transparent);
	font-weight: 500; transition: color 200ms ease; display: block;
}
.theme-nav-list a:hover { color: var(--color-forest); }
.theme-nav-list-mobile a { padding: 0.75rem 0.5rem; border-radius: var(--radius); color: var(--color-forest); font-size: 15px; }
.theme-nav-list-mobile a:hover { background-color: var(--color-stone); }

/* Mobile hamburger menu — always vertical (matches Header.tsx) */
#mobile-menu .theme-nav-list,
#mobile-menu .theme-nav-list-mobile {
	flex-direction: column;
	align-items: stretch;
	gap: 0.25rem;
	width: 100%;
}
#mobile-menu .theme-nav-list li,
#mobile-menu .theme-nav-list-mobile li {
	display: block;
	width: 100%;
}
#mobile-menu .theme-nav-list a,
#mobile-menu .theme-nav-list-mobile a {
	display: block;
	text-align: left;
	padding: 0.75rem 0.5rem;
	border-radius: var(--radius);
	color: var(--color-forest);
	font-size: 15px;
	font-weight: 500;
}
#mobile-menu .theme-nav-list a:hover,
#mobile-menu .theme-nav-list-mobile a:hover {
	background-color: var(--color-stone);
	color: var(--color-forest);
}

#primary-nav-desktop { display: none; margin-left: auto; }
@media (min-width: 1024px) { #primary-nav-desktop { display: flex; } #mobile-menu-toggle { display: none; } }

.theme-cart-count:empty { display: none; }

/* -------------------------------------------------------------------- */
/* Hero                                                                   */
/* -------------------------------------------------------------------- */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg-img, .hero-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-hero-gradient {
	background: linear-gradient(
		180deg,
		rgba(20, 53, 42, 0.55) 0%,
		rgba(20, 53, 42, 0.35) 45%,
		rgba(20, 53, 42, 0.9) 100%
	);
}
.bg-forest\/72 { background-color: color-mix(in srgb, var(--color-forest) 72%, transparent); }

#hero h1.cs-display { color: var(--color-background); }
#hero .text-gold { color: var(--color-gold); }
#hero .text-background { color: var(--color-background); }
#hero .text-background\/80 { color: color-mix(in srgb, var(--color-background) 80%, transparent); }

.btn-hero-primary {
	background-color: var(--color-gold);
	color: var(--color-forest);
}
.btn-hero-outline {
	border: 1px solid color-mix(in srgb, var(--color-background) 35%, transparent);
	color: var(--color-background);
}

body.theme-no-hero .site-main { padding-top: var(--header-height); }
body:not(.theme-no-hero) #hero { margin-top: calc(-1 * var(--header-height)); padding-top: var(--header-height); }

/* -------------------------------------------------------------------- */
/* System / why / advisor / audience / coming-soon cards                 */
/* -------------------------------------------------------------------- */
.theme-system-card--forest { border-color: color-mix(in srgb, var(--color-forest) 35%, transparent); background-image: linear-gradient(160deg, color-mix(in srgb, var(--color-forest) 7%, transparent) 0%, var(--color-background) 55%); }
.theme-coming-soon-card { background-image: linear-gradient(165deg, color-mix(in srgb, var(--color-olive) 8%, transparent) 0%, var(--color-background) 60%); }
.theme-system-card--gold { border-color: color-mix(in srgb, var(--color-gold) 50%, transparent); background-image: linear-gradient(160deg, color-mix(in srgb, var(--color-gold) 12%, transparent) 0%, var(--color-background) 55%); }
.theme-system-ring--forest { background-color: color-mix(in srgb, var(--color-forest) 8%, transparent); color: var(--color-forest); }
.theme-system-ring--gold { background-color: color-mix(in srgb, var(--color-gold) 15%, transparent); color: var(--color-olive); }
.theme-coming-soon-media { position: relative; aspect-ratio: 4 / 5; width: 100%; border-radius: var(--card-radius); overflow: hidden; background-color: color-mix(in srgb, var(--color-stone) 70%, transparent); }
.theme-coming-soon-img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	filter: blur(10px); transform: scale(1.1); opacity: 0.85;
}
.theme-coming-soon-icon {
	position: absolute; inset: 0; z-index: 1;
	display: flex; align-items: center; justify-content: center;
	color: color-mix(in srgb, var(--color-forest) 70%, transparent);
}
.theme-coming-soon-icon svg { width: 3rem; height: 3rem; }

/* Journal article header */
.theme-article-enter { animation: themeArticleEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes themeArticleEnter {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}
.theme-journal-header { position: relative; overflow: hidden; background-color: var(--color-forest); }
.theme-journal-header__media { position: absolute; inset: 0; opacity: 0.6; }
.theme-journal-header__media img.theme-journal-hero-img { width: 100%; height: 100%; object-fit: cover; }
.theme-journal-header__overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--color-forest) 70%, transparent); z-index: 1; }
.theme-ray-texture {
	pointer-events: none; position: absolute; z-index: 2;
	left: 50%; bottom: 0; transform: translateX(-50%);
	width: min(900px, 100%); height: 420px;
	color: color-mix(in srgb, var(--color-gold) 15%, transparent);
}
.theme-journal-header__content { position: relative; z-index: 10; }
.theme-journal-header h1.cs-display {
	color: var(--color-background);
	font-size: 2.25rem;
	line-height: 1.05;
	max-width: 56rem;
}
@media (min-width: 768px) {
	.theme-journal-header h1.cs-display { font-size: 3.75rem; }
}

/* Footer layout */
.theme-footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
}
@media (min-width: 768px) {
	.theme-footer-grid {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 4rem;
	}
	.theme-footer-brand { grid-column: span 5 / span 5; }
	.theme-footer-nav { grid-column: span 3 / span 3; }
	.theme-footer-contact { grid-column: span 4 / span 4; }
}
.theme-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.theme-footer-grid .footer-nav-list .sub-menu { display: none; }
.theme-footer-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.75rem;
	align-items: center;
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid color-mix(in srgb, var(--color-forest) 15%, transparent);
}
@media (min-width: 768px) {
	.theme-footer-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.theme-footer-bottom__copy { justify-self: start; text-align: left; }
	.theme-footer-bottom__top { justify-self: end; }
}
.theme-why-card { background-image: linear-gradient(160deg, color-mix(in srgb, var(--color-background) 7%, transparent) 0%, transparent 65%); }
.theme-advisor-card { background-image: linear-gradient(165deg, color-mix(in srgb, var(--color-gold) 10%, transparent) 0%, var(--color-background) 58%); }
.theme-systems-gradient { background: linear-gradient(180deg, color-mix(in srgb, var(--color-forest) 32%, transparent) 0%, color-mix(in srgb, var(--color-forest) 26%, transparent) 45%, color-mix(in srgb, var(--color-forest) 34%, transparent) 100%); }
.theme-audience-gradient { background: linear-gradient(180deg, color-mix(in srgb, var(--color-forest) 34%, transparent) 0%, color-mix(in srgb, var(--color-forest) 28%, transparent) 50%, color-mix(in srgb, var(--color-forest) 36%, transparent) 100%); }
.horizon-divider-svg { color: color-mix(in srgb, var(--color-forest) 35%, transparent); width: 240px; height: 24px; }
.theme-horizon-gold .horizon-divider-svg { color: color-mix(in srgb, var(--color-gold) 40%, transparent); }

/* -------------------------------------------------------------------- */
/* Product cards + shop grid                                             */
/* -------------------------------------------------------------------- */
.theme-product-grid { display: grid; gap: 1.5rem; align-items: stretch; grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) {
	.theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.theme-product-card-wrap { display: flex; height: 100%; }
.theme-product-card {
	display: flex; flex-direction: column; height: 100%; width: 100%;
	background-color: var(--color-background);
	border: 1px solid color-mix(in srgb, var(--color-forest) 12%, transparent);
	border-radius: var(--card-radius); overflow: hidden;
}
.theme-product-card__media-link { display: block; color: inherit; }
.theme-product-card__title-link { display: block; margin-top: 0.375rem; color: inherit; }
.theme-product-card__title-link:hover { color: var(--color-forest); }
.theme-product-card:hover .theme-product-card-img { transform: scale(1.04); }
.theme-product-card:hover .theme-product-card-img:has(~ .theme-product-card-img-hover) { opacity: 0; }

.theme-product-card__image-wrapper { position: relative; aspect-ratio: 4 / 5; width: 100%; overflow: hidden; background-color: var(--color-stone); }
.theme-product-card-img, .theme-product-card-img-hover {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1rem;
	transition: transform 1100ms ease-out, opacity 1100ms ease-out;
}
.theme-product-card-img-hover { opacity: 0; }
.theme-product-card:hover .theme-product-card-img-hover { opacity: 1; }
.theme-product-card:hover .theme-product-card-img:has(~ .theme-product-card-img-hover) { opacity: 0; }

.theme-product-card__info { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.theme-line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.theme-line-clamp-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.theme-card-add-btn {
	display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 1rem; border-radius: var(--btn-radius);
	background-color: var(--color-forest); color: var(--color-background); font-size: 14px; font-weight: 600;
	transition: transform 300ms ease;
}
.theme-card-add-btn:hover { transform: translateY(-2px); }
.theme-card-add-btn svg { flex-shrink: 0; }
.theme-card-add-btn.is-disabled { background-color: color-mix(in srgb, var(--color-forest) 30%, transparent); cursor: not-allowed; }
.theme-stock-badge { position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 3; background-color: var(--color-forest); color: var(--color-background); font-size: 12px; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; }

.theme-shop-filter-btn {
	padding: 0.5rem 1rem; border-radius: 999px; font-size: 14px; font-weight: 500;
	border: 1px solid color-mix(in srgb, var(--color-forest) 20%, transparent); color: color-mix(in srgb, var(--color-forest) 75%, transparent);
	transition: all 300ms ease;
}
.theme-shop-filter-btn:hover { transform: translateY(-2px); opacity: 0.8; }
.theme-shop-filter-btn.is-active { background-color: var(--color-forest); color: var(--color-background); border-color: var(--color-forest); }
.theme-product-card-wrap[hidden] { display: none; }

/* -------------------------------------------------------------------- */
/* Accordion (FAQ)                                                       */
/* -------------------------------------------------------------------- */
.theme-accordion-item { border-bottom: 1px solid color-mix(in srgb, var(--color-background) 15%, transparent); }
#faq .theme-accordion-item, .cs-section-cream-alt .theme-accordion-item, .cs-section-cream .theme-accordion-item { border-bottom-color: color-mix(in srgb, var(--color-forest) 15%, transparent); }
.theme-accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.theme-accordion-icon { transition: transform 200ms ease; flex-shrink: 0; color: var(--color-gold); }
.theme-accordion-item.is-open .theme-accordion-icon { transform: rotate(180deg); }
.theme-accordion-content { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.theme-accordion-item.is-open .theme-accordion-content { max-height: 800px; }

/* -------------------------------------------------------------------- */
/* Science modal                                                         */
/* -------------------------------------------------------------------- */
.theme-modal-overlay[hidden],
.theme-modal[hidden] {
	display: none !important;
}
.theme-modal-overlay { position: fixed; inset: 0; background-color: color-mix(in srgb, var(--color-forest) 45%, transparent); z-index: 200; }
.theme-modal { position: fixed; inset: 0; z-index: 201; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
body.theme-modal-open { overflow: hidden; }
.theme-modal-panel { position: relative; background-color: var(--color-background); border: 1px solid color-mix(in srgb, var(--color-forest) 15%, transparent); border-radius: var(--card-radius); max-width: 42rem; width: 100%; max-height: 88vh; overflow-y: auto; padding: 2rem; }
.theme-modal-close { position: absolute; top: 1rem; right: 1rem; }
.theme-bullet { display: inline-block; margin-top: 0.5rem; width: 6px; height: 6px; border-radius: 999px; background-color: var(--color-gold); flex-shrink: 0; }

/* -------------------------------------------------------------------- */
/* Side cart drawer (Section 12)                                         */
/* -------------------------------------------------------------------- */
#theme-cart-overlay { position: fixed; inset: 0; z-index: 80; background-color: color-mix(in srgb, var(--color-forest) 40%, transparent); opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }

#theme-cart-drawer {
	position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 420px; z-index: 81;
	background-color: var(--color-background); border-left: 1px solid color-mix(in srgb, var(--color-forest) 12%, transparent);
	display: flex; flex-direction: column; transform: translateX(100%);
	transition: transform 300ms cubic-bezier(0.22,1,0.36,1);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating { opacity: 0.6; pointer-events: none; }

.theme-cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid color-mix(in srgb, var(--color-forest) 12%, transparent); }
.theme-cart-close-btn { padding: 0.5rem; border-radius: var(--radius); color: var(--color-forest); }
.theme-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 0 1.5rem; text-align: center; }
.theme-continue-shopping-btn { margin-top: 0.5rem; padding: 0.5rem 1rem; border-radius: var(--radius); background-color: var(--color-forest); color: var(--color-background); font-size: 14px; font-weight: 600; }
.theme-cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-item { display: flex; gap: 0.75rem; }
.theme-cart-item-thumb { width: 64px; height: 80px; flex-shrink: 0; background-color: var(--color-stone); border-radius: var(--radius); overflow: hidden; }
.theme-cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; }
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-name { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--color-forest); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-cart-item-variation { font-size: 14px; color: var(--color-olive); margin-top: 0.125rem; }
.theme-cart-item-qty { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.theme-cart-item-qty button { border: 1px solid color-mix(in srgb, var(--color-forest) 15%, transparent); border-radius: 0.25rem; padding: 0.25rem; }
.theme-cart-item-qty span { width: 1.5rem; text-align: center; font-size: 14px; }
.theme-cart-remove-btn { margin-left: auto; color: var(--color-olive); }
.theme-cart-item-price { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--color-forest); white-space: nowrap; }
.theme-cart-drawer-footer { border-top: 1px solid color-mix(in srgb, var(--color-forest) 12%, transparent); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.theme-cart-subtotal-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 15px; color: var(--color-forest); }
.theme-cart-checkout-btn { display: block; text-align: center; padding: 0.75rem 1.25rem; border-radius: var(--radius); background-color: var(--color-forest); color: var(--color-background); font-size: 14px; font-weight: 600; transition: transform 300ms ease; }
.theme-cart-checkout-btn:hover { transform: translateY(-2px); }
.theme-cart-checkout-btn.is-disabled { pointer-events: none; opacity: 0.5; }

/* -------------------------------------------------------------------- */
/* WooCommerce: add to cart button overrides (Section 11.4.1)            */
/* -------------------------------------------------------------------- */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: opacity 0.2s ease !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.85 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-button-text) !important;
}
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: var(--color-primary) !important;
}
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Card compact button variant overrides global rules (scoped, after) */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-card-add-btn {
	min-height: unset !important;
	height: auto !important;
	padding: 0.5rem 1rem !important;
	border-radius: var(--btn-radius) !important;
}

/* Hide "View cart" injected by WooCommerce after AJAX add (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* Notices — scoped hiding only (Section 14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body); border-radius: var(--radius); padding: 1rem 1.25rem;
	background-color: var(--color-stone); color: var(--color-foreground); list-style: none; margin: 0 0 1.5rem;
}
.woocommerce-error { border-left: 3px solid var(--color-forest); }

/* -------------------------------------------------------------------- */
/* Single product page (Section 11, 11.13)                               */
/* -------------------------------------------------------------------- */
.single-product .site-main { padding-top: var(--header-height); }
.single-product .theme-product-layout { min-width: 0; }
.single-product .theme-product-gallery, .single-product .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-main-image { overflow: hidden; }
.theme-product-main-image img#product-main-img,
.theme-product-main-image img {
	width: 100%;
	height: auto;
	display: block;
	max-width: 100%;
}
.single-product .theme-product-thumbnails { flex-wrap: wrap; max-width: 100%; }
.theme-thumb-btn { width: 68px; height: 68px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; opacity: 0.7; transition: opacity 200ms ease, border-color 200ms ease; }
.theme-thumb-btn.is-active, .theme-thumb-btn:hover { opacity: 1; border-color: var(--color-gold); }
.theme-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.product-title { font-family: var(--font-body); font-weight: 600; }

.theme-stock-status.is-out-of-stock { display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px; background-color: color-mix(in srgb, var(--color-forest) 10%, transparent); color: var(--color-forest); font-size: 13px; font-weight: 600; }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--color-forest) 20%, transparent); border-radius: var(--radius); }
.theme-quantity-wrapper button { padding: 0.75rem; color: var(--color-forest); font-size: 1.1rem; line-height: 1; }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; color: var(--color-forest); -moz-appearance: textfield; }
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 200px; }
.single-product #product-add-to-cart.single_add_to_cart_button {
	background-color: var(--color-forest) !important;
	color: var(--color-background) !important;
	opacity: 1 !important;
	border-radius: var(--radius) !important;
	min-height: unset !important;
	padding: 1rem 2rem !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}
.single-product #product-add-to-cart.single_add_to_cart_button:hover {
	opacity: 1 !important;
	transform: translateY(-2px);
}
.single-product .theme-purchase-option { cursor: pointer; background: transparent; }
.single-product .theme-purchase-option.is-active { border-color: var(--color-gold); background-color: color-mix(in srgb, var(--color-gold) 10%, transparent); }
.single-product #product-add-to-cart.is-added { pointer-events: none; }

#theme-product-inline-cart .theme-inline-cart-item { min-width: 0; }
#theme-product-inline-cart .theme-inline-cart-qty button { background: transparent; border: none; cursor: pointer; }
#theme-product-inline-cart button[data-cart-remove] { background: transparent; border: none; cursor: pointer; }

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

.theme-caution-box { display: flex; gap: 0.75rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--color-gold) 40%, transparent); background-color: color-mix(in srgb, var(--color-gold) 10%, transparent); padding: 1rem; }
.theme-row-alt { background-color: color-mix(in srgb, var(--color-stone) 60%, transparent); }

/* Section rhythm on single product (matches Lovable vertical spacing) */
.single-product .container-wide.pt-8 { padding-bottom: 0.5rem; }
.single-product .theme-product-section { margin-top: 2rem; }
@media (min-width: 768px) {
	.single-product .theme-product-section { margin-top: 2.5rem; }
}
.single-product .theme-product-hero { margin-top: 1.5rem; }
@media (min-width: 768px) {
	.single-product .theme-product-hero { margin-top: 2rem; }
}
.single-product .theme-product-inline-cart { margin-top: 4rem; }
@media (min-width: 768px) {
	.single-product .theme-product-inline-cart { margin-top: 5rem; }
}
.single-product .theme-product-science { margin-top: 5rem; }
@media (min-width: 768px) {
	.single-product .theme-product-science { margin-top: 6.25rem; }
}
.single-product .related-products-section { margin-top: 5rem; }
@media (min-width: 768px) {
	.single-product .related-products-section { margin-top: 6.25rem; }
}

/* Scientific sidebar cards */
.single-product .theme-product-science aside .rounded-md.border { border-color: color-mix(in srgb, var(--color-forest) 12%, transparent); }
.single-product .theme-product-science aside .rounded-md.bg-forest {
	background-color: var(--color-forest);
	color: var(--color-background);
}
.single-product .theme-product-science aside .rounded-md.bg-forest .cs-label {
	color: var(--color-gold);
}
.single-product .theme-product-science .theme-row-alt { background-color: color-mix(in srgb, var(--color-stone) 60%, transparent); }
.single-product .theme-product-science .bg-background { background-color: var(--color-background); }

.theme-related-product-card { display: block; text-decoration: none; color: inherit; }
.theme-related-product-card .aspect-\[4\/5\] img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------------- */
/* Contact / newsletter forms                                            */
/* -------------------------------------------------------------------- */
.theme-form-message { font-family: var(--font-body); }

/* -------------------------------------------------------------------- */
/* Footer                                                                 */
/* -------------------------------------------------------------------- */
footer.site-footer, footer { background-color: var(--color-stone); }
footer .footer-nav-list a,
footer .space-y-3 a { display: block; text-align: left; font-size: 14px; font-family: var(--font-body); color: color-mix(in srgb, var(--color-forest) 75%, transparent); transition: color 200ms ease; }
footer .footer-nav-list li + li,
footer .space-y-3 > li + li { margin-top: 0.75rem; }
footer .footer-nav-list a:hover,
footer .space-y-3 a:hover { color: var(--color-forest); }
footer .site-logo-img { height: var(--logo-height, 48px); width: auto; }

/* Back to top FAB */
#back-to-top-fab {
	position: fixed; bottom: 2rem; right: 2rem; z-index: 50; width: 2.5rem; height: 2.5rem; border-radius: 999px;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 24px 48px rgba(20,53,42,0.12);
	opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease;
}
#back-to-top-fab.is-visible { opacity: 1; pointer-events: auto; }
#back-to-top-fab:hover { transform: scale(1.1); }
@media (min-width: 768px) { #back-to-top-fab { width: 3rem; height: 3rem; } }

/* -------------------------------------------------------------------- */
/* Media control (front-end N/A — kept out of admin CSS file)            */
/* -------------------------------------------------------------------- */

/* -------------------------------------------------------------------- */
/* Checkout — native WooCommerce Checkout Block overrides (Section 13)   */
/* -------------------------------------------------------------------- */
body.woocommerce-checkout .site-main { padding-top: var(--header-height); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--color-forest); margin-bottom: 2rem;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .page-title,
	body.woocommerce-cart .page-title,
	body.woocommerce-account .page-title { font-size: 2.75rem; }
}

body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
body.woocommerce-checkout .wc-block-checkout {
	display: block;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	border: 1px solid color-mix(in srgb, var(--color-forest) 18%, transparent);
	border-radius: var(--radius);
	background-color: var(--color-stone);
	color: var(--color-forest);
	padding: revert;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	outline: none;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-gold) 50%, transparent);
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-stone);
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-forest) !important;
	color: var(--color-background) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-weight: 600 !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	grid-column: 1 / -1;
}

/* -------------------------------------------------------------------- */
/* Thank you page (Section 22.8)                                         */
/* -------------------------------------------------------------------- */
body.theme-thankyou-page .theme-thankyou-wrap { padding-top: var(--header-height); padding-bottom: 4rem; }
.theme-thankyou-wrap { max-width: 48rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; text-align: center; }
.theme-thankyou-icon { width: 4rem; height: 4rem; margin: 2rem auto 1.5rem; border-radius: 999px; background-color: var(--color-gold); color: var(--color-forest); display: flex; align-items: center; justify-content: center; }
body.theme-thankyou-page .woocommerce-order { text-align: left; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-forest); padding: 2rem 0 1rem; }
body.theme-thankyou-page .woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 1rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td { padding: 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--color-forest) 12%, transparent); }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-customer-details { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
}
body.theme-thankyou-page .woocommerce-customer-details address { min-width: 0; overflow-wrap: break-word; font-style: normal; }

/* -------------------------------------------------------------------- */
/* WooCommerce variations table stacking (kept for future variable SKUs) */
/* -------------------------------------------------------------------- */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; font-family: var(--font-body); font-weight: 600; font-style: normal; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* -------------------------------------------------------------------- */
/* Journal article                                                       */
/* -------------------------------------------------------------------- */
.journal-body p { margin-bottom: 1.5rem; }
