/**
 * הדר אתר שחור + תפריט off-canvas
 */

/* גובה מקורב להדר הקבוע — לשימוש ב-padding של תוכן (למשל עמוד סניפים) */
:root {
	--pizza-site-header-height: 64px;
	/* מתחת לעגלה הצדדית של WP Cafe (.wpc_cart_block z-index: 99999), מעל תוכן רגיל */
	--pizza-site-header-z: 99800;
}

/* תוכן העמוד מתחיל מתחת להדר (fixed) — נראה דרך הרקע השקוף */
html {
	background-color: #fff;
}

body {
	background-color: #fff;
}

#content.site-main,
main#content.site-main,
.site-main {
	background-color: #fff;
}

/* עמוד סניף: אין padding-top ל-main — ההירו נשען לראש הדף מתחת להדר; הריווח מגיע מ-padding של .bsp-hero */
body.single-food_location #content.site-main,
body.single-food_location main#content.site-main,
body.single-food_location .site-main {
	padding-top: 0;
}

.pizza-site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: var(--pizza-site-header-z);
	margin: 0;
	padding: 0;
	background: #112d5c87;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-family: 'Heebo', sans-serif;
	direction: rtl;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-bar .pizza-site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .pizza-site-header {
		top: 46px;
	}
}

.pizza-site-header__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 10px 18px;
}

.pizza-site-header__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 12px 16px;
	direction: rtl;
}

.pizza-site-header__triggers {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

/* אזור אישי / התחברות — עיגול עם אייקון משתמש */
.pizza-account-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	color: #fff;
	text-decoration: none;
	border-radius: 50%;
	flex-shrink: 0;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.15s ease, filter 0.15s ease;
}

.pizza-account-icon:hover,
.pizza-account-icon:focus-visible {
	outline: none;
	transform: scale(1.05);
	filter: brightness(1.08);
}

.pizza-account-icon:focus-visible {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.pizza-account-icon__ring {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.pizza-account-icon:hover .pizza-account-icon__ring,
.pizza-account-icon:focus-visible .pizza-account-icon__ring {
	border-color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.16);
}

.pizza-account-icon__svg {
	display: block;
	width: 22px;
	height: 22px;
	color: inherit;
}

.pizza-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	color: #fff;
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.2s ease;
}

.pizza-menu-toggle:hover,
.pizza-menu-toggle:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	outline: none;
}

.pizza-menu-toggle__bars {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
	border-radius: 1px;
}

.pizza-site-header__center {
	justify-self: center;
	text-align: center;
	min-width: 0;
	padding: 0 8px;
}

.pizza-site-header__branch-area {
	justify-self: end;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	min-width: 0;
	max-width: min(50vw, 220px);
	text-align: end;
}

.pizza-site-header__logo-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	text-align: center;
}

.pizza-site-header__logo-wrap .custom-logo-link {
	display: block;
	line-height: 0;
	margin-inline: auto;
	width: fit-content;
	max-width: 100%;
}

.pizza-site-header__logo-wrap .pizza-site-header__site-name {
	display: inline-block;
}

.pizza-site-header__logo-wrap .custom-logo {
	max-height: 36px;
	width: auto;
	height: auto;
	display: block;
}

.pizza-site-header__site-name {
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
}

.pizza-site-header__kosher {
	font-size: 10px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.pizza-site-header__branch-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	min-width: 0;
	max-width: 200px;
}

.pizza-site-header__branch-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	direction: rtl;
	min-width: 0;
	width: 100%;
}

.pizza-site-header__branch-icon {
	display: inline-flex;
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.92);
	line-height: 0;
}

.pizza-site-header__branch-icon svg {
	display: block;
}

.pizza-site-header__branch-change {
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-align: end;
	white-space: nowrap;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
}

.pizza-site-header__branch-change:hover {
	color: #fff;
}

.pizza-site-header__branch {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
	min-width: 0;
}

.pizza-site-header__branch--link {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: underline;
	text-underline-offset: 3px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
	font-size: inherit;
}

.pizza-site-header__branch--link:hover {
	color: #fff;
}

/* ── Drawer ─────────────────────────────────── */
.pizza-drawer {
	position: fixed;
	inset: 0;
	z-index: 100010;
	pointer-events: none;
}

.pizza-drawer.is-open {
	pointer-events: auto;
}

.pizza-drawer__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.pizza-drawer.is-open .pizza-drawer__overlay {
	opacity: 1;
}

/* תפריט מלא מסך — יורד מלמעלה */
.pizza-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	max-height: 100%;
	z-index: 2;
	background: rgba(17, 45, 92, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	transform: translateY(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	direction: rtl;
	overflow: hidden;
}

.pizza-drawer.is-open .pizza-drawer__panel {
	transform: translateY(0);
}

/* × מעל גוף התפריט */
.pizza-drawer__head {
	position: relative;
	z-index: 3;
	flex-shrink: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
	margin: 0 0 8px;
	border: none;
	background: transparent;
	pointer-events: none;
}

/* גוף: תצוגה מקדימה (דסקטופ) + ניווט */
.pizza-drawer__panel-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.pizza-drawer__preview {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	padding: 8px 16px 20px;
	box-sizing: border-box;
}

.pizza-drawer__preview-frame {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pizza-drawer__preview-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pizza-drawer__preview-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(3rem, 8vw, 5rem);
	font-weight: 700;
	color: rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.15);
}

.pizza-drawer__close {
	pointer-events: auto;
	width: 56px;
	height: 56px;
	border: none;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

button#pizza-drawer-close {
	font-size: 50px !important;
}

.pizza-drawer__close:hover {
	background: rgba(255, 255, 255, 0.14);
}

.pizza-drawer__nav {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
	padding: calc(10px + env(safe-area-inset-top, 0px)) 0 24px;
	-webkit-overflow-scrolling: touch;
}

.pizza-drawer__empty {
	padding: 20px 18px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

.pizza-drawer__nav > .pizza-drawer__empty {
	padding: 8px 18px 18px;
}

ul.pizza-drawer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

ul.pizza-drawer-menu li {
	margin: 0;
}

ul.pizza-drawer-menu a {
	position: relative;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 14px;
	min-height: 3.25rem;
	padding-block: 0.6rem;
	padding-inline: max(20px, env(safe-area-inset-inline-start, 0px)) max(20px, env(safe-area-inset-inline-end, 0px));
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: right;
	white-space: nowrap;
	transition:
		color 0.25s ease,
		font-size 0.25s ease,
		font-weight 0.2s ease;
}

ul.pizza-drawer-menu a::before {
	content: '';
	flex: 1 1 auto;
	align-self: center;
	min-width: 1.5rem;
	height: 1px;
	background: #fff;
	opacity: 0;
	transition: opacity 0.22s ease;
}

ul.pizza-drawer-menu a:focus-visible {
	color: #fff;
	font-size: 1.45rem;
	font-weight: 700;
	outline: none;
}

ul.pizza-drawer-menu a:focus-visible::before {
	opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
	ul.pizza-drawer-menu a:hover {
		color: #fff;
		font-size: 1.45rem;
		font-weight: 700;
	}

	ul.pizza-drawer-menu a:hover::before {
		opacity: 1;
	}
}

ul.pizza-drawer-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	background: rgba(255, 255, 255, 0.04);
}

ul.pizza-drawer-menu .sub-menu a {
	min-height: 2.85rem;
	font-size: 0.98rem;
	font-weight: 500;
	padding-inline-start: 2.25rem;
}

ul.pizza-drawer-menu .sub-menu a:focus-visible {
	font-size: 1.2rem;
}

@media (hover: hover) and (pointer: fine) {
	ul.pizza-drawer-menu .sub-menu a:hover {
		font-size: 1.2rem;
	}
}

@media (min-width: 1024px) {
	/* מסך מלא; ריפוד מורחב משמאל/למטה כדי שלא ייחתך הפריים המסובב */
	.pizza-drawer__panel {
		box-sizing: border-box;
		padding: 56px 50px 72px 80px;
	}

	.pizza-drawer__close {
		width: 64px;
		height: 64px;
		border-radius: 12px;
	}

	/* שורה: משמאל (פיזית) תצוגה מקדימה, מימין התפריט — direction:ltr על הגוף */
	.pizza-drawer__panel-body {
		flex-direction: row;
		direction: ltr;
		align-items: stretch;
		gap: 40px;
		flex: 1;
		min-height: 0;
		overflow: visible;
	}

	.pizza-drawer__preview {
		display: flex;
		flex: 0 0 min(52vw, 600px);
		max-width: 620px;
		align-self: center;
		/* top | right (צד התפריט) | bottom | left — ריווח ימני כדי שלא ייחתך הכרטיס המסובב */
		padding: 24px 48px 48px 12px;
		/* ימינה לכיוון התפריט — מתקן חיתוך בצד ימין של התמונה */
		transform: translate(28px, 28px);
	}

	.pizza-drawer__preview-frame {
		aspect-ratio: 16 / 9;
		border-radius: 18px;
		transform: rotate(-4.5deg);
		box-shadow:
			0 24px 56px rgba(0, 0, 0, 0.38),
			inset 0 0 0 1px rgba(255, 255, 255, 0.14);
		transition: transform 0.35s ease, box-shadow 0.35s ease;
	}

	.pizza-drawer__preview:hover .pizza-drawer__preview-frame {
		transform: rotate(-3deg) scale(1.03);
		box-shadow:
			0 28px 64px rgba(0, 0, 0, 0.42),
			inset 0 0 0 1px rgba(255, 255, 255, 0.16);
	}

	.pizza-drawer__nav {
		flex: 1;
		min-width: 0;
		direction: rtl;
		padding: 0 0 0 8px;
	}

	.pizza-drawer__nav > .pizza-drawer__empty {
		padding: 8px 0 24px;
	}

	ul.pizza-drawer-menu a {
		font-family: 'Heebo', sans-serif;
		font-weight: bolder !important;
		font-size: 40px !important;
		min-height: 4.5rem;
		padding-block: 0.75rem;
		padding-inline: max(0px, env(safe-area-inset-inline-start, 0px))
			max(0px, env(safe-area-inset-inline-end, 0px));
	}

	ul.pizza-drawer-menu a:focus-visible {
		font-size: 48px !important;
		font-weight: bolder !important;
	}

	@media (hover: hover) and (pointer: fine) {
		ul.pizza-drawer-menu a:hover {
			font-size: 48px !important;
			font-weight: bolder !important;
		}
	}

	ul.pizza-drawer-menu .sub-menu a {
		font-family: 'Heebo', sans-serif;
		font-weight: bolder !important;
		font-size: 32px !important;
		min-height: 3.5rem;
		padding-inline-start: 3rem;
	}

	ul.pizza-drawer-menu .sub-menu a:focus-visible {
		font-size: 38px !important;
	}

	@media (hover: hover) and (pointer: fine) {
		ul.pizza-drawer-menu .sub-menu a:hover {
			font-size: 38px !important;
		}
	}
}

body.pizza-drawer-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.pizza-site-header__branch {
		max-width: 100px;
		font-size: 12px;
	}

	.pizza-site-header__logo-wrap .custom-logo {
		max-height: 30px;
	}
}
