/*
 * Alef Rehitim – מבצעים. Один файл стилей на все части модуля.
 *
 * Свои блоки живут под корнем .ald (страница скидок, полоса, блок главной, окно «перед уходом», цена на товаре).
 * Чужие элементы темы трогают только два правила в разделе «Карточки темы» — и только при классе body.ald-loop-on.
 * Вид продолжает поп-ап акции (alef-sale-popup): синяя ткань, золотая молния, жёлтая подкладка.
 * Цвета и размеры — переменные ниже. Порядок разделов: основа → кнопки → карточка → страница → фильтры →
 * полоса → главная → окно «перед уходом» → цена в карточках темы и на странице товара.
 */

/* Шрифт заголовков и цифр. Браузер скачивает файл только там, где он нужен. */
@font-face {
	font-family: "Karantina";
	font-weight: 700;
	font-display: swap;
	src: url(fonts/karantina-700-hebrew.woff2) format("woff2");
	unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: "Karantina";
	font-weight: 700;
	font-display: swap;
	src: url(fonts/karantina-700-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212;
}

:root {
	--ald-ink: #14213a;
	--ald-text: #4a4f5c;
	--ald-muted: #6b7183;
	--ald-line: #e3e7ef;
	--ald-mist: #f3f5f9;
	--ald-blue: #1d3f72;
	--ald-blue-dark: #142c52;
	--ald-gold: #f4b730;
	--ald-gold-soft: #fff1cc;
	--ald-gold-ink: #6a4700;
	--ald-red: #d8452f;
	--ald-wa: #1faa59;
	--ald-display: "Karantina", "Assistant", sans-serif;
	/* Ткань: диагональная «саржа» поверх синего. */
	--ald-fabric: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 6px),
		radial-gradient(130% 150% at 85% 0%, #2c5a9e 0%, var(--ald-blue) 46%, var(--ald-blue-dark) 100%);
	/* Зубцы молнии. */
	--ald-teeth: repeating-linear-gradient(90deg, var(--ald-gold) 0 6px, #b98312 6px 7px, transparent 7px 12px);
}

html.ald-lock { overflow: hidden; }

.ald,
.ald *,
.ald *::before,
.ald *::after { box-sizing: border-box; }

.ald [hidden] { display: none !important; }

.ald :focus-visible {
	outline: 3px solid var(--ald-gold);
	outline-offset: 2px;
}

/* ---------- Кнопки ---------- */

.ald-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s, background-color .15s;
}
.ald-btn:active { transform: scale(.97); }
.ald-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ald-btn--ink { background: var(--ald-ink); color: #fff; }
.ald-btn--gold { background: var(--ald-gold); color: var(--ald-ink); }
.ald-btn--wa { background: var(--ald-wa); color: #fff; }
.ald-btn--line { background: #fff; color: var(--ald-ink); border-color: var(--ald-ink); }
.ald-btn--ink:hover, .ald-btn--wa:hover { color: #fff; }
.ald-btn--gold:hover, .ald-btn--line:hover { color: var(--ald-ink); }

.ald-link {
	border: 0;
	padding: 6px 4px;
	background: none;
	color: var(--ald-blue);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- Карточка товара ---------- */

.ald-card {
	position: relative;
	min-width: 0;
	border: 1px solid var(--ald-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}
.ald-card.is-new { animation: ald-rise .35s ease-out both; }
@keyframes ald-rise {
	from { opacity: 0; transform: translateY(10px); }
}

.ald-card__link {
	display: block;
	height: 100%;
	padding-bottom: 12px;
	color: var(--ald-ink);
	text-decoration: none;
}
.ald-card__link:hover { color: var(--ald-ink); }

.ald-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1;
	background: var(--ald-mist);
	overflow: hidden;
}
.ald-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
@media (hover: hover) {
	.ald-card__link:hover .ald-card__media img { transform: scale(1.05); }
}

/* Бирка скидки: главное на карточке, поэтому крупная и красная. */
.ald-tag {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	display: grid;
	justify-items: center;
	padding: 6px 9px 5px;
	border-radius: 10px 10px 10px 2px;
	background: var(--ald-red);
	color: #fff;
	line-height: 1;
	transform: rotate(-4deg);
	box-shadow: 0 8px 14px -8px rgba(120, 30, 15, .9);
}
.ald-tag b {
	font-family: var(--ald-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: .01em;
}
.ald-tag small { font-size: 11px; font-weight: 700; }

.ald-card__name {
	display: -webkit-box;
	min-height: 2.7em;
	margin: 10px 12px 6px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.ald-card__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 7px;
	margin: 0 12px;
}
.ald-card__from { flex: 0 0 100%; font-size: 12px; line-height: 1.2; color: var(--ald-muted); }
.ald-card__now { font-size: 19px; font-weight: 800; white-space: nowrap; }
.ald-card__was { font-size: 13px; color: var(--ald-muted); white-space: nowrap; }

.ald-card__save {
	display: inline-block;
	margin: 7px 12px 0;
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--ald-gold-soft);
	color: var(--ald-gold-ink);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.4;
}

/* Кнопка WhatsApp в углу фото. Сама ссылка — прозрачный квадрат поверх фото, нажимается только кружок. */
.ald-card__wa {
	position: absolute;
	top: 0;
	inset-inline: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	aspect-ratio: 1;
	padding: 8px;
	pointer-events: none;
}
.ald-card__wa:focus-visible { outline: 0; }
.ald-card__wa-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	color: var(--ald-wa);
	box-shadow: 0 4px 12px -4px rgba(20, 33, 58, .55);
	pointer-events: auto;
	transition: transform .15s;
}
.ald-card__wa-btn svg { width: 22px; height: 22px; fill: currentColor; }
.ald-card__wa:hover .ald-card__wa-btn { transform: scale(1.08); }
.ald-card__wa:focus-visible .ald-card__wa-btn { outline: 3px solid var(--ald-gold); outline-offset: 2px; }

@media (min-width: 640px) {
	.ald-card__from { flex-basis: auto; } /* на широкой карточке «от» помещается в одну строку с ценой */
	.ald-card__name { font-size: 15px; }
	.ald-card__now { font-size: 21px; }
	.ald-card__was { font-size: 14px; }
	.ald-tag b { font-size: 34px; }
}

/* ---------- Страница скидок: шапка ---------- */

/* Строка темы «хлебные крошки + название страницы»: её заменяет шапка акции с тем же заголовком. */
body.ald-page-on .c-page-header--page { display: none; }

.ald-page {
	color: var(--ald-ink);
	background: #fff;
	text-align: start;
}

.ald-hero { color: #fff; }
.ald-hero__fabric {
	padding: clamp(26px, 5vw, 56px) 20px clamp(30px, 5vw, 52px);
	background: var(--ald-fabric);
	text-align: center;
}
.ald-hero__title {
	margin: 0;
	color: #fff;
	font-family: var(--ald-display);
	font-size: clamp(76px, 19vw, 190px);
	font-weight: 700;
	line-height: .84;
	letter-spacing: .01em;
	text-shadow: 0 4px 0 rgba(8, 18, 40, .35);
}
.ald-hero--calm .ald-hero__title { font-size: clamp(64px, 12vw, 120px); }
.ald-hero__sub {
	max-width: 34em;
	margin: 14px auto 0;
	color: #dce6f6;
	font-size: clamp(16px, 2.1vw, 20px);
	line-height: 1.5;
}

/* Молния: лента с зубцами и бегунок. При открытии страницы бегунок один раз едет справа налево. */
.ald-zip {
	position: relative;
	z-index: 2;
	height: 16px;
	margin: -1px 0;
	border-block: 3px solid #0e1f3c;
	background: var(--ald-teeth), #0e1f3c;
}
.ald-zip__pull {
	position: absolute;
	top: 50%;
	right: calc(100% - 46px);
	width: 46px;
	height: 26px;
	margin-top: -13px;
	border-radius: 7px;
	background: linear-gradient(#ffd56a, var(--ald-gold) 55%, #c98f14);
	box-shadow: 0 3px 6px rgba(0, 0, 0, .35);
	animation: ald-pull 1.2s cubic-bezier(.6, .05, .2, 1) .3s both;
}
.ald-zip__pull::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 14px;
	height: 26px;
	margin-left: -7px;
	border: 3px solid var(--ald-gold);
	border-top: 0;
	border-radius: 0 0 8px 8px;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
}
@keyframes ald-pull {
	from { right: 0; }
}

/* Под молнией ткань расходится и видна жёлтая подкладка с числами. */
.ald-hero__lining { background: var(--ald-fabric); }
.ald-hero__open {
	display: grid;
	gap: 16px;
	padding: 34px 16px 22px; /* сверху место под язычок бегунка */
	background: linear-gradient(rgba(20, 33, 58, .16), transparent 14px), var(--ald-gold);
	color: var(--ald-ink);
	animation: ald-unzip 1.2s cubic-bezier(.6, .05, .2, 1) .3s both;
}
@keyframes ald-unzip {
	from { clip-path: inset(0 0 0 100%); }
	to { clip-path: inset(0 0 0 0); }
}

.ald-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin: 0;
	text-align: center;
}
.ald-stats dt {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
	color: #4a3a10;
}
.ald-stats dd {
	margin: 2px 0 0;
	font-family: var(--ald-display);
	font-size: clamp(40px, 9vw, 68px);
	font-weight: 700;
	line-height: .95;
	white-space: nowrap;
}

.ald-timer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
}
.ald-timer__label { font-size: 15px; font-weight: 700; }
.ald-timer__cells { display: flex; gap: 6px; }
.ald-timer__cell {
	display: grid;
	justify-items: center;
	min-width: 52px;
	padding: 5px 6px 4px;
	border-radius: 10px;
	background: var(--ald-ink);
	color: #fff;
	line-height: 1;
}
.ald-timer__cell b {
	font-family: var(--ald-display);
	font-size: 30px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.ald-timer__cell small { margin-top: 2px; font-size: 11px; color: #c9d4ea; }

@media (min-width: 900px) {
	.ald-hero__open {
		grid-template-columns: minmax(0, 1.4fr) auto;
		align-items: center;
		gap: 40px;
		padding: 30px max(24px, calc((100% - 1160px) / 2)) 24px;
	}
	.ald-stats dt { font-size: 14px; }
	.ald-timer { flex-direction: column; gap: 8px; }
}

/* ---------- Страница скидок: кружки категорий ---------- */

.ald-cats {
	display: flex;
	gap: 12px;
	padding: 22px 16px 8px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
}
.ald-cats::-webkit-scrollbar { display: none; }

.ald-cat {
	flex: 0 0 84px;
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 5px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--ald-ink);
	font: inherit;
	text-align: center;
	scroll-snap-align: start;
	cursor: pointer;
}
.ald-cat__pic {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ald-line);
	transition: box-shadow .2s;
}
.ald-cat__pic img { width: 100%; height: 100%; object-fit: cover; }
.ald-cat__pic--all { background: var(--ald-fabric); color: var(--ald-gold); }
.ald-cat__pic--all b { font-family: var(--ald-display); font-size: 30px; font-weight: 700; line-height: 1; }
.ald-cat.is-on .ald-cat__pic { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ald-red); }
.ald-cat__name { font-size: 13px; font-weight: 600; line-height: 1.25; }
.ald-cat.is-on .ald-cat__name { font-weight: 800; }
.ald-cat__meta { font-size: 12px; font-weight: 700; color: var(--ald-red); line-height: 1.2; }

@media (min-width: 1024px) {
	.ald-cats { flex-wrap: wrap; justify-content: center; gap: 14px 20px; padding: 30px 24px 10px; overflow: visible; }
	.ald-cat { flex-basis: 108px; }
	.ald-cat__pic { width: 92px; height: 92px; }
	.ald-cat__name { font-size: 14px; }
}

/* ---------- Страница скидок: строка с числом товаров, фильтры ---------- */

.ald-bar {
	display: flex;
	flex-wrap: wrap; /* на телефоне «сбросить фильтр» уходит на вторую строку, а не ломает первую */
	align-items: center;
	gap: 4px 10px;
	max-width: 1360px;
	margin: 0 auto;
	padding: 12px 12px 6px;
}
.ald-bar__count { margin: 0; font-size: 18px; font-weight: 800; white-space: nowrap; }
.ald-bar__reset {
	border: 0;
	padding: 6px 4px;
	background: none;
	color: var(--ald-blue);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
	cursor: pointer;
	order: 3;
}
.ald-bar__open,
.ald-fab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--ald-ink);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}
.ald-bar__open { margin-inline-start: auto; }
.ald-bar__open svg, .ald-fab svg { width: 20px; height: 20px; }
.ald-bar__open i {
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	border-radius: 10px;
	background: var(--ald-gold);
	color: var(--ald-ink);
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
}

/* Плавающая кнопка фильтра: появляется, когда строка фильтров уехала вверх. Слева, чтобы не лечь на кнопку «наверх». */
.ald-fab {
	position: fixed;
	z-index: 99980; /* ниже нижней панели alef-mobile (99991) */
	left: 12px;
	bottom: calc(96px + env(safe-area-inset-bottom));
	box-shadow: 0 10px 24px -10px rgba(20, 33, 58, .8);
}

.ald-scrim {
	position: fixed;
	inset: 0;
	z-index: 2147482000;
	background: rgba(10, 18, 36, .55);
}

/* Телефон: фильтры — шторка снизу. */
.ald-filters {
	position: fixed;
	z-index: 2147482001;
	inset-inline: 0;
	bottom: 0;
	display: grid;
	gap: 18px;
	max-height: 88vh;
	max-height: 88dvh;
	padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
	border-radius: 22px 22px 0 0;
	background: #fff;
	overflow-y: auto;
	visibility: hidden;
	transform: translateY(104%);
	transition: transform .28s ease, visibility 0s .28s;
}
.ald-page.is-sheet .ald-filters {
	visibility: visible;
	transform: none;
	transition: transform .28s ease;
}
.ald-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 18px;
}
.ald-filters__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-inline-end: -8px;
	border: 0;
	border-radius: 50%;
	background: var(--ald-mist);
	color: var(--ald-ink);
	cursor: pointer;
}
.ald-filters__foot { display: grid; gap: 6px; justify-items: center; }
.ald-filters__foot .ald-btn { width: 100%; }

.ald-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.ald-group legend {
	width: 100%;
	margin: 0 0 8px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ald-muted);
}
.ald-group--row { display: grid; gap: 12px; }

.ald-chip {
	min-height: 42px;
	padding: 0 15px;
	border: 1.5px solid var(--ald-line);
	border-radius: 999px;
	background: #fff;
	color: var(--ald-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.ald-chip.is-on { border-color: var(--ald-ink); background: var(--ald-ink); color: #fff; }

.ald-field {
	position: relative;
	display: grid;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ald-muted);
}
/* Двойной класс и !important — тема красит все поля и списки сайта по-своему (квадратная рамка, свои отступы). */
.ald .ald-field select,
.ald .ald-field input[type="search"] {
	width: 100%;
	height: 46px !important;
	min-height: 0;
	margin: 0;
	padding: 0 14px !important;
	border: 1.5px solid var(--ald-line) !important;
	border-radius: 12px !important;
	background-color: #fff;
	box-shadow: none;
	color: var(--ald-ink);
	font: inherit;
	font-size: 16px; /* меньше 16 px — iPhone приближает страницу при вводе */
	font-weight: 600;
	line-height: 1.2;
}
.ald .ald-field select { padding-inline-end: 34px !important; }
.ald-field--search svg {
	position: absolute;
	top: 13px;
	inset-inline-start: 12px;
	width: 20px;
	height: 20px;
	color: var(--ald-muted);
	pointer-events: none;
}
.ald .ald-field--search input[type="search"] { padding-inline-start: 40px !important; }

/* Компьютер: фильтры стоят строкой под кружками. */
@media (min-width: 1024px) {
	.ald-bar { padding: 14px 24px 4px; }
	.ald-bar__reset { order: 0; }
	.ald-bar__open { display: none; }
	.ald-scrim { display: none !important; }
	.ald-filters {
		position: static;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		gap: 16px 32px;
		max-width: 1360px;
		max-height: none;
		margin: 0 auto;
		padding: 8px 24px 6px;
		border-radius: 0;
		overflow: visible;
		visibility: visible;
		transform: none;
		transition: none;
	}
	.ald-filters__head, .ald-filters__foot { display: none; }
	.ald-group--row { display: flex; align-items: flex-end; gap: 14px; margin-inline-start: auto; }
	.ald .ald-field select { width: 240px; }
	.ald .ald-field--search input[type="search"] { width: 240px; }
	/* По центру: слева внизу на широком экране стоит кружок cookie, справа — WhatsApp и «наверх». */
	.ald-fab { left: 50%; bottom: 24px; transform: translateX(-50%); }
}

/* ---------- Страница скидок: сетка, пусто, помощь ---------- */

.ald-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-width: 1360px;
	margin: 0 auto;
	padding: 10px 12px 20px;
}
@media (min-width: 640px) {
	.ald-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-inline: 16px; }
}
@media (min-width: 1024px) {
	.ald-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; padding: 16px 24px 28px; }
}

.ald-more { display: grid; justify-items: center; padding: 4px 16px 28px; }

.ald-empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	max-width: 30em;
	margin: 0 auto;
	padding: 40px 20px 48px;
	text-align: center;
}
.ald-empty strong { font-size: 20px; }
.ald-empty p { margin: 0 0 8px; color: var(--ald-text); }

.ald-help {
	display: grid;
	gap: 18px;
	max-width: 1120px;
	margin: 12px 12px 22px;
	padding: 24px 20px;
	border-radius: 22px;
	background: var(--ald-mist);
}
.ald-help h2 {
	margin: 0 0 6px;
	color: var(--ald-ink);
	font-family: var(--ald-display);
	font-size: clamp(38px, 6vw, 52px);
	font-weight: 700;
	line-height: .95;
}
.ald-help p { margin: 0; color: var(--ald-text); font-size: 16px; line-height: 1.5; }
.ald-help__actions { display: grid; gap: 10px; }
@media (min-width: 760px) {
	.ald-help {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		margin: 16px auto 28px;
		padding: 30px 36px;
	}
	.ald-help__actions { grid-auto-flow: column; }
}

.ald-legal {
	margin: 0;
	padding: 0 16px 28px;
	color: var(--ald-muted);
	font-size: 12.5px;
	text-align: center;
}

/* ---------- Полоса акции вверху страницы ---------- */

.ald-strip {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	min-height: 40px;
	padding: 7px 14px;
	background: var(--ald-fabric);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}
.ald-strip:hover { color: #fff; }
.ald-strip__timer { display: none; color: #dce6f6; font-weight: 500; white-space: nowrap; }
.ald-strip__timer b { color: var(--ald-gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.ald-strip__link {
	flex: none;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--ald-gold);
	color: var(--ald-ink);
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}
@media (min-width: 760px) {
	.ald-strip { font-size: 15px; gap: 20px; }
	.ald-strip__timer { display: inline; }
}

/* ---------- Блок на главной ---------- */

.ald-home {
	position: relative;
	padding: 30px 0 26px;
	background: var(--ald-fabric);
	color: #fff;
	text-align: start;
}
.ald-home::before,
.ald-home::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	height: 10px;
	border-block: 2px solid #0e1f3c;
	background: var(--ald-teeth), #0e1f3c;
}
.ald-home::before { top: 0; }
.ald-home::after { bottom: 0; }

.ald-home__head {
	display: grid;
	gap: 14px;
	max-width: 1360px;
	margin: 0 auto 16px;
	padding: 0 16px;
}
.ald-home__title {
	margin: 0;
	color: #fff;
	font-family: var(--ald-display);
	font-size: clamp(52px, 9vw, 84px);
	font-weight: 700;
	line-height: .88;
}
.ald-home__sub { margin: 6px 0 0; color: #dce6f6; font-size: 16px; line-height: 1.4; }
.ald-home__head .ald-btn { justify-self: start; }

.ald-home__rail {
	display: flex;
	gap: 12px;
	max-width: 1360px;
	margin: 0 auto;
	padding: 4px 16px 10px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 16px; /* иначе привязка прокрутки прижимает первую карточку к краю экрана */
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .45) transparent;
}
.ald-home__rail .ald-card { flex: 0 0 168px; border-color: transparent; scroll-snap-align: start; }
@media (min-width: 760px) {
	.ald-home { padding: 40px 0 34px; }
	.ald-home__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 0 24px; }
	.ald-home__rail { gap: 18px; padding-inline: 24px; }
	.ald-home__rail .ald-card { flex-basis: 236px; }
}

/* ---------- Окно «перед уходом» ---------- */

.ald-exit {
	position: fixed;
	inset: 0;
	/* Выше нижней панели alef-mobile и кружков, но ниже поп-апа акции (2147483000). */
	z-index: 2147482500;
	display: grid;
	align-items: end;
	justify-items: center;
}
.ald-exit__scrim { position: absolute; inset: 0; background: rgba(10, 18, 36, .6); }
.ald-exit__card {
	position: relative;
	display: grid;
	gap: 12px;
	width: 100%;
	max-width: 520px;
	max-height: 92vh;
	max-height: 92dvh;
	padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
	border-radius: 24px 24px 0 0;
	background: #fff;
	color: var(--ald-ink);
	overflow-y: auto;
	outline: 0;
	animation: ald-sheet .3s ease-out both;
}
@keyframes ald-sheet {
	from { transform: translateY(40px); opacity: 0; }
}
.ald-exit__close {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--ald-mist);
	color: var(--ald-ink);
	cursor: pointer;
}
.ald-exit__title {
	margin: 0;
	padding-inline-end: 44px;
	color: var(--ald-ink);
	font-family: var(--ald-display);
	font-size: clamp(44px, 11vw, 56px);
	font-weight: 700;
	line-height: .9;
}
.ald-exit__sub { margin: 0; color: var(--ald-text); font-size: 15.5px; line-height: 1.45; }
.ald-exit__list { display: grid; gap: 8px; min-height: 252px; }
.ald-exit__item {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 6px;
	border: 1px solid var(--ald-line);
	border-radius: 14px;
	color: var(--ald-ink);
	text-decoration: none;
}
.ald-exit__item:hover { color: var(--ald-ink); border-color: var(--ald-ink); }
.ald-exit__item img { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; background: var(--ald-mist); }
.ald-exit__item-name { display: -webkit-box; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ald .ald-exit__card:focus-visible { outline: 0; } /* фокус ставит скрипт при открытии — рамка тут не нужна */
.ald-exit__item-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin-top: 3px; }
.ald-exit__item-price b { font-size: 18px; font-weight: 800; }
.ald-exit__item-price s { color: var(--ald-muted); font-size: 13px; }
.ald-exit__item .ald-tag { position: static; margin-inline-end: 6px; }
.ald-exit__item .ald-tag b { font-size: 28px; }
@media (min-width: 760px) {
	.ald-exit { align-items: center; }
	.ald-exit__card { padding: 28px; border-radius: 24px; }
}

/* ---------- Цена со скидкой в карточках темы и на странице товара ---------- */

/* Бейдж темы «-10%»: был зелёный контур 11 px — теперь красная плашка. */
body.ald-loop-on .c-badge.c-badge--sale {
	padding: 7px 10px 6px;
	border-color: var(--ald-red);
	border-radius: 8px 8px 8px 2px;
	background: var(--ald-red);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
}

.ald-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 2px 8px;
	max-width: 100%;
}
.price .ald-price ins,
.ald-price ins {
	display: inline;
	order: 0;
	margin: 0;
	color: var(--ald-ink);
	font-size: 1.15em;
	font-weight: 800;
	text-decoration: none;
}
.price .ald-price del,
.ald-price del {
	display: inline;
	order: 0;
	margin: 0;
	color: var(--ald-muted);
	font-size: .78em;
	font-weight: 400;
	opacity: 1;
	text-decoration: line-through;
}
.ald-price__from { color: var(--ald-muted); font-size: .72em; font-weight: 600; }
.ald-price__row { flex: 0 0 100%; display: flex; justify-content: inherit; }
.ald-price__save {
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--ald-gold-soft);
	color: var(--ald-gold-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

/* Страница товара с вариантами: цена «от …» сразу под названием. */
.ald-pdp { margin: 2px 0 20px; color: var(--ald-ink); }
.ald-pdp .ald-price { justify-content: flex-start; font-size: 26px; line-height: 1.2; }
.ald-pdp .ald-price__save { font-size: 14px; }
.ald-pdp__note { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ald-text); }
.ald-pdp__until { font-weight: 700; color: var(--ald-red); }
.ald-pdp__more { margin-inline-start: 6px; color: var(--ald-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.ald-zip__pull,
	.ald-hero__open,
	.ald-card.is-new,
	.ald-exit__card { animation: none; }
	.ald-filters,
	.ald-card__media img,
	.ald-btn { transition: none; }
}
