/* =========================================================================
   David's Legacy — theme.css
   Design tokens ported verbatim from the original design source.
   ========================================================================= */

:root {
	/* HSL channel tokens — must match src/index.css :root exactly */
	--background: 0 0% 100%;
	--foreground: 215 45% 15%;
	--primary: 216 72% 27%;
	--secondary: 210 45% 96%;
	--muted-foreground: 215 18% 40%;
	--accent: 210 76% 42%;
	--border: 210 28% 88%;
	--brand-navy: 216 78% 22%;
	--brand-blue: 212 62% 42%;
	--brand-sky: 204 72% 62%;

	/* Fixed structural tokens (not exposed in Customizer) */
	--primary-foreground: 0 0% 100%;
	--accent-foreground: 0 0% 100%;

	/* Semantic aliases used throughout theme.css */
	--color-background: hsl(var(--background));
	--color-foreground: hsl(var(--foreground));
	--color-primary: hsl(var(--primary));
	--color-primary-foreground: hsl(var(--primary-foreground));
	--color-secondary: hsl(var(--secondary));
	--color-accent: hsl(var(--accent));
	--color-accent-foreground: hsl(var(--accent-foreground));
	--color-muted-foreground: hsl(var(--muted-foreground));
	--color-border: hsl(var(--border));
	--color-brand-navy: hsl(var(--brand-navy));
	--color-brand-blue: hsl(var(--brand-blue));
	--color-brand-sky: hsl(var(--brand-sky));
	--color-button-text: hsl(var(--primary-foreground));
	--color-surface: hsl(var(--secondary));

	--font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
	--font-body: 'Nunito', system-ui, sans-serif;

	--radius: 0.875rem;
	--card-radius: 1.25rem;
	--btn-radius: 999px;
	--btn-height: 44px;
	--btn-padding: 0 1.75rem;
	--btn-font-size: 0.9375rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: normal;
	--btn-text-transform: none;
	--btn-icon-padding: 0 0.85rem;

	--shadow-soft: 0 4px 24px -6px hsl(216 45% 20% / 0.10);
	--shadow-elevated: 0 14px 44px -10px hsl(216 45% 20% / 0.22);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
	--header-height: 80px;
	--checkout-gap: 2rem;
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
main { overflow-x: clip; max-width: 100%; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; cursor: pointer; }
ul, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; }

img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.product-gallery-img):not(.team-photo):not(.about-image):not(.founder-image) {
	max-width: 100%;
	height: auto;
}
.cover-img, .hero-bg-img, .product-card-img, .product-gallery-img, .team-photo, .about-image, .founder-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.container-wide {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.25rem;
	min-width: 0;
}
@media (min-width: 640px) { .container-wide { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-wide { padding: 0 2rem; } }

.text-accent-italic { color: var(--color-accent); font-style: italic; }
.text-accent-italic-light { color: var(--color-brand-sky); font-style: italic; }
.eyebrow { display: block; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-accent); }
.eyebrow-on-dark { color: var(--color-brand-sky); }
.section-subtext { color: var(--color-muted-foreground); line-height: 1.7; }
.subtext-on-dark { color: rgba(255,255,255,0.8); }
.section-header-center { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-heading {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.025em;
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
	font-size: 1.875rem;
	line-height: 1.2;
}
@media (min-width: 768px) { .section-heading { font-size: 3rem; } }
.section-heading .text-accent-italic,
.section-heading .text-accent-italic-light { white-space: normal; }
@media (min-width: 768px) {
	.section-heading .text-accent-italic { white-space: nowrap; }
}

.scroll-mt-24 { scroll-margin-top: 6rem; }

/* Buttons */
.btn-accent, .btn-primary, .btn-outline, .btn-outline-accent, .btn-white, .btn-hero-primary, .btn-hero-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border-radius: var(--btn-radius);
	min-height: var(--btn-height);
	padding: var(--btn-padding);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
	cursor: pointer;
}
.btn-accent, .btn-hero-primary { background: var(--color-accent); color: var(--color-accent-foreground); }
.btn-accent:hover, .btn-hero-primary:hover { opacity: 0.88; }
.btn-primary { background: var(--color-primary); color: var(--color-primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--color-border); color: var(--color-foreground); }
.btn-outline:hover { border-color: var(--color-foreground); }
.btn-outline-accent { background: transparent; border: 1px solid color-mix(in srgb, var(--color-accent) 40%, transparent); color: var(--color-accent); }
.btn-outline-accent:hover { background: var(--color-accent); color: var(--color-accent-foreground); }
.btn-white { background: #fff; color: var(--color-brand-navy); }
.btn-white:hover { opacity: 0.9; }
.btn-hero-outline { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-hero-outline:hover { background: rgba(255,255,255,0.2); }
.full-width { width: 100%; }
.theme-anchor-link { cursor: pointer; }

/* =========================================================================
   Scroll reveal animations (Section 2.1)
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth), filter 0.9s var(--transition-smooth); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-fade[data-reveal] { transform: none; filter: none; transition: opacity 0.8s var(--transition-smooth); }
.reveal-item.theme-product-card-wrap[data-reveal],
li.theme-product-card-wrap.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
li.theme-product-card-wrap.reveal-item.is-visible { opacity: 1; transform: translateY(0); }

body.is-customizer [data-reveal],
body.is-customizer .reveal-item,
body.is-customizer li.theme-product-card-wrap { opacity: 1 !important; transform: none !important; filter: none !important; }

@media (prefers-reduced-motion: reduce) {
	[data-reveal],
	li.theme-product-card-wrap { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
	html { scroll-behavior: auto; }
}

/* Observe product cards globally in every context (shop/related/homepage) */
li.theme-product-card-wrap { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
li.theme-product-card-wrap.is-visible { opacity: 1; transform: translateY(0); }

.gallery-arrow,
.gallery-dot,
.faq-question-btn,
.contact-item-card[href],
.theme-product-thumb,
.theme-attr-pill,
.cart-toggle-btn,
.mobile-menu-toggle,
.theme-dialog-close,
.cart-drawer-close,
.cart-item-remove,
.cart-drawer-clear,
.site-logo-link,
.footer-brand-link,
.footer-social-link,
.theme-product-card__title a {
	cursor: pointer;
}

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}
@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}
.site-header.is-solid {
	background: color-mix(in srgb, var(--color-background) 95%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--color-border);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 1024px) { .site-nav { height: 5rem; } }
.site-logo-link { display: flex; align-items: center; min-width: 0; }
.site-logo-img { height: var(--header-logo-height, 3rem); width: var(--header-logo-height, 3rem); object-fit: contain; transition: filter 0.3s ease; }
@media (min-width: 768px) { .site-logo-img { height: calc(var(--header-logo-height, 3rem) + 0.5rem); width: calc(var(--header-logo-height, 3rem) + 0.5rem); } }
.site-header:not(.is-solid) .site-logo-img { filter: brightness(0) invert(1); }

.site-nav-desktop { display: none; }
@media (min-width: 1024px) { .site-nav-desktop { display: flex; align-items: center; gap: 1.5rem; } }
.theme-nav-list { display: flex; align-items: center; gap: 1.5rem; }
.theme-nav-list a { font-size: 0.875rem; letter-spacing: 0.02em; position: relative; color: var(--color-foreground); transition: color 0.2s ease; }
.site-header:not(.is-solid) .theme-nav-list a { color: rgba(255,255,255,0.9); }
.theme-nav-list a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--transition-smooth); }
.theme-nav-list a:hover::after { transform: scaleX(1); }

.site-nav-actions { display: flex; align-items: center; gap: 0.25rem; flex-shrink: 0; }
.btn-header-donate {
	display: none;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	background: var(--color-accent);
	color: #fff;
	transition: background-color 0.2s ease;
}
@media (min-width: 640px) { .btn-header-donate { display: inline-flex; } }
.site-header:not(.is-solid) .btn-header-donate { background: #fff; color: var(--color-foreground); }
.cart-toggle-btn { position: relative; padding: 0.5rem; color: var(--color-foreground); transition: opacity 0.2s ease; }
.site-header:not(.is-solid) .cart-toggle-btn { color: #fff; }
.cart-toggle-btn:hover { opacity: 0.7; }
.theme-cart-count {
	position: absolute; top: -2px; right: -2px;
	width: 1.25rem; height: 1.25rem;
	display: flex; align-items: center; justify-content: center;
	font-size: 10px; font-weight: 500;
	background: var(--color-accent); color: #fff;
	border-radius: 50%;
}
.theme-cart-count:empty { display: none; }
.mobile-menu-toggle { padding: 0.5rem; color: var(--color-foreground); transition: opacity 0.2s ease; }
.site-header:not(.is-solid) .mobile-menu-toggle { color: #fff; }
.mobile-menu-toggle:hover { opacity: 0.7; }
.mobile-menu-toggle .icon-close { display: none; }
body.mobile-menu-open .mobile-menu-toggle .icon-menu { display: none; }
body.mobile-menu-open .mobile-menu-toggle .icon-close { display: block; }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.mobile-menu {
	display: none;
	border-top: 1px solid var(--color-border);
	padding: 1rem 0;
}
.mobile-menu.is-open {
	display: block;
	animation: theme-fade-in 0.6s ease;
}
@media (min-width: 1024px) {
	.mobile-menu,
	.mobile-menu.is-open { display: none !important; }
}
@keyframes theme-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.mobile-menu.is-open { animation: none; }
}
.theme-nav-list-mobile { display: flex; flex-direction: column; gap: 0.5rem; }
.theme-nav-list-mobile a {
	display: block;
	padding: 0.5rem 0;
	font-size: 1rem;
	letter-spacing: 0.02em;
	text-align: left;
	color: var(--color-foreground);
	transition: color 0.2s ease;
}
.theme-nav-list-mobile a:hover { color: var(--color-accent); }
.btn-mobile-donate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	margin-top: 0.5rem;
	padding: 0.625rem 1rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 500;
	background: var(--color-accent);
	color: #fff;
}
.mobile-menu .theme-nav-list {
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
}
.mobile-menu .theme-nav-list a {
	display: block;
	padding: 0.5rem 0;
	font-size: 1rem;
	letter-spacing: 0.02em;
	text-align: left;
}
.mobile-menu .theme-nav-list a::after { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--color-brand-navy);
}
.hero-media-wrap { position: absolute; inset: 0; }
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom,
		color-mix(in srgb, var(--color-brand-navy) 70%, transparent),
		color-mix(in srgb, var(--color-brand-navy) 60%, transparent) 45%,
		color-mix(in srgb, var(--color-brand-navy) 90%, transparent));
}
.hero-text-wrap { position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 7rem 0; }
.hero-badge {
	display: inline-flex; align-items: center; gap: 0.5rem;
	margin: 0 auto 1.5rem;
	padding: 0.375rem 1rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255,255,255,0.2);
	color: rgba(255,255,255,0.9);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.hero-badge svg { color: var(--color-brand-sky); flex-shrink: 0; }
.hero-heading { color: #fff; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 1.5rem; font-size: 1.5rem; }
@media (min-width: 480px) { .hero-heading { font-size: 1.5rem; } }
@media (min-width: 768px) { .hero-heading { font-size: 2.25rem; } }
@media (min-width: 1280px) { .hero-heading { font-size: 3rem; } }
.hero-heading-line1 { display: block; margin-bottom: 0.25rem; }
.hero-heading-line2 { display: block; }
@media (min-width: 1024px) {
	.hero-heading { white-space: nowrap; }
	.hero-heading-line1, .hero-heading-line2 { display: inline; margin: 0; }
}
.hero-subtext { color: rgba(255,255,255,0.85); max-width: 42rem; margin: 0 auto 2.5rem; font-size: 1rem; line-height: 1.7; }
@media (min-width: 768px) { .hero-subtext { font-size: 1.125rem; } }
.hero-cta-row { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; padding: 0 1rem; max-width: 100%; }
@media (min-width: 640px) { .hero-cta-row { flex-direction: row; } }
.hero-cta-row a { padding: 0 2rem; width: 100%; max-width: 100%; }
@media (min-width: 640px) { .hero-cta-row a { width: auto; } }
.hero-scroll-hint { display: none; margin: 3.5rem auto 0; flex-direction: column; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.7); }
.hero-scroll-hint:hover { color: #fff; }
.hero-scroll-hint span { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; }
@media (min-width: 768px) { .hero-scroll-hint { display: flex; } }
.hero-marquee-wrap { position: relative; z-index: 10; margin-top: auto; }

/* Marquee */
.marquee-banner { position: relative; width: 100%; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.15); border-bottom: 1px solid rgba(255,255,255,0.15); background: color-mix(in srgb, var(--color-brand-navy) 85%, transparent); backdrop-filter: blur(6px); padding: 0.875rem 0; }
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 34s linear infinite; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-item { display: flex; align-items: center; flex-shrink: 0; }
.marquee-text { padding: 0 1.5rem; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.9); white-space: nowrap; }
@media (min-width: 640px) { .marquee-text { font-size: 0.875rem; } }
.marquee-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--color-brand-sky); }

/* =========================================================================
   About
   ========================================================================= */
.about-section { padding: 5rem 0; }
@media (min-width: 768px) { .about-section { padding: 7rem 0; } }
.about-inner { max-width: 72rem; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.about-image-col { position: relative; }
.about-image-frame { position: relative; border-radius: 2rem; overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-elevated); }
@media (min-width: 1024px) { .about-image-frame { aspect-ratio: 3/4; } }
.about-story-card { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; }
@media (min-width: 768px) { .about-story-card { bottom: 2rem; left: 2rem; right: auto; } }
.about-story-card .eyebrow-chip { display: inline-block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); background: var(--color-secondary); padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.about-story-card { background: var(--color-background); border-radius: 1.25rem; padding: 1.5rem; box-shadow: var(--shadow-elevated); max-width: 24rem; }
@media (min-width: 768px) { .about-story-card { padding: 2rem; } }
.about-story-heading { font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin: 0 0 1.25rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .about-story-heading { font-size: 1.875rem; } }
.about-items-col { display: flex; flex-direction: column; }
.about-item { padding: 2rem 0; }
.about-item.has-border { border-bottom: 1px solid var(--color-border); }
.about-item-num { color: var(--color-accent); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.about-item-title { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .about-item-title { font-size: 1.5rem; } }
.about-item-desc { color: var(--color-muted-foreground); line-height: 1.7; }

/* =========================================================================
   Mission
   ========================================================================= */
.mission-section { background: var(--color-secondary); padding: 5rem 0; }
@media (min-width: 768px) { .mission-section { padding: 7rem 0; } }
.mission-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .mission-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mission-card { background: var(--color-background); border-radius: 1.25rem; border: 1px solid var(--color-border); padding: 1.5rem; transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth); }
@media (min-width: 1024px) { .mission-card { padding: 1.75rem; } }
.mission-card:hover { transform: translateY(-8px) scale(1.015); box-shadow: var(--shadow-elevated); }
.mission-card-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: transform 0.3s ease; }
.mission-card:hover .mission-card-icon { transform: rotate(-6deg) scale(1.08); }
.mission-card-title { font-weight: 600; font-size: 1.125rem; margin-bottom: 0.625rem; letter-spacing: -0.02em; }
.mission-card-copy { color: var(--color-muted-foreground); font-size: 0.875rem; line-height: 1.7; }

/* =========================================================================
   Founder
   ========================================================================= */
.founder-section { padding: 5rem 0; }
@media (min-width: 768px) { .founder-section { padding: 7rem 0; } }
.founder-inner { max-width: 72rem; margin: 0 auto; }
.founder-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .founder-grid { grid-template-columns: 2fr 3fr; gap: 3.5rem; } }
@media (min-width: 1024px) { .founder-grid { gap: 5rem; } }
.founder-image-col { position: relative; overflow: hidden; border-radius: 1.25rem; aspect-ratio: 4/5; background: var(--color-secondary); }
.founder-heading { font-weight: 700; font-size: 1.875rem; letter-spacing: -0.02em; margin: 0.75rem 0 1.5rem; line-height: 1.25; }
@media (min-width: 768px) { .founder-heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .founder-heading { font-size: 3rem; } }
.founder-subheading { font-size: 1.5rem; }
@media (min-width: 768px) { .founder-subheading { font-size: 1.875rem; } }
.founder-paragraphs { display: flex; flex-direction: column; gap: 1rem; color: var(--color-muted-foreground); line-height: 1.7; }
.founder-quote { display: block; margin-top: 1.75rem; padding-left: 1.25rem; border-left: 2px solid var(--color-accent); font-style: italic; font-family: var(--font-display); font-size: 1.125rem; color: color-mix(in srgb, var(--color-foreground) 90%, transparent); line-height: 1.4; }
@media (min-width: 768px) { .founder-quote { font-size: 1.25rem; } }

/* =========================================================================
   Team
   ========================================================================= */
.team-section { background: var(--color-secondary); padding: 5rem 0; }
@media (min-width: 768px) { .team-section { padding: 7rem 0; } }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
@media (min-width: 1024px) { .team-grid { gap: 2rem; } }
.team-card { width: 100%; max-width: 18rem; transition: transform 0.4s var(--transition-smooth); }
@media (min-width: 640px) { .team-card { width: calc(50% - 12px); } }
@media (min-width: 1024px) { .team-card { width: calc(25% - 18px); } }
.team-card:hover { transform: translateY(-8px) scale(1.02); }
.team-card { background: var(--color-background); border-radius: 1.25rem; border: 1px solid var(--color-border); padding: 1.25rem; box-shadow: var(--shadow-soft); text-align: center; display: flex; flex-direction: column; height: 100%; }
.team-photo-wrap { position: relative; margin: 0 auto 1.25rem; width: 100%; aspect-ratio: 1/1; max-width: 14rem; border-radius: 1.25rem; overflow: hidden; background: var(--color-secondary); }
.team-member-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 0.25rem; }
.team-divider { width: 2.5rem; height: 2px; background: var(--color-accent); margin: 0 auto 0.75rem; border-radius: 999px; }
.team-member-role { color: var(--color-muted-foreground); font-size: 0.875rem; line-height: 1.6; margin-top: auto; }

/* =========================================================================
   Gallery carousel
   ========================================================================= */
.gallery-section { background: var(--color-secondary); padding: 5rem 0; }
@media (min-width: 768px) { .gallery-section { padding: 7rem 0; } }
.gallery-carousel { position: relative; max-width: 64rem; margin: 0 auto; overflow: hidden; }
.gallery-stage { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 1.25rem; background: var(--color-background); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
@media (min-width: 640px) { .gallery-stage { aspect-ratio: 16/10; } }
@media (min-width: 768px) { .gallery-stage { aspect-ratio: 16/9; } }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth); transform: scale(0.98); pointer-events: none; z-index: 0; }
.gallery-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; z-index: 10; }
.gallery-slide figcaption { position: absolute; inset-inline: 0; bottom: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-brand-navy) 90%, transparent), color-mix(in srgb, var(--color-brand-navy) 40%, transparent) 60%, transparent); padding: 4rem 1rem 1rem; }
@media (min-width: 640px) { .gallery-slide figcaption { padding: 5rem 1.5rem 1.25rem; } }
.gallery-caption { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; }
@media (min-width: 640px) { .gallery-caption { font-size: 1rem; } }
@media (min-width: 768px) { .gallery-caption { font-size: 1.125rem; } }
.gallery-alt-text { display: none; color: rgba(255,255,255,0.8); font-size: 0.8125rem; margin-top: 0.25rem; line-height: 1.5; }
@media (min-width: 640px) { .gallery-alt-text { display: block; } }
.gallery-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border-radius: 50%;
	background: color-mix(in srgb, hsl(var(--primary-foreground)) 90%, transparent);
	color: var(--color-foreground);
	box-shadow: var(--shadow-soft);
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.gallery-arrow svg { flex-shrink: 0; width: 1.25rem; height: 1.25rem; }
.gallery-arrow:hover { background: hsl(var(--primary-foreground)); transform: translateY(-50%) scale(1.05); }
.gallery-arrow-prev { left: 0.75rem; }
.gallery-arrow-next { right: 0.75rem; }
@media (min-width: 640px) {
	.gallery-arrow { width: 2.75rem; height: 2.75rem; }
	.gallery-arrow svg { width: 1.5rem; height: 1.5rem; }
	.gallery-arrow-prev { left: 1rem; }
	.gallery-arrow-next { right: 1rem; }
}
.gallery-dots { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.gallery-dot { height: 10px; width: 10px; border-radius: 999px; background: color-mix(in srgb, var(--color-muted-foreground) 30%, transparent); transition: width 0.3s ease, background-color 0.3s ease; }
.gallery-dot.is-active { width: 2rem; background: var(--color-accent); }
.gallery-counter { text-align: center; font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.75rem; }

/* =========================================================================
   Events
   ========================================================================= */
.events-section { padding: 5rem 0; }
@media (min-width: 768px) { .events-section { padding: 7rem 0; } }
.events-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.event-card { border-radius: 1.25rem; border: 1px solid var(--color-border); background: var(--color-secondary); padding: 1.75rem; display: flex; flex-direction: column; transition: transform 0.3s var(--transition-smooth); }
.event-card:hover { transform: translateY(-6px); }
.event-kind-badge { align-self: flex-start; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent); padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1.25rem; }
.event-title { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .event-title { font-size: 1.5rem; } }
.event-meta { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.event-meta-row { display: flex; align-items: flex-start; gap: 0.5rem; }
.event-meta-row svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.event-desc { color: var(--color-muted-foreground); line-height: 1.7; font-size: 0.9375rem; flex: 1; margin-bottom: 1.5rem; }
.events-gallery-link { text-align: center; font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 2.5rem; }

/* =========================================================================
   Shop / product cards
   ========================================================================= */
.shop-section { background: var(--color-secondary); padding: 5rem 0; }
@media (min-width: 768px) { .shop-section { padding: 7rem 0; } }
.theme-product-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; 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)); gap: 1.5rem; } }

li.theme-product-card-wrap { list-style: none; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; background: var(--color-background); border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth); }
.theme-product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-elevated); }
.theme-product-card__image-link { display: block; position: relative; }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--color-secondary); }
.theme-product-card__image-wrapper img { transition: transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.1); }
.stock-badge.out-of-stock { position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 2; background: var(--color-foreground); color: #fff; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.625rem; border-radius: 999px; }
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; padding: 1.25rem; min-width: 0; }
.theme-product-card__category { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.theme-product-card__category a { color: inherit; }
.theme-product-card__title { font-weight: 700; font-size: 1.125rem; margin: 0.25rem 0 0.25rem; letter-spacing: -0.01em; }
.theme-product-card__title a:hover { color: var(--color-accent); }
.theme-product-card__desc { font-size: 0.875rem; color: var(--color-muted-foreground); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.theme-product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; min-width: 0; }
.theme-product-card__price {
	font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
	flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.theme-card-add-btn {
	display: inline-flex; align-items: center; gap: 0.375rem;
	background: var(--color-accent); color: #fff;
	border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 600;
	flex: 0 0 auto;
	transition: opacity 0.2s ease;
}
.theme-card-choose-btn {
	padding: 0.5rem 0.75rem;
	font-size: 0.75rem;
	letter-spacing: -0.01em;
}
.theme-card-choose-btn svg { width: 14px; height: 14px; }
.theme-card-add-btn:hover { opacity: 0.85; }
.theme-card-add-btn svg { flex-shrink: 0; }
.shop-empty-message { text-align: center; color: var(--color-muted-foreground); padding: 3rem 0; }

.related-products-section { padding: 4rem 0 5rem; }
.related-products-heading { text-align: center; font-weight: 700; font-size: 1.5rem; margin-bottom: 2rem; letter-spacing: -0.02em; }
@media (min-width: 768px) { .related-products-heading { font-size: 1.875rem; } }
.related-products-grid { max-width: 72rem; margin: 0 auto; }

.shop-archive-main { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }
.shop-archive-main .shop-archive-title { text-align: center; margin-bottom: 2rem; }

/* =========================================================================
   Donate
   ========================================================================= */
.donate-section { position: relative; color: hsl(var(--primary-foreground)); overflow: hidden; background: hsl(var(--brand-navy)); }
.donate-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.donate-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom right,
		hsl(var(--brand-navy) / 0.95),
		hsl(var(--brand-blue) / 0.92),
		hsl(var(--brand-navy) / 0.95)
	);
}
.donate-content { position: relative; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .donate-content { padding-top: 7rem; padding-bottom: 7rem; } }
.donate-header { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
@media (min-width: 768px) { .donate-header { margin-bottom: 4rem; } }
.donate-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; max-width: 64rem; margin: 0 auto; }
@media (min-width: 768px) { .donate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.donate-tier-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.15); border-radius: 1.25rem; padding: 1.75rem; display: flex; flex-direction: column; transition: transform 0.3s var(--transition-smooth); }
.donate-tier-card:hover { transform: translateY(-8px) scale(1.015); }
.donate-tier-icon { width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: #fff; color: var(--color-brand-navy); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.donate-tier-amount { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; }
.donate-tier-price-value { font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1; }
.donate-tier-price-value .woocommerce-Price-amount { font: inherit; color: inherit; }
.donate-tier-price-currency { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.donate-tier-label { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: 0.5rem; }
.donate-tier-copy { font-size: 0.875rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 1.5rem; flex: 1; }
.donate-tier-btn { width: 100%; }
.donate-footer-text { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 2.5rem; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-section { background: var(--color-secondary); padding: 5rem 0; }
@media (min-width: 768px) { .faq-section { padding: 7rem 0; } }
.faq-inner { max-width: 48rem; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question-btn { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; text-align: left; padding: 1.25rem 0; }
.faq-question-text { font-weight: 600; font-size: 1rem; }
@media (min-width: 768px) { .faq-question-text { font-size: 1.125rem; } }
.faq-question-btn:hover .faq-question-text { color: var(--color-accent); }
.faq-plus-icon { margin-top: 2px; color: var(--color-accent); flex-shrink: 0; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-question-btn[aria-expanded="true"] .faq-plus-icon { transform: rotate(45deg); }
.faq-answer {
	overflow: hidden;
	transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
	.faq-answer,
	.faq-plus-icon { transition: none; }
}
.faq-answer p { padding-bottom: 1.5rem; padding-right: 2rem; color: var(--color-muted-foreground); line-height: 1.7; font-size: 0.9375rem; }
@media (min-width: 768px) { .faq-answer p { font-size: 1rem; } }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-section { position: relative; color: #fff; overflow: hidden; }
.contact-video { z-index: 0; }
.contact-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-brand-navy) 85%, transparent); background-image: linear-gradient(to bottom, color-mix(in srgb, var(--color-brand-navy) 70%, transparent), color-mix(in srgb, var(--color-brand-navy) 80%, transparent) 50%, color-mix(in srgb, var(--color-brand-navy) 95%, transparent)); }
.contact-inner { position: relative; padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .contact-inner { padding-top: 7rem; padding-bottom: 7rem; } }
.contact-center { max-width: 48rem; margin: 0 auto; text-align: center; }
.contact-heading { margin-bottom: 1.5rem; }
.contact-cta-btn { padding: 1rem 2.5rem; margin: 0 auto 3.5rem; }
.contact-items-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 56rem; margin: 0 auto; }
@media (min-width: 640px) { .contact-items-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .contact-items-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.contact-item-card { min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 1.5rem 1.25rem; border-radius: 1.25rem; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); backdrop-filter: blur(6px); transition: background-color 0.2s ease, border-color 0.2s ease; }
.contact-item-card:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.contact-item-card svg { color: var(--color-brand-sky); }
.contact-item-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.contact-item-lines { min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 2px; }
.contact-item-line { display: block; min-width: 0; width: 100%; color: rgba(255,255,255,0.95); line-height: 1.4; word-break: break-word; overflow-wrap: anywhere; font-size: 0.875rem; }

/* =========================================================================
   Dialogs (event signup + contact)
   ========================================================================= */
.theme-dialog-overlay { position: fixed; inset: 0; background: rgba(21,35,55,0.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.theme-dialog-overlay.is-open { opacity: 1; pointer-events: auto; }
.theme-dialog {
	position: fixed; top: 50%; left: 50%;
	transform: translate(-50%, -46%) scale(0.96);
	width: min(32rem, calc(100vw - 2rem));
	max-height: calc(100vh - 3rem);
	overflow-y: auto;
	background: var(--color-background);
	border-radius: 1.25rem;
	box-shadow: var(--shadow-elevated);
	padding: 1.75rem;
	z-index: 91;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s var(--transition-smooth), transform 0.35s var(--transition-smooth);
}
@media (min-width: 768px) { .theme-dialog { padding: 2rem; } }
.theme-dialog.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.theme-dialog-close { position: absolute; top: 1rem; right: 1rem; padding: 0.375rem; color: var(--color-muted-foreground); }
.theme-dialog-close:hover { color: var(--color-foreground); }
.theme-dialog-title { font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; padding-right: 1.5rem; }
.theme-dialog-desc { color: var(--color-muted-foreground); font-size: 0.9375rem; line-height: 1.6; margin-bottom: 1.5rem; }
.contact-dialog-heading { font-weight: 700; font-size: 1.5rem; margin: 0.5rem 0 0.25rem; }
@media (min-width: 768px) { .contact-dialog-heading { font-size: 1.875rem; } }
.contact-dialog-subtext { color: var(--color-muted-foreground); font-size: 0.875rem; margin-bottom: 1.5rem; }

.form-row-2col { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row-2col { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.form-field input, .form-field textarea {
	width: 100%; padding: 0.75rem 1rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	font-size: 0.9375rem;
	color: var(--color-foreground);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--color-muted-foreground); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 20%, transparent); }
.form-field textarea { resize: none; }

.success-check-badge { width: 4rem; height: 4rem; background: var(--color-accent); border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; color: #fff; }
.contact-dialog-success-view { text-align: center; padding: 2rem 0; }
.contact-dialog-success-view h4 { font-weight: 700; font-size: 1.5rem; margin-bottom: 0.75rem; }
.contact-dialog-success-view p { color: var(--color-muted-foreground); font-size: 0.875rem; max-width: 20rem; margin: 0 auto 1.5rem; line-height: 1.6; }

body.theme-dialog-open { overflow: hidden; }

/* =========================================================================
   Side cart drawer
   ========================================================================= */
#theme-cart-overlay { position: fixed; inset: 0; background: rgba(21,35,55,0.3); z-index: 95; opacity: 0; pointer-events: none; transition: opacity 0.3s 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: 28rem;
	background: var(--color-background);
	z-index: 96;
	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; }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.cart-drawer-title { font-weight: 700; font-size: 1.25rem; }
.cart-drawer-close { padding: 0.25rem; color: var(--color-foreground); }
.cart-drawer-close:hover { opacity: 0.6; }
.cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.cart-drawer-empty svg { color: var(--color-muted-foreground); }
.cart-drawer-empty p { color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.cart-drawer-empty .btn-outline { width: 100%; }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.cart-drawer-item { display: flex; gap: 1rem; }
.cart-item-thumb { width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; border-radius: 0.5rem; flex-shrink: 0; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { display: block; font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 2px; }
.cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-qty-btn { padding: 0.25rem; border-radius: 0.25rem; transition: background-color 0.2s ease; }
.cart-qty-btn:hover { background: var(--color-secondary); }
.cart-qty-value { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.cart-item-remove { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-item-remove:hover { color: var(--color-accent); }
.cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.cart-drawer-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.cart-drawer-subtotal-row > span:first-child { color: var(--color-muted-foreground); }
.cart-drawer-subtotal-value { font-weight: 600; }
.cart-drawer-note { font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-drawer-checkout-btn { width: 100%; }
.cart-drawer-clear { display: block; width: 100%; text-align: center; font-size: 0.75rem; color: var(--color-muted-foreground); }
.cart-drawer-clear:hover { color: var(--color-foreground); }

/* =========================================================================
   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;
}
.theme-product-card .add_to_cart_button.ajax_add_to_cart {
	min-height: unset !important;
	padding: 0.5rem 1rem !important;
	border-radius: 999px !important;
}
.single-product .single_add_to_cart_button.button,
.single-product a.single_add_to_cart_button { background-color: var(--color-accent) !important; }

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }

/* Section 11.4.2 — hide "View cart" injected after AJAX add */
.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; }

/* Section 14.1 — scoped notice visibility */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	max-width: 80rem; margin: 1rem auto; padding: 1rem 1.5rem; border-radius: 0.75rem;
	background: var(--color-secondary); color: var(--color-foreground);
	border-left: 4px solid var(--color-accent);
	font-size: 0.9375rem; list-style: none;
}
.woocommerce-error { border-left-color: #da2f2f; }

/* =========================================================================
   Single product page (Section 11.13)
   ========================================================================= */
.single-product-main { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 5rem; }
.single-product-wrap { max-width: 72rem; }
.back-to-shop-link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--color-muted-foreground); margin-bottom: 2rem; }
.back-to-shop-link:hover { color: var(--color-foreground); }
.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; min-width: 0; }
@media (min-width: 768px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-main-image-wrap { position: relative; aspect-ratio: 1/1; border-radius: 1.25rem; overflow: hidden; background: var(--color-secondary); border: 1px solid var(--color-border); }
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; max-width: 100%; }
.theme-product-thumb { position: relative; width: 4.5rem; height: 4.5rem; border-radius: 0.5rem; overflow: hidden; border: 2px solid transparent; opacity: 0.7; transition: opacity 0.2s ease, border-color 0.2s ease; flex-shrink: 0; }
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--color-accent); }
.posted_in.product-categories { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); margin-bottom: 0.5rem; overflow-wrap: break-word; word-break: break-word; }
.posted_in.product-categories a { color: inherit; }
.product-title { font-family: var(--font-body); font-weight: 700; font-size: 1.875rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
.product-price { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1rem; }
.product-price .woocommerce-Price-amount { font-weight: 700; }
.stock-status.out-of-stock { display: inline-block; background: color-mix(in srgb, #da2f2f 10%, transparent); color: #da2f2f; font-size: 0.8125rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.woocommerce-product-details__description { color: var(--color-muted-foreground); line-height: 1.7; margin: 1.25rem 0; overflow-wrap: break-word; word-break: break-word; }
.woocommerce-product-details__description p { margin-bottom: 0.75rem; }
.product-detail-lines { list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: 0.875rem; line-height: 1.5; }
.product-detail-lines li { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 0.375rem; }
.product-detail-lines li:first-child { margin-top: 0; }
.product-detail-lines svg { flex-shrink: 0; width: 1rem; height: 1rem; margin-top: 0.125rem; color: var(--color-accent); }

.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: 999px; overflow: hidden; }
.theme-qty-minus, .theme-qty-plus { padding: 0.625rem 0.875rem; font-size: 1rem; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input { width: 3rem; text-align: center; border: none; background: transparent; -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: stretch; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }

.product-details-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.product-details-heading { font-family: var(--font-body); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.75rem; }
.woocommerce-product-details__short-description { color: var(--color-muted-foreground); line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }

.variations label { font-family: var(--font-body); font-weight: 600; font-style: normal; }
.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; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.theme-attr-pill { padding: 0.5rem 1rem; font-size: 0.8125rem; border-radius: 999px; border: 1px solid var(--color-border); transition: all 0.2s ease; }
.theme-attr-pill:hover { border-color: var(--color-foreground); }
.theme-attr-pill.is-active { border-color: var(--color-foreground); background: var(--color-foreground); color: var(--color-background); }
.single_variation_wrap { margin-top: 0.5rem; }

/* =========================================================================
   Thankyou page (Section 22.8)
   ========================================================================= */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-order-overview,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details { margin-top: 1.5rem; }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 1.25rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; }
body.theme-thankyou-page .woocommerce-order-overview li strong { display: block; font-weight: 700; margin-top: 2px; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-weight: 700; font-size: 1.5rem; padding: 1.5rem 0 1rem; }
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 var(--color-border); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 30rem; overflow-wrap: break-word; border: 1px solid var(--color-border); border-radius: 0.75rem; padding: 1rem; font-style: normal; line-height: 1.6; }
@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; max-width: none; }
}

/* =========================================================================
   Checkout Block override (Section 13)
   ========================================================================= */
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title { font-weight: 700; font-size: 1.875rem; margin-bottom: 1.5rem; }

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 { display: block; }
	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-components-notice-banner { grid-column: 1 / -1; border-radius: 0.75rem; margin-bottom: 1rem; }

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 {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-foreground);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background-color: var(--color-background);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { border-color: var(--color-accent); }
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-accent) !important;
	color: #fff !important;
	border-radius: var(--btn-radius) !important;
	font-weight: 600;
	text-transform: none;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { opacity: 0.9; }

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-surface);
	border-radius: var(--card-radius);
	padding: 2rem;
}
body.woocommerce-checkout .wc-block-cart-items { width: 100%; }

/* Cart / My Account width & alignment parity (Section 13.7) */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }

/* =========================================================================
   Generic page + 404
   ========================================================================= */
.site-main { padding-top: calc(var(--header-height) + 2rem); padding-bottom: 4rem; }
body.theme-no-hero .site-main { padding-top: calc(var(--header-height) + 2rem); }
.page-content-wrap .page-title { font-weight: 700; font-size: 2rem; margin-bottom: 1.5rem; }
.entry-content { color: var(--color-foreground); line-height: 1.7; }
.entry-content p { margin-bottom: 1rem; }

.not-found-main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 6rem 1.5rem 2rem; }
.not-found-content { text-align: center; max-width: 28rem; }
.not-found-content h1 { font-weight: 700; font-size: 2.5rem; margin-bottom: 1rem; }
.not-found-content p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-background); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2.5rem; } }
.footer-brand-link { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.footer-logo-img { height: 2.5rem; width: 2.5rem; object-fit: contain; }
.site-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.footer-about-text { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 22rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social-link { width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.footer-social-link:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.footer-col-heading { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: color-mix(in srgb, var(--color-foreground) 70%, transparent); margin-bottom: 1rem; }
.theme-footer-nav-list { display: flex; flex-direction: column; gap: 0.625rem; }
.theme-footer-nav-list a { font-size: 0.875rem; color: var(--color-muted-foreground); }
.theme-footer-nav-list a:hover { color: var(--color-foreground); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-contact-list li svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { word-break: break-all; }
.footer-contact-list a:hover { color: var(--color-foreground); }
.btn-footer-donate { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.25rem; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500; background: var(--color-accent); color: #fff; }
.btn-footer-donate:hover { opacity: 0.9; }
.footer-bottom { border-top: 1px solid var(--color-border); padding: 1.5rem 0; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; justify-content: space-between; text-align: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; text-align: left; } }
.footer-copyright, .footer-founder-credit { font-size: 0.75rem; color: var(--color-muted-foreground); }
