/* =====================================================================
   Paper Prayers — theme.css
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. CSS VARIABLES (Section 6 / 6.1 — colors are the single source of truth,
      derived from the source design's HSL tokens via theme_hsl_to_hex(), synced with
      inc/customizer.php's inline output).
--------------------------------------------------------------------- */
:root {
	--color-background: #faf8f4;
	--color-foreground: #312537;
	--color-card: #fcfbf8;
	--color-primary: #ba89d2;
	--color-primary-foreground: #fcfbf8;
	--color-secondary: #efe1f4;
	--color-muted-foreground: #776581;
	--color-accent: #f19da4;
	--color-accent-foreground: #372640;
	--color-blush: #f4cdda;
	--color-border: #e0d2e4;
	--color-destructive: #d14747;

	/* Derived (computed, never exposed as controls — Section 6) */
	--color-secondary-foreground: #453050;
	--color-muted: #ede6f0;
	--color-card-foreground: var(--color-foreground);

	--font-display: 'Fraunces', serif;
	--font-body: 'Inter', sans-serif;
	--font-script: 'Caveat', cursive;

	--radius: 0.5rem;
	--card-radius: 0.75rem;
	--shadow-soft: 0 4px 24px -8px rgba(80, 40, 100, 0.14);
	--shadow-elevated: 0 20px 50px -12px rgba(140, 90, 170, 0.25);
	--transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	--header-height: 80px;
	--logo-height: 44px;

	--btn-radius: 0.375rem;
	--btn-height: 2.75rem;
	--btn-padding: 0 2rem;
	--btn-font-size: 0.875rem;
	--btn-font-weight: 600;
	--btn-letter-spacing: 0.02em;
	--btn-text-transform: none;
	--color-button-text: var(--color-primary-foreground);
	--btn-icon-padding: 0.75rem;

	--checkout-gap: 2rem;
}

/* ---------------------------------------------------------------------
   2. RESET / BASE
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
	margin: 0;
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
img:not(.cover-img) { height: auto; }
.cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: inherit;
	font-size: inherit;
	letter-spacing: -0.015em;
	margin: 0;
	line-height: 1.15;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* Clickable cursor (hand) on every interactive control */
a[href], button:not(:disabled), [role="button"], .btn, .theme-nav-link,
.gallery-item, .donate-tier, .contact-card, .social-btn, .contact-social-btn,
.cart-toggle, .mobile-menu-toggle, .form-checkbox-label, label[for],
input[type="checkbox"], input[type="radio"], .theme-cart-qty-btn, .theme-cart-remove-btn,
.prayer-modal-close, summary, .theme-product-card a {
	cursor: pointer;
}
button:disabled, .btn:disabled { cursor: not-allowed; }

button, [role="button"], a.btn, .btn {
	transition: transform 0.2s var(--transition-smooth), background-color 0.3s var(--transition-smooth),
		color 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth);
}
button:active:not(:disabled), [role="button"]:active { transform: scale(0.97); }
:where(button, a, input, textarea, select):focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(186, 137, 210, 0.35);
	border-radius: 6px;
}

/* ---------------------------------------------------------------------
   3. LAYOUT UTILITIES
--------------------------------------------------------------------- */
.container-wide { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 1024px) { .container-wide { padding-inline: 2rem; } }
.section-py { padding-block: 5rem; }
.section-py-lg { padding-block: 6rem; }
@media (min-width: 768px) { .section-py { padding-block: 7rem; } .section-py-lg { padding-block: 8rem; } }
.scroll-mt { scroll-margin-top: 6rem; }

.script-text { font-family: var(--font-script); }

/* ---------------------------------------------------------------------
   4. TYPOGRAPHY SYSTEM (Section 2.2)
--------------------------------------------------------------------- */
.eyebrow-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.eyebrow-row-center { justify-content: center; }
.eyebrow-inline { display: inline-flex; }
.eyebrow-line { height: 1px; width: 2.5rem; background: var(--color-primary); display: block; }
.eyebrow-line-blush { background: rgba(244, 205, 218, 0.7); }
.eyebrow-text {
	font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--color-primary);
	font-weight: 600; font-family: var(--font-body);
}
.eyebrow-text-blush { color: var(--color-blush); }
.eyebrow-block { display: block; text-align: center; margin-bottom: 0.75rem; }

.heading-highlight { font-style: italic; color: var(--color-primary); }
.heading-highlight-accent { color: var(--color-accent); }
.heading-highlight-blush { color: var(--color-blush); }

.section-intro { text-align: center; max-width: 42rem; margin-inline: auto; margin-bottom: 3.5rem; }
.section-subtext { color: rgba(49, 37, 55, 0.7); font-size: 1rem; line-height: 1.7; }

/* Per-section heading scales (Section 2.2 #5) */
.about-heading, .services-heading, .gallery-heading, .testimonials-heading,
.donate-heading, .shop-heading, .contact-heading, .signup-heading {
	font-size: 2.25rem; line-height: 1.05; margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .about-heading, .services-heading, .gallery-heading, .testimonials-heading,
	.donate-heading, .shop-heading, .contact-heading, .signup-heading { font-size: 3rem; } }
@media (min-width: 1024px) { .about-heading, .services-heading, .gallery-heading, .testimonials-heading,
	.donate-heading, .shop-heading, .contact-heading, .signup-heading { font-size: 3.75rem; } }

/* ---------------------------------------------------------------------
   5. SCROLL REVEAL (Section 2.1)
--------------------------------------------------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s var(--transition-smooth), transform 0.9s var(--transition-smooth), filter 0.9s var(--transition-smooth);
	will-change: opacity, transform;
}
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

body.is-customizer [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }

@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------------
   6. BUTTONS
--------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	border-radius: var(--btn-radius); font-weight: var(--btn-font-weight); font-size: 0.875rem;
	padding: 0.65rem 1.75rem; cursor: pointer; white-space: nowrap;
}
.btn-lg { min-height: var(--btn-height); padding: var(--btn-padding); font-size: var(--btn-font-size); letter-spacing: var(--btn-letter-spacing); }
.btn-full { width: 100%; }
.btn-primary { background: var(--color-primary); color: var(--color-primary-foreground); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-primary) 90%, black); }
.btn-outline { background: transparent; border: 1px solid var(--color-foreground); color: var(--color-foreground); }
.btn-outline:hover { background: var(--color-accent); color: var(--color-accent-foreground); }
.hero-section .btn-outline, .about-section .btn-outline { border-color: currentColor; }
.hero-section .btn-outline { color: var(--color-background); border-color: var(--color-background); }
.hero-section .btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--color-background); }
.btn-blush { background: var(--color-blush); color: var(--color-foreground); }
.btn-blush:hover { background: color-mix(in srgb, var(--color-blush) 90%, black); }
.btn:hover { opacity: 0.92; }
.icon-arrow-right, .icon-hand-heart { width: 1rem; height: 1rem; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   7. HEADER
--------------------------------------------------------------------- */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	transition: background-color 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth), top 0.2s ease;
	background: transparent; border-bottom: 1px solid transparent;
}
.site-header.is-solid {
	background: rgba(250, 248, 244, 0.9); backdrop-filter: blur(6px); border-bottom-color: var(--color-border);
}

/* WordPress admin bar — keep fixed header / progress below it */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .scroll-progress-bar { top: 32px; }
body.admin-bar .donate-editorial { top: calc(7rem + 32px); }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar .scroll-progress-bar { top: 46px; }
	body.admin-bar .donate-editorial { top: calc(7rem + 46px); }
}
@media screen and (max-width: 600px) {
	body.admin-bar .site-header { top: 0; }
	body.admin-bar.mobile-menu-open .site-header { top: 0; }
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 1024px) { .site-nav { height: 5rem; } }
.site-brand { display: flex; align-items: center; gap: 0.75rem; }
.site-logo-img { height: var(--logo-height) !important; width: auto !important; object-fit: contain; }
.site-logo-text { font-family: var(--font-display); font-size: 1.125rem; }
.site-brand-name {
	display: none; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.02em;
	color: var(--color-background); transition: color 0.3s var(--transition-smooth);
}
.site-header.is-solid .site-brand-name { color: var(--color-foreground); }
@media (min-width: 640px) { .site-brand-name { display: block; } }

.site-nav-links { display: none; }
@media (min-width: 1024px) { .site-nav-links { display: flex; align-items: center; gap: 1.5rem; } }
.theme-nav-list, .theme-nav-list-mobile { display: flex; margin: 0; padding: 0; list-style: none; }
.theme-nav-list { gap: 1.5rem; align-items: center; flex-direction: row; }
.theme-nav-list-mobile {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	width: 100%;
}
.theme-nav-list-mobile > li { width: 100%; }
.theme-nav-list-mobile .theme-nav-link {
	display: block;
	width: 100%;
	padding-block: 0.65rem;
	font-size: 0.9375rem;
}
/* Safety: any nav list inside the hamburger panel stacks vertically */
.mobile-menu .theme-nav-list,
.mobile-menu ul {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	width: 100%;
}
.mobile-menu .theme-nav-list > li,
.mobile-menu ul > li { width: 100%; }
.mobile-menu .theme-nav-link {
	display: block;
	width: 100%;
	padding-block: 0.65rem;
}
.theme-nav-link {
	font-size: 0.875rem; color: rgba(250, 248, 244, 0.9); position: relative; padding-block: 0.25rem;
	transition: color 0.3s var(--transition-smooth);
}
.site-header.is-solid .theme-nav-link { color: rgba(49, 37, 55, 0.75); }
.theme-nav-link::after {
	content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--color-primary);
	transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--transition-smooth);
}
.theme-nav-link:hover::after { transform: scaleX(1); }
.theme-nav-link:hover { color: var(--color-background); }
.site-header.is-solid .theme-nav-link:hover { color: var(--color-foreground); }

.site-nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-toggle, .mobile-menu-toggle {
	position: relative; padding: 0.5rem; color: var(--color-background); transition: color 0.3s var(--transition-smooth);
}
.site-header.is-solid .cart-toggle, .site-header.is-solid .mobile-menu-toggle { color: var(--color-foreground); }
.cart-toggle:hover, .mobile-menu-toggle:hover { color: var(--color-blush); }
.site-header.is-solid .cart-toggle:hover, .site-header.is-solid .mobile-menu-toggle:hover { color: var(--color-primary); }
.icon-bag, .icon-menu-open, .icon-menu-close, .icon-inline { width: 1.25rem; height: 1.25rem; }
.mobile-menu-toggle .icon-menu-close { display: none; }
.mobile-menu-open .mobile-menu-toggle .icon-menu-open { display: none; }
.mobile-menu-open .mobile-menu-toggle .icon-menu-close { display: block; }
.mobile-menu-toggle { display: block; }
@media (min-width: 1024px) { .mobile-menu-toggle { display: none; } }

.theme-cart-count {
	position: absolute; top: -2px; right: -2px; min-width: 1.125rem; height: 1.125rem; padding: 0 0.2rem;
	display: flex; align-items: center; justify-content: center; font-size: 0.625rem; font-weight: 700;
	background: var(--color-primary); color: var(--color-primary-foreground); border-radius: 999px;
}
.theme-cart-count:empty { display: none; }

.mobile-menu { display: none; border-top: 1px solid var(--color-border); padding-block: 1rem; }
.mobile-menu.is-open { display: block; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ---------------------------------------------------------------------
   8. HERO
--------------------------------------------------------------------- */
.hero-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 60%, transparent); }
.hero-content { text-align: center; padding-block: 5rem; position: relative; z-index: 10; }
.hero-kicker-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; }
.hero-kicker-line { height: 1px; width: 2.5rem; background: var(--color-background); display: block; }
.hero-kicker-text { font-size: 0.75rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--color-background); font-weight: 600; }
.hero-heading { font-size: 3rem; line-height: 1.05; color: var(--color-background); padding-block: 0.5rem; }
.hero-heading-italic { font-style: italic; }
.hero-heading-highlight { color: var(--color-blush); }
@media (min-width: 768px) { .hero-heading { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-heading { font-size: 6rem; } }
.hero-subtext { color: rgba(250, 248, 244, 0.85); max-width: 36rem; margin: 2rem auto 2.5rem; font-size: 1rem; line-height: 1.7; }
@media (min-width: 768px) { .hero-subtext { font-size: 1.125rem; } }
.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; padding-inline: 1rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
.hero-script {
	margin-top: 3rem; font-family: var(--font-script); font-size: 1.5rem; line-height: 1.2;
	color: var(--color-blush);
}
@media (min-width: 768px) { .hero-script { font-size: 1.875rem; } }

/* ---------------------------------------------------------------------
   9. ABOUT
--------------------------------------------------------------------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.about-image-frame { position: relative; }
.about-image-accent { position: absolute; inset: -0.75rem; background: color-mix(in srgb, var(--color-primary) 10%, transparent); border-radius: var(--card-radius); }
.about-image-wrap { position: relative; border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 6/7; }
.about-paragraph { color: rgba(49, 37, 55, 0.8); line-height: 1.7; margin-bottom: 1.25rem; max-width: 40rem; }
.about-quote { border-left: 2px solid var(--color-primary); padding: 0.5rem 0 0.5rem 1.25rem; margin-bottom: 2rem; background: color-mix(in srgb, var(--color-secondary) 50%, transparent); border-radius: 0 6px 6px 0; }
.about-quote-text { font-family: var(--font-script); font-size: 1.5rem; color: var(--color-primary); line-height: 1.3; }
@media (min-width: 768px) { .about-quote-text { font-size: 1.875rem; } }
.about-quote-citation { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--color-muted-foreground); margin-top: 0.5rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------------------------------------------------------------------
   10. SERVICES
--------------------------------------------------------------------- */
.services-section { background: linear-gradient(180deg, var(--color-card) 0%, var(--color-secondary) 100%); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.service-card {
	position: relative; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--card-radius);
	padding: 2rem; min-height: 280px; isolation: isolate; transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-elevated); }
.service-card-bg { z-index: -2; }
.service-card-gradient {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(135deg, color-mix(in srgb, var(--color-foreground) 82%, transparent) 0%, color-mix(in srgb, var(--color-primary) 75%, transparent) 55%, color-mix(in srgb, var(--color-foreground) 80%, transparent) 100%);
}
.service-card-icon {
	width: 3rem; height: 3rem; border-radius: 999px; background: color-mix(in srgb, var(--color-background) 85%, transparent);
	backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; box-shadow: var(--shadow-soft);
}
.service-card-icon svg { width: 1.25rem; height: 1.25rem; color: var(--color-primary); }
.service-card-title { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--color-background); }
@media (min-width: 768px) { .service-card-title { font-size: 1.5rem; } }
.service-card-description { font-size: 0.875rem; color: rgba(250, 248, 244, 0.9); line-height: 1.6; }

/* ---------------------------------------------------------------------
   11. SIGNUP
--------------------------------------------------------------------- */
.signup-section { position: relative; overflow: hidden; }
.signup-media { position: absolute; inset: 0; }
.signup-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 80%, transparent); }
.signup-content { position: relative; z-index: 10; }
.signup-intro { max-width: 48rem; margin: 0 auto 2.5rem; text-align: center; }
.signup-heading { color: var(--color-background); }
.signup-subtext { color: rgba(250,248,244,0.75); max-width: 36rem; margin-inline: auto; }
.signup-form-wrap { max-width: 36rem; margin-inline: auto; }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-field { margin-bottom: 0.75rem; }
.form-label { display: block; font-size: 0.625rem; letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 0.5rem; padding-left: 0.25rem; color: rgba(250,248,244,0.6); }
.form-label-muted { color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.625rem; font-weight: 600; }
.form-label-optional { text-transform: none; letter-spacing: normal; color: rgba(119,101,129,0.7); }
.form-input {
	width: 100%; padding: 1rem 1.25rem; border-radius: 6px; font-size: 0.875rem; background: var(--color-background);
	border: 1px solid var(--color-border); color: var(--color-foreground); transition: border-color 0.3s var(--transition-smooth);
}
.form-input::placeholder { color: rgba(119,101,129,0.5); }
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent); }
.form-input-dark { background: rgba(49,37,55,0.4); backdrop-filter: blur(4px); border-color: rgba(250,248,244,0.2); color: var(--color-background); }
.form-input-dark::placeholder { color: rgba(250,248,244,0.4); }
.form-input-dark:focus { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent); }
.form-textarea { resize: none; }
.signup-submit-btn {
	width: 100%; padding: 1rem; border-radius: 6px; background: var(--color-accent); color: var(--color-foreground);
	letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; font-size: 0.75rem; box-shadow: var(--shadow-soft); margin-top: 0.5rem;
}
.signup-submit-btn:hover { background: color-mix(in srgb, var(--color-accent) 90%, black); }
.signup-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.signup-footnote { font-size: 0.6875rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(250,248,244,0.55); text-align: center; padding-top: 0.75rem; }
.signup-success { text-align: center; padding-block: 1.5rem; }
.signup-success-icon { width: 3.5rem; height: 3.5rem; border-radius: 999px; background: color-mix(in srgb, var(--color-accent) 20%, transparent); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--color-accent); }
.signup-success-heading { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--color-background); }
.signup-success-text { color: rgba(250,248,244,0.7); }

/* ---------------------------------------------------------------------
   12. GALLERY
--------------------------------------------------------------------- */
.gallery-section { background: color-mix(in srgb, var(--color-secondary) 40%, transparent); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) {
	.gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 1rem; aspect-ratio: 3/2; grid-auto-flow: dense; }
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--card-radius); aspect-ratio: 1/1; cursor: pointer; }
@media (min-width: 768px) { .gallery-item { aspect-ratio: auto; } }
.gallery-item.span-a { grid-column: span 2; }
.gallery-item.span-b { grid-column: span 2; }
@media (min-width: 768px) {
	.gallery-grid > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
	.gallery-grid > :nth-child(2) { grid-column: span 2; grid-row: span 1; }
	.gallery-grid > :nth-child(3) { grid-column: span 2; grid-row: span 2; }
	.gallery-grid > :nth-child(4) { grid-column: span 2; grid-row: span 1; }
	.gallery-grid > :nth-child(5) { grid-column: span 2; grid-row: span 1; }
	.gallery-grid > :nth-child(6) { grid-column: span 2; grid-row: span 2; }
	.gallery-grid > :nth-child(7) { grid-column: span 2; grid-row: span 1; }
	.gallery-grid > :nth-child(8) { grid-column: span 2; grid-row: span 1; }
	.gallery-grid > :nth-child(9) { grid-column: span 2; grid-row: span 1; }
}
.gallery-image { transition: transform 0.7s var(--transition-smooth); }
.gallery-item:hover .gallery-image { transform: scale(1.05); }

/* ---------------------------------------------------------------------
   13. TESTIMONIALS (CSS marquee) — layout mirrors Lovable container py-20/28
--------------------------------------------------------------------- */
.testimonials-section { background: var(--color-background); }
.testimonials-marquee-outer {
	position: relative;
	margin-inline: calc(-1 * 1.5rem);
}
@media (min-width: 640px) {
	.testimonials-marquee-outer { margin-inline: calc(-1 * 1.5rem); }
}
@media (min-width: 1024px) {
	.testimonials-marquee-outer { margin-inline: calc(-1 * 2rem); }
}
.testimonials-fade { position: absolute; inset-block: 0; width: 4rem; z-index: 10; pointer-events: none; }
@media (min-width: 640px) { .testimonials-fade { width: 6rem; } }
.testimonials-fade-left { left: 0; background: linear-gradient(to right, var(--color-background), transparent); }
.testimonials-fade-right { right: 0; background: linear-gradient(to left, var(--color-background), transparent); }
.testimonials-marquee-viewport { overflow: hidden; }
.testimonials-marquee-track {
	display: flex; gap: 1.5rem; width: max-content; padding-block: 1.5rem;
	animation: marquee-scroll 60s linear infinite;
}
@media (min-width: 1024px) { .testimonials-marquee-track { gap: 2rem; } }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .testimonials-marquee-track { animation: none; } }
.testimonial-card {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0;
	width: 320px; height: 340px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--card-radius);
	padding: 2rem; box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .testimonial-card { width: 380px; } }
.testimonial-quote-icon { position: absolute; top: 1.5rem; right: 1.5rem; width: 2.25rem; height: 2.25rem; color: color-mix(in srgb, var(--color-primary) 15%, transparent); }
.testimonial-quote { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.6; color: rgba(49,37,55,0.85); font-style: italic; padding-right: 2rem;
	display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.testimonial-footer { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent); }
.testimonial-author { font-family: var(--font-display); font-size: 1.125rem; color: var(--color-primary); line-height: 1; }
.testimonial-location { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--color-muted-foreground); margin-top: 0.5rem; }
.testimonials-cta { text-align: center; margin-top: 3.5rem; }
.testimonials-cta-text { color: rgba(49,37,55,0.7); margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------------
   14. DONATE
--------------------------------------------------------------------- */
.donate-section { position: relative; overflow: hidden; background: color-mix(in srgb, var(--color-secondary) 40%, transparent); }
.donate-glow { position: absolute; border-radius: 999px; filter: blur(64px); pointer-events: none; }
.donate-glow-a { top: -8rem; left: -6rem; width: 28rem; height: 28rem; background: color-mix(in srgb, var(--color-primary) 20%, transparent); }
.donate-glow-b { bottom: 0; right: -6rem; width: 26rem; height: 26rem; background: color-mix(in srgb, var(--color-blush) 30%, transparent); }
.donate-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .donate-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.donate-editorial { position: sticky; top: 7rem; }
.donate-paragraph { color: rgba(49,37,55,0.7); line-height: 1.7; margin-bottom: 2rem; }
.donate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-block: 1.5rem; border-block: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent); }
.donate-stat-value { font-size: 1.875rem; color: var(--color-primary); }
@media (min-width: 768px) { .donate-stat-value { font-size: 2.25rem; } }
.donate-stat-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(49,37,55,0.6); margin-top: 0.25rem; }
.donate-script { margin-top: 2rem; font-family: var(--font-script); font-size: 1.5rem; color: var(--color-primary); }
@media (min-width: 768px) { .donate-script { font-size: 1.875rem; } }
.donate-script-muted { font-family: var(--font-script); color: color-mix(in srgb, var(--color-primary) 80%, transparent); margin-top: -0.25rem; }
.donate-tiers { display: flex; flex-direction: column; gap: 1.25rem; }
.donate-tier { position: relative; display: block; border-radius: var(--card-radius); overflow: hidden; transition: all 0.5s var(--transition-smooth);
	background: color-mix(in srgb, var(--color-card) 80%, transparent); border: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent); }
.donate-tier:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); box-shadow: var(--shadow-elevated); }
.donate-tier-highlighted { background: linear-gradient(135deg, var(--color-primary), var(--color-primary) 60%, color-mix(in srgb, var(--color-primary) 90%, transparent)); color: var(--color-primary-foreground); box-shadow: var(--shadow-elevated); border: none; }
.donate-tier-badge { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10; width: 4rem; height: 4rem; border-radius: 999px; background: var(--color-blush);
	color: var(--color-primary); font-family: var(--font-display); font-style: italic; font-size: 0.6875rem; line-height: 1.2; display: flex; align-items: center; justify-content: center;
	text-align: center; box-shadow: var(--shadow-soft); transform: rotate(8deg); letter-spacing: 0.02em; }
.donate-tier-corner { position: absolute; width: 1.5rem; height: 1.5rem; border-color: rgba(252,251,248,0.3); pointer-events: none; }
.donate-tier-corner-tl { top: 1rem; left: 1rem; border-top: 1px solid; border-left: 1px solid; border-top-left-radius: 8px; }
.donate-tier-corner-br { bottom: 1rem; right: 1rem; border-bottom: 1px solid; border-right: 1px solid; border-bottom-right-radius: 8px; }
.donate-tier-inner { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .donate-tier-inner { padding: 2rem 2.5rem; flex-direction: row; align-items: center; gap: 2rem; } }
.donate-tier-amount-block { flex-shrink: 0; }
@media (min-width: 768px) { .donate-tier-amount-block { width: 10rem; border-right: 1px solid color-mix(in srgb, var(--color-primary) 15%, transparent); padding-right: 2rem; } }
.donate-tier-highlighted .donate-tier-amount-block { border-color: rgba(252,251,248,0.25); }
.donate-tier-impact-label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.28em; font-weight: 600; margin-bottom: 0.5rem; color: color-mix(in srgb, var(--color-primary) 70%, transparent); }
.donate-tier-highlighted .donate-tier-impact-label { color: rgba(252,251,248,0.7); }
.donate-tier-amount { font-size: 3rem; line-height: 1; color: var(--color-primary); }
@media (min-width: 768px) { .donate-tier-amount { font-size: 3.75rem; } }
.donate-tier-highlighted .donate-tier-amount { color: var(--color-primary-foreground); }
.donate-tier-cadence { font-size: 1rem; font-weight: 400; color: rgba(49,37,55,0.5); }
.donate-tier-highlighted .donate-tier-cadence { color: rgba(252,251,248,0.7); }
.donate-tier-content { flex: 1; min-width: 0; }
.donate-tier-name { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--color-foreground); }
@media (min-width: 768px) { .donate-tier-name { font-size: 1.875rem; } }
.donate-tier-highlighted .donate-tier-name { color: var(--color-primary-foreground); }
.donate-tier-description { font-size: 0.875rem; line-height: 1.6; color: rgba(49,37,55,0.65); }
@media (min-width: 768px) { .donate-tier-description { font-size: 1rem; } }
.donate-tier-highlighted .donate-tier-description { color: rgba(252,251,248,0.85); }
.donate-tier-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--color-primary); transition: transform 0.3s var(--transition-smooth); }
.donate-tier:hover .donate-tier-cta { transform: translateX(4px); }
.donate-tier-highlighted .donate-tier-cta { color: var(--color-primary-foreground); }
.donate-footnote { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: rgba(49,37,55,0.55); font-style: italic; padding-top: 0.75rem; padding-left: 0.25rem; }
.icon-external { width: 0.875rem; height: 0.875rem; }

/* ---------------------------------------------------------------------
   15. SHOP / PRODUCT CARDS (Section 19, 31.3, 31.9, 31.13)
--------------------------------------------------------------------- */
.shop-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 768px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.theme-product-card-wrap { display: flex; flex-direction: column; height: 100%; }
.theme-product-card { display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper { position: relative; aspect-ratio: 1/1; background: var(--color-secondary); border-radius: var(--card-radius); overflow: hidden; margin-bottom: 1rem; }
.theme-product-card__image { transition: transform 0.7s var(--transition-smooth); }
.theme-product-card:hover .theme-product-card__image { transform: scale(1.05); }
.theme-product-card__image.is-soldout { opacity: 0.6; }
.product-badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.375rem 0.75rem; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; border-radius: 3px; z-index: 2; }
.product-badge-coming { background: var(--color-primary); color: var(--color-primary-foreground); }
.product-badge-soldout { background: var(--color-foreground); color: var(--color-background); }
.theme-product-card__info { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.theme-product-card__title { font-size: 1rem; font-weight: 500; transition: color 0.3s var(--transition-smooth); }
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }
.theme-product-card__price { font-size: 0.875rem; color: var(--color-muted-foreground); font-weight: 600; }
.theme-product-card__price .amount { font-weight: 600; }
.theme-product-card__coming-soon-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-primary); font-weight: 600; }
.shop-empty { text-align: center; color: var(--color-muted-foreground); grid-column: 1 / -1; }

/* ---------------------------------------------------------------------
   16. CONTACT + PRAYER MODAL
--------------------------------------------------------------------- */
.contact-section { position: relative; overflow: hidden; }
.contact-video { position: absolute; inset: 0; }
.contact-overlay {
	position: absolute; inset: 0;
	background: color-mix(in srgb, var(--color-foreground) 70%, transparent);
}
.contact-overlay-gradient {
	position: absolute; inset: 0;
	background: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--color-foreground) 40%, transparent) 0%,
		color-mix(in srgb, var(--color-foreground) 60%, transparent) 50%,
		color-mix(in srgb, var(--color-foreground) 80%, transparent) 100%
	);
}
.contact-content { position: relative; z-index: 10; }
.contact-inner { max-width: 48rem; margin-inline: auto; text-align: center; }
.contact-heading { color: var(--color-background); }
.contact-subtext {
	color: rgba(250,248,244,0.8); max-width: 36rem; margin: 0.75rem auto 3rem;
	font-size: 1rem; line-height: 1.7;
}
@media (min-width: 768px) { .contact-subtext { font-size: 1.125rem; } }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 42rem; margin: 0 auto 2.5rem; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
.contact-card {
	display: flex; align-items: center; gap: 1rem;
	background: color-mix(in srgb, var(--color-background) 10%, transparent);
	backdrop-filter: blur(8px);
	border: 1px solid color-mix(in srgb, var(--color-background) 20%, transparent);
	border-radius: var(--card-radius); padding: 1.25rem; text-align: left;
	transition: border-color 0.3s var(--transition-smooth), background-color 0.3s var(--transition-smooth);
}
.contact-card:hover {
	border-color: var(--color-blush);
	background: color-mix(in srgb, var(--color-background) 15%, transparent);
}
.contact-card-icon {
	width: 2.75rem; height: 2.75rem; border-radius: 999px;
	background: color-mix(in srgb, var(--color-background) 15%, transparent);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--color-blush);
}
.contact-card-icon svg { width: 1.25rem; height: 1.25rem; }
.contact-card-text { min-width: 0; }
.contact-card-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(250,248,244,0.6); font-weight: 600; }
.contact-card-value { display: block; font-size: 0.875rem; color: var(--color-background); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.3s var(--transition-smooth); }
.contact-card:hover .contact-card-value { color: var(--color-blush); }
.contact-prayer-btn-row { display: flex; justify-content: center; margin-bottom: 3rem; }
.contact-prayer-btn {
	letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.75rem; font-weight: 600;
	min-height: 3rem; padding: 0 2rem; box-shadow: var(--shadow-soft);
}
.contact-social { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.contact-social-btn {
	width: 2.75rem; height: 2.75rem; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--color-background) 30%, transparent);
	display: flex; align-items: center; justify-content: center;
	color: rgba(250,248,244,0.8);
	transition: color 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth);
}
.contact-social-btn:hover { color: var(--color-blush); border-color: var(--color-blush); }
.contact-social-btn svg { width: 1.25rem; height: 1.25rem; }
.contact-script {
	margin-top: 3.5rem; font-family: var(--font-script); font-size: 1.875rem;
	line-height: 1.2; color: var(--color-blush);
}

.prayer-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
@media (min-width: 640px) { .prayer-modal { padding: 1.5rem; } }
.prayer-modal[hidden] { display: none; }
.prayer-modal-overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--color-foreground) 70%, transparent); backdrop-filter: blur(4px); animation: modal-fade-in 0.25s var(--transition-smooth); }
.prayer-modal.is-closing .prayer-modal-overlay { animation: modal-fade-out 0.25s var(--transition-smooth); }
.prayer-modal-panel {
	position: relative; width: 100%; max-width: 32rem; background: var(--color-card);
	border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
	border-radius: 1rem; box-shadow: var(--shadow-elevated); max-height: 90vh; overflow: hidden;
	display: flex; flex-direction: column;
	animation: modal-zoom-in 0.25s var(--transition-smooth);
}
.prayer-modal.is-closing .prayer-modal-panel { animation: modal-zoom-out 0.25s var(--transition-smooth); }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes modal-zoom-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes modal-zoom-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.95); } }
.prayer-modal-header {
	position: relative; display: flex; align-items: flex-start; gap: 1rem;
	padding: 1.25rem 3.5rem 1.25rem 1.25rem;
	border-bottom: 1px solid color-mix(in srgb, var(--color-border) 50%, transparent);
	background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, transparent), transparent, color-mix(in srgb, var(--color-blush) 15%, transparent));
}
@media (min-width: 768px) {
	.prayer-modal-header { padding: 1.5rem 3.5rem 1.5rem 1.5rem; }
}
.prayer-modal-icon {
	flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: 999px;
	background: color-mix(in srgb, var(--color-background) 90%, transparent);
	border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
	display: flex; align-items: center; justify-content: center; color: var(--color-primary); box-shadow: var(--shadow-soft);
}
.prayer-modal-icon svg { width: 1.25rem; height: 1.25rem; }
.prayer-modal-header-text { min-width: 0; flex: 1; }
.prayer-modal-title { font-size: 1.25rem; line-height: 1.3; color: var(--color-foreground); }
@media (min-width: 768px) { .prayer-modal-title { font-size: 1.5rem; } }
.prayer-modal-subtitle { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }
.prayer-modal-close {
	position: absolute; top: 0.75rem; right: 0.75rem; width: 2.25rem; height: 2.25rem; border-radius: 999px;
	background: color-mix(in srgb, var(--color-background) 70%, transparent); backdrop-filter: blur(4px);
	border: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
	display: flex; align-items: center; justify-content: center; color: rgba(49,37,55,0.7); z-index: 10;
}
.prayer-modal-close svg { width: 1rem; height: 1rem; }
.prayer-modal-close:hover { color: var(--color-foreground); background: var(--color-background); border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.prayer-modal-body { padding: 2rem; overflow-y: auto; max-height: calc(90vh - 6rem); }
@media (min-width: 768px) { .prayer-modal-body { padding: 2.5rem; } }
.prayer-modal-form { display: flex; flex-direction: column; gap: 1.25rem; }
.prayer-modal-form .form-field { margin-bottom: 0; }
.prayer-modal-form .form-label-muted {
	font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600;
	color: rgba(49,37,55,0.6); margin-bottom: 0.5rem;
}
.prayer-modal-form .form-input {
	padding: 0.75rem 1rem; border-radius: var(--card-radius);
}
.prayer-modal-submit {
	letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
	min-height: 3rem; box-shadow: var(--shadow-soft);
}
.form-checkbox-label { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: rgba(49,37,55,0.75); cursor: pointer; user-select: none; }
.form-checkbox { margin-top: 0.15rem; accent-color: var(--color-primary); width: 1rem; height: 1rem; flex-shrink: 0; }
.prayer-modal-success { text-align: center; padding-block: 1.5rem; }
.prayer-modal-success-icon {
	width: 4rem; height: 4rem; border-radius: 999px;
	background: color-mix(in srgb, var(--color-primary) 15%, transparent);
	display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; color: var(--color-primary);
	box-shadow: 0 0 0 8px color-mix(in srgb, var(--color-primary) 5%, transparent);
}
.prayer-modal-success-icon svg { width: 1.75rem; height: 1.75rem; }
.prayer-modal-success-heading { font-size: 1.875rem; margin-bottom: 0.75rem; }
.prayer-modal-success-text { color: rgba(49,37,55,0.7); max-width: 24rem; margin: 0 auto 1.5rem; }

/* ---------------------------------------------------------------------
   17. FOOTER
--------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-secondary) 40%, transparent); }
.site-footer > .container-wide { padding-block: 3rem; }
@media (min-width: 1024px) { .site-footer > .container-wide { padding-block: 4rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.footer-col-brand .site-brand { color: var(--color-foreground); }
.footer-col-brand .site-logo-img { height: 3rem !important; }
.footer-col-brand .site-brand-name {
	display: block; color: var(--color-foreground); font-size: 1.125rem; letter-spacing: 0.02em;
}
.footer-description { margin-top: 1rem; font-size: 0.875rem; color: var(--color-muted-foreground); max-width: 24rem; line-height: 1.6; }
.footer-script {
	margin-top: 1rem; font-family: var(--font-script); font-size: 1.5rem; line-height: 1.2;
	color: var(--color-primary);
}
.footer-social { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; }
.social-btn {
	width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--color-border);
	display: flex; align-items: center; justify-content: center; color: var(--color-muted-foreground);
	transition: color 0.3s var(--transition-smooth), border-color 0.3s var(--transition-smooth);
}
.social-btn:hover { color: var(--color-primary); border-color: var(--color-primary); }
.social-btn svg { width: 1rem; height: 1rem; }
.footer-heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 1rem; color: var(--color-primary); }
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a, .footer-links .theme-nav-link, .footer-links button {
	font-size: 0.875rem; color: var(--color-muted-foreground); transition: color 0.3s var(--transition-smooth);
	background: none; border: none; padding: 0; text-align: left; font-family: var(--font-body);
}
.footer-links a:hover, .footer-links .theme-nav-link:hover, .footer-links button:hover { color: var(--color-foreground); }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.footer-contact-list .icon-inline { width: 1rem; height: 1rem; flex-shrink: 0; }
.footer-contact-list a { transition: color 0.3s var(--transition-smooth); word-break: break-all; }
.footer-contact-list a:hover { color: var(--color-foreground); }
.footer-note { margin-top: 1.5rem; font-size: 0.75rem; color: var(--color-muted-foreground); font-style: italic; }
.footer-bottom {
	margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border);
	display: flex; flex-direction: column; gap: 1rem; align-items: center; text-align: center;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copyright { font-size: 0.75rem; color: var(--color-muted-foreground); }

/* ---------------------------------------------------------------------
   18. PAGE LOADER + SCROLL PROGRESS
--------------------------------------------------------------------- */
.page-loader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--color-background); transition: opacity 0.6s var(--transition-smooth); }
.page-loader.is-hidden { opacity: 0; pointer-events: none; }
.page-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.page-loader-rings { position: relative; width: 4rem; height: 4rem; }
.page-loader-ring { position: absolute; border-radius: 999px; }
.page-loader-ring-outer { inset: 0; border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent); animation: loader-spin 8s linear infinite; }
.page-loader-ring-inner { inset: 0.5rem; border: 1px solid color-mix(in srgb, var(--color-primary) 60%, transparent); animation: loader-spin-reverse 6s linear infinite; }
.page-loader-dot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 0.5rem; height: 0.5rem; background: var(--color-primary); animation: loader-pulse 1.4s ease-in-out infinite; }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-spin-reverse { to { transform: rotate(-360deg); } }
@keyframes loader-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 50% { transform: translate(-50%, -50%) scale(1.6); opacity: 0.4; } }
.page-loader-label { display: flex; align-items: center; gap: 0.75rem; }
.page-loader-line { height: 1px; width: 1.5rem; background: var(--color-primary); }
.page-loader-text { font-size: 0.625rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .page-loader-ring-outer, .page-loader-ring-inner, .page-loader-dot { animation: none; } }

.scroll-progress-bar {
	position: fixed; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, color-mix(in srgb, var(--color-primary) 60%, transparent), var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, transparent));
	transform-origin: 0 50%; transform: scaleX(0); z-index: 60; pointer-events: none;
}

/* ---------------------------------------------------------------------
   19. SIDE CART DRAWER (Section 12)
--------------------------------------------------------------------- */
#theme-cart-overlay { position: fixed; inset: 0; background: rgba(49,37,55,0.2); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--transition-smooth); }
body.cart-open #theme-cart-overlay { opacity: 1; pointer-events: auto; }
#theme-cart-drawer {
	position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem; background: var(--color-background);
	z-index: 91; box-shadow: var(--shadow-elevated); display: flex; flex-direction: column; transform: translateX(100%);
	transition: transform 0.4s var(--transition-smooth); overflow: hidden;
}
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: 1.5rem; border-bottom: 1px solid var(--color-border); }
.theme-cart-drawer-title { font-size: 1.125rem; font-weight: 700; }
.theme-cart-drawer-close { padding: 0.25rem; opacity: 0.6; }
.theme-cart-drawer-close:hover { opacity: 1; }
.theme-cart-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; gap: 1rem; }
.theme-cart-drawer-empty svg { width: 3rem; height: 3rem; color: var(--color-muted-foreground); }
.theme-cart-drawer-items { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item-image { width: 5rem; height: 6rem; background: var(--color-secondary); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.theme-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.theme-cart-item-info { flex: 1; min-width: 0; }
.theme-cart-item-title { font-size: 0.875rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-cart-item-price { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.theme-cart-item-variation { font-size: 0.75rem; color: var(--color-muted-foreground); margin-top: 0.25rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.theme-cart-item-controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.theme-cart-qty-btn { padding: 0.25rem; border-radius: 4px; }
.theme-cart-qty-btn:hover { background: var(--color-secondary); }
.theme-cart-item-qty { font-size: 0.875rem; width: 1.5rem; text-align: center; }
.theme-cart-remove-btn { margin-left: auto; font-size: 0.75rem; color: var(--color-muted-foreground); }
.theme-cart-remove-btn:hover { color: var(--color-foreground); }
.theme-cart-drawer-footer { padding: 1.5rem; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 1rem; }
.theme-cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.875rem; }
.theme-cart-shipping-note { font-size: 0.75rem; color: var(--color-muted-foreground); }

/* Hide WooCommerce's own "View cart" link (Section 11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* ---------------------------------------------------------------------
   20. WOOCOMMERCE — ADD TO CART BUTTON OVERRIDE (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;
}
.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; }

/* ---------------------------------------------------------------------
   21. WOOCOMMERCE NOTICES (Section 14.1)
--------------------------------------------------------------------- */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
	font-family: var(--font-body); border-radius: 6px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; list-style: none;
	background: var(--color-secondary); color: var(--color-foreground); border-left: 3px solid var(--color-primary);
}
.woocommerce-error { border-left-color: var(--color-destructive); }

/* ---------------------------------------------------------------------
   22. SINGLE PRODUCT PAGE (Section 11, 11.13, 30.3)
--------------------------------------------------------------------- */
.single-product-main { padding-top: 6rem; padding-bottom: 5rem; }
@media (min-width: 1024px) { .single-product-main { padding-top: 7rem; } }
.back-to-shop-row { padding-block: 1.5rem; }
.back-to-shop-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-muted-foreground); }
.back-to-shop-link:hover { color: var(--color-foreground); }
.back-to-shop-link svg { width: 1rem; height: 1rem; }

.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 5rem; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
.theme-product-main-image-wrap {
	position: relative;
	aspect-ratio: 3 / 4;
	width: 100%;
	background: var(--color-secondary);
	border-radius: var(--card-radius);
	overflow: hidden;
	margin-bottom: 1rem;
}
/* Beat WooCommerce `img { height: auto }` so the photo fills the 3:4 frame */
.single-product-main .theme-product-main-image-wrap > img.theme-product-main-image,
.theme-product-main-image-wrap > img.theme-product-main-image,
.theme-product-main-image-wrap > img.cover-img {
	position: absolute;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
	display: block;
}
.theme-product-thumbnails { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 100%; }
.theme-product-thumb { width: 4.5rem; height: 4.5rem; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: 0.6; flex-shrink: 0; }
.theme-product-thumb.is-active, .theme-product-thumb:hover { opacity: 1; border-color: var(--color-primary); }
.theme-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-category-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-foreground); }
.product-title { font-family: var(--font-body); font-weight: 700; font-size: 1.5rem; margin-top: 0.5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .product-title { font-size: 1.875rem; } }
.product-price { font-size: 1.5rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.product-stock-out { font-size: 0.875rem; font-weight: 600; color: var(--color-destructive); margin-bottom: 1rem; }
.product-long-description { color: var(--color-muted-foreground); line-height: 1.7; margin-bottom: 2rem; overflow-wrap: break-word; word-break: break-word; }
.product-long-description p { margin-bottom: 1em; }

.theme-quantity-wrapper { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--btn-radius); }
.theme-qty-minus, .theme-qty-plus { padding: 0 1rem; height: var(--btn-height); }
.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; height: var(--btn-height); }
.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-bottom: 1rem; }
.single-product .single_add_to_cart_button { flex: 1 1 auto; min-width: 160px; }
.product-coming-soon-note { font-size: 0.875rem; color: var(--color-muted-foreground); font-style: italic; margin-bottom: 2rem; }
.product-details-block { border-top: 1px solid var(--color-border); padding-top: 2rem; }
.product-details-heading { font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem; }
.product-details-list ul { display: flex; flex-direction: column; gap: 0.5rem; }
.product-details-list li { font-size: 0.875rem; color: var(--color-muted-foreground); display: flex; align-items: flex-start; }
.product-details-list li::before { content: ''; width: 0.375rem; height: 0.375rem; background: var(--color-primary); border-radius: 999px; margin: 0.4rem 0.75rem 0 0; flex-shrink: 0; }
.single-product .woocommerce-product-details__short-description,
.single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }

.related-products-section { padding-top: 3rem; border-top: 1px solid var(--color-border); }
.related-products-heading { font-size: 1.5rem; font-weight: 700; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .related-products-heading { font-size: 1.875rem; } }

/* Variations table stacking (Section 11.5.1) */
.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; }

/* ---------------------------------------------------------------------
   23. SHOP ARCHIVE PAGE
--------------------------------------------------------------------- */
.shop-archive-main { padding-top: 6rem; }
@media (min-width: 1024px) { .shop-archive-main { padding-top: 7rem; } }

/* ---------------------------------------------------------------------
   24. WOOCOMMERCE CHECKOUT BLOCK (Section 13)
--------------------------------------------------------------------- */
body.woocommerce-checkout .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
body.woocommerce-checkout .page-title { font-size: 2rem; margin-bottom: 2rem; }

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-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-checkout { display: block; }
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background: var(--color-background);
	font-family: var(--font-body);
	color: var(--color-foreground);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus { border-color: var(--color-primary); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-primary) !important; color: var(--color-primary-foreground) !important; border-radius: var(--btn-radius) !important;
	text-transform: none !important; font-weight: 600 !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: var(--color-secondary); border-radius: var(--card-radius); padding: 2rem;
}
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }

/* ---------------------------------------------------------------------
   25. WOOCOMMERCE THANK-YOU PAGE (Section 22.8)
--------------------------------------------------------------------- */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .site-main { padding-top: 6rem; padding-bottom: 4rem; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); 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; }

/* ---------------------------------------------------------------------
   26. GENERIC PAGES / 404
--------------------------------------------------------------------- */
.generic-page-main { padding-top: 7rem; padding-bottom: 5rem; }
.page-title { font-size: 2rem; margin-bottom: 1.5rem; }
.notfound-main { min-height: 70vh; display: flex; align-items: center; }
.notfound-content { text-align: center; padding-block: 5rem; }
.notfound-heading { font-size: 4rem; margin-bottom: 1rem; }
.notfound-text { color: var(--color-muted-foreground); margin-bottom: 1.5rem; }
.notfound-link { color: var(--color-primary); text-decoration: underline; }

/* Homepage: no top padding under fixed transparent header (Section 22.7) */
body:not(.theme-no-hero) .home-main { padding-top: 0; }
body.theme-no-hero .site-main:not(.home-main) { padding-top: var(--header-height); }
