/* Fasto header, top bar, mobile drawer. */
.fasto-topbar {
	background: var(--f-night);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
}
.fasto-topbar p {
	margin: 0 auto;
	max-width: var(--f-wrap);
	padding: 8px var(--f-gutter);
	display: flex;
	justify-content: center;
	gap: 28px;
	flex-wrap: wrap;
	text-align: center;
}
.fasto-topbar p { font-family: var(--f-font-ar); font-weight: 500; }

.fasto-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 10, 15, .92);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .07);
	color: #fff;
}
body.admin-bar .fasto-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .fasto-header { top: 0; } }

.fasto-header__inner {
	max-width: var(--f-wrap);
	margin: 0 auto;
	height: var(--f-header-h);
	padding: 0 var(--f-gutter);
	display: flex;
	align-items: center;
	gap: 28px;
}

.fasto-logo {
	direction: ltr;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff;
	text-decoration: none;
	flex-shrink: 0;
}
.fasto-logo img { width: 34px; height: auto; display: block; }
.fasto-logo span {
	font: 900 27px/1 var(--f-font);
	letter-spacing: -.045em;
	color: #fff;
}
.fasto-logo.is-dark span { color: var(--f-black); }
.fasto-logo:hover { color: #fff; }

.fasto-nav { flex: 1; }
.fasto-nav__list {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.fasto-nav__list a {
	font-family: var(--f-font-ar);
	display: block;
	padding: 9px 14px;
	border-radius: 999px;
	color: rgba(255, 255, 255, .78);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s, background .2s;
}
.fasto-nav__list a:hover,
.fasto-nav__list .current-menu-item > a {
	color: #fff;
	background: rgba(255, 255, 255, .08);
}

.fasto-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-inline-start: auto;
}

.fasto-icon-btn {
	width: 42px;
	height: 42px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: background .2s;
}
.fasto-icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.fasto-header svg,
.fasto-drawer svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fasto-search {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 999px;
	padding-inline-start: 16px;
	transition: border-color .2s, background .2s;
}
.fasto-search:focus-within { border-color: rgba(0, 229, 255, .6); background: rgba(255, 255, 255, .1); }
.fasto-search input[type="search"] {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 14px;
	width: 190px;
	height: 40px;
	padding: 0;
	box-shadow: none;
	outline: none;
}
.fasto-search input::placeholder { color: rgba(255, 255, 255, .5); }
.fasto-search .fasto-icon-btn { width: 40px; height: 40px; }

.fasto-lang {
	font-family: var(--f-font);
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .04em;
}
.fasto-lang:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.fasto-cart {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 42px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
}
.fasto-cart:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.fasto-cart-count {
	position: absolute;
	top: 3px;
	inset-inline-end: 2px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--f-grad);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 19px;
	text-align: center;
}
.fasto-cart-count[data-count="0"] { display: none; }

.fasto-menu-btn { display: none; }

/* ---------- drawer (mobile) ---------- */
.fasto-drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
	visibility: hidden;
	pointer-events: none;
}
.fasto-drawer.is-open { visibility: visible; pointer-events: auto; }
.fasto-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(5, 5, 10, .6);
	opacity: 0;
	transition: opacity .3s var(--f-ease);
}
.fasto-drawer.is-open .fasto-drawer__scrim { opacity: 1; }
.fasto-drawer__panel {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	bottom: 0;
	width: min(86vw, 360px);
	background: var(--f-black);
	color: #fff;
	padding: 18px 20px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	transform: translateX(-100%);
	transition: transform .35s var(--f-ease);
	overflow-y: auto;
}
[dir="rtl"] .fasto-drawer__panel { transform: translateX(100%); }
.fasto-drawer.is-open .fasto-drawer__panel { transform: none; }
.fasto-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.fasto-search.is-drawer { padding: 0 16px; }
.fasto-search.is-drawer input[type="search"] { width: 100%; height: 46px; }
.fasto-drawer__list { list-style: none; margin: 0; padding: 0; }
.fasto-drawer__list a {
	display: block;
	padding: 14px 4px;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.fasto-drawer__foot { margin-top: auto; display: flex; gap: 18px; }
.fasto-drawer__foot a { color: rgba(255, 255, 255, .7); text-decoration: none; font-weight: 500; }
html.fasto-lock, html.fasto-lock body { overflow: hidden; }

@media (max-width: 1024px) {
	.fasto-nav, .fasto-header .fasto-search, .fasto-lang { display: none; }
	.fasto-menu-btn { display: inline-grid; }
	.fasto-header__inner { gap: 10px; }
}
@media (max-width: 600px) {
	:root { --f-header-h: 62px; }
	.fasto-logo span { font-size: 24px; }
	.fasto-logo img { width: 30px; }
	.fasto-topbar p { gap: 14px; font-size: 11.5px; }
	.fasto-topbar p span:nth-child(3) { display: none; }
	.fasto-account { display: none; }
}

.fasto-search input[type="search"] { font-family: var(--f-font-ar); }
.fasto-drawer__list a, .fasto-drawer__foot a { font-family: var(--f-font-ar); }
@media (max-width: 600px) { .fasto-topbar p { font-size: 12.5px; } }
