/**
 * Homepage (front-page.php) styles — AMOX.
 * Loaded only on the front page (see oc_hp_enqueue_styles in functions.php).
 * RTL-first. All classes prefixed `.hp-`. No font-family overrides — the
 * homepage inherits the site's typography from style.css.
 *
 * Sections: Hero · Standards · AEROS system · Category grid · Products ·
 *           Banner · Reviews · Products · Guides · Business
 */

.hp {
	--hp-green: #47715f;
	--hp-green-dark: #3a5d4e;
	--hp-cream: #f6f3ec;
	--hp-cream-2: #efeae0;
	--hp-beige: #ebebdc;
	--hp-ink: rgba(0, 0, 0, 0.9);
	--hp-muted: rgba(0, 0, 0, 0.6);
	--hp-line: rgba(0, 0, 0, 0.14);
	--hp-max: 1280px;
	--hp-gap: 24px;
	overflow-x: hidden;
	background: var(--hp-cream);
}

.hp-container {
	max-width: var(--hp-max);
	margin-inline: auto;
	padding-inline: 20px;
}

/* ---- Buttons ----------------------------------------------------------- */
.hp-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
}
.hp-btn--green {
	background: var(--hp-green);
	color: #fff;
}
.hp-btn--green:hover {
	background: var(--hp-green-dark);
	color: #fff;
}
.hp-btn--outline {
	background: transparent;
	color: var(--hp-green);
	border: 1px solid var(--hp-green);
}
.hp-btn--outline:hover {
	background: var(--hp-green);
	color: #fff;
}

/* ---- Arrow-link CTA ---------------------------------------------------- */
.hp-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--hp-ink);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
}
.hp-arrow-link__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(0, 0, 0, 0.35);
	border-radius: 50%;
	font-size: 17px;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hp-arrow-link:hover {
	color: var(--hp-green);
}
.hp-arrow-link:hover .hp-arrow-link__icon {
	background: var(--hp-green);
	border-color: var(--hp-green);
	color: #fff;
}

/* ---- Section titles ---------------------------------------------------- */
.hp-section-title {
	text-align: center;
	font-family: inherit; /* site font (Ezer Standard) */
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 400; /* Figma: h2 Regular */
	line-height: 1.1; /* ~100% */
	letter-spacing: 0.02em; /* 2% */
	color: var(--hp-ink);
	margin: 0 0 32px;
}

/* ---- Placeholder (missing image) -------------------------------------- */
.hp-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
	width: 100%;
	background: repeating-linear-gradient(45deg, #ececec, #ececec 12px, #e3e3e3 12px, #e3e3e3 24px);
	color: #888;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
	padding: 12px;
}

/* ============================ 1. HERO ================================== */
.hp-hero {
	position: relative;
}
/* Soft scrim on the right (where the text sits) for white-text legibility. */
.hp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.34));
	pointer-events: none;
}
.hp-hero__overlay {
	z-index: 1;
}
.hp-hero__media,
.hp-hero__img {
	display: block;
	width: 100%;
}
.hp-hero__img {
	/* Fixed 3:1 shape instead of a capped height: the hero scales with the viewport, so the
	   crop stays constant at every screen width rather than worsening on wide monitors.
	   (At 1920px this is ~640px tall — essentially the previous look.) */
	aspect-ratio: 3 / 1;
	height: auto;
	min-height: 380px;
	object-fit: cover;
	object-position: center bottom; /* keep the container's base in frame — cover crops the top instead */
}
.hp-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	padding-inline: clamp(20px, 4vw, 64px);
}
/* Neutralize the centered 1280 container inside the hero so the box can sit
   at the viewport's right edge (as in the Figma frame), not pulled inward. */
.hp-hero__overlay > .hp-container {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}
.hp-hero__box {
	width: 100%;
	max-width: 631px; /* Figma: box width 631 */
	text-align: right; /* block hugs the right (inline-start) in RTL by default */
}
.hp-hero__heading {
	font-size: clamp(26px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.2;
	color: #fff; /* white text over the photo */
	margin: 0 0 25px; /* Figma gap: 25 */
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}
.hp-hero__text {
	font-size: 16px;
	line-height: 1.7;
	color: #fff;
	margin: 0 0 25px; /* Figma gap: 25 */
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
/* Google review badge above the heading */
.hp-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 6px;
	padding: 7px 12px;
	margin-bottom: 25px; /* Figma gap: 25 */
	font-size: 13px;
	color: var(--hp-ink);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.hp-hero__badge-g {
	font-weight: 700;
	letter-spacing: -0.02em;
}
.hp-hero__badge-score {
	font-weight: 700;
}
.hp-hero__badge-stars {
	color: #f5b400; /* gold */
	letter-spacing: 1px;
}
.hp-hero__badge-count {
	color: var(--hp-muted);
}
/* Hero CTA uses its own dark green (#003720), not the site green. */
.hp-hero .hp-btn--green {
	background: #003720;
}
.hp-hero .hp-btn--green:hover {
	background: #00230f;
}

/* ======================= 2. STANDARDS (boxed) ========================== */
.hp-standards {
	padding-block: 56px;
}
.hp-standards__box {
	background: var(--hp-beige);
	border-radius: 10px;
	padding: clamp(28px, 4vw, 48px);
	text-align: center;
}
.hp-standards__title {
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 700;
	color: var(--hp-ink);
	margin: 0 0 10px;
}
.hp-standards__subtitle {
	max-width: 620px;
	margin: 0 auto 40px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hp-muted);
}
.hp-standards__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.hp-standard {
	text-align: center;
	padding-inline: 12px;
}
.hp-standard__icon {
	margin-bottom: 16px;
	color: var(--hp-green);
}
.hp-standard__icon .hp-svg {
	width: 46px;
	height: 46px;
	margin-inline: auto;
	display: block;
}
.hp-standard__icon-img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	margin-inline: auto;
}
.hp-standard__icon .hp-img-placeholder {
	width: 48px;
	height: 48px;
	min-height: 48px;
	margin-inline: auto;
	border-radius: 50%;
}
.hp-standard__title {
	font-size: 18px;
	font-weight: 700;
	color: var(--hp-ink);
	margin: 0 0 10px;
}
.hp-standard__text {
	font-size: 14px;
	line-height: 1.7;
	color: var(--hp-muted);
	margin: 0;
}

/* ================== 3/10. FEATURE (image + text) ====================== */
.hp-feature {
	padding-block: 56px;
}
.hp-feature__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
}
.hp-feature--reverse .hp-feature__media {
	order: 2; /* image on the LEFT in RTL */
}
.hp-feature__img,
.hp-feature__media > .hp-img-placeholder {
	display: block;
	width: 100%;
	border-radius: 10px;
	object-fit: cover;
}
.hp-feature__content {
	text-align: right;
}
.hp-feature__tag {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--hp-green);
	margin-bottom: 12px;
}
.hp-feature__title {
	font-size: clamp(22px, 2.8vw, 34px);
	font-weight: 800;
	color: var(--hp-ink);
	line-height: 1.3;
	margin: 0 0 18px;
}
.hp-feature__text {
	font-size: 16px;
	line-height: 1.7;
	color: var(--hp-muted);
	margin-bottom: 22px;
}
.hp-feature__cta {
	text-align: right;
	margin-top: 26px;
}

/* Bullet list (AEROS system) */
.hp-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hp-bullets__item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hp-ink);
}
.hp-bullets__icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	color: var(--hp-green);
	display: inline-flex;
}
.hp-bullets__icon .hp-svg {
	width: 100%;
	height: 100%;
}
.hp-bullets__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ===================== 4. CATEGORY GRID (4 cards) ===================== */
.hp-cats {
	padding-block: 56px;
}
.hp-cats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
/* Vertical card: image on top (full width), then title, text, button. */
.hp-cat {
	display: flex;
	flex-direction: column;
	background: transparent;
	border-radius: 10px;
	overflow: hidden;
}
.hp-cat__media {
	width: 100%;
}
.hp-cat__img {
	display: block;
	width: 100%;
	height: clamp(220px, 26vw, 300px);
	object-fit: cover;
	border-radius: 10px;
}
.hp-cat__media > .hp-img-placeholder {
	min-height: 220px;
	border-radius: 10px;
}
.hp-cat__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center; /* everything under the image is centered */
	text-align: center;
	padding: 18px 4px 0;
}
.hp-cat__title {
	font-size: 19px;
	font-weight: 700;
	color: var(--hp-ink);
	margin: 0 0 8px;
}
.hp-cat__subtitle {
	font-size: 14px;
	line-height: 1.6;
	color: var(--hp-muted);
	margin: 0 0 16px;
	flex: 1 1 auto;
}
.hp-cat__btn {
	padding: 9px 22px;
	font-size: 14px;
}

/* ==================== 5/8. PRODUCTS CAROUSEL ========================== */
.hp-products {
	padding-block: 56px;
}
.hp-products .hp-container {
	max-width: 1455px; /* Figma: products section width */
}
.hp .hp-carousel.products {
	margin-inline: -10px;
	padding: 0;
	list-style: none;
	display: block; /* let Flickity own the layout */
}
.hp-carousel:focus {
	outline: none;
}
.hp .hp-carousel.products li.product {
	width: 25% !important;
	padding-inline: 10px;
	box-sizing: border-box;
	margin: 0 !important;
	float: none !important;
}
/* Card content — equal-height cards so titles/prices/buttons line up across
 * the whole row (Figma card: 344×590, gap 15).
 * !important is REQUIRED: the parent theme's `.site-main ul.products li.product`
 * rules are more specific than these `.hp .hp-carousel` selectors and win
 * otherwise (that's why earlier changes "did nothing"). */
.hp .hp-carousel.products li.product .item_wrap {
	display: flex !important;
	flex-direction: column !important;
	min-height: 0 !important; /* was 604px — that forced a big empty gap; let the content set the height so cards stay compact like the design */
	height: auto !important;
}
.hp .hp-carousel.products li.product .bottom-part {
	display: flex !important;
	flex-direction: column !important;
	flex: 1 1 auto !important;
	align-items: center !important;
	text-align: center !important;
	gap: 12px !important;
	padding: 14px 6px 0 !important;
	width: 100% !important;
}
/* Extra brand / meta line the PARENT theme prints under the price
 * (e.g. "תוצרת Sansone") — not part of the design, so hide it in the carousel.
 * Scoped to brand/meta classes only, so title / price / button are untouched. */
.hp .hp-carousel.products li.product .bottom-part .loop_desc,
.hp .hp-carousel.products li.product .bottom-part [class*="brand" i],
.hp .hp-carousel.products li.product .bottom-part .posted_in,
.hp .hp-carousel.products li.product .bottom-part .product_meta,
.hp .hp-carousel.products li.product .bottom-part .product-brand,
.hp .hp-carousel.products li.product .bottom-part .wd-product-brands-links {
	display: none !important;
}
/* Product image — render exactly like the shop pages (the version that looked
 * good). Do NOT force size/fit; only add the design's 4px corner radius and
 * keep overflow clipped so the image can't spill over the text on mobile. */
.hp .hp-carousel.products li.product .wrap-for-top-part {
	border-radius: 4px !important;
	overflow: hidden !important;
	margin: 0 !important;
}
.hp .hp-carousel.products li.product .wrap-for-top-part img {
	border-radius: 4px !important;
}
/* Title — site font, centered, p1 spec (was oversized). */
.hp .hp-carousel.products li.product .woocommerce-loop-product__title,
.hp .hp-carousel.products li.product .woocommerce-loop-product__title a {
	font-family: inherit !important; /* site font = Ezer Standard (oc-child-theme-regular) */
	font-weight: 600 !important; /* a bit bold, like the design */
	font-size: 16px !important; /* client: 20px was too big — match the site body size */
	line-height: 24px !important;
	letter-spacing: 0.02em !important;
	text-align: center !important;
	color: #00130b !important; /* Figma: --colors-black */
}
.hp .hp-carousel.products li.product .woocommerce-loop-product__title {
	margin: 0 !important;
	height: 48px !important; /* 2 lines @ 24px — FIXED so every card's price/button line up */
	min-height: 48px !important;
	width: 100% !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}
/* Price — centered, p3 spec. */
.hp .hp-carousel.products li.product .price_wrap {
	margin: 0 !important;
	width: 100% !important;
	text-align: center !important;
}
.hp .hp-carousel.products li.product .price,
.hp .hp-carousel.products li.product .price bdi,
.hp .hp-carousel.products li.product .price .woocommerce-Price-amount,
.hp .hp-carousel.products li.product .price ins {
	display: inline-block !important;
	text-align: center !important;
	font-weight: 500 !important; /* bolder than body text, one step under the 600 title */
	font-size: 16px !important; /* Figma p3_semibold = 16px */
	line-height: 16px !important;
	letter-spacing: 0 !important;
	color: #00130b !important; /* Figma: --colors-black */
}
.hp .hp-carousel.products li.product .price ins,
.hp .hp-carousel.products li.product .price ins bdi {
	text-decoration: none !important;
}
.hp .hp-carousel.products li.product .price del,
.hp .hp-carousel.products li.product .price del bdi {
	color: var(--hp-muted) !important;
	font-weight: 400 !important;
	margin-inline-start: 6px;
}
/* Hide qty stepper; add-to-cart full-width, dark green (matches the design). */
.hp .hp-carousel.products li.product .quantity--wrapper .quantity {
	display: none !important;
}
.hp .hp-carousel.products li.product .quantity--wrapper button.add-to-cart,
.hp .hp-carousel.products li.product .add-to-cart {
	margin-top: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 224px !important; /* Figma CTA width */
	max-width: 100% !important;
	min-width: 0 !important;
	height: 53px !important; /* Figma CTA height */
	line-height: 1.2 !important;
	padding: 0 32px !important;
	background: #003720 !important;
	color: #f4f4ec !important; /* Figma: --colors-cream */
	border: 0 !important;
	border-radius: 5px !important;
	font-size: 16px !important;
	font-weight: 400 !important; /* Figma p3_regular */
	letter-spacing: 0.02em !important;
	text-align: center !important;
	cursor: pointer;
}
.hp .hp-carousel.products li.product .quantity--wrapper button.add-to-cart:hover,
.hp .hp-carousel.products li.product .add-to-cart:hover {
	background: #00230f !important;
}
/* Carousel arrows — Figma: 55×55 dark-green (#003720) circles, not squares.
 * High specificity + appearance reset to beat any global button rule/plugin
 * that was forcing the square shape. */
.hp .hp-carousel button.flickity-button,
.hp .hp-carousel button.flickity-prev-next-button {
	-webkit-appearance: none !important;
	appearance: none !important;
	width: 55px !important;
	height: 55px !important;
	min-width: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #003720 !important;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
	overflow: hidden !important;
	/* Center on the IMAGE (430px), not the whole 590px card. */
	top: 215px !important;
}
.hp .hp-carousel button.flickity-button:hover {
	background: #00230f !important;
	color: #fff !important;
}
.hp .hp-carousel button.flickity-button:disabled {
	opacity: 0.35 !important;
	cursor: default;
}
.hp .hp-carousel button.flickity-button .flickity-button-icon {
	fill: #fff !important;
	width: 34% !important;
	height: 34% !important;
	left: 33% !important;
	top: 33% !important;
}

/* ---- BeRocket product labels → design pill (carousel only) --------------
 * The plugin renders an image badge (PNG + text + <i> colour layers). We
 * override it into the Figma pill. Styling is PER LABEL ID, because each label
 * has its own colour/text/icon. A solid background set directly on the badge
 * span reliably overrides the plugin's inline PNG (`background: url(...)`);
 * !important beats the inline style. */
/* Force the whole badge wrapper chain to shrink to its content, so the pill
 * doesn't get stretched full-width by the plugin's flex containers. */
.hp .hp-carousel.products li.product .berocket_better_labels_position,
.hp .hp-carousel.products li.product .berocket_better_labels_line,
.hp .hp-carousel.products li.product .berocket_better_labels_inline,
.hp .hp-carousel.products li.product .br_alabel {
	z-index: 4 !important;
	display: block !important;
	width: -moz-fit-content !important;
	width: fit-content !important;
	max-width: 100% !important;
	align-items: flex-start !important;
}
/* Pill shape for every label + hide the plugin's <i> decoration layers. */
.hp .hp-carousel.products li.product .br_alabel .berocket-label-user-image {
	box-sizing: border-box !important;
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: flex-start !important; /* don't stretch inside a flex parent */
	gap: 8px !important;
	min-height: 36px !important; /* Figma tag height */
	padding: 6px 16px !important;
	border-radius: 99px !important;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.06) !important;
	width: -moz-fit-content !important;
	width: fit-content !important;
	line-height: 1 !important;
	overflow: visible !important;
}
.hp .hp-carousel.products li.product .br_alabel .template-span-before,
.hp .hp-carousel.products li.product .br_alabel .template-i,
.hp .hp-carousel.products li.product .br_alabel .template-i-before,
.hp .hp-carousel.products li.product .br_alabel .template-i-after {
	display: none !important;
}
.hp .hp-carousel.products li.product .br_alabel .br-labels-image {
	display: flex !important;
	align-items: center !important;
	align-self: center !important; /* vertically centered in the pill */
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	font-family: inherit !important;
	font-size: 14px !important;
	line-height: 16px !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em !important;
	text-align: center !important;
	text-indent: 0 !important;
}
/* ---- Label #5424 "popular / best seller": solid orange + cream + star ---- */
.hp .hp-carousel.products li.product .berocket_alabel_id_5424 .berocket-label-user-image {
	background: #dc8200 !important; /* solid orange — overrides the inline PNG */
}
.hp .hp-carousel.products li.product .berocket_alabel_id_5424 .br-labels-image {
	color: #f4f4ec !important;
}
.hp .hp-carousel.products li.product .berocket_alabel_id_5424 .berocket-label-user-image::before {
	content: "";
	flex: none;
	order: -1; /* first flex item → right side in RTL */
	width: 18px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F4EC' stroke-width='1.6' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 2.6l2.7 6 6.6.6-5 4.4 1.5 6.4L12 17.6 5.6 20l1.5-6.4-5-4.4 6.6-.6z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ==================== 6. BANNER (full-width + overlay) ================ */
.hp-banner {
	position: relative;
}
.hp-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.34));
	pointer-events: none;
}
.hp-banner__media,
.hp-banner__img {
	display: block;
	width: 100%;
}
.hp-banner__img {
	height: clamp(340px, 42vw, 520px);
	object-fit: cover;
}
.hp-banner__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	padding-inline: clamp(20px, 4vw, 64px);
}
/* Un-confine from the centered container so the box sits at the right edge,
   exactly like the top hero. */
.hp-banner__overlay > .hp-container {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}
.hp-banner__box {
	width: 100%;
	max-width: 460px;
	text-align: right; /* hugs the right (inline-start) in RTL by default */
}
.hp-banner__heading {
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 16px;
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.28);
}
.hp-banner__text {
	font-size: 16px;
	line-height: 1.7;
	color: #fff;
	margin: 0 0 24px;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
/* Banner CTA: light cream button (#F4F4EC) with dark-green text. */
.hp-banner .hp-btn--cream {
	background: #f4f4ec;
	color: var(--hp-green-dark);
}
.hp-banner .hp-btn--cream:hover {
	background: #fff;
	color: var(--hp-green-dark);
}

/* ============================ 7. REVIEWS ============================== */
.hp-reviews {
	padding-block: 56px;
}
.hp-reviews__head {
	text-align: center;
	margin-bottom: 40px;
}
.hp-reviews__title {
	font-size: clamp(20px, 2.6vw, 28px);
	font-weight: 700;
	color: var(--hp-ink);
	margin: 0 0 14px;
}
.hp-reviews__score {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}
.hp-reviews__score-stars {
	color: var(--hp-green);
	letter-spacing: 2px;
	font-size: 18px;
}
.hp-reviews__score-num {
	font-weight: 800;
	color: var(--hp-ink);
	font-size: 18px;
}
.hp-reviews__score-label {
	font-size: 14px;
	color: var(--hp-muted);
}
/* Borderless columns separated by thin vertical dividers. */
.hp-reviews__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.hp-review {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 4px 28px;
	border-inline-start: 1px solid var(--hp-line);
}
.hp-review:first-child {
	border-inline-start: 0;
}
/* ---- Reviews carousel -------------------------------------------------
 * Used only when there are more reviews than the 4-up row (front-page.php adds
 * .hp-carousel + js-flickity). Flickity owns the layout, so the grid is turned
 * off; the arrows inherit the product-carousel styling and are just re-centred,
 * since that rule pins them to 215px to match the 430px product image. */
.hp-reviews__grid.hp-carousel {
	display: block;
	grid-template-columns: none;
}
.hp-reviews__grid.hp-carousel .hp-review {
	width: 25%; /* 4 per view — same rhythm as the grid */
}
.hp .hp-reviews .hp-carousel button.flickity-button {
	top: 50% !important;
}
.hp-review__name {
	font-weight: 700;
	font-size: 16px;
	color: var(--hp-ink);
	margin-bottom: 14px;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1px;
}
.hp-review__text {
	font-size: 14px;
	line-height: 1.7;
	color: var(--hp-muted);
	margin: 0 0 18px;
	flex: 1 1 auto;
}
.hp-review__rating {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.hp-review__score {
	font-weight: 700;
	font-size: 14px;
	color: var(--hp-ink);
}
/* Fractional star bar (supports half stars, e.g. 4.5). */
.hp-stars {
	position: relative;
	display: inline-block;
	font-size: 15px;
	letter-spacing: 3px;
	line-height: 1;
	white-space: nowrap;
}
.hp-stars__track {
	color: #d7d7cc;
}
.hp-stars__fill {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: var(--pct, 0%);
	overflow: hidden;
	color: var(--hp-green);
}

/* ============================= 9. GUIDES ============================== */
.hp-guides {
	padding-block: 56px;
}
.hp-guides__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}
.hp-guide {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: right;
	padding-inline: 30px;
	border-inline-start: 1px solid var(--hp-line);
}
.hp-guide:first-child {
	border-inline-start: 0;
}
.hp-guide__q {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--hp-ink);
	margin: 0 0 22px;
	min-height: 3em;
}
.hp-guide__btn {
	padding: 9px 22px;
	font-size: 14px;
}

/* ============================ RESPONSIVE ============================= */
@media (max-width: 1024px) {
	.hp .hp-carousel.products li.product {
		width: 33.3333% !important;
	}
	.hp-reviews__grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 36px;
	}
	.hp-review:nth-child(odd) {
		border-inline-start: 0;
	}
	.hp-reviews__grid.hp-carousel .hp-review {
		width: 50%; /* carousel: 2 per view on tablet */
	}
	.hp-guides__grid {
		grid-template-columns: 1fr;
	}
	.hp-guide {
		padding-inline: 0;
		padding-block: 22px;
		border-inline-start: 0;
		border-top: 1px solid var(--hp-line);
	}
	.hp-guide:first-child {
		border-top: 0;
	}
	.hp-guide__q {
		min-height: 0;
		margin-bottom: 14px;
	}
}

@media (max-width: 768px) {
	.hp-standards,
	.hp-feature,
	.hp-cats,
	.hp-products,
	.hp-reviews,
	.hp-guides {
		padding-block: 40px;
	}
	.hp-section-title {
		/* Client: section titles read too light on mobile — the base rule floors at 22px at
		   weight 400. Bump size + weight; the hero H1 (24px/800) still outranks these. */
		font-size: 24px;
		font-weight: 600;
		margin-bottom: 24px;
	}

	/* Feature sections stack: image on top, text below. */
	.hp-feature__inner {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.hp-feature--reverse .hp-feature__media {
		order: 0;
	}
	.hp-feature__img {
		height: clamp(240px, 60vw, 360px);
	}

	/* Standards + category grid → single column. */
	.hp-standards__grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.hp-cats__grid {
		grid-template-columns: 1fr;
	}
	/* Mobile-only category order (client): storage → premium oil → gift → AEROS last.
	   AEROS is first in the DOM (desktop keeps it top-right); order:1 pushes it to the
	   end on mobile while the other three keep their source order. */
	.hp-cat:first-child {
		order: 1;
	}

	/* Reviews → horizontal swipe on mobile (client: החלקה הצידה instead of scroll).
	   Scoped to :not(.hp-carousel) — when Flickity is driving (more than 4 reviews)
	   it owns the layout and these scroll-snap rules must not fight it. */
	.hp-reviews__grid:not(.hp-carousel) {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 0;
		margin-inline: -16px; /* bleed the track to the screen edges */
		padding-inline: 16px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none; /* Firefox: hide scrollbar */
	}
	.hp-reviews__grid:not(.hp-carousel)::-webkit-scrollbar {
		display: none; /* WebKit: hide scrollbar */
	}
	.hp-reviews__grid:not(.hp-carousel) .hp-review {
		flex: 0 0 82%; /* one card per view; neighbours peek to signal swipe */
		scroll-snap-align: center;
	}
	.hp-review {
		border-inline-start: 0; /* no column dividers in either carousel mode */
		padding: 4px 22px;
	}
	.hp-reviews__grid.hp-carousel .hp-review {
		width: 85%; /* Flickity: one card per view on mobile */
	}
	/* Smaller arrows on phones, vertically centred on the card. */
	.hp .hp-reviews .hp-carousel button.flickity-button {
		width: 38px !important;
		height: 38px !important;
		top: 50% !important;
	}

	.hp .hp-carousel.products li.product {
		width: 50% !important;
	}
	.hp .hp-carousel.products li.product .item_wrap {
		min-height: 0 !important; /* let the theme-default image drive height */
	}

	/* Hero + banner: taller image + stronger scrim so the white text stays
	   legible when the box spans most of the width on phones. */
	.hp-hero::after,
	.hp-banner::after {
		background: linear-gradient(to right, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.46));
	}
	.hp-hero__img {
		height: clamp(480px, 66svh, 620px); /* client screenshot: shorter hero, Standards peeks below; taller so content clears the header */
		object-position: center bottom; /* show the bottom of the image (the container on the counter) */
	}
	.hp-hero__overlay {
		align-items: flex-start; /* content sits toward the top-right, per the screenshot */
		padding-block-start: 84px; /* clear the fixed mobile header so the badge doesn't overlap the logo/menu */
	}
	.hp-hero__heading {
		font-size: 24px;
	}
	.hp-hero__text {
		font-size: 15px;
		margin-bottom: 20px;
	}
	.hp-hero__badge {
		font-size: 12px;
		padding: 6px 10px;
	}
	.hp-banner__img {
		height: min(430px, 68svh); /* second hero — a bit shorter on mobile (client) */
		object-position: center bottom; /* keep the jar's base / lemons in frame — crop the top instead */
	}
	.hp-banner__overlay {
		align-items: flex-start; /* move content up so it stops covering the lower part of the image */
		padding-block-start: 36px;
	}
}

@media (max-width: 520px) {
	.hp-container {
		padding-inline: 16px;
	}

	.hp .hp-carousel.products li.product {
		width: 80% !important;
	}
	.hp .hp-carousel.products li.product .woocommerce-loop-product__title {
		min-height: 48px; /* 2 lines at the 24px line-height */
	}
	.hp .hp-carousel.products li.product .item_wrap {
		min-height: 0 !important; /* let the theme-default image drive height */
	}

	/* Reviews are a horizontal swipe carousel on mobile — see the max-width:768 block. */

	/* Category cards: image top, text below. */
	.hp-cat {
		flex-direction: column;
	}
	.hp-cat__media {
		flex-basis: auto;
		max-width: none;
	}
	.hp-cat__img,
	.hp-cat__media > .hp-img-placeholder {
		height: clamp(180px, 52vw, 260px);
	}

	.hp-hero__heading {
		font-size: 22px;
	}
	.hp-banner__heading {
		font-size: 22px;
	}
}
