/**
 * ویجت هدر پاییزان (لوگو + سرچ).
 */
.paezan-header-widget {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
	direction: rtl;
	background: linear-gradient(90deg, #fdf4ec 0%, #fbe7d7 40%, #ffe7d2 72%, #fff7f0 100%);
	padding: 10px 12px;
	border-radius: 18px;
}

.paezan-header-brand {
	min-width: 32%;
	max-width: 42%;
	background: linear-gradient(135deg, var(--paezan-header-accent-start, #ff7a1a), var(--paezan-header-accent-end, #ff5c00));
	color: #fff;
	border-radius: 18px 18px 18px 46px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 16px 34px rgba(255, 122, 26, 0.22);
	position: relative;
	overflow: hidden;
}

.paezan-header-brand::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.paezan-header-brand-inner {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.paezan-header-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
}

.paezan-header-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.paezan-header-logo-fallback {
	width: 28px;
	height: 28px;
	display: inline-block;
	border-radius: 9px;
	border: 2px solid rgba(255, 255, 255, 0.7);
	position: relative;
}

.paezan-header-logo-fallback::after,
.paezan-header-logo-fallback::before {
	content: '';
	position: absolute;
	inset: 6px;
	border-radius: 7px;
	border: 2px solid rgba(255, 255, 255, 0.55);
}

.paezan-header-logo-fallback::before {
	inset: 10px 8px 4px 8px;
	border: 0;
	border-top: 2px solid rgba(255, 255, 255, 0.55);
}

.paezan-header-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	gap: 2px;
}

.paezan-header-brand-title {
	font-size: 19px;
	font-weight: 800;
	color: #fff;
}

.paezan-header-brand-subtitle {
	font-size: 15px;
	font-weight: 700;
	color: #ffefde;
}

.paezan-header-search {
	flex: 1 1 auto;
	min-width: 0;
}

.paezan-header-search-widget {
	width: 100%;
}

.paezan-header-search-trigger {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 66px;
	padding: 0 20px;
	border-radius: 38px;
	border: 0;
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
	justify-content: center;
	text-align: center;
	cursor: pointer;
	transition:
		box-shadow 0.18s ease,
		transform 0.12s ease;
}

.paezan-header-search-trigger:hover,
.paezan-header-search-trigger:focus-visible {
	box-shadow: 0 18px 36px rgba(255, 122, 26, 0.2);
	outline: none;
	transform: translateY(-1px);
}

.paezan-header-search-trigger[aria-expanded='true'] {
	box-shadow: 0 18px 32px rgba(255, 122, 26, 0.2);
}

.paezan-header-search-trigger .paezan-ps-trigger-icon {
	color: #1f2933;
	font-size: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.paezan-header-search-label {
	font-size: 18px;
	color: #6b7280;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1 1 auto;
}

@media (max-width: 767px) {
	.paezan-header-widget {
		flex-direction: row;
		align-items: center;
		gap: 10px;
		padding: 8px 10px;
	}

	.paezan-header-brand {
		min-width: 34%;
		max-width: 44%;
		padding: 12px 14px;
	}

	.paezan-header-search-trigger {
		height: 62px;
		padding: 0 18px;
	}
}
