/* ==========================================================================
   הג'ונגל של חזי — main styles (RTL first, logical properties)
   ========================================================================== */

:root {
	--hj-primary: #19A7E0;
	--hj-dark: #0F3444;
	--hj-accent: #2DB36F;
	--hj-sale: #F26B3A;

	/* Accessible variants (≥4.5:1 on white) for text and buttons with white text. */
	--hj-primary-strong: #12759D;
	--hj-sale-strong: #B6502C;
	--hj-accent-strong: #1F7D4E;

	--hj-text: #22333B;
	--hj-muted: #5B7480;
	--hj-line: #E2EDF2;
	--hj-soft: #EEF8FC;
	--hj-soft-2: #F5FAF7;
	--hj-white: #fff;

	--hj-radius-sm: 10px;
	--hj-radius: 16px;
	--hj-radius-lg: 28px;
	--hj-shadow: 0 6px 24px rgba(15, 52, 68, .08);
	--hj-shadow-lg: 0 16px 40px rgba(15, 52, 68, .14);

	--hj-font: "Rubik", "Assistant", "Segoe UI", Arial, sans-serif;
	--hj-container: 1280px;
	--hj-header-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body.hj-theme {
	font-family: var(--hj-font);
	color: var(--hj-text);
	background: var(--hj-white);
	direction: rtl;
	text-align: right;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.hj-theme h1, .hj-theme h2, .hj-theme h3, .hj-theme h4 {
	font-family: var(--hj-font);
	color: var(--hj-dark);
	line-height: 1.2;
	font-weight: 800;
	margin-block: 0 .5em;
}

:where(.hj-theme) a { color: var(--hj-primary-strong); text-decoration: none; transition: color .2s; }
:where(.hj-theme) a:hover { color: var(--hj-dark); }
/* Links inside running text are underlined so they don't rely on colour alone. */
.hj-prose a, .hj-theme .page-content a, .hj-theme .woocommerce-tabs .panel a { text-decoration: underline; text-underline-offset: 3px; }
.hj-theme img { max-width: 100%; height: auto; }

.hj-theme :focus-visible {
	outline: 3px solid var(--hj-primary-strong);
	outline-offset: 2px;
	border-radius: 6px;
}

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

/* Hello Elementor's page wrapper on regular pages (incl. classic cart). */
.hj-theme .site-main {
	max-width: var(--hj-container);
	margin-inline: auto;
	padding: 32px 20px 64px;
}
.hj-theme .site-main .page-header .entry-title,
.hj-page-title {
	font-size: clamp(1.75rem, 3vw, 2.4rem);
	font-weight: 900;
	color: var(--hj-dark);
	margin-block: 8px 24px;
}

.hj-icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- Buttons ---------- */
.hj-btn,
.hj-theme .button,
.hj-theme button.button,
.hj-theme input.button,
.hj-theme .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--hj-font);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	padding: 12px 24px;
	border-radius: 999px;
	border: 2px solid transparent;
	background: var(--hj-primary-strong);
	color: #fff;
	cursor: pointer;
	transition: transform .15s, box-shadow .2s, background .2s, color .2s;
	text-decoration: none;
}
.hj-btn:hover,
.hj-theme .button:hover,
.hj-theme .wc-block-components-button:not(.is-link):hover {
	background: var(--hj-dark);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: var(--hj-shadow);
}
.hj-btn--primary { background: var(--hj-sale-strong); }
.hj-btn--primary:hover { background: var(--hj-dark); }
.hj-btn--ghost {
	background: #fff;
	color: var(--hj-dark);
	border-color: var(--hj-line);
}
.hj-btn--ghost:hover { border-color: var(--hj-dark); background: #fff; color: var(--hj-dark); }
.hj-btn--lg { padding: 15px 32px; font-size: 1.1rem; }

/* ---------- Top bar ---------- */
.hj-topbar {
	background: var(--hj-dark);
	color: #fff;
	text-align: center;
	font-size: .9rem;
	font-weight: 500;
	padding: 8px 0;
}

/* ---------- Header ---------- */
.hj-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 1px 0 var(--hj-line);
	transition: box-shadow .2s;
}
.admin-bar .hj-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hj-header { top: 0; } }
.hj-header.is-scrolled { box-shadow: var(--hj-shadow); }

.hj-header__row {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--hj-header-h);
}

.hj-header__burger {
	display: none;
	background: none;
	border: 0;
	padding: 6px;
	color: var(--hj-dark);
	cursor: pointer;
}

/* Logo */
.hj-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--hj-dark);
	text-decoration: none;
}
.hj-logo:hover { color: var(--hj-dark); }
.hj-logo__mark { flex: none; transition: transform .3s; }
.hj-logo:hover .hj-logo__mark { transform: rotate(-8deg) scale(1.05); }
.hj-logo__text { display: flex; flex-direction: column; line-height: 1; }
.hj-logo__small { font-size: .95rem; font-weight: 500; color: var(--hj-primary-strong); letter-spacing: .02em; }
.hj-logo__big { font-size: 1.65rem; font-weight: 900; color: var(--hj-dark); }
.hj-header__logo .custom-logo { max-height: 60px; width: auto; }

/* Search */
.hj-search {
	flex: 1;
	display: flex;
	align-items: center;
	max-width: 560px;
	margin-inline: auto;
	background: var(--hj-soft);
	border: 2px solid transparent;
	border-radius: 999px;
	transition: border-color .2s, background .2s;
}
.hj-search:focus-within { border-color: var(--hj-primary); background: #fff; }
.hj-search input[type="search"] {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 12px 20px;
	font: inherit;
	color: var(--hj-text);
	outline: 0;
	min-width: 0;
}
.hj-search button {
	background: var(--hj-primary-strong);
	color: #fff;
	border: 0;
	width: 40px;
	height: 40px;
	margin-inline-end: 4px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
}
.hj-search button:hover { background: var(--hj-dark); }

/* Actions */
.hj-header__actions { display: flex; align-items: center; gap: 6px; }
.hj-header__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: var(--hj-dark);
	transition: background .2s;
}
.hj-header__icon:hover { background: var(--hj-soft); color: var(--hj-dark); }
.hj-cart-count {
	position: absolute;
	top: 2px;
	inset-inline-start: 0;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--hj-sale-strong);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	display: grid;
	place-items: center;
	border: 2px solid #fff;
	animation: hj-pop .3s ease;
}
.hj-cart-count.is-empty { display: none; }
@keyframes hj-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* Nav (desktop) */
.hj-nav { border-top: 1px solid var(--hj-line); }
.hj-nav__close { display: none; }
.hj-nav__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 6px 0;
}
.hj-nav__menu > li { position: relative; }
.hj-nav__menu a {
	display: block;
	padding: 8px 16px;
	border-radius: 999px;
	color: var(--hj-dark);
	font-weight: 500;
}
.hj-nav__menu a:hover,
.hj-nav__menu .current-menu-item > a,
.hj-nav__menu .current-product_cat-ancestor > a {
	background: var(--hj-soft);
	color: var(--hj-primary-strong);
}
.hj-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: #fff;
	border-radius: var(--hj-radius);
	box-shadow: var(--hj-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .2s;
	z-index: 10;
}
.hj-nav__menu li:hover > .sub-menu,
.hj-nav__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.hj-nav__menu .sub-menu a { border-radius: var(--hj-radius-sm); }

.hj-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 52, 68, .45);
	z-index: 140;
}

/* ---------- Mobile header ---------- */
@media (max-width: 960px) {
	:root { --hj-header-h: 64px; }
	.hj-header__row { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
	.hj-header__burger { display: grid; }
	.hj-header__logo { flex: 1; display: flex; justify-content: center; }
	.hj-logo__mark { width: 40px; height: 40px; }
	.hj-logo__big { font-size: 1.3rem; }
	.hj-logo__small { font-size: .8rem; }
	.hj-search { order: 10; flex-basis: 100%; max-width: none; }
	.hj-search input[type="search"] { padding: 9px 16px; }
	.hj-search button { width: 34px; height: 34px; }

	.hj-nav {
		position: fixed;
		top: 0;
		inset-inline-start: 0;
		bottom: 0;
		width: min(86vw, 340px);
		background: #fff;
		border: 0;
		z-index: 150;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .3s ease, visibility 0s linear .3s;
		overflow-y: auto;
		padding-top: 56px;
	}
	.hj-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; box-shadow: var(--hj-shadow-lg); }
	.hj-nav__close {
		display: grid;
		place-items: center;
		position: absolute;
		top: 10px;
		inset-inline-end: 10px;
		width: 40px;
		height: 40px;
		border: 0;
		border-radius: 50%;
		background: var(--hj-soft);
		color: var(--hj-dark);
		cursor: pointer;
	}
	.hj-nav__menu { flex-direction: column; gap: 0; }
	.hj-nav__menu a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--hj-line); font-size: 1.05rem; }
	.hj-nav__menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0 16px 0 0;
	}
	body.hj-nav-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.hj-section { padding-block: 56px; }
.hj-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}
.hj-section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin: 0; }
.hj-section__sub { margin: 4px 0 0; color: var(--hj-muted); }
.hj-section__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Hero ---------- */
.hj-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(25, 167, 224, .16), transparent 60%),
		radial-gradient(800px 400px at 0% 100%, rgba(45, 179, 111, .14), transparent 60%),
		var(--hj-soft);
	border-radius: 0 0 var(--hj-radius-lg) var(--hj-radius-lg);
}
.hj-hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	align-items: center;
	gap: 40px;
	padding-block: 64px;
}
.hj-hero__kicker {
	display: inline-block;
	background: #fff;
	color: var(--hj-dark);
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 999px;
	box-shadow: var(--hj-shadow);
	margin-bottom: 18px;
}
.hj-hero__title {
	position: relative;
	z-index: 0;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	font-weight: 900;
	letter-spacing: -.01em;
	margin-bottom: 16px;
}
.hj-hero__highlight {
	display: block;
	color: var(--hj-primary-strong);
	position: relative;
	width: fit-content;
}
.hj-hero__highlight::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: .04em;
	height: .22em;
	background: var(--hj-accent);
	opacity: .3;
	border-radius: 999px;
	z-index: -1;
}
.hj-hero__lead { font-size: 1.15rem; color: var(--hj-muted); max-width: 520px; margin-bottom: 28px; }
.hj-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hj-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--hj-dark);
	font-size: .95rem;
}
.hj-hero__stats li { display: inline-flex; align-items: center; gap: 6px; }
.hj-hero__stats strong { color: var(--hj-primary-strong); font-weight: 900; }

.hj-hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.hj-hero__blob {
	position: absolute;
	width: 88%;
	aspect-ratio: 1;
	background: linear-gradient(145deg, var(--hj-primary), var(--hj-accent));
	border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%;
	opacity: .18;
	animation: hj-blob 12s ease-in-out infinite alternate;
}
@keyframes hj-blob {
	to { border-radius: 42% 58% 44% 56% / 56% 42% 58% 44%; transform: rotate(8deg); }
}
.hj-hero__img { position: relative; max-height: 460px; width: auto; filter: drop-shadow(0 20px 30px rgba(15, 52, 68, .18)); }
.hj-hero__mark { position: relative; filter: drop-shadow(0 20px 30px rgba(15, 52, 68, .18)); animation: hj-float 5s ease-in-out infinite; }
.hj-hero__mark svg { width: min(260px, 60vw); height: auto; }
@keyframes hj-float { 50% { transform: translateY(-12px); } }

.hj-hero__chip {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	padding: 10px 16px;
	border-radius: var(--hj-radius);
	box-shadow: var(--hj-shadow-lg);
	font-size: .85rem;
	color: var(--hj-muted);
}
.hj-hero__chip .hj-icon { color: var(--hj-accent); }
.hj-hero__chip span { display: flex; flex-direction: column; line-height: 1.25; }
.hj-hero__chip strong { color: var(--hj-dark); font-size: .95rem; }
.hj-hero__chip--a { top: 14%; inset-inline-start: 0; }
.hj-hero__chip--b { bottom: 12%; inset-inline-end: 0; }

@media (max-width: 860px) {
	.hj-hero__inner { grid-template-columns: 1fr; padding-block: 36px 24px; gap: 8px; text-align: center; }
	.hj-hero__highlight { margin-inline: auto; }
	.hj-hero__lead { margin-inline: auto; }
	.hj-hero__ctas, .hj-hero__stats { justify-content: center; }
	.hj-hero__visual { order: -1; min-height: 220px; }
	.hj-hero__mark svg { width: 160px; }
	.hj-hero__chip { display: none; }
}

/* ---------- Categories ---------- */
.hj-cats__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(140px, 1fr);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hj-cats__grid::-webkit-scrollbar { display: none; }
.hj-cats__grid > li { scroll-snap-align: start; }
.hj-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 20px 12px;
	background: #fff;
	border: 1px solid var(--hj-line);
	border-radius: var(--hj-radius);
	text-align: center;
	transition: transform .2s, box-shadow .2s, border-color .2s;
	height: 100%;
}
.hj-cat:hover { transform: translateY(-4px); box-shadow: var(--hj-shadow-lg); border-color: transparent; }
.hj-cat__img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--hj-soft);
	display: grid;
	place-items: center;
	overflow: hidden;
	margin-bottom: 8px;
	transition: background .2s;
}
.hj-cat:hover .hj-cat__img { background: color-mix(in srgb, var(--hj-accent) 18%, #fff); }
.hj-cat__img img { width: 100%; height: 100%; object-fit: cover; }
.hj-cat__emoji { font-size: 48px; line-height: 1; }
.hj-cat__name { font-weight: 700; color: var(--hj-dark); font-size: 1.05rem; }
.hj-cat__count { font-size: .85rem; color: var(--hj-muted); }

/* ---------- Benefits ---------- */
.hj-benefits { padding-block: 24px; }
.hj-benefits__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 28px;
	background: var(--hj-dark);
	border-radius: var(--hj-radius-lg);
	color: #fff;
}
.hj-benefit { display: flex; align-items: center; gap: 14px; }
.hj-benefit__icon {
	width: 54px;
	height: 54px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, .1);
	color: var(--hj-accent);
	flex: none;
}
.hj-benefit strong { display: block; font-size: 1.05rem; }
.hj-benefit small { display: block; color: rgba(255, 255, 255, .72); font-size: .88rem; }
@media (max-width: 960px) { .hj-benefits__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hj-benefits__grid { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- Prose ---------- */
.hj-prose { max-width: 860px; color: var(--hj-muted); }
.hj-prose h2, .hj-prose h3 { color: var(--hj-dark); }

/* ---------- Footer ---------- */
.hj-footer {
	margin-top: 64px;
	background: var(--hj-soft);
	border-radius: var(--hj-radius-lg) var(--hj-radius-lg) 0 0;
	color: var(--hj-muted);
}
.hj-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 32px;
	padding-block: 56px 40px;
}
.hj-footer__about p { margin-top: 16px; max-width: 320px; }
.hj-footer__title { font-size: 1.1rem; margin-bottom: 14px; }
.hj-footer__menu,
.hj-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hj-footer a { color: var(--hj-muted); display: inline-flex; align-items: center; gap: 8px; }
.hj-footer a:hover { color: var(--hj-primary-strong); }
.hj-footer__bottom {
	border-top: 1px solid var(--hj-line);
	padding-block: 18px;
	font-size: .88rem;
	text-align: center;
}
@media (max-width: 860px) {
	.hj-footer__grid { grid-template-columns: 1fr 1fr; }
	.hj-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .hj-footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp floating button (left side in RTL) */
.hj-wa-float {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 90;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #25D366;
	color: #fff !important;
	box-shadow: var(--hj-shadow-lg);
	transition: transform .2s;
}
.hj-wa-float:hover { transform: scale(1.08); }
@media (max-width: 640px) {
	.hj-wa-float { width: 48px; height: 48px; bottom: 14px; left: 14px; }
	.hj-wa-float svg { width: 24px; height: 24px; }
}

/* Accessibility helpers */
.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed;
	top: 8px; right: 8px;
	z-index: 1000;
	background: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	box-shadow: var(--hj-shadow);
}

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