/*
 * Category-accent + seasonal-override wiring (brand guide §2, brief
 * §1.6): "subtle shifts only — the site must still read as one brand."
 * Every category gets its accent from the theme.json custom token
 * `--wp--custom--category-accent--{slug}`; WooCommerce already adds a
 * `product_cat-{slug}` class to each loop item and a `term-{slug}`
 * class to category archive <body> tags, so no PHP is needed to apply
 * these — just cascade the right custom property down.
 */

:root {
	--vv-category-accent: var(--wp--custom--category-accent--default);
}

.term-indoor-plants,
.product_cat-indoor-plants { --vv-category-accent: var(--wp--custom--category-accent--indoor-plants); }

.term-outdoor-plants,
.product_cat-outdoor-plants { --vv-category-accent: var(--wp--custom--category-accent--outdoor-plants); }

.term-succulents,
.product_cat-succulents { --vv-category-accent: var(--wp--custom--category-accent--succulents); }

.term-cacti,
.product_cat-cacti { --vv-category-accent: var(--wp--custom--category-accent--cacti); }

.term-flowering-plants,
.product_cat-flowering-plants { --vv-category-accent: var(--wp--custom--category-accent--flowering-plants); }

.term-herbs-edibles,
.product_cat-herbs-edibles { --vv-category-accent: var(--wp--custom--category-accent--herbs-edibles); }

.term-gifts,
.product_cat-gifts { --vv-category-accent: var(--wp--custom--category-accent--gifts); }

.vv-category-tile__icon,
.vv-category-tile__accent-bar {
	color: var(--vv-category-accent);
	background-color: var(--vv-category-accent);
}

/* Seasonal accent override (brand guide §2): body.vv-seasonal-active is
   added by functions.php\body_classes() when the theme.json custom
   token `custom.seasonalAccent.enabled` is truthy. Re-points the button
   colour sitewide without touching any other token. */
body.vv-seasonal-active {
	--wp--preset--color--button-primary: var(--wp--custom--seasonal-accent--color);
}

/* ---------- Illustration sizing per usage context (brand guide §6) ---------- */

.vv-illustration--leaf-sprig-divider {
	width: 7.5rem;
	height: auto;
}

.vv-illustration--stem-leaf-divider {
	width: 100%;
	max-width: 25rem;
	height: auto;
	margin-inline: auto;
}

.vv-illustration--watering-can {
	width: 3.5rem;
	height: auto;
}

.vv-illustration--empty-pot,
.vv-illustration--empty-box {
	width: 4rem;
	height: auto;
}

.vv-illustration--growing-sprig-loading {
	width: 2.5rem;
	height: auto;
}

/* Icons/illustrations on a dark section (footer, forest-900 bands) need
   to flip to the cream ink so they stay visible — brand guide §2.7. */
.has-dark-section-bg-background-color .vv-icon,
.has-dark-section-bg-background-color .vv-illustration {
	color: var(--wp--preset--color--dark-section-text);
}
