/**
 * NexaShop Tools Topbar Elementor Widget Styles (نوار بالایی اختصاصی فروشگاه ابزار و خدمات)
 *
 * Implements the sleek dark metallic gradient, orange accents, vertical hairline dividers,
 * responsive hiding per breakpoint, and RTL layout with LTR tabular numerals.
 *
 * @package NexaShop
 * @subpackage ElementorWidgets\Header
 */

.ak-topbar-shell,
.ak-topbar-shell * {
	box-sizing: border-box;
}

.ak-topbar-shell {
	width: 100%;
	direction: rtl;
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
	position: relative;
}

.ak-topbar-shell.is-sticky {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 999;
}

/* فضای مشکی بالای نوار - پیش‌فرض غیرفعال */
.ak-topbar__upper-space {
	display: none;
	width: 100%;
	height: 0;
	background: linear-gradient(
		180deg,
		#111111 0%,
		#050505 45%,
		#000000 100%
	);
	transition: height 0.25s ease;
}

.ak-topbar-shell.has-upper-space .ak-topbar__upper-space {
	display: block;
	height: 30px;
}

/* پس‌زمینه اصلی نوار */
.ak-topbar {
	--ak-bg: linear-gradient(105deg, #1e2226 0%, #202327 55%, #1b1f22 100%);
	--ak-orange: #ff9b00;
	--ak-text: #f2f2f2;
	--ak-divider: rgba(225, 229, 232, 0.36);

	width: 100%;
	height: 60px;
	color: var(--ak-text);
	background: var(--ak-bg);

	border-top: 1px solid rgba(255, 255, 255, 0.025);
	position: relative;
	z-index: 20;
	display: flex;
	align-items: center;
	transition: height 0.25s ease, background 0.3s ease;
}

/* کانتینر اصلی */
.ak-topbar__inner {
	width: 100%;
	height: 100%;
	max-width: 100%;
	padding-inline: 24px;
	margin: 0 auto;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;

	/* تبلیغات در سمت چپ و خدمات در سمت راست */
	direction: ltr;
}

.ak-topbar__inner.is-reverse-layout {
	direction: rtl;
}

/* وقتی پیشنهاد ویژه فعال نیست (has-no-promo): جایگاه و تراز هوشمند */
.ak-topbar__inner.has-no-promo {
	direction: rtl;
	justify-content: center;
}

.ak-topbar__inner.has-no-promo .ak-topbar__services {
	width: auto;
	max-width: 100%;
	justify-content: center;
}

/* پیشنهادهای ویژه */
.ak-topbar__promo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 10px;

	margin-left: 24px;
	color: var(--ak-orange);
	text-decoration: none !important;
	white-space: nowrap;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;

	transition: color 180ms ease, transform 180ms ease;
	cursor: pointer;
}

.ak-topbar__promo:hover {
	color: #ffb52e;
	transform: translateY(-0.5px);
}

.ak-topbar__promo svg,
.ak-topbar__promo i {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	font-size: 24px;
	line-height: 1;
	fill: currentColor;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ak-topbar__promo-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	background: rgba(255, 155, 0, 0.18);
	color: var(--ak-orange);
	border: 1px solid rgba(255, 155, 0, 0.35);
	margin-right: 4px;
}

/* گروه خدمات */
.ak-topbar__services {
	display: flex;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
	height: 100%;

	direction: rtl;
	white-space: nowrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* هر آیتم خدمات */
.ak-topbar__item {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;

	min-height: 30px;
	padding-inline: 17px;
	gap: 10px;

	color: var(--ak-text);
	text-decoration: none !important;
	white-space: nowrap;

	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;

	transition: color 180ms ease, opacity 180ms ease, background-color 180ms ease, border-radius 180ms ease;
}

a.ak-topbar__item {
	cursor: pointer;
}

div.ak-topbar__item {
	cursor: default;
}

.ak-topbar__item:hover {
	color: var(--ak-orange);
}

/* خط عمودی بین آیتم‌ها */
.ak-topbar__item + .ak-topbar__item::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;

	width: 1px;
	height: 26px;

	background: var(--ak-divider);
	transform: translateY(-50%);
	pointer-events: none;
}

.ak-topbar.no-dividers .ak-topbar__item::before {
	display: none !important;
}

/* اندازه و استایل آیکون‌ها */
.ak-topbar__item svg {
	display: block;
	width: 25px;
	height: 25px;
	flex: 0 0 25px;

	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ak-topbar__item i {
	font-size: 20px;
	width: 25px;
	height: 25px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 25px;
}

.ak-topbar__item-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* رنگ‌های اختصاصی آیکون‌ها */
.ak-topbar__item--phone svg,
.ak-topbar__item--phone i,
.ak-topbar__item--support svg,
.ak-topbar__item--support i,
.ak-topbar__item--guarantee svg,
.ak-topbar__item--guarantee i {
	color: var(--ak-orange);
}

.ak-topbar__item--shipping svg,
.ak-topbar__item--shipping i {
	color: #f4f4f4;
}

/* شماره تلفن */
.ak-topbar__phone-number {
	direction: ltr;
	unicode-bidi: isolate;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.15px;
	font-weight: 700;
}

/* بچ اختصاصی آیتم */
.ak-topbar__item-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 6px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	background: var(--ak-orange);
	color: #1e2226;
	line-height: 1.3;
	margin-right: 5px;
}

/* =========================================
   نمایشگرهای کوچکتر و Breakpoints
   ========================================= */

@media (max-width: 1450px) {
	.ak-topbar__inner {
		gap: 10px;
		padding-inline: 18px;
	}

	.ak-topbar__promo {
		margin-left: 8px;
		font-size: 13px;
		gap: 8px;
	}

	.ak-topbar__item {
		padding-inline: 12px;
		gap: 8px;
		font-size: 13px;
	}
}

@media (max-width: 1180px) {
	.ak-topbar__item--hide-1180,
	.ak-topbar__item--shipping {
		display: none !important;
	}
}

@media (max-width: 1000px) {
	.ak-topbar__item--hide-1000,
	.ak-topbar__item--guarantee {
		display: none !important;
	}

	.ak-topbar__inner {
		padding-inline: 16px;
	}
}

@media (max-width: 800px) {
	.ak-topbar__item--hide-800,
	.ak-topbar__item--support {
		display: none !important;
	}

	.ak-topbar__item {
		padding-inline: 12px;
	}
}

@media (max-width: 620px) {
	.ak-topbar {
		height: 54px;
	}

	.ak-topbar__upper-space {
		height: 16px;
	}

	.ak-topbar__inner {
		padding-inline: 12px;
		gap: 8px;
	}

	.ak-topbar__promo {
		margin-left: 0;
		gap: 7px;
		font-size: 12px;
	}

	.ak-topbar__promo svg,
	.ak-topbar__promo i {
		width: 22px;
		height: 22px;
		flex-basis: 22px;
		font-size: 18px;
	}

	.ak-topbar__item--hide-620,
	.ak-topbar__item--contact {
		display: none !important;
	}

	.ak-topbar__item {
		padding-inline: 6px;
		font-size: 12px;
		gap: 6px;
	}

	.ak-topbar__item svg,
	.ak-topbar__item i {
		width: 22px;
		height: 22px;
		flex-basis: 22px;
		font-size: 18px;
	}

	.ak-topbar__item + .ak-topbar__item::before {
		height: 20px;
	}
}

@media (max-width: 440px) {
	.ak-topbar__item--hide-mobile {
		display: none !important;
	}
}

@media (max-width: 380px) {
	.ak-topbar__phone-number {
		display: none !important;
	}

	.ak-topbar__inner {
		padding-inline: 10px;
	}
}

/* رعایت تنظیم کاهش انیمیشن سیستم */
@media (prefers-reduced-motion: reduce) {
	.ak-topbar__item,
	.ak-topbar__promo {
		transition: none;
	}
}
