.home-feed-page {
	--home-feed-stack-gap: 0.75rem;
	--home-feed-mobile-ad-post-gap: 0.5rem;
	background: #f8fafc;
	color: #0f172a;
}

html[data-theme="dark"] .home-feed-page {
	background: #0f172a;
	color: #e2e8f0;
}

.home-feed-page .phosphor-icon,
.home-feed-page .phosphor-icon-img {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.home-feed-page .phosphor-icon svg {
	width: 100%;
	height: 100%;
}

/* فقط یک حالت آیکون در هر دکمه — off/on */
.home-feed-page .phosphor-icon.home-feed-action__icon--on,
.home-feed-page .phosphor-icon-img.home-feed-action__icon--on {
	display: none;
}

.home-feed-page .home-feed-action.is-liked .phosphor-icon.home-feed-action__icon--off,
.home-feed-page .home-feed-action.is-liked .phosphor-icon-img.home-feed-action__icon--off,
.home-feed-page .home-feed-action.is-saved .phosphor-icon.home-feed-action__icon--off,
.home-feed-page .home-feed-action.is-saved .phosphor-icon-img.home-feed-action__icon--off {
	display: none;
}

.home-feed-page .home-feed-action.is-liked .phosphor-icon.home-feed-action__icon--on,
.home-feed-page .home-feed-action.is-liked .phosphor-icon-img.home-feed-action__icon--on,
.home-feed-page .home-feed-action.is-saved .phosphor-icon.home-feed-action__icon--on,
.home-feed-page .home-feed-action.is-saved .phosphor-icon-img.home-feed-action__icon--on {
	display: block;
}

.home-feed-shell {
	min-height: 100vh;
	padding-bottom: max(5rem, env(safe-area-inset-bottom));
}

@media (min-width: 64rem) {
	.home-feed-shell {
		padding-bottom: 2rem;
	}
}

/* کانتینر مرکزی — مثل صفحه اصلی */
.home-feed-container {
	width: 100%;
	max-width: 100rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 40rem) {
	.home-feed-container {
		padding-inline: 1.5rem;
	}
}

@media (min-width: 48rem) {
	.home-feed-container {
		padding-inline: 2.5rem;
	}
}

@media (min-width: 64rem) {
	.home-feed-container {
		padding-inline: 3rem;
	}
}

@media (min-width: 80rem) {
	.home-feed-container {
		padding-inline: 4rem;
	}
}

/* هدر — فقط همان فاصله home-header، بدون padding اضافه */
.home-feed-top {
	width: 100%;
}

/* موبایل: فقط ستون کالاها + دسته‌بندی بالای فید */
.home-feed-layout {
	width: 100%;
	max-width: 32rem;
	margin-inline: auto;
}

.home-feed-aside--end .home-feed-aside__widgets--desktop {
	display: none;
}

.home-feed-aside--end {
	display: block;
}

.home-feed-aside--end .home-feed-cat-picker {
	margin-top: 0;
}

.home-feed-aside__filters {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.home-feed-aside__inner {
	display: flex;
	flex-direction: column;
	gap: var(--home-feed-stack-gap);
}

.home-feed-aside__widgets--desktop {
	display: flex;
	flex-direction: column;
	gap: var(--home-feed-stack-gap);
}

.home-feed-list {
	display: flex;
	flex-direction: column;
	gap: var(--home-feed-stack-gap);
}

/* موبایل: فاصله یکسان بین بلوک‌ها (دسته‌بندی، تبلیغ، پست‌ها) */
@media (max-width: 47.99rem) {
	.home-feed-layout {
		display: flex;
		flex-direction: column;
		gap: var(--home-feed-stack-gap);
	}

	.home-feed-intro {
		margin-bottom: 0;
	}

	.home-feed-main {
		margin-top: calc(var(--home-feed-mobile-ad-post-gap) - var(--home-feed-stack-gap));
	}

	.home-feed-card__head {
		padding: 0.4rem 0.85rem 0.55rem;
		gap: 0.5rem;
	}

	.home-feed-card__store-logo,
	.home-feed-card__store-fallback {
		width: 2.125rem;
		height: 2.125rem;
	}
}

.home-feed-main {
	min-width: 0;
	width: 100%;
	padding-top: 0;
	margin-top: 0;
}

.home-feed-aside {
	display: none;
}

.home-feed-aside--end {
	display: block;
}

/* تبلت: کالاها + تبلیغات — ستون راست (فروشگاه شما) مخفی */
@media (min-width: 48rem) {
	.home-feed-layout {
		display: grid;
		grid-template-columns: minmax(0, 2.25fr) minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		gap: 1.5rem 1.75rem;
		max-width: none;
		width: 100%;
		margin-inline: 0;
		padding-bottom: 2rem;
		align-items: start;
	}

	.home-feed-layout__intro {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.home-feed-aside--end {
		display: block;
		grid-column: 1 / -1;
		grid-row: 2;
		position: static;
		max-height: none;
		overflow: visible;
	}

	.home-feed-aside--end .home-feed-aside__widgets--desktop {
		display: none;
	}

	.home-feed-main {
		grid-column: 1;
		grid-row: 3;
	}

	.home-feed-aside--start {
		display: block;
		grid-column: 2;
		grid-row: 3;
		min-width: 0;
		width: 100%;
		position: sticky;
		top: 1.5rem;
		align-self: start;
	}

	.home-feed-aside__inner {
		padding-top: 0;
	}
}

/* دسکتاپ: سه ستون — سایدبارها هم‌تراز با اولین کارت */
@media (min-width: 72rem) {
	.home-feed-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		gap: 1.75rem 2rem;
	}

	.home-feed-layout__intro {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.home-feed-main {
		grid-column: 2;
		grid-row: 2;
	}

	.home-feed-aside--end,
	.home-feed-aside--start {
		display: block;
		min-width: 0;
		width: 100%;
		max-width: none;
		position: sticky;
		top: 1.5rem;
		align-self: start;
		grid-row: 2;
	}

	.home-feed-aside--end {
		grid-column: 1;
	}

	.home-feed-aside--start {
		grid-column: 3;
	}

	.home-feed-aside--end .home-feed-aside__widgets--desktop {
		display: flex;
		flex-direction: column;
		gap: var(--home-feed-stack-gap);
	}

	.home-feed-aside__inner {
		padding-top: 0;
	}
}

/* مانیتور بزرگ (۲۲ اینچ به بالا): عرض ثابت، وسط محدود، کل بلوک وسط صفحه */
@media (min-width: 90rem) {
	.home-feed-layout {
		grid-template-columns: 20rem minmax(0, 32rem) 20rem;
		justify-content: center;
		gap: 1.75rem 2.25rem;
	}
}

.home-feed-aside__inner {
	padding-top: 0;
}

/* فیلتر دسته‌بندی — تریگر + مودال دسکتاپ + شیت موبایل */
.home-feed-cat-picker {
	margin-top: 1.1rem;
}

.home-feed-aside__categories .home-feed-cat-picker {
	margin-top: 0;
	width: 100%;
}

.home-feed-aside__categories .home-feed-cat-picker__trigger {
	border-radius: 1.15rem;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.home-feed-cat-picker__trigger {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	max-width: none;
	padding: 0.8rem 1rem;
	border-radius: 1rem;
	border: 1px solid #e2e8f0;
	background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
	color: #0f172a;
	cursor: pointer;
	text-align: right;
	box-shadow: 0 4px 18px rgba(91, 33, 182, 0.08);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.home-feed-cat-picker__trigger:hover {
	border-color: #c4b5fd;
	box-shadow: 0 8px 24px rgba(91, 33, 182, 0.14);
}

.home-feed-cat-picker__trigger:active {
	transform: scale(0.99);
}

.home-feed-cat-picker__trigger.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.home-feed-cat-picker__trigger-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.85rem;
	background: linear-gradient(135deg, #8b2db0, #720ba1);
	color: #fff;
	flex-shrink: 0;
}

.home-feed-cat-picker__trigger-icon .phosphor-icon,
.home-feed-cat-picker__trigger-icon .phosphor-icon svg {
	width: 1.2rem;
	height: 1.2rem;
}

.home-feed-cat-picker__trigger-chevron .phosphor-icon,
.home-feed-cat-picker__trigger-chevron .phosphor-icon svg {
	width: 1rem;
	height: 1rem;
}

.home-feed-cat-picker__trigger-copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1;
}

.home-feed-cat-picker__trigger-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: #64748b;
}

.home-feed-cat-picker__trigger-value {
	font-size: 0.92rem;
	font-weight: 800;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-feed-cat-picker__trigger-chevron {
	display: inline-flex;
	color: #720ba1;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.home-feed-cat-picker__trigger[aria-expanded="true"] .home-feed-cat-picker__trigger-chevron {
	transform: rotate(180deg);
}

html[data-theme="dark"] .home-feed-cat-picker__trigger {
	background: linear-gradient(135deg, #1e293b 0%, #312e81 100%);
	border-color: #4338ca;
	color: #f8fafc;
}

html[data-theme="dark"] .home-feed-cat-picker__trigger-label {
	color: #94a3b8;
}

html[data-theme="dark"] .home-feed-cat-picker__trigger-value {
	color: #f8fafc;
}

/* جستجو */
.home-feed-cat-search {
	position: relative;
	margin-bottom: 0.85rem;
}

.home-feed-cat-search--modal {
	margin-bottom: 1rem;
}

.home-feed-cat-search__icon {
	position: absolute;
	top: 50%;
	right: 0.95rem;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.home-feed-cat-search__icon .phosphor-icon,
.home-feed-cat-search__icon .phosphor-icon svg {
	width: 1.1rem;
	height: 1.1rem;
}

.home-feed-cat-search__input {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 0.9rem;
	background: #f8fafc;
	padding: 0.8rem 2.65rem 0.8rem 1rem;
	font-size: 0.9rem;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-feed-cat-search__input:focus {
	outline: none;
	border-color: #a78bfa;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

html[data-theme="dark"] .home-feed-cat-search__input {
	background: #0f172a;
	border-color: #334155;
}

html[data-theme="dark"] .home-feed-cat-search__input:focus {
	background: #1e293b;
}

/* گزینه‌های دسته */
.home-feed-cat-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.85rem 0.95rem;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	background: #fff;
	color: #334155;
	text-align: right;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.home-feed-cat-option:hover {
	border-color: #c4b5fd;
	background: #faf5ff;
}

.home-feed-cat-option.is-active {
	border-color: transparent;
	background: linear-gradient(135deg, rgba(139, 45, 176, 0.12), rgba(114, 11, 161, 0.08));
	box-shadow: inset 3px 0 0 #720ba1;
	color: #5b21b6;
}

.home-feed-cat-option.is-filtered-out {
	display: none;
}

.home-feed-cat-option__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 0.75rem;
	background: #f1f5f9;
	color: #64748b;
	flex-shrink: 0;
}

.home-feed-cat-option.is-active .home-feed-cat-option__icon {
	background: linear-gradient(135deg, #8b2db0, #720ba1);
	color: #fff;
}

.home-feed-cat-option__icon .phosphor-icon,
.home-feed-cat-option__icon .phosphor-icon svg {
	width: 1.15rem;
	height: 1.15rem;
}

.home-feed-cat-option__check .phosphor-icon,
.home-feed-cat-option__check .phosphor-icon svg {
	width: 0.85rem;
	height: 0.85rem;
	margin: auto;
}

.home-feed-cat-option__body {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
	flex: 1;
}

.home-feed-cat-option__name {
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.35;
}

.home-feed-cat-option__meta {
	font-size: 0.72rem;
	color: #94a3b8;
}

.home-feed-cat-option__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 0.45rem;
	border-radius: 9999px;
	background: #f1f5f9;
	font-size: 0.72rem;
	font-weight: 800;
	color: #64748b;
	flex-shrink: 0;
}

.home-feed-cat-option.is-active .home-feed-cat-option__count {
	background: rgba(114, 11, 161, 0.15);
	color: #720ba1;
}

.home-feed-cat-option__check {
	display: inline-flex;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 9999px;
	border: 2px solid #e2e8f0;
	color: transparent;
	flex-shrink: 0;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-feed-cat-option__check svg {
	width: 0.85rem;
	height: 0.85rem;
	margin: auto;
}

.home-feed-cat-option.is-active .home-feed-cat-option__check {
	border-color: #720ba1;
	background: #720ba1;
	color: #fff;
}

html[data-theme="dark"] .home-feed-cat-option {
	background: #1e293b;
	border-color: #334155;
	color: #e2e8f0;
}

html[data-theme="dark"] .home-feed-cat-option:hover {
	background: #312e81;
	border-color: #6366f1;
}

html[data-theme="dark"] .home-feed-cat-option.is-active {
	color: #e9d5ff;
	box-shadow: inset 3px 0 0 #a78bfa;
}

.home-feed-cat-empty {
	margin: 0.5rem 0 0;
	text-align: center;
	font-size: 0.85rem;
	color: #94a3b8;
}

/* شیت موبایل */
.home-feed-cat-sheet {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 140;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

@media (max-width: 63.99rem) {
	.home-feed-cat-sheet {
		display: block;
	}
}

.home-feed-cat-sheet.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.home-feed-cat-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.32s ease;
}

.home-feed-cat-sheet.is-open .home-feed-cat-sheet__backdrop {
	opacity: 1;
}

.home-feed-cat-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: min(88vh, 42rem);
	padding: 0.65rem 1rem calc(1rem + env(safe-area-inset-bottom));
	background: #fff;
	border-radius: 1.5rem 1.5rem 0 0;
	box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.18);
	transform: translate3d(0, 105%, 0);
	transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
	overflow: hidden;
}

.home-feed-cat-sheet.is-open .home-feed-cat-sheet__panel {
	transform: translate3d(0, 0, 0);
}

.home-feed-cat-sheet__handle {
	width: 2.75rem;
	height: 0.3rem;
	margin: 0.15rem auto 0.85rem;
	border-radius: 9999px;
	background: #cbd5e1;
	flex-shrink: 0;
}

.home-feed-cat-sheet__head {
	text-align: center;
	margin-bottom: 0.85rem;
	flex-shrink: 0;
}

.home-feed-cat-sheet__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 900;
	color: #0f172a;
}

.home-feed-cat-sheet__sub {
	margin: 0.3rem 0 0;
	font-size: 0.82rem;
	color: #64748b;
}

.home-feed-cat-sheet__list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 0.25rem;
	flex: 1;
	min-height: 0;
}

.home-feed-cat-sheet.is-open .home-feed-cat-option {
	animation: home-feed-cat-item-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	animation-delay: calc(var(--cat-i, 0) * 0.035s);
}

@keyframes home-feed-cat-item-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

html[data-theme="dark"] .home-feed-cat-sheet__panel {
	background: #1e293b;
}

html[data-theme="dark"] .home-feed-cat-sheet__title {
	color: #f8fafc;
}

/* مودال دسکتاپ */
.home-feed-cat-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 140;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

@media (min-width: 64rem) {
	.home-feed-cat-modal {
		display: flex;
	}
}

.home-feed-cat-modal.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.home-feed-cat-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.home-feed-cat-modal.is-open .home-feed-cat-modal__backdrop {
	opacity: 1;
}

.home-feed-cat-modal__dialog {
	position: relative;
	width: min(100%, 40rem);
	max-height: min(85vh, 36rem);
	display: flex;
	flex-direction: column;
	padding: 1.35rem 1.35rem 1.15rem;
	border-radius: 1.35rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2);
	transform: scale(0.94) translateY(12px);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
	overflow: hidden;
}

.home-feed-cat-modal.is-open .home-feed-cat-modal__dialog {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.home-feed-cat-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-shrink: 0;
}

.home-feed-cat-modal__title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 900;
	color: #0f172a;
}

.home-feed-cat-modal__sub {
	margin: 0.35rem 0 0;
	font-size: 0.85rem;
	color: #64748b;
}

.home-feed-cat-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 0.75rem;
	background: #f1f5f9;
	color: #64748b;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease, color 0.15s ease;
}

.home-feed-cat-modal__close:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.home-feed-cat-modal__close svg {
	width: 1.1rem;
	height: 1.1rem;
}

.home-feed-cat-modal__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
	padding-inline-end: 0.15rem;
}

@media (min-width: 48rem) {
	.home-feed-cat-modal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.home-feed-cat-option--grid {
	flex-direction: column;
	align-items: flex-start;
	padding: 1rem;
	min-height: 7.5rem;
}

.home-feed-cat-option--grid .home-feed-cat-option__body {
	width: 100%;
}

.home-feed-cat-option--grid .home-feed-cat-option__count {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
}

.home-feed-cat-option--grid .home-feed-cat-option__check {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
}

.home-feed-cat-option--grid {
	position: relative;
}

html[data-theme="dark"] .home-feed-cat-modal__dialog {
	background: #1e293b;
	border-color: #334155;
}

html[data-theme="dark"] .home-feed-cat-modal__title {
	color: #f8fafc;
}

html[data-theme="dark"] .home-feed-cat-modal__close {
	background: #334155;
	color: #cbd5e1;
}

.home-feed-list.is-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ویجت‌های سایدبار */
.home-feed-widget {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1.15rem;
	padding: 1rem 1.1rem;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

@media (min-width: 48rem) {
	.home-feed-aside .home-feed-widget {
		padding: 0.9rem 1rem;
	}
}

html[data-theme="dark"] .home-feed-widget {
	background: #1e293b;
	border-color: #334155;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.home-feed-widget--cta {
	background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
	border-color: #ddd6fe;
}

html[data-theme="dark"] .home-feed-widget--cta {
	background: linear-gradient(145deg, #312e81 0%, #1e1b4b 100%);
	border-color: #4338ca;
}

.home-feed-widget__icon {
	width: 3rem;
	height: 3rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, #8b2db0, #720ba1);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.85rem;
}

.home-feed-widget__title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
}

html[data-theme="dark"] .home-feed-widget__title {
	color: #f8fafc;
}

.home-feed-widget__text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.65;
	color: #64748b;
}

html[data-theme="dark"] .home-feed-widget__text {
	color: #94a3b8;
}

.home-feed-widget__btn {
	display: inline-flex;
	margin-top: 1rem;
	padding: 0.65rem 1.25rem;
	border-radius: 9999px;
	background: #0f172a;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}

.home-feed-widget__btn:hover {
	background: #1e293b;
}

html[data-theme="dark"] .home-feed-widget__btn {
	background: #fff;
	color: #0f172a;
}

html[data-theme="dark"] .home-feed-widget__btn:hover {
	background: #e2e8f0;
}

.home-feed-ad-slot {
	width: 100%;
	border-radius: 1.25rem;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.home-feed-ad-slot__link {
	display: block;
	line-height: 0;
}

.home-feed-ad-slot__img {
	display: block;
	width: 100%;
	height: auto;
}

.home-feed-ad-slot--mobile_top {
	border-radius: 1rem;
}

.home-feed-ad-banner {
	display: block;
	width: 100%;
	line-height: 0;
	font-size: 0;
	border-radius: 1.15rem;
	overflow: hidden;
	isolation: isolate;
}

.home-feed-ad-banner__link {
	display: block;
	line-height: 0;
	border-radius: inherit;
	overflow: hidden;
}

.home-feed-ad-banner__img {
	display: block;
	width: 100%;
	height: auto;
	max-height: none;
	vertical-align: top;
	border-radius: 1.15rem;
}

.home-feed-aside__mobile-ads {
	display: block;
	line-height: 0;
}

@media (min-width: 48rem) {
	.home-feed-aside__mobile-ads {
		display: none;
	}
}

html[data-theme="dark"] .home-feed-ad-slot {
	background: #1e293b;
	border-color: #334155;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.home-feed-quick-links {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.home-feed-quick-links a {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.home-feed-quick-links a:hover {
	background: #f1f5f9;
	color: #720ba1;
}

html[data-theme="dark"] .home-feed-quick-links a {
	color: #cbd5e1;
}

html[data-theme="dark"] .home-feed-quick-links a:hover {
	background: #334155;
	color: #c4b5fd;
}

/* باکس چرخشی کالاهای ویژه */
.home-feed-widget--featured {
	padding: 0.9rem 1rem 1rem;
}

.home-feed-featured__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.65rem;
}

.home-feed-featured__dots {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.home-feed-featured__dot {
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 9999px;
	background: #cbd5e1;
	transition: background 0.2s, transform 0.2s;
}

.home-feed-featured__dot.is-active {
	background: #720ba1;
	transform: scale(1.15);
}

.home-feed-featured__stage {
	position: relative;
}

.home-feed-featured__slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}

.home-feed-featured__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	z-index: 1;
}

.home-feed-featured__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 0.85rem;
	overflow: hidden;
	background: #f1f5f9;
	text-decoration: none;
	color: inherit;
}

html[data-theme="dark"] .home-feed-featured__media {
	background: #0f172a;
}

.home-feed-featured__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.home-feed-featured__media:hover img,
.home-feed-featured__media:focus-visible img {
	transform: scale(1.04);
}

.home-feed-featured__media-empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}

.home-feed-featured__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.28s ease;
	pointer-events: none;
	z-index: 1;
}

.home-feed-featured__media:hover .home-feed-featured__overlay,
.home-feed-featured__media:focus-visible .home-feed-featured__overlay {
	background: rgba(0, 0, 0, 0.58);
}

.home-feed-featured__hover-center {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem;
	pointer-events: none;
}

.home-feed-featured__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.1rem;
	border-radius: 9999px;
	background: #fff;
	color: #0f172a;
	font-size: 0.78rem;
	font-weight: 800;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
	opacity: 0;
	transform: scale(0.92);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.home-feed-featured__media:hover .home-feed-featured__cta,
.home-feed-featured__media:focus-visible .home-feed-featured__cta {
	opacity: 1;
	transform: scale(1);
}

.home-feed-featured__price {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	margin: 0;
	padding: 0.7rem 0.75rem;
	text-align: center;
	font-size: 0.86rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.35;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}

.home-feed-featured__media:hover .home-feed-featured__price,
.home-feed-featured__media:focus-visible .home-feed-featured__price {
	opacity: 1;
	transform: translateY(0);
}

.home-feed-featured__price-old {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: line-through;
	margin-left: 0.35rem;
	font-weight: 500;
	font-size: 0.8rem;
}

.home-feed-featured__body {
	margin-top: 0.6rem;
	text-align: center;
}

.home-feed-featured__name {
	font-size: 0.88rem;
	font-weight: 800;
	margin: 0;
	color: #0f172a;
	line-height: 1.45;
}

.home-feed-featured__name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.home-feed-featured__name a:hover {
	color: #720ba1;
}

html[data-theme="dark"] .home-feed-featured__name {
	color: #f8fafc;
}

html[data-theme="dark"] .home-feed-featured__name a:hover {
	color: #c4b5fd;
}

/* منوی موبایل — فقط زیر ۱۰۲۴px */
@media (min-width: 64rem) {
	.home-mobile-only,
	#homeMobileOverlay,
	#homeMobileSidebar {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}
}

@media (max-width: 63.99rem) {
	#homeMobileOverlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 80;
		background: rgba(15, 23, 42, 0.45);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.42s cubic-bezier(0.33, 0.82, 0.35, 1);
	}

	#homeMobileOverlay.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	#homeMobileSidebar {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		z-index: 90;
		width: min(320px, 88vw);
		height: 100%;
		height: 100dvh;
		background: #fff;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		box-shadow: -16px 0 48px rgba(15, 23, 42, 0.2);
		will-change: transform;
		transform: translate3d(105%, 0, 0);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			transform 0.52s cubic-bezier(0.32, 0.72, 0, 1),
			opacity 0.36s cubic-bezier(0.33, 0.82, 0.35, 1),
			visibility 0s linear 0.52s;
	}

	html[data-theme="dark"] #homeMobileSidebar {
		background: #1e293b;
	}

	#homeMobileSidebar.is-open {
		transform: translate3d(0, 0, 0);
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition:
			transform 0.52s cubic-bezier(0.32, 0.72, 0, 1),
			opacity 0.36s cubic-bezier(0.33, 0.82, 0.35, 1),
			visibility 0s linear 0s;
	}

	#homeMobileBottomNav {
		display: block;
	}
}

.home-feed-intro {
	margin-top: 1rem;
	margin-bottom: 1rem;
	text-align: right;
}

@media (min-width: 72rem) {
	.home-feed-intro {
		margin-bottom: 0.75rem;
	}
}

.home-feed-intro__title {
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
}

html[data-theme="dark"] .home-feed-intro__title {
	color: #f1f5f9;
}

.home-feed-intro__sub {
	margin-top: 0.35rem;
	font-size: 0.875rem;
	color: #64748b;
}

.home-feed-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1.25rem;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .home-feed-card {
	background: #1e293b;
	border-color: #334155;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.home-feed-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	padding: 0.55rem 1rem 0.7rem;
}

.home-feed-card__store {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.home-feed-card__store-logo,
.home-feed-card__store-fallback {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	flex-shrink: 0;
}

.home-feed-card__store-logo {
	object-fit: cover;
}

.home-feed-card__store-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #8b2db0, #720ba1);
	color: #fff;
	font-weight: 800;
}

.home-feed-card__store-meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.home-feed-card__store-meta strong {
	font-size: 0.92rem;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

html[data-theme="dark"] .home-feed-card__store-meta strong {
	color: #f8fafc;
}

.home-feed-card__store-meta span {
	font-size: 0.75rem;
	color: #94a3b8;
}

.home-feed-card__visit {
	font-size: 0.75rem;
	font-weight: 700;
	color: #720ba1;
	text-decoration: none;
	white-space: nowrap;
}

.home-feed-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: #f1f5f9;
	overflow: hidden;
}

html[data-theme="dark"] .home-feed-card__media {
	background: #0f172a;
}

.home-feed-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home-feed-card__media-empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}

.home-feed-like {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 9999px;
	background: rgba(15, 23, 42, 0.55);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.home-feed-card__media-empty .home-feed-card__phosphor--lg,
.home-feed-card__media-empty .home-feed-card__phosphor--lg svg {
	width: 3rem;
	height: 3rem;
	opacity: 0.55;
}

.home-feed-like .phosphor-icon,
.home-feed-like .phosphor-icon-img {
	width: 1.25rem;
	height: 1.25rem;
}

.home-feed-card__body {
	padding: 0.85rem 1rem 1rem;
}

.home-feed-card__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
}

.home-feed-card__actions-main {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.home-feed-action {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	border: none;
	background: transparent;
	color: #334155;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.25rem 0;
}

html[data-theme="dark"] .home-feed-action {
	color: #cbd5e1;
}

.home-feed-action__icon {
	width: 1.35rem;
	height: 1.35rem;
}

.home-feed-action.is-liked {
	color: #e11d48;
}

.home-feed-action.is-saved {
	color: #720ba1;
}

.home-feed-action--report {
	color: #94a3b8;
	margin-inline-start: auto;
	flex-shrink: 0;
}

.home-feed-action--report:hover {
	color: #ef4444;
}

html[data-theme="dark"] .home-feed-action--report {
	color: #64748b;
}

html[data-theme="dark"] .home-feed-action--report:hover {
	color: #f87171;
}

.home-feed-card__title {
	font-size: 1rem;
	font-weight: 800;
	margin: 0;
}

.home-feed-card__title a {
	color: inherit;
	text-decoration: none;
}

.home-feed-card__price {
	margin-top: 0.35rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #720ba1;
}

.home-feed-card__price-old {
	color: #94a3b8;
	text-decoration: line-through;
	margin-left: 0.35rem;
	font-weight: 500;
}

.home-feed-card__desc {
	margin-top: 0.45rem;
	font-size: 0.85rem;
	line-height: 1.6;
	color: #64748b;
}

.home-feed-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #64748b;
}

.home-feed-sentinel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1.25rem 0 2rem;
	font-size: 0.85rem;
	color: #64748b;
}

.home-feed-sentinel__spinner {
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid #cbd5e1;
	border-top-color: #720ba1;
	border-radius: 9999px;
	animation: home-feed-spin 0.8s linear infinite;
}

@keyframes home-feed-spin {
	to { transform: rotate(360deg); }
}

.home-feed-page .home-nav-shell {
	background: rgba(255, 255, 255, 0.95);
}

html[data-theme="dark"] .home-feed-page .home-nav-shell {
	background: rgba(30, 41, 59, 0.95);
	border-color: #334155;
}

html[data-theme="dark"] .home-feed-page .home-nav-brand,
html[data-theme="dark"] .home-feed-page .home-nav-link-idle {
	color: #e2e8f0;
}

html[data-theme="dark"] .home-feed-page .home-nav-shell .home-nav-link.bg-violet-100 {
	background: rgba(255, 255, 255, 0.95) !important;
	color: #620890 !important;
}

html[data-theme="dark"] .home-feed-page .home-nav-cta {
	background: rgba(30, 41, 59, 0.95) !important;
	border: 1px solid rgba(71, 85, 105, 0.65);
}

html[data-theme="dark"] .home-feed-page .home-nav-cta:hover {
	background: rgba(51, 65, 85, 0.95) !important;
}

/* دکمه و مودال گزارش */
.home-feed-report {
	position: fixed;
	inset: 0;
	z-index: 130;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
}

.home-feed-report.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.home-feed-report__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.32s ease;
}

.home-feed-report.is-open .home-feed-report__backdrop {
	opacity: 1;
}

.home-feed-report__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	max-height: min(88vh, 36rem);
	padding: 0.65rem 1rem calc(1rem + env(safe-area-inset-bottom));
	background: #fff;
	border-radius: 1.5rem 1.5rem 0 0;
	box-shadow: 0 -20px 50px rgba(15, 23, 42, 0.18);
	transform: translate3d(0, 105%, 0);
	transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
	overflow: hidden;
}

.home-feed-report.is-open .home-feed-report__panel {
	transform: translate3d(0, 0, 0);
}

@media (min-width: 64rem) {
	.home-feed-report__panel {
		left: 50%;
		right: auto;
		bottom: auto;
		top: 50%;
		width: min(28rem, calc(100vw - 2rem));
		max-height: min(80vh, 36rem);
		padding: 1.25rem 1.25rem 1rem;
		border-radius: 1.25rem;
		transform: translate3d(-50%, calc(-50% + 1.5rem), 0) scale(0.96);
		opacity: 0;
		transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
	}

	.home-feed-report.is-open .home-feed-report__panel {
		transform: translate3d(-50%, -50%, 0) scale(1);
		opacity: 1;
	}

	.home-feed-report__handle {
		display: none;
	}
}

.home-feed-report__handle {
	width: 2.75rem;
	height: 0.3rem;
	margin: 0.15rem auto 0.85rem;
	border-radius: 9999px;
	background: #cbd5e1;
	flex-shrink: 0;
}

.home-feed-report__head {
	position: relative;
	text-align: center;
	margin-bottom: 0.85rem;
	flex-shrink: 0;
}

.home-feed-report__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 900;
	color: #0f172a;
}

.home-feed-report__sub {
	margin: 0.3rem 0 0;
	font-size: 0.82rem;
	color: #64748b;
}

.home-feed-report__close {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	border-radius: 0.75rem;
	background: #f1f5f9;
	color: #475569;
	cursor: pointer;
}

.home-feed-report__close:hover {
	background: #e2e8f0;
}

.home-feed-report__close .phosphor-icon,
.home-feed-report__close .phosphor-icon svg {
	width: 1rem;
	height: 1rem;
}

.home-feed-report__list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	flex: 1;
	min-height: 0;
}

.home-feed-report__option {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.85rem 0.9rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.95rem;
	background: #fff;
	color: #0f172a;
	font-size: 0.88rem;
	font-weight: 600;
	text-align: right;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.home-feed-report__option:hover {
	border-color: #fecaca;
	background: #fff5f5;
}

.home-feed-report__option:active {
	transform: scale(0.99);
}

.home-feed-report__option-icon {
	display: inline-flex;
	color: #ef4444;
	flex-shrink: 0;
}

.home-feed-report__option-icon .phosphor-icon,
.home-feed-report__option-icon .phosphor-icon svg {
	width: 1.1rem;
	height: 1.1rem;
}

.home-feed-report__option-label {
	flex: 1;
	min-width: 0;
}

.home-feed-report__option-arrow {
	display: inline-flex;
	color: #94a3b8;
	flex-shrink: 0;
}

.home-feed-report__option-arrow .phosphor-icon,
.home-feed-report__option-arrow .phosphor-icon svg {
	width: 0.9rem;
	height: 0.9rem;
}

.home-feed-report__note {
	margin: 0.85rem 0 0;
	font-size: 0.75rem;
	line-height: 1.6;
	color: #94a3b8;
	text-align: center;
	flex-shrink: 0;
}

html[data-theme="dark"] .home-feed-report__panel {
	background: #1e293b;
}

html[data-theme="dark"] .home-feed-report__title {
	color: #f1f5f9;
}

html[data-theme="dark"] .home-feed-report__sub {
	color: #94a3b8;
}

html[data-theme="dark"] .home-feed-report__close {
	background: #334155;
	color: #cbd5e1;
}

html[data-theme="dark"] .home-feed-report__option {
	background: #0f172a;
	border-color: #334155;
	color: #e2e8f0;
}

html[data-theme="dark"] .home-feed-report__option:hover {
	background: #1f2937;
	border-color: #7f1d1d;
}
/* —— فیلتر موقعیت Marketplace —— */
.home-feed-loc-picker__trigger {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid color-mix(in srgb, var(--site-border, #e2e8f0) 88%, transparent);
	border-radius: 1rem;
	background: var(--site-bg-card, #fff);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	text-align: right;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.home-feed-loc-picker__trigger:hover {
	border-color: color-mix(in srgb, var(--brand-primary, #720ba1) 35%, var(--site-border, #e2e8f0));
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.home-feed-loc-picker__trigger:active {
	transform: scale(0.985);
}

.home-feed-loc-picker__trigger.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.home-feed-loc-picker__trigger.has-filter {
	border-color: color-mix(in srgb, var(--brand-primary, #720ba1) 45%, var(--site-border, #e2e8f0));
	background: color-mix(in srgb, var(--brand-primary, #720ba1) 6%, var(--site-bg-card, #fff));
}

.home-feed-loc-picker__trigger-icon {
	display: grid;
	place-items: center;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--brand-primary, #720ba1) 10%, transparent);
	color: var(--brand-primary, #720ba1);
	flex-shrink: 0;
}

.home-feed-loc-picker__trigger-icon .phosphor-icon,
.home-feed-loc-picker__trigger-icon .phosphor-icon svg,
.home-feed-loc-picker__trigger-chevron .phosphor-icon,
.home-feed-loc-picker__trigger-chevron .phosphor-icon svg {
	width: 1.1rem;
	height: 1.1rem;
}

.home-feed-loc-picker__trigger-copy {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
	flex: 1;
}

.home-feed-loc-picker__trigger-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748b;
}

.home-feed-loc-picker__trigger-value {
	font-size: 0.92rem;
	font-weight: 800;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.home-feed-loc-picker__trigger-chevron {
	color: #94a3b8;
	transition: transform 0.25s ease;
	flex-shrink: 0;
}

.home-feed-loc-picker__trigger[aria-expanded="true"] .home-feed-loc-picker__trigger-chevron {
	transform: rotate(180deg);
}

html[data-theme="dark"] .home-feed-loc-picker__trigger {
	background: var(--site-bg-card, #1e293b);
	border-color: #334155;
}

html[data-theme="dark"] .home-feed-loc-picker__trigger-label {
	color: #94a3b8;
}

html[data-theme="dark"] .home-feed-loc-picker__trigger-value {
	color: #f1f5f9;
}

.home-feed-loc-modal {
	position: fixed;
	inset: 0;
	z-index: 150;
	display: flex;
	align-items: stretch;
	justify-content: center;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.home-feed-loc-modal.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
}

.home-feed-loc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.home-feed-loc-modal.is-open .home-feed-loc-modal__backdrop {
	opacity: 1;
}

.home-feed-loc-modal__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-height: 100%;
	background: #fff;
	transform: translate3d(0, 12%, 0) scale(0.985);
	opacity: 0;
	transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.32s ease;
	overflow: hidden;
}

.home-feed-loc-modal.is-open .home-feed-loc-modal__dialog {
	transform: translate3d(0, 0, 0) scale(1);
	opacity: 1;
}

@media (min-width: 40rem) {
	.home-feed-loc-modal {
		align-items: center;
		padding: 1.25rem;
	}

	.home-feed-loc-modal__dialog {
		width: min(32rem, 100%);
		height: min(42rem, 92vh);
		max-height: 92vh;
		border-radius: 1.35rem;
		box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
		transform: translate3d(0, 1.25rem, 0) scale(0.96);
	}

	.home-feed-loc-modal.is-open .home-feed-loc-modal__dialog {
		transform: translate3d(0, 0, 0) scale(1);
	}
}

.home-feed-loc-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: calc(1rem + env(safe-area-inset-top)) 1rem 0.75rem;
	flex-shrink: 0;
}

.home-feed-loc-modal__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 900;
	color: #0f172a;
}

.home-feed-loc-modal__sub {
	margin: 0.25rem 0 0;
	font-size: 0.82rem;
	color: #64748b;
}

.home-feed-loc-modal__close {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 9999px;
	background: #f1f5f9;
	color: #475569;
	cursor: pointer;
	flex-shrink: 0;
}

.home-feed-loc-modal__close .phosphor-icon,
.home-feed-loc-modal__close .phosphor-icon svg {
	width: 1.1rem;
	height: 1.1rem;
}

.home-feed-loc-search {
	position: relative;
	margin: 0 1rem 0.75rem;
	flex-shrink: 0;
}

.home-feed-loc-search__icon {
	position: absolute;
	top: 50%;
	right: 0.85rem;
	transform: translateY(-50%);
	color: #94a3b8;
	pointer-events: none;
}

.home-feed-loc-search__icon .phosphor-icon,
.home-feed-loc-search__icon .phosphor-icon svg {
	width: 1.05rem;
	height: 1.05rem;
}

.home-feed-loc-search__input {
	width: 100%;
	padding: 0.8rem 2.5rem 0.8rem 0.9rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.95rem;
	background: #f8fafc;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-feed-loc-search__input:focus {
	border-color: color-mix(in srgb, var(--brand-primary, #720ba1) 45%, #e2e8f0);
	background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary, #720ba1) 14%, transparent);
}

.home-feed-loc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0 1rem 0.7rem;
	flex-shrink: 0;
}

.home-feed-loc-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: 100%;
	padding: 0.35rem 0.55rem 0.35rem 0.45rem;
	border: 0;
	border-radius: 9999px;
	background: color-mix(in srgb, var(--brand-primary, #720ba1) 12%, #fff);
	color: color-mix(in srgb, var(--brand-primary, #720ba1) 85%, #0f172a);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.home-feed-loc-chip span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-feed-loc-chip__x {
	display: grid;
	place-items: center;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 9999px;
	background: color-mix(in srgb, var(--brand-primary, #720ba1) 18%, transparent);
	font-size: 0.85rem;
	line-height: 1;
}

.home-feed-loc-modal__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 1rem 0.5rem;
}

.home-feed-loc-all {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	margin-bottom: 0.65rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	background: #fff;
	text-align: right;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.home-feed-loc-all.is-selected {
	border-color: color-mix(in srgb, var(--brand-primary, #720ba1) 45%, #e2e8f0);
	background: color-mix(in srgb, var(--brand-primary, #720ba1) 7%, #fff);
}

.home-feed-loc-all__icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.8rem;
	background: #f1f5f9;
	color: #475569;
	flex-shrink: 0;
}

.home-feed-loc-all__icon .phosphor-icon,
.home-feed-loc-all__icon .phosphor-icon svg {
	width: 1.15rem;
	height: 1.15rem;
}

.home-feed-loc-all__copy {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	flex: 1;
	min-width: 0;
}

.home-feed-loc-all__title {
	font-size: 0.95rem;
	font-weight: 800;
	color: #0f172a;
}

.home-feed-loc-all__meta {
	font-size: 0.75rem;
	color: #64748b;
}

.home-feed-loc-all__check {
	opacity: 0;
	color: var(--brand-primary, #720ba1);
	transition: opacity 0.2s ease;
}

.home-feed-loc-all.is-selected .home-feed-loc-all__check {
	opacity: 1;
}

.home-feed-loc-all__check .phosphor-icon,
.home-feed-loc-all__check .phosphor-icon svg {
	width: 1.15rem;
	height: 1.15rem;
}

.home-feed-loc-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-bottom: 0.5rem;
}

.home-feed-loc-province {
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	background: #fff;
	overflow: hidden;
}

.home-feed-loc-province.has-selection {
	border-color: color-mix(in srgb, var(--brand-primary, #720ba1) 35%, #e2e8f0);
}

.home-feed-loc-province__head {
	display: flex;
	align-items: stretch;
	gap: 0.35rem;
	padding: 0.35rem;
}

.home-feed-loc-province__toggle {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	flex: 1;
	min-width: 0;
	padding: 0.55rem 0.55rem;
	border: 0;
	border-radius: 0.75rem;
	background: transparent;
	text-align: right;
	cursor: pointer;
}

.home-feed-loc-province__chevron {
	width: 0.45rem;
	height: 0.45rem;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg);
	transition: transform 0.22s ease;
	flex-shrink: 0;
	margin-left: 0.15rem;
}

.home-feed-loc-province.is-open .home-feed-loc-province__chevron {
	transform: rotate(-45deg);
}

.home-feed-loc-province__name {
	font-size: 0.92rem;
	font-weight: 800;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-feed-loc-province__count {
	margin-right: auto;
	font-size: 0.72rem;
	color: #94a3b8;
	flex-shrink: 0;
}

.home-feed-loc-province__all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	background: #f8fafc;
	font-size: 0.75rem;
	font-weight: 700;
	color: #475569;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.home-feed-loc-province__all.is-selected,
.home-feed-loc-city.is-selected {
	border-color: color-mix(in srgb, var(--brand-primary, #720ba1) 40%, #e2e8f0);
	background: color-mix(in srgb, var(--brand-primary, #720ba1) 8%, #fff);
	color: color-mix(in srgb, var(--brand-primary, #720ba1) 80%, #0f172a);
}

.home-feed-loc-province__all.is-partial {
	border-color: color-mix(in srgb, var(--brand-primary, #720ba1) 30%, #e2e8f0);
}

.home-feed-loc-check {
	width: 1rem;
	height: 1rem;
	border: 1.5px solid #cbd5e1;
	border-radius: 0.3rem;
	background: #fff;
	position: relative;
	flex-shrink: 0;
}

.home-feed-loc-province__all.is-selected .home-feed-loc-check,
.home-feed-loc-city.is-selected .home-feed-loc-check {
	border-color: var(--brand-primary, #720ba1);
	background: var(--brand-primary, #720ba1);
}

.home-feed-loc-province__all.is-selected .home-feed-loc-check::after,
.home-feed-loc-city.is-selected .home-feed-loc-check::after {
	content: "";
	position: absolute;
	top: 0.05rem;
	left: 0.28rem;
	width: 0.28rem;
	height: 0.5rem;
	border: solid #fff;
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.home-feed-loc-province__all.is-partial .home-feed-loc-check {
	border-color: var(--brand-primary, #720ba1);
	background: color-mix(in srgb, var(--brand-primary, #720ba1) 25%, #fff);
}

.home-feed-loc-province__cities {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0 0.55rem 0.55rem;
}

.home-feed-loc-city {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	padding: 0.6rem 0.65rem;
	border: 1px solid transparent;
	border-radius: 0.75rem;
	background: #f8fafc;
	text-align: right;
	cursor: pointer;
	font-size: 0.88rem;
	font-weight: 600;
	color: #334155;
}

.home-feed-loc-empty {
	margin: 1.5rem 0;
	text-align: center;
	font-size: 0.88rem;
	color: #94a3b8;
}

.home-feed-loc-modal__foot {
	display: flex;
	gap: 0.55rem;
	padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
	border-top: 1px solid #e2e8f0;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	flex-shrink: 0;
}

.home-feed-loc-modal__clear,
.home-feed-loc-modal__apply {
	min-height: 2.85rem;
	padding: 0.7rem 1rem;
	border-radius: 0.95rem;
	font-size: 0.92rem;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.home-feed-loc-modal__clear {
	flex: 0 0 auto;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #475569;
}

.home-feed-loc-modal__apply {
	flex: 1;
	border: 0;
	background: var(--brand-primary, #720ba1);
	color: #fff;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-primary, #720ba1) 28%, transparent);
}

.home-feed-loc-modal__clear:active,
.home-feed-loc-modal__apply:active {
	transform: scale(0.98);
}

html[data-theme="dark"] .home-feed-loc-modal__dialog {
	background: #0f172a;
}

html[data-theme="dark"] .home-feed-loc-modal__title,
html[data-theme="dark"] .home-feed-loc-all__title,
html[data-theme="dark"] .home-feed-loc-province__name,
html[data-theme="dark"] .home-feed-loc-city {
	color: #f1f5f9;
}

html[data-theme="dark"] .home-feed-loc-modal__sub,
html[data-theme="dark"] .home-feed-loc-all__meta,
html[data-theme="dark"] .home-feed-loc-province__count {
	color: #94a3b8;
}

html[data-theme="dark"] .home-feed-loc-modal__close,
html[data-theme="dark"] .home-feed-loc-all__icon {
	background: #1e293b;
	color: #cbd5e1;
}

html[data-theme="dark"] .home-feed-loc-search__input,
html[data-theme="dark"] .home-feed-loc-all,
html[data-theme="dark"] .home-feed-loc-province,
html[data-theme="dark"] .home-feed-loc-city,
html[data-theme="dark"] .home-feed-loc-modal__clear {
	background: #1e293b;
	border-color: #334155;
	color: #e2e8f0;
}

html[data-theme="dark"] .home-feed-loc-province__all {
	background: #0f172a;
	border-color: #334155;
	color: #cbd5e1;
}

html[data-theme="dark"] .home-feed-loc-modal__foot {
	background: rgba(15, 23, 42, 0.96);
	border-top-color: #334155;
}

html[data-theme="dark"] .home-feed-loc-chip {
	background: color-mix(in srgb, var(--brand-primary, #720ba1) 22%, #1e293b);
	color: #e9d5ff;
}
