/* ==========================================================================
   Shannon's Intuitive Infusions — theme.css
   Theme by The Free Website Guys.
   ========================================================================== */

:root {
	--background: #f9f6f1;
	--foreground: #212c26;
	--primary: #3b5448;
	--primary-foreground: #faf8f4;
	--secondary: #dde4dd;
	--muted: #e6e2db;
	--muted-foreground: #596961;
	--accent: #8b7a9f;
	--border: #ded9cf;
	--panel: #fbf8f4;
	--hairline: #d8d4ca;
	--forest: #3b5448;
	--cream: #f9f6f1;
	--button-text: #faf8f4;

	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Karla', 'Helvetica Neue', sans-serif;

	--radius: 0.25rem;
	--radius-pill: 999px;

	--shadow-soft: 0 6px 24px -8px rgba(20, 30, 25, 0.09);
	--shadow-elevated: 0 14px 40px -12px rgba(20, 30, 25, 0.16);
	--shadow-hover: 0 18px 44px -20px rgba(20, 30, 25, 0.28);
	--transition-smooth: cubic-bezier(0.25, 0.4, 0.25, 1);

	--header-height: 104px;
	--logo-height: 78px;

	--btn-radius: var(--radius-pill);
	--btn-height: 48px;
	--btn-padding: 0 1.75rem;
	--btn-font-size: 0.75rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.24em;
	--btn-text-transform: uppercase;
	--btn-icon-padding: 0.5rem;
}

@media (min-width: 1024px) {
	:root {
		--header-height: 124px;
	}
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
/* clip avoids creating a scroll container that breaks position:sticky */
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
	margin: 0;
	background-color: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: 0.005em;
	margin: 0;
	line-height: 1.15;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a,
button,
.btn,
.icon-btn,
[role="button"],
.categories-section__tile,
.theme-accordion__trigger,
.theme-nav-list a,
.theme-section-link,
.theme-modal-trigger,
input[type="submit"],
input[type="button"],
label[for],
.hero-section__dot,
.site-footer__links a,
.site-footer__links button,
.site-footer__policy-links button,
.site-footer__contact a {
	cursor: pointer;
}
ul, ol { margin: 0; padding: 0; }
img:not(.cover-img):not(.theme-product-card__image):not(.theme-product-thumb__img):not(.hero-section__slide):not(.categories-section__tile-img):not(.theme-product-main-image):not(.theme-modal__hero-img):not(.elements-banner__img):not(.magnesium-section__bg):not(.brand-section__hero-img) {
	max-width: 100%;
	height: auto;
	display: block;
}
.cover-img,
.theme-product-card__image,
.theme-product-thumb__img,
.hero-section__slide,
.categories-section__tile-img,
.theme-modal__hero-img,
.elements-banner__img,
.magnesium-section__bg,
.brand-section__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	display: block;
}
.theme-product-thumb__img { position: static; inset: auto; }

/* ---- Containers (Lovable: max-w-7xl / max-w-5xl + px-6 lg:px-10) ----
   Section helpers must use padding-block (not padding shorthand) so they
   never reset the horizontal gutters from these container classes. ---- */
:root {
	--page-gutter: 1.5rem; /* Tailwind px-6 */
	--page-gutter-lg: 2.5rem; /* Tailwind lg:px-10 */
}
@media (min-width: 1024px) {
	:root { --page-gutter: var(--page-gutter-lg); }
}
.container-wide {
	width: 100%;
	max-width: 80rem; /* max-w-7xl */
	margin-inline: auto;
	padding-inline: var(--page-gutter);
	box-sizing: border-box;
}
.container-editorial {
	width: 100%;
	max-width: 64rem; /* max-w-5xl */
	margin-inline: auto;
	padding-inline: var(--page-gutter);
	box-sizing: border-box;
}

/* ---- Typography helpers ---- */
.ticker-label {
	font-family: var(--font-body);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: var(--muted-foreground);
}
.label-eyebrow {
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--muted-foreground);
}
.section-heading {
	font-family: var(--font-display);
	font-weight: 500;
	/* Do not inherit font-size — that collapses large headings when a parent has no size set */
	font-size: 1.875rem;
	line-height: 1.15;
	color: inherit;
}
.section-heading em, .accent-italic { font-style: italic; color: var(--primary); }

/* ---- Cards & panels ---- */
.panel-soft { background-color: #fbf8f4; background-color: rgba(251, 248, 244, 0.92); color: var(--foreground); backdrop-filter: blur(6px); }
.card-quiet {
	background-color: var(--panel);
	border: 1px solid var(--hairline);
	transition: box-shadow 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}
.card-quiet:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-frosted {
	background-color: color-mix(in srgb, var(--primary-foreground) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--primary-foreground) 28%, transparent);
	backdrop-filter: blur(10px);
	transition: background-color 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}
.card-frosted:hover { background-color: color-mix(in srgb, var(--primary-foreground) 16%, transparent); transform: translateY(-3px); }

/* ---- Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	transition: all 0.3s ease;
	height: 2.5rem;
	padding: 0 1rem;
	white-space: nowrap;
}
.btn-primary { background-color: var(--primary); color: var(--primary-foreground); border: 1px solid var(--primary); }
.btn-primary:hover { background-color: var(--background); color: var(--primary); }
.btn-outline { border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); background: transparent; }
.btn-outline:hover { background-color: var(--primary); color: var(--primary-foreground); }
.btn-secondary { background-color: var(--secondary); color: var(--foreground); }
.btn-secondary:hover { background-color: color-mix(in srgb, var(--secondary) 80%, transparent); }
.btn-pill {
	height: 3rem;
	padding-left: 1.75rem;
	padding-right: 0.5rem;
	background-color: var(--primary);
	color: var(--primary-foreground);
	border: 1px solid var(--primary);
	box-shadow: var(--shadow-soft);
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.24em;
}
.btn-pill:hover { background-color: color-mix(in srgb, var(--primary) 90%, black); }
.btn-pill--inverse { background-color: var(--primary-foreground); color: var(--primary); border-color: var(--primary-foreground); }
.btn-pill--inverse:hover { background-color: color-mix(in srgb, var(--primary-foreground) 90%, transparent); }
.btn-pill--cream { background-color: var(--cream); color: var(--foreground); border-color: var(--cream); }
.btn-pill--cream:hover {
	background-color: color-mix(in srgb, var(--cream) 90%, transparent);
	color: var(--foreground);
	border-color: color-mix(in srgb, var(--cream) 90%, transparent);
}
.btn-pill--cream .btn-label,
.btn-pill--cream:hover .btn-label { color: var(--foreground); }
.btn-pill--cream .btn-pill__icon,
.btn-pill--cream:hover .btn-pill__icon {
	background-color: color-mix(in srgb, var(--foreground) 10%, transparent);
	color: var(--foreground);
}
.btn-pill-outline {
	height: 2.75rem;
	padding: 0 1.5rem;
	border: 1px solid color-mix(in srgb, var(--foreground) 20%, transparent);
	background-color: color-mix(in srgb, var(--background) 80%, transparent);
	backdrop-filter: blur(4px);
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
}
.btn-pill-outline:hover { border-color: color-mix(in srgb, var(--foreground) 50%, transparent); background-color: var(--background); }
.btn-pill-outline--inverse { border-color: color-mix(in srgb, var(--primary-foreground) 50%, transparent); background: transparent; color: var(--primary-foreground); }
.btn-pill-outline--inverse:hover { background-color: color-mix(in srgb, var(--primary-foreground) 10%, transparent); }
.btn-pill-outline--cream { border-color: color-mix(in srgb, var(--cream) 50%, transparent); background: transparent; color: var(--cream); }
.btn-pill-outline--cream:hover { background-color: color-mix(in srgb, var(--cream) 10%, transparent); }
.btn-pill__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-pill);
	background-color: color-mix(in srgb, var(--primary-foreground) 15%, transparent);
	margin-left: 0.5rem;
}
.btn-pill__icon--dark { background-color: color-mix(in srgb, var(--foreground) 10%, transparent); }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-pill);
	transition: background-color 0.2s ease;
}
.icon-btn:hover { background-color: var(--secondary); }
.icon-btn--light { color: var(--background); }
.icon-btn--light:hover { background-color: rgba(255,255,255,0.15); }

/* ---- Reveal / scroll animation ---- */
.reveal-item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
}
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
/* Customizer preview + reduced motion: never leave animated copy invisible */
html.wp-customizer .reveal-item,
html.is-customizer .reveal-item,
body.is-customizer .reveal-item,
html.wp-customizer .hero-section__copy,
html.is-customizer .hero-section__copy,
body.is-customizer .hero-section__copy {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}
html.wp-customizer .hero-section__title,
html.is-customizer .hero-section__title,
body.is-customizer .hero-section__title {
	color: var(--cream) !important;
	opacity: 1 !important;
	visibility: visible !important;
}
html.wp-customizer .elements-banner__heading,
html.is-customizer .elements-banner__heading,
body.is-customizer .elements-banner__heading {
	color: var(--foreground) !important;
	opacity: 1 !important;
	visibility: visible !important;
	font-size: 1.875rem !important;
}
@media (min-width: 768px) {
	html.wp-customizer .elements-banner__heading,
	html.is-customizer .elements-banner__heading,
	body.is-customizer .elements-banner__heading {
		font-size: 3rem !important;
	}
	html.wp-customizer .hero-section__title,
	html.is-customizer .hero-section__title,
	body.is-customizer .hero-section__title {
		font-size: 4.5rem !important;
	}
}
@media (min-width: 1024px) {
	html.wp-customizer .hero-section__title,
	html.is-customizer .hero-section__title,
	body.is-customizer .hero-section__title {
		font-size: 5.25rem !important;
	}
}
@media (prefers-reduced-motion: reduce) {
	.reveal-item,
	.hero-section__copy {
		transition: none !important;
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}
.animate-fade-in { animation: sii-fade-in 0.8s var(--transition-smooth) forwards; }
.animate-slide-in { animation: sii-slide-in 0.5s var(--transition-smooth) forwards; }
@keyframes sii-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sii-slide-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

.scroll-mt { scroll-margin-top: 7rem; }

/* ==========================================================================
   Announcement bar + header
   ========================================================================== */
.announcement-bar { position: fixed; inset-inline: 0; top: 0; z-index: 60; background-color: var(--forest); color: var(--cream); }
.announcement-bar__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding-block: 0.5rem;
	/* horizontal inset from .container-wide (--page-gutter) */
}
.announcement-bar__text { text-align: center; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.24em; }
.announcement-bar__close { position: absolute; right: 0.25rem; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; color: var(--cream); border-radius: var(--radius-pill); }
.announcement-bar__close:hover { background-color: rgba(255,255,255,0.1); }

.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--border);
	background-color: color-mix(in srgb, var(--background) 95%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: top 0.2s ease;
}
body.has-announcement .site-header { top: 36px; }

/* WordPress admin bar offsets (fixed header / announcement) */
body.admin-bar .announcement-bar { top: 32px; }
body.admin-bar .site-header { top: 32px; }
body.admin-bar.has-announcement .site-header { top: calc(32px + 36px); }
@media screen and (max-width: 782px) {
	body.admin-bar .announcement-bar { top: 46px; }
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar.has-announcement .site-header { top: calc(46px + 36px); }
}
.site-nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.site-nav__mobile-toggle { display: flex; flex: 1; align-items: center; }
.site-nav__brand { position: absolute; left: 50%; transform: translateX(-50%); color: var(--primary); }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; display: block; }
.site-logo-text { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: var(--logo-height); display: block; }
.site-nav__links { display: none; align-items: center; justify-content: center; gap: 2rem; }
.theme-nav-list { display: flex; align-items: center; gap: 2rem; list-style: none; }
.theme-nav-list li { list-style: none; }
.nav-link, .theme-nav-list a, .theme-nav-list button {
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-weight: 600;
	transition: color 0.3s ease;
	padding: 0.75rem 0.25rem;
	display: inline-block;
}
.nav-link:hover, .theme-nav-list a:hover, .theme-nav-list button:hover { color: var(--primary); }
.site-nav__actions { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 0.25rem; }
.theme-cart-btn { position: relative; }
.theme-cart-count {
	position: absolute;
	right: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: var(--radius-pill);
	background-color: var(--accent);
	color: var(--primary-foreground);
	font-size: 0.6875rem;
}
.theme-cart-count:empty { display: none; }

@media (min-width: 1024px) {
	.site-nav__mobile-toggle { display: none; }
	.site-nav__brand { position: static; transform: none; flex: 1; padding-right: 2rem; }
	.site-nav__links { display: flex; }
}

/* Header always frosted ivory (Lovable parity) — never transparent over the hero */
.site-header,
.site-header.is-solid,
.site-header.is-scrolled,
body.theme-no-hero .site-header {
	background-color: color-mix(in srgb, var(--background) 95%, transparent);
	border-bottom-color: var(--border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.site-header .site-nav__brand,
.site-header .nav-link,
.site-header .icon-btn,
.site-header .theme-nav-list a,
.site-header .theme-nav-list button {
	color: var(--foreground);
}
.site-header .nav-link:hover,
.site-header .theme-nav-list a:hover,
.site-header .theme-nav-list button:hover {
	color: var(--primary);
}

/* Home hero fills viewport under fixed frosted header */
body:not(.theme-no-hero) .site-main { padding-top: 0; }
/* Clear fixed header (+ announcement / admin bar) on interior pages */
body.theme-no-hero .site-main {
	padding-top: calc(var(--header-height) + 1.5rem);
	padding-bottom: 4rem;
}
body.has-announcement.theme-no-hero .site-main {
	padding-top: calc(var(--header-height) + 36px + 1.5rem);
}
body.admin-bar.theme-no-hero .site-main {
	padding-top: calc(var(--header-height) + 32px + 1.5rem);
}
body.admin-bar.has-announcement.theme-no-hero .site-main {
	padding-top: calc(var(--header-height) + 32px + 36px + 1.5rem);
}
@media screen and (max-width: 782px) {
	body.admin-bar.theme-no-hero .site-main {
		padding-top: calc(var(--header-height) + 46px + 1.5rem);
	}
	body.admin-bar.has-announcement.theme-no-hero .site-main {
		padding-top: calc(var(--header-height) + 46px + 36px + 1.5rem);
	}
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; }
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }
.mobile-menu__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: rgba(20, 25, 22, 0.4);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.mobile-menu.is-open .mobile-menu__overlay { opacity: 1; }
.mobile-menu__panel {
	position: absolute;
	inset-block: 0;
	left: 0;
	z-index: 1;
	width: 88vw;
	max-width: 24rem;
	background-color: var(--background);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.35s var(--transition-smooth);
	pointer-events: auto;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__header { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); padding: 0 1.25rem; border-bottom: 1px solid var(--border); color: var(--primary); }
.mobile-menu__logo { height: 3.5rem; width: auto; }
.mobile-menu__nav { padding: 1rem; display: flex; flex-direction: column; flex: 1; overflow-y: auto; }
.mobile-menu__nav .theme-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.mobile-menu__nav .nav-link, .mobile-menu__nav a, .mobile-menu__nav button {
	height: 3.5rem;
	display: flex;
	align-items: center;
	padding: 0 0.75rem;
	border-bottom: 1px solid var(--border);
	font-family: var(--font-display);
	font-size: 1.125rem;
	text-transform: uppercase;
	letter-spacing: normal;
	font-weight: 500;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section { position: relative; height: 100svh; width: 100%; overflow: hidden; background-color: #212c26; }
.hero-section__slides { position: absolute; inset: 0; z-index: 0; }
.hero-section__slide { opacity: 0; transition: opacity 1.4s var(--transition-smooth), transform 1.4s var(--transition-smooth); transform: scale(1.04); z-index: 0; }
.hero-section__slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
/* Overlay must sit above slides (active slide uses z-index:1) so copy stays readable */
.hero-section__gradient {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.2));
}
.hero-section__content { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; }
.hero-section__content-inner { padding-bottom: 7rem; }
@media (min-width: 768px) { .hero-section__content-inner { padding-bottom: 8rem; } }
/* Opacity defaults to 1 — never use fill-mode `both`/`backwards` or a delayed
   animation can leave copy invisible in the Customizer iframe. */
.hero-section__copy {
	max-width: 48rem;
	opacity: 1;
	transform: none;
	animation: sii-hero-in 1.2s var(--transition-smooth) 0.3s forwards;
}
@keyframes sii-hero-in {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}
.hero-section__eyebrow { display: block; margin-bottom: 1.25rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; color: color-mix(in srgb, var(--cream) 90%, transparent); }
.hero-section__title {
	margin-bottom: 1.5rem;
	font-family: var(--font-display);
	font-size: 2.75rem;
	font-weight: 500;
	line-height: 1.02;
	color: var(--cream);
}
.hero-section__title em { font-style: italic; color: color-mix(in srgb, var(--cream) 90%, transparent); }
.hero-section__subtitle { margin-bottom: 2.25rem; max-width: 34rem; font-size: 1rem; line-height: 1.6; color: color-mix(in srgb, var(--cream) 90%, transparent); }
@media (min-width: 768px) { .hero-section__title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-section__title { font-size: 5.25rem; } }
.hero-section__controls { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 1rem; }
.hero-section__counter { font-size: 0.75rem; letter-spacing: 0.18em; color: color-mix(in srgb, var(--cream) 80%, transparent); }
.hero-section__dots { display: flex; align-items: center; gap: 0.5rem; }
.hero-section__dot { height: 2px; width: 2rem; background-color: color-mix(in srgb, var(--cream) 40%, transparent); border-radius: 0; transition: all 0.3s ease; }
.hero-section__dot:hover { background-color: color-mix(in srgb, var(--cream) 60%, transparent); }
.hero-section__dot.is-active { width: 3.5rem; background-color: var(--cream); }
.hero-section__arrows { display: flex; align-items: center; gap: 0.25rem; }

/* ==========================================================================
   Ticker strip / marquee
   ========================================================================== */
.ticker-strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background-color: var(--panel); }
.ticker-strip__inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding-block: 1.25rem; text-align: center; }
.ticker-strip__cta { display: inline-flex; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.28em; font-weight: 600; }
.ticker-strip__cta:hover { color: var(--primary); }
@media (min-width: 768px) {
	.ticker-strip__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
@media (max-width: 767px) { .ticker-strip__hide-mobile { display: none; } }

.marquee-section { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background-color: var(--panel); overflow: hidden; }
.marquee-section__row { padding: 1.25rem 0; }
.marquee-track { display: flex; width: max-content; animation: sii-marquee 32s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track__group { display: flex; flex-shrink: 0; align-items: center; gap: 2rem; padding: 0 1rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: var(--primary); }
.marquee-track__dot { color: var(--muted-foreground); }
@keyframes sii-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   Category tiles
   ========================================================================== */
.categories-section__inner { padding-block: 4rem; }
@media (min-width: 1024px) { .categories-section__inner { padding-block: 6rem; } }
.categories-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.categories-section__heading { font-size: 1.875rem; }
@media (min-width: 768px) { .categories-section__heading { font-size: 2.25rem; } }
/* Multi-row grid at all breakpoints — no horizontal scroll (unlike Lovable mobile carousel) */
.categories-section__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}
@media (min-width: 640px) {
	.categories-section__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.categories-section__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.categories-section__tile {
	position: relative;
	width: 100%;
	min-width: 0;
	aspect-ratio: 3/4;
	overflow: hidden;
	border-radius: var(--radius);
	background-color: var(--secondary);
	text-align: left;
}
.categories-section__tile.is-active-filter { box-shadow: 0 0 0 2px var(--primary) inset; }
.categories-section__tile-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform 1.2s ease;
}
.categories-section__tile:hover .categories-section__tile-img { transform: scale(1.04); }
.categories-section__tile-gradient { position: absolute; }
.categories-section__tile-gradient--left { inset-block: 0; left: 0; width: 40%; background: linear-gradient(to right, rgba(33,44,38,0.7), rgba(33,44,38,0.25), transparent); }
.categories-section__tile-gradient--top { inset-inline: 0; top: 0; height: 40%; background: linear-gradient(to bottom, rgba(33,44,38,0.45), transparent); }
.categories-section__tile-gradient--bottom { inset-inline: 0; bottom: 0; height: 33%; background: linear-gradient(to top, rgba(33,44,38,0.4), transparent); }
.categories-section__tile-label {
	position: absolute;
	left: 0.75rem;
	top: 1rem;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--background);
	text-shadow: 0 2px 10px rgba(33,44,38,0.7);
	writing-mode: vertical-rl;
}
@media (min-width: 768px) {
	.categories-section__tile-label { left: 1rem; top: 1.25rem; font-size: 1.5rem; }
}
.categories-section__tile-cta {
	position: absolute;
	bottom: 1rem;
	left: 50%;
	transform: translateX(-50%);
	border-radius: var(--radius-pill);
	background-color: var(--background);
	padding: 0.5rem 1rem;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--foreground);
	box-shadow: var(--shadow-soft);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.categories-section__tile:hover .categories-section__tile-cta { opacity: 1; }
@media (hover: none) {
	.categories-section__tile-cta { opacity: 1; }
}

/* ==========================================================================
   Elements banner
   ========================================================================== */
.elements-banner__media { position: relative; height: 60vh; min-height: 22rem; width: 100%; overflow: hidden; }
@media (min-width: 768px) { .elements-banner__media { height: 70vh; min-height: 28rem; } }
.elements-banner__overlay { position: absolute; inset: 0; z-index: 1; background-color: rgba(33,44,38,0.15); }
.elements-banner__content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; }
.elements-banner__panel { max-width: 36rem; border-radius: var(--radius); padding: 2rem; margin-bottom: 3rem; color: var(--foreground); }
@media (min-width: 768px) { .elements-banner__panel { padding: 2.5rem; margin-bottom: 4rem; } }
.elements-banner__heading {
	margin-bottom: 1.75rem;
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 500;
	line-height: 1.15;
	color: var(--foreground);
}
.elements-banner__heading em { color: var(--primary); }
@media (min-width: 768px) { .elements-banner__heading { font-size: 3rem; } }

/* ==========================================================================
   Shop section + product cards
   ========================================================================== */
.shop-section__inner { padding-block: 5rem; }
@media (min-width: 1024px) { .shop-section__inner { padding-block: 7rem; } }
.shop-section__head { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.shop-section__heading { font-size: 2.25rem; }
@media (min-width: 768px) { .shop-section__heading { font-size: 3rem; } }
.shop-section__filters { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .shop-section__filters { flex-direction: row; } }
@media (min-width: 768px) {
	.shop-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
	.shop-section__filters { justify-content: flex-end; }
}
.shop-section__empty-box, .shop-archive-page__empty {
	border: 1px dashed var(--hairline);
	border-radius: var(--radius);
	padding-block: 5rem;
	text-align: center;
	font-family: var(--font-display);
	font-size: 1.5rem;
}
.shop-section__empty { text-align: center; padding-block: 3rem; font-family: var(--font-display); font-size: 1.5rem; }

.theme-dropdown { position: relative; }
.theme-dropdown__toggle { width: 100%; justify-content: space-between; }
@media (min-width: 640px) { .theme-dropdown__toggle { min-width: 14rem; } }
.theme-dropdown__toggle svg { transition: transform 0.2s ease; }
.theme-dropdown.is-open .theme-dropdown__toggle svg { transform: rotate(180deg); }
.theme-dropdown__menu {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 30;
	margin-top: 0.5rem;
	max-height: 20rem;
	overflow-y: auto;
	border-radius: var(--radius);
	border: 1px solid var(--hairline);
	background-color: var(--background);
	box-shadow: var(--shadow-elevated);
	padding: 0.25rem;
	list-style: none;
	display: none;
}
.theme-dropdown.is-open .theme-dropdown__menu { display: block; }
.theme-dropdown__item {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	border-radius: calc(var(--radius) - 2px);
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	text-align: left;
}
.theme-dropdown__item:hover { background-color: var(--secondary); }
.theme-dropdown__item svg { opacity: 0; }
.theme-dropdown__item.is-selected svg { opacity: 1; }

.theme-product-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: stretch; }
@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(4, minmax(0,1fr)); } }
.theme-product-grid--related {
	grid-template-columns: minmax(0, 1fr);
	column-gap: 2rem;
	row-gap: 3rem;
}
@media (min-width: 640px) { .theme-product-grid--related { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid--related { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.theme-product-card-wrap { display: flex; height: 100%; min-width: 0; max-width: 100%; }
.theme-product-card-wrap.is-filtered-out { display: none; }
.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	background-color: var(--panel);
	border: 1px solid var(--hairline);
	transition: box-shadow 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth);
}
.theme-product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.theme-product-card > .theme-card-link { position: absolute; inset: 0; z-index: 2; pointer-events: auto; }
.theme-product-card *:not(.theme-card-link) { pointer-events: none; }
.theme-product-card .add_to_cart_button,
.theme-product-card .theme-product-card__arrow { pointer-events: none; }
.theme-product-card__image-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	width: 100%;
	background-color: color-mix(in srgb, var(--muted) 40%, transparent);
}
.theme-product-card__image {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}
.theme-product-card__image--primary { transition: opacity 0.7s ease, transform 0.7s ease; }
.theme-product-card__image--secondary { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.theme-product-card:hover .theme-product-card__image--primary { transform: scale(1.03); }
.theme-product-card:has(.theme-product-card__image--secondary):hover .theme-product-card__image--primary { opacity: 0; }
.theme-product-card:hover .theme-product-card__image--secondary { opacity: 1; transform: scale(1.03); }
.theme-product-card__badge {
	position: absolute;
	left: 0.75rem;
	top: 0.75rem;
	border-radius: var(--radius-pill);
	background-color: var(--foreground);
	padding: 0.25rem 0.75rem;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--background);
	z-index: 3;
}
.theme-product-card__info { display: flex; flex: 1; align-items: flex-end; justify-content: space-between; gap: 0.75rem; padding: 1rem; }
.theme-product-card__info-text { min-width: 0; }
.theme-product-card__title {
	margin-top: 0.375rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--foreground);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.3s ease;
}
.theme-product-card:hover .theme-product-card__title { color: var(--primary); }
.theme-product-card__price { margin-top: 0.375rem; font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.theme-product-card__arrow {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--hairline);
	background-color: var(--background);
	color: var(--foreground);
	transition: all 0.3s ease;
}
.theme-product-card:hover .theme-product-card__arrow { border-color: var(--primary); background-color: var(--primary); color: var(--primary-foreground); }

/* ==========================================================================
   Magnesium section
   ========================================================================== */
.magnesium-section { position: relative; overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.magnesium-section__bg { pointer-events: none; z-index: 0; }
.magnesium-section__overlay { position: absolute; inset: 0; z-index: 1; background-color: color-mix(in srgb, var(--primary) 85%, transparent); pointer-events: none; }
.magnesium-section__inner { position: relative; z-index: 2; padding-block: 6rem; }
@media (min-width: 1024px) { .magnesium-section__inner { padding-block: 8rem; } }
.magnesium-section__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .magnesium-section__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.magnesium-section__eyebrow { display: block; margin-bottom: 1.5rem; color: color-mix(in srgb, var(--primary-foreground) 70%, transparent); }
.magnesium-section__heading { margin-bottom: 2rem; font-size: 2.25rem; color: var(--primary-foreground); }
@media (min-width: 768px) { .magnesium-section__heading { font-size: 3rem; } }
.magnesium-section__heading em { color: color-mix(in srgb, var(--primary-foreground) 80%, transparent); font-style: italic; }
.magnesium-section__copy { display: flex; flex-direction: column; gap: 1rem; font-size: 0.9375rem; line-height: 1.6; color: color-mix(in srgb, var(--primary-foreground) 80%, transparent); }
.magnesium-section__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.magnesium-section__disclaimer { margin-top: 1.75rem; font-size: 0.75rem; line-height: 1.6; color: color-mix(in srgb, var(--primary-foreground) 60%, transparent); }
.magnesium-section__cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
@media (max-width: 639px) { .magnesium-section__cards { grid-template-columns: 1fr; } }
.magnesium-section__card { border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.magnesium-section__card-label { font-family: var(--font-display); font-size: 1.25rem; color: var(--primary-foreground); }
.magnesium-section__card-sub { margin-top: 0.5rem; color: color-mix(in srgb, var(--primary-foreground) 65%, transparent); }

/* ==========================================================================
   Founder section
   ========================================================================== */
.founder-section__inner { padding-block: 5rem; }
@media (min-width: 1024px) { .founder-section__inner { padding-block: 7rem; } }
.founder-section__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .founder-section__grid { grid-template-columns: 1fr 380px; gap: 2.5rem; } }
.founder-section__copy-col { max-width: 36rem; }
.founder-section__heading { margin-bottom: 2rem; font-size: 2.25rem; }
@media (min-width: 768px) { .founder-section__heading { font-size: 3rem; } }
.founder-section__bio { display: flex; flex-direction: column; gap: 1rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); margin-bottom: 2.25rem; }
.founder-section__photo-col { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.founder-section__photo-frame { position: relative; aspect-ratio: 4/5; width: 100%; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--hairline); background-color: var(--panel); padding: 0.5rem; box-shadow: var(--shadow-soft); }
@media (min-width: 1024px) { .founder-section__photo-frame { max-height: 27.5rem; } }
.founder-section__photo { position: relative !important; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 2px); border: 1px solid var(--hairline); }
.founder-section__caption { display: flex; align-items: center; gap: 0.5rem; }
.founder-section__caption-sep { color: var(--hairline); }

/* ==========================================================================
   About / process section
   ========================================================================== */
.about-section__inner { padding-block: 5rem; }
@media (min-width: 1024px) { .about-section__inner { padding-block: 7rem; } }
.about-section__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .about-section__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-section__image-col { position: relative; order: 2; aspect-ratio: 4/5; width: 100%; overflow: hidden; border-radius: var(--radius); }
@media (min-width: 1024px) { .about-section__image-col { order: 1; aspect-ratio: auto; height: 100%; max-height: 35rem; } }
.about-section__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-section__copy-col { order: 1; }
@media (min-width: 1024px) { .about-section__copy-col { order: 2; } }
.about-section__heading { margin-bottom: 2rem; font-size: 2.25rem; }
@media (min-width: 768px) { .about-section__heading { font-size: 3rem; } }
.about-section__copy { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }
.about-section__features { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--hairline); }
.about-section__feature dt { color: var(--primary); }
.about-section__feature dd { margin: 0.25rem 0 0; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }
.about-section__quote { border-top: 1px solid var(--hairline); padding-top: 2rem; }
.about-section__quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.3; }
@media (min-width: 768px) { .about-section__quote blockquote { font-size: 1.875rem; } }
.about-section__quote figcaption { margin-top: 1rem; }

/* ==========================================================================
   Brand / story section
   ========================================================================== */
.brand-section { padding-block: 5rem; background-color: var(--panel); }
@media (min-width: 1024px) { .brand-section { padding-block: 7rem; } }
.brand-section__hero { position: relative; margin-top: -5rem; margin-bottom: 0; height: 70vh; min-height: 24rem; width: 100%; overflow: hidden; }
@media (min-width: 768px) { .brand-section__hero { height: 80vh; min-height: 28rem; } }
@media (min-width: 1024px) { .brand-section__hero { margin-top: -7rem; } }
.brand-section__hero-overlay { position: absolute; inset: 0; z-index: 1; background-color: rgba(33,44,38,0.15); }
.brand-section__hero-content { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; }
.brand-section__hero-panel { max-width: 36rem; border-radius: var(--radius); padding: 2rem; }
@media (min-width: 768px) { .brand-section__hero-panel { padding: 2.5rem; } }
.brand-section__hero-heading { margin-bottom: 1.5rem; font-size: 2.25rem; }
@media (min-width: 768px) { .brand-section__hero-heading { font-size: 3rem; } }
.brand-section__makers { padding-block: 5rem; }
.brand-section__makers-head { margin-bottom: 2.5rem; text-align: center; }
.brand-section__makers-heading { margin-top: 1rem; font-size: 1.875rem; }
@media (min-width: 768px) { .brand-section__makers-heading { font-size: 3rem; } }
.brand-section__makers-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .brand-section__makers-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.brand-section__makers-card { border-radius: var(--radius); padding: 1.75rem; text-align: center; }
.brand-section__makers-label { font-family: var(--font-display); font-size: 1.5rem; }
.brand-section__images { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .brand-section__images { grid-template-columns: 1fr 1fr; } }
.brand-section__image { height: 32.5rem; width: 100%; object-fit: cover; border-radius: var(--radius); }

/* ==========================================================================
   Resources / FAQ / Contact
   ========================================================================== */
.resources-section__inner { margin-bottom: 5rem; }
@media (min-width: 1024px) { .resources-section__inner { margin-bottom: 7rem; } }
.resources-section__eyebrow { display: block; margin-bottom: 1.5rem; }
.resources-section__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .resources-section__grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.resources-section__card { border-radius: var(--radius); padding: 1.75rem; }
.resources-section__card-title { font-family: var(--font-display); font-size: 1.5rem; }
.resources-section__card-copy { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }

.faq-section__heading { margin-bottom: 3.5rem; border-bottom: 1px solid var(--hairline); padding-bottom: 1.25rem; font-size: 3rem; line-height: 1; }
@media (min-width: 768px) { .faq-section__heading { font-size: 3.75rem; } }
.faq-section__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .faq-section__grid { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 5rem; } }
.faq-section__side { grid-column: span 4; }
.faq-section__side-inner { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1024px) { .faq-section__side-inner { position: sticky; top: 8rem; } }
.faq-section__side-inner p { font-size: 1rem; line-height: 1.6; }
@media (min-width: 768px) { .faq-section__side-inner p { font-size: 1.125rem; } }
.theme-accordion--faq { grid-column: span 8; border-top: 1px solid var(--hairline); }

.theme-accordion__item { border-bottom: 1px solid var(--hairline); }
.theme-accordion__trigger {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.25rem 0;
	text-align: left;
}
.theme-accordion__trigger span:first-child { font-size: 0.9375rem; line-height: 1.4; }
@media (min-width: 768px) { .theme-accordion__trigger span:first-child { font-size: 1rem; } }
.theme-accordion__icon {
	position: relative;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: var(--radius-pill);
	border: 1px solid var(--hairline);
}
.theme-accordion__icon-plus,
.theme-accordion__icon-minus {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.theme-accordion__icon-minus,
.theme-accordion__item.is-open .theme-accordion__icon-plus,
.theme-accordion__icon-plus[hidden],
.theme-accordion__icon-minus[hidden] {
	display: none !important;
}
.theme-accordion__item.is-open .theme-accordion__icon-minus {
	display: flex !important;
}
.theme-accordion__panel { height: 0; overflow: hidden; opacity: 0; transition: height 0.35s var(--transition-smooth), opacity 0.35s var(--transition-smooth); }
.theme-accordion__panel p { padding-bottom: 1.5rem; padding-right: 2rem; font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }
.theme-accordion__item.is-open .theme-accordion__panel { opacity: 1; }

/* Lovable: full-bleed band (no side margins); text inset via .container-editorial */
.contact-band {
	position: relative;
	z-index: 1;
	width: 100%;
	margin-top: 6rem;
	margin-bottom: -5rem;
	margin-inline: 0;
	max-width: none;
	overflow: hidden;
	border-radius: var(--radius);
	background-size: cover;
	background-position: center;
}
@media (min-width: 1024px) {
	.contact-band { margin-bottom: -7rem; }
}
.contact-band__overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--forest) 55%, transparent); }
.contact-band__inner { position: relative; padding-block: 6rem; text-align: center; }
@media (min-width: 768px) { .contact-band__inner { padding-block: 8rem; } }
.contact-band__eyebrow { display: block; margin-bottom: 1.25rem; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: color-mix(in srgb, var(--cream) 80%, transparent); }
.contact-band__heading { margin-bottom: 2rem; font-size: 2.25rem; color: var(--cream); }
@media (min-width: 768px) { .contact-band__heading { font-size: 3rem; } }
@media (min-width: 1024px) { .contact-band__heading { font-size: 3.75rem; } }
.contact-band__body { margin: 0 auto 2.5rem; max-width: 32rem; font-size: 0.9375rem; line-height: 1.6; color: color-mix(in srgb, var(--cream) 85%, transparent); }
.contact-band__actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .contact-band__actions { flex-direction: row; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; z-index: 0; background-color: var(--forest); color: var(--cream); }
/* Extra top padding clears the contact band's negative margin overlap (Lovable pull-into-footer) */
.site-footer__newsletter {
	border-bottom: 1px solid color-mix(in srgb, var(--cream) 15%, transparent);
	padding-top: 5rem;
}
@media (min-width: 1024px) {
	.site-footer__newsletter { padding-top: 7rem; }
}
.site-footer__newsletter-inner { display: grid; grid-template-columns: 1fr; align-items: center; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 1024px) { .site-footer__newsletter-inner { grid-template-columns: repeat(12, minmax(0,1fr)); padding-block: 4rem; } }
.site-footer__newsletter-copy { grid-column: span 6; }
.site-footer__eyebrow { margin-bottom: 0.75rem; color: color-mix(in srgb, var(--cream) 60%, transparent); }
.site-footer__newsletter-title { font-size: 1.875rem; line-height: 1.2; }
@media (min-width: 1024px) { .site-footer__newsletter-title { font-size: 2.25rem; } }
.site-footer__newsletter-form { display: flex; width: 100%; grid-column: span 6; }
.site-footer__newsletter-input { min-width: 0; flex: 1; border: none; border-bottom: 1px solid color-mix(in srgb, var(--cream) 40%, transparent); background: transparent; padding: 0.75rem 0.25rem; font-size: 0.875rem; color: var(--cream); }
.site-footer__newsletter-input::placeholder { color: color-mix(in srgb, var(--cream) 50%, transparent); }
.site-footer__newsletter-input:focus { outline: none; border-color: var(--cream); }
.site-footer__newsletter-btn { margin-left: 0.75rem; height: 3rem; padding: 0 1.25rem; }
.site-footer__main { padding-block: 4rem 2rem; }
@media (min-width: 1024px) { .site-footer__main { padding-block: 5rem 2.5rem; } }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(12, minmax(0,1fr)); gap: 3rem; } }
.site-footer__brand-col { grid-column: span 4; }
.site-footer__logo-img { height: 3.5rem; width: auto; filter: brightness(0) invert(1); }
.site-footer__tagline { margin-top: 1.25rem; max-width: 24rem; font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.site-footer__social { margin-top: 1.5rem; display: inline-flex; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.site-footer__social:hover { color: var(--cream); }
.site-footer__col { grid-column: span 2; }
.site-footer__col-title { margin-bottom: 1.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.28em; color: color-mix(in srgb, var(--cream) 60%, transparent); }
.site-footer__links { display: flex; flex-direction: column; gap: 0.75rem; list-style: none; }
.site-footer__links a, .site-footer__links button { font-size: 0.875rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: color-mix(in srgb, var(--cream) 80%, transparent); padding: 0; }
.site-footer__links a:hover, .site-footer__links button:hover { color: var(--cream); }
.site-footer__contact { display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; color: color-mix(in srgb, var(--cream) 80%, transparent); list-style: none; }
.site-footer__contact li { display: flex; gap: 0.5rem; align-items: flex-start; }
.site-footer__contact-icon {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin-top: 0.125rem;
	color: color-mix(in srgb, var(--cream) 80%, transparent);
}
.site-footer__contact-icon svg {
	display: block;
	width: 1rem;
	height: 1rem;
}
.site-footer__contact a { word-break: break-all; }
.site-footer__contact a:hover { color: var(--cream); }
.site-footer__bottom { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid color-mix(in srgb, var(--cream) 15%, transparent); padding-top: 1.5rem; }
@media (min-width: 640px) { .site-footer__bottom { flex-direction: row; } }
.site-footer__copyright { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.22em; color: color-mix(in srgb, var(--cream) 55%, transparent); }
.site-footer__policy-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.25rem; list-style: none; }
.site-footer__policy-links button { font-size: 0.75rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: color-mix(in srgb, var(--cream) 70%, transparent); padding: 0; }
.site-footer__policy-links button:hover { color: var(--cream); }

/* ==========================================================================
   Modals (search / contact / magnesium / policy)
   ========================================================================== */
.theme-search-dialog, .theme-modal { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.theme-search-dialog:not([hidden]), .theme-modal:not([hidden]) { visibility: visible; }
.theme-search-dialog__backdrop, .theme-modal__backdrop { position: absolute; inset: 0; background-color: rgba(20,20,18,0.4); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.3s ease; }
.theme-search-dialog.is-open .theme-search-dialog__backdrop, .theme-modal.is-open .theme-modal__backdrop { opacity: 1; }
.theme-search-dialog__panel {
	position: relative;
	background-color: var(--background);
	width: 100%;
	max-height: 92vh;
	overflow-y: auto;
	border-bottom: 1px solid var(--border);
	box-shadow: var(--shadow-elevated);
	transform: translateY(-16px);
	opacity: 0;
	transition: transform 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}
.theme-search-dialog.is-open .theme-search-dialog__panel { transform: translateY(0); opacity: 1; }
.theme-search-dialog__close { position: absolute; top: 1.25rem; right: 1.25rem; z-index: 10; padding: 0.5rem; opacity: 0.7; }
.theme-search-dialog__close:hover { opacity: 1; }
.theme-search-dialog__inner { padding-block: 2.5rem; }
@media (min-width: 1024px) { .theme-search-dialog__inner { padding-block: 3.5rem; } }
.theme-search-dialog__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .theme-search-dialog__grid { grid-template-columns: 260px 1fr; gap: 4rem; } }
.theme-search-dialog__col-title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1.5rem; }
.theme-search-dialog__categories ul { display: flex; flex-direction: column; gap: 0.875rem; list-style: none; }
.theme-search-dialog__categories button { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }
.theme-search-dialog__categories button:hover { color: var(--primary); }
.theme-search-dialog__input-row { display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid color-mix(in srgb, var(--foreground) 30%, transparent); padding-bottom: 0.75rem; }
.theme-search-dialog__input-row input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-display); font-size: 1.5rem; }
.theme-search-dialog__input-row input::placeholder { color: color-mix(in srgb, var(--foreground) 40%, transparent); }
.theme-search-dialog__results { margin-top: 2.5rem; }
.theme-search-dialog__results h4,
.theme-search-dialog__results-heading {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--foreground);
	margin-bottom: 1.5rem;
}
.theme-search-dialog__results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 768px) { .theme-search-dialog__results-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-search-dialog__results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.theme-search-dialog__result {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	color: var(--foreground);
	cursor: pointer;
}
.theme-search-dialog__result-img {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background-color: var(--secondary);
	border-radius: 0;
}
.theme-search-dialog__result-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}
.theme-search-dialog__result:hover .theme-search-dialog__result-img img { transform: scale(1.05); }
.theme-search-dialog__result-name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 0.75rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	line-height: 1.35;
	color: var(--foreground);
}
.theme-search-dialog__result-price {
	margin-top: 0.25rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 400;
	color: color-mix(in srgb, var(--foreground) 70%, transparent);
}
.theme-search-dialog__no-results { color: var(--muted-foreground); font-size: 0.875rem; }

.theme-modal__panel {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -46%);
	display: flex;
	flex-direction: column;
	width: 92vw;
	max-width: 32rem;
	max-height: min(90vh, 56rem);
	overflow: hidden;
	border-radius: var(--radius);
	background-color: var(--background);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-elevated);
	opacity: 0;
	transition: transform 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}
.theme-modal.is-open .theme-modal__panel { opacity: 1; transform: translate(-50%, -50%); }
.theme-modal__panel--wide, .theme-modal__panel--policy { max-width: 48rem; }
.theme-modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); background-color: color-mix(in srgb, var(--background) 70%, transparent); }
.theme-modal__body { padding: 1.5rem; max-height: 80vh; overflow-y: auto; }
.theme-modal__body--wide { max-height: none; overflow: visible; padding: 1.75rem; }
.theme-modal__title { font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.5rem; }
.theme-modal__desc { font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }
.theme-modal__contact-info { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.theme-modal__contact-info a { display: flex; align-items: center; gap: 0.5rem; }
.theme-modal__contact-info a:hover { color: var(--foreground); }
.theme-contact-form { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.theme-contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .theme-contact-form__row { grid-template-columns: 1fr 1fr; } }
.theme-contact-form__field label { margin-bottom: 0.375rem; display: block; }
.theme-contact-form input, .theme-contact-form textarea {
	width: 100%;
	border: 1px solid var(--border);
	background-color: var(--background);
	border-radius: var(--radius-pill);
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
	font-family: var(--font-body);
}
.theme-contact-form textarea { border-radius: var(--radius); resize: none; }
.theme-contact-form input:focus, .theme-contact-form textarea:focus { outline: none; border-color: var(--primary); }
.theme-contact-form__actions { display: flex; justify-content: flex-end; }
.theme-contact-form__success { text-align: center; padding: 2rem 0; }
.theme-contact-form__success-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; background-color: var(--primary); color: var(--primary-foreground); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.theme-contact-form__error { color: #c32222; font-size: 0.875rem; }

.theme-modal--magnesium .theme-modal__panel {
	padding: 0;
	gap: 0;
}
.theme-modal--magnesium .theme-modal__hero {
	position: relative;
	flex-shrink: 0;
	height: 10rem;
	overflow: hidden;
}
@media (min-width: 768px) { .theme-modal--magnesium .theme-modal__hero { height: 13rem; } }
.theme-modal__hero-img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
}
.theme-modal__hero-overlay { position: absolute; inset: 0; background-color: color-mix(in srgb, var(--primary) 80%, transparent); }
.theme-modal__hero-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; }
@media (min-width: 768px) { .theme-modal__hero-content { padding: 2rem; } }
.theme-modal__hero-content .ticker-label { color: color-mix(in srgb, var(--primary-foreground) 70%, transparent); margin-bottom: 0.5rem; }
.theme-modal__hero-content .theme-modal__title { color: var(--primary-foreground); font-size: 1.875rem; margin-bottom: 0; }
@media (min-width: 768px) { .theme-modal__hero-content .theme-modal__title { font-size: 2.25rem; } }
.theme-modal__hero-content p { color: color-mix(in srgb, var(--primary-foreground) 75%, transparent); max-width: 32rem; font-size: 0.8125rem; margin-top: 0.5rem; }
.theme-modal__scroll {
	flex: 1 1 auto;
	min-height: 0;
	max-height: 62vh;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.theme-modal__intro { font-size: 0.9375rem; line-height: 1.6; color: var(--muted-foreground); }
.theme-modal__body--wide > * + * { margin-top: 2.5rem; }
.theme-modal--magnesium .theme-modal__body--wide .ticker-label {
	display: block;
	margin-bottom: 1rem;
}
.theme-modal--magnesium .theme-modal__body--wide .ticker-label:has(+ .theme-accordion) {
	margin-bottom: 0.5rem;
}
.theme-modal__footer-note { flex-shrink: 0; }
.theme-modal__benefit-grid, .theme-modal__steps-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .theme-modal__benefit-grid { grid-template-columns: 1fr 1fr; } .theme-modal__steps-grid { grid-template-columns: repeat(3,1fr); } }
.theme-modal__benefit-card, .theme-modal__step-card { border-radius: var(--radius); padding: 1.25rem; }
.theme-modal__benefit-icon { display: flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--hairline); background-color: var(--background); margin-bottom: 0.75rem; color: var(--primary); }
.theme-modal__benefit-title, .theme-modal__step-title { font-family: var(--font-display); font-size: 1.125rem; color: var(--foreground); }
.theme-modal__benefit-copy, .theme-modal__step-copy { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.6; color: var(--muted-foreground); }
.theme-modal__step-num { font-family: var(--font-display); font-size: 1.875rem; line-height: 1; color: color-mix(in srgb, var(--primary) 40%, transparent); }
.theme-modal__product-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.75rem; }
@media (min-width: 640px) { .theme-modal__product-grid { grid-template-columns: repeat(4,1fr); } }
.theme-modal__product-img-wrap img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform 0.7s ease;
}
.theme-modal__product-img-wrap { position: relative; display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--hairline); background-color: var(--panel); aspect-ratio: 1/1; }
.theme-modal__product-link:hover .theme-modal__product-img-wrap img { transform: scale(1.04); }
.theme-modal__product-name { display: block; margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.4; color: var(--foreground); }
.theme-modal__product-price { display: block; font-size: 0.8125rem; color: var(--muted-foreground); }
.theme-modal__footer-note { border-top: 1px solid var(--hairline); background-color: var(--panel); padding: 1rem 1.75rem; }
.theme-modal__footer-note p { font-size: 0.75rem; line-height: 1.6; color: var(--muted-foreground); }

.theme-modal--policy .theme-modal__policy-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding: 1.25rem 1.75rem; }
.theme-modal--policy .theme-modal__title { font-size: 1.5rem; }
@media (min-width: 768px) { .theme-modal--policy .theme-modal__title { font-size: 1.875rem; } }
.theme-modal__policy-body { padding: 0.5rem 1.75rem; }
.theme-policy-content__block { max-width: 42rem; padding: 1.5rem 0; border-bottom: 1px solid var(--hairline); }
.theme-policy-content__block:last-child { border-bottom: none; }
.theme-policy-content__block h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.theme-policy-content__block p { font-size: 0.9375rem; line-height: 1.8; color: color-mix(in srgb, var(--foreground) 80%, transparent); margin-bottom: 0.75rem; }
.theme-policy-content__block p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Cart drawer + overlay
   ========================================================================== */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 89;
	background-color: rgba(33,44,38,0.3);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay { opacity: 1; visibility: visible; }
#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 32rem;
	background-color: var(--background);
	z-index: 90;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s var(--transition-smooth);
}
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: 2rem 2rem 1.25rem; border-bottom: 1px solid var(--border); }
.theme-cart-drawer__header h2 { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; }
.theme-cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; }
.theme-cart-drawer__empty-icon { color: var(--muted-foreground); margin-bottom: 1.25rem; display: inline-flex; }
.theme-cart-drawer__empty p { color: var(--muted-foreground); margin-bottom: 1.5rem; }
.theme-cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem 2rem; display: flex; flex-direction: column; gap: 2rem; }
.theme-cart-item { display: flex; gap: 1.25rem; }
.theme-cart-item__image {
	position: relative;
	width: 6rem;
	height: 8rem;
	flex-shrink: 0;
	overflow: hidden;
	background-color: var(--secondary);
	display: block;
}
.theme-cart-item__image img {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	display: block;
}
.theme-cart-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.theme-cart-item__name { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-cart-item__name:hover { opacity: 0.7; }
.theme-cart-item__variation { margin-top: 0.375rem; font-size: 0.75rem; font-style: italic; color: var(--muted-foreground); }
.theme-cart-item__price { margin-top: 0.375rem; font-size: 0.875rem; }
.theme-cart-item__controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.theme-cart-item__qty { display: flex; align-items: center; border-radius: var(--radius-pill); border: 1px solid var(--border); }
.theme-cart-item__qty button { padding: 0.375rem 0.625rem; }
.theme-cart-item__qty button:hover { background-color: var(--secondary); }
.theme-cart-item__qty-value { padding: 0 0.5rem; font-size: 0.875rem; min-width: 1.75rem; text-align: center; }
.theme-cart-item__remove { font-size: 0.75rem; color: var(--muted-foreground); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.theme-cart-item__remove:hover { color: var(--foreground); text-decoration-color: currentColor; }
.theme-cart-drawer__footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-drawer__subtotal-row { display: flex; align-items: baseline; justify-content: space-between; font-family: var(--font-display); font-size: 1.25rem; }
.theme-cart-drawer__note { font-size: 0.75rem; color: var(--muted-foreground); }
.theme-cart-drawer__checkout { width: 100%; height: 3rem; text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.75rem; }

/* Hide WooCommerce "View cart" injected link */
.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; }

/* Suppress WC notices where the drawer already gives feedback */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: var(--radius);
	border: 1px solid var(--hairline);
	background-color: var(--panel);
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	list-style: none;
}
.woocommerce-error { border-color: #c32222; color: #7a1414; }

/* ==========================================================================
   WooCommerce: Add to cart buttons
   ========================================================================== */
.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(--primary) !important;
	color: var(--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(--primary) !important;
	color: var(--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(--primary) !important;
}
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }

/* ==========================================================================
   Single product page (Lovable ProductDetail parity)
   ========================================================================== */
.single-product-page {
	background-color: var(--background);
	/* Clear fixed header (+ announcement when present) */
	padding-top: calc(var(--header-height) + 1.5rem);
	padding-bottom: 0;
}
body.has-announcement .single-product-page {
	padding-top: calc(var(--header-height) + 36px + 1.5rem);
}
body.admin-bar .single-product-page {
	padding-top: calc(var(--header-height) + 32px + 1.5rem);
}
body.admin-bar.has-announcement .single-product-page {
	padding-top: calc(var(--header-height) + 32px + 36px + 1.5rem);
}
@media screen and (max-width: 782px) {
	body.admin-bar .single-product-page {
		padding-top: calc(var(--header-height) + 46px + 1.5rem);
	}
	body.admin-bar.has-announcement .single-product-page {
		padding-top: calc(var(--header-height) + 46px + 36px + 1.5rem);
	}
}
@media (min-width: 1024px) {
	.single-product-page {
		padding-top: calc(var(--header-height) + 2rem);
	}
	body.has-announcement .single-product-page {
		padding-top: calc(var(--header-height) + 36px + 2rem);
	}
}

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	min-width: 0;
	align-items: start;
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: var(--page-gutter);
	box-sizing: border-box;
}
@media (min-width: 1024px) {
	.theme-product-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: var(--page-gutter);
	}
}

/* Gallery: main image on top, thumbnails centered below */
.theme-product-gallery {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	max-width: 100%;
	padding: 1rem 0 1.5rem;
	background-color: var(--background);
}
@media (min-width: 768px) {
	.theme-product-gallery { padding: 1.5rem 0 2rem; }
}
@media (min-width: 1024px) {
	.theme-product-gallery {
		position: sticky;
		top: calc(var(--header-height) + 1rem);
		align-self: start;
		padding: 0.5rem 0 2.5rem;
		z-index: 1;
	}
	body.has-announcement .theme-product-gallery {
		top: calc(var(--header-height) + 36px + 1rem);
	}
	body.admin-bar .theme-product-gallery {
		top: calc(var(--header-height) + 32px + 1rem);
	}
	body.admin-bar.has-announcement .theme-product-gallery {
		top: calc(var(--header-height) + 32px + 36px + 1rem);
	}
}

.theme-product-main-image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42vh;
	max-height: 62vh;
	overflow: hidden;
	background-color: var(--background);
	border-radius: 0;
}
@media (min-width: 1024px) {
	.theme-product-main-image-wrap {
		/* Keep main + centered thumbs within sticky viewport */
		min-height: 0;
		max-height: calc(100vh - var(--header-height) - 8rem);
	}
	body.has-announcement .theme-product-main-image-wrap {
		max-height: calc(100vh - var(--header-height) - 36px - 8rem);
	}
}
.theme-product-main-image {
	position: static !important;
	inset: auto !important;
	display: block;
	width: 100%;
	height: auto;
	max-height: 62vh;
	object-fit: contain;
	object-position: center;
}
@media (min-width: 1024px) {
	.theme-product-main-image {
		max-height: calc(100vh - var(--header-height) - 8rem);
	}
	body.has-announcement .theme-product-main-image {
		max-height: calc(100vh - var(--header-height) - 36px - 8rem);
	}
}

.theme-product-thumbnails {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	padding-bottom: 0.25rem;
}
.theme-product-thumb {
	position: relative;
	width: 4rem;
	height: 4rem;
	flex-shrink: 0;
	overflow: hidden;
	border: 1px solid transparent;
	opacity: 0.6;
	transition: opacity 0.2s ease, border-color 0.2s ease;
	background: var(--secondary);
	cursor: pointer;
	padding: 0;
}
@media (min-width: 1024px) {
	.theme-product-thumb { width: 4.5rem; height: 4.5rem; }
}
.theme-product-thumb.is-active { border-color: var(--foreground); opacity: 1; }
.theme-product-thumb:hover { opacity: 1; }
.theme-product-thumb__img {
	position: static !important;
	inset: auto !important;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Info column */
.theme-product-info {
	min-width: 0;
	max-width: 100%;
	padding: 2rem 0 3.5rem;
}
@media (min-width: 768px) {
	.theme-product-info { padding: 2.5rem 0 4rem; }
}
@media (min-width: 1024px) {
	.theme-product-info {
		padding: 1rem 0 5rem;
		border-left: 1px solid transparent;
	}
}

.theme-product-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
.theme-product-breadcrumb a { color: inherit; transition: color 0.2s ease; }
.theme-product-breadcrumb a:hover { color: var(--foreground); }
.theme-product-breadcrumb__sep { margin: 0 0.125rem; }

.product-title {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1.5;
	font-weight: 500;
	color: var(--foreground);
}
@media (min-width: 768px) { .product-title { font-size: 1rem; } }
.theme-product-sku { margin-top: 0.75rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--muted-foreground); }
.theme-product-divider { height: 1px; background-color: var(--border); margin: 1.75rem 0; }
.theme-product-price {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.125rem;
	font-weight: 400;
	color: var(--foreground);
}
.theme-stock-badge--out { margin-top: 0.75rem; display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.22em; color: #c32222; }
.theme-product-note {
	margin-top: 1.75rem;
	background-color: color-mix(in srgb, var(--secondary) 70%, transparent);
	padding: 1rem 1.25rem;
	font-size: 0.8125rem;
	color: color-mix(in srgb, var(--foreground) 85%, transparent);
	line-height: 1.6;
}
.theme-magnesium-guide-link {
	display: inline-block;
	margin-top: 1rem;
	padding: 0;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 4px;
	background: none;
	border: none;
	cursor: pointer;
}
.theme-magnesium-guide-link:hover { opacity: 0.75; }

.theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 2rem;
}
.theme-add-to-cart-area .theme-qty-input[type="hidden"],
.theme-add-to-cart-area input.qty[type="hidden"] { display: none; }

/* Lovable ATC: full-width dark pill */
.single-product-page .single_add_to_cart_button.button,
.single-product-page a.single_add_to_cart_button {
	width: 100% !important;
	flex: none !important;
	min-width: 0 !important;
	height: 3.5rem !important;
	min-height: 3.5rem !important;
	padding: 0 1.5rem !important;
	background-color: var(--foreground) !important;
	color: var(--background) !important;
	border: 1px solid var(--foreground) !important;
	border-radius: var(--radius-pill) !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.28em !important;
	text-transform: uppercase !important;
	font-weight: 500 !important;
}
.single-product-page .single_add_to_cart_button.button:hover,
.single-product-page a.single_add_to_cart_button:hover {
	opacity: 1 !important;
	background-color: var(--primary) !important;
	color: var(--primary-foreground) !important;
	border-color: var(--primary) !important;
}

.theme-product-details { margin-top: 3rem; }
.theme-product-details__title {
	font-family: var(--font-body);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	margin-bottom: 1.25rem;
	color: var(--foreground);
}
.theme-product-description {
	margin: 0 0 1.5rem;
	font-family: var(--font-display);
	font-size: 1.1875rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--foreground) 90%, transparent);
	white-space: pre-line;
}
.theme-product-description p { margin: 0 0 1em; }
.theme-product-description p:last-child { margin-bottom: 0; }
.woocommerce-product-details__short-description ul {
	margin: 0;
	padding-left: 1.25rem;
	list-style: disc;
	color: color-mix(in srgb, var(--foreground) 80%, transparent);
	font-family: var(--font-body);
	font-size: 0.875rem;
}
.woocommerce-product-details__short-description li { margin-bottom: 0.625rem; line-height: 1.6; }
.woocommerce-product-details__short-description li::marker { color: var(--primary); }
.woocommerce-product-details__short-description,
.woocommerce-variation-description { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { padding-block: 6rem; border-top: 1px solid var(--border); margin-top: 3rem; }
.related-products-section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; }
.related-products-section__heading { font-size: 1.875rem; line-height: 1.15; }
.related-products-section__heading em { font-style: italic; color: inherit; }
@media (min-width: 768px) { .related-products-section__heading { font-size: 2.25rem; } }

/* Variable product attribute table layout */
.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-weight: 600; }
.single-product .variations tbody td.value { padding-top: 0; }
.variations label { font-family: var(--font-body); font-weight: 600; font-style: normal; }
.theme-attr-select-hidden { display: none !important; }

/* ==========================================================================
   Shop archive page title
   ========================================================================== */
.shop-archive-page__inner { padding-block: 8rem 5rem; }
.shop-archive-page__title { font-size: 2.5rem; margin-bottom: 2.5rem; }

/* ==========================================================================
   404
   ========================================================================== */
.theme-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.theme-404__inner { text-align: center; padding-block: 6rem; }
.theme-404__code { font-size: 4rem; margin-bottom: 1rem; }
.theme-404__message { font-size: 1.25rem; color: var(--muted-foreground); margin-bottom: 2rem; }

/* ==========================================================================
   Checkout (WooCommerce Blocks) — Section 13
   ========================================================================== */
body.woocommerce-checkout .theme-page-shell { max-width: 80rem; }
body.woocommerce-checkout .page-title { margin-bottom: 2rem; font-size: 2rem; }
body.woocommerce-checkout .wc-block-checkout,
body.woocommerce-cart .wc-block-cart {
	font-family: var(--font-body);
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large > .wc-block-components-notice-banner {
		grid-column: 1 / -1;
	}
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	font-family: var(--font-body);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background-color: var(--background);
	color: var(--foreground);
	width: 100% !important;
	max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { outline: none; border-color: var(--primary); }
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--primary) !important;
	color: var(--primary-foreground) !important;
	border-radius: var(--radius-pill) !important;
	font-family: var(--font-body) !important;
	text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--panel);
	border-radius: var(--radius);
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
}

/* Cart / Account / Thank-you width parity */
body.woocommerce-cart .theme-page-shell,
body.woocommerce-account .theme-page-shell,
body.theme-thankyou-page .theme-page-shell {
	max-width: 80rem;
}
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0; margin: 1.5rem 0; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-size: 1.5rem; padding: 0 0 1rem 0; }
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; }
