/* balono: собрано из balono.css, p1.css, motion.css */

/* ===== balono.css ===== */
/* ==========================================================================
   Балоно — витрина. Токены и базовые стили.
   Порядок: токены → сброс → типографика → кнопки/поля → шапка/подвал →
   главная → каталог → карточка товара → чекаут → служебное.
   ========================================================================== */

:root {
	/* цвета из ТЗ */
	--c-bg: #FBF6F1;
	--c-card: #FFFFFF;
	--c-text: #2A1F24;
	--c-muted: #6B5960;
	--c-accent: #B8475F;
	--c-accent-hover: #8F3248;
	--c-logo: #E3768C;
	--c-soft: #FBE3E8;
	--c-second: #9EC3DB;
	--c-badge: #E9D3A8;
	--c-line: #EADFD8;

	/* форма */
	--r-s: 12px;
	--r-m: 16px;
	--r-l: 20px;
	--r-pill: 999px;
	--touch: 44px;
	--shadow: 0 10px 30px rgba(42, 31, 36, .07);
	--shadow-sm: 0 2px 10px rgba(42, 31, 36, .06);
	--container: 1200px;
	--gutter: 16px;
	--tabbar-h: 62px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-accent-hover); }
button { font: inherit; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.15; font-weight: 800; }
h1 { font-size: 28px; letter-spacing: -.01em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* ---------- кнопки, поля, бейджи ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--touch); padding: 10px 18px;
	border: 1px solid transparent; border-radius: var(--r-s);
	font-weight: 700; font-size: 15px; line-height: 1.1;
	cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
	background: var(--c-card); color: var(--c-text);
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--c-line); color: var(--c-text); }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--wide { width: 100%; }
.btn--icon { padding: 10px 12px; font-size: 13px; border-color: var(--c-line); background: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }

.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; font-weight: 700; color: var(--c-muted); margin-bottom: 6px; }
.field__hint { font-weight: 400; color: var(--c-muted); font-size: 12px; }
.field__input {
	width: 100%; min-height: var(--touch); padding: 10px 14px;
	background: var(--c-card); color: var(--c-text);
	border: 1px solid var(--c-line); border-radius: var(--r-s);
	font-size: 16px; font-family: inherit;
}
.field__input:focus { outline: 2px solid rgba(184, 71, 95, .35); outline-offset: 1px; border-color: var(--c-accent); }
.field__input--area { min-height: 76px; resize: vertical; }
.field__counter { display: block; margin-top: 4px; font-size: 12px; color: var(--c-muted); text-align: right; }
.field--file .field__input { padding: 8px; font-size: 14px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-muted); }
.checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-accent); flex: 0 0 auto; }
.checkbox__count { margin-left: auto; color: var(--c-muted); font-size: 13px; }

.badge {
	display: inline-block; padding: 4px 9px; border-radius: var(--r-pill);
	font-size: 12px; font-weight: 700; line-height: 1.1;
	background: #fff; color: var(--c-text);
}
.badge--hit { background: var(--c-badge); }
.badge--today { background: var(--c-soft); color: var(--c-accent-hover); }
.badge--air { background: var(--c-second); color: #173042; }

.pill {
	display: inline-block; padding: 4px 10px; border-radius: var(--r-pill);
	background: #fff; border: 1px solid var(--c-line); font-size: 13px; font-weight: 600;
}
.pill--soft { background: var(--c-soft); border-color: transparent; color: var(--c-accent-hover); }

.notice {
	padding: 12px 14px; border-radius: var(--r-s);
	background: #fff; border: 1px dashed var(--c-line); font-size: 14px; color: var(--c-muted);
}
.notice--ok { background: #eef7f0; border-color: #b9dcc3; color: #22563a; }
.notice--air { background: #eaf2f8; border-color: #c9deed; color: #173042; }

/* ---------- плашка над шапкой ---------- */

.banner {
	background: var(--c-soft); color: var(--c-text);
	font-size: 13px; font-weight: 600;
	padding: 8px var(--gutter);
	display: flex; gap: 10px; align-items: center; justify-content: center;
	text-align: center; flex-wrap: wrap;
}
.banner__text { margin: 0; }
.banner__links { margin: 0; display: flex; gap: 6px; align-items: center; }
.banner__links a { color: var(--c-accent-hover); font-weight: 800; }

/* ---------- шапка ---------- */

.header {
	position: sticky; top: 0; z-index: 40;
	background: rgba(251, 246, 241, .95);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--c-line);
}
.header__inner {
	max-width: var(--container); margin: 0 auto;
	padding: 10px var(--gutter);
	display: flex; align-items: center; gap: 16px;
}
.header__logo img { width: 104px; height: auto; }
.nav { display: none; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: var(--touch); height: var(--touch);
	background: transparent; border: 0; border-radius: var(--r-s);
	color: var(--c-text); cursor: pointer; position: relative;
}
.icon-btn:hover { background: rgba(42, 31, 36, .05); }
.cart-link__count {
	position: absolute; top: 2px; right: 0;
	min-width: 18px; height: 18px; padding: 0 4px;
	border-radius: var(--r-pill); background: var(--c-accent); color: #fff;
	font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}

.search-panel { position: fixed; inset: 0; z-index: 60; background: rgba(42, 31, 36, .4); display: grid; place-items: start center; padding: 80px var(--gutter); }
.search-panel[hidden] { display: none; }
.search-panel__form { width: 100%; max-width: 640px; display: flex; gap: 8px; background: #fff; padding: 12px; border-radius: var(--r-m); box-shadow: var(--shadow); }
.search-panel__input { flex: 1; min-height: var(--touch); padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--r-s); font-size: 16px; }

/* ---------- общие секции ---------- */

.section { max-width: var(--container); margin: 0 auto; padding: 24px var(--gutter) 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section__title { font-size: 22px; margin: 0; }
.section__title--sm { font-size: 18px; margin-bottom: 10px; }
.section__link { font-size: 14px; font-weight: 700; }

/* ---------- главная: герой и подбор ---------- */

.hero { max-width: var(--container); margin: 0 auto; padding: 24px var(--gutter) 8px; }
.hero__title { font-size: 30px; max-width: 12em; margin-bottom: 12px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li {
	background: var(--c-card); border: 1px solid var(--c-line);
	border-radius: var(--r-pill); padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--c-muted);
}
.hero__lead { color: var(--c-muted); max-width: 34em; }

.picker {
	max-width: var(--container); margin: 16px auto 0; padding: 16px;
	background: var(--c-card); border-radius: var(--r-l); box-shadow: var(--shadow);
}
.picker__title { font-size: 18px; margin-bottom: 12px; }
.picker__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.picker__colors { border: 0; margin: 4px 0 14px; padding: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 32px; padding: 4px 10px 4px 8px;
	border-radius: var(--r-pill); background: #fff; border: 1px solid var(--c-line);
	font-size: 13px; color: var(--c-text);
}
.swatch span::before {
	content: ''; width: 18px; height: 18px; border-radius: 50%;
	background: var(--c, #e7dcd6); border: 1px solid rgba(42, 31, 36, .12);
}
.swatch input:checked + span { border-color: var(--c-accent); box-shadow: 0 0 0 2px rgba(184, 71, 95, .15); }
.swatch input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- сетка карточек ---------- */

.grid { display: grid; gap: 12px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3-md { }

.card {
	background: var(--c-card); border-radius: var(--r-m); overflow: hidden;
	box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: #f3eae4; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #f6ece6, #efe1da); }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.card__air {
	position: absolute; bottom: 8px; left: 8px; right: 8px;
	background: rgba(158, 195, 219, .92); color: #173042;
	font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 8px;
}
.card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
/* Название — не больше двух строк, полное — в атрибуте title. */
.card__title {
	font-size: 14px; font-weight: 600; color: var(--c-text); line-height: 1.3;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
	line-clamp: 2; overflow: hidden; min-height: calc(2 * 1.3em);
}
.card__price { font-weight: 800; font-size: 15px; }
.card__price del { color: var(--c-muted); font-weight: 500; margin-right: 6px; }
/* Кнопки прижаты к низу карточки — в ряду они на одной линии, даже если названия разной длины. */
.card__actions { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
/* Кнопки карточки: «В корзину» и иконка «в 1 клик» всегда в одну строку.
   Раньше обе кнопки были flex:1 — на 360 px им доставалось поровну, и текст
   «В корзину» переносился на вторую строку. Теперь растягивается только
   основная кнопка, иконка — по содержимому, текст не переносится. */
.card__actions .btn { flex: 1 1 auto; min-width: 0; padding: 8px 10px; font-size: 13px; white-space: nowrap; }
.card__actions .btn--icon { flex: 0 0 auto; }
.card__actions .btn--quick,
.card__actions .btn--oneclick { flex: 0 0 auto; }
@media (max-width: 374px) {
	.card__actions { gap: 4px; }
	.card__actions .btn { padding: 8px 6px; font-size: 12px; }
	.card__actions .btn--quick { padding: 8px; }
}
.card--compact .card__title { font-size: 13px; }

/* плитки «Кому выбираем» */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--c-card); border-radius: var(--r-m); padding: 8px; box-shadow: var(--shadow-sm); color: var(--c-text); }
.tile__media { display: block; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: #f3eae4; margin-bottom: 6px; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__title { display: block; font-size: 13px; font-weight: 700; }
.tile__price { display: block; font-size: 12px; color: var(--c-muted); }

/* шаги */
.steps__list { display: grid; gap: 10px; counter-reset: step; }
.steps__item { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; background: var(--c-card); border-radius: var(--r-m); padding: 12px; box-shadow: var(--shadow-sm); }
.steps__num {
	grid-row: span 2; width: 34px; height: 34px; border-radius: 50%;
	background: var(--c-soft); color: var(--c-accent-hover);
	display: grid; place-items: center; font-weight: 800;
}
.steps__title { font-weight: 700; }
.steps__note { color: var(--c-muted); font-size: 14px; }

.zones__text { color: var(--c-muted); max-width: 46em; }
.reviews__widget { border-radius: var(--r-m); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.reviews__widget iframe { display: block; border: 0; }
.faq__item { background: var(--c-card); border-radius: var(--r-m); padding: 14px 16px; margin-bottom: 8px; box-shadow: var(--shadow-sm); }
.faq__q { cursor: pointer; font-weight: 700; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; float: right; color: var(--c-accent); font-weight: 800; }
.faq__item[open] .faq__q::after { content: '−'; }
.faq__a { color: var(--c-muted); padding-top: 8px; }

/* ---------- каталог ---------- */

.crumbs { max-width: var(--container); margin: 0 auto; padding: 12px var(--gutter) 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--c-muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--c-line); }
.crumbs a { color: var(--c-muted); }

/* Каталог: один контейнер на всё — крошки, заголовок, фильтры и сетка
   выровнены по одной max-width и одним боковым отступам. */
.catalog { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* Крошки внутри контейнера каталога: свои поля им уже не нужны. */
.catalog .crumbs { max-width: none; margin: 0; padding: 12px 0 0; }
.catalog__head { padding: 8px 0 0; }
.catalog__title { font-size: 26px; margin: 0; }
/* Строка «соберём и привезём сегодня» под заголовком каталога:
   заменила бейдж «Можно сегодня» на карточках (решение владельца 29.10). */
.catalog__today { margin: 6px 0 0; font-size: 14px; color: var(--c-muted); }
.catalog__layout { padding: 12px 0 0; display: grid; gap: 16px; }
.catalog__panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog__found { margin: 0; font-size: 14px; color: var(--c-muted); }
.catalog__found .js-found-label { font-weight: 600; color: var(--c-text); }
.catalog__panel-tools { display: flex; align-items: center; gap: 8px; }
.catalog__panel-tools .btn { flex: 0 0 auto; }
/* Сортировка — компактный чип по ширине текста, а не поле во всю строку. */
.sort-chip {
	display: inline-flex; align-items: center; gap: 4px; position: relative;
	min-height: 36px; padding: 0 30px 0 14px;
	border: 1px solid var(--c-line); border-radius: 999px; background: #fff;
	font-size: 14px; color: var(--c-text); white-space: nowrap;
}
.sort-chip::after {
	content: ""; position: absolute; right: 13px; top: 50%;
	width: 6px; height: 6px; margin-top: -4px;
	border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg); pointer-events: none;
}
.sort-chip__text { color: var(--c-muted); }
.sort-chip__select {
	appearance: none; -webkit-appearance: none; border: 0; background: transparent;
	padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer;
	width: auto; max-width: 12em;
}
.sort-chip__select:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 6px; }
.catalog__main { min-width: 0; }
.catalog__more { margin: 16px 0; }
.catalog__empty { color: var(--c-muted); }

/* Телефон: одна строка панели не помещается — счётчик своей строкой,
   ниже «Фильтры» и компактная сортировка по краям. */
@media (max-width: 767px) {
	.catalog__panel { flex-wrap: wrap; row-gap: 8px; }
	.catalog__found { flex: 1 1 100%; white-space: nowrap; }
	.catalog__panel-tools { flex: 1 1 100%; justify-content: space-between; min-width: 0; }
	.catalog__panel-tools .btn { flex: 0 0 auto; }
	/* На телефоне подпись «Сортировка:» убираем — иначе чип не помещается;
	   смысл остаётся в aria-label у select. */
	.sort-chip { min-width: 0; max-width: calc(100% - 112px); padding-right: 28px; overflow: hidden; }
	.sort-chip__text { display: none; }
	.sort-chip__select { min-width: 0; max-width: 100%; }
}

.filters {
	position: fixed; inset: 0; z-index: 50; background: var(--c-bg);
	padding: 16px; overflow-y: auto; transform: translateY(100%); transition: transform .25s ease;
}
.filters.is-open { transform: none; }
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters__title { font-size: 20px; margin: 0; }
.filters__close { width: var(--touch); height: var(--touch); border: 0; background: #fff; border-radius: var(--r-s); font-size: 22px; cursor: pointer; }
.filters__group { background: #fff; border-radius: var(--r-m); padding: 12px 14px; margin-bottom: 10px; }
.filters__subtitle { font-size: 15px; margin: 0 0 8px; }
.filters__list { display: grid; gap: 8px; }
.filters__actions { display: grid; gap: 8px; padding-bottom: 24px; }
.range { display: flex; align-items: center; gap: 8px; }
.range__field { flex: 1; }
.range__field input { width: 100%; min-height: var(--touch); padding: 8px 12px; border: 1px solid var(--c-line); border-radius: var(--r-s); font-size: 16px; }
.range__dash { color: var(--c-muted); }

.ask-photo { margin: 20px 0; background: var(--c-soft); border-radius: var(--r-l); padding: 18px; }
.ask-photo__title { font-size: 18px; }
.ask-photo__text { color: var(--c-muted); margin-bottom: 12px; }
.seo-text { color: var(--c-muted); font-size: 15px; border-top: 1px solid var(--c-line); padding-top: 16px; margin-top: 8px; }

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

.product { max-width: var(--container); margin: 0 auto; padding: 8px var(--gutter) 24px; }
.product__top { display: grid; gap: 16px; }
.gallery__main { position: relative; border-radius: var(--r-l); overflow: hidden; background: #f3eae4; aspect-ratio: 4 / 5; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery__thumb { width: 64px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; flex: 0 0 auto; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--c-accent); }
.gallery__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-muted); }

.product__title { font-size: 24px; }
.product__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.product__price { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.product__price del { font-size: 18px; color: var(--c-muted); font-weight: 500; margin-right: 8px; }

.product__form { margin: 16px 0; }
.product__cta { display: grid; gap: 8px; margin-top: 10px; }
.product__hint { font-size: 13px; color: var(--c-muted); }
.product__guarantees { display: grid; gap: 8px; margin-top: 16px; }
.guarantee { background: #fff; border-radius: var(--r-m); padding: 12px 14px; box-shadow: var(--shadow-sm); }
.guarantee strong { display: block; font-size: 15px; }
.guarantee span { color: var(--c-muted); font-size: 14px; }
.product__tabs { margin-top: 24px; }
.product__description { color: var(--c-muted); }

.addons { background: #fff; border-radius: var(--r-m); padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.addon { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 15px; }
.addon input { width: 20px; height: 20px; accent-color: var(--c-accent); }
.addon__price { margin-left: auto; font-weight: 700; }

.sticky-buy {
	position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
	display: none; align-items: center; gap: 12px;
	padding: 10px var(--gutter); background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--c-line); z-index: 45;
}
.sticky-buy.is-visible { display: flex; }
.sticky-buy__price { font-weight: 800; }
.sticky-buy .btn { flex: 1; }

/* ---------- чекаут ---------- */

.checkout-step { background: #fff; border-radius: var(--r-m); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.checkout-step__title { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.checkout-step__num { width: 26px; height: 26px; border-radius: 50%; background: var(--c-soft); color: var(--c-accent-hover); display: grid; place-items: center; font-size: 14px; }
.toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toggle__item { border: 1px solid var(--c-line); border-radius: var(--r-s); padding: 10px 12px; cursor: pointer; }
.toggle__item input { position: absolute; opacity: 0; }
.toggle__item.is-active { border-color: var(--c-accent); box-shadow: 0 0 0 2px rgba(184, 71, 95, .12); }
.toggle__title { display: block; font-weight: 700; }
.toggle__note { display: block; font-size: 13px; color: var(--c-muted); }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	min-height: var(--touch); border: 1px solid var(--c-line); border-radius: var(--r-s);
	padding: 10px 14px; font-size: 16px; background: #fff; color: var(--c-text);
}
.woocommerce form .form-row label { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.woocommerce table.shop_table { border: 0; background: #fff; border-radius: var(--r-m); }
.woocommerce .cart_totals, .woocommerce-checkout #order_review { background: #fff; border-radius: var(--r-m); padding: 14px; }

/* ---------- модальное окно ---------- */

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(42, 31, 36, .45); }
.modal__panel { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-l); padding: 20px; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 24px; cursor: pointer; color: var(--c-muted); }
.modal__title { font-size: 20px; }
.modal__note { color: var(--c-muted); font-size: 14px; }
.form__result { margin: 8px 0 0; font-size: 14px; }
.form__result.is-ok { color: #22563a; }
.form__result.is-error { color: var(--c-accent-hover); }

/* ---------- подвал и нижняя панель ---------- */

.footer { margin-top: 32px; background: #fff; border-top: 1px solid var(--c-line); }
.footer__inner { max-width: var(--container); margin: 0 auto; padding: 24px var(--gutter); display: grid; gap: 20px; }
.footer__title { font-size: 15px; color: var(--c-muted); font-weight: 700; margin-bottom: 8px; }
.footer__list { display: grid; gap: 6px; font-size: 15px; }
.footer__list a { color: var(--c-text); }
.footer__note { color: var(--c-muted); font-size: 14px; margin-top: 8px; }
.footer__phone { font-size: 20px; font-weight: 800; color: var(--c-text); display: block; margin-bottom: 8px; }
.footer__messengers { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-bg); border: 1px solid var(--c-line); font-size: 14px; font-weight: 700; color: var(--c-text); }
.chip--primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.footer__bottom { border-top: 1px solid var(--c-line); padding: 14px var(--gutter) 20px; max-width: var(--container); margin: 0 auto; font-size: 13px; color: var(--c-muted); }
.footer__requisites { margin: 4px 0 0; }

.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	display: grid; grid-template-columns: repeat(5, 1fr);
	background: rgba(255, 255, 255, .97); border-top: 1px solid var(--c-line);
	backdrop-filter: blur(8px);
}
.tabbar__item {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	font-size: 11px; color: var(--c-muted); border: 0; background: none; cursor: pointer; position: relative;
}
.tabbar__item.is-active { color: var(--c-accent); }
.cart-link__count--tabbar { position: absolute; top: 6px; right: 50%; transform: translateX(22px); }

/* ---------- страницы ---------- */

.page { max-width: 860px; margin: 0 auto; padding: 16px var(--gutter) 32px; }
.page__title { font-size: 26px; margin: 8px 0 16px; }
.prose { color: var(--c-muted); }
.prose h2 { color: var(--c-text); font-size: 20px; margin-top: 20px; }
.prose ul { list-style: disc; padding-left: 20px; color: var(--c-muted); }

.photozone { max-width: var(--container); margin: 0 auto; }
.hero--photozone { padding-top: 16px; }
.segments { display: grid; gap: 12px; }
.segment { background: #fff; border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow-sm); }
.segment__name { font-size: 18px; margin-bottom: 4px; }
.segment__price { font-weight: 800; color: var(--c-accent); }
.segment__note { color: var(--c-muted); font-size: 14px; }
.calc .form { background: #fff; border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow-sm); }
.form__row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }

/* Нижняя панель скрывается только с 900px: на планшете 768–899 остаётся «Связаться». */
@media (min-width: 900px) {
	body { padding-bottom: 0; }
	.tabbar, .sticky-buy.is-visible { display: none; }
}

@media (min-width: 768px) {
	:root { --gutter: 24px; }
	.header__logo img { width: 128px; }
	.nav { display: block; }
	.nav__list { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
	.nav__list a { color: var(--c-text); }
	.hero__title { font-size: 38px; }
	.grid--3-md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.steps__item { grid-template-columns: 34px 1fr; }
	.catalog__layout {
		grid-template-columns: 280px minmax(0, 1fr);
		column-gap: 32px;
		row-gap: 12px;
		align-items: start;
	}
	/* Панель со счётчиком и сортировкой — в правой колонке над сеткой;
	   фильтры и первая строка карточек начинаются на одной линии. */
	.catalog__panel { grid-column: 2; grid-row: 1; }
	.filters { grid-column: 1; grid-row: 2; }
	.catalog__main { grid-column: 2; grid-row: 2; }
	.filters { position: sticky; top: 84px; inset: auto; transform: none; background: transparent; padding: 0; overflow: visible; display: block; }
	.filters__head { display: none; }
	.catalog__panel .js-filters-open { display: none; }
	.filters__group { box-shadow: var(--shadow-sm); }
	.product__top { grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
	.product__cta { grid-template-columns: 1fr auto; }
	.segments { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
	.reviews__widget iframe { height: 520px; }
}

@media (min-width: 1024px) {
	.grid--3-md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero { padding-top: 36px; }
}

/* мелкая полировка WooCommerce-блоков */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: var(--r-s); background: #fff; border: 1px solid var(--c-line); }
.price del { color: var(--c-muted); }
.woocommerce ul.products { margin: 0; padding: 0; list-style: none; }

/* ---------- всплывающее уведомление ---------- */
.toast {
	position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 24px);
	transform: translate(-50%, 12px); opacity: 0;
	background: var(--c-text); color: #fff; padding: 10px 16px; border-radius: var(--r-pill);
	font-size: 14px; font-weight: 700; z-index: 80; transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--c-accent-hover); }
@media (min-width: 768px) { .toast { bottom: 24px; } }

.reviews__load {
	display: grid; gap: 4px; width: 100%; padding: 28px 16px; text-align: center;
	background: #fff; border: 1px dashed var(--c-line); border-radius: var(--r-m);
	cursor: pointer; color: var(--c-text);
}
.reviews__load strong { font-size: 16px; }
.reviews__load span { color: var(--c-muted); font-size: 14px; }

/* ---------- цены WooCommerce: скрыть служебный текст для скринридеров визуально ---------- */
.card__price .screen-reader-text,
.product__price .screen-reader-text,
.price .screen-reader-text,
.woocommerce-Price-amount + .screen-reader-text,
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.card__price ins, .product__price ins { text-decoration: none; color: var(--c-accent); }
.card__price del, .product__price del { text-decoration: line-through; color: var(--c-muted); font-weight: 500; }
.card__price ins .woocommerce-Price-amount { font-weight: 800; }

/* ===== p1.css ===== */
/* P1/P2-правки витрины: сетка 1200, бейджи, кнопки, файл, липкая цена. */

/* контейнер 1200 для плашки, шапки и контента */
.banner__inner,
.header__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.banner { padding-left: 16px; padding-right: 16px; }
.banner__inner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.header__inner { padding-left: 16px; padding-right: 16px; }
.nav__list { flex-wrap: nowrap; white-space: nowrap; }
.nav__list li { flex: 0 0 auto; }

/* бейджи: «Можно сегодня» справа сверху */
.card__badges { top: 8px; left: 8px; right: 8px; justify-content: flex-start; }
.card__today { position: absolute; top: 8px; right: 8px; }
.gallery__badges { top: 12px; left: 12px; }
/* в карточке товара «Можно сегодня» — слева сверху, как в макете */
.gallery__today { position: absolute; top: 12px; left: 12px; right: auto; }
.gallery__badges:not(:empty) ~ .gallery__today { left: auto; right: 12px; }
.badge--zone { background: var(--c-second); color: #173042; }

/* компактная кнопка «1 клик» иконкой */
.card__actions .btn--quick {
	flex: 0 0 44px; width: 44px; min-width: 44px; padding: 0;
	background: #fff; border: 1px solid var(--c-line); color: var(--c-accent);
}
.card__actions .btn--quick:hover { border-color: var(--c-accent); }
.card__from { font-weight: 800; }

/* кнопка «Прикрепить фото-пример» и превью */
.filebtn {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	min-height: var(--touch); padding: 10px 16px;
	border: 1px dashed var(--c-line); border-radius: var(--r-s);
	background: #fff; color: var(--c-text); font-weight: 700; font-size: 15px;
}
.filebtn input[type="file"] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.filebtn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.filebtn__preview {
	display: flex; align-items: center; gap: 10px; margin-top: 8px;
	padding: 6px 10px 6px 6px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-s);
}
.filebtn__preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.filebtn__preview .js-photo-name { font-size: 13px; color: var(--c-muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filebtn__clear { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--c-muted); cursor: pointer; }

/* липкая кнопка с итогом допов */
.sticky-buy__price { font-weight: 800; white-space: nowrap; }
.sticky-buy .btn { flex: 1; }
.product__price .js-addons-sum { display: block; font-size: 14px; color: var(--c-accent-hover); font-weight: 700; margin-top: 2px; }

/* счётчики в фильтрах */
.swatch__count { font-style: normal; color: var(--c-muted); font-size: 12px; }
.checkbox__count { min-width: 24px; text-align: right; }
.filters__list li.is-empty { display: none; }

/* заголовок каталога: счётчик переехал в панель над сеткой */
.catalog__found .js-found-label { font-weight: 600; }

/* фотозоны: фото в шапке страницы */
.hero--photozone {
	max-width: 1200px; margin: 0 auto; padding: 16px;
	display: grid; gap: 16px;
}
.hero--photozone .hero__media {
	border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; background: #f3eae4;
}
.hero--photozone .hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.hero--photozone { grid-template-columns: 1.1fr 1fr; align-items: center; }
	.hero--photozone .hero__media { aspect-ratio: 4 / 3; }
}

/* единая ширина контента на компьютере */
.section, .hero, .catalog, .product, .page, .photozone { max-width: 1200px; }


/* P2: превью фото только после выбора файла */
.filebtn__preview[hidden] { display: none !important; }

/* P2: сумма на липкой кнопке и на компьютере */
@media (min-width: 768px) {
	.sticky-buy.is-visible { display: flex; }
	.sticky-buy { bottom: 0; }
}

/* P2: коллаж «Хитов» в шапке главной на компьютере */
.hero__inner { display: grid; gap: 20px; }
.hero__collage { display: none; }
@media (min-width: 900px) {
	.hero__inner { grid-template-columns: 1.05fr 1fr; align-items: center; }
	.hero__collage {
		display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
		height: 320px;
	}
	.hero__collage-item { border-radius: var(--r-m); overflow: hidden; background: #f3eae4; }
	.hero__collage-item img { width: 100%; height: 100%; object-fit: cover; }
	.hero__collage-item--big { grid-row: span 2; }
}

/* P2: фотозоны — неоновая надпись не должна обрезаться на телефоне */
.hero--photozone .hero__media img { object-position: 50% 28%; }
@media (min-width: 900px) {
	.hero--photozone .hero__media img { object-position: 50% 35%; }
}

/* P2: каталог в контейнере 1200, как шапка; поля задаёт сам .catalog,
   внутренние блоки их больше не дублируют (иначе заголовок и фильтры
   уезжали к краю экрана). */
.catalog { max-width: 1200px; margin-left: auto; margin-right: auto; }


/* P2: чекаут — поля на всю ширину, без «двух колонок» WooCommerce */
.woocommerce-checkout form.checkout .form-row,
.woocommerce-checkout form.checkout .form-row-first,
.woocommerce-checkout form.checkout .form-row-last,
.woocommerce-checkout form.checkout .form-row-wide {
	float: none; width: 100%; padding: 0; margin: 0 0 12px;
}
.woocommerce-checkout form.checkout .form-row input.input-text,
.woocommerce-checkout form.checkout .form-row select,
.woocommerce-checkout form.checkout .form-row textarea { width: 100%; }
.woocommerce-checkout h3 { font-size: 17px; margin: 18px 0 10px; }
.woocommerce-checkout .woocommerce-billing-fields { background: #fff; border-radius: var(--r-m); padding: 14px; box-shadow: var(--shadow-sm); }
.woocommerce-checkout #order_review { background: #fff; border-radius: var(--r-m); padding: 14px; box-shadow: var(--shadow-sm); }
.woocommerce-checkout .woocommerce-info { font-size: 14px; }

/* P2: шаг «Контакты» — номер как у шага «Получение» */
.woocommerce-checkout .woocommerce-billing-fields > h3 {
	display: flex; align-items: center; gap: 8px; margin-top: 0;
}
.woocommerce-checkout .woocommerce-billing-fields > h3::before {
	content: "1";
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--c-soft); color: var(--c-accent-hover);
	display: grid; place-items: center; font-size: 14px; font-weight: 700;
}

/* P2: адрес — внутри шага «Получение», при самовывозе скрыт */
.checkout-step--pickup .js-address-slot .form-row { margin: 12px 0 0; }
.checkout-step--pickup.is-pickup .js-address-slot { display: none; }
.is-hidden { display: none !important; }

/* P2: на компьютере чекаут — форма слева, заказ справа */
@media (min-width: 1000px) {
	.woocommerce-checkout form.checkout {
		display: grid; grid-template-columns: minmax(0, 1fr) 360px;
		gap: 16px; align-items: start;
	}
	.woocommerce-checkout form.checkout > #customer_details,
	.woocommerce-checkout form.checkout > .checkout-step { grid-column: 1; }
	.woocommerce-checkout form.checkout > #order_review { grid-column: 2; grid-row: 1 / span 3; }
	.woocommerce-checkout form.checkout > .checkout-step { margin-bottom: 0; }
	/* заголовок «Ваш заказ» — внутри карточки, чтобы не ломал сетку */
	.woocommerce-checkout form.checkout > #order_review_heading { display: none; }
	.woocommerce-checkout form.checkout > #order_review::before {
		content: "Ваш заказ";
		display: block; font-size: 17px; font-weight: 700; margin: 0 0 10px;
	}
}


/* ---------------------------------------------------------------------------
   Шаг 5: выбор даты и интервала, зона доставки, заявка без оплаты
   ------------------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 12px; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio__box {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	min-height: var(--touch); padding: 8px 14px; border: 1px solid var(--c-line);
	border-radius: var(--r-s); background: #fff; font-weight: 700; cursor: pointer;
}
.chip-radio__box small { font-weight: 500; font-size: 12px; color: var(--c-muted); }
.chip-radio input:checked + .chip-radio__box {
	border-color: var(--c-accent); color: var(--c-accent-hover);
	box-shadow: 0 0 0 2px rgba(184, 71, 95, .12);
}
.chip-radio input:focus-visible + .chip-radio__box { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.chip-radio--sm .chip-radio__box { padding: 8px 12px; font-weight: 600; font-size: 14px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.slots__group { display: flex; flex-wrap: wrap; gap: 8px; }
/* группы интервалов и календарь скрыты, пока не chosen день: display:flex иначе перебивает [hidden] */
.slots__group[hidden],
.js-date-custom[hidden],
.js-peak-hint[hidden] { display: none !important; }
.checkout-step__hint { margin: 6px 0 0; font-size: 13px; color: var(--c-muted); }
.field--zone { margin-top: 12px; }
.checkout-step--pickup.is-pickup .js-zone-slot { display: none; }

/* заявка без оплаты: список способов оплаты не показываем */
.balono-request-only .woocommerce-checkout #payment ul.wc_payment_methods,
.balono-request-only .woocommerce-checkout #payment .payment_box,
.balono-request-only .woocommerce-checkout #payment .woocommerce-info { display: none !important; }
/* бесконечная прокрутка: счётчик, сигнальная точка, постраничная навигация для поисковиков */
.catalog__shown { margin: 12px 0 0; font-size: 13px; color: var(--c-muted); }
.js-sentinel { height: 1px; }
.js .pagination { display: none; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--c-line); border-radius: var(--r-s); text-decoration: none; color: inherit; }
.pagination .current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
/* карта зон доставки: Leaflet + OpenStreetMap, ленивая загрузка */
.delivery-map { margin-top: 20px; }
.delivery-map__canvas {
	height: 420px;
	border-radius: var(--r-m);
	border: 1px solid var(--c-line);
	background: #eef1f3;
	z-index: 0;
}
.delivery-map.is-ready .delivery-map__canvas { background: #eef1f3; }
.delivery-map.is-loading .delivery-map__canvas { background: linear-gradient(90deg, #f3eeea, #fbf6f1, #f3eeea); }
.delivery-map__start { margin-top: 10px; }
.delivery-map__start[hidden] { display: none !important; }
.delivery-map__state { margin: 8px 0 0; font-size: 13px; color: var(--c-muted); }
.delivery-map__popup strong { display: block; margin-bottom: 2px; }
.delivery-map .leaflet-container { font: inherit; }
.delivery-map .leaflet-control-attribution { font-size: 11px; }

/* строка «Доставка: место — цена» и проверка адреса над кнопкой отправки */
.balono-delivery-summary {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-radius: var(--r-s);
	background: #fdf2f6;
	font-weight: 600;
	font-size: 15px;
}
.balono-delivery-summary[hidden] { display: none !important; }
.balono-address-check {
	margin: 0 0 10px;
	padding: 10px 12px;
	border: 1px solid #dba617;
	border-radius: var(--r-s);
	background: #fffbe6;
	font-size: 14px;
}
.balono-address-check__text { margin: 0 0 8px; }
.balono-address-check__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn--sm { padding: 6px 12px; font-size: 14px; min-height: 0; }

/* пометка под списком: место выбрано вручную, цену надо проверить */
.field--zone .js-zone-manual-note {
	display: block;
	margin-top: 4px;
	padding: 6px 10px;
	border-radius: var(--r-s);
	background: #fff6e6;
	color: #7a5a12;
	font-size: 13px;
}
.field--zone .js-zone-manual-note[hidden] { display: none !important; }

/* карта-подсказка под списком мест: показывает район, но ничего не выбирает */
.zone-map {
	margin-top: 12px;
	border-radius: var(--r-m, 12px);
	overflow: hidden;
	background: #f4f5f8;
}
.zone-map__canvas {
	height: 260px;
	width: 100%;
	background: #eef0f4;
}
.zone-map__canvas.leaflet-container { font: inherit; }
.zone-map__note {
	margin: 0;
	padding: 8px 12px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--c-muted, #6b7280);
	background: #fff;
}
.zone-map img.leaflet-tile { max-width: none; }
.zone-map .leaflet-control-attribution {
	font-size: 10px;
	background: rgba(255, 255, 255, 0.82);
}
@media (max-width: 599px) {
	.zone-map__canvas { height: 220px; }
	.zone-map__note { padding: 7px 10px; font-size: 12px; }
}

/* цены зон таблицей под картой: район — цена, сгруппировано по цене */
.delivery-prices { margin-top: 24px; }
.delivery-prices__title { margin: 0 0 10px; font-size: 20px; }
.delivery-prices__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.delivery-prices__table th,
.delivery-prices__table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
	vertical-align: top;
}
/* Названия районов и цены читаются как основной текст: серый оставляем
   только шапке и строке «стоимость подтвердит менеджер». */
.delivery-prices__table tbody th,
.delivery-prices__table tbody td {
	color: var(--c-text);
}
.delivery-prices__table thead th {
	padding: 8px 12px;
	border-bottom: 2px solid var(--c-line);
	color: var(--c-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.delivery-prices__table tbody th {
	padding-top: 16px;
	background: #fdf2f6;
	font-size: 14px;
}
.delivery-prices__table td:last-child {
	white-space: nowrap;
	font-weight: 600;
}
.delivery-prices__table td:last-child.is-missing {
	color: var(--c-muted);
	font-weight: 400;
	white-space: normal;
}
.delivery-prices__hint { margin: 12px 0 0; font-size: 13px; color: var(--c-muted); }
@media (max-width: 599px) {
	.delivery-map__canvas { height: 340px; }
}
/* уведомление о cookie: строка внизу, без блокировки страницы */
.cookie-bar {
	position: fixed;
	left: 10px;
	right: 10px;
	bottom: 64px;
	z-index: 70;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--c-line);
	border-radius: var(--r-m);
	box-shadow: 0 8px 24px rgba(42, 31, 36, .12);
}
.cookie-bar__text { margin: 0; font-size: 12px; line-height: 1.35; color: var(--c-muted); }
.cookie-bar__text a { color: var(--c-accent-hover); }
.cookie-bar__ok { flex: 0 0 auto; min-height: 36px; padding: 6px 14px; font-size: 13px; }
/* display: flex выше перебивал атрибут hidden — плашка не закрывалась по «Понятно» */
.cookie-bar[hidden] { display: none !important; }
body.has-cookie-bar .sticky-buy { bottom: 136px; }
@media (min-width: 768px) {
	.cookie-bar { left: 16px; right: auto; max-width: 560px; bottom: 16px; }
	body.has-cookie-bar .sticky-buy { bottom: 88px; }
}

/* Шапка: телефон и мессенджеры (пункт 2). На телефоне скрыты — там нижняя панель «Связаться». */
.header__phone { display: none; }
.header__messengers { display: none; }
.header__messenger { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--c-ink); background: transparent; border: 1px solid rgba(42, 31, 36, .14); transition: color .18s, border-color .18s, background-color .18s; }
.header__messenger svg { display: block; }
.header__messenger:hover { background: rgba(42, 31, 36, .04); }
.header__messenger--max:hover { color: #7b61ff; border-color: #7b61ff; }
.header__messenger--tg:hover { color: #229ed9; border-color: #229ed9; }
.header__messenger--wa:hover { color: #25d366; border-color: #25d366; }
@media (min-width: 768px) {
  .header__phone { display: inline-flex; align-items: center; margin-right: 10px; font-weight: 800; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
  .header__phone:hover { color: var(--c-accent); }
}
@media (min-width: 1100px) {
  .header__messengers { display: inline-flex; gap: 6px; margin-right: 6px; }
}

/* Нижняя панель: «Связаться» открывает шторку с телефоном и мессенджерами. */
.contact-pop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(42, 31, 36, .18); padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.contact-pop[hidden] { display: none; }
.contact-pop__title { margin: 0; font-weight: 800; font-size: 18px; }
.contact-pop .footer__phone { font-size: 20px; font-weight: 800; color: var(--c-accent); text-decoration: none; }
.contact-pop__messengers { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-pop__close { justify-self: start; }
@media (min-width: 900px) { .contact-pop { display: none !important; } }
/* Умный подборщик: свёрнутая карточка (заголовок + подзаголовок + стрелка) → разворот. */
.picker {
	max-width: 640px; margin: 18px var(--gutter) 0; padding: 0;
	overflow: hidden;
}
.picker__title { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
.picker__toggle {
	display: flex; align-items: center; gap: 12px; width: 100%;
	padding: 14px 16px; border: 0; border-radius: var(--r-l);
	background: transparent; color: var(--c-text); text-align: left; cursor: pointer;
}
.picker__toggle:hover { background: rgba(184, 71, 95, .05); }
.picker__toggle:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -3px; }
.picker__toggle-text { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.picker__toggle-title { font-size: 17px; font-weight: 800; line-height: 1.2; }
.picker__toggle-hint { font-size: 13px; line-height: 1.25; color: var(--c-muted); }
.picker__toggle-arrow {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 30px; height: 30px; border-radius: 50%; color: var(--c-accent);
	background: rgba(184, 71, 95, .1); transition: transform .25s ease, background-color .18s;
}
.picker__toggle-arrow::before {
	content: ''; width: 8px; height: 8px; margin-top: -4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
}
.picker__toggle:hover .picker__toggle-arrow { background: rgba(184, 71, 95, .18); }
.picker.is-open .picker__toggle-arrow { transform: rotate(180deg); }

.picker__panel { overflow: hidden; transition: max-height .25s ease, opacity .25s ease; }
.picker__panel[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
	.picker__panel, .picker__toggle-arrow { transition: none !important; }
}

/* шаги плотнее: без пустых полей по бокам, на ПК подпись и чипсы в одну строку */
.picker__form { padding: 0 16px; }
.picker__step { display: grid; gap: 6px; margin-bottom: 10px; }
.picker__step[hidden] { display: none; }
.picker__step .field__label { margin: 0; font-size: 13px; }
.chips--wrap { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip-pick { border: 1px solid rgba(42,31,36,.16); background: #fff; border-radius: 999px; padding: 8px 13px; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; color: var(--c-text); transition: background-color .15s, border-color .15s, color .15s; }
.chip-pick:hover { border-color: var(--c-accent); }
.chip-pick:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.chip-pick.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.chip-pick small { opacity: .7; margin-left: 4px; }
.picker__form .btn { margin-top: 4px; }
.picker__more { margin: 10px 0 0; font-size: 14px; color: var(--c-muted); }
.picker__more a { color: var(--c-accent); font-weight: 600; }

/* «Свернуть»: мягкая текстовая кнопка под формой */
.picker__foot { padding: 8px 16px 12px; display: flex; justify-content: flex-start; }
.picker__collapse {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 13px; font-weight: 700; color: var(--c-muted);
}
.picker__collapse::before {
	content: ''; width: 7px; height: 7px; margin-top: 4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(-135deg);
}
.picker__collapse:hover { color: var(--c-accent); }
.picker__collapse:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 6px; }

@media (min-width: 768px) {
	.picker { margin: 20px auto 0; }
	.picker__toggle { padding: 16px 20px; }
	.picker__form { padding: 0 20px; }
	.picker__step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
	.picker__step .field__label { flex: 0 0 auto; min-width: 68px; }
	.picker__step .js-chips { flex: 1 1 320px; min-width: 0; }
	.picker__foot { padding: 6px 20px 12px; }
}

/* ПК: плотная раскладка — отступ между шагами 8 px, подпись и чипсы в одну строку,
   панель шире (720 px), чтобы чипсы не переносились, а по бокам не оставалось пустых полей. */
@media (min-width: 1100px) {
	.picker { max-width: 720px; margin-top: 14px; }
	.picker__toggle { padding: 12px 20px; }
	.picker__form { padding: 0 20px; }
	.picker__step { margin-bottom: 8px; gap: 8px 10px; }
	.picker__step .field__label { min-width: 64px; }
	.picker__step .js-chips { flex: 1 1 auto; }
	.picker__form .btn { margin-top: 2px; }
	.picker__more { margin: 8px 0 0; }
	.picker__foot { padding: 4px 20px 8px; }
}

/* Отзывы: плашка и вкладки (сторонние iframe только по клику). */
.reviews__card { background: #fff; border-radius: var(--r-l); padding: 16px; box-shadow: var(--shadow-sm); }
.reviews__panel { margin-top: 14px; }
.reviews__tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.reviews__tab { border: 1px solid rgba(42,31,36,.16); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.reviews__tab.is-active { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.reviews__frame iframe { display: block; width: 100%; height: 520px; border: 0; border-radius: 12px; background: #f5f2ef; }
.reviews__note { margin: 8px 0 12px; font-size: 14px; }
.reviews__hint { margin: 10px 0 0; font-size: 12px; color: var(--c-muted); }
@media (max-width: 599px) { .reviews__frame iframe { height: 600px; } }

/* ===== motion.css ===== */
/* ---------------------------------------------------------------------------
   motion.css — отклик интерфейса (спецификация владельца от 24.10.2026).
   Правила: 200 мс, cubic-bezier(.2,.7,.3,1), анимируем только transform и opacity,
   ничего не меняет размеры и раскладку, при prefers-reduced-motion остаются только цвета.
   ------------------------------------------------------------------------ */

:root {
	--motion-dur: 200ms;
	--motion-ease: cubic-bezier(.2, .7, .3, 1);
	--c-accent-strong: #8F3248;
	--c-accent-soft: #FBE3E8;
	--c-swatch-ring: #E3768C;
	--c-tip: #2A1F24;
}

/* ---------- 1. Кнопки ---------- */
.btn--primary {
	transition: transform var(--motion-dur) var(--motion-ease),
		box-shadow var(--motion-dur) var(--motion-ease),
		background-color var(--motion-dur) var(--motion-ease);
}
@media (hover: hover) {
	.btn--primary:hover {
		background: var(--c-accent-strong);
		transform: translateY(-2px);
		box-shadow: 0 10px 22px rgba(184, 71, 95, .28);
	}
}
.btn--primary:active {
	transform: translateY(0) scale(.97);
	box-shadow: 0 4px 10px rgba(184, 71, 95, .2);
}

.btn--ghost,
.btn--quick,
.btn--oneclick {
	transition: transform var(--motion-dur) var(--motion-ease),
		background-color var(--motion-dur) var(--motion-ease),
		border-color var(--motion-dur) var(--motion-ease),
		color var(--motion-dur) var(--motion-ease);
}
@media (hover: hover) {
	.btn--ghost:hover,
	.btn--quick:hover,
	.btn--oneclick:hover {
		background: var(--c-accent-soft);
		border-color: #B8475F;
		color: #B8475F;
	}
}
.btn--ghost:active,
.btn--quick:active,
.btn--oneclick:active { transform: scale(.97); }

/* кольцо фокуса для клавиатуры — у всех интерактивных элементов */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #B8475F;
	outline-offset: 2px;
}

/* ---------- 2. Меню в шапке ---------- */
.nav__list > li > a {
	position: relative;
	display: inline-block;
	transition: color var(--motion-dur) var(--motion-ease);
}
.nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: #B8475F;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform var(--motion-dur) var(--motion-ease);
}
@media (hover: hover) {
	.nav__list > li > a:hover { color: #B8475F; }
	.nav__list > li > a:hover::after { transform: scaleX(1); }
}
.nav__list > li.current-menu-item > a::after,
.nav__list > li.current-menu-ancestor > a::after,
.nav__list > li.current_page_item > a::after,
.nav__list > li.current_page_ancestor > a::after { transform: scaleX(1); }

/* иконки шапки: круглая подложка при наведении, сжатие при нажатии */
.icon-btn { transition: background-color var(--motion-dur) var(--motion-ease), transform var(--motion-dur) var(--motion-ease); border-radius: 50%; }
@media (hover: hover) {
	.icon-btn:hover { background: var(--c-accent-soft); }
}
.icon-btn:active { transform: scale(.92); }

/* ---------- 3. Карточка товара: подъём + увеличение фото (вариант A) ----------
   Наклон за курсором убран по решению владельца (28.10): на крупных карточках
   перспектива усиливала проекцию, карточка выглядела повёрнутой на 10–15°
   и наезжала на колонку фильтров. Теперь только подъём и зум фото. */
.card,
.tile {
	transition: transform var(--motion-dur) var(--motion-ease),
		box-shadow var(--motion-dur) var(--motion-ease);
}
/* Фото внутри рамки: зум обрезается скруглениями рамки. */
.card__media,
.tile__media {
	overflow: hidden;
}
.card__media img,
.tile__media img {
	transition: transform 450ms var(--motion-ease);
	transform-origin: center;
}
@media (hover: hover) and (pointer: fine) {
	.card:hover,
	.tile:hover {
		transform: translateY(-4px);
		box-shadow: 0 14px 30px rgba(42, 31, 36, .12);
	}
	.card:hover .card__media img,
	.tile:hover .tile__media img {
		transform: scale(1.05);
	}
}
/* Телефон: наведение не используется, при нажатии карточка чуть сжимается. */
@media (hover: none), (pointer: coarse) {
	.card:active,
	.tile:active {
		transform: scale(.98);
	}
}
@media (prefers-reduced-motion: reduce) {
	.card__media img,
	.tile__media img {
		transition: none;
	}
}
/* «Уменьшение движения»: подъём и зум не включаем совсем. */
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
	.card:hover,
	.tile:hover {
		transform: none;
	}
	.card:hover .card__media img,
	.tile:hover .tile__media img {
		transform: none;
	}
}

/* ---------- 4. Кружки цвета ---------- */
.swatch {
	position: relative;
	transition: transform var(--motion-dur) var(--motion-ease),
		box-shadow var(--motion-dur) var(--motion-ease);
}
.swatch__tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 5;
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--c-tip);
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 4px);
	transition: opacity var(--motion-dur) var(--motion-ease),
		transform var(--motion-dur) var(--motion-ease);
}
.swatch__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -4px;
	border: 4px solid transparent;
	border-top-color: var(--c-tip);
}
@media (hover: hover) and (pointer: fine) {
	.swatch:hover { transform: scale(1.1); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-swatch-ring); }
	.swatch:hover .swatch__tip { opacity: 1; transform: translate(-50%, 0); }
}
.swatch:active { transform: scale(.95); }
.swatch.is-selected,
.swatch:has(input:checked) { box-shadow: 0 0 0 2px #B8475F; }
@media (hover: hover) and (pointer: fine) {
	.swatch.is-selected:hover,
	.swatch:has(input:checked):hover { box-shadow: 0 0 0 2px #B8475F, 0 0 0 4px var(--c-swatch-ring); }
}
/* на телефоне подсказок нет — название выводим текстом рядом с заголовком */
@media (hover: none), (pointer: coarse) {
	.swatch__tip { display: none !important; }
}
.swatch-current { display: none; font-size: 13px; color: var(--c-muted); }
@media (hover: none), (pointer: coarse) {
	.swatch-current { display: inline; margin-left: 6px; }
}

/* ---------- 5. Добавление в корзину: шарик и счётчик ---------- */
.cart-link__count { display: inline-block; transform-origin: center; }
.cart-link__count.is-bouncing { animation: cart-bounce 420ms var(--motion-ease); }
@keyframes cart-bounce {
	0% { transform: scale(1); }
	35% { transform: scale(1.45); }
	100% { transform: scale(1); }
}

.balloon-fly {
	position: fixed;
	z-index: 9999;
	width: 26px;
	height: 30px;
	border-radius: 50% 50% 48% 48%;
	background: radial-gradient(circle at 35% 30%, #f6b9c6 0%, #E3768C 55%, #c95c72 100%);
	box-shadow: inset -2px -3px 6px rgba(0, 0, 0, .12);
	pointer-events: none;
	will-change: transform, opacity;
}
.balloon-fly::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 1px;
	height: 22px;
	background: rgba(42, 31, 36, .35);
	transform: translateX(-.5px);
}
.balloon-fly::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	background: #E3768C;
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.balloon-fly.is-flying { animation: balloon-fly 1300ms var(--motion-ease) forwards; }
@keyframes balloon-fly {
	0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
	30% { transform: translate(12px, -46px) rotate(6deg); opacity: 1; }
	60% { transform: translate(-8px, -96px) rotate(-5deg); opacity: .95; }
	100% { transform: translate(6px, -150px) rotate(3deg); opacity: 0; }
}

/* состояние кнопки после добавления */
.btn.is-added { background: #2E7D4F !important; box-shadow: none !important; transform: none !important; }

/* ---------- 6. Появление карточек каталога ---------- */
.grid.is-loading .card { opacity: .5; transition: opacity var(--motion-dur) var(--motion-ease); }
.card.is-entering { opacity: 0; transform: translateY(10px); }
.card.is-entered {
	opacity: 1;
	transform: none;
	transition: opacity 380ms var(--motion-ease), transform 380ms var(--motion-ease);
}

/* ---------- 7. Всплытие блоков при прокрутке ---------- */
.will-reveal { opacity: 0; transform: translateY(10px); }
.is-revealed {
	opacity: 1;
	transform: none;
	transition: opacity 500ms var(--motion-ease), transform 500ms var(--motion-ease);
}

/* ---------- «уменьшение движения»: убираем всё, кроме цвета ---------- */
@media (prefers-reduced-motion: reduce) {
	.btn--primary,
	.btn--ghost,
	.btn--quick,
	.btn--oneclick,
	.card,
	.swatch,
	.icon-btn,
	.nav__list > li > a,
	.nav__list > li > a::after,
	.swatch__tip {
		transition-property: color, background-color, border-color, box-shadow !important;
	}
	.btn--primary:hover,
	.btn--primary:active,
	.btn--ghost:active,
	.btn--quick:active,
	.btn--oneclick:active,
	.card,
	.card:active,
	.tile,
	.tile:active,
	.swatch,
	.swatch:hover,
	.swatch:active,
	.icon-btn:active { transform: none !important; }
	.nav__list > li > a::after { transition: none !important; }
	.balloon-fly { display: none !important; }
	.cart-link__count.is-bouncing { animation: none !important; }
	.card.is-entering,
	.card.is-entered,
	.will-reveal,
	.is-revealed { opacity: 1 !important; transform: none !important; transition: none !important; }
	.swatch__tip { display: none !important; }
}

/* ===== cart.css ===== */
/* =========================================================================
   Корзина и блок промокода в оформлении — по утверждённым макетам
   docs/design/cart-checkout-2026-10-31/ (корзина — вариант B «карточка-строка»,
   промокод — вариант A «поле с кнопкой справа»). Только вид: логика WooCommerce
   не меняется, все формы и nonce остаются штатными.
   ========================================================================= */

/* ---------- 1. Корзина: раскладка «список + итоги» ---------- */

.woocommerce .cart-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 20px;
	align-items: start;
}

.woocommerce .cart-main {
	min-width: 0;
}

.woocommerce .cart-aside {
	position: sticky;
	top: 64px;
	min-width: 0;
}

/* Таблица превращается в список карточек: строка — grid, ячейки — блоки. */
.woocommerce table.shop_table.cart {
	display: block;
	width: 100%;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
	border-radius: 0;
	overflow: visible;
}

.woocommerce table.shop_table.cart thead {
	display: none;
}

.woocommerce table.shop_table.cart tbody {
	display: grid;
	gap: 12px;
}

.woocommerce table.shop_table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) auto;
	grid-template-areas:
		'thumb name price'
		'thumb name price'
		'thumb qty remove';
	column-gap: 16px;
	row-gap: 6px;
	padding: 14px 16px;
	background: var(--c-card, #fff);
	border: 0;
	border-radius: var(--r-m, 16px);
	box-shadow: var(--shadow-sm, 0 2px 10px rgba(42, 31, 36, .06));
	transition: box-shadow .15s ease, transform .15s ease;
}

.woocommerce table.shop_table.cart tr.cart_item:hover {
	box-shadow: var(--shadow, 0 10px 30px rgba(42, 31, 36, .07));
	transform: translateY(-1px);
}

.woocommerce table.shop_table.cart tr.cart_item td {
	display: block;
	padding: 0;
	border: 0;
	vertical-align: top;
}

.woocommerce table.shop_table.cart td.product-thumbnail {
	grid-area: thumb;
}

.woocommerce table.shop_table.cart td.product-thumbnail img {
	display: block;
	width: 112px;
	height: 112px;
	object-fit: cover;
	border-radius: var(--r-s, 12px);
}

.woocommerce table.shop_table.cart td.product-name {
	grid-area: name;
	align-self: start;
	min-width: 0;
}

.woocommerce table.shop_table.cart td.product-name > a {
	display: inline-block;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.22;
	color: var(--c-text, #2A1F24);
	text-decoration: none;
}

.woocommerce table.shop_table.cart td.product-name > a:hover {
	color: var(--c-accent, #B8475F);
}

/* Атрибуты позиции — чипами. */
.woocommerce table.shop_table.cart td.product-name dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 0;
}

.woocommerce table.shop_table.cart td.product-name dl.variation dt,
.woocommerce table.shop_table.cart td.product-name dl.variation dd {
	margin: 0;
	padding: 3px 9px;
	background: var(--c-bg, #FBF6F1);
	border: 1px solid var(--c-line, #EADFD8);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: var(--c-muted, #6B5960);
}

.woocommerce table.shop_table.cart td.product-name dl.variation dt {
	border-right: 1px solid var(--c-line, #EADFD8);
}

.woocommerce table.shop_table.cart td.product-name dl.variation dt::after {
	content: ':';
	margin-left: 1px;
}

.woocommerce table.shop_table.cart td.product-name p.backorder_notification {
	margin: 6px 0 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--c-accent-hover, #8F3248);
}

/* Цена за штуку — служебное поле: на экран не выводим, из него считается «× N».
   Селектор с `tr.cart_item` нужен, чтобы не проиграть правилу `td { display:block }` ниже. */
.woocommerce table.shop_table.cart tr.cart_item td.product-price {
	display: none;
}

.woocommerce table.shop_table.cart td.product-subtotal {
	grid-area: price;
	justify-self: end;
	text-align: right;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.1;
	white-space: nowrap;
}

.woocommerce table.shop_table.cart td.product-subtotal .amount {
	font-weight: 800;
}

.cart-card__calc {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 700;
	color: var(--c-muted, #6B5960);
	white-space: nowrap;
}

/* Количество: «−/+» вокруг штатного input.qty (добавляет assets/js/cart-ui.js). */
.woocommerce table.shop_table.cart td.product-quantity {
	grid-area: qty;
	align-self: end;
}

.woocommerce table.shop_table.cart .quantity {
	display: inline-flex;
	align-items: center;
	height: 40px;
	border: 1px solid var(--c-line, #EADFD8);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.woocommerce table.shop_table.cart .quantity .qty {
	width: 46px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.woocommerce table.shop_table.cart .quantity .qty::-webkit-outer-spin-button,
.woocommerce table.shop_table.cart .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.woocommerce table.shop_table.cart .quantity .qty:focus-visible {
	outline: 2px solid var(--c-soft, #FBE3E8);
	outline-offset: -2px;
}

.cart-qty__btn {
	width: 36px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-muted, #6B5960);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: color .15s ease, background .15s ease;
}

.cart-qty__btn:hover {
	color: var(--c-accent, #B8475F);
	background: var(--c-soft, #FBE3E8);
}

.cart-qty__btn:disabled {
	opacity: .35;
	cursor: default;
	background: transparent;
	color: var(--c-muted, #6B5960);
}

/* «Удалить» — штатная ссылка WooCommerce, но подписью, а не «×». */
.woocommerce table.shop_table.cart td.product-remove {
	grid-area: remove;
	justify-self: end;
	align-self: end;
}

.woocommerce table.shop_table.cart td.product-remove a.remove.cart-card__remove {
	display: inline-block;
	width: auto;
	height: auto;
	line-height: 1.6;
	padding: 6px 2px;
	border-radius: 0;
	background: transparent;
	color: var(--c-muted, #6B5960);
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.woocommerce table.shop_table.cart td.product-remove a.remove.cart-card__remove:hover,
.woocommerce table.shop_table.cart td.product-remove a.remove.cart-card__remove:focus {
	background: transparent;
	color: var(--c-accent, #B8475F);
}

/* Служебная строка формы: промокод и обновление корзины. */
.woocommerce table.shop_table.cart tr .actions.cart-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
}

.cart-coupon {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 260px;
	min-width: 0;
}

/* Кнопка обновления остаётся в форме для WooCommerce, но не занимает место:
   количество обновляется само при нажатии «−/+» (assets/js/cart-ui.js). */
.woocommerce table.shop_table.cart button.cart-update {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- 2. Итоги корзины ---------- */

.woocommerce .cart-collaterals {
	float: none;
	width: 100%;
}

.woocommerce .cart-collaterals .cart_totals {
	float: none;
	width: 100%;
	padding: 18px;
	background: var(--c-card, #fff);
	border-radius: var(--r-m, 16px);
	box-shadow: var(--shadow-sm, 0 2px 10px rgba(42, 31, 36, .06));
}

.woocommerce .cart-collaterals .cart_totals h2 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 800;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table {
	display: block;
	border: 0;
	background: transparent;
	border-radius: 0;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table tbody,
.woocommerce .cart-collaterals .cart_totals table.shop_table tfoot {
	display: block;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table tr {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border: 0;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table th,
.woocommerce .cart-collaterals .cart_totals table.shop_table td {
	display: block;
	width: auto;
	padding: 0;
	border: 0;
	font-size: 15px;
	color: var(--c-muted, #6B5960);
	background: transparent;
}

.woocommerce .cart-collaterals .cart_totals table.shop_table td {
	text-align: right;
	color: var(--c-text, #2A1F24);
	font-weight: 700;
}

.woocommerce .cart-collaterals .cart_totals tr.order-total {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--c-line, #EADFD8);
}

.woocommerce .cart-collaterals .cart_totals tr.order-total th {
	font-size: 17px;
	color: var(--c-text, #2A1F24);
}

.woocommerce .cart-collaterals .cart_totals tr.order-total td,
.woocommerce .cart-collaterals .cart_totals tr.order-total td .amount {
	font-size: 22px;
	font-weight: 800;
}

.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout {
	padding: 14px 0 0;
}

.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button {
	display: block;
	padding: 13px 18px;
	border-radius: var(--r-s, 12px);
	background: var(--c-accent, #B8475F);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background .15s ease;
}

.woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
	background: var(--c-accent-hover, #8F3248);
	color: #fff;
}

.woocommerce .cart-collaterals .cart_totals .continue-shopping,
.woocommerce .cart-collaterals .cart_totals a.continue {
	display: block;
	margin-top: 12px;
	text-align: center;
	font-size: 14px;
	color: var(--c-muted, #6B5960);
	text-decoration: none;
}

/* ---------- 3. Пустая корзина ---------- */

.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart .cart-empty {
	margin: 0;
	padding: 36px 20px 8px;
	background: var(--c-card, #fff);
	border: 0;
	border-radius: var(--r-m, 16px) var(--r-m, 16px) 0 0;
	box-shadow: var(--shadow-sm, 0 2px 10px rgba(42, 31, 36, .06));
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	color: var(--c-text, #2A1F24);
}

.woocommerce-cart .cart-empty.woocommerce-info::before,
.woocommerce-cart .cart-empty::before {
	display: none;
}

.woocommerce-cart .return-to-shop {
	margin: 0 0 24px;
	padding: 0 20px 32px;
	background: var(--c-card, #fff);
	border-radius: 0 0 var(--r-m, 16px) var(--r-m, 16px);
	box-shadow: var(--shadow-sm, 0 2px 10px rgba(42, 31, 36, .06));
	text-align: center;
}

.woocommerce-cart .return-to-shop a.button {
	display: inline-block;
	padding: 11px 18px;
	border-radius: var(--r-s, 12px);
	border: 1px solid var(--c-line, #EADFD8);
	background: #fff;
	color: var(--c-text, #2A1F24);
	font-weight: 700;
	text-decoration: none;
}

/* ---------- 4. Промокод в оформлении: поле с кнопкой справа ---------- */

.woocommerce .order-review .coupon,
.woocommerce .coupon--inline {
	margin: 0 0 14px;
}

.woocommerce .coupon__label,
.woocommerce .order-review .coupon__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--c-muted, #6B5960);
}

.woocommerce .coupon__group {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 44px;
	padding: 4px 4px 4px 14px;
	background: var(--c-card, #fff);
	border: 1px solid var(--c-line, #EADFD8);
	border-radius: var(--r-s, 12px);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.woocommerce .coupon__group:hover {
	border-color: #DCCFC7;
}

.woocommerce .coupon__group:focus-within {
	border-color: var(--c-accent, #B8475F);
	box-shadow: 0 0 0 3px var(--c-soft, #FBE3E8);
}

.woocommerce .coupon__group--error {
	border-color: var(--c-accent-hover, #8F3248);
	box-shadow: none;
}

.woocommerce .coupon__group input.coupon__input,
.woocommerce .coupon__group input#coupon_code {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--c-text, #2A1F24);
	box-shadow: none;
}

.woocommerce .coupon__group input.coupon__input::placeholder,
.woocommerce .coupon__group input#coupon_code::placeholder {
	color: #A7949A;
}

.woocommerce .coupon__group button.coupon__apply,
.woocommerce .coupon__group .coupon__apply {
	min-height: 36px;
	padding: 6px 14px;
	border: 1px solid var(--c-line, #EADFD8);
	border-radius: var(--r-s, 12px);
	background: var(--c-card, #fff);
	color: var(--c-text, #2A1F24);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease;
}

.woocommerce .coupon__group button.coupon__apply:hover:not([disabled]) {
	border-color: var(--c-accent, #B8475F);
	color: var(--c-accent, #B8475F);
}

.woocommerce .coupon__group button.coupon__apply[disabled] {
	opacity: .45;
	cursor: default;
	color: var(--c-muted, #6B5960);
}

.woocommerce .coupon__msg {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 700;
}

.woocommerce .coupon__msg--hint {
	color: var(--c-muted, #6B5960);
	font-weight: 600;
}

.woocommerce .coupon__msg--err {
	color: var(--c-accent-hover, #8F3248);
}

.woocommerce .coupon__msg--ok {
	color: #22563a;
}

.woocommerce .coupon__applied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	background: #EDF7F0;
	border: 1px solid #CFE8D8;
	border-radius: var(--r-s, 12px);
	font-size: 14px;
	font-weight: 700;
	color: #22563a;
}

.woocommerce .coupon__applied .coupon__remove,
.woocommerce .coupon__applied a.woocommerce-remove-coupon {
	border: 0;
	background: transparent;
	color: #22563a;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 5. Карточка «Ваш заказ» в оформлении ---------- */

.woocommerce-checkout .order-review {
	display: block;
}

.woocommerce-checkout .order-review table.shop_table {
	display: block;
	width: 100%;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	border-radius: 0;
}

.woocommerce-checkout .order-review table.shop_table thead,
.woocommerce-checkout .order-review table.shop_table tbody,
.woocommerce-checkout .order-review table.shop_table tfoot {
	display: block;
}

.woocommerce-checkout .order-review table.shop_table tr {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 7px 0;
	border: 0;
}

.woocommerce-checkout .order-review table.shop_table th,
.woocommerce-checkout .order-review table.shop_table td {
	display: block;
	width: auto;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}

.woocommerce-checkout .order-review table.shop_table td {
	text-align: right;
	font-weight: 700;
}

.woocommerce-checkout .order-review__items thead tr {
	padding: 0 0 6px;
	border-bottom: 1px solid var(--c-line, #EADFD8);
}

.woocommerce-checkout .order-review__items thead th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--c-muted, #6B5960);
}

.woocommerce-checkout .order-review__items tbody tr {
	padding: 8px 0;
	align-items: flex-start;
}

.woocommerce-checkout .order-review__items td.product-name {
	font-size: 14px;
	color: var(--c-text, #2A1F24);
	line-height: 1.35;
	padding-right: 8px;
}

.woocommerce-checkout .order-review__items td.product-total {
	white-space: nowrap;
}

.woocommerce-checkout .order-review__items .product-quantity {
	font-weight: 700;
	color: var(--c-muted, #6B5960);
}

.woocommerce-checkout .order-review__items dl.variation {
	margin: 4px 0 0;
	font-size: 12px;
	color: var(--c-muted, #6B5960);
}

.woocommerce-checkout .order-review__totals {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--c-line, #EADFD8);
}

.woocommerce-checkout .order-review__totals tr.cart-discount th,
.woocommerce-checkout .order-review__totals tr.cart-discount td {
	color: #22563a;
}

.woocommerce-checkout .order-review__totals tr.order-total {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--c-line, #EADFD8);
}

.woocommerce-checkout .order-review__totals tr.order-total th {
	font-size: 17px;
	font-weight: 700;
	color: var(--c-text, #2A1F24);
}

.woocommerce-checkout .order-review__totals tr.order-total td .amount {
	font-size: 22px;
	font-weight: 800;
}

/* ---------- 6. Узкие экраны ---------- */

@media (max-width: 1024px) {
	.woocommerce .cart-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce .cart-aside {
		position: static;
	}
}

@media (max-width: 640px) {
	.woocommerce table.shop_table.cart tr.cart_item {
		grid-template-columns: 88px minmax(0, 1fr) auto;
		column-gap: 12px;
		padding: 12px;
	}

	.woocommerce table.shop_table.cart td.product-thumbnail img {
		width: 88px;
		height: 88px;
	}

	.woocommerce table.shop_table.cart td.product-name > a {
		font-size: 15px;
	}

	.woocommerce table.shop_table.cart td.product-subtotal {
		font-size: 17px;
	}

	.woocommerce table.shop_table.cart td.product-name dl.variation dt,
	.woocommerce table.shop_table.cart td.product-name dl.variation dd {
		padding: 2px 8px;
		font-size: 11px;
	}

	.woocommerce table.shop_table.cart .quantity {
		height: 36px;
	}

	.woocommerce table.shop_table.cart .quantity .qty {
		width: 40px;
		height: 34px;
		font-size: 14px;
	}

	.cart-qty__btn {
		width: 32px;
		height: 34px;
		font-size: 16px;
	}

	.woocommerce table.shop_table.cart td.product-remove a.remove.cart-card__remove {
		font-size: 12px;
	}

	.woocommerce .cart-collaterals .cart_totals {
		padding: 14px;
	}

	.woocommerce .coupon__group {
		min-height: 46px;
	}

	.woocommerce .coupon__group button.coupon__apply {
		min-height: 40px;
	}
}
