/*
Theme Name:   Klein Begin
Theme URI:    https://kleinbeginpesto.co.za/
Description:  Artisan farm-shop child theme for Klein Begin Pesto & Products. Rustic, warm and photography-led — built on Astra.
Author:       Ormsy
Author URI:   https://ormsy.co.za/
Template:     astra
Version:      1.0.1
Text Domain:  kleinbegin
Tags:         woocommerce, food, artisan
*/

/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */

:root {
	/* Primary — basil through olive grove */
	--kb-green-deep:    #214F2C;
	--kb-green-forest:  #305E2C;
	--kb-olive:         #667A2B;
	--kb-green-darkest: #163720;  /* hovers / footer floor */

	/* Backgrounds — paper, parchment, linen */
	--kb-cream:         #F7F2E8;
	--kb-parchment:     #E9DFC7;
	--kb-beige:         #D7C5A1;

	/* Accents — tomato, sunflower, aged cheese */
	--kb-tomato:        #B4372F;
	--kb-gold:          #D9A530;
	--kb-cheese:        #E7BF58;

	/* Ink — warm near-black, never pure #000 */
	--kb-ink:           #2A2620;
	--kb-ink-soft:      #554F45;
	--kb-ink-faint:     #635D52;
	--kb-rule:          rgba(33, 79, 44, 0.16);

	/* Text-safe variants. The brand olive (#667A2B) and gold (#D9A530) are
	   decorative weights — as *text* on cream they fall to 4.29:1 and 2.01:1.
	   These darkened twins clear WCAG AA on both cream and parchment, so the
	   brand colour still reads while small copy stays legible. */
	--kb-olive-text:    #556825;  /* 5.55:1 on cream */
	--kb-bronze:        #7E5B0E;  /* gold's accessible twin, 5.55:1 on cream */

	/* Type */
	--kb-font-display:  "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--kb-font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--kb-font-script:   "Parisienne", "Snell Roundhand", cursive;

	/* Fluid type scale */
	--kb-size-hero:     clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
	--kb-size-h1:       clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
	--kb-size-h2:       clamp(1.875rem, 1.35rem + 2.1vw, 3rem);
	--kb-size-h3:       clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
	--kb-size-h4:       clamp(1.125rem, 1.03rem + 0.4vw, 1.375rem);
	--kb-size-body:     1.0625rem;
	--kb-size-small:    0.9375rem;
	--kb-size-eyebrow:  0.8125rem;

	/* Rhythm */
	--kb-section-y:     clamp(3.5rem, 2rem + 6vw, 7rem);
	--kb-gap:           clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem);
	--kb-radius:        18px;
	--kb-radius-lg:     26px;
	--kb-radius-pill:   999px;

	/* Elevation — warm, low, diffuse. Never grey. */
	--kb-shadow-sm:     0 2px 6px rgba(42, 38, 32, 0.06),
	                    0 8px 20px rgba(42, 38, 32, 0.05);
	--kb-shadow-md:     0 4px 12px rgba(42, 38, 32, 0.07),
	                    0 16px 36px rgba(42, 38, 32, 0.08);
	--kb-shadow-lg:     0 8px 22px rgba(42, 38, 32, 0.09),
	                    0 28px 60px rgba(42, 38, 32, 0.11);

	--kb-ease:          cubic-bezier(0.22, 0.61, 0.36, 1);

	/* Paper grain — inline SVG so there is never a network request */
	--kb-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* =========================================================================
   2. BASE
   ========================================================================= */

body {
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-body);
	line-height: 1.7;
	color: var(--kb-ink);
	background-color: var(--kb-cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Paper grain sits under everything, fixed so it never scrolls like a pattern */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image: var(--kb-grain);
	opacity: 0.035;
	pointer-events: none;
	z-index: 0;
	mix-blend-mode: multiply;
}

#page,
.site {
	position: relative;
	z-index: 1;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
	font-family: var(--kb-font-display);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.005em;
	color: var(--kb-green-deep);
}

h1, .entry-title { font-size: var(--kb-size-h1); }
h2 { font-size: var(--kb-size-h2); }
h3 { font-size: var(--kb-size-h3); }
h4 { font-size: var(--kb-size-h4); font-weight: 600; }

h5, h6 {
	font-family: var(--kb-font-body);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: var(--kb-size-small);
	color: var(--kb-ink-soft);
}

p { margin-bottom: 1.25em; }

a {
	color: var(--kb-green-forest);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 0.25s var(--kb-ease);
}

a:hover,
a:focus { color: var(--kb-tomato); }

/* Visible, on-brand focus ring everywhere (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--kb-gold);
	outline-offset: 2px;
	border-radius: 4px;
}

::selection {
	background: var(--kb-cheese);
	color: var(--kb-green-darkest);
}

img { border-radius: 6px; }

/* =========================================================================
   3. TYPOGRAPHIC UTILITIES
   ========================================================================= */

/* Small caps label above a heading */
.kb-eyebrow {
	display: inline-block;
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-eyebrow);
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--kb-olive-text);
	margin-bottom: 0.85rem;
}

/* Handwritten accent — short phrases ONLY, never body copy */
.kb-script {
	font-family: var(--kb-font-script);
	font-weight: 400;
	font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
	line-height: 1.3;
	color: var(--kb-bronze);
	letter-spacing: 0.01em;
}

.kb-script--ink { color: var(--kb-green-forest); }

/* On dark grounds the true brand gold clears AA (5.85:1) — use it there */
.kb-on-dark .kb-script,
.kb-section--green .kb-script,
.kb-hero .kb-script { color: var(--kb-gold); }

/* Opening paragraph of a story section */
.kb-lede {
	font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	line-height: 1.75;
	color: var(--kb-ink-soft);
	max-width: 62ch;
}

.kb-measure { max-width: 68ch; }

/* Olive-branch rule */
.kb-divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 2.5rem auto;
	color: var(--kb-olive);
}

.kb-divider::before,
.kb-divider::after {
	content: "";
	height: 1px;
	width: min(90px, 18vw);
	background: linear-gradient(90deg, transparent, var(--kb-rule), transparent);
}

.kb-divider svg { width: 26px; height: 26px; opacity: 0.75; }

/* =========================================================================
   4. BUTTONS
   ========================================================================= */

.kb-btn,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #respond input#submit,
input[type="submit"],
button.ast-button,
.ast-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	padding: 0.95em 2.1em;
	border: 1px solid transparent;
	border-radius: var(--kb-radius-pill);
	background-color: var(--kb-green-deep);
	color: var(--kb-cream);
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--kb-shadow-sm);
	transition: background-color 0.28s var(--kb-ease),
	            color 0.28s var(--kb-ease),
	            box-shadow 0.28s var(--kb-ease),
	            transform 0.28s var(--kb-ease);
}

.kb-btn:hover,
.kb-btn:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover,
input[type="submit"]:hover,
.ast-button:hover {
	background-color: var(--kb-green-darkest);
	color: #FFFDF7;
	box-shadow: var(--kb-shadow-md), inset 0 0 0 2px var(--kb-gold);
	transform: translateY(-2px);
}

/* Secondary — outlined, for "Our Story" next to "Shop Now" */
.kb-btn--ghost,
.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--kb-green-deep);
	border-color: var(--kb-green-deep);
	box-shadow: none;
}

.kb-btn--ghost:hover,
.kb-btn--ghost:focus,
.is-style-outline .wp-block-button__link:hover {
	background-color: var(--kb-green-deep);
	color: var(--kb-cream);
	border-color: var(--kb-green-deep);
	box-shadow: var(--kb-shadow-sm);
}

/* On dark backgrounds (hero, footer, newsletter) */
.kb-on-dark .kb-btn--ghost,
.kb-on-dark .is-style-outline .wp-block-button__link {
	color: var(--kb-cream);
	border-color: rgba(247, 242, 232, 0.65);
}

.kb-on-dark .kb-btn--ghost:hover,
.kb-on-dark .is-style-outline .wp-block-button__link:hover {
	background-color: var(--kb-cream);
	color: var(--kb-green-deep);
	border-color: var(--kb-cream);
}

.kb-btn--gold {
	background-color: var(--kb-gold);
	color: var(--kb-green-darkest);
}

.kb-btn--gold:hover,
.kb-btn--gold:focus {
	background-color: var(--kb-cheese);
	color: var(--kb-green-darkest);
	box-shadow: var(--kb-shadow-md);
}

/* =========================================================================
   5. SECTIONS & CARDS
   ========================================================================= */

.kb-section {
	position: relative;
	padding-block: var(--kb-section-y);
}

.kb-section--cream     { background-color: var(--kb-cream); }
.kb-section--parchment { background-color: var(--kb-parchment); }

.kb-section--green {
	background-color: var(--kb-green-deep);
	color: var(--kb-parchment);
}

.kb-section--green h2,
.kb-section--green h3,
.kb-on-dark h2,
.kb-on-dark h3 { color: var(--kb-cream); }

.kb-section--green .kb-eyebrow,
.kb-on-dark .kb-eyebrow { color: var(--kb-cheese); }

.kb-section--green .kb-lede,
.kb-on-dark .kb-lede { color: rgba(247, 242, 232, 0.86); }

.kb-section__head {
	text-align: center;
	max-width: 46rem;
	margin: 0 auto clamp(2rem, 1.2rem + 2.4vw, 3.5rem);
}

.kb-section__head .kb-lede { margin-inline: auto; }

.kb-card {
	background-color: var(--kb-cream);
	border: 1px solid var(--kb-rule);
	border-radius: var(--kb-radius);
	box-shadow: var(--kb-shadow-sm);
	overflow: hidden;
	transition: transform 0.35s var(--kb-ease),
	            box-shadow 0.35s var(--kb-ease);
}

.kb-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--kb-shadow-md);
}

.kb-card__body { padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); }

/* Wood-grain header strip for feature cards */
.kb-card--wood .kb-card__body {
	background:
		linear-gradient(180deg, rgba(215, 197, 161, 0.30), rgba(215, 197, 161, 0) 62%),
		var(--kb-cream);
}

.kb-grid {
	display: grid;
	gap: var(--kb-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.kb-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); }
.kb-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

/* =========================================================================
   6. HERO
   ========================================================================= */

.kb-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(30rem, 22rem + 30vh, 44rem);
	padding-block: clamp(4rem, 3rem + 6vw, 8rem);
	background-color: var(--kb-green-darkest);
	background-size: cover;
	background-position: center 60%;
	color: var(--kb-cream);
	overflow: hidden;
}

/* Legible copy over photography without washing the image out */
.kb-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(22, 55, 32, 0.88) 0%, rgba(22, 55, 32, 0.62) 42%, rgba(22, 55, 32, 0.18) 72%, rgba(22, 55, 32, 0.05) 100%);
	z-index: 1;
}

.kb-hero > * {
	position: relative;
	z-index: 2;
	width: 100%;
}

.kb-hero__inner { max-width: 40rem; }

.kb-hero__title {
	font-size: var(--kb-size-hero);
	line-height: 1.04;
	color: var(--kb-cream);
	margin-bottom: 1rem;
	text-shadow: 0 2px 18px rgba(11, 28, 16, 0.45);
}

.kb-hero__sub {
	font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
	line-height: 1.65;
	color: rgba(247, 242, 232, 0.93);
	max-width: 34rem;
	margin-bottom: 2rem;
	text-shadow: 0 1px 10px rgba(11, 28, 16, 0.4);
}

.kb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
}

.kb-hero .kb-eyebrow { color: var(--kb-cheese); }

/* Slow parallax drift — disabled for reduced-motion below */
.kb-hero--parallax { background-attachment: fixed; }

@media (max-width: 921px) {
	.kb-hero--parallax { background-attachment: scroll; }
	.kb-hero { text-align: left; }
}

/* =========================================================================
   7. "WHY KLEIN BEGIN" FEATURE ICONS
   ========================================================================= */

.kb-feature {
	text-align: center;
	padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem) 1.25rem;
}

.kb-feature__icon {
	display: grid;
	place-items: center;
	width: 74px;
	height: 74px;
	margin: 0 auto 1.1rem;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 28%, var(--kb-parchment), var(--kb-beige));
	border: 1px solid rgba(102, 122, 43, 0.28);
	box-shadow: var(--kb-shadow-sm);
	font-size: 1.9rem;
	line-height: 1;
}

.kb-feature__icon svg { width: 34px; height: 34px; color: var(--kb-green-forest); }

.kb-feature h3 {
	font-size: var(--kb-size-h4);
	margin-bottom: 0.4rem;
}

.kb-feature p {
	font-size: var(--kb-size-small);
	color: var(--kb-ink-soft);
	margin-bottom: 0;
}

/* =========================================================================
   8. HEADER & NAVIGATION
   ========================================================================= */

.site-header,
.ast-primary-header-bar,
.main-header-bar {
	background-color: var(--kb-cream) !important;
	border-bottom: 1px solid var(--kb-rule);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.ast-header-break-point .main-header-bar { box-shadow: var(--kb-shadow-sm); }

.main-header-menu > .menu-item > .menu-link,
.ast-header-navigation-wrap .menu-link {
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--kb-green-deep);
}

.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link {
	color: var(--kb-tomato);
}

/* Understated underline on the active page */
.main-header-menu > .menu-item > .menu-link { position: relative; }

.main-header-menu > .menu-item > .menu-link::after {
	content: "";
	position: absolute;
	left: 1.1em;
	right: 1.1em;
	bottom: 0.55em;
	height: 2px;
	background: var(--kb-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--kb-ease);
}

.main-header-menu > .menu-item > .menu-link:hover::after,
.main-header-menu > .current-menu-item > .menu-link::after { transform: scaleX(1); }

.site-logo-img img,
.custom-logo-link img { max-height: 82px; width: auto; }

/* =========================================================================
   9. FOOTER — farm style
   ========================================================================= */

.site-footer,
.footer-adv,
.ast-small-footer,
.site-below-footer-wrap,
.site-above-footer-wrap,
.site-primary-footer-wrap {
	background-color: var(--kb-green-darkest) !important;
	color: rgba(247, 242, 232, 0.82);
}

.site-footer a,
.ast-small-footer a,
.site-primary-footer-wrap a,
.site-below-footer-wrap a { color: rgba(247, 242, 232, 0.82); }

.site-footer a:hover,
.site-primary-footer-wrap a:hover,
.site-below-footer-wrap a:hover { color: var(--kb-cheese); }

.site-footer h2,
.site-footer h3,
.site-footer .widget-title,
.site-primary-footer-wrap .widget-title {
	font-family: var(--kb-font-display);
	color: var(--kb-cream);
	font-size: var(--kb-size-h4);
	letter-spacing: 0.01em;
}

.site-below-footer-wrap { border-top: 1px solid rgba(247, 242, 232, 0.14); }

/* =========================================================================
   10. WOOCOMMERCE — shop & archive
   ========================================================================= */

.woocommerce ul.products {
	display: grid;
	gap: clamp(1.25rem, 1rem + 1.4vw, 2.25rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

.woocommerce ul.products li.product {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
	display: flex;
	flex-direction: column;
	background-color: var(--kb-cream);
	border: 1px solid var(--kb-rule);
	border-radius: var(--kb-radius);
	overflow: hidden;
	box-shadow: var(--kb-shadow-sm);
	transition: transform 0.35s var(--kb-ease), box-shadow 0.35s var(--kb-ease);
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-5px);
	box-shadow: var(--kb-shadow-md);
}

.woocommerce ul.products li.product a img {
	margin: 0;
	border-radius: 0;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.7s var(--kb-ease);
}

.woocommerce ul.products li.product:hover a img { transform: scale(1.045); }

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: block;
	overflow: hidden;
	background: var(--kb-parchment);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
	font-family: var(--kb-font-display);
	font-size: 1.3125rem !important;
	font-weight: 600;
	line-height: 1.22;
	color: var(--kb-green-deep);
	padding: 1.1rem 1.25rem 0.35rem !important;
	margin: 0;
}

.woocommerce ul.products li.product .price {
	display: block;
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	font-weight: 600;
	color: var(--kb-ink-soft);
	padding: 0 1.25rem;
	margin-bottom: 0.9rem;
}

.woocommerce ul.products li.product .price del { opacity: 0.55; font-weight: 400; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--kb-tomato); }

.woocommerce ul.products li.product .button {
	margin: auto 1.25rem 1.4rem;
	align-self: flex-start;
}

/* Category chips instead of a plain dropdown */
.kb-shop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 2rem;
}

.kb-shop-filters a {
	display: inline-block;
	padding: 0.5em 1.15em;
	font-size: var(--kb-size-small);
	font-weight: 500;
	border-radius: var(--kb-radius-pill);
	border: 1px solid var(--kb-rule);
	background: var(--kb-cream);
	color: var(--kb-green-deep);
	text-decoration: none;
	transition: all 0.25s var(--kb-ease);
}

.kb-shop-filters a:hover,
.kb-shop-filters a[aria-current="page"] {
	background: var(--kb-green-deep);
	border-color: var(--kb-green-deep);
	color: var(--kb-cream);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
	font-size: var(--kb-size-small);
	color: var(--kb-ink-soft);
}

.woocommerce span.onsale,
.kb-badge {
	background-color: var(--kb-tomato);
	color: #FFF9F0;
	font-family: var(--kb-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--kb-radius-pill);
	padding: 0.4em 0.95em;
	min-height: 0;
	min-width: 0;
	line-height: 1.4;
}

.kb-badge--gold { background-color: var(--kb-gold); color: var(--kb-green-darkest); }
.kb-badge--olive { background-color: var(--kb-olive); color: #FFF9F0; }

/* =========================================================================
   11. WOOCOMMERCE — single product
   ========================================================================= */

.single-product div.product .product_title {
	font-size: var(--kb-size-h1);
	margin-bottom: 0.35rem;
}

.single-product div.product .price {
	font-family: var(--kb-font-body);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--kb-green-forest);
}

.single-product div.product .woocommerce-product-gallery img { border-radius: var(--kb-radius); }

.single-product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin-bottom: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	border-bottom: 1px solid var(--kb-rule);
}

.single-product .woocommerce-tabs ul.tabs::before { border: none; }

.single-product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: none;
	border-radius: var(--kb-radius-pill) var(--kb-radius-pill) 0 0;
	margin: 0;
	padding: 0;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after { content: none; }

.single-product .woocommerce-tabs ul.tabs li a {
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--kb-ink-soft);
	padding: 0.85em 1.4em;
	display: block;
}

.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li a:hover { color: var(--kb-green-deep); }

.single-product .woocommerce-tabs ul.tabs li.active {
	background: var(--kb-cream);
	box-shadow: inset 0 3px 0 var(--kb-gold);
}

.single-product .woocommerce-tabs .panel {
	background: var(--kb-cream);
	border: 1px solid var(--kb-rule);
	border-top: none;
	border-radius: 0 0 var(--kb-radius) var(--kb-radius);
	padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
}

/* Nutrition table — reads like a label, not a spreadsheet */
.kb-nutrition {
	width: 100%;
	max-width: 26rem;
	border-collapse: collapse;
	font-size: var(--kb-size-small);
	background: var(--kb-cream);
	border: 2px solid var(--kb-green-deep);
	border-radius: 8px;
	overflow: hidden;
}

.kb-nutrition caption {
	caption-side: top;
	text-align: left;
	font-family: var(--kb-font-display);
	font-size: var(--kb-size-h4);
	color: var(--kb-green-deep);
	padding-bottom: 0.5rem;
}

.kb-nutrition th,
.kb-nutrition td {
	padding: 0.6em 0.9em;
	border-bottom: 1px solid var(--kb-rule);
	text-align: left;
}

.kb-nutrition tbody tr:last-child th,
.kb-nutrition tbody tr:last-child td { border-bottom: none; }

.kb-nutrition td { text-align: right; font-variant-numeric: tabular-nums; }

.kb-spec-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.kb-spec-list li {
	position: relative;
	padding-left: 1.6em;
	font-size: var(--kb-size-small);
}

.kb-spec-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--kb-olive);
}

/* Variation dropdown (size) */
.woocommerce div.product form.cart .variations select {
	border: 1px solid var(--kb-rule);
	border-radius: var(--kb-radius-pill);
	padding: 0.7em 1.1em;
	background-color: var(--kb-cream);
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	min-height: 48px;
}

.woocommerce div.product form.cart .variations label {
	font-weight: 600;
	font-size: var(--kb-size-small);
	color: var(--kb-green-deep);
}

/* Single-option size: hide the select, show the value. JS adds the class. */
.kb-variation-locked select,
.kb-variation-locked .reset_variations { display: none !important; }

.kb-variation-locked__value {
	display: inline-block;
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	font-weight: 600;
	color: var(--kb-green-deep);
	background: var(--kb-parchment);
	border-radius: var(--kb-radius-pill);
	padding: 0.45em 1.15em;
}

.woocommerce .quantity .qty {
	border: 1px solid var(--kb-rule);
	border-radius: var(--kb-radius-pill);
	min-height: 48px;
	background-color: var(--kb-cream);
}

/* =========================================================================
   12. RECIPES
   ========================================================================= */

.kb-recipe-card { display: flex; flex-direction: column; height: 100%; }

.kb-recipe-card__media {
	aspect-ratio: 4 / 3;
	background: var(--kb-parchment);
	overflow: hidden;
}

.kb-recipe-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.7s var(--kb-ease);
}

.kb-recipe-card:hover .kb-recipe-card__media img { transform: scale(1.05); }

.kb-recipe-card h3 {
	font-size: var(--kb-size-h3);
	margin-bottom: 0.5rem;
}

.kb-recipe-card h3 a { color: inherit; text-decoration: none; }
.kb-recipe-card h3 a:hover { color: var(--kb-tomato); }

.kb-recipe-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem;
	font-size: var(--kb-size-small);
	color: var(--kb-ink-faint);
	margin-bottom: 0.75rem;
}

.kb-recipe-meta span { display: inline-flex; align-items: center; gap: 0.4em; }

/* Single recipe layout */
.kb-recipe-layout {
	display: grid;
	gap: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
}

@media (min-width: 900px) {
	.kb-recipe-layout { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
}

.kb-recipe-ingredients {
	background: var(--kb-parchment);
	border-radius: var(--kb-radius);
	padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
	position: sticky;
	top: 2rem;
}

.kb-recipe-steps { counter-reset: kb-step; list-style: none; padding: 0; margin: 0; }

.kb-recipe-steps li {
	counter-increment: kb-step;
	position: relative;
	padding-left: 3.25rem;
	margin-bottom: 1.6rem;
	min-height: 2.25rem;
}

.kb-recipe-steps li::before {
	content: counter(kb-step);
	position: absolute;
	left: 0;
	top: -0.1em;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--kb-green-deep);
	color: var(--kb-cream);
	font-family: var(--kb-font-display);
	font-size: 1.15rem;
	font-weight: 600;
}

/* "Made with" product strip inside a recipe */
.kb-uses {
	background: var(--kb-cream);
	border: 1px dashed rgba(102, 122, 43, 0.45);
	border-radius: var(--kb-radius);
	padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
	margin: 2rem 0;
}

/* =========================================================================
   13. TESTIMONIALS
   ========================================================================= */

.kb-quote {
	background: var(--kb-cream);
	border-radius: var(--kb-radius-lg);
	box-shadow: var(--kb-shadow-sm);
	padding: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
	position: relative;
	height: 100%;
}

.kb-quote::before {
	content: "\201C";
	position: absolute;
	top: 0.05em;
	left: 0.22em;
	font-family: var(--kb-font-display);
	font-size: 5.5rem;
	line-height: 1;
	color: var(--kb-beige);
	pointer-events: none;
}

.kb-quote blockquote {
	position: relative;
	border: none;
	margin: 0 0 1.1rem;
	padding: 0;
	font-family: var(--kb-font-display);
	font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
	font-style: italic;
	line-height: 1.5;
	color: var(--kb-ink);
}

.kb-quote cite {
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	font-style: normal;
	font-weight: 600;
	color: var(--kb-olive-text);
}

/* Bronze, not gold — star glyphs carry meaning, so they need AA on cream */
.kb-stars { color: var(--kb-bronze); letter-spacing: 0.12em; margin-bottom: 0.75rem; }
.kb-on-dark .kb-stars,
.kb-section--green .kb-stars { color: var(--kb-cheese); }

/* =========================================================================
   14. NEWSLETTER
   ========================================================================= */

.kb-newsletter {
	background-color: var(--kb-green-forest);
	background-image:
		radial-gradient(ellipse at 8% 120%, rgba(102, 122, 43, 0.55), transparent 55%),
		radial-gradient(ellipse at 92% -20%, rgba(102, 122, 43, 0.45), transparent 55%);
	color: var(--kb-cream);
	border-radius: var(--kb-radius-lg);
	padding: clamp(2rem, 1.5rem + 3vw, 4rem);
	text-align: center;
}

.kb-newsletter h2 { color: var(--kb-cream); }

.kb-newsletter__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	max-width: 34rem;
	margin: 1.75rem auto 0;
}

.kb-newsletter__form input[type="email"] {
	flex: 1 1 16rem;
	min-height: 52px;
	padding: 0.85em 1.4em;
	border-radius: var(--kb-radius-pill);
	border: 1px solid rgba(247, 242, 232, 0.4);
	background: rgba(247, 242, 232, 0.97);
	color: var(--kb-ink);
	font-size: var(--kb-size-body);
}

/* =========================================================================
   15. INSTAGRAM / GALLERY GRID
   ========================================================================= */

.kb-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
	gap: 0.6rem;
}

.kb-gallery a {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 10px;
	background: var(--kb-parchment);
}

.kb-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.6s var(--kb-ease), filter 0.4s var(--kb-ease);
}

.kb-gallery a:hover img { transform: scale(1.07); filter: saturate(1.08); }

/* =========================================================================
   16. TIMELINE (About page)
   ========================================================================= */

.kb-timeline {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0 0 0 2.5rem;
}

.kb-timeline::before {
	content: "";
	position: absolute;
	left: 0.72rem;
	top: 0.5rem;
	bottom: 0.5rem;
	width: 2px;
	background: linear-gradient(180deg, var(--kb-gold), var(--kb-olive), var(--kb-green-deep));
	opacity: 0.5;
}

.kb-timeline li { position: relative; margin-bottom: 2.25rem; }

.kb-timeline li::before {
	content: "";
	position: absolute;
	left: -2.15rem;
	top: 0.45rem;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--kb-cream);
	border: 3px solid var(--kb-olive);
	box-shadow: 0 0 0 4px var(--kb-cream);
}

.kb-timeline__year {
	display: block;
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-eyebrow);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kb-bronze);
	margin-bottom: 0.2rem;
}

.kb-timeline h3 { font-size: var(--kb-size-h4); margin-bottom: 0.35rem; }

/* =========================================================================
   17. STOCKISTS
   ========================================================================= */

.kb-stockist {
	background: var(--kb-cream);
	border: 1px solid var(--kb-rule);
	border-left: 4px solid var(--kb-olive);
	border-radius: var(--kb-radius);
	padding: 1.35rem 1.6rem;
}

.kb-stockist h3 { font-size: var(--kb-size-h4); margin-bottom: 0.3rem; }
.kb-stockist address { font-style: normal; font-size: var(--kb-size-small); color: var(--kb-ink-soft); }

/* =========================================================================
   18. MOBILE — sticky add to cart, tap targets
   ========================================================================= */

.kb-sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
	display: none;
	align-items: center;
	gap: 0.9rem;
	padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
	background: rgba(247, 242, 232, 0.97);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--kb-rule);
	box-shadow: 0 -6px 22px rgba(42, 38, 32, 0.13);
	transform: translateY(105%);
	transition: transform 0.35s var(--kb-ease);
}

.kb-sticky-atc.is-visible { transform: translateY(0); }

.kb-sticky-atc__meta { flex: 1 1 auto; min-width: 0; }

.kb-sticky-atc__title {
	display: block;
	font-family: var(--kb-font-display);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--kb-green-deep);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kb-sticky-atc__price {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--kb-ink-soft);
}

.kb-sticky-atc .kb-btn {
	flex: 0 0 auto;
	padding: 0.85em 1.6em;
	min-height: 48px;
}

@media (max-width: 921px) {
	.single-product .kb-sticky-atc { display: flex; }

	/* 44px minimum tap targets */
	.woocommerce a.button,
	.woocommerce button.button,
	.kb-btn,
	.main-header-menu .menu-link { min-height: 46px; }

	.kb-recipe-ingredients { position: static; }
}

/* =========================================================================
   19. MOTION
   ========================================================================= */

.kb-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.75s var(--kb-ease), transform 0.75s var(--kb-ease);
	will-change: opacity, transform;
}

.kb-reveal.is-in { opacity: 1; transform: none; }

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

	.kb-reveal { opacity: 1; transform: none; }
	.kb-hero--parallax { background-attachment: scroll; }
	.kb-card:hover,
	.woocommerce ul.products li.product:hover { transform: none; }
}

/* =========================================================================
   20. PRINT (recipes get printed — make that pleasant)
   ========================================================================= */

@media print {
	body::before,
	.site-header,
	.site-footer,
	.kb-sticky-atc,
	.kb-newsletter,
	.kb-gallery { display: none !important; }

	body { background: #fff; color: #000; font-size: 11pt; }
	.kb-recipe-layout { display: block; }
	.kb-recipe-ingredients { border: 1px solid #999; background: none; }
}

/* =========================================================================
   21. WOOCOMMERCE BLOCK GRIDS
   The block-based product grids (handpicked, category, best sellers) render
   .wc-block-grid markup rather than ul.products, so the card treatment has to
   be repeated for those class names.
   ========================================================================= */

.wc-block-grid__products {
	display: grid !important;
	gap: clamp(1.25rem, 1rem + 1.4vw, 2.25rem);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.wc-block-grid__product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	text-align: left;
	background-color: var(--kb-cream);
	border: 1px solid var(--kb-rule);
	border-radius: var(--kb-radius);
	overflow: hidden;
	box-shadow: var(--kb-shadow-sm);
	transition: transform 0.35s var(--kb-ease), box-shadow 0.35s var(--kb-ease);
}

.wc-block-grid__product:hover {
	transform: translateY(-5px);
	box-shadow: var(--kb-shadow-md);
}

.wc-block-grid__product-link { text-decoration: none; }

.wc-block-grid__product-image {
	display: block;
	margin: 0;
	background: var(--kb-parchment);
	overflow: hidden;
}

.wc-block-grid__product-image img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.7s var(--kb-ease);
}

.wc-block-grid__product:hover .wc-block-grid__product-image img { transform: scale(1.045); }

.wc-block-grid__product-title {
	font-family: var(--kb-font-display);
	font-size: 1.3125rem;
	font-weight: 600;
	line-height: 1.22;
	color: var(--kb-green-deep);
	padding: 1.1rem 1.25rem 0.35rem;
	margin: 0;
}

.wc-block-grid__product-price {
	display: block;
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	font-weight: 600;
	color: var(--kb-ink-soft);
	padding: 0 1.25rem;
	margin-bottom: 0.9rem;
}

.wc-block-grid__product-price del { opacity: 0.55; font-weight: 400; }
.wc-block-grid__product-price ins { text-decoration: none; color: var(--kb-tomato); }

.wc-block-grid__product-add-to-cart {
	margin: auto 1.25rem 1.4rem;
	justify-content: flex-start;
}

.wc-block-grid__product-onsale {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	background-color: var(--kb-tomato);
	color: #FFF9F0;
	border: none;
	border-radius: var(--kb-radius-pill);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.4em 0.95em;
}

.wc-block-grid__product { position: relative; }

/* Product-category block — cards, not a bulleted list */
.wp-block-woocommerce-product-categories ul,
.wc-block-product-categories-list {
	display: grid;
	gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.wc-block-product-categories-list-item { margin: 0; }

.wc-block-product-categories-list-item > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 8.5rem;
	padding: 1.75rem 1.25rem;
	text-align: center;
	text-decoration: none;
	font-family: var(--kb-font-display);
	font-size: var(--kb-size-h3);
	font-weight: 600;
	line-height: 1.2;
	color: var(--kb-green-deep);
	background:
		linear-gradient(180deg, rgba(215, 197, 161, 0.35), rgba(215, 197, 161, 0) 70%),
		var(--kb-cream);
	border: 1px solid var(--kb-rule);
	border-radius: var(--kb-radius);
	box-shadow: var(--kb-shadow-sm);
	transition: transform 0.35s var(--kb-ease), box-shadow 0.35s var(--kb-ease), color 0.25s var(--kb-ease);
}

.wc-block-product-categories-list-item > a:hover {
	transform: translateY(-4px);
	box-shadow: var(--kb-shadow-md);
	color: var(--kb-tomato);
}

.wc-block-product-categories-list-item img { max-width: 72px; border-radius: 8px; }

/* Placeholder art is a fact of life until the photography lands — at least
   let it sit inside the palette instead of shouting grey. */
img.woocommerce-placeholder {
	background: var(--kb-parchment);
	opacity: 0.55;
	filter: sepia(0.35) saturate(0.75);
}

/* =========================================================================
   22. HOME PAGE COVER HERO
   ========================================================================= */

.kb-home-hero { min-height: clamp(28rem, 20rem + 30vh, 44rem) !important; }

.kb-home-hero .wp-block-cover__inner-container {
	max-width: 46rem;
	margin-inline: auto;
}

.kb-home-hero .kb-hero__title,
.kb-home-hero h1 {
	font-size: var(--kb-size-hero);
	line-height: 1.04;
	color: var(--kb-cream);
	margin-bottom: 1rem;
	text-shadow: 0 2px 20px rgba(11, 28, 16, 0.5);
}

.kb-home-hero .kb-eyebrow { color: var(--kb-cheese); }

.kb-home-hero .kb-hero__sub {
	font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
	color: rgba(247, 242, 232, 0.94);
	margin-bottom: 2rem;
	text-shadow: 0 1px 12px rgba(11, 28, 16, 0.45);
}

/* Buttons in the hero read on dark */
.kb-home-hero .is-style-outline .wp-block-button__link {
	color: var(--kb-cream);
	border-color: rgba(247, 242, 232, 0.7);
	background: transparent;
}

.kb-home-hero .is-style-outline .wp-block-button__link:hover {
	background: var(--kb-cream);
	color: var(--kb-green-deep);
	border-color: var(--kb-cream);
}

/* =========================================================================
   23. BLOCK LAYOUT INSIDE THE STRETCHED TEMPLATE
   ========================================================================= */

.ast-page-builder-template .entry-content > .kb-section {
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.kb-section > .wp-block-group__inner-container,
.kb-section .ast-container {
	max-width: var(--kb-content-width, 1240px);
	margin-inline: auto;
}

.kb-why-columns { gap: var(--kb-gap); }

@media (max-width: 781px) {
	.kb-why-columns { gap: 0.5rem; }
}

.kb-split { gap: clamp(2rem, 1.4rem + 3vw, 4.5rem); }

/* Section heads and buttons need air between them and the grid */
.kb-section .wp-block-buttons { margin-top: clamp(2rem, 1.4rem + 2vw, 3rem); }

/* =========================================================================
   24. STICKY HEADER
   ========================================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 99;
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

/* =========================================================================
   25. PRODUCT STORY, FAQ, BREADCRUMB
   ========================================================================= */

.kb-product-story {
	font-family: var(--kb-font-display);
	font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
	font-style: italic;
	line-height: 1.55;
	color: var(--kb-ink-soft);
	border-left: 3px solid var(--kb-gold);
	padding-left: 1.1rem;
	margin-bottom: 1.5rem;
}

.kb-product-story p { margin-bottom: 0; }

.kb-allergens {
	background: rgba(180, 55, 47, 0.08);
	border-left: 3px solid var(--kb-tomato);
	border-radius: 0 8px 8px 0;
	padding: 0.85rem 1.1rem;
}

.kb-faq__item {
	border-bottom: 1px solid var(--kb-rule);
	padding: 0.35rem 0;
}

.kb-faq__item summary {
	cursor: pointer;
	list-style: none;
	padding: 0.85rem 2.5rem 0.85rem 0;
	position: relative;
	font-family: var(--kb-font-body);
	font-weight: 600;
	font-size: var(--kb-size-body);
	color: var(--kb-green-deep);
}

.kb-faq__item summary::-webkit-details-marker { display: none; }

.kb-faq__item summary::after {
	content: "";
	position: absolute;
	right: 0.6rem;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--kb-olive);
	border-bottom: 2px solid var(--kb-olive);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.3s var(--kb-ease);
}

.kb-faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.kb-faq__answer { padding: 0 0 1rem; color: var(--kb-ink-soft); }

.kb-breadcrumb,
.woocommerce-breadcrumb {
	font-size: var(--kb-size-small);
	color: var(--kb-ink-faint);
	margin-bottom: 1.25rem;
}

.kb-breadcrumb a,
.woocommerce-breadcrumb a { color: var(--kb-olive-text); }

.kb-breadcrumb span[aria-hidden] { margin: 0 0.45em; opacity: 0.5; }

/* =========================================================================
   26. RECIPE HERO & ARCHIVE
   ========================================================================= */

.kb-recipe-hero img {
	display: block;
	width: 100%;
	max-height: 30rem;
	object-fit: cover;
	border-radius: 0;
}

.kb-recipes-using { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem); }

.kb-recipe-body h2 { margin-top: 2.25rem; }

.kb-recipe-ingredients h2 { font-size: var(--kb-size-h3); margin-top: 0; }

.kb-empty {
	background: var(--kb-parchment);
	border-radius: var(--kb-radius);
	padding: 2rem;
	text-align: center;
	color: var(--kb-ink-soft);
}

/* Pagination */
.ast-pagination .page-numbers {
	border-radius: var(--kb-radius-pill);
	border: 1px solid var(--kb-rule);
	padding: 0.5em 1em;
	color: var(--kb-green-deep);
}

.ast-pagination .page-numbers.current,
.ast-pagination .page-numbers:hover {
	background: var(--kb-green-deep);
	color: var(--kb-cream);
	border-color: var(--kb-green-deep);
}

/* =========================================================================
   19. PRODUCT CARD PARITY  (home block grid  ==  shop archive)
   The shop uses classic `ul.products li.product` markup; the home page uses
   the Handpicked Products block (`.wc-block-grid__product`). Section 12 styled
   the classic path with !important and the block path without, so on the home
   page Astra's inline CSS won and the cards came out left-aligned with a 17px
   title and no padding. These rules make the block grid render identically to
   the shop card.

   The doubled `.wc-block-grid.wc-block-grid` is not a typo: WooCommerce ships
   `.wc-block-grid .wc-block-grid__products .wc-block-grid__product
    .wc-block-grid__product-title { font-size:1em; padding:0 }` in
   woocommerce-grid.min.css, which is 0-4-0 and loads after the theme. The
   repeated class takes these to 0-5-0 without resorting to !important.

   SPECIFICITY NOTE: Astra prints dynamic CSS inline in <head>, i.e. AFTER this
   stylesheet, so an override at the same specificity loses on source order.
   Everything below is deliberately 0-3-0 or deeper. Do not reach for
   !important — just go deeper than Astra.
   ========================================================================= */

.wc-block-grid__products .wc-block-grid__product {
	text-align: center;
}

.wc-block-grid.wc-block-grid .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title {
	font-family: var(--kb-font-display);
	font-size: 1.3125rem;
	font-weight: 600;
	line-height: 1.22;
	color: var(--kb-green-deep);
	padding: 1.1rem 1.25rem 0.35rem;
	margin: 0;
	text-align: center;
}

.wc-block-grid.wc-block-grid .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-price {
	display: block;
	width: auto;
	font-family: var(--kb-font-body);
	font-size: var(--kb-size-small);
	font-weight: 600;
	color: var(--kb-ink-soft);
	padding: 0 1.25rem;
	margin: 0 0 0.9rem;
	text-align: center;
}

/* Centre the button and let it size to its content. Left to itself the block
   stretches the anchor to the wrapper's height (48px against the shop's 36px). */
.wc-block-grid.wc-block-grid .wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-add-to-cart {
	display: flex;
	justify-content: center;
	margin: auto 1.25rem 1.15rem;
	padding: 0;
}

.wc-block-grid__product .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link,
.wc-block-grid__products .wc-block-grid__product .wp-block-button .wp-block-button__link,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product a.button.alt,
.woocommerce ul.products li.product a.add_to_cart_button {
	font-size: 0.8125rem;
	letter-spacing: 0.045em;
	line-height: 1.2;
	padding: 0.7em 1.5em;
	height: auto;
	width: auto;
	max-width: 100%;
	margin: 0;
	box-shadow: none;
}

.woocommerce ul.products li.product a.button {
	margin: auto 1.25rem 1.15rem;
}

.wc-block-grid__product .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:hover,
.wc-block-grid__product .wc-block-grid__product-add-to-cart.wp-block-button .wp-block-button__link:focus,
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product a.button:focus {
	box-shadow: inset 0 0 0 2px var(--kb-gold);
	transform: translateY(-1px);
}

/* The whole card is already one link, so the title must not also render as
   underlined inline link text. Astra underlines content links by default. */
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-link,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-link:hover,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-link:focus,
.wc-block-grid__products .wc-block-grid__product .wc-block-grid__product-title,
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce ul.products li.product a.woocommerce-loop-product__link:hover {
	text-decoration: none;
}

/* =========================================================================
   20. PRODUCT CATEGORY TILES
   Section 18 styles the tile card, but two things beat it at runtime:
   Astra's inline `.ast-single-post .entry-content a` (0-2-1) re-underlines the
   link, and WooCommerce caps `__image` at 50px so the jar renders as a small
   white square floating in a large tile. Selectors here are 0-3-1 or deeper.
   ========================================================================= */

.wc-block-product-categories .wc-block-product-categories-list .wc-block-product-categories-list-item > a,
.wc-block-product-categories .wc-block-product-categories-list .wc-block-product-categories-list-item > a:hover,
.wc-block-product-categories .wc-block-product-categories-list .wc-block-product-categories-list-item > a:focus,
.wc-block-product-categories .wc-block-product-categories-list .wc-block-product-categories-list-item__name {
	text-decoration: none;
}

/* The pack shots are photographed on white. Rather than let that read as a
   stray white square on cream, make it a deliberate white disc. */
.wc-block-product-categories .wc-block-product-categories-list .wc-block-product-categories-list-item__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	max-width: 92px;
	padding: 6px;
	margin: 0 auto;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: inset 0 0 0 1px var(--kb-rule);
	overflow: hidden;
}

.wc-block-product-categories .wc-block-product-categories-list .wc-block-product-categories-list-item__image img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
	border-radius: 0;
}

.wc-block-product-categories .wc-block-product-categories-list .wc-block-product-categories-list-item__name {
	display: block;
	font-family: var(--kb-font-display);
	font-size: 1.1875rem;
	line-height: 1.2;
	color: var(--kb-green-deep);
}
