/**
 * Shadi Clinic site header, menu drawer, footer and mobile bottom bar. RTL, mobile first.
 */

.sc-header,
.sc-drawer,
.sc-footer,
.sc-bottombar {
	font-family: var(--sc-font);
	direction: rtl;
	text-align: right;
	color: var(--sc-ink);
	line-height: 1.8;
}

.sc-header *,
.sc-drawer *,
.sc-footer *,
.sc-bottombar * {
	box-sizing: border-box;
}

.sc-header a,
.sc-drawer a,
.sc-footer a,
.sc-bottombar a {
	text-decoration: none;
	color: inherit;
}

.sc-header ul,
.sc-drawer ul,
.sc-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-header .sc-i,
.sc-drawer .sc-i,
.sc-footer .sc-i,
.sc-bottombar .sc-i {
	width: 20px;
	height: 20px;
	flex: none;
}

.sc-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 16px;
}

.sc-header :focus-visible,
.sc-drawer :focus-visible,
.sc-footer :focus-visible,
.sc-bottombar :focus-visible {
	outline: 2px solid var(--sc-petrol);
	outline-offset: 2px;
}

/* Header */
.sc-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--sc-surface);
	border-bottom: 1px solid var(--sc-line);
}

.admin-bar .sc-header {
	top: 46px;
}

.sc-header__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"menu logo actions"
		"search search search";
	align-items: center;
	column-gap: 8px;
	row-gap: 8px;
	padding-block: 8px 10px;
}

.sc-header__menu {
	grid-area: menu;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--sc-r-sm);
	background: var(--sc-petrol-soft);
	color: var(--sc-petrol);
	cursor: pointer;
}

.sc-header__logo {
	grid-area: logo;
	display: flex;
	align-items: center;
}

.sc-header__logo img,
.sc-drawer__head img {
	display: block;
	height: 34px;
	width: auto;
}

.sc-header__logo .custom-logo {
	max-height: 40px;
	width: auto;
}

.sc-header__search {
	grid-area: search;
}

.sc-search {
	display: flex;
	align-items: center;
	background: var(--sc-bg);
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-r);
	padding-inline: 12px 4px;
	min-height: 44px;
}

.sc-search:focus-within {
	border-color: var(--sc-petrol);
}

.sc-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: .875rem;
	color: var(--sc-ink);
	padding: 8px 0;
	outline: 0;
	box-shadow: none;
}

.sc-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 10px;
	background: var(--sc-petrol);
	color: #fff;
	cursor: pointer;
	padding: 0;
}

.sc-header__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	gap: 4px;
}

.sc-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	min-width: 44px;
	justify-content: center;
	padding-inline: 8px;
	border-radius: var(--sc-r-sm);
	font-size: .8125rem;
	font-weight: 700;
	color: var(--sc-ink) !important;
}

.sc-action:hover {
	background: var(--sc-petrol-soft);
}

.sc-action .sc-i {
	width: 24px;
	height: 24px;
	color: var(--sc-petrol);
}

.sc-action__label {
	display: none;
}

.sc-action__icon {
	position: relative;
	display: inline-flex;
}

.sc-cart-count {
	position: absolute;
	top: -6px;
	inset-inline-end: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--sc-coral);
	color: var(--sc-ink);
	font-size: .6875rem;
	font-weight: 800;
	line-height: 18px;
	text-align: center;
}

.sc-cart-count[hidden] {
	display: none;
}

/* Main menu (desktop only; mobile uses the drawer) */
.sc-nav {
	display: none;
	border-top: 1px solid var(--sc-line);
}

/* Desktop menu: 15px items, no icons; the gold badge and two quiet links sit at the far end. */
.sc-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.sc-nav__list,
.sc-nav__util {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-nav__list {
	gap: 36px;
}

.sc-nav__list a {
	display: block;
	padding: 13px 0 11px;
	font-size: .9375rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--sc-ink) !important;
	border-bottom: 2px solid transparent;
}

.sc-nav__list a:hover,
.sc-nav__list a[aria-current],
.sc-nav__list .current-menu-item > a {
	color: var(--sc-petrol) !important;
	border-bottom-color: var(--sc-petrol);
}

.sc-nav__list a[aria-current],
.sc-nav__list .current-menu-item > a {
	font-weight: 600;
}

.sc-nav__aside {
	display: flex;
	align-items: center;
	gap: 20px;
}

.sc-nav__util {
	gap: 20px;
}

.sc-nav__util a {
	font-size: .8125rem;
	white-space: nowrap;
	color: var(--sc-muted) !important;
}

.sc-nav__util a:hover,
.sc-nav__util a[aria-current] {
	color: var(--sc-petrol) !important;
}

.sc-genuine-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px 4px 14px;
	border: 1px solid var(--sc-gold-line);
	border-radius: 999px;
	background: var(--sc-gold-soft);
	color: var(--sc-gold-ink) !important;
	font-size: .875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: border-color .15s;
}

.sc-genuine-link:hover,
.sc-genuine-link[aria-current] {
	border-color: var(--sc-gold);
}

/* Drawer */
.sc-drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(31, 42, 46, .45);
}

.sc-drawer[hidden] {
	display: none;
}

.sc-drawer-open,
.sc-drawer-open body {
	overflow: hidden;
}

.sc-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: min(320px, 86vw);
	background: var(--sc-surface);
	padding: 16px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sc-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sc-drawer__close {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: var(--sc-r-sm);
	background: var(--sc-bg);
	color: var(--sc-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sc-drawer__account {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 8px 12px;
	border-radius: var(--sc-r);
	background: var(--sc-petrol);
	color: #fff !important;
	font-weight: 700;
}

.sc-drawer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-drawer__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 8px 4px;
	border-bottom: 1px solid var(--sc-line);
	font-size: 1rem;
	font-weight: 600;
	color: var(--sc-ink) !important;
}

.sc-drawer__list a[aria-current] {
	color: var(--sc-petrol) !important;
}

.sc-drawer__list .sc-i {
	color: var(--sc-petrol);
}

.sc-drawer__list--quiet a {
	font-size: .9375rem;
	font-weight: 500;
	color: var(--sc-muted) !important;
}

.sc-drawer__list--quiet li:last-child a {
	border-bottom: 0;
}

.sc-genuine-link--block {
	justify-content: flex-start;
	gap: 10px;
	min-height: 48px;
	padding: 8px 12px;
	border-radius: var(--sc-r);
	font-size: .9375rem;
}

.sc-genuine-link--block .sc-genuine {
	width: 26px;
	height: 26px;
}

.sc-drawer__hours {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: auto 0 0;
	font-size: .8125rem;
	color: var(--sc-muted);
}

.sc-drawer__hours--last {
	margin-top: 0;
}

/* Footer */
.sc-footer {
	background: var(--sc-petrol-dark);
	color: #e3eeec;
	margin-top: 56px;
	font-size: .875rem;
}

.sc-footer__grid {
	display: grid;
	gap: 28px;
	padding-block: 36px 28px;
}

.sc-footer h2 {
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 12px;
}

.sc-footer__about img {
	height: 36px;
	width: auto;
	display: block;
	margin-bottom: 12px;
}

.sc-footer__about p {
	margin: 0 0 8px;
	color: rgba(227, 238, 236, .85);
}

.sc-footer__links li,
.sc-footer__facts li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.sc-footer__links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
}

.sc-footer__links a:hover,
.sc-footer__more:hover {
	color: #fff !important;
	text-decoration: underline;
}

.sc-footer .sc-i {
	color: var(--sc-coral);
	width: 18px;
	height: 18px;
	margin-top: 4px;
}

.sc-footer__links .sc-i {
	margin-top: 0;
}

.sc-footer__more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-weight: 700;
	color: #fff !important;
}

.sc-footer__more .sc-i {
	margin-top: 0;
	color: inherit;
}

.sc-footer .sc-ph {
	background: var(--sc-coral-soft);
	color: var(--sc-coral-ink);
	padding: 0 6px;
	border-radius: 6px;
}

.sc-footer .sc-seals,
.sc-cart-seals .sc-seals {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sc-footer .sc-seal,
.sc-footer .sc-seal-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 104px;
	min-height: 112px;
	padding: 8px;
	background: #fff;
	border-radius: var(--sc-r);
	color: var(--sc-ink);
	font-size: .8125rem;
}

.sc-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding-block: 14px;
	font-size: .8125rem;
	color: rgba(227, 238, 236, .75);
	text-align: center;
}

.sc-cart-seals {
	margin-top: 16px;
}

/* Mobile bottom bar */
.sc-bottombar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 50;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	background: var(--sc-surface);
	border-top: 1px solid var(--sc-line);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.sc-bottombar a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 48px;
	font-size: .6875rem;
	color: var(--sc-muted) !important;
}

.sc-bottombar a[aria-current="page"] {
	color: var(--sc-petrol) !important;
	font-weight: 700;
}

.sc-bottombar .sc-i {
	width: 22px;
	height: 22px;
}

body.sc-has-chrome {
	margin: 0;
	padding-bottom: 72px;
}

@media (min-width: 600px) {
	.sc-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 783px) {
	.admin-bar .sc-header {
		top: 32px;
	}
}

@media (min-width: 1024px) {
	.sc-header__bar {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "logo search actions";
		column-gap: 24px;
		padding-block: 12px;
	}

	.sc-header__menu {
		display: none;
	}

	.sc-header__search {
		max-width: 560px;
		width: 100%;
		justify-self: center;
	}

	.sc-header__logo img {
		height: 40px;
	}

	.sc-action__label {
		display: inline;
	}

	.sc-action--cart {
		background: var(--sc-petrol);
		color: #fff !important;
		padding-inline: 14px;
	}

	.sc-action--cart .sc-i {
		color: #fff;
	}

	.sc-action--cart:hover {
		background: var(--sc-petrol-dark);
	}

	.sc-nav {
		display: block;
	}

	.sc-footer__grid {
		grid-template-columns: 1.3fr 1fr 1fr 1fr;
		gap: 32px;
	}

	.sc-bottombar {
		display: none;
	}

	body.sc-has-chrome {
		padding-bottom: 0;
	}
}
