/* ══════════════════════════════════════════════════════════════
   Tabs Widget
   ══════════════════════════════════════════════════════════════ */
.bargheto-tabs {
	max-width: var(--container-max-width, 1140px);
	margin-right: auto;
	margin-left: auto;
}

/* نوار تب‌ها */
.bargheto-tabs__nav {
	position: relative;
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.bargheto-tabs__nav::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: #e5e7eb;
}
.bargheto-tabs__nav::-webkit-scrollbar {
	display: none;
}

/* دکمه تب */
.bargheto-tabs__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	border: none;
	background: transparent;
	cursor: pointer;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #6b7280;
	white-space: nowrap;
	transition: color 0.2s;
}
.bargheto-tabs__btn::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: transparent;
	transition: background 0.2s;
}
.bargheto-tabs__btn:hover {
	color: var(--bargheto-blue-light);
}
.bargheto-tabs__btn.is-active {
	color: var(--bargheto-blue-light);
}
.bargheto-tabs__btn.is-active::after {
	background: var(--bargheto-blue-light);
}

/* آیکون — رنگ پیش‌فرض طوسی، اکتیو = رنگ پالت */
.bargheto-tabs__btn-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	display: inline-flex;
	color: #9ca3af;
	fill: #9ca3af;
	transition: color 0.2s, fill 0.2s;
}
.bargheto-tabs__btn-icon svg {
	color: inherit;
	fill: inherit;
}
.bargheto-tabs__btn.is-active .bargheto-tabs__btn-icon {
	color: var(--bargheto-blue-light);
	fill: var(--bargheto-blue-light);
}

/* پنل‌ها */
.bargheto-tabs__panels {
	padding-top: 1.5rem;
}
.bargheto-tabs__panel {
	display: none;
}
.bargheto-tabs__panel.is-active {
	display: block;
	animation: barghetoTabFadeIn 0.3s ease;
}
@keyframes barghetoTabFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* درون هر پنل */
.bargheto-tabs__panel-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
}
.bargheto-tabs__panel-inner--no-image {
	grid-template-columns: 1fr;
}
.bargheto-tabs__panel-content {
	font-size: 0.9375rem;
	line-height: 1.75;
	color: #4b5563;
}
.bargheto-tabs__panel-content h1,
.bargheto-tabs__panel-content h2,
.bargheto-tabs__panel-content h3,
.bargheto-tabs__panel-content h4 {
	font-size: 1.375rem;
	font-weight: 700;
	color: #121517;
	margin-bottom: 0.75rem;
}
.bargheto-tabs__panel-content p {
	margin-bottom: 1rem;
}
.bargheto-tabs__features {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.bargheto-tabs__features li {
	position: relative;
	padding-right: 1.5rem;
	font-size: 0.875rem;
	color: #374151;
}
.bargheto-tabs__features li::before {
	content: "\2713";
	position: absolute;
	right: 0;
	color: var(--bargheto-blue-light);
	font-weight: 700;
}
.bargheto-tabs__panel-image {
	border-radius: 0.75rem;
	overflow: hidden;
}
.bargheto-tabs__panel-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 0.75rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
	.bargheto-tabs__panel-inner {
		grid-template-columns: 1fr;
	}
	.bargheto-tabs__panel-image {
		order: -1;
	}
	.bargheto-tabs__btn {
		padding: 0.75rem 1rem;
		font-size: 0.875rem;
	}
}
