/*
 * Bio Energica theme styles.
 * Layout uses logical properties (inline-start/end) so Arabic pages flip automatically.
 */

:root {
	--green: #173F28;
	--green-deep: #0F2D1C;
	--green-2: #3F7A3A;
	--sage: #9DB08A;
	--sage-soft: #DFE6D3;
	--beige: #EEE6D5;
	--cream: #F7F2E7;
	--paper: #FFFDF8;
	--honey: #B5873A;
	--ink: #1F2B1D;
	--muted: #5D6957;
	--line: #E2DACA;
	--danger: #A43B2B;
	--radius: 10px;
	--wrap: 1232px;
	--header-h: 78px;
	--f-display: "Fraunces", Georgia, "Times New Roman", serif;
	--f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
	color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* "clip" keeps the sticky header working, unlike "hidden" */
}
body:lang(ar) { font-family: var(--f-ar); font-size: 17px; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
	font-family: var(--f-display);
	color: var(--green);
	font-weight: 600;
	line-height: 1.1;
	margin: 0 0 .5em;
	text-wrap: balance;
	font-optical-sizing: auto;
}
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { font-family: var(--f-ar); font-weight: 700; line-height: 1.3; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0;
	position: fixed !important; top: 8px; inset-inline-start: 8px; z-index: 100000;
	background: var(--paper); color: var(--green); padding: 10px 16px; border-radius: 6px;
}

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[dir="rtl"] .be-flip { transform: scaleX(-1); }

.be-eyebrow {
	font-size: 12.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--honey);
	font-weight: 700;
	margin: 0 0 8px;
}
:lang(ar) .be-eyebrow { letter-spacing: 0; font-size: 14px; }

/* ---------- Buttons ---------- */
.be-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 6px;
	border: 1.5px solid var(--green);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	transition: background .2s, color .2s, border-color .2s;
	cursor: pointer;
}
.be-btn .ico { width: 18px; height: 18px; }
.be-btn--primary { background: var(--green); color: var(--cream); }
.be-btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }
.be-btn--ghost { background: transparent; color: var(--green); }
.be-btn--ghost:hover { background: var(--green); color: var(--cream); }
.be-btn--light { background: var(--cream); border-color: var(--cream); color: var(--green); }
.be-btn--light:hover { background: #fff; color: var(--green); }
.be-btn--sm { padding: 10px 16px; font-size: 14px; }
.be-btn--wa { background: #1F7A4D; border-color: #1F7A4D; color: #fff; }
.be-btn--wa:hover { background: #17603C; border-color: #17603C; color: #fff; }
.be-btn--wa svg { width: 20px; height: 20px; }

.be-iconbtn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: none;
	border: 0;
	color: var(--green);
	padding: 0;
}
.be-iconbtn:hover { background: var(--cream); color: var(--green); }

/* ---------- Top bar ---------- */
.be-topbar { background: var(--green); color: var(--cream); font-size: 13px; }
.be-topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 7px; min-height: 36px; }
.be-topbar__msg { margin: 0; }
.be-topbar__right { display: flex; align-items: center; gap: 16px; margin-inline-start: auto; }
.be-topbar__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--cream); }
.be-topbar__phone:hover { color: #fff; }
.be-topbar__phone .ico { width: 15px; height: 15px; }
@media (max-width: 640px) {
	.be-topbar__phone { display: none; }
	.be-topbar .wrap { justify-content: center; text-align: center; }
	.be-topbar__right:empty { display: none; }
}

.be-lang { display: inline-flex; gap: 2px; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 3px; }
.be-lang a { color: var(--cream); padding: 2px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.6; }
.be-lang a:hover { color: #fff; }
.be-lang a.is-current { background: var(--cream); color: var(--green); }
.be-lang--nav { background: var(--cream); }
.be-lang--nav a { color: var(--green); }
.be-lang--nav a.is-current { background: var(--green); color: var(--cream); }

/* ---------- Header ---------- */
.be-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .2s;
}
.admin-bar .be-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .be-header { top: 0; } }
.be-header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(15, 45, 28, .5); }
.be-header__row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); padding-block: 8px; }
.be-header__logo { flex: none; }
.be-logo { display: block; color: var(--green); }
.be-logo__svg { display: block; height: 58px; width: auto; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 62px; width: auto; }
.be-header__menu { display: none; }
.be-header__actions { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.be-cart-count {
	position: absolute;
	top: 3px;
	inset-inline-end: 1px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--honey);
	color: #fff;
	font: 700 11px/18px var(--f-body);
	text-align: center;
}
.be-cart-count.is-empty { background: var(--line); color: var(--muted); }
.be-cart-count.bump { animation: be-bump .4s ease; }
@keyframes be-bump { 50% { transform: scale(1.35); } }

/* Navigation (desktop) */
.be-nav { margin-inline-start: auto; }
.be-nav__head, .be-nav__foot { display: none; }
.be-nav .menu { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.be-nav .menu > li { position: relative; }
.be-nav .menu a { display: block; color: var(--muted); font-size: 15px; padding-block: 6px; border-bottom: 1.5px solid transparent; }
.be-nav .menu a:hover,
.be-nav .menu .current-menu-item > a,
.be-nav .menu .current-menu-ancestor > a,
.be-nav .menu .current-product_cat-ancestor > a { color: var(--green); border-color: var(--green); }
.be-nav .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: -16px;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 10px 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 18px 40px -24px rgba(15, 45, 28, .45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .18s;
	z-index: 5;
}
.be-nav .menu li:hover > .sub-menu,
.be-nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.be-nav .sub-menu a { padding: 8px 18px; border: 0; }
.be-nav .sub-menu a:hover { background: var(--cream); }

/* Navigation (mobile drawer) */
@media (max-width: 1000px) {
	:root { --header-h: 66px; }
	.be-header__row { gap: 8px; }
	.be-header__menu { display: inline-grid; }
	.be-header__logo { margin-inline: auto; }
	.be-logo__svg { height: 48px; }
	.custom-logo { max-height: 50px; }
	.be-header__actions { margin-inline-start: 0; }
	.be-nav {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		width: min(86vw, 360px);
		margin: 0;
		background: var(--paper);
		z-index: 70;
		display: flex;
		flex-direction: column;
		padding: env(safe-area-inset-top, 0px) 0 max(16px, env(safe-area-inset-bottom, 0px));
		transform: translateX(-104%);
		transition: transform .28s ease, visibility 0s linear .28s;
		overflow-y: auto;
		visibility: hidden;
	}
	[dir="rtl"] .be-nav { transform: translateX(104%); }
	.be-nav.is-open { transform: none; visibility: visible; transition: transform .28s ease, visibility 0s; }
	.be-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--line); }
	.be-nav__head .be-logo__svg { height: 44px; }
	.be-nav .menu { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 8px 0; }
	.be-nav .menu a { padding: 13px 22px; font-size: 16px; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); }
	.be-nav .menu .current-menu-item > a { color: var(--green); border-color: var(--line); background: var(--cream); }
	.be-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0; background: none; min-width: 0; }
	.be-nav .sub-menu a { padding-inline-start: 38px; font-size: 15px; }
	.be-nav__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 20px; margin-top: auto; }
	.be-nav-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(15, 45, 28, .38); }
	.be-hide-sm { display: none; }
}
@media (min-width: 1001px) { .be-nav-overlay { display: none !important; } }

/* Search panel */
.be-search { border-top: 1px solid var(--line); background: var(--paper); }
.be-search .wrap { padding-block: 14px; }
.be-search__form { display: flex; align-items: center; gap: 10px; background: var(--cream); border-radius: 8px; padding: 6px 6px 6px 14px; }
[dir="rtl"] .be-search__form { padding: 6px 14px 6px 6px; }
.be-search__form .ico { color: var(--muted); }
.be-search__form input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 4px; font-size: 16px; }
.be-search__form input:focus { outline: none; }

/* ---------- Hero ---------- */
.be-hero { background: var(--cream); overflow: hidden; }
.be-hero__row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-block: 56px 40px; }
.be-hero__copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.be-hero__copy .be-eyebrow { margin: 0; }
.be-hero__title { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.02; margin: 0; }
:lang(ar) .be-hero__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.25; }
.be-hero__title em { font-style: italic; color: var(--green-2); font-weight: 500; }
:lang(ar) .be-hero__title em { font-style: normal; }
.be-hero__lead { font-size: 17.5px; color: var(--muted); max-width: 52ch; margin: 0; }
.be-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.be-hero__badges { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; color: var(--green); font-weight: 500; }
.be-hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.be-hero__art svg, .be-hero__art img { width: 100%; height: auto; display: block; max-width: 560px; margin-inline: auto; }
.be-hero__art.has-image img { border-radius: 14px; }
@media (max-width: 860px) {
	.be-hero__row { grid-template-columns: 1fr; padding-block: 28px 32px; gap: 20px; }
	.be-hero__art { order: -1; }
	.be-hero__art svg, .be-hero__art img { max-width: 420px; }
}

/* ---------- Sections ---------- */
.be-section { padding-block: 72px; }
.be-section--tight { padding-block: 40px 72px; }
.be-section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.be-section__title { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 0; }
:lang(ar) .be-section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.be-more { display: flex; justify-content: center; margin-top: 36px; }
@media (max-width: 640px) { .be-section { padding-block: 52px; } }

/* Categories */
.be-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
.be-cats > li { flex: 1 1 170px; max-width: 240px; }
.be-cat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 12px 22px; border-radius: 12px; color: var(--ink); transition: background .2s; height: 100%; }
.be-cat:hover { background: var(--cream); color: var(--ink); }
.be-cat__disc { width: 96px; height: 96px; border-radius: 50%; background: var(--sage-soft); display: grid; place-items: center; color: var(--green); overflow: hidden; transition: transform .25s; margin-bottom: 4px; }
.be-cat__disc .ico { width: 40px; height: 40px; stroke-width: 1.4; }
.be-cat__disc img { width: 100%; height: 100%; object-fit: cover; }
.be-cat:hover .be-cat__disc { transform: translateY(-4px); }
.be-cat__name { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; color: var(--green); line-height: 1.15; }
:lang(ar) .be-cat__name { font-family: var(--f-ar); font-weight: 700; font-size: 1.15rem; }
.be-cat__desc { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 520px) {
	.be-cats { gap: 8px; }
	.be-cats > li { flex-basis: 140px; }
	.be-cat__disc { width: 76px; height: 76px; }
	.be-cat__disc .ico { width: 32px; height: 32px; }
}

/* Tabs */
.be-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.be-tabs button { background: none; border: 1.5px solid var(--line); color: var(--muted); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.be-tabs button:hover { border-color: var(--green); color: var(--green); }
.be-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }

/* Offer */
.be-offer { background: var(--green); color: var(--cream); }
.be-offer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding-block: 56px; }
.be-offer__copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.be-offer .be-eyebrow { color: #E2C68F; margin: 0; }
.be-offer__title { color: var(--cream); font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0; }
.be-offer__text { color: #D8DFCF; font-size: 17px; margin: 0; max-width: 46ch; }
.be-offer__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0; font-variant-numeric: tabular-nums; }
.be-offer__price .now { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; color: var(--cream); line-height: 1; }
:lang(ar) .be-offer__price .now { font-family: var(--f-ar); font-size: 2rem; }
.be-offer__price del { color: #B9C4AE; font-size: 17px; }
.be-offer__price .amount, .be-offer__price bdi { color: inherit; }
.be-offer__art svg, .be-offer__art img { width: 100%; height: auto; display: block; max-width: 480px; margin-inline: auto; }
@media (max-width: 860px) { .be-offer__row { grid-template-columns: 1fr; } }

/* Benefits */
.be-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.be-benefit { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1.5px solid var(--green); }
.be-benefit .ico { width: 30px; height: 30px; color: var(--green); stroke-width: 1.4; }
.be-benefit h3 { font-size: 1.4rem; margin: 4px 0 0; }
:lang(ar) .be-benefit h3 { font-size: 1.15rem; }
.be-benefit p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .be-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .be-benefits { grid-template-columns: 1fr; } }

/* Reviews */
.be-reviews-section { background: var(--cream); }
.be-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.be-review { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.be-review blockquote { margin: 0; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.38; color: var(--ink); font-weight: 500; }
:lang(ar) .be-review blockquote { font-family: var(--f-ar); font-size: 1.08rem; line-height: 1.7; }
.be-review figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.be-review figcaption strong { color: var(--green); }
.be-stars { display: flex; gap: 2px; color: var(--honey); }
.be-stars svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .be-reviews { grid-template-columns: 1fr; } }

/* Instagram */
.be-insta { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.be-insta a { display: block; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--beige); }
.be-insta svg, .be-insta img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.be-insta a:hover svg, .be-insta a:hover img { transform: scale(1.06); }
.be-insta-section .be-btn .ico { width: 18px; height: 18px; }
@media (max-width: 760px) { .be-insta { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Newsletter */
.be-news { background: var(--sage-soft); }
.be-news__row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding-block: 52px; }
.be-news__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 8px; }
.be-news p { color: var(--muted); margin: 0; }
.be-news__form { display: flex; gap: 10px; flex-wrap: wrap; }
.be-news__form input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border-radius: 6px; border: 1.5px solid var(--sage); background: var(--paper); }
@media (max-width: 860px) { .be-news__row { grid-template-columns: 1fr; } }
.be-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Notices */
.be-notice { padding: 12px 16px; border-radius: 8px; background: var(--cream); border-inline-start: 3px solid var(--honey); color: var(--ink); font-size: 15px; margin: 0 0 16px; }
.be-notice--ok { border-color: var(--green-2); background: #EDF4E9; }
.be-notice--error { border-color: var(--danger); background: #FBEDEA; }

/* ---------- Footer ---------- */
.be-footer { background: var(--green-deep); color: #D3DAC9; font-size: 14.5px; }
.be-footer a { color: #D3DAC9; }
.be-footer a:hover { color: #fff; }
.be-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 56px 36px; }
.be-footer .be-logo { color: var(--cream); margin-bottom: 14px; }
.be-footer .be-logo__svg { height: 64px; }
.be-footer .be-logo img { max-height: 70px; width: auto; }
.be-footer__about p { max-width: 36ch; }
.be-footer__title { margin: 0 0 14px; color: var(--cream); font-family: var(--f-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
:lang(ar) .be-footer__title { letter-spacing: 0; font-size: 15px; font-family: var(--f-ar); }
.be-footer .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.be-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.be-contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.be-contact-list .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--sage); }
.be-social { display: flex; gap: 8px; margin-top: 16px; }
.be-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.be-social a:hover { background: rgba(255, 255, 255, .08); }
.be-social svg { width: 18px; height: 18px; }
.be-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #A9B59E; }
.be-footer__bottom p { margin: 0; }
.be-pay { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .25); padding: 4px 10px; border-radius: 4px; color: var(--cream); }
.be-pay .ico { width: 16px; height: 16px; }
@media (max-width: 900px) { .be-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .be-footer__cols { grid-template-columns: 1fr; } }

/* WhatsApp floating button */
.be-wa-float {
	position: fixed;
	z-index: 40;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	inset-inline-end: max(18px, env(safe-area-inset-right, 0px));
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #25D366;
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
	transition: transform .2s;
}
.be-wa-float:hover { color: #fff; transform: scale(1.06); }
.be-wa-float svg { width: 30px; height: 30px; }

/* ---------- Pages & blog ---------- */
.be-pagehead { background: var(--cream); padding-block: 48px 40px; }
.be-pagehead--slim { padding-block: 28px 22px; }
.be-pagehead__title { font-size: clamp(2rem, 4vw, 3rem); margin: 0; }
.be-pagehead--slim .be-pagehead__title { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.be-pagehead__desc { color: var(--muted); margin-top: 12px; max-width: 65ch; }

.be-content { max-width: 760px; margin-inline: auto; }
.be-content--wide { max-width: none; }
.entry-content { font-size: 17px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.9rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.45rem; margin-top: 1.4em; margin-bottom: .3em; }
.entry-content h3 + p { margin-top: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.3em; }
.entry-content blockquote { margin-inline: 0; padding-inline-start: 20px; border-inline-start: 3px solid var(--sage); font-family: var(--f-display); font-size: 1.3rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content .alignwide { margin-inline: calc(50% - 50vw + 16px); max-width: calc(100vw - 32px); }
@media (min-width: 1100px) { .entry-content .alignwide { margin-inline: -120px; max-width: none; } }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 10px; text-align: start; }
.wp-block-button__link { background: var(--green); color: var(--cream) !important; border-radius: 6px; text-decoration: none !important; }

.be-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .be-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .be-posts { grid-template-columns: 1fr; } }
.be-post-card { display: flex; flex-direction: column; gap: 14px; }
.be-post-card__img { display: block; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.be-post-card__img img, .be-post-card__img svg { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.be-post-card:hover .be-post-card__img img { transform: scale(1.04); }
.be-post-card__meta { font-size: 13px; color: var(--muted); margin: 0; }
.be-post-card__title { font-size: 1.45rem; margin: 0; }
.be-post-card__title a { color: var(--green); }
.be-post-card__body p:last-child { color: var(--muted); font-size: 15px; }
.be-single-thumb { margin: 0 auto 32px; max-width: 960px; }
.be-single-thumb img { border-radius: 14px; width: 100%; }

.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.nav-links .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border: 1.5px solid var(--line); border-radius: 8px; color: var(--green); }
.nav-links .page-numbers.current, .nav-links a.page-numbers:hover { background: var(--green); border-color: var(--green); color: var(--cream); }
.post-navigation .nav-links { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; max-width: 760px; margin-inline: auto; }
.post-navigation .nav-links a { display: flex; flex-direction: column; gap: 2px; font-family: var(--f-display); font-size: 1.15rem; }
.post-navigation .nav-links a span { font-family: var(--f-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.be-empty { text-align: center; padding-block: 40px; }
.be-searchform { display: flex; gap: 8px; max-width: 480px; margin: 16px auto 0; }
.be-searchform input { flex: 1; min-width: 0; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); }

.be-404 { padding-block: 90px; text-align: center; }
.be-404 p { color: var(--muted); }
.be-404__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Comments */
.be-comments { max-width: 760px; margin: 48px auto 0; }
.be-comments__list { list-style: none; padding: 0; }
.be-comments .comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.be-comments .avatar { border-radius: 50%; float: inline-start; margin-inline-end: 12px; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid var(--line);
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink);
	font-size: 16px;
	transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(63, 122, 58, .14); }
label { font-weight: 500; font-size: 14.5px; }
.req { color: var(--danger); }

/* Contact page */
.be-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.be-contact__info { display: flex; flex-direction: column; gap: 12px; }
.be-contact__card { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
a.be-contact__card:hover { border-color: var(--green-2); color: var(--ink); }
.be-contact__card > svg { width: 26px; height: 26px; color: var(--green); margin-top: 2px; }
.be-contact__card span { display: flex; flex-direction: column; gap: 2px; }
.be-contact__card strong { color: var(--green); }
.be-contact__card--wa { background: #EAF6EF; border-color: #BFE3CC; }
.be-contact__card--wa > svg { color: #1F7A4D; }
.be-contact__form { background: var(--cream); border-radius: 14px; padding: 32px; }
.be-contact__form h2 { font-size: 1.8rem; }
.be-form p { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.be-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.be-form__hint { font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) {
	.be-contact { grid-template-columns: 1fr; }
	.be-form__row { grid-template-columns: 1fr; }
	.be-contact__form { padding: 22px; }
}

/* ---------- Cart drawer ---------- */
.be-drawer { position: fixed; inset: 0; z-index: 90; }
.be-drawer__overlay { position: absolute; inset: 0; background: rgba(15, 45, 28, .4); opacity: 0; transition: opacity .25s; }
.be-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(92vw, 420px);
	background: var(--paper);
	display: flex;
	flex-direction: column;
	transform: translateX(104%);
	transition: transform .3s ease;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
[dir="rtl"] .be-drawer__panel { transform: translateX(-104%); }
.be-drawer.is-open .be-drawer__overlay { opacity: 1; }
.be-drawer.is-open .be-drawer__panel { transform: none; }
.be-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px 22px; border-bottom: 1px solid var(--line); }
.be-drawer__head h2 { font-size: 1.5rem; margin: 0; }
.be-drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px 20px; }
.be-drawer__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px; background: var(--cream); font-size: 14px; color: var(--green); font-weight: 500; }
.be-drawer__note .ico { width: 18px; height: 18px; }
body.be-lock { overflow: hidden; }

.be-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.be-drawer .woocommerce-mini-cart-item { position: relative; padding: 16px 0; padding-inline-end: 30px; border-bottom: 1px solid var(--line); min-height: 96px; }
.be-drawer .woocommerce-mini-cart-item a:not(.remove) { display: flex; gap: 14px; align-items: center; color: var(--ink); font-weight: 500; line-height: 1.35; }
.be-drawer .woocommerce-mini-cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--beige); flex: none; margin: 0; float: none; }
.be-drawer .woocommerce-mini-cart-item .quantity { display: block; margin-inline-start: 78px; margin-top: 2px; color: var(--muted); font-size: 14px; }
.be-drawer .woocommerce-mini-cart-item .remove { position: absolute; top: 16px; inset-inline-end: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); font-size: 18px; line-height: 1; }
.be-drawer .woocommerce-mini-cart-item .remove:hover { background: #FBEDEA; color: var(--danger); }
.be-drawer .woocommerce-mini-cart-item dl.variation { margin: 4px 0 0 78px; font-size: 13px; color: var(--muted); }
.be-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 16px 0 8px; margin: 0; font-size: 16px; }
.be-drawer .woocommerce-mini-cart__total .amount { font-weight: 700; color: var(--green); }
.be-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; margin: 8px 0 0; }
.be-drawer .woocommerce-mini-cart__buttons .button { display: block; text-align: center; padding: 13px 18px; border-radius: 6px; border: 1.5px solid var(--green); background: transparent; color: var(--green); font-weight: 500; }
.be-drawer .woocommerce-mini-cart__buttons .button.checkout { background: var(--green); color: var(--cream); order: -1; }
.be-drawer .woocommerce-mini-cart__buttons .button:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--cream); }
.be-drawer .woocommerce-mini-cart__empty-message { text-align: center; color: var(--muted); padding: 40px 0; margin: 0; }
.be-drawer .blockUI.blockOverlay { background: rgba(255, 253, 248, .7) !important; }

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