/**
 * OfferChef — main stylesheet.
 *
 * Organised as: 1) tokens, 2) reset/base, 3) layout, 4) components,
 * 5) header, 6) homepage, 7) blog, 8) WooCommerce, 9) footer, 10) responsive.
 *
 * RTL-first: uses CSS logical properties (inline-start/end, margin-inline …) so
 * the layout mirrors correctly under dir="rtl" (the default) and dir="ltr".
 */

/* ============================================================= 1. TOKENS */
:root {
	/* Palette (OfferChef brand: light, lime/green with gold + orange accents) */
	--c-bg: #ffffff;
	--c-bg-alt: #f2f8e2;       /* signature pale-green section tint */
	--c-surface: #ffffff;
	--c-text: #222222;
	--c-heading: #000000;
	--c-green: #61ce70;        /* primary brand action green */
	--c-green-2: #23a455;      /* darker green — hovers */
	--c-lime: #b9d467;         /* signature lime highlight */
	--c-dark: #1f2a17;         /* dark sections (footer, bands) — deep olive-charcoal */
	--c-cream: #ffffff;        /* text/detail on dark backgrounds */
	--c-gold: #d4af37;         /* gold accent */
	--c-gold-2: #f9a647;       /* orange accent */
	--c-border: #e9e9e9;
	--c-border-strong: #d6ddc4;
	--c-badge-bg: #e8f2c6;     /* pale lime */
	--c-badge-text: #33691e;   /* deep lime-green */
	--c-muted: #7a7a7a;
	--c-oos-bg: #eef0ea;

	/* Typography */
	--font-body: "Noto Sans Hebrew", "Segoe UI", system-ui, sans-serif;
	--font-head: "Frank Ruhl Libre", "Noto Sans Hebrew", Georgia, serif;
	--fs-base: 1rem;          /* 16px */
	--fs-sm: 0.875rem;        /* 14px */
	--fs-xs: 0.75rem;         /* 12px */
	--fs-lg: 1.125rem;        /* 18px */
	--fs-h1: clamp(2rem, 4vw, 2.5rem);
	--fs-h2: clamp(1.5rem, 3vw, 2.25rem);
	--fs-h3: 1.0625rem;
	--fs-display: clamp(2.25rem, 5vw, 3.875rem);
	--lh-body: 1.8;
	--lh-head: 1.25;
	--ls-body: 0.01em;

	/* Layout */
	--container: 1520px;
	--container-narrow: 820px;
	--gutter: 20px;
	--section-gap: clamp(42px, 6vw, 60px);
	--radius-media: 12px;
	--radius-card: 12px;
	--radius-input: 12px;
	--radius-pill: 999px;

	/* Effects */
	--shadow-sm: 0 1px 2px rgba(29, 29, 29, 0.05);
	--shadow-md: 0 12px 32px rgba(29, 29, 29, 0.08);
	--transition: 0.25s ease;

	/* Header height for sticky offsets */
	--header-h: 96px;
}

/* ========================================================== 2. RESET/BASE */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	letter-spacing: var(--ls-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-green); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--c-heading);
	line-height: var(--lh-head);
	font-weight: 700;
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
	outline: 2px solid var(--c-green);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	inset-inline-start: 8px;
	inset-block-start: -60px;
	z-index: 1000;
	background: var(--c-green);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	transition: inset-block-start var(--transition);
}
.skip-link:focus { inset-block-start: 8px; color: #fff; }

.offerchef-icon { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; }

/* ============================================================ 3. LAYOUT */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section-gap); }

.content-area { padding-block: var(--section-gap); }
.content-area--narrow { max-width: var(--container-narrow); margin-inline: auto; }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.section__title { font-size: var(--fs-h2); margin: 0; }
.section__link {
	flex: none;
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--c-green);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.page-header { text-align: center; margin-bottom: var(--section-gap); }
.page-header__title { font-size: var(--fs-h1); }
.page-header__desc { color: var(--c-muted); max-width: 60ch; margin-inline: auto; }

/* ========================================================= 4. COMPONENTS */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	min-width: 132px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.button:hover { transform: translateY(-1px); }

.button--primary,
.button { background: var(--c-green); color: #fff; }
.button--primary:hover,
.button:hover { background: var(--c-green-2); color: #fff; }

.button--gold { background: var(--c-gold); color: var(--c-heading); }
.button--gold:hover { background: var(--c-gold-2); color: var(--c-heading); }

.button--secondary { background: transparent; color: var(--c-text); border-color: var(--c-border-strong); }
.button--secondary:hover { background: var(--c-text); color: #fff; }

.button--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.button--ghost-light:hover { background: #fff; color: var(--c-green); }

/* Media placeholders (shown until real imagery is added) */
.hero__placeholder,
.promo__placeholder,
.recipe-card__placeholder,
.post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(135deg, rgba(97, 206, 112, 0.20), rgba(185, 212, 103, 0.30)),
		var(--c-bg-alt);
}

/* Newsletter form (shared) */
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__input {
	flex: 1 1 220px;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius-input);
	background: #fff;
	font: inherit;
	color: var(--c-text);
}
.newsletter__input:focus-visible { outline-offset: 0; border-color: var(--c-green); }

/* Search form */
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form__input {
	flex: 1;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius-input);
	background: #fff;
	font: inherit;
}
.search-form__submit {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px; height: 46px;
	border: none;
	border-radius: var(--radius-input);
	background: var(--c-green);
	color: #fff;
}

/* Pagination */
.offerchef-pagination { margin-top: var(--section-gap); }
.offerchef-pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.offerchef-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill);
	font-weight: 700;
}
.offerchef-pagination .page-numbers.current { background: var(--c-green); color: #fff; border-color: var(--c-green); }

/* ============================================================ 5. HEADER */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	transition: background var(--transition);
}
.header__bar {
	transition: margin var(--transition), max-width var(--transition),
		border-radius var(--transition), box-shadow var(--transition);
}

/* Top of page: header floats as a rounded white pill. */
.site-header:not(.is-scrolled) { background: transparent; }
.site-header:not(.is-scrolled) .header__bar {
	max-width: calc(var(--container) - 40px);
	margin: 14px auto 0;
	background: var(--c-surface);
	border-radius: 44px;
	border-bottom: none;
	box-shadow: var(--shadow-md);
}

/* After scrolling: header settles into a flat, full-width bar. */
.site-header.is-scrolled { background: var(--c-surface); box-shadow: var(--shadow-sm); }

.header__promo {
	margin: 0;
	background: var(--c-lime);
	color: var(--c-heading);
	text-align: center;
	font-size: var(--fs-sm);
	padding: 8px 16px;
}

.header__bar { border-bottom: 1px solid var(--c-border); }
.header__bar-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	min-height: var(--header-h);
}

.header__branding { text-align: center; grid-column: 2; }
.header__logo-text {
	font-family: var(--font-head);
	font-size: 1.75rem;
	font-weight: 900;
	color: var(--c-heading);
	letter-spacing: 0.02em;
}
.custom-logo { margin-inline: auto; max-height: 64px; width: auto; }

.header__actions { display: flex; align-items: center; gap: 6px; }
.header__actions--start { justify-content: flex-start; }
.header__actions--end { justify-content: flex-end; grid-column: 3; }

.header__action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	background: none; border: none;
	color: var(--c-text);
	border-radius: var(--radius-pill);
}
.header__action:hover { background: var(--c-bg-alt); color: var(--c-green-2); }

.header__cart-count {
	position: absolute;
	inset-block-start: 4px;
	inset-inline-end: 2px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	background: var(--c-green);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	border-radius: var(--radius-pill);
}

/* Labelled "Categories" toggle on the start side */
.header__menu-toggle { width: auto; gap: 8px; padding-inline: 12px; }
.header__action-label { font-weight: 600; font-size: var(--fs-sm); }

/* Header dropdown panels (search + categories/menu), toggled by header buttons. */
.header__panel {
	background: var(--c-surface);
	border-block: 1px solid var(--c-border);
	box-shadow: var(--shadow-sm);
	max-height: calc(100vh - var(--header-h));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.header__panel[hidden] { display: none; }
.header__search { padding-block: 16px; }
.header__menu-panel { padding-block: 20px; }
.header__menu-inner { display: flex; flex-direction: column; gap: 20px; }

/* Primary menu links inside the categories panel — managed in Appearance → Menus. */
.header__nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.header__nav-list a { display: block; padding: 6px 0; font-weight: 700; color: var(--c-heading); }
.header__nav-list a:hover { color: var(--c-green-2); }

/* Category grid inside the panel */
.category-bar__title {
	margin: 0 0 4px;
	font-size: var(--fs-sm);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--c-muted);
}
.category-bar__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.category-bar__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 88px;
	padding: 12px 10px;
	color: var(--c-text);
	text-align: center;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.category-bar__link:hover { background: var(--c-bg-alt); color: var(--c-green-2); border-color: var(--c-border-strong); }
.category-bar__icon { color: var(--c-green); }
.category-bar__label { font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }

/* ========================================================== 6. HOMEPAGE */
/* Hero */
.hero { position: relative; overflow: hidden; }
.hero__track { display: flex; }
.hero__slide {
	position: relative;
	flex: 0 0 100%;
	min-height: clamp(360px, 56vw, 620px);
	display: none;
}
.hero__slide.is-active { display: block; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Dim real imagery so the white hero copy stays legible. */
.hero__media:has(.hero__image)::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }
.hero__content {
	position: relative;
	z-index: 2;
	min-height: inherit;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 18px;
	padding-block: 40px;
	color: #fff;
	text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}
.hero__eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--fs-sm); font-weight: 700; }
.hero__title { color: #fff; font-size: var(--fs-display); max-width: 16ch; margin: 0; }

.hero__arrow {
	position: absolute;
	inset-block-start: 50%;
	transform: translateY(-50%);
	width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, 0.85);
	color: var(--c-green);
	border: none; border-radius: var(--radius-pill);
	z-index: 3;
}
.hero__arrow--prev { inset-inline-start: 20px; }
.hero__arrow--next { inset-inline-end: 20px; }

.hero__dots { position: absolute; inset-block-end: 20px; inset-inline: 0; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero__dot { width: 10px; height: 10px; border-radius: var(--radius-pill); border: none; background: rgba(255, 255, 255, 0.55); padding: 0; }
.hero__dot.is-active { background: #fff; width: 26px; }

/* Intro */
.intro { text-align: center; }
.intro__inner { max-width: 720px; margin-inline: auto; }
.intro__eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--fs-sm); font-weight: 700; color: var(--c-gold); margin-bottom: 8px; }
.intro__title { font-size: var(--fs-h1); }
.intro__text { color: var(--c-muted); font-size: var(--fs-lg); }

/* Category grid — sits on the signature pale-green tint */
.categories { background: var(--c-bg-alt); }
.categories__grid {
	list-style: none; padding: 0; margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 12px;
}
.categories__link {
	display: flex; flex-direction: column; align-items: center; gap: 12px;
	padding: 24px 12px;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius-card);
	text-align: center;
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.categories__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-border-strong); color: var(--c-green); }
.categories__icon { color: var(--c-green); display: inline-flex; }
.categories__thumb { width: 68px; height: 68px; border-radius: var(--radius-pill); object-fit: cover; }
.categories__label { font-weight: 700; font-size: var(--fs-sm); }

/* Promo blocks */
.promos__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.promo {
	display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
	border-radius: var(--radius-card);
	background: var(--c-surface);
	border: 1px solid var(--c-border);
}
.promo--green { background: var(--c-dark); border-color: var(--c-dark); color: var(--c-cream); }
.promo--green .promo__title { color: #fff; }
.promo__media { position: relative; min-height: 260px; overflow: hidden; }
.promo__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__body { padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.promo__eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: var(--fs-xs); font-weight: 700; color: var(--c-gold); }
.promo__title { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.promo__cta { align-self: flex-start; margin-top: 8px; }

/* Brands */
.brands { text-align: center; border-block: 1px solid var(--c-border); }
.brands__title { font-size: var(--fs-h3); text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-muted); font-family: var(--font-body); margin-bottom: 24px; }
.brands__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px 48px; }
.brands__wordmark { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--c-text); opacity: 0.7; transition: opacity var(--transition); }
.brands__item:hover .brands__wordmark { opacity: 1; }

/* Recipes */
.recipes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.recipe-card { background: var(--c-surface); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--c-border); }
.recipe-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.recipe-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.recipe-card:hover .recipe-card__image { transform: scale(1.04); }
.recipe-card__body { padding: 20px 22px 26px; }
.recipe-card__date { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.recipe-card__title { font-size: var(--fs-lg); margin: 6px 0 8px; }
.recipe-card__excerpt { color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }

/* Newsletter band */
.newsletter-band { background: var(--c-dark); color: var(--c-cream); }
.newsletter-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter-band__title { color: #fff; font-size: var(--fs-h2); margin: 0 0 8px; }
.newsletter-band__text { margin: 0; max-width: 46ch; }
.newsletter--band { flex: 1 1 360px; max-width: 480px; }
.newsletter--band .newsletter__input { border-color: transparent; }

/* ============================================================== 7. BLOG */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-card); overflow: hidden; }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card__image { transform: scale(1.04); }
.post-card__body { padding: 20px 22px 26px; }
.post-card__title { font-size: var(--fs-lg); margin: 6px 0 8px; }
.post-card__excerpt { color: var(--c-muted); font-size: var(--fs-sm); }
.post-card__more { font-weight: 700; color: var(--c-green); font-size: var(--fs-sm); }
.entry__date { font-size: var(--fs-xs); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Single post: editorial layout ------------------------------------- */
.single-post { position: relative; padding-top: clamp(24px, 4vw, 48px); }

.entry__header { text-align: center; margin-bottom: 26px; }

.entry__eyebrow { margin-bottom: 14px; }
.entry__eyebrow a {
	display: inline-block; font-size: var(--fs-xs); font-weight: 700;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-green-2);
	background: var(--c-badge-bg); padding: 5px 14px; border-radius: var(--radius-pill);
}

.entry__byline {
	display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center;
	gap: 8px; font-size: var(--fs-sm); color: var(--c-muted);
}
.entry__byline-by { color: var(--c-muted); }
.entry__author { display: inline-flex; align-items: center; gap: 8px; color: var(--c-heading); font-weight: 700; }
.entry__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.entry__byline-sep { color: var(--c-border-strong); }
.entry__reading { display: inline-flex; align-items: center; gap: 5px; }
.entry__reading .offerchef-icon { color: var(--c-green-2); }

.entry__title { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 18px 0 22px; line-height: 1.15; }

/* Share + engagement bar */
.entry__share { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.entry__share-list { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.entry__share-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	color: #fff; background: var(--c-dark); transition: transform 0.15s ease, opacity 0.15s ease;
}
.entry__share-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.entry__share-btn--facebook  { background: #1877f2; }
.entry__share-btn--whatsapp  { background: #25d366; }
.entry__share-btn--pinterest { background: #e60023; }
.entry__share-btn--copy      { background: var(--c-dark); }
.entry__share-btn.is-copied  { background: var(--c-green-2); }

.entry__stats { display: inline-flex; align-items: center; gap: 18px; color: var(--c-muted); font-size: var(--fs-sm); font-weight: 600; }
.entry__stat { display: inline-flex; align-items: center; gap: 6px; }
.entry__stat .offerchef-icon { color: var(--c-green-2); }

.entry__featured {
	margin: 0 0 34px; border-radius: var(--radius-media); overflow: hidden;
	box-shadow: var(--shadow-md);
	/* Break out slightly wider than the narrow text column for impact. */
	width: min(100%, 1040px); margin-inline: auto;
}
.entry__featured-image { display: block; width: 100%; height: auto; }
.entry__featured-caption { font-size: var(--fs-xs); color: var(--c-muted); text-align: center; padding: 10px 12px 0; }

.entry__content { font-size: var(--fs-lg); }
.entry__content img { border-radius: var(--radius-media); }
.entry__content h2, .entry__content h3 { margin-top: 1.4em; }

.entry__footer { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--c-border); }
.entry__tags a {
	display: inline-block; margin: 0 0 8px; padding: 4px 12px; font-size: var(--fs-xs);
	background: var(--c-bg-alt); border-radius: var(--radius-pill); color: var(--c-badge-text);
}

/* Floating edge arrows to adjacent posts */
.post-sidenav__arrow {
	position: fixed; top: 50%; transform: translateY(-50%); z-index: 40;
	display: flex; align-items: center; justify-content: center;
	width: 52px; height: 52px; border-radius: 50%;
	background: #fff; color: var(--c-dark); box-shadow: var(--shadow-md);
	transition: background 0.15s ease, color 0.15s ease;
}
.post-sidenav__arrow:hover { background: var(--c-green); color: #fff; }
.post-sidenav__arrow--next { inset-inline-start: 22px; }
.post-sidenav__arrow--prev { inset-inline-end: 22px; }

/* Bottom prev/next cards */
.post-navigation--cards { margin-top: 40px; }
.post-navigation--cards .nav-links { display: flex; gap: 16px; flex-wrap: wrap; }
.post-navigation--cards .nav-previous,
.post-navigation--cards .nav-next { flex: 1 1 240px; }
.post-navigation--cards .nav-next { text-align: start; }
.post-navigation--cards .nav-previous { text-align: end; }
.post-navigation--cards a {
	display: block; padding: 18px 22px; border: 1px solid var(--c-border);
	border-radius: var(--radius-card); background: var(--c-surface); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-navigation--cards a:hover { border-color: var(--c-green); box-shadow: var(--shadow-sm); }
.post-navigation--cards .nav-subtitle { display: block; font-size: var(--fs-xs); color: var(--c-green-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.post-navigation--cards .nav-title { font-weight: 700; color: var(--c-heading); }

.widget-area .widget { margin-bottom: 32px; }
.widget__title { font-size: var(--fs-h3); margin-bottom: 12px; }

.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.comments__list { list-style: none; padding: 0; }
.no-results { text-align: center; padding-block: var(--section-gap); }

/* ======================================================= 8. WOOCOMMERCE */
/* WooCommerce ships a float-based (and, on newer versions, its own grid) layout
   whose `.woocommerce ul.products` selector outranks a bare `ul.products`, so we
   must match that specificity to win. Otherwise the shop/category pages fall back
   to WC's ragged float columns (items start from the left, rows break unevenly). */
.product-grid,
.woocommerce ul.products,
ul.products {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: var(--gutter);
	direction: rtl; /* RTL grid flow even when WC loads LTR (English-locale) assets. */
}
/* Neutralise WC's per-item float / width / clear / grid placement so the cards
   obey OUR grid and fill right-to-left with no ragged holes. `grid-column: auto`
   defeats any leftover `.first { clear/column-start }` rule that would push the
   first card into its own row and leave an empty cell. */
.woocommerce ul.products li.product,
ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	clear: none !important;
	grid-column: auto !important;
}
/* WooCommerce adds a table-based clearfix (`ul.products::before/::after`). On a
   grid container those pseudo-elements become GRID ITEMS — `::before` steals the
   first cell (rightmost in RTL) and shoves every product one column over, leaving
   a gap. Removing them is the actual fix for the "doesn't start from the right"
   ragged first row. */
.product-grid::before,
.product-grid::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
	content: none !important;
	display: none !important;
}
.wc-main .container > ul.products { margin-top: 8px; }

.product-card { position: relative; margin: 0 !important; text-align: center; }
.product-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--radius-media);
	background: var(--c-surface);
	margin-bottom: 14px;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.05); }

/* Selectors mirror WooCommerce's own `.woocommerce span.onsale` (0,2,1) and add
   `!important` so the sale flash drops WC's negative-margin corner placement —
   that margin pushed the badge above the media box, where `overflow:hidden`
   clipped it ("the hidden part"). */
.product-card__badge,
.woocommerce .product-card span.onsale {
	position: absolute !important;
	inset-block-start: 10px !important;
	inset-inline-start: 10px !important;
	inset-inline-end: auto !important;
	z-index: 2;
	margin: 0 !important;
	min-height: 0;
	min-width: 0;
	background: var(--c-badge-bg);
	color: var(--c-badge-text);
	font-size: var(--fs-xs);
	font-weight: 700;
	line-height: 1.4;
	padding: 4px 10px;
	border-radius: 0 !important;
}
/* Out-of-stock badge sits in the opposite corner so it never overlaps a sale badge. */
.product-card__badge--oos {
	background: var(--c-oos-bg);
	color: var(--c-muted);
	inset-inline-start: auto !important;
	inset-inline-end: 10px !important;
}

.product-card__title-link { display: block; }
.product-card .woocommerce-loop-product__title,
.product-card__body h2,
.product-card__body h3 {
	font-family: var(--font-body);
	font-size: var(--fs-sm);
	font-weight: 700;
	color: var(--c-text);
	margin: 0 0 6px;
	padding: 0;
}
.product-card .price {
	color: var(--c-green);
	font-weight: 700;
	font-size: var(--fs-base);
	display: block;
}
.product-card .price del { color: var(--c-muted); font-weight: 400; margin-inline-end: 6px; opacity: 0.7; }
.product-card .price ins { text-decoration: none; }
.product-card .star-rating { margin: 4px auto 6px; font-size: 0.8em; }

/* Circular "+" add-to-cart, overlaid on the card media */
.product-card__add {
	position: absolute;
	inset-block-end: 12px;
	inset-inline-start: 12px;
	z-index: 3;
	width: 46px;
	height: 46px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border-radius: var(--radius-pill);
	background: var(--c-green);
	color: #fff;
	box-shadow: var(--shadow-md);
}
.product-card__add:hover { background: var(--c-green-2); color: #fff; transform: translateY(-2px); }
.product-card__add.loading { opacity: 0.6; pointer-events: none; }
.product-card__add.added { background: var(--c-green-2); }
/* AJAX "View cart" link — header count reflects the add, so keep the card clean */
.product-card .added_to_cart { display: none; }

/* Sale styling: peach "special price" badge + red sale price */
.product-card__badge.onsale,
.woocommerce span.onsale {
	background: #ffe6d5;
	color: #c2410c;
}
.product-card .price ins { color: #d64545; }
.product-card .price ins .amount { color: #d64545; }

/* ---- Product carousel (homepage bestsellers) ---- */
.product-carousel { position: relative; }
.product-carousel ul.products {
	display: flex !important; /* Beat the base grid's !important so the row scrolls. */
	grid-template-columns: none !important;
	gap: var(--gutter);
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding-block: 6px;
	scrollbar-width: none;
}
.product-carousel ul.products::-webkit-scrollbar { display: none; }
.product-carousel .product-card {
	flex: 0 0 clamp(220px, 24%, 280px);
	scroll-snap-align: start;
}
.product-carousel__nav { display: flex; gap: 8px; flex: none; }
.product-carousel__arrow {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius-pill);
	background: #fff;
	color: var(--c-heading);
	transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.product-carousel__arrow:hover { background: var(--c-bg-alt); color: var(--c-green-2); }
.product-carousel__arrow:disabled { opacity: 0.35; cursor: default; }

/* Shop toolbar */
.woocommerce-result-count { color: var(--c-muted); font-size: var(--fs-sm); }
.woocommerce-ordering select {
	min-height: 44px; padding: 0 14px;
	border: 1px solid var(--c-border-strong); border-radius: var(--radius-pill);
	background: #fff; font: inherit;
}
.woocommerce-products-header__title.page-title { font-size: var(--fs-h1); text-align: center; }
.term-description { text-align: center; color: var(--c-muted); max-width: 60ch; margin: 0 auto 24px; }

/* Single product */
.single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.single-product .product__title,
.single-product .product_title { font-size: var(--fs-h1); }
.single-product .woocommerce-product-gallery img { border-radius: var(--radius-media); }
.single-product .price { color: var(--c-green); font-weight: 700; font-size: 1.5rem; }
.single-product .woocommerce-tabs { grid-column: 1 / -1; }
.single-product .related.products,
.single-product .up-sells { grid-column: 1 / -1; }
.single-product .related.products > h2,
.single-product .up-sells > h2 { font-size: var(--fs-h2); text-align: center; margin-bottom: 28px; }

/* Buttons inside WooCommerce inherit the theme button */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--c-green);
	color: #fff;
	border-radius: var(--radius-pill);
	font-weight: 700;
	padding: 12px 26px;
	border: none;
	transition: background var(--transition);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--c-green-2); color: #fff; }

/* Structural only; colour comes from the peach .onsale rule above so it isn't
   overridden here by source order. */
.woocommerce .onsale {
	border-radius: 0;
	min-height: auto;
	padding: 4px 10px;
	font-weight: 700;
}

/* Cart / checkout tables */
.woocommerce table.shop_table { border-radius: var(--radius-card); border-color: var(--c-border); }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review { border: 1px solid var(--c-border); border-radius: var(--radius-card); padding: 8px 20px; }

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--c-green);
	border-radius: var(--radius-card);
	background: var(--c-surface);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--c-green); }

/* ============================================================ 9. FOOTER */
.site-footer { background: var(--c-dark); color: var(--c-cream); margin-top: var(--section-gap); }
.footer__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	padding-block: 56px;
}
.footer__col-title { color: #fff; font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer__menu { list-style: none; padding: 0; margin: 0; }
.footer__menu li { margin-bottom: 10px; }
.footer__menu a { color: var(--c-cream); font-size: var(--fs-sm); }
.footer__menu a:hover { color: #fff; }
.footer__text { font-size: var(--fs-sm); }
.footer__col--newsletter .newsletter__input { border-color: transparent; }

.footer__bottom { border-top: 1px solid rgba(237, 203, 162, 0.25); }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; }
.footer__copy { margin: 0; font-size: var(--fs-sm); }
.footer__legal { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; }
.footer__legal a { color: var(--c-cream); font-size: var(--fs-sm); }
.footer__legal a:hover { color: #fff; }

/* ========================================================= 10. RESPONSIVE */
/* Floating post arrows need room beside the narrow column, else they overlap. */
@media (max-width: 1220px) {
	.post-sidenav { display: none; }
}

@media (max-width: 1100px) {
	.categories__grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
	.product-grid, .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 900px) {
	:root { --header-h: 76px; }
	.header__bar-inner { grid-template-columns: auto 1fr auto; gap: 6px; }
	/* Float the pill just off the screen edges instead of edge-to-edge. */
	.site-header:not(.is-scrolled) .header__bar { margin: 10px 12px 0; max-width: none; }
	.promos__grid { grid-template-columns: 1fr; }
	.recipes__grid { grid-template-columns: 1fr 1fr; }
	.single-product div.product { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
	.header__menu-toggle { width: 44px; padding-inline: 0; gap: 0; }
	.header__action-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
	.header__actions { gap: 0; }
	.header__logo-text { font-size: 1.2rem; }
	.custom-logo { max-height: 44px; }
	/* Stacked, full-width menu links are easier to tap on a phone. */
	.header__menu-inner { gap: 12px; }
	.header__nav-list { flex-direction: column; gap: 0; }
	.header__nav-list a { padding: 13px 4px; border-bottom: 1px solid var(--c-border); }
	.category-bar__list { gap: 6px; }
	.category-bar__link { min-width: calc(33.333% - 6px); flex: 1 1 calc(33.333% - 6px); }
	.product-grid, .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, 1fr) !important; }
	.footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 40px; }
	.recipes__grid { grid-template-columns: 1fr; }
	.promo { grid-template-columns: 1fr; }
	.promo__media { min-height: 180px; }
	.newsletter-band__inner { flex-direction: column; align-items: stretch; text-align: center; }
	/* Stack the form vertically so the field + button keep their natural height.
	   Without this, the column layout turns `flex: 1 1 360px` into a 360px-tall
	   box and `align-items: stretch` balloons the input and pill button. */
	.newsletter { flex-direction: column; align-items: stretch; }
	.newsletter--band { flex: 0 0 auto; max-width: none; width: 100%; }
	.newsletter__input { flex: 0 0 auto; width: 100%; }
	.newsletter__submit { width: 100%; }
	.section__head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 420px) {
	.footer__grid { grid-template-columns: 1fr; }
	.hero__arrow { display: none; }
	.product-carousel .product-card { flex-basis: 78%; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
