/**
 * SAMपOरNA Central Design Tokens
 * Single source of truth for all design tokens including festival theme overrides.
 * Loaded before theme stylesheet to allow token customization.
 *
 * @package Samporna
 * @version 1.0.0
 */

/* ============================================================================
   CORE BRAND TOKENS — "Artisanal Purity Meets Industrial Precision"
   ============================================================================ */
:root {
	/* Core Brand Colors — Apple Cleanroom Luxury Baseline */
	--color-primary-base: #0F2D2E;        /* Alpine Cleanroom Spruce */
	--color-forest-700: #0F2D2E;
	--color-forest-900: #081B1C;
	--color-forest-100: #E6F0F0;
	--color-accent-copper: #C86D51;       /* Precision Hammered Copper */
	--color-gold-600: #C86D51;
	--color-cream: #F5F5F7;               /* Apple Neutral Slate */
	--color-cream-card: #F5F5F7;
	--color-surface-canvas: #FFFFFF;      /* Pure Optical White */
	--color-alabaster: #FFFFFF;
	--color-slate-charcoal: #111818;      /* Deep Neutral Graphite */
	--color-success: #1B8A5A;             /* Surgical Clean Leaf */

	/* Semantic color tokens for accessibility (WCAG 2.1 AA) */
	--color-text-primary: #111818;
	--color-text-secondary: #5C6466;
	--color-text-muted: #86868B;
	--color-text-inverse: #FFFFFF;
	--color-primary-hover: #081B1C;
	--color-surface-card: #F5F5F7;
	--color-border-subtle: #E5E7EB;
	--color-border-default: #D1D5DB;
	--color-focus-ring: rgba(200, 109, 68, 0.5);
	--color-accent-gold: #C86D44;
	--color-warning: #F59E0B;
	--color-error: #B53A3A;
	--color-emerald-500: #72B83C;
	--color-emerald-600: #5C962F;

	/* Logo CSS Variables — mapped to inline SVG fills for 7 festival themes */
	--logo-primary: #1B4D24;
	--logo-accent: #C86D44;
	--logo-leaf: #72B83C;

	/* Typography */
	--font-serif: "Playfair Display", "Cinzel", Georgia, "Times New Roman", serif;
	--font-primary: "Plus Jakarta Sans", "Inter", "Noto Sans Gurmukhi", "Noto Sans Devanagari", system-ui, sans-serif;
	--font-heading: var(--font-serif);
	--font-body: var(--font-primary);
	--font-mono: "JetBrains Mono", "Fira Mono", monospace;

	/* Border Radius */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-full: 9999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(16, 43, 45, 0.06);
	--shadow-md: 0 4px 12px rgba(16, 43, 45, 0.08);
	--shadow-lg: 0 16px 32px rgba(16, 43, 45, 0.12);
	--shadow-card: 0 4px 16px rgba(16, 43, 45, 0.1);
	--shadow-focus: 0 0 0 3px rgba(200, 109, 81, 0.25);

	/* Motion */
	--transition-fast: 120ms cubic-bezier(0.2, 0, 0, 1);
	--transition-normal: 200ms cubic-bezier(0.2, 0, 0, 1);
	--transition-slow: 300ms cubic-bezier(0.2, 0, 0, 1);

	/* Spacing Scale */
	--space-xs: 4px;
	--space-sm: 8px;
	--space-md: 16px;
	--space-lg: 24px;
	--space-xl: 32px;
	--space-2xl: 48px;
	--space-3xl: 64px;

	/* Container Widths */
	--container-sm: 640px;
	--container-md: 768px;
	--container-lg: 1024px;
	--container-xl: 1280px;
	--container-2xl: 1440px;
}

/* ============================================================================
   FESTIVAL THEME OVERRIDES
   Activated via body class: .theme-diwali, .theme-lohri, .theme-holi, etc.
   Admin Theme Switcher applies these via option + body_class filter.
   ============================================================================ */

/* Diwali — Warm Gold & Deep Maroon */
body.theme-diwali {
	--color-primary-base: #7B2D26;
	--color-forest-700: #7B2D26;
	--color-forest-900: #5A1F1B;
	--color-forest-100: #FDEAE8;
	--color-accent-copper: #D4A843;
	--color-gold-600: #D4A843;
	--color-cream: #FFF8F0;
	--color-cream-card: #FFF0E0;
	--color-surface-canvas: #FFFDF8;
	--color-alabaster: #FFFDF8;
	--color-slate-charcoal: #3D2B2A;
	--color-success: #8FBC8F;

	--color-text-primary: #3D2B2A;
	--color-text-secondary: #6B5A58;
	--color-text-muted: #9A8A88;
	--color-text-inverse: #FFFDF8;
	--color-primary-base: #7B2D26;
	--color-primary-hover: #5A1F1B;
	--color-surface-canvas: #FFFDF8;
	--color-surface-card: #FFFFFF;
	--color-border-subtle: #F5E0D8;
	--color-border-default: #E8D0C8;
	--color-focus-ring: rgba(212, 168, 67, 0.5);
	--color-accent-copper: #D4A843;
	--color-accent-gold: #D4A843;
	--color-success: #8FBC8F;
	--color-warning: #E8A838;
	--color-error: #C0392B;
	--color-emerald-500: #8FBC8F;
	--color-emerald-600: #6B8E6B;

	--logo-primary: #7B2D26;
	--logo-accent: #D4A843;
	--logo-leaf: #8FBC8F;
}

/* Lohri — Bonfire Orange & Charcoal */
body.theme-lohri {
	--color-primary-base: #2C1810;
	--color-forest-700: #2C1810;
	--color-forest-900: #1A0F08;
	--color-forest-100: #F5E8E0;
	--color-accent-copper: #E87A2E;
	--color-gold-600: #E87A2E;
	--color-cream: #FFF0E8;
	--color-cream-card: #FFE0D0;
	--color-surface-canvas: #FFF8F5;
	--color-alabaster: #FFF8F5;
	--color-slate-charcoal: #2D1B15;
	--color-success: #6BA86B;

	--color-text-primary: #2D1B15;
	--color-text-secondary: #5C4A40;
	--color-text-muted: #8A7A70;
	--color-text-inverse: #FFF8F5;
	--color-primary-base: #2C1810;
	--color-primary-hover: #1A0F08;
	--color-surface-canvas: #FFF8F5;
	--color-surface-card: #FFFFFF;
	--color-border-subtle: #E8D8D0;
	--color-border-default: #D8C0B0;
	--color-focus-ring: rgba(232, 122, 46, 0.5);
	--color-accent-copper: #E87A2E;
	--color-accent-gold: #E87A2E;
	--color-success: #6BA86B;
	--color-warning: #E8A838;
	--color-error: #C0392B;
	--color-emerald-500: #6BA86B;
	--color-emerald-600: #4A7C4A;

	--logo-primary: #2C1810;
	--logo-accent: #E87A2E;
	--logo-leaf: #6BA86B;
}

/* Holi — Vibrant Festival Colors */
body.theme-holi {
	--color-primary-base: #6A1B9A;
	--color-forest-700: #6A1B9A;
	--color-forest-900: #4A127A;
	--color-forest-100: #F3E5F5;
	--color-accent-copper: #E91E63;
	--color-gold-600: #E91E63;
	--color-cream: #FAF0FA;
	--color-cream-card: #F0E0F0;
	--color-surface-canvas: #FAFAFA;
	--color-alabaster: #FAFAFA;
	--color-slate-charcoal: #3D1A4A;
	--color-success: #4CAF50;

	--color-text-primary: #3D1A4A;
	--color-text-secondary: #6B4A7A;
	--color-text-muted: #9A7A9A;
	--color-text-inverse: #FAFAFA;
	--color-primary-base: #6A1B9A;
	--color-primary-hover: #4A127A;
	--color-surface-canvas: #FAFAFA;
	--color-surface-card: #FFFFFF;
	--color-border-subtle: #E8D0E8;
	--color-border-default: #D0B0D0;
	--color-focus-ring: rgba(233, 30, 99, 0.5);
	--color-accent-copper: #E91E63;
	--color-accent-gold: #E91E63;
	--color-success: #4CAF50;
	--color-warning: #FF9800;
	--color-error: #F44336;
	--color-emerald-500: #4CAF50;
	--color-emerald-600: #388E3C;

	--logo-primary: #6A1B9A;
	--logo-accent: #E91E63;
	--logo-leaf: #4CAF50;
}

/* Navratri — Royal Blue & Gold */
body.theme-navratri {
	--color-primary-base: #1A237E;
	--color-forest-700: #1A237E;
	--color-forest-900: #0D165E;
	--color-forest-100: #E8EAF6;
	--color-accent-copper: #FFD600;
	--color-gold-600: #FFD600;
	--color-cream: #F0F2FA;
	--color-cream-card: #E0E4F0;
	--color-surface-canvas: #FAFBFF;
	--color-alabaster: #FAFBFF;
	--color-slate-charcoal: #1B2A4A;
	--color-success: #2E7D32;

	--color-text-primary: #1B2A4A;
	--color-text-secondary: #4A5A7A;
	--color-text-muted: #7A8A9A;
	--color-text-inverse: #FAFBFF;
	--color-primary-base: #1A237E;
	--color-primary-hover: #0D165E;
	--color-surface-canvas: #FAFBFF;
	--color-surface-card: #FFFFFF;
	--color-border-subtle: #D8DAE8;
	--color-border-default: #C0C8E0;
	--color-focus-ring: rgba(255, 214, 0, 0.5);
	--color-accent-copper: #FFD600;
	--color-accent-gold: #FFD600;
	--color-success: #2E7D32;
	--color-warning: #FFD600;
	--color-error: #C62828;
	--color-emerald-500: #2E7D32;
	--color-emerald-600: #1B5E20;

	--logo-primary: #1A237E;
	--logo-accent: #FFD600;
	--logo-leaf: #2E7D32;
}

/* Teachers' Day — Scholarly Blue & Warm Amber */
body.theme-teachers-day {
	--color-primary-base: #1565C0;
	--color-forest-700: #1565C0;
	--color-forest-900: #0D47A1;
	--color-forest-100: #E3F2FD;
	--color-accent-copper: #FFB300;
	--color-gold-600: #FFB300;
	--color-cream: #FFFDE7;
	--color-cream-card: #FFF9C4;
	--color-surface-canvas: #FFFDF8;
	--color-alabaster: #FFFDF8;
	--color-slate-charcoal: #1A3A5C;
	--color-success: #2E7D32;

	--color-text-primary: #1A3A5C;
	--color-text-secondary: #4A6A7A;
	--color-text-muted: #7A8A9A;
	--color-text-inverse: #FFFDF8;
	--color-primary-base: #1565C0;
	--color-primary-hover: #0D47A1;
	--color-surface-canvas: #FFFDF8;
	--color-surface-card: #FFFFFF;
	--color-border-subtle: #E0E8F0;
	--color-border-default: #C8D8E8;
	--color-focus-ring: rgba(255, 179, 0, 0.5);
	--color-accent-copper: #FFB300;
	--color-accent-gold: #FFB300;
	--color-success: #2E7D32;
	--color-warning: #FFB300;
	--color-error: #C62828;
	--color-emerald-500: #2E7D32;
	--color-emerald-600: #1B5E20;

	--logo-primary: #1565C0;
	--logo-accent: #FFB300;
	--logo-leaf: #2E7D32;
}

/* Exam Care — Calming Green & Soft Blue */
body.theme-exam-care {
	--color-primary-base: #2E7D32;
	--color-forest-700: #2E7D32;
	--color-forest-900: #1B5E20;
	--color-forest-100: #E8F5E9;
	--color-accent-copper: #64B5F6;
	--color-gold-600: #64B5F6;
	--color-cream: #E3F2FD;
	--color-cream-card: #BBDEFB;
	--color-surface-canvas: #F0FAFF;
	--color-alabaster: #F0FAFF;
	--color-slate-charcoal: #1A3A2A;
	--color-success: #388E3C;

	--color-text-primary: #1A3A2A;
	--color-text-secondary: #4A6A4A;
	--color-text-muted: #7A8A7A;
	--color-text-inverse: #F0FAFF;
	--color-primary-base: #2E7D32;
	--color-primary-hover: #1B5E20;
	--color-surface-canvas: #F0FAFF;
	--color-surface-card: #FFFFFF;
	--color-border-subtle: #D0E8D0;
	--color-border-default: #B8D8B8;
	--color-focus-ring: rgba(100, 181, 246, 0.5);
	--color-accent-copper: #64B5F6;
	--color-accent-gold: #64B5F6;
	--color-success: #388E3C;
	--color-warning: #FFB300;
	--color-error: #EF5350;
	--color-emerald-500: #388E3C;
	--color-emerald-600: #2E7D32;

	--logo-primary: #2E7D32;
	--logo-accent: #64B5F6;
	--logo-leaf: #388E3C;
}

/* Baisakhi — Golden Wheat & Mustard Harvest */
body.theme-baisakhi,
html[data-season="baisakhi"] body {
	--color-primary-base: #B8860B;
	--color-forest-700: #B8860B;
	--color-forest-900: #7A5805;
	--color-forest-100: #FFFDF0;
	--color-accent-copper: #E67E22;
	--color-gold-600: #D4AF37;
	--color-cream: #FFFDF5;
	--color-cream-card: #FDFBF0;
	--color-surface-canvas: #FFFDF8;
	--color-alabaster: #FFFDF8;
	--color-slate-charcoal: #2A2415;
	--color-success: #A28B14;
	--color-text-primary: #2A2415;
	--color-text-secondary: #6B5D38;
	--color-border-subtle: #F3EBD4;
	--brand-green: #B8860B !important;
	--brand-copper: #E67E22 !important;
	--brand-terracotta: #E67E22 !important;
	--brand-leaf: #A28B14 !important;
	--bg-canvas: #FFFDF8 !important;
	--bg-surface: #FDFBF0 !important;
}

/* Halloween — Autumn Spiced Pumpkin & Midnight Obsidian */
body.theme-halloween,
html[data-season="halloween"] body {
	--color-primary-base: #D35400;
	--color-forest-700: #D35400;
	--color-forest-900: #873600;
	--color-forest-100: #FBEEE6;
	--color-accent-copper: #E06A3B;
	--color-gold-600: #E59866;
	--color-cream: #FAF5F0;
	--color-cream-card: #F5ECE4;
	--color-surface-canvas: #FAF7F5;
	--color-alabaster: #FAF7F5;
	--color-slate-charcoal: #211C1A;
	--color-success: #B9770E;
	--color-text-primary: #211C1A;
	--color-text-secondary: #6E5B53;
	--color-border-subtle: #EDDCD2;
	--brand-green: #D35400 !important;
	--brand-copper: #E06A3B !important;
	--brand-terracotta: #E06A3B !important;
	--brand-leaf: #B9770E !important;
	--bg-canvas: #FAF7F5 !important;
	--bg-surface: #F5ECE4 !important;
}

/* Thanksgiving — Warm Toasted Pecan & Cranberry Harvest */
body.theme-thanksgiving,
html[data-season="thanksgiving"] body {
	--color-primary-base: #8B4513;
	--color-forest-700: #8B4513;
	--color-forest-900: #5C2D0C;
	--color-forest-100: #F9EBEA;
	--color-accent-copper: #9E2A2B;
	--color-gold-600: #D35400;
	--color-cream: #FDF8F2;
	--color-cream-card: #F8EFE4;
	--color-surface-canvas: #FCF9F5;
	--color-alabaster: #FCF9F5;
	--color-slate-charcoal: #2A1D17;
	--color-success: #6B8E23;
	--color-text-primary: #2A1D17;
	--color-text-secondary: #6B4E42;
	--color-border-subtle: #EEDCD0;
	--brand-green: #8B4513 !important;
	--brand-copper: #9E2A2B !important;
	--brand-terracotta: #9E2A2B !important;
	--brand-leaf: #6B8E23 !important;
	--bg-canvas: #FCF9F5 !important;
	--bg-surface: #F8EFE4 !important;
}

/* New Year — Midnight Emerald & Champagne Gold */
body.theme-newyear,
html[data-season="newyear"] body {
	--color-primary-base: #0D382E;
	--color-forest-700: #0D382E;
	--color-forest-900: #07221C;
	--color-forest-100: #E6F4F1;
	--color-accent-copper: #D4AF37;
	--color-gold-600: #D4AF37;
	--color-cream: #F0F6F5;
	--color-cream-card: #E4EEEC;
	--color-surface-canvas: #FAFCFC;
	--color-alabaster: #FAFCFC;
	--color-slate-charcoal: #101F1B;
	--color-success: #2E8B57;
	--color-text-primary: #101F1B;
	--color-text-secondary: #48615A;
	--color-border-subtle: #D5E4E1;
	--brand-green: #0D382E !important;
	--brand-copper: #D4AF37 !important;
	--brand-terracotta: #D4AF37 !important;
	--brand-leaf: #2E8B57 !important;
	--bg-canvas: #FAFCFC !important;
	--bg-surface: #F0F6F5 !important;
}

/* ============================================================================
   LEGACY ALIASES (for backward compatibility with plugin blocks)
   ============================================================================ */
:root {
	--sam-forest: var(--color-primary-base);
	--sam-gold: var(--color-accent-copper);
	--sam-cream: var(--color-surface-canvas);
	--sam-charcoal: var(--color-slate-charcoal);
	--sam-emerald: var(--color-emerald-500);
	--sam-paper: #FFFDF9;
	--sam-line: var(--color-border-subtle);
	--sam-sans: var(--font-primary);
	--sam-serif: var(--font-heading);
}

/* Plugin block token aliases (exact match to blocks-frontend.css) */
:root {
	--sam-primary: var(--color-primary-base);
	--sam-copper: var(--color-accent-copper);
	--sam-surface: var(--color-surface-canvas);
	--sam-text: var(--color-text-primary);
	--sam-muted: var(--color-text-muted);
	--sam-border: var(--color-border-default);
	--sam-success: var(--color-success);
	--sam-warning: var(--color-warning);
	--sam-error: var(--color-error);
}

/* ============================================================================
   ACCESSIBILITY BASE
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--color-primary-base);
	color: var(--color-surface-canvas);
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-sm);
	z-index: 10000;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.875rem;
	transition: top var(--transition-fast);
}
.skip-link:focus {
	top: 1rem;
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 3px;
}

:focus-visible {
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	position: absolute;
	width: auto;
	height: auto;
	padding: 0.75rem 1.5rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: var(--color-primary-base);
	color: var(--color-surface-canvas);
	z-index: 10000;
	border-radius: var(--radius-sm);
}

/* ============================================================================
   RESPONSIVE LOGO STYLES
   Primary logo (desktop >= 768px), Seed leaf (mobile < 768px)
   ============================================================================ */
.sam-brand {
	display: flex;
	align-items: center;
}
.sam-logo-primary {
	display: block;
	width: clamp(8.5rem, 15vw, 13.5rem);
	max-width: 100%;
}
.sam-logo-primary svg {
	display: block;
	width: 100%;
	height: auto;
}
.sam-logo-mobile {
	display: none !important;
}

/* Primary Brand Logo - Enforce Visibility & Sizing across Desktop & Mobile */
.sam-logo-primary {
	display: block !important;
	height: 50px !important;
	width: auto !important;
	max-width: 240px !important;
	flex-shrink: 0 !important;
}
.sam-logo-primary svg {
	display: block !important;
	height: 50px !important;
	width: auto !important;
	max-width: 240px !important;
	object-fit: contain !important;
}

/* ---- Footer Logo (Preserve Static Authentic Colors, No Washout, No Box) ---- */
.sam-site-footer .sam-footer-logo,
.site-footer .sam-footer-logo,
.sam-footer-logo {
	display: block !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	opacity: 1 !important;
	filter: none !important;
	outline: none !important;
	width: auto !important;
	max-width: 240px !important;
	height: 48px !important;
	flex-shrink: 0 !important;
}

.sam-site-footer .sam-footer-logo svg,
.site-footer .sam-footer-logo svg,
.sam-footer-logo svg,
.sam-footer-logo .sam-primary-brand-logo {
	display: block !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	opacity: 1 !important;
	filter: none !important;
	height: 48px !important;
	width: auto !important;
	max-width: 240px !important;
	object-fit: contain !important;
}

/* ============================================================================
   NAVIGATION COMPONENTS (v9.0 Responsive Single-Row & Clean 38px Actions)
   ============================================================================ */

/* ---- Site Header ---- */
.sam-site-header {
	position: relative;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
	background: var(--bg-canvas, #FAF9F6);
	border-bottom: 1px solid var(--color-border-subtle, #E5E0D8);
	gap: 1.5rem;
}

[data-theme="dark"] .sam-site-header {
	background: #141210 !important;
	border-bottom-color: #292524 !important;
}

/* ---- Desktop Mega Menu (Single Horizontal Row) ---- */
.sam-primary-nav {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: center;
}

.sam-primary-menu,
.sam-mega-menu__list {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap !important;
	flex-wrap: nowrap !important;
}

.sam-primary-menu > li,
.sam-mega-menu__list > li {
	white-space: nowrap !important;
	flex-shrink: 0;
}

.sam-primary-menu > li > a,
.sam-mega-menu__link {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.75rem;
	color: var(--text-primary, #1C1917);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap !important;
	word-break: keep-all !important;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.sam-primary-menu > li > a:hover,
.sam-mega-menu__link:hover {
	color: var(--brand-green, #1B4D24);
	background: rgba(27, 77, 36, 0.05);
}

[data-theme="dark"] .sam-primary-menu > li > a,
[data-theme="dark"] .sam-mega-menu__link {
	color: #F5F3EE !important;
}

[data-theme="dark"] .sam-primary-menu > li > a:hover,
[data-theme="dark"] .sam-mega-menu__link:hover {
	color: #72B83C !important;
	background: rgba(114, 184, 60, 0.1) !important;
}

.sam-mega-menu__parent-link {
	position: relative;
}

.sam-mega-menu__parent-link::after {
	content: '';
	display: inline-block;
	width: 0.4rem;
	height: 0.4rem;
	margin-left: 0.4rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--transition-fast);
}

.sam-mega-menu__parent-link[aria-expanded="true"]::after {
	transform: rotate(-135deg);
}

.sam-mega-menu__submenu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	max-width: 300px;
	padding: 0.75rem;
	background: var(--bg-canvas, #FAF9F6);
	border: 1px solid var(--color-border-subtle, #E5E0D8);
	border-radius: var(--radius-md);
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	z-index: 200;
}

/* ---- Mobile Menu Toggle (Hamburger) ---- */
.sam-menu-toggle {
	display: none;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border: 1px solid var(--color-border-subtle, #E5E0D8);
	border-radius: 10px;
	background: transparent;
	color: var(--text-primary, #1C1917);
	align-items: center;
	justify-content: center;
	cursor: pointer;
	touch-action: manipulation;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.sam-menu-toggle:hover {
	border-color: #1B4D24;
	color: #1B4D24;
	background: rgba(27, 77, 36, 0.05);
}

/* ---- Unified Header Actions (Clean 38px Design System) ---- */
.sam-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.sam-theme-toggle,
.sam-lang-toggle,
.sam-account-link,
.sam-cart-link {
	height: 38px;
	border-radius: 10px;
	border: 1px solid var(--color-border-subtle, #E5E0D8);
	background: transparent;
	color: var(--text-primary, #1C1917);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	box-sizing: border-box;
}

.sam-theme-toggle {
	width: 38px;
	padding: 0;
}

.sam-theme-toggle:hover,
.sam-lang-toggle:hover,
.sam-account-link:hover,
.sam-cart-link:hover,
.sam-menu-toggle:hover {
	border-color: #1B4D24;
	color: #1B4D24;
	background: rgba(27, 77, 36, 0.05);
}

.sam-lang-switcher {
	position: relative;
}

.sam-lang-toggle {
	padding: 0 10px;
	gap: 5px;
	font-size: 13px;
	font-weight: 700;
}

.sam-lang-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	background: var(--bg-canvas, #FAF9F6);
	border: 1px solid var(--color-border-subtle, #E5E0D8);
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	padding: 4px;
	margin: 0;
	list-style: none;
	min-width: 80px;
	z-index: 1000;
}

.sam-lang-menu li {
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border-radius: 6px;
	color: var(--text-primary, #1C1917);
	transition: background 0.15s ease;
}

.sam-lang-menu li:hover {
	background: rgba(27, 77, 36, 0.08);
	color: #1B4D24;
}

.sam-search-form {
	height: 38px;
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border-subtle, #E5E0D8);
	border-radius: 10px;
	background: var(--bg-canvas, #FAF9F6);
	overflow: hidden;
	padding-left: 10px;
}

.sam-search-form input[type="search"] {
	height: 36px;
	border: none;
	outline: none;
	background: transparent;
	font-size: 13px;
	color: var(--text-primary, #1C1917);
	width: 130px;
	transition: width 0.2s ease;
}

.sam-search-form input[type="search"]:focus {
	width: 170px;
}

.sam-search-form button {
	height: 36px;
	width: 36px;
	border: none;
	background: transparent;
	color: var(--text-secondary, #57534E);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sam-search-form button:hover {
	color: #1B4D24;
}

.sam-account-link {
	width: 38px;
	padding: 0;
}

.sam-cart-link {
	padding: 0 12px;
	gap: 6px;
	background: var(--bg-surface, #F2EFE9);
	position: relative !important;
}

.sam-cart-count {
	position: absolute !important;
	top: -6px !important;
	right: -6px !important;
	background: #C86D51 !important;
	color: #ffffff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	border-radius: 999px !important;
	padding: 0 4px !important;
	min-width: 18px !important;
	height: 18px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 2px solid #ffffff !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
	box-sizing: border-box !important;
	pointer-events: none !important;
	z-index: 10 !important;
}

/* Eliminate mystery button */
.sam-qr-trigger {
	display: none !important;
}

/* Dark mode sync for header actions */
[data-theme="dark"] .sam-theme-toggle,
[data-theme="dark"] .sam-lang-toggle,
[data-theme="dark"] .sam-account-link,
[data-theme="dark"] .sam-cart-link,
[data-theme="dark"] .sam-menu-toggle,
[data-theme="dark"] .sam-search-form {
	border-color: #383430 !important;
	color: #F5F3EE !important;
	background: #1E1B18 !important;
}

[data-theme="dark"] .sam-theme-toggle:hover,
[data-theme="dark"] .sam-lang-toggle:hover,
[data-theme="dark"] .sam-account-link:hover,
[data-theme="dark"] .sam-cart-link:hover,
[data-theme="dark"] .sam-menu-toggle:hover {
	border-color: #72B83C !important;
	color: #72B83C !important;
}

[data-theme="dark"] .sam-lang-menu {
	background: #1E1B18 !important;
	border-color: #383430 !important;
}

[data-theme="dark"] .sam-lang-menu li {
	color: #F5F3EE !important;
}

[data-theme="dark"] .sam-lang-menu li:hover {
	background: rgba(114, 184, 60, 0.15) !important;
	color: #72B83C !important;
}

[data-theme="dark"] .sam-search-form input[type="search"] {
	color: #F5F3EE !important;
}

[data-theme="dark"] .sam-search-form button {
	color: #A8A29E !important;
}

[data-theme="dark"] .sam-cart-count {
	background: #23632F !important;
	color: #F5F3EE !important;
}

/* Responsive Navigation Breakpoint (<= 920px) */
@media (min-width: 921px) {
	.sam-menu-toggle {
		display: none !important;
	}
	.sam-primary-nav,
	.sam-mega-menu {
		display: flex !important;
	}
	.sam-mobile-drawer {
		display: none !important;
	}
}

@media (max-width: 920px) {
	.sam-primary-nav,
	.sam-mega-menu {
		display: none !important;
	}
	.sam-menu-toggle {
		display: inline-flex !important;
	}
	.sam-header-actions .sam-search-form {
		display: none !important;
	}
}

/* ---- Mobile Drawer ---- */
.sam-mobile-drawer {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	height: 100dvh;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	pointer-events: none;
	visibility: hidden;
	transition: visibility var(--transition-fast, 0.2s);
}

.sam-mobile-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.sam-mobile-drawer__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: rgba(8, 24, 25, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity var(--transition-normal, 0.25s) ease;
}

.sam-mobile-drawer.is-open .sam-mobile-drawer__overlay {
	opacity: 1;
}

.sam-mobile-drawer__panel {
	position: relative;
	z-index: 2;
	flex: 1;
	width: 100%;
	max-width: 320px;
	height: 100%;
	background: var(--color-surface-canvas, #FBFDFD);
	box-shadow: -8px 0 32px rgba(8, 24, 25, 0.25);
	display: flex;
	flex-direction: column;
	transform: translate3d(100%, 0, 0);
	transition: transform var(--transition-normal, 0.25s) cubic-bezier(0.16, 1, 0.3, 1);
	overscroll-behavior: contain;
}

.sam-mobile-drawer.is-open .sam-mobile-drawer__panel {
	transform: translate3d(0, 0, 0);
}

body.sam-drawer-open {
	overflow: hidden !important;
	touch-action: none;
}

.sam-mobile-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--color-border-subtle);
}

.sam-mobile-drawer__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-text-primary);
}

.sam-mobile-drawer__close {
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-sm);
	background: var(--color-surface-card);
	color: var(--color-text-primary);
	cursor: pointer;
	touch-action: manipulation;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color var(--transition-fast), background var(--transition-fast);
}

.sam-mobile-drawer__close:hover,
.sam-mobile-drawer__close:focus {
	border-color: var(--color-primary-base);
	background: rgba(16, 43, 45, 0.04);
}

.sam-mobile-drawer__nav {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.25rem;
}

.sam-mobile-drawer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sam-mobile-drawer__menu li {
	border-bottom: 1px solid var(--color-border-subtle);
}

.sam-mobile-drawer__menu li:last-child {
	border-bottom: none;
}

.sam-mobile-drawer__menu a,
.sam-mobile-drawer__link {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0.85rem 0.5rem;
	color: var(--color-text-primary, #102B2D);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	touch-action: manipulation;
	transition: color var(--transition-fast, 0.15s), background var(--transition-fast, 0.15s);
}

.sam-mobile-drawer__menu a:hover,
.sam-mobile-drawer__menu a:active,
.sam-mobile-drawer__link:hover,
.sam-mobile-drawer__link:focus {
	color: var(--color-primary-base, #102B2D);
}
}

.sam-mobile-drawer__link--parent {
	position: relative;
	padding-right: 2.5rem;
}

.sam-mobile-drawer__link--parent::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform-origin: center;
	transition: transform var(--transition-fast);
}

.sam-mobile-drawer__link--parent[aria-expanded="true"]::after {
	transform: translateY(-50%) rotate(-135deg);
}

.sam-mobile-drawer__submenu {
	padding: 0.5rem 0 0.5rem 1rem;
	margin: 0;
	list-style: none;
}

.sam-mobile-drawer__submenu[hidden] {
	display: none;
}

.sam-mobile-drawer__submenu a {
	display: block;
	padding: 0.5rem 0;
	color: var(--color-text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: color var(--transition-fast), background var(--transition-fast);
}

.sam-mobile-drawer__submenu a:hover,
.sam-mobile-drawer__submenu a:focus {
	color: var(--color-primary-base);
	background: rgba(16, 43, 45, 0.04);
}

.sam-mobile-drawer__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--color-border-subtle);
}

.sam-lang-switcher--mobile .sam-lang-toggle {
	width: 100%;
	justify-content: space-between;
}

.sam-mobile-drawer__account {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem;
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-md);
	background: var(--color-surface-card);
	color: var(--color-text-primary);
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--transition-fast), background var(--transition-fast);
}

.sam-mobile-drawer__account:hover,
.sam-mobile-drawer__account:focus {
	border-color: var(--color-primary-base);
	background: rgba(16, 43, 45, 0.04);
}

/* ---- QR Verify Modal ---- */
.sam-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.sam-modal[hidden] {
	display: none;
}

.sam-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.sam-modal:not([hidden]) .sam-modal__overlay {
	opacity: 1;
	visibility: visible;
}

.sam-modal__panel {
	position: relative;
	width: 100%;
	max-width: 400px;
	background: var(--color-surface-canvas);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	transform: scale(0.95);
	opacity: 0;
	transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.sam-modal:not([hidden]) .sam-modal__panel {
	transform: scale(1);
	opacity: 1;
}

.sam-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--color-border-subtle);
}

.sam-modal__header h2 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--color-text-primary);
}

.sam-modal__close {
	width: 44px;
	height: 44px;
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-sm);
	background: var(--color-surface-card);
	color: var(--color-text-primary);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: border-color var(--transition-fast), background var(--transition-fast);
}

.sam-modal__close:hover,
.sam-modal__close:focus {
	border-color: var(--color-primary-base);
	background: rgba(16, 43, 45, 0.04);
}

.sam-modal__body {
	padding: 1.25rem;
}

.sam-qr-scanner {
	position: relative;
	aspect-ratio: 1;
	max-width: 100%;
	background: var(--color-surface-card);
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 1rem;
}

.sam-qr-video,
.sam-qr-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sam-qr-video[hidden],
.sam-qr-canvas[hidden] {
	display: none;
}

.sam-qr-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--color-text-muted);
}

.sam-qr-placeholder[hidden] {
	display: none;
}

.sam-qr-instructions {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	color: var(--color-text-secondary);
	text-align: center;
}

.sam-qr-result {
	padding: 1rem;
	background: var(--color-surface-card);
	border: 1px solid var(--color-border-default);
	border-radius: var(--radius-md);
}

.sam-qr-result h3 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text-primary);
}

.sam-qr-result__content p {
	margin: 0.5rem 0;
	font-size: 0.875rem;
	color: var(--color-text-secondary);
}

.sam-qr-note {
	font-size: 0.75rem !important;
	color: var(--color-text-muted) !important;
	font-style: italic;
}

.sam-qr-start-camera {
	width: 100%;
	padding: 0.875rem 1.25rem;
	margin-top: 1rem;
	border: 1px solid var(--color-primary-base);
	border-radius: var(--radius-sm);
	background: var(--color-primary-base);
	color: var(--color-surface-canvas);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--transition-fast), border-color var(--transition-fast);
}

.sam-qr-start-camera:hover:not(:disabled),
.sam-qr-start-camera:focus:not(:disabled) {
	background: var(--color-primary-hover);
	border-color: var(--color-primary-hover);
}

.sam-qr-start-camera:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ============================================================================
   RESPONSIVE NAVIGATION BREAKPOINTS (v9.0 <= 920px)
   ============================================================================ */

/* Desktop / Tablet Landscape (>= 921px) */
@media (min-width: 921px) {
	.sam-menu-toggle {
		display: none !important;
	}

	.sam-primary-nav,
	.sam-mega-menu {
		display: flex !important;
	}

	.sam-mobile-drawer {
		display: none !important;
	}

	.sam-lang-switcher--mobile {
		display: none !important;
	}

	.sam-mobile-drawer__account {
		display: none !important;
	}
}

/* Tablet Portrait & Mobile (<= 920px) */
@media (max-width: 920px) {
	.sam-primary-nav,
	.sam-mega-menu {
		display: none !important;
	}

	.sam-menu-toggle {
		display: inline-flex !important;
	}

	.sam-header-actions .sam-search-form {
		display: none !important;
	}
}

/* Small mobile (<= 380px) */
@media (max-width: 380px) {
	.sam-header-actions {
		gap: 4px;
	}
	.sam-header-actions .sam-lang-toggle {
		padding: 0 6px;
		font-size: 12px;
	}
}
/* ============================================================================
   ASTRA GLOBAL COLOR OVERRIDES & PERSISTENT DARK MODE TOKENS (v6.0)
   ============================================================================ */

:root {
	--bg-canvas: #FFFFFF;
	--bg-surface: #F5F5F7;
	--text-primary: #111818;
	--text-secondary: #5C6466;
	--brand-green: #0F2D2E;
	--brand-copper: #C86D51;
	--brand-terracotta: #C86D51;
	--brand-leaf: #1B8A5A;
}

/* Explicit Astra Overrides — Never allow default white/grey bleed */
html,
body,
.site,
#page,
#content,
.ast-container,
.site-content,
.ast-site-content,
.woocommerce,
.woocommerce-page,
.site-footer,
.sam-site-footer {
	background-color: var(--bg-canvas, #FFFFFF) !important;
	color: var(--text-primary, #111818) !important;
}

/* Header & Nav styling */
.sam-site-header {
	background: var(--bg-canvas, #FFFFFF) !important;
	border-bottom: 1px solid var(--color-border-subtle, #E5E7EB) !important;
	color: var(--text-primary, #111818) !important;
}

.sam-primary-menu > li > a,
.sam-primary-menu a {
	color: var(--text-primary, #111818) !important;
}

/* Reader Dark Mode Tokens (data-theme="dark") — Space Cleanroom Black */
[data-theme="dark"],
html.dark-theme,
body.dark-theme {
	--bg-canvas: #0B0E0E;
	--bg-surface: #141A1B;
	--text-primary: #F5F7F7;
	--text-secondary: #9BA5A6;
	--brand-green: #2AB884;
	--brand-copper: #D9866D;
	--brand-terracotta: #D9866D;
	--brand-leaf: #2AB884;

	--color-primary-base: #2AB884;
	--color-surface-canvas: #0B0E0E;
	--color-surface-card: #141A1B;
	--color-cream: #141A1B;
	--color-alabaster: #0B0E0E;
	--color-text-primary: #F5F7F7;
	--color-text-secondary: #9BA5A6;
	--color-border-subtle: #202D2E;
	--color-border-default: #2A3B3C;

	--logo-primary: #2AB884;
	--logo-accent: #D9866D;
	--logo-leaf: #2AB884;
}

[data-theme="dark"] html,
[data-theme="dark"] body,
[data-theme="dark"] .site,
[data-theme="dark"] #page,
[data-theme="dark"] #content,
[data-theme="dark"] .ast-container,
[data-theme="dark"] .site-content,
[data-theme="dark"] .sam-site-header,
[data-theme="dark"] .sam-site-footer {
	background-color: #141210 !important;
	color: #F5F3EE !important;
}

[data-theme="dark"] .sam-bento-tile,
[data-theme="dark"] .sam-proof-card,
[data-theme="dark"] .sam-product-card,
[data-theme="dark"] .sam-hero-wrap,
[data-theme="dark"] .sam-floating-card,
[data-theme="dark"] #sam-certificate-card,
[data-theme="dark"] .sam-modal__panel {
	background-color: #1E1B18 !important;
	border-color: #2D2824 !important;
	color: #F5F3EE !important;
}

[data-theme="dark"] .sam-primary-menu > li > a,
[data-theme="dark"] .sam-mega-menu a,
[data-theme="dark"] a {
	color: #F5F3EE !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 {
	color: #F5F3EE !important;
}

/* Theme Toggle Button */
.sam-theme-toggle {
	background: transparent;
	border: 1px solid var(--color-border-subtle, #E5E0D8);
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	color: var(--text-primary, #1C1917);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.sam-theme-toggle:hover {
	border-color: var(--brand-green, #1B4D24);
	color: var(--brand-green, #1B4D24);
}

[data-theme="dark"] .sam-theme-toggle .sam-icon-sun {
	display: none;
}
[data-theme="dark"] .sam-theme-toggle .sam-icon-moon {
	display: inline-block;
	color: #F5F3EE;
}
:root:not([data-theme="dark"]) .sam-theme-toggle .sam-icon-moon {
	display: none;
}
:root:not([data-theme="dark"]) .sam-theme-toggle .sam-icon-sun {
	display: inline-block;
}


/* ============================================================================
   SAMPORNA v8.1 TRUE END-TO-END DARK MODE ([data-theme="dark"])
   ============================================================================ */
[data-theme="dark"],
[data-theme="dark"] body,
html[data-theme="dark"],
body[data-theme="dark"] {
    --bg-canvas: #0B0E0E !important;
    --bg-surface: #141A1B !important;
    --text-primary: #F5F7F7 !important;
    --text-secondary: #9BA5A6 !important;
    --color-surface-canvas: #0B0E0E !important;
    --color-surface-card: #141A1B !important;
    --color-text-primary: #F5F7F7 !important;
    --color-text-secondary: #9BA5A6 !important;
    --color-border-subtle: #202D2E !important;
    --color-border-default: #2A3B3C !important;
}

[data-theme="dark"] .sam-single-product-root,
[data-theme="dark"] .sam-product-hero-grid,
[data-theme="dark"] .sam-product-image-wrap,
[data-theme="dark"] .sam-product-image-container {
    background: #0B0E0E !important;
    border-color: #202D2E !important;
    color: #F5F7F7 !important;
}

[data-theme="dark"] .sam-aeo-factsheet,
[data-theme="dark"] .sam-story-card,
[data-theme="dark"] .sam-lab-benchmark-box,
[data-theme="dark"] .sam-circular-box,
[data-theme="dark"] .sam-product-faqs-section,
[data-theme="dark"] .sam-faq-item,
[data-theme="dark"] .sam-fulfilment-pill,
[data-theme="dark"] .sam-card-body,
[data-theme="dark"] .sam-nutrition-table-wrap {
    background: #141A1B !important;
    border-color: #202D2E !important;
    color: #F5F7F7 !important;
}

[data-theme="dark"] .sam-aeo-factsheet dt,
[data-theme="dark"] .sam-story-card h2,
[data-theme="dark"] .sam-product-title,
[data-theme="dark"] .sam-price-display,
[data-theme="dark"] .sam-f-title,
[data-theme="dark"] .sam-faqs-title,
[data-theme="dark"] .sam-faq-q,
[data-theme="dark"] .sam-nutrition-table th,
[data-theme="dark"] .sam-nutrition-table td,
[data-theme="dark"] .sam-nutrition-table td strong {
    color: #F5F3EE !important;
}

[data-theme="dark"] .sam-aeo-factsheet dd,
[data-theme="dark"] .sam-product-subhead,
[data-theme="dark"] .sam-tax-note,
[data-theme="dark"] .sam-section-micro-label,
[data-theme="dark"] .sam-f-sub,
[data-theme="dark"] .sam-availability-bar,
[data-theme="dark"] .sam-primary-ingredient,
[data-theme="dark"] .sam-culinary-desc,
[data-theme="dark"] .sam-storage-spec,
[data-theme="dark"] .sam-bench-content,
[data-theme="dark"] .sam-faq-a p {
    color: #A8A29E !important;
}

[data-theme="dark"] .sam-nutrition-table tr {
    border-bottom-color: #292524 !important;
}

[data-theme="dark"] .sam-share-btn {
    background: #1E1B18 !important;
    border-color: #292524 !important;
    color: #F5F3EE !important;
}

[data-theme="dark"] .sam-site-footer {
    background: #100E0C !important;
    border-top-color: #292524 !important;
    color: #F5F3EE !important;
}

[data-theme="dark"] .sam-site-footer h4,
[data-theme="dark"] .sam-site-footer a,
[data-theme="dark"] .sam-site-footer p {
    color: #F5F3EE !important;
}

[data-theme="dark"] .sam-site-footer a {
    color: #A8A29E !important;
}
[data-theme="dark"] .sam-site-footer a:hover {
    color: #72B83C !important;
}

[data-theme="dark"] .sam-assistant-panel,
[data-theme="dark"] #samAssistantPanel {
    background: #1E1B18 !important;
    border-color: #292524 !important;
    color: #F5F3EE !important;
}

[data-theme="dark"] #samAssistantMessages {
    background: #141210 !important;
}

[data-theme="dark"] #samAssistantMessages > div {
    background: #26221E !important;
    color: #F5F3EE !important;
}

[data-theme="dark"] #samAssistantForm {
    background: #1E1B18 !important;
    border-top-color: #292524 !important;
}

[data-theme="dark"] #samAssistantInput {
    background: #141210 !important;
    border-color: #3E3832 !important;
    color: #F5F3EE !important;
}

/* Ensure Primary Logo is always visible on both Desktop and Mobile (Never swap to symbol icon) */
.sam-logo-primary {
    display: block !important;
    height: 50px !important;
    width: auto !important;
    max-width: 240px !important;
    flex-shrink: 0 !important;
}
.sam-logo-primary svg {
    display: block !important;
    height: 50px !important;
    width: auto !important;
    max-width: 240px !important;
    object-fit: contain !important;
}
.sam-logo-mobile {
    display: none !important;
}
@media (max-width: 920px) {
    .sam-logo-primary {
        display: block !important;
        height: 42px !important;
        width: auto !important;
        max-width: 200px !important;
        flex-shrink: 0 !important;
    }
    .sam-logo-mobile {
        display: none !important;
    }
}

/* ============================================================================
   SAMPORNA v10.0 APPLE-STYLE PRE-CLICK PULL CARDS & SHOP ARCHIVE
   ============================================================================ */

/* Product Grid */
.sam-product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 28px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 56px 0 !important;
}

/* Card Container */
.sam-card-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sam-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-surface, #F2EFE9);
    border: 1px solid var(--color-border-subtle, #E5E0D8);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
}

.sam-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(16, 43, 45, 0.08);
    border-color: var(--brand-green, #1B4D24);
}

.sam-card-img-link:hover .sam-card-img {
    transform: scale(1.03);
}

.sam-card-title a:hover {
    color: var(--brand-green, #1B4D24) !important;
}

.sam-card-btn:hover {
    background: #143D1C !important;
    transform: translateY(-1px);
}

/* Dark Mode Card Styling */
[data-theme="dark"] .sam-shop-archive-root {
    background: #141210 !important;
    color: #F5F3EE !important;
}

[data-theme="dark"] .sam-shop-toolbar,
[data-theme="dark"] .sam-product-card,
[data-theme="dark"] .sam-no-results-card {
    background: #1E1B18 !important;
    border-color: #292524 !important;
}

[data-theme="dark"] .sam-shop-search,
[data-theme="dark"] .sam-cat-filter-form select,
[data-theme="dark"] .sam-sort-form select {
    background: #141210 !important;
    border-color: #383430 !important;
    color: #F5F3EE !important;
}

[data-theme="dark"] .sam-card-title a {
    color: #F5F3EE !important;
}

[data-theme="dark"] .sam-card-title a:hover {
    color: #72B83C !important;
}

[data-theme="dark"] .sam-card-punchline {
    color: #A8A29E !important;
}

[data-theme="dark"] .sam-card-footer {
    border-top-color: #292524 !important;
}

[data-theme="dark"] .sam-card-price span:last-child {
    color: #72B83C !important;
}

[data-theme="dark"] .sam-card-btn {
    background: #23632F !important;
    color: #F5F3EE !important;
}

[data-theme="dark"] .sam-card-btn:hover {
    background: #2D7A3B !important;
}

[data-theme="dark"] .sam-product-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    border-color: #72B83C;
}
