/* ===== mount — بارگذاری AJAX ===== */
.htrfe-carousel-mount.is-loading {
	min-height: calc(220px * var(--htr-scale, 1.5));
	margin: 1.5rem 0;
	width: 100%;
	box-sizing: border-box;
}

/* ===== استایل کروسل سفارشات ===== */
.htrfe-carousel {
	--htr-hero-bg: #c8102e;
	--htr-accent: #c8102e;
	--htr-card-bg: #fff;
	--htr-radius: 12px;
	--htr-card-gap: 15px;
	--htr-scale: 1.5;
	font-family: inherit;
	margin: 1.5rem 0;
	direction: rtl;
	background: #fff !important;
	border-radius: var(--htr-radius);
	box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
	overflow: hidden;
}

.htrfe-carousel__inner {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	background: #fff !important;
	min-height: calc(220px * var(--htr-scale));
}

.htrfe-carousel__hero {
	flex: 0 0 calc(180px * var(--htr-scale));
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .75rem;
	padding: 1.25rem 1rem;
	background: var(--htr-hero-bg) !important;
	color: var(--htr-weekly-hero-text, #fff);
	text-align: center;
}

.htrfe-carousel__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.4;
	width: 100%;
	color: #fff;
}

.htrfe-carousel__hero-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
	width: 100%;
}

.htrfe-carousel__today-date {
	display: block;
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.4;
	color: rgba(255, 255, 255, .92);
}

.htrfe-carousel__count {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .15rem;
}

.htrfe-carousel__count-number {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	background: rgba(255, 255, 255, .15);
	border-radius: 8px;
	padding: .35rem .75rem;
	min-width: 3rem;
	display: inline-block;
	will-change: transform, opacity;
	animation: htr-count-pulse var(--htr-count-anim-duration, 2.2s) ease-in-out infinite;
}

@keyframes htr-count-pulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	20% {
		transform: scale(1.1);
		opacity: 0.5;
	}
	45% {
		transform: scale(0.93);
		opacity: 0.95;
	}
	70% {
		transform: scale(1.07);
		opacity: 0.6;
	}
}

.htrfe-carousel__count-label {
	font-size: .75rem;
	opacity: .85;
}

.htrfe-carousel__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	margin-top: .25rem;
	padding: .5rem 1rem;
	background: #fff;
	color: var(--htr-hero-bg) !important;
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
	white-space: nowrap;
}

.htrfe-carousel__view-all:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
	color: var(--htr-hero-bg) !important;
}

.htrfe-carousel__view-all[aria-disabled="true"] {
	opacity: .75;
	pointer-events: none;
}

.htrfe-carousel__view-all-icon {
	font-size: 1rem;
	line-height: 1;
}

/* بخش اسلایدر — پس‌زمینه سفید */
.htrfe-carousel .htrfe-carousel__slider {
	flex: 1;
	min-width: 0;
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(220px * var(--htr-scale));
	background: #fff !important;
	border: 1px solid #ddd;
	border-right: none;
}

.htrfe-carousel__slider--empty {
	justify-content: center;
	padding: 1rem;
}

.htrfe-carousel .htrfe-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	width: calc(36px * var(--htr-scale));
	height: calc(36px * var(--htr-scale));
	margin: 0;
	border: 1px solid #ccc;
	border-radius: 50%;
	background: #fff !important;
	color: #222 !important;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s, box-shadow .2s;
	padding: 0;
	pointer-events: auto;
}

.htrfe-carousel .htrfe-carousel__nav:hover {
	background: #f5f5f5 !important;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .16);
}

.htrfe-carousel .htrfe-carousel__nav--left {
	left: 10px;
	right: auto;
}

.htrfe-carousel .htrfe-carousel__nav--right {
	right: 10px;
	left: auto;
}

.htrfe-carousel__nav-icon {
	display: block;
	line-height: 1;
}

.htrfe-carousel .htrfe-carousel__viewport {
	flex: 1;
	width: 100%;
	overflow-x: auto !important;
	overflow-y: hidden;
	scroll-behavior: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	touch-action: pan-y pinch-zoom;
	cursor: grab;
	padding: calc(12px * var(--htr-scale)) calc(52px * var(--htr-scale));
	direction: ltr;
	min-height: calc(220px * var(--htr-scale));
	box-sizing: border-box;
	background: #fff !important;
	position: relative;
	z-index: 1;
}

.htrfe-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.htrfe-carousel__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}

.htrfe-carousel__track {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: max-content;
	gap: var(--htr-card-gap);
	background: transparent;
}

.htrfe-carousel__group {
	display: flex;
	flex-direction: row;
	direction: rtl;
	gap: var(--htr-card-gap);
	background: transparent;
}

.htrfe-carousel__card--linked {
	position: relative;
	cursor: pointer;
}

.htrfe-carousel__card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.htrfe-carousel__card-link:focus-visible {
	outline: 2px solid var(--htr-accent, #c8102e);
	outline-offset: 2px;
}

.htrfe-carousel__card--linked .htrfe-carousel__btn {
	position: relative;
	z-index: 2;
}

.htrfe-carousel__card {
	flex: 0 0 calc(150px * var(--htr-scale));
	width: calc(150px * var(--htr-scale));
	background: var(--htr-card-bg) !important;
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	min-height: calc(200px * var(--htr-scale));
	border: 1px solid #eee;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
	overflow: hidden;
}

a.htrfe-carousel__card--linked {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease;
}

a.htrfe-carousel__card--linked:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

a.htrfe-carousel__card--linked:focus-visible {
	outline: 2px solid var(--htr-accent);
	outline-offset: 2px;
}

.htrfe-carousel__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: .75rem .5rem .25rem;
	min-height: calc(120px * var(--htr-scale));
	background: #fff;
}

.htrfe-carousel__image {
	max-width: 100%;
	max-height: calc(110px * var(--htr-scale));
	width: auto;
	height: auto;
	object-fit: contain;
	pointer-events: none;
	user-select: none;
}

.htrfe-carousel__image-placeholder {
	width: calc(80px * var(--htr-scale));
	height: calc(80px * var(--htr-scale));
	background: #f0f0f0;
	border-radius: 8px;
}

.htrfe-carousel__body {
	padding: .5rem .65rem .75rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	flex: 1;
	text-align: center;
	direction: rtl;
	background: #fff;
}

.htrfe-carousel__deceased {
	margin: 0;
	font-size: .78rem;
	line-height: 1.5;
	color: #333;
}

.htrfe-carousel__deceased-label {
	display: block;
	color: #888;
	font-size: .7rem;
}

.htrfe-carousel__shipping-city {
	margin: 0;
	font-size: .74rem;
	line-height: 1.45;
	color: #444;
}

.htrfe-carousel__shipping-city-label {
	display: block;
	color: #888;
	font-size: .68rem;
}

.htrfe-carousel__order-time {
	margin: 0;
	font-size: .68rem;
	line-height: 1.45;
	color: #666;
}

.htrfe-carousel__btn {
	display: inline-block;
	margin-top: auto;
	padding: .35rem .75rem;
	background: var(--htr-accent) !important;
	color: #fff !important;
	border-radius: 6px;
	font-size: .78rem;
	font-weight: 600;
	text-decoration: none;
	transition: filter .2s;
}

.htrfe-carousel__btn:hover {
	filter: brightness(.92);
	color: #fff !important;
}

.htrfe-carousel__btn--disabled {
	opacity: .55;
	cursor: not-allowed;
}

.htrfe-carousel__empty {
	color: #666;
	padding: 2rem 1.5rem;
	margin: 0;
	font-size: .9rem;
	direction: rtl;
	text-align: center;
}

@media (max-width: 768px) {
	.htrfe-carousel__inner {
		flex-direction: column;
	}

	.htrfe-carousel__hero {
		flex: none;
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-rows: auto;
		align-items: start;
		gap: .75rem 1rem;
		text-align: right;
		padding: 1rem;
		direction: rtl;
	}

	.htrfe-carousel__hero-right {
		grid-column: 1;
		display: flex;
		flex-direction: column;
		gap: .5rem;
		align-items: flex-start;
		justify-self: stretch;
	}

	.htrfe-carousel__hero-left {
		grid-column: 2;
		align-self: start;
		justify-self: end;
	}

	.htrfe-carousel__hero-head {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: .65rem;
	}

	.htrfe-carousel__title {
		font-size: 1rem;
		text-align: right !important;
		width: auto;
		flex: 1;
		min-width: 0;
	}

	.htrfe-carousel__today-date {
		flex: 0 0 auto;
		font-size: .72rem;
		white-space: nowrap;
	}

	.htrfe-carousel__count {
		flex-direction: row;
		gap: .5rem;
		align-items: center;
		justify-content: flex-start;
	}

	.htrfe-carousel__count-number {
		font-size: 1.35rem;
		animation: htr-count-pulse var(--htr-count-anim-duration, 2.2s) ease-in-out infinite;
	}

	.htrfe-carousel__view-all {
		margin-top: 0;
	}

	.htrfe-carousel .htrfe-carousel__slider {
		border-right: 1px solid #ddd;
		border-top: none;
	}

	.htrfe-carousel .htrfe-carousel__nav {
		width: 32px;
		height: 32px;
		font-size: 1rem;
	}

	.htrfe-carousel .htrfe-carousel__viewport {
		min-height: calc(200px * var(--htr-scale));
		padding: calc(12px * var(--htr-scale)) calc(46px * var(--htr-scale));
	}

	.htrfe-carousel__card {
		flex: 0 0 calc(130px * var(--htr-scale));
		width: calc(130px * var(--htr-scale));
	}
}

@media (max-width: 480px) {
	.htrfe-carousel__card {
		flex: 0 0 calc(115px * var(--htr-scale));
		width: calc(115px * var(--htr-scale));
	}
}

@media (prefers-reduced-motion: reduce) {
	.htrfe-carousel__viewport {
		scroll-behavior: auto;
	}

	.htrfe-carousel__count-number {
		animation: none;
	}
}


/* ===== کروسل هفتگی با انتخاب روز ===== */
.htrfe-carousel--weekly {
	--htr-scale: 1;
	--htr-card-gap: 12px;
	background: var(--htr-weekly-bg, #c8103c) !important;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(150, 0, 35, .18);
	color: #fff;
}
.htrfe-carousel--weekly .htrfe-carousel__inner { min-height: 370px; background: transparent !important; }
.htrfe-carousel--weekly .htrfe-carousel__hero {
	flex: 0 0 31%; background: transparent !important; padding: 2rem 1.5rem; gap: .8rem;
}
.htrfe-carousel--weekly .htrfe-carousel__title { font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.55; color: var(--htr-weekly-title-text, #fff) !important; }
.htrfe-weekly__eyebrow {
	display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem;
	border-radius: 999px; background: rgba(255,255,255,.16); font-size: .75rem; font-weight: 700;
	color: var(--htr-weekly-eyebrow-text, #fff) !important;
}
.htrfe-weekly__description { margin: 0; color: var(--htr-weekly-description-text, #f7dfe5) !important; font-size: .88rem; line-height: 1.8; }
.htrfe-carousel--weekly .htrfe-carousel__count-number {
	min-width: 3.2rem; padding: .5rem .8rem; border-radius: 12px;
	background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); font-size: 2rem; animation: none;
}
.htrfe-carousel--weekly .htrfe-carousel__count-label { color: var(--htr-weekly-count-text, #fff) !important; }
.htrfe-carousel--weekly .htrfe-carousel__today-date { color: var(--htr-weekly-date-text, #fff) !important; }
.htrfe-carousel--weekly .htrfe-carousel__count-number { color: var(--htr-weekly-count-text, #fff) !important; }
.htrfe-carousel--weekly .htrfe-carousel__slider {
	flex: 1 1 69%; min-width: 0; padding: 1.15rem 1rem; display: flex; flex-direction: column;
	align-items: stretch; justify-content: flex-start; gap: 1rem; background: transparent !important; border: 0;
}
.htrfe-weekly__days { display: flex; flex-direction: row; gap: .45rem; justify-content: center; width: 100%; }
.htrfe-weekly__day {
	flex: 1 1 0; min-width: 0; max-width: 72px; display: flex; flex-direction: column; align-items: center;
	justify-content: center; gap: .3rem; margin: 0; padding: .5rem .25rem; border: 1px solid rgba(255,255,255,.2);
	border-radius: 13px; background: rgba(255,255,255,.09) !important; color: #fff !important; cursor: pointer;
	font: inherit; transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.htrfe-weekly__day:hover { background: rgba(255,255,255,.2) !important; transform: translateY(-2px); }
.htrfe-weekly__day.is-active {
	background: #fff !important; border-color: #fff; color: #d31642 !important;
	box-shadow: 0 4px 14px rgba(80,0,20,.12);
}
.htrfe-weekly__day-name { font-size: .68rem; font-weight: 600; white-space: nowrap; }
.htrfe-weekly__day-number { font-size: 1.1rem; line-height: 1.2; }
.htrfe-carousel--weekly .htrfe-carousel__viewport {
	min-height: 260px; width: 100%; padding: .35rem 2.4rem .75rem; background: transparent !important;
}
.htrfe-carousel--weekly .htrfe-carousel__track,
.htrfe-carousel--weekly .htrfe-carousel__group { gap: var(--htr-card-gap); }
.htrfe-carousel--weekly .htrfe-carousel__card {
	flex-basis: 165px; width: 165px; min-height: 245px; border-radius: 14px;
	box-shadow: 0 5px 16px rgba(0,0,0,.12);
}
.htrfe-carousel--weekly .htrfe-carousel__image-wrap { min-height: 155px; padding: .35rem; overflow: hidden; border-radius: var(--htr-weekly-image-radius, 10px); }
.htrfe-carousel--weekly .htrfe-carousel__image { max-height: 150px; width: 100%; object-fit: cover; border-radius: var(--htr-weekly-image-radius, 10px); }
.htrfe-carousel--weekly .htrfe-carousel__body { gap: .4rem; padding: .65rem .55rem; }
.htrfe-carousel--weekly .htrfe-carousel__deceased { font-size: .8rem; }
.htrfe-carousel--weekly .htrfe-carousel__shipping-city,
.htrfe-carousel--weekly .htrfe-carousel__order-time { font-size: .7rem; }
.htrfe-carousel--weekly .htrfe-carousel__btn { font-size: .68rem; }
.htrfe-weekly__empty {
	flex: 1; min-height: 245px; display: flex; flex-direction: column; align-items: center;
	justify-content: center; gap: .65rem; padding: 1.25rem; text-align: center; color: var(--htr-weekly-empty-title-text, #fff);
}
.htrfe-weekly__empty[hidden],
.htrfe-carousel--weekly [hidden] { display: none !important; }
.htrfe-weekly__cta {
	display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
	padding: .65rem 1.4rem; border-radius: 999px; background: var(--htr-weekly-cta-bg, #ffd34f) !important;
	color: var(--htr-weekly-cta-text, #8b1630) !important; font-weight: 800; text-decoration: none !important;
	box-shadow: 0 5px 14px rgba(80,0,20,.16); transition: transform .18s ease, box-shadow .18s ease;
}
.htrfe-weekly__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(80,0,20,.22); }
.htrfe-weekly__empty strong { font-size: 1rem; color: var(--htr-weekly-empty-title-text, #fff) !important; }
.htrfe-weekly__empty p { max-width: 360px; margin: 0; color: var(--htr-weekly-empty-message-text, #f7dfe5) !important; font-size: .82rem; line-height: 1.9; }
.htrfe-carousel--weekly .htrfe-carousel__nav {
	width: 30px; height: 30px; border: 0; background: var(--htr-weekly-nav-bg, #fff) !important;
	color: var(--htr-weekly-nav-icon, #c8103c) !important; box-shadow: none;
}
@media (max-width: 768px) {
	.htrfe-carousel--weekly .htrfe-carousel__inner { flex-direction: column; }
	.htrfe-carousel--weekly .htrfe-carousel__hero {
		flex: none; align-items: center; text-align: center; padding: 1.25rem 1rem .75rem;
	}
	.htrfe-carousel--weekly .htrfe-carousel__title { text-align: center !important; }
	.htrfe-carousel--weekly .htrfe-carousel__slider { padding: .75rem .55rem 1rem; }
	.htrfe-weekly__days { gap: .25rem; }
	.htrfe-weekly__day { padding: .45rem .1rem; border-radius: 9px; }
	.htrfe-weekly__day-name { font-size: .58rem; }
	.htrfe-weekly__day-number { font-size: .95rem; }
	.htrfe-carousel--weekly .htrfe-carousel__viewport { min-height: 250px; padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 380px) {
	.htrfe-weekly__day-name { font-size: .52rem; }
	.htrfe-weekly__day { gap: .2rem; }
}

/* ===== چیدمان موبایل کروسل سفارشات هفتگی ===== */
@media (max-width: 768px) {
	.htrfe-carousel--weekly {
		--htr-card-gap: 10px;
		margin: 1rem 0;
		border-radius: 20px;
	}

	.htrfe-carousel--weekly .htrfe-carousel__inner {
		flex-direction: column;
		min-height: 0;
	}

	.htrfe-carousel--weekly .htrfe-carousel__hero {
		flex: none;
		align-items: stretch;
		gap: .65rem;
		padding: 1rem 1rem .5rem;
		text-align: right;
	}

	.htrfe-carousel--weekly .htrfe-weekly__eyebrow {
		align-self: flex-start;
		padding: .25rem .65rem;
		font-size: .68rem;
	}

	.htrfe-carousel--weekly .htrfe-carousel__title {
		width: 100%;
		font-size: clamp(1.2rem, 5vw, 1.55rem);
		line-height: 1.55;
		text-align: center !important;
	}

	.htrfe-carousel--weekly .htrfe-weekly__description {
		font-size: .75rem;
		line-height: 1.8;
		text-align: center;
	}

	.htrfe-carousel--weekly .htrfe-carousel__count {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		justify-content: stretch;
		gap: .55rem;
		width: 100%;
	}

	.htrfe-carousel--weekly .htrfe-carousel__count-number {
		flex: 1 1 0;
		min-width: 0;
		padding: .55rem .4rem;
		font-size: 1.45rem;
		text-align: center;
	}

	.htrfe-carousel--weekly .htrfe-carousel__count-label {
		align-self: center;
		font-size: .72rem;
	}

	.htrfe-carousel--weekly .htrfe-carousel__today-date {
		align-self: flex-end;
		font-size: .7rem;
	}

	.htrfe-carousel--weekly .htrfe-carousel__slider {
		position: relative;
		flex: 1 1 auto;
		min-height: 0;
		gap: .7rem;
		padding: 2.8rem .55rem .8rem;
	}

	.htrfe-carousel--weekly .htrfe-carousel__nav {
		top: .8rem;
		width: 32px;
		height: 32px;
	}

	.htrfe-carousel--weekly .htrfe-carousel__nav--right {
		right: .75rem;
		left: auto;
	}

	.htrfe-carousel--weekly .htrfe-carousel__nav--left {
		left: .75rem;
		right: auto;
	}

	.htrfe-carousel--weekly .htrfe-weekly__days {
		gap: .3rem;
		justify-content: space-between;
		width: 100%;
	}

	.htrfe-carousel--weekly .htrfe-weekly__day {
		flex: 1 1 0;
		max-width: none;
		min-width: 0;
		gap: .2rem;
		padding: .45rem .1rem;
		border-radius: 10px;
	}

	.htrfe-carousel--weekly .htrfe-weekly__day-name {
		font-size: clamp(.5rem, 2.1vw, .62rem);
	}

	.htrfe-carousel--weekly .htrfe-weekly__day-number {
		font-size: .95rem;
	}

	.htrfe-carousel--weekly .htrfe-carousel__viewport {
		width: 100%;
		min-height: 0;
		padding: .1rem 1.15rem .45rem;
		overflow-x: auto !important;
		overflow-y: hidden;
		direction: ltr;
		touch-action: pan-x pan-y;
	}

	.htrfe-carousel--weekly .htrfe-carousel__track,
	.htrfe-carousel--weekly .htrfe-carousel__group {
		flex-direction: row;
		align-items: stretch;
		width: max-content;
		gap: var(--htr-card-gap);
	}

	.htrfe-carousel--weekly .htrfe-carousel__card {
		flex: 0 0 min(78vw, 310px);
		width: min(78vw, 310px);
		min-height: 0;
		border-radius: 14px;
	}

	.htrfe-carousel--weekly .htrfe-carousel__image-wrap {
		width: 100%;
		min-height: 0;
		height: clamp(105px, 34vw, 145px);
		padding: 0;
		border-radius: var(--htr-weekly-image-radius, 10px);
	}

	.htrfe-carousel--weekly .htrfe-carousel__image {
		width: 100%;
		height: 100%;
		max-height: none;
		object-fit: cover;
		border-radius: var(--htr-weekly-image-radius, 10px);
	}

	.htrfe-carousel--weekly .htrfe-carousel__body {
		gap: .25rem;
		padding: .55rem .65rem .65rem;
	}

	.htrfe-carousel--weekly .htrfe-carousel__deceased {
		font-size: .78rem;
		line-height: 1.5;
	}

	.htrfe-carousel--weekly .htrfe-carousel__shipping-city,
	.htrfe-carousel--weekly .htrfe-carousel__order-time {
		font-size: .66rem;
		line-height: 1.5;
	}

	.htrfe-carousel--weekly .htrfe-carousel__btn {
		font-size: .66rem;
	}
}

@media (max-width: 380px) {
	.htrfe-carousel--weekly .htrfe-carousel__hero {
		padding-right: .8rem;
		padding-left: .8rem;
	}

	.htrfe-carousel--weekly .htrfe-carousel__slider {
		padding-right: .4rem;
		padding-left: .4rem;
	}

	.htrfe-carousel--weekly .htrfe-carousel__card {
		flex-basis: 82vw;
		width: 82vw;
	}
}


/* ===== Mobile weekly carousel layout — v2 ===== */
@media (max-width: 768px) {
  .htrfe-carousel--weekly { border-radius: 18px; }
  .htrfe-carousel--weekly .htrfe-carousel__inner { display:flex; flex-direction:column; min-height:0; }
  .htrfe-carousel--weekly .htrfe-carousel__hero {
    display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
    gap:.55rem; flex:none; width:100%; box-sizing:border-box; padding:1rem .9rem .45rem;
    text-align:center; direction:rtl;
  }
  .htrfe-carousel--weekly .htrfe-weekly__eyebrow { align-self:flex-end; font-size:.65rem; padding:.25rem .6rem; }
  .htrfe-carousel--weekly .htrfe-carousel__title {
    width:100%; margin:0; font-size:1.15rem; line-height:1.45; text-align:center !important;
  }
  .htrfe-carousel--weekly .htrfe-weekly__description {
    width:100%; max-width:34rem; margin:0 auto; font-size:.72rem; line-height:1.65; text-align:center;
  }
  .htrfe-carousel--weekly .htrfe-carousel__count {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:.25rem; width:auto; max-width:150px; margin:.15rem auto 0;
  }
  .htrfe-carousel--weekly .htrfe-carousel__count-number {
    display:flex; align-items:center; justify-content:center; box-sizing:border-box;
    width:104px; min-width:104px; min-height:48px; padding:.35rem .5rem;
    font-size:1.35rem; line-height:1; border-radius:10px; animation:none;
  }
  .htrfe-carousel--weekly .htrfe-carousel__count-label { font-size:.68rem; line-height:1.4; text-align:center; }
  .htrfe-carousel--weekly .htrfe-carousel__today-date {
    align-self:center; margin-top:.1rem; font-size:.68rem; line-height:1.4; text-align:center;
  }
  .htrfe-carousel--weekly .htrfe-carousel__slider {
    display:flex; flex:1 1 auto; flex-direction:column; align-items:stretch;
    position:relative; box-sizing:border-box; min-height:0; width:100%;
    gap:.55rem; padding:2.55rem .45rem .7rem;
  }
  .htrfe-carousel--weekly .htrfe-carousel__nav {
    position:absolute; top:.55rem; z-index:5; width:32px; height:32px;
    margin:0; transform:none; display:flex; align-items:center; justify-content:center;
  }
  .htrfe-carousel--weekly .htrfe-carousel__nav--right { right:.65rem; left:auto; }
  .htrfe-carousel--weekly .htrfe-carousel__nav--left { left:.65rem; right:auto; }
  .htrfe-carousel--weekly .htrfe-weekly__days {
    display:flex; flex-direction:row; align-items:stretch; justify-content:space-between;
    width:100%; gap:.25rem; margin:0;
  }
  .htrfe-carousel--weekly .htrfe-weekly__day {
    display:flex; flex:1 1 0; min-width:0; max-width:none; min-height:40px;
    align-items:center; justify-content:center; gap:.2rem; box-sizing:border-box;
    padding:.35rem .05rem; border-radius:9px;
  }
  .htrfe-carousel--weekly .htrfe-weekly__day-name { font-size:clamp(.48rem, 2vw, .6rem); line-height:1.3; }
  .htrfe-carousel--weekly .htrfe-weekly__day-number { font-size:.9rem; line-height:1.2; }
  .htrfe-carousel--weekly .htrfe-carousel__viewport {
    display:block; box-sizing:border-box; width:100%; min-height:0; height:auto;
    padding:.1rem .9rem .35rem; overflow-x:auto !important; overflow-y:hidden;
    direction:ltr; touch-action:pan-x pan-y; -webkit-overflow-scrolling:touch;
  }
  .htrfe-carousel--weekly .htrfe-carousel__track {
    display:flex; flex-direction:row; flex-wrap:nowrap; align-items:stretch;
    width:max-content; gap:var(--htr-card-gap);
  }
  .htrfe-carousel--weekly .htrfe-carousel__group {
    display:flex; flex-direction:row; flex-wrap:nowrap; align-items:stretch;
    width:max-content; gap:var(--htr-card-gap);
  }
  .htrfe-carousel--weekly .htrfe-carousel__card {
    display:flex; flex:0 0 min(82vw, 300px); width:min(82vw, 300px);
    min-width:0; min-height:0; border-radius:13px;
  }
  .htrfe-carousel--weekly .htrfe-carousel__image-wrap {
    display:flex; flex:none; align-items:center; justify-content:center;
    box-sizing:border-box; width:100%; height:clamp(115px, 38vw, 155px);
    min-height:0; padding:.3rem; overflow:hidden;
  }
  .htrfe-carousel--weekly .htrfe-carousel__image {
    display:block; width:100%; height:100%; max-width:100%; max-height:none;
    object-fit:cover; border-radius:var(--htr-weekly-image-radius, 10px);
  }
  .htrfe-carousel--weekly .htrfe-carousel__body {
    display:flex; flex-direction:column; align-items:center; gap:.25rem;
    padding:.55rem .6rem .65rem; text-align:center;
  }
  .htrfe-carousel--weekly .htrfe-carousel__deceased { font-size:.78rem; line-height:1.5; }
  .htrfe-carousel--weekly .htrfe-carousel__shipping-city,
  .htrfe-carousel--weekly .htrfe-carousel__order-time { font-size:.66rem; line-height:1.45; }
}
@media (max-width: 380px) {
  .htrfe-carousel--weekly .htrfe-carousel__hero { padding-right:.7rem; padding-left:.7rem; }
  .htrfe-carousel--weekly .htrfe-carousel__title { font-size:1.05rem; }
  .htrfe-carousel--weekly .htrfe-carousel__slider { padding-right:.3rem; padding-left:.3rem; }
  .htrfe-carousel--weekly .htrfe-carousel__card { flex-basis:84vw; width:84vw; }
}


/* Weekly carousel: navigation is vertically centered on the cards viewport. */
.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
}

.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap > .htrfe-carousel__nav {
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
}

.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap > .htrfe-carousel__nav--right {
	right: .75rem;
	left: auto;
}

.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap > .htrfe-carousel__nav--left {
	left: .75rem;
	right: auto;
}

@media (max-width: 768px) {
	.htrfe-carousel--weekly .htrfe-carousel__slider {
		padding: .75rem .55rem 1rem;
	}

	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap > .htrfe-carousel__nav {
		top: 50%;
		width: 32px;
		height: 32px;
		transform: translateY(-50%);
	}
}


/* Final mobile corrections for weekly carousel: preserve desktop card proportions. */
.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap {
	position: relative !important;
	display: block !important;
	width: 100%;
	min-width: 0;
}

/* حالت خالی: غلاف مخفی باید واقعاً حذف شود؛ وگرنه min-height موبایل فضای خالی می‌سازد. */
.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap[hidden] {
	display: none !important;
}

@media (max-width: 768px) {
	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap {
		min-height: 270px;
	}

	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap > .htrfe-carousel__viewport {
		min-height: 270px;
		padding-top: 12px;
		padding-bottom: 12px;
		box-sizing: border-box;
	}

	/* Keep the same card width and height ratio used on desktop. */
	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap .htrfe-carousel__card {
		flex: 0 0 165px !important;
		width: 165px !important;
		min-height: 245px !important;
	}

	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap .htrfe-carousel__image-wrap {
		height: 155px !important;
		min-height: 155px !important;
		width: 100%;
		padding: .35rem !important;
		box-sizing: border-box;
	}

	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap .htrfe-carousel__image {
		width: 100%;
		height: 100%;
		max-height: 150px !important;
		object-fit: cover;
	}

	/* Center navigation vertically against the actual cards viewport. */
	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap > .htrfe-carousel__nav {
		position: absolute !important;
		top: 50% !important;
		bottom: auto !important;
		transform: translateY(-50%) !important;
		z-index: 10;
		width: 32px;
		height: 32px;
		margin: 0 !important;
	}

	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap > .htrfe-carousel__nav--right {
		right: .25rem !important;
		left: auto !important;
	}

	.htrfe-carousel--weekly .htrfe-weekly__viewport-wrap > .htrfe-carousel__nav--left {
		left: .25rem !important;
		right: auto !important;
	}
}


/* Weekly carousel navigation: desktop stays aligned to the slider; mobile sits at the hero/slider boundary. */
.htrfe-carousel--weekly .htrfe-carousel__inner {
	position: relative;
}

.htrfe-carousel--weekly .htrfe-weekly__navigation {
	position: absolute;
	z-index: 30;
	top: 50%;
	left: 10px;
	width: calc(69% - 20px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	transform: translateY(-50%);
	pointer-events: none;
}

.htrfe-carousel--weekly .htrfe-weekly__navigation .htrfe-carousel__nav {
	position: static !important;
	inset: auto !important;
	transform: none !important;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	margin: 0 !important;
	pointer-events: auto;
}

@media (max-width: 768px) {
	.htrfe-carousel--weekly .htrfe-weekly__navigation {
		top: auto;
		bottom: auto;
		left: .75rem;
		right: auto;
		width: auto;
		justify-content: flex-start;
		gap: 6px;
		transform: translateY(-50%);
	}

	.htrfe-carousel--weekly .htrfe-weekly__navigation .htrfe-carousel__nav {
		flex: 0 0 32px;
		width: 32px;
		height: 32px;
	}
}

/* Final requested placement: mobile navigation spans both sides at 420px from the inner top. */
@media (max-width: 768px) {
	.htrfe-carousel--weekly .htrfe-weekly__navigation {
		top: 420px !important;
		bottom: auto !important;
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		box-sizing: border-box;
		justify-content: space-between !important;
		gap: 0 !important;
		transform: none !important;
		padding: 0 .75rem;
	}

	.htrfe-carousel--weekly .htrfe-weekly__navigation .htrfe-carousel__nav {
		position: static !important;
		margin: 0 !important;
	}
}
