/* ============================================================================
   Aavant Peptides — Design System (measured from source over CDP)
   Loaded AFTER av-tailwind.css; this is the authoritative token declaration.
   Flat system-font design — NO custom/Google fonts (source loads none).
   ============================================================================ */

:root {
	/* --- Palette (HSL triplets, consumed by the Tailwind hsl(var(--x)) layer) --- */
	--background: 55 85% 98%;          /* #FEFEF6 cream page bg              */
	--foreground: 150 25% 15%;         /* #1D3026 dark-green text + footer bg */
	--card: 55 60% 99%;                /* #FDFBF4 card / product tile bg      */
	--card-foreground: 150 30% 10%;
	--popover: 55 60% 99%;
	--popover-foreground: 150 30% 10%;
	--primary: 147 75% 42%;            /* #1BBB63 brand green (buttons/links) */
	--primary-foreground: 0 0% 100%;
	--secondary: 147 30% 88%;
	--secondary-foreground: 147 60% 20%;
	--muted: 55 25% 85%;               /* #E2E1D4 secondary surface           */
	--muted-foreground: 150 10% 55%;   /* #81988C sage / muted text           */
	--accent: 147 60% 92%;
	--accent-foreground: 147 80% 22%;
	--destructive: 0 84% 60%;
	--destructive-foreground: 0 0% 100%;
	--border: 55 20% 86%;              /* #E2E1D3 hairline border             */
	--input: 55 20% 86%;
	--ring: 147 75% 42%;

	/* Brand light-green — logo mark / favicon / theme-color (measured #6DD03F) */
	--brand: 95 60% 53%;

	--radius: .5rem;                   /* base radius; cards use 1rem (rounded-2xl) */

	/* --- Type: flat system stack, no typeface contrast (weight/size only) --- */
	--font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-mono: "Helvetica Neue", Helvetica, Arial, sans-serif;

	/* --- Spacing / radius / shadow scale (derived from measured section rhythm) --- */
	--av-radius-sm: .5rem;
	--av-radius: 1rem;                 /* rounded-2xl product/quality cards   */
	--av-radius-lg: 1.5rem;            /* rounded-3xl quality banner          */
	--av-radius-pill: 9999px;
	--av-shadow-sm: 0 1px 2px rgba(29, 48, 38, .06);
	--av-shadow: 0 10px 30px -12px rgba(29, 48, 38, .18);
	--av-shadow-xl: 0 24px 60px -20px rgba(29, 48, 38, .28);
	--av-gutter: 1.25rem;              /* px-5 base gutter                    */
}

/* Base document — enforce the measured stack + colours regardless of Woo resets. */
html {
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body {
	font-family: var(--font-sans);
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
*, *::before, *::after { border-color: hsl(var(--border)); }

/* ============================================================================
   Component primitives — the reusable building blocks every phase consumes.
   ============================================================================ */

/* Buttons — solid green pill + outline pill (hero CTAs, section CTAs, ATC). */
.av-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .625rem;
	padding: .875rem 2rem;
	font-size: .875rem;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1;
	border-radius: var(--av-radius-pill);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.av-btn--primary {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}
.av-btn--primary:hover { background: hsl(var(--primary) / .9); }
.av-btn--outline {
	background: transparent;
	color: hsl(var(--foreground));
	border-color: hsl(var(--border));
}
.av-btn--outline:hover {
	color: hsl(var(--primary));
	border-color: hsl(var(--primary));
}

/* Size / spec chips — the bordered pills on product cards. */
.av-chip {
	display: inline-block;
	font-size: 10px;
	line-height: 1;
	padding: .125rem .5rem;
	border-radius: var(--av-radius-pill);
	border: 1px solid hsl(var(--border) / .4);
	color: hsl(var(--muted-foreground));
	white-space: nowrap;
}

/* Small pill badge (e.g. FEATURED). */
.av-badge {
	display: inline-flex;
	align-items: center;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: .125rem .625rem;
	border-radius: var(--av-radius-pill);
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* Card surface — cream tile, hairline border, hover lift. */
.av-card {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border) / .4);
	border-radius: var(--av-radius);
	overflow: hidden;
	transition: box-shadow .35s ease, border-color .35s ease;
}
.av-card:hover {
	box-shadow: var(--av-shadow-xl);
	border-color: hsl(var(--primary) / .2);
}
