/* ה-header, הפוטר וחלון קבוצות הוואטסאפ של כל האתר (inc/chrome.php).
   כל הכללים מתחילים במחלקה של הרכיב, כדי שלא ישפיעו על תוכן העמוד. */

.fs-hdr-wrap,
.fs-ftr,
.fs-wa-sheet,
.fs-wa-fab,
.fs-cart--float {
	--fs-c-navy: #141E38;
	--fs-c-green: #009B61;
	--fs-c-green-dark: #027347;
	--fs-c-line: #EAECF2;
	--fs-c-grey: #8699A8;
	font-family: "Polin", sans-serif;
	box-sizing: border-box;
}
.fs-hdr-wrap *,
.fs-ftr *,
.fs-wa-sheet * {
	box-sizing: border-box;
}
.fs-hdr-wrap .screen-reader-text,
.fs-ftr .screen-reader-text,
.fs-wa-sheet .screen-reader-text,
.fs-wa-fab .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* כפתורים: מאפסים את העיצוב הכללי של התבנית ושל Elementor */
.fs-hdr-wrap button,
.fs-wa-sheet button,
button.fs-wa-fab {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}
.fs-hdr-wrap button:hover,
.fs-hdr-wrap button:focus,
.fs-wa-sheet button:hover,
.fs-wa-sheet button:focus {
	background: none;
	color: inherit;
	box-shadow: none;
}
.fs-hdr-wrap :focus-visible,
.fs-ftr :focus-visible,
.fs-wa-sheet :focus-visible,
.fs-wa-fab:focus-visible {
	outline: 2px solid #3273B8;
	outline-offset: 2px;
}

/* ---------- Header ---------- */

.fs-hdr-wrap {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 999;
	padding: 16px 48px 0;
	pointer-events: none;
}
body.admin-bar .fs-hdr-wrap { top: 32px; }

.fs-hdr {
	pointer-events: auto;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	max-width: 1800px;
	min-height: 91px;
	margin: 0 auto;
	padding: 0 32px;
	background: #FFFFFF;
	border: 1px solid var(--fs-c-line);
	border-radius: 15px;
}
.fs-hdr__logo {
	flex: 0 0 155px;
	display: flex;
	align-items: center;
}
.fs-hdr__logo img {
	display: block;
	width: 115px;
	height: auto;
	max-width: none;
}

.fs-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}
.fs-hdr .fs-nav__list,
.fs-hdr .fs-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.fs-hdr .fs-nav__list {
	display: flex;
	align-items: stretch;
}
.fs-nav__list li {
	position: relative;
	display: flex;
	align-items: center;
}
.fs-nav__list a,
.fs-nav__list .fs-nav__label {
	display: block;
	color: var(--fs-c-navy);
	text-decoration: none;
	cursor: pointer;
}
.fs-hdr .fs-nav__list > li > a,
.fs-hdr .fs-nav__list > li > .fs-nav__label {
	position: relative;
	padding: 35px 1em;
	font-size: 0.8vw;
	font-weight: 300;
	line-height: 20px;
	white-space: nowrap;
}
.fs-hdr .fs-nav__list > li > a::after,
.fs-hdr .fs-nav__list > li > .fs-nav__label::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--fs-c-navy);
	opacity: 0;
	transition: opacity 0.3s;
}
.fs-hdr .fs-nav__list > li:hover > a::after,
.fs-hdr .fs-nav__list > li:hover > .fs-nav__label::after,
.fs-hdr .fs-nav__list > li > a:focus-visible::after,
.fs-hdr .fs-nav__list > li.current-menu-item > a::after {
	opacity: 1;
}
.fs-hdr .fs-nav__list > li.menu-item-has-children > a,
.fs-hdr .fs-nav__list > li.menu-item-has-children > .fs-nav__label {
	padding-left: calc(1em + 1.2em);
}
.fs-hdr .fs-nav__toggle {
	position: absolute;
	left: 1em;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 0.8vw;
	margin-top: -0.5em;
	color: var(--fs-c-navy);
}
.fs-hdr .fs-nav__toggle svg {
	width: 0.85em;
	height: 0.85em;
	transition: transform 0.2s;
}

/* תת-תפריט בדסקטופ */
.fs-hdr .fs-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 5px);
	right: 0;
	z-index: 10;
	display: none;
	min-width: 156px;
	background: #FFFFFF;
	border: 1px solid var(--fs-c-line);
	border-radius: 15px;
}
.fs-hdr .fs-nav__list .sub-menu .sub-menu {
	top: -1px;
	right: 100%;
}
.fs-hdr .fs-nav__list li:hover > .sub-menu,
.fs-hdr .fs-nav__list li:focus-within > .sub-menu,
.fs-hdr .fs-nav__list li.is-open > .sub-menu {
	display: block;
}
.fs-hdr .fs-nav__list > li > .sub-menu::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 0;
	right: 0;
	height: 6px;
}
.fs-hdr .sub-menu li + li {
	border-top: 1px solid var(--fs-c-line);
}
.fs-hdr .sub-menu a,
.fs-hdr .sub-menu .fs-nav__label {
	flex: 1 1 auto;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 300;
	line-height: 20px;
	white-space: nowrap;
}
.fs-hdr .sub-menu li.menu-item-has-children > a,
.fs-hdr .sub-menu li.menu-item-has-children > .fs-nav__label {
	padding-left: 36px;
}
.fs-hdr .sub-menu .fs-nav__toggle {
	left: 14px;
	font-size: 14px;
}
.fs-hdr .sub-menu .fs-nav__toggle svg {
	transform: rotate(-90deg);
}
.fs-hdr .sub-menu a:hover,
.fs-hdr .sub-menu .fs-nav__label:hover,
.fs-hdr .sub-menu li.current-menu-item > a {
	color: var(--fs-c-green-dark);
}

/* פעולות: עגלה וכפתור */
.fs-hdr__actions {
	flex: 0 0 20%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 17px;
}
.fs-hdr__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 50px;
	background: linear-gradient(197deg, #009B61 0%, #027347 100%);
	box-shadow: 0 6px 45px -10px rgba(0, 155, 97, 0.83);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.3s;
}
.fs-hdr__cta:hover,
.fs-hdr__cta:focus {
	color: #FFFFFF;
	transform: translateY(-8px);
}
.fs-hdr__cta svg {
	width: 13px;
	height: 13px;
}

.fs-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--fs-c-grey);
	text-decoration: none;
}
.fs-cart svg {
	width: 35px;
	height: 35px;
}
.fs-cart__count {
	position: absolute;
	top: -2px;
	left: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--fs-c-green-dark);
	color: #F3F8FC;
	font-size: 11px;
	font-weight: 500;
	line-height: 18px;
	text-align: center;
}
.fs-cart--float {
	display: none;
}

.fs-hdr__burger {
	display: none;
}

/* ---------- Header: טאבלט ומובייל ---------- */

@media (max-width: 1024px) {
	.fs-hdr-wrap {
		padding: 16px;
	}
	.fs-hdr {
		align-items: center;
		min-height: 0;
		padding: 16px 16px 16px 32px;
	}
	.fs-hdr__logo {
		flex: 0 0 auto;
	}
	.fs-hdr__actions {
		flex: 1 1 auto;
		order: 2;
		gap: 6px;
		padding: 0 16px;
	}
	.fs-hdr__cta {
		display: none;
	}
	.fs-hdr .fs-hdr__burger,
	.fs-hdr .fs-hdr__burger:hover,
	.fs-hdr .fs-hdr__burger:focus {
		order: 3;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		color: var(--fs-c-green-dark);
		background: #FFFFFF;
	}
	.fs-hdr__burger-close,
	.fs-hdr.is-open .fs-hdr__burger-open {
		display: none;
	}
	.fs-hdr.is-open .fs-hdr__burger-close,
	.fs-hdr__burger-open {
		display: flex;
	}

	.fs-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - 140px);
		margin-top: 1px;
		overflow-y: auto;
		background: #FFFFFF;
		border-top: 1px solid var(--fs-c-line);
		border-bottom: 1px solid var(--fs-c-line);
		pointer-events: auto;
		box-shadow: 0 12px 24px rgba(20, 30, 56, 0.08);
	}
	.fs-hdr.is-open .fs-nav {
		display: block;
	}
	.fs-hdr .fs-nav__list {
		display: block;
	}
	.fs-nav__list li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}
	.fs-hdr .fs-nav__list li + li,
	.fs-hdr .fs-nav__list > li {
		border-top: 1px solid var(--fs-c-line);
	}
	.fs-hdr .fs-nav__list > li:first-child {
		border-top: 0;
	}
	.fs-hdr .fs-nav__list > li > a,
	.fs-hdr .fs-nav__list > li > .fs-nav__label,
	.fs-hdr .sub-menu a,
	.fs-hdr .sub-menu .fs-nav__label {
		flex: 0 1 auto;
		padding: 13px 20px;
		font-size: 15px;
		font-weight: 300;
		line-height: 20px;
		white-space: normal;
	}
	.fs-hdr .fs-nav__list > li.menu-item-has-children > a,
	.fs-hdr .fs-nav__list > li.menu-item-has-children > .fs-nav__label,
	.fs-hdr .sub-menu li.menu-item-has-children > a,
	.fs-hdr .sub-menu li.menu-item-has-children > .fs-nav__label {
		padding-left: 6px;
	}
	.fs-hdr .fs-nav__list > li > a::after,
	.fs-hdr .fs-nav__list > li > .fs-nav__label::after {
		display: none;
	}
	.fs-hdr .fs-nav__toggle,
	.fs-hdr .sub-menu .fs-nav__toggle {
		position: static;
		width: 40px;
		height: 40px;
		margin: 0;
		font-size: 14px;
		justify-content: flex-start;
	}
	.fs-hdr .fs-nav__toggle svg,
	.fs-hdr .sub-menu .fs-nav__toggle svg {
		width: 11px;
		height: 11px;
		transform: none;
	}
	.fs-hdr li.is-open > .fs-nav__toggle svg {
		transform: rotate(180deg);
	}
	.fs-hdr .fs-nav__list .sub-menu,
	.fs-hdr .fs-nav__list .sub-menu .sub-menu {
		position: static;
		flex: 0 0 100%;
		display: none;
		min-width: 0;
		border: 0;
		border-top: 1px solid var(--fs-c-line);
		border-radius: 0;
		padding-right: 20px;
	}
	.fs-hdr .fs-nav__list li:hover > .sub-menu,
	.fs-hdr .fs-nav__list li:focus-within > .sub-menu {
		display: none;
	}
	.fs-hdr .fs-nav__list li.is-open > .sub-menu {
		display: block;
	}
	.fs-hdr .fs-nav__list > li > .sub-menu::before {
		display: none;
	}

	.fs-cart--float {
		position: fixed;
		left: 10px;
		bottom: 10px;
		z-index: 150;
		display: inline-flex;
		width: 70px;
		height: 70px;
		border: 4px solid var(--fs-c-green-dark);
		border-radius: 50%;
		background: #FFFFFF;
	}
	.fs-cart--header {
		display: none;
	}
}

@media (max-width: 782px) {
	body.admin-bar .fs-hdr-wrap { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .fs-hdr-wrap { top: 0; }
}

@media (max-width: 767px) {
	.fs-hdr {
		flex-direction: row-reverse;
		padding: 12px 12px 12px 13px;
	}
	.fs-hdr__actions {
		justify-content: flex-start;
		padding: 0 8px;
	}
	.fs-hdr__logo img {
		width: 80px;
	}
	.fs-cart--float {
		left: 5px;
		bottom: 15px;
		width: 60px;
		height: 60px;
		border-width: 2px;
	}
	.fs-cart--float svg {
		width: 29px;
		height: 29px;
	}
}

/* ---------- Footer ---------- */

.fs-ftr {
	margin-top: -4px;
	padding: 48px 64px;
	background: var(--fs-c-navy);
	border-radius: 80px 80px 0 0;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
}
.fs-ftr__inner {
	display: grid;
	grid-template-columns: 35fr 24fr 24fr 24fr 24fr;
	gap: 20px;
	max-width: 1600px;
	margin: 0 auto;
}
.fs-ftr a {
	color: #FFFFFF;
	text-decoration: none;
	transition: color 0.2s;
}
.fs-ftr__brand {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
}
.fs-ftr__brand-top {
	display: flex;
	flex-direction: column;
	align-items: inherit;
}
.fs-ftr__logo {
	display: block;
	width: 215px;
	height: auto;
	max-width: 100%;
	padding-bottom: 48px;
	box-sizing: content-box;
}
.fs-ftr .fs-ftr__social {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fs-ftr__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(255, 253, 253, 0.08);
	color: #FFFFFF;
	transition: background-color 0.2s;
}
.fs-ftr__social a:hover {
	background: transparent;
	color: #FFFFFF;
}
.fs-ftr__social svg {
	width: 21px;
	height: 21px;
}
.fs-ftr__legal {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.57);
	font-size: 13px;
	font-weight: 300;
}
.fs-ftr .fs-ftr__credit {
	color: rgba(255, 255, 255, 0.57);
	font-family: "Cinzel", serif;
	font-size: 12px;
	font-weight: 400;
	direction: ltr;
}
.fs-ftr .fs-ftr__credit:hover {
	color: #FFFFFF;
}
.fs-ftr__legal--mobile {
	display: none;
}

.fs-ftr__title {
	margin: 0;
	padding-right: 10px;
	border-right: 3px solid var(--fs-accent, #3273B8);
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}
.fs-ftr .fs-ftr__list {
	margin: 0;
	padding: 12px 0 0;
	list-style: none;
}
.fs-ftr__menu li a {
	display: block;
	padding: 7px 0;
	line-height: 20px;
}
.fs-ftr__menu li a:hover,
.fs-ftr__menu li.current-menu-item > a {
	color: var(--fs-hover, #009B61);
}
.fs-ftr .fs-ftr__links {
	display: grid;
	gap: 5px;
	margin-top: 16px;
	padding: 0 0 25px;
}
.fs-ftr__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.fs-ftr__links a:hover {
	color: var(--fs-c-green);
}
.fs-ftr__icon {
	display: inline-flex;
	color: var(--fs-c-green);
}
.fs-ftr__icon--edit,
.fs-ftr__icon--access {
	color: #F3F8FC;
}
.fs-ftr__icon svg {
	width: 15px;
	height: 15px;
}
.fs-ftr__group {
	margin-top: 0;
}

@media (max-width: 1024px) {
	.fs-ftr {
		padding: 24px;
	}
	.fs-ftr__inner {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.fs-ftr__brand {
		align-items: center;
		padding-bottom: 32px;
	}
	.fs-ftr__legal--desktop {
		display: none;
	}
	.fs-ftr__legal--mobile {
		display: flex;
		align-items: center;
		text-align: center;
	}
	.fs-ftr__col {
		padding-bottom: 16px;
	}
}
@media (max-width: 767px) {
	.fs-ftr {
		padding: 16px 16px 48px;
	}
	.fs-ftr__logo {
		width: 189px;
		padding: 32px 0;
	}
}

/* ---------- WhatsApp ---------- */

.fs-wa-fab {
	position: fixed;
	right: 25px;
	bottom: 25px;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: linear-gradient(180deg, #4ECC5C 0%, #29B63F 100%);
	color: #F3F8FC;
	cursor: pointer;
}
button.fs-wa-fab,
button.fs-wa-fab:hover,
button.fs-wa-fab:focus {
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(180deg, #4ECC5C 0%, #29B63F 100%);
	color: #F3F8FC;
}
.fs-wa-fab svg {
	width: 32px;
	height: 32px;
}

.fs-wa-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	background: #FFFFFF;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, 0.2);
	color: var(--fs-c-navy);
}
.fs-wa-sheet[hidden] {
	display: none;
}
.fs-wa-sheet__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 64px 16px 80px;
}
.fs-wa-sheet__title {
	margin: 0;
	white-space: nowrap;
	color: var(--fs-c-green-dark);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
}
.fs-wa-sheet__title span {
	color: var(--fs-c-navy);
}
.fs-wa-sheet .fs-wa-sheet__links {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fs-wa-sheet__links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 255px;
	padding: 12px 24px;
	white-space: nowrap;
	border: 1px solid var(--fs-c-navy);
	border-radius: 50px;
	color: var(--fs-c-navy);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.fs-wa-sheet__links a:hover {
	background: var(--fs-c-navy);
	color: #FFFFFF;
}
.fs-wa-sheet__links svg {
	width: 18px;
	height: 18px;
	color: var(--fs-c-green);
}
.fs-wa-sheet .fs-wa-sheet__close {
	position: absolute;
	top: 6px;
	left: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--fs-c-navy);
}
.fs-wa-sheet__close svg {
	width: 18px;
	height: 18px;
}

@media (max-width: 1024px) {
	.fs-wa-sheet__inner {
		flex-direction: column;
		padding: 32px 20px 24px;
	}
	.fs-wa-sheet__title {
		font-size: 28px;
		text-align: center;
		white-space: normal;
	}
	.fs-wa-sheet .fs-wa-sheet__links {
		flex-direction: column;
		width: 100%;
		max-width: 360px;
		gap: 12px;
	}
	.fs-wa-sheet__links a {
		width: 100%;
		min-width: 0;
	}
}
@media (max-width: 767px) {
	.fs-wa-fab,
	button.fs-wa-fab {
		right: 10px;
		bottom: 10px;
		width: 57px;
		height: 57px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fs-hdr__cta,
	.fs-hdr .fs-nav__list > li > a::after {
		transition: none;
	}
	.fs-hdr__cta:hover {
		transform: none;
	}
}
