@font-face {
	font-family: 'Estedad';
	src: url('../../font/Estedad/Estedad-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Estedad';
	src: url('../../font/Estedad/Estedad-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Estedad';
	src: url('../../font/Estedad/Estedad-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--ss-white: #ffffff;
	--ss-text: #1f1f1f;
	--ss-muted: #777;
	--ss-border: #ebebeb;
	--ss-soft: #f8f8f8;
	--ss-red: #c81919;
	--ss-red-dark: #a80f0f;
	--ss-shadow: 0 8px 24px rgba(0, 0, 0, .06);
	--ss-radius: 16px;
	--ss-radius-sm: 12px;
	--ss-header-height: 88px;
	--ss-header-height-mobile: 72px;
	--ss-container: 1380px;
	--ss-transition: all .25s ease;
	--ss-header-gap-desktop: 10px;
	/* فاصله زیر هدر در موبایل (margin-bottom) - این مقدار را صفر کردم تا فضای خالی حذف شود */
	--ss-header-gap-mobile: -20px;
}

html {
	margin-top: 0 !important;
	overflow-x: clip;
	width: 100%;
}

body {
	margin: 0;
	padding: 0;
	background: #fff;
	overflow-x: clip;
	width: 100%;
	max-width: 100%;
}

/* جلوگیری از برخورد محتوای سایت با هدر چسبان */
body.admin-bar .ss-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .ss-site-header {
		top: 0 !important;
	}

	.ss-site-header {
		top: 0 !important;
	}
}

.ss-site-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 9999;
	width: 100%;
	max-width: 100%;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(8px);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--ss-border);
	box-shadow: 0 2px 14px rgba(0, 0, 0, .03);
	margin-bottom: var(--ss-header-gap-desktop);
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.ss-site-header * {
	box-sizing: border-box;
	min-width: 0;
}

.ss-header-wrap {
	max-width: var(--ss-container);
	width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.ss-header-desktop {
	height: var(--ss-header-height);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

.ss-header-mobile {
	display: none;
	height: var(--ss-header-height-mobile);
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

.ss-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.ss-brand a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	max-width: 100%;
}

.ss-brand img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 36px;
	object-fit: contain;
}

.ss-nav {
	display: flex;
	align-items: center;
	min-width: 0;
	overflow: hidden;
}

.ss-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: nowrap;
	min-width: 0;
	max-width: 100%;
}

.ss-menu li {
	margin: 0;
	padding: 0;
	flex: 0 0 auto;
}

.ss-menu a {
	font-family: 'Estedad', sans-serif;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: var(--ss-text);
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 400;
	border: 1px solid transparent;
	transition: var(--ss-transition);
	white-space: nowrap;
	line-height: 1;
	max-width: 100%;
}

.ss-menu a:hover {
	color: var(--ss-red);
	background: #fff4f4;
	border-color: #ffd7d7;
}



.ss-menu a.ss-highlight:hover {
	transform: scale(0.95);
	color: var(--ss-red);
	background: #fff4f4;
	border-color: #ffd7d7;
}

.ss-menu-icon {
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ss-red);
	flex: 0 0 20px;
}

.ss-menu-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.ss-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 0;
	max-width: 100%;
}

.ss-search {
	width: 100%;
	max-width: 360px;
	min-width: 260px;
	min-width: 0;
}

.ss-search-form {
	position: relative;
	display: flex;
	align-items: center;
	height: 46px;
	background: var(--ss-soft);
	border: 1px solid var(--ss-border);
	border-radius: 999px;
	padding: 0 14px;
	transition: var(--ss-transition);
	width: 100%;
	max-width: 100%;
}

.ss-search-form:focus-within {
	background: #fff;
	border-color: #efb1b1;
	box-shadow: 0 0 0 4px rgba(200, 25, 25, .08);
}

.ss-search-icon {
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ss-red);
	margin-left: 8px;
	flex: 0 0 20px;
}

.ss-search-icon svg {
	width: 20px;
	height: 20px;
	display: block;
}

.ss-search-form input[type="search"] {
	border: none;
	outline: none;
	background: transparent;
	width: 100%;
	min-width: 0;
	padding: 0;
	margin: 0;
	font-size: 14px;
	color: var(--ss-text);
	font-family: inherit;
	box-shadow: none !important;
}

.ss-search-form input[type="search"]::placeholder {
	color: #9b9b9b;
}

.ss-btn-icon {
	position: relative;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ss-soft);
	border: 1px solid var(--ss-border);
	color: var(--ss-text);
	text-decoration: none;
	transition: var(--ss-transition);
	flex: 0 0 46px;
}

.ss-btn-icon:hover {
	color: var(--ss-red);
	background: #fff4f4;
	border-color: #ffd7d7;
}

.ss-btn-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.ss-cart-count {
	position: absolute;
	top: -4px;
	left: -3px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ss-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	box-shadow: 0 6px 14px rgba(200, 25, 25, .24);
	z-index: 2;
}

.ss-mobile-logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	min-width: 0;
	max-width: 42%;
}

.ss-mobile-logo a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.ss-mobile-logo img {
	height: 34px;
	width: auto;
	max-width: 100%;
	display: block;
}

.ss-mobile-search {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

.ss-mobile-search .ss-search {
	min-width: 0;
	max-width: none;
	width: 100%;
}

.ss-mobile-search .ss-search-form {
	height: 44px;
	border-radius: 14px;
	padding: 0 12px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ss-header-spacer {
	height: 44px;
}

@media (max-width: 1200px) {
	.ss-header-wrap {
		padding: 0 18px;
	}

	.ss-menu {
		gap: 12px;
	}

	.ss-menu a {
		padding: 8px 10px;
		font-size: 14px;
	}

	.ss-search {
		max-width: 320px;
	}
}

@media (max-width: 1024px) {
	.ss-header-wrap {
		padding: 0 14px;
	}

	.ss-header-desktop {
		display: none;
	}

	.ss-header-mobile {
		display: flex;
	}

	/* ارتفاع اسپیسر زیر هدر در موبایل - صفر شده تا فضای اضافی کاملاً حذف شود */
	.ss-header-spacer {
		height: 0px;
	}

	.ss-site-header {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		/* فاصله margin-bottom هدر در موبایل (از متغیر استفاده می‌کند) - اکنون صفر است */
		margin-bottom: var(--ss-header-gap-mobile);
	}
}

@media (max-width: 767px) {
	.ss-header-wrap {
		padding: 0 12px;
	}

	.ss-mobile-logo img {
		height: 32px;
	}

	.ss-mobile-search .ss-search-form {
		height: 44px;
	}

	.ss-mobile-search .ss-search-form input[type="search"] {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.ss-header-wrap {
		padding: 0 10px;
	}

	.ss-header-mobile {
		gap: 10px;
	}

	.ss-mobile-logo {
		max-width: 40%;
	}
}

/* پدینگ داخلی صفحات در دسکتاپ و موبایل */
@media (min-width: 1025px) {
	body {
		padding-left: 10px;
		padding-right: 10px;
	}
}

@media (max-width: 1024px) {
	body {
		padding-left: 4px;
		padding-right: 4px;
	}
}