/* ==========================================================================
   Штолле — theme styles. Tokens from DESIGN.md.
   Sections: tokens · base · frame (sidebar/topbar) · buttons/pills · hero ·
   category cards · features · product grid & card · chips/steppers · archive ·
   product page · pages · cart drawer · city modal · Woo blocks theming ·
   thank-you page · mobile
   ========================================================================== */

:root {
	--bg: #FBF6EF;
	--bg-sidebar: #FFFCF7;
	--surface: #FFFFFF;
	--surface-warm: #F4EBDF;
	--surface-peach: #F7E3D2;
	--accent: #A51C30;          /* брусничный: кнопки и действия */
	--accent-hover: #86162A;
	--accent-soft: #F9E7E6;
	--brand: #B5652B;           /* фирменный коричневый: меню, скроллбар (логотип с 2026-11-30 брусничный, как кнопки) */
	--brand-dark: #8E4E22;
	--brand-soft: #F6E7D8;
	--green: #2F4A35;
	--heading: #2B3324;
	--text: #2B2320;
	--text-muted: #6E655F;
	--border: #EDE3D7;
	--radius-lg: 22px;
	--radius-md: 16px;
	--radius-pill: 999px;
	--radius-btn: 14px; /* кнопки — как пункты бокового меню */
	--shadow: 0 4px 24px rgba(60, 40, 20, .06);
	--sidebar-w: 248px;
	--font-head: 'Stolle Rub Serif', 'Lora', Georgia, 'Times New Roman', serif;
	--font-body: 'Stolle Rub Sans', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-hand: 'Caveat', 'Segoe Script', cursive;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0; line-height: 1.15; color: var(--heading); }
h1, h2, h3, h4, .card-title { font-variant-numeric: lining-nums; } /* единые прописные цифры в заголовках (у Playfair, прежнего шрифта, были старинные: «на 1oo г»); с Lora оставлено на всякий случай */
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.icon { flex: none; }
/* иконка из спрайта (stolle_icon, STOLLE_ICON_SPRITE): обводка как у обычных иконок, заливку можно переопределить (.fav-btn.is-on svg) */
.icon-s { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- frame ---------- */
.layout { min-height: 100vh; }

/* Sidebar: logo pinned on top, contacts pinned at the bottom, the category tree scrolls between them. */
.sidebar {
	position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 40;
	display: flex; flex-direction: column;
	background: var(--bg-sidebar); border-right: 1px solid var(--border);
	transition: transform .25s ease;
}
.sidebar-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 20px 16px 60px; } /* снизу ~ высота пункта меню: логотип не теснит меню */
/* логотип — logo.svg фирменным коричневым, без плашки, на всю ширину шапки меню */
.logo { flex: 1; display: block; padding: 4px 0; }
.logo img { display: block; width: 100%; height: auto; }
.sidebar-nav {
	flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
	display: flex; flex-direction: column; gap: 2px; padding: 4px 8px 12px 12px;
	container-type: size; /* 100cqh = видимая высота списка: от неё считается высота строк */
}
.nav-item {
	min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 12px;
	border-radius: 14px; font-weight: 500; font-size: 14.5px; line-height: 1.25; transition: background .15s, color .15s;
}
/* Строки верхнего уровня одной высоты: делят высоту списка поровну, но не ниже 40 и не выше 56 px.
   Разделов больше, чем влезает по 40 px, — появляется скролл. */
.sidebar-nav > .nav-item, .nav-section-body > .nav-item, .nav-row {
	flex: none; height: clamp(40px, calc((100cqh - 16px) / var(--nav-count, 10) - 2px), 56px);
}
/* Разделы шторки телефона «Меню» и «Информация» (header.php). На ПК обёртки прозрачны: категории стоят прямо в меню,
   строки-заголовки и пункт «Все» в подразделах скрыты; «Информация» на ПК — в верхней панели. */
.sidebar-nav .nav-section-row, .nav-sub .nav-sub-all { display: none; }
.nav-catalog, .nav-catalog > .nav-section-body { display: contents; }
.nav-section-btn { width: 100%; border: 0; background: transparent; font: inherit; font-weight: 500; color: inherit; text-align: left; cursor: pointer; }
.nav-section-btn > span { flex: 1; }
.nav-section-title { cursor: default; } .nav-section-title:hover { background: transparent; } /* «Информация» — заголовок, всегда раскрыта */
.nav-section-btn > .icon:last-child { color: var(--text-muted); transition: transform .2s; }
.nav-section.is-open > .nav-section-row .nav-section-btn > .icon:last-child { transform: rotate(180deg); }
.nav-row > .nav-item { flex: 1; height: 100%; }
.nav-item .icon { color: var(--brand); }
.nav-item:hover { background: var(--surface-warm); }
.nav-item.is-active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-item.is-promo, .nav-item.is-promo .icon { color: var(--accent); font-weight: 600; } /* «Акции»: красный, как кнопки */
.nav-item.is-promo.is-active { background: var(--accent-soft); }
.nav-row { display: flex; align-items: center; gap: 2px; }
.nav-group { flex: none; }
.nav-toggle {
	flex: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
	border: 0; border-radius: 10px; background: transparent; color: var(--text-muted);
}
.nav-toggle .icon { transition: transform .2s; }
.nav-toggle:hover { background: var(--surface-warm); color: var(--text); }
.nav-group.is-open .nav-toggle .icon { transform: rotate(180deg); }
.nav-sub { display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px 23px; padding-left: 12px; border-left: 1px solid var(--border); }
.nav-group.is-open .nav-sub { display: flex; }
.nav-subitem { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.25; color: var(--text-muted); transition: background .15s, color .15s; }
.nav-subitem:hover { background: var(--surface-warm); color: var(--text); }
.nav-subitem.is-active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-info { display: none; }
.sidebar-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 18px; border-top: 1px solid var(--border); }
.contact-card {
	display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s;
}
.contact-card:hover { border-color: var(--brand); }
.contact-card .icon { margin-top: 1px; color: var(--brand); }
.contact-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-card-text b { font-size: 14px; font-weight: 700; }
.contact-card-text small { font-size: 12px; line-height: 1.35; color: var(--text-muted); }
.contact-hours { display: flex; flex-direction: column; margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--border); }
.sidebar-x { display: none; }
.social { display: flex; justify-content: space-between; gap: 8px; } /* кнопки разнесены на всю ширину блока контактов */
.social-btn {
	width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
	display: grid; place-items: center; color: var(--text); transition: color .15s, border-color .15s;
}
.social-btn:hover { color: var(--brand); border-color: var(--brand); }
.sidebar-overlay { display: none; }

/* Thin brand-brown scrollbars without arrows (sidebar tree, cart drawer). Chromium/Safari: ::-webkit-scrollbar;
   Firefox: standard properties — set only there, otherwise Chromium drops the ::-webkit-scrollbar styles. */
.sidebar ::-webkit-scrollbar, .sidebar::-webkit-scrollbar, .drawer-body::-webkit-scrollbar { width: 6px; height: 6px; }
.sidebar ::-webkit-scrollbar-track, .sidebar::-webkit-scrollbar-track, .drawer-body::-webkit-scrollbar-track { background: transparent; }
.sidebar ::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb, .drawer-body::-webkit-scrollbar-thumb { background: rgba(181, 101, 43, .55); border-radius: 999px; }
.sidebar ::-webkit-scrollbar-thumb:hover, .sidebar::-webkit-scrollbar-thumb:hover, .drawer-body::-webkit-scrollbar-thumb:hover { background: var(--brand); }
.sidebar ::-webkit-scrollbar-button, .sidebar::-webkit-scrollbar-button, .drawer-body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports not selector(::-webkit-scrollbar) {
	.sidebar, .sidebar-nav, .drawer-body { scrollbar-width: thin; scrollbar-color: rgba(181, 101, 43, .6) transparent; }
}

.main { margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
	position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 14px 32px;
	background: rgba(251, 246, 239, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.topbar .burger, .topbar .topbar-logo { display: none; }
/* верхнее меню: шрифт как у пунктов бокового меню (14.5 / 500), пункты разнесены по всей ширине до кнопки поиска */
.topnav { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 20px; margin-right: 8px; }
/* Линия под пунктом — фон самой ссылки высотой 2px (место под неё — нижнее поле): толщина одна в любом состоянии,
   строка не прыгает. При наведении линия растёт слева направо (меняется ширина фона), у текущей страницы стоит постоянно.
   Не transform: при масштабе экрана 125–150 % браузер рисовал движущийся слой на пиксель толще, а в конце анимации
   возвращал толщину — линия «худела» на глазах. */
.topnav-link {
	padding: 6px 0 8px; font-size: 14.5px; font-weight: 500; line-height: 1.25; white-space: nowrap;
	background: linear-gradient(var(--brand-dark), var(--brand-dark)) left bottom / 0 2px no-repeat;
	transition: color .15s, background-size .25s ease;
}
.topnav-link:hover { color: var(--brand-dark); }
.topnav-link:hover, .topnav-link:focus-visible { background-size: 100% 2px; }
.topnav-link.is-active { color: var(--brand-dark); background-image: linear-gradient(var(--brand), var(--brand)); background-size: 100% 2px; }
@media (prefers-reduced-motion: reduce) { .topnav-link { transition: color .15s; } }
.topbar-actions { flex: none; display: flex; align-items: center; gap: 8px; margin-left: auto; }
.round-btn {
	position: relative; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
	border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface); color: var(--text); transition: color .15s, border-color .15s;
}
.round-btn:hover, .round-btn[aria-expanded="true"] { color: var(--brand-dark); border-color: var(--brand); }
.round-badge, .cart-badge {
	position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: var(--radius-pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
	display: grid; place-items: center; line-height: 1;
}
.topbar .topbar-login { height: 44px; }
.topbar .cart-btn { position: relative; height: 44px; background: var(--accent); border-color: var(--accent); color: #fff; }
.topbar .cart-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.cart-btn-sum { font-weight: 600; color: rgba(255, 255, 255, .85); }
.cart-btn .cart-badge { background: #fff; color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.cart-btn.is-flash { transform: scale(1.04); }
.topsearch {
	position: absolute; left: 32px; right: 32px; top: calc(100% - 4px); display: flex; align-items: center; gap: 10px;
	height: 52px; padding: 0 8px 0 18px; background: var(--surface); border: 1px solid var(--brand);
	border-radius: var(--radius-pill); box-shadow: 0 10px 30px rgba(60, 40, 20, .12); color: var(--text-muted);
}
.topsearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.topsearch input::-webkit-search-cancel-button { display: none; }

.content { flex: 1; width: 100%; max-width: 1680px; padding: 4px 32px 48px; overflow-x: clip; } /* декор (веточка) не даёт горизонтальной прокрутки */
.footer {
	display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px 40px;
	padding: 28px 32px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px;
}
/* юр. блок города — как на Tilda: реквизиты, телефон и почта для претензий, документы */
.footer-legal { max-width: 560px; line-height: 1.6; }
.footer-legal p { margin: 0 0 10px; }
.footer-legal a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } /* ссылку видно не только по цвету */
.footer-legal a:hover, .footer-links a:hover { color: var(--brand-dark); }
.footer-docs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-credit { font-size: 12px; opacity: .85; }
.footer-docs a { color: var(--accent); }
.footer-links { display: flex; gap: 10px 18px; flex-wrap: wrap; }

/* уведомление о cookies — карточка в левом нижнем углу (на телефоне во всю ширину), поверх страницы, ниже шторок */
.cookie-note {
	position: fixed; z-index: 45; left: calc(var(--sidebar-w) + 24px); bottom: 24px; display: flex; align-items: center; gap: 20px;
	max-width: 720px; padding: 16px 18px 16px 22px; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-md); box-shadow: 0 12px 36px rgba(60, 40, 20, .18); font-size: 13.5px; line-height: 1.5; color: var(--text);
}
.cookie-note p { margin: 0; }
.cookie-note a { color: var(--accent); }
.cookie-note .btn { flex: none; }
.cookie-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 1023px) {
	.cookie-note { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; font-size: 13px; }
	.cookie-actions .btn { flex: 1; }
	.cookie-note:not([hidden]) ~ .to-top { display: none; } /* карточка cookies во всю ширину — кнопка вернётся после «Принять» */
}

/* «Наверх» — круглая в правом нижнем углу, появляется после двух экранов прокрутки (stolle.js) */
.to-top {
	position: fixed; z-index: 44; right: 24px; bottom: 24px; width: 48px; height: 48px; padding: 0; display: grid; place-items: center;
	border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer;
	box-shadow: 0 8px 24px rgba(60, 40, 20, .16); opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .2s, transform .2s, visibility .2s, color .15s, border-color .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 760px) {
	.to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---------- buttons & pills ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: var(--radius-btn); border: 1px solid transparent;
	font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .55; pointer-events: none; }
.pill {
	display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px;
	border-radius: var(--radius-btn); border: 1px solid var(--border); background: var(--surface);
	font-weight: 600; font-size: 14px; white-space: nowrap; transition: border-color .15s, color .15s;
}
.pill-white:hover { border-color: var(--accent); color: var(--accent); }
.pill-soft { height: 34px; padding: 0 14px; font-size: 13px; background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill-outline { height: 44px; background: transparent; border-color: var(--accent); color: var(--accent); }
.pill-outline:hover { background: var(--accent-soft); }
.icon-btn { display: grid; place-items: center; padding: 6px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); }
.icon-btn:hover { background: var(--surface-warm); color: var(--text); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.link-muted { display: block; text-align: center; font-size: 13px; color: var(--text-muted); text-decoration: underline; }

/* ---------- home: urgent notice («Штолле → Главная») — жёлтая, чтобы выделялась на тёплом фоне и брусничных акцентах ---------- */
.home-alert {
	display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 12px; padding: 14px 18px;
	border: 1px solid #EDB72F; border-radius: var(--radius-md); background: #FFE07A; color: #3A2804;
	font-size: 15px; font-weight: 600; line-height: 1.45; box-shadow: 0 6px 20px rgba(160, 110, 0, .14);
}
.home-alert .icon { flex: none; margin-top: 0; color: #8A5300; }
.home-alert p { margin: 0; }

/* ---------- home: heading with a seasonal branch ---------- */
/* Заголовок по левому краю контента (вровень с баннерами), правее — рукописная приписка с сердечком, у края веточка;
   вторая веточка — внизу бокового меню. Не хватает ширины — приписка переносится под заголовок. */
.home-hero {
	--decor-img: clamp(120px, 10.3vw, 166px); /* высота веточки: выше блока заголовка, нижняя часть заходит на блок под ним */
	position: relative; display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px;
	/* высота блока — по содержимому (заголовок или приписка), без запаса под веточку: баннеры стоят выше.
	   Справа место под веточку: картинка обрезана по ветке (ширина ≈ 0,96 высоты), срез основания — на краю страницы */
	padding: 2px calc(var(--decor-img) * .883 - 32px) 12px 0; /* .883 — пропорции веточки (ширина / высота) */
}
.home-hero-text { position: relative; z-index: 1; min-width: 0; }
.home-hero h1 { font-size: clamp(28px, 2.75vw, 50px); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; color: var(--text); }
.home-hero p { margin-top: 8px; font-size: clamp(14px, 1.1vw, 17px); color: var(--text-muted); }
.home-hero-note {
	/* три строки по центру: первое слово, остальное, сердечко. Авто-отступы с обеих сторон ставят приписку
	   посередине свободного места между заголовком и веточкой (место под веточку — правый padding .home-hero) */
	position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 0; margin: 0 auto;
	/* приписка в три строки — самое высокое в блоке, от неё зависит высота шапки, поэтому кегль сдержанный */
	font-family: var(--font-hand); font-size: clamp(20px, 1.6vw, 27px); font-weight: 600; line-height: 1.05; color: var(--accent); text-align: center; white-space: nowrap;
	transform: rotate(-7deg); transform-origin: center;
	/* поправка на column-gap и прозрачное поле картинки веточки (видимая часть начинается почти у края padding,
	   расхождение растёт с --decor-img): без неё приписка на 5–12 px ближе к веточке, чем к заголовку */
	translate: -14px 0; /* половина column-gap: место под веточку = padding, слева от приписки ещё и gap */
}
.home-hero-heart { flex: none; width: 1.1em; height: 1.1em; margin-top: 2px; }
/* веточка прижата к правому краю области контента и к верхней панели (у .content сверху 4px), под панель не заходит */
.home-hero-decor { position: absolute; top: -4px; right: -32px; z-index: 3; width: auto; height: var(--decor-img); max-width: none; pointer-events: none; user-select: none; filter: drop-shadow(0 9px 10px rgba(60, 35, 15, .34)); } /* ветка уже повёрнута в самой картинке; правый край (срез) — край страницы. Тень строго вниз: смещение по x отзеркалилось бы */
.home-hero-decor.is-mirror { transform: scaleX(-1); }
/* на десктопе — 2 крупные ветки пихты (≈2 : 1, выбор Димы 2026-11-29, вариант A) прежней высоты: тянутся от края страницы к приписке
   с отступом ~32 px (место ≈ 28vw − 160px: замер 1024 → 138, 1280 → 212, 1536 → 284, 1920 → 409); не влезают целиком —
   основание уходит за край страницы (object-position: right — кончики у картинки справа, на странице она зеркальная).
   Уже 1024 px — та же ветка в прежнем углу шириной .883 высоты (на телефоне .72), остальное за краем экрана. Место под ветку (padding) прежнее, приписка на месте */
.home-hero-decor { object-fit: cover; object-position: right center; }
@media (max-width: 1023px) { .home-hero-decor { width: calc(var(--decor-img) * .883); } }
@media (min-width: 1024px) { .home-hero-decor { width: min(calc(var(--decor-img) * 2.011), calc(28vw - 192px)); } }

/* ---------- home: banners + video ---------- */
.home-promo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.home-promo.has-video { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
.banners { position: relative; min-width: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-warm); box-shadow: var(--shadow); }
.banners-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.banners-track::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; min-height: 340px; scroll-snap-align: start; display: block; overflow: hidden; }
.banner-media { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; overflow: hidden; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--b-zoom, 1)); transform-origin: var(--b-focus, center); } /* «Увеличение картинки» баннера: края обрезает .banner-media */
.banner-text { background: var(--b-bg); color: var(--b-text); }
.banner-text .banner-media { width: 60%; }
/* фон под текстом наплывает на картинку градиентом */
.banner-fade { position: absolute; top: 0; bottom: 0; left: 40%; z-index: 1; width: 24%; background: linear-gradient(90deg, var(--b-bg) 0%, transparent 100%); pointer-events: none; }
.banner-body {
	position: relative; z-index: 2; width: 56%; min-height: 340px; padding: 32px 0 32px 36px;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px;
}
.banner-label {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill);
	font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .55); color: inherit;
	background: color-mix(in srgb, var(--b-text) 8%, transparent);
}
.banner-title { font-size: clamp(28px, 2.9vw, 46px); font-weight: 500; line-height: 1.04; color: var(--b-text); }
.banner-title em { font-style: normal; color: var(--b-accent); }
.banner-sub { max-width: 420px; font-size: 15px; line-height: 1.5; opacity: .85; }
.banner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.banner-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--radius-btn);
	font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--b-text); background: rgba(255, 255, 255, .5);
	border: 1px solid color-mix(in srgb, var(--b-text) 22%, transparent); transition: border-color .15s, filter .15s;
}
.banner-btn:hover { border-color: var(--b-text); }
.banner-btn.is-primary { background: var(--b-btn-bg); color: var(--b-btn-text); border-color: transparent; }
.banner-btn.is-primary:hover { filter: brightness(.9); }
.home-promo.has-video .banner-text .banner-media { width: 56%; }
.home-promo.has-video .banner-fade { left: 44%; }
.home-promo.has-video .banner-body { width: 60%; padding-left: 32px; }
.home-promo.has-video .banner-title { font-size: clamp(26px, 2.3vw, 40px); }
.banners-nav { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 8px; }
/* стрелки и кружки на полупрозрачной светлой подложке с размытием: баннер под ними просвечивает */
.banners-arrow, .banners-dots {
	background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}
.banners-arrow {
	width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border: 0; border-radius: var(--radius-btn);
	color: var(--text); transition: color .15s, background .15s;
}
.banners-arrow:hover { background: rgba(255, 255, 255, .9); color: var(--accent); }
/* кружки слайдов между стрелками, активный — брусничный и крупнее */
.banners-dots { display: flex; align-items: center; height: 42px; padding: 0 8px; border-radius: var(--radius-btn); }
.banners-dot { position: relative; width: 24px; height: 24px; /* область нажатия не меньше 24px */ padding: 0; border: 0; background: transparent; cursor: pointer; }
.banners-dot::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%;
	background: rgba(43, 35, 32, .3); transition: background .2s, transform .2s;
}
.banners-dot:hover::before { background: rgba(43, 35, 32, .55); }
.banners-dot.is-active::before { background: var(--accent); transform: scale(1.4); }

.home-video {
	position: relative; display: block; width: 100%; min-height: 340px; padding: 0; overflow: hidden; isolation: isolate;
	border: 0; border-radius: var(--radius-lg); background: #3A2A20; color: #fff; text-align: left; cursor: pointer; box-shadow: var(--shadow);
}
.home-video-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.home-video::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 12, 8, .62) 0%, rgba(20, 12, 8, 0) 46%); }
.home-video-play {
	position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; display: grid; place-items: center;
	border: 2px solid rgba(255, 255, 255, .9); border-radius: 50%; background: rgba(255, 255, 255, .2);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transform: translate(-50%, -50%); transition: transform .2s, background .2s, width .2s, height .2s;
}
.home-video-play .icon { margin-left: 4px; }
.home-video:hover .home-video-play { background: rgba(255, 255, 255, .32); transform: translate(-50%, -50%) scale(1.06); }
.home-video.is-playing .home-video-play { width: 58px; height: 58px; }
.home-video-caption {
	position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
	font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.15;
}
.home-video-time { flex: none; font-family: var(--font-body); font-size: 13px; font-weight: 600; opacity: .9; }
.home-video:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 56px 24px 24px; }
.video-modal-overlay { position: absolute; inset: 0; background: rgba(20, 14, 10, .8); }
/* окно подстраивается под кадр: --video-ratio (ширина/высота) ставит JS по метаданным ролика, до этого окно скрыто */
.video-modal-card { position: relative; z-index: 1; width: min(1100px, 100%, calc(80vh * var(--video-ratio, 1.7778))); visibility: hidden; }
.video-modal-card.is-ready { visibility: visible; }
.video-modal-card video { display: block; width: 100%; aspect-ratio: var(--video-ratio, 1.7778); border-radius: 16px; background: #000; }
.video-modal-close {
	position: absolute; top: -48px; right: 0; width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--text);
}
body.is-modal { overflow: hidden; }

/* ---------- home: section cards ---------- */
.home-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.home-card {
	position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
	aspect-ratio: 3 / 2; min-height: 168px; padding: 18px 20px; overflow: hidden;
	border-radius: var(--radius-md); background: var(--surface-warm); color: var(--heading); box-shadow: var(--shadow); transition: transform .2s;
}
.home-card:hover { transform: translateY(-2px); }
.home-card-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .4s; }
.home-card:hover .home-card-bg { transform: scale(1.04); }
.home-card-title { width: min-content; font-family: var(--font-head); font-size: clamp(18px, 1.5vw, 24px); font-weight: 600; line-height: 1.1; } /* каждое слово с новой строки */
.home-card-sub { max-width: min(118px, 40%); font-size: 13px; /* не шире кнопки «Смотреть →» и не дальше ~42% плитки: правее начинается пирог */ line-height: 1.35; color: var(--text-muted); }
.home-card-btn {
	margin-top: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px;
	border-radius: var(--radius-btn); background: #fff; color: var(--text); font-size: 13px; font-weight: 600;
	box-shadow: 0 2px 8px rgba(60, 40, 20, .08); transition: color .15s;
}
.home-card:hover .home-card-btn { color: var(--accent); }

/* ---------- home: special offer strip ---------- */
/* Высоту плашки задаёт текст (≈120 px), картинка прижата к правому нижнему углу и чуть выходит за верхний край
   (просьба Димы: морс над плашкой — симпатичнее). Отступ сверху больше, чтобы картинка не наезжала на карточки. */
.home-strip {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 12px 36px;
	margin-top: 16px; padding: 18px 32px; min-height: 0;
	border-radius: var(--radius-lg); background: var(--strip-bg, #F4E6D9); box-shadow: var(--shadow);
}
.home-strip.has-image { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1.25fr); margin-top: 36px; padding-right: 16px; padding-top: 0; padding-bottom: 0; }
.home-strip-title { font-size: clamp(24px, 2.3vw, 38px); font-weight: 500; line-height: 1.08; padding: 20px 0; }
.home-strip-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-muted); padding: 20px 0; }
.home-strip-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); }
.home-strip-link:hover { color: var(--accent-hover); }
.home-strip-link .icon { transition: transform .15s; }
.home-strip-link:hover .icon { transform: translateX(3px); }
.home-strip-media { position: relative; align-self: stretch; min-width: 0; min-height: 96px; }
.home-strip-media img { position: absolute; right: 0; bottom: 0; width: auto; max-width: 100%; height: calc(100% + 28px); object-fit: contain; object-position: right bottom; }
/* Вид «фото» (банкеты к Новому году, 2026-12-02): фото во всю высоту правой части панели, слева плавно растворяется
   в цвете фона (маска, а не запечённый градиент — цвет фона можно менять в настройках). */
.home-strip.is-photo { margin-top: 24px; padding-right: 0; min-height: 150px; overflow: hidden; }
.home-strip.is-photo .home-strip-media img { inset: 0; width: 100%; max-width: none; height: 100%; object-fit: cover; object-position: center 55%;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%); mask-image: linear-gradient(to right, transparent 0, #000 45%); }

/* ---------- sections & grid ---------- */
.products-section { margin-top: 80px; }
/* «Смотреть все» — сразу за заголовком раздела с увеличенным отступом; описание раздела — строкой ниже */
.section-head { margin-bottom: 16px; }
.section-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 36px; row-gap: 4px; }
.section-head h2 { font-size: clamp(26px, 2.3vw, 36px); font-weight: 500; }
.section-head p { margin-top: 2px; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* «С этим также заказывают» под карточкой товара. Последняя карточка не остаётся одна в ряду:
   при трёх колонках (761–1200px) и при двух (телефон) лишняя прячется. */
.reco-section { margin-top: 56px; }
@media (min-width: 761px) and (max-width: 1200px) { .reco-grid > :nth-child(3n+1):last-child:not(:first-child) { display: none; } }
@media (max-width: 760px) { .reco-grid > :nth-child(2n+1):last-child:not(:first-child) { display: none; } }

/* ---------- product card ---------- */
/* Белая карточка с внутренним отступом: фото со скруглением внутри, ниже название (с засечками), приписка, вес,
   разделитель с колоском и ряд «цена + кнопка». Размеры — от ширины карточки (cqi), чтобы 4–5 в ряд и 2 на телефоне
   выглядели одинаково. Разделитель прижат к низу — цены и кнопки в ряду карточек на одной линии. */
.card {
	position: relative; display: flex; flex-direction: column; padding: 10px; container-type: inline-size;
	background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); border: 1px solid #F1E8DF;
	transition: border-color .15s;
}
.card:hover { border-color: #E6D6C6; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--surface-warm); overflow: hidden; }
.card-media > img { width: 100%; height: 100%; object-fit: cover; }
/* При наведении — второе загруженное фото товара (без зума). Плашки (.badges) выше по z-index. */
.card-media > .card-photo-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
@media (hover: hover) { .card:hover .card-photo-alt.is-ready { opacity: 1; } }
/* Плашки (картинки из «Штолле → Плашки»): столбиком в левом верхнем углу фото, справа — сердечко избранного.
   Высота — --badge-h из настроек (карточка 32 px, страница товара 40 px), на телефоне на карточке три четверти. */
.badges { position: absolute; z-index: 1; top: 10px; left: 10px; right: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.badges .badge-img { display: block; width: auto; max-width: 100%; height: var(--badge-h, 32px); object-fit: contain; object-position: left center; } /* .badges — сильнее правила фото товара (.card-media img) */
/* Плашка (вариант C, 2026-11-22): капсула цвета плашки, белые значок и надпись заглавными. Всё считается от высоты --bh,
   поэтому у всех плашек одна высота и один кегль; длинная надпись обрезается многоточием, а не уменьшается. */
.badge-tag {
	--bh: var(--badge-h, 32px);
	display: inline-flex; align-items: center; gap: calc(var(--bh) * .2); max-width: 100%; height: var(--bh);
	padding: 0 calc(var(--bh) * .42) 0 calc(var(--bh) * .32); border-radius: var(--radius-pill);
	background: var(--badge-bg, var(--accent)); color: #fff; box-shadow: 0 2px 6px rgba(43, 35, 32, .22); /* тень отделяет плашку от фото */
	font: 700 calc(var(--bh) * .4)/1 var(--font-body); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
}
.badge-tag.no-icon { padding-left: calc(var(--bh) * .42); }
/* Не влезает в ширину (телефон, длинная надпись вроде «Привезём за 45 мин») — переносится на вторую строку, а не обрезается */
.badge-tag:has(> span) { height: auto; min-height: var(--bh); white-space: normal; }
.badge-tag > span { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.12; padding: calc(var(--bh) * .1) 0; }
.badge-tag .icon { flex: none; width: calc(var(--bh) * .5); height: calc(var(--bh) * .5); stroke-width: 2; }
.badge-tag .icon-flame, .badge-tag .icon-zap, .badge-tag .icon-sparkles, .badge-tag .icon-leaf, .badge-tag .icon-tag, .badge-tag .icon-crown { fill: currentColor; }
.badge-tag .icon-tag circle { fill: var(--badge-bg); stroke: none; r: 1.6px; } /* дырочка ценника цветом плашки — у залитого ценника она пропадала */
/* живой значок — анимированный эмодзи Noto (stolle_badge_icon_html): чуть крупнее белой иконки, у эмодзи свои поля */
.badge-tag .badge-emoji, .badge-tag .badge-emoji img { display: block; flex: none; width: calc(var(--bh) * .66); height: calc(var(--bh) * .66); }
.badge-tag .badge-emoji { margin: 0 calc(var(--bh) * -.04); }
.product-media .badges { top: 16px; left: 16px; }
.card .fav-btn { top: 15.5px; right: 12.7px; width: 41px; height: 41px; padding: 6px; color: #fff; background: transparent; box-shadow: none; }
/* Сердечко по середине плашки по высоте; размер — три четверти высоты плашки (Дима: «во всю высоту — слишком большое»):
   значок 29 px (контур ~24 из 32 px плашки), на телефоне 22 px (контур ~18 из 24). Контур сердца в значке 24×24 занимает
   по высоте ~2…22 с обводкой. Кнопка — значок + поля 6 px (удобно попасть пальцем); top/right посчитаны так, чтобы середина
   контура была на середине плашки (плашка — 20 px от края карточки) и сердечко стояло на том же расстоянии от правого края фото,
   что плашка — от левого. */
.card .fav-btn svg { width: 29px; height: 29px; }
/* избранное в карточке — белое сердечко 22 px без подложки (лёгкая тень, чтобы читалось на светлом фото):
   при наведении крупнее на 20%, в избранном залито брусничным */
.card .fav-btn svg { transition: transform .15s ease; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.card .fav-btn:not(.is-on):hover { color: #fff; }
@media (hover: hover) { .card .fav-btn:hover svg { transform: scale(1.2); } }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 14px 6px 4px; }
.card-title { font-family: var(--font-head); font-size: clamp(16px, 8.6cqi, 26px); font-weight: 600; line-height: 1.16; color: var(--text); }
.card-title:hover { color: var(--accent); }
.card-note {
	margin-top: 6px; font-size: clamp(12px, 5.8cqi, 16px); line-height: 1.3; color: #B5432C; /* темнее прежнего #D2553A: контраст с белым 4,5:1 и выше */
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.card-weight { margin-top: 6px; font-size: clamp(12px, 5.8cqi, 16px); line-height: 1.3; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Сплошная линия; высота блока как у прежнего с колоском (14 + 20 px) — цены в ряду на одной линии.
   Линия — svg с shape-rendering: crispEdges толщиной в 1 физический пиксель. Обычная линия в 1 CSS px на масштабе
   экрана 125–175% размазывалась на два пикселя по-разному в зависимости от высоты, на которой стоит: при выборе веса
   разделитель поднимается — и линия становилась толще. svg выше линии (3 px), иначе он подрезает её на дробной позиции. */
.card-divider { height: 34px; margin-top: auto; padding-top: 23px; }
.card-divider svg { display: block; width: 100%; height: 3px; overflow: visible; }
.card-divider rect { fill: #EED8C3; }
@media (min-resolution: 1.2dppx) and (max-resolution: 1.3dppx) { .card-divider rect { height: .8px; } }
@media (min-resolution: 1.4dppx) and (max-resolution: 1.6dppx) { .card-divider rect { height: .6667px; } }
@media (min-resolution: 1.7dppx) and (max-resolution: 1.8dppx) { .card-divider rect { height: .5715px; } }
/* ряд «цена + кнопка»; в корзине на месте кнопки счётчик той же высоты — ряд не меняется, разделитель не гуляет */
.card-buy { --buy-h: clamp(40px, 16cqi, 52px); display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.card-price { min-width: 0; display: flex; flex-direction: column; line-height: 1; }
.cp-old { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: clamp(12px, 5cqi, 15px); color: var(--text-muted); white-space: nowrap; }
.cp-old .price-pct { margin-left: 0; }
.cp-now { font-size: clamp(19px, 10cqi, 32px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: var(--text); }
.cp-now small { font-size: .7em; font-weight: 800; letter-spacing: 0; }
/* знак ₽ на ступень легче цифр — для всего сайта в assets/fonts/fonts.css (свой ₽ по весу текста), здесь правил не нужно */
.cp-now.is-sale { color: var(--accent); }
.card-btn { flex: none; height: var(--buy-h); padding: 0 clamp(14px, 8cqi, 28px); font-size: clamp(13px, 5.4cqi, 16px); }
.stepper.card-stepper { flex: none; width: clamp(108px, 44cqi, 150px); height: var(--buy-h); } /* .stepper ниже по файлу задаёт 44 px и 100% */
.card-stepper .stepper-btn { width: calc(var(--buy-h) - 8px); height: calc(var(--buy-h) - 8px); }
.card-stepper .stepper-qty { width: auto; font-size: clamp(14px, 5.6cqi, 17px); font-weight: 600; }
/* выбор варианта — на месте цены: по одной кнопке «вес — цена» в строке, сколько влезет */
.card-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.card-variant {
	display: inline-flex; align-items: center; gap: 14px; min-height: clamp(38px, 15cqi, 48px); padding: 6px clamp(12px, 6cqi, 18px);
	border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface); color: var(--text);
	font-size: clamp(13px, 5.4cqi, 16px); text-align: left; cursor: pointer; transition: border-color .15s, color .15s;
}
.card-variant b { font-weight: 800; white-space: nowrap; }
.card-variant:hover, .card-variant:focus-visible { border-color: var(--accent); color: var(--accent); outline: 0; }
.card.is-busy .card-btn, .card.is-busy .card-stepper, .card.is-busy .card-variant { opacity: .7; pointer-events: none; } /* занята только эта карточка */
@container (max-width: 230px) {
	.card-buy { flex-wrap: wrap; }
	.card-btn, .stepper.card-stepper { width: 100%; }
}
.price-old { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-pct { margin-left: 6px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; vertical-align: middle; }

/* ---------- chips & steppers ---------- */
.chip {
	position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
	border-radius: var(--radius-btn); border: 1px solid var(--border); background: var(--surface);
	font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s;
}
.chip b { font-weight: 700; }
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips {
	display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none;
	position: sticky; top: 72px; z-index: 20; background: var(--bg);
}
.cat-chips::-webkit-scrollbar { display: none; }

.stepper { --stepper-pad: 4px; display: inline-flex; align-items: center; width: 100%; height: 44px; padding: var(--stepper-pad); background: var(--accent-soft); border-radius: var(--radius-btn); }
.stepper-btn { width: 36px; height: 36px; border: 0; border-radius: calc(var(--radius-btn) - var(--stepper-pad, 4px)); /* концентрично рамке: её радиус минус отступ */ background: var(--surface); color: var(--accent); display: grid; place-items: center; font-size: 18px; line-height: 1; transition: background .15s, color .15s; }
.stepper-btn:hover { background: var(--accent); color: #fff; }
.stepper-qty, .stepper-input { flex: 1; min-width: 0; width: 40px; text-align: center; font-weight: 700; border: 0; background: transparent; -moz-appearance: textfield; }
.stepper-input::-webkit-inner-spin-button, .stepper-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stepper-input:focus { outline: 0; }
.stepper-lg { flex: none; width: 156px; height: 52px; }
.stepper-lg .stepper-btn { width: 44px; height: 44px; }
.stepper-sm { --stepper-pad: 3px; flex: none; width: 104px; height: 34px; }
.stepper-sm .stepper-btn { width: 28px; height: 28px; font-size: 16px; }
.is-cart-busy .drawer .stepper { opacity: .7; } /* шторка корзины; карточки товаров — своим .is-busy */

/* ---------- archive ---------- */
.archive-head { margin: 8px 0 36px; }
/* SEO-текст раздела под товарами: спокойная колонка текста, не конкурирует с карточками */
.cat-text { max-width: 860px; margin: 64px 0 8px; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.cat-text h2 { margin: 0 0 14px; font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1.2; color: var(--text); }
.cat-text h3 { margin: 26px 0 8px; font-size: 18px; font-weight: 600; color: var(--text); }
.cat-text p + p, .cat-text ul + p, .cat-text p + ul { margin-top: 10px; }
.cat-text ul { padding-left: 20px; list-style: disc; }
.cat-text li + li { margin-top: 4px; }
.cat-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; } /* от заголовка раздела до товаров или чипов — втрое больше прежних 12px (правки Штолле 2026-11-29) */
.archive-head h1 { font-size: 34px; font-weight: 500; }
/* рукописная приписка раздела («Выпекаем каждый день») — справа от заголовка, как на инфостраницах */
.archive-head.has-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; }
.archive-head-text { min-width: 0; }
.archive-note {
	margin: 0 24px 0 auto; font-family: var(--font-hand); font-size: clamp(24px, 2vw, 30px); font-weight: 600; line-height: 1.05;
	color: var(--accent); transform: rotate(-5deg); white-space: nowrap;
}
.pagination { margin-top: 24px; }
.pagination .nav-links { display: flex; gap: 6px; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-btn); background: var(--surface); border: 1px solid var(--border); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; font-size: 13px; color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--surface-warm); }
.product-media > img { width: 100%; height: 100%; object-fit: cover; }
/* Галерея товара: лента фото на scroll-snap (свайп на телефоне), стрелки по бокам фото, миниатюры под ним. */
.product-gallery { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pg-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.pg-track::-webkit-scrollbar { display: none; }
.pg-slide { flex: 0 0 100%; scroll-snap-align: start; }
.pg-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-arrow {
	position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; transform: translateY(-50%);
	border: 0; border-radius: var(--radius-btn); color: var(--text); background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .1); transition: color .15s, background .15s;
}
.pg-arrow:hover { background: rgba(255, 255, 255, .9); color: var(--accent); }
.pg-arrow.is-prev { left: 12px; }
.pg-arrow.is-next { right: 12px; }
.pg-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.pg-thumbs::-webkit-scrollbar { display: none; }
.pg-thumb {
	flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden;
	background: var(--surface-warm); opacity: .7; cursor: pointer; transition: border-color .15s, opacity .15s;
}
.pg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-thumb:hover { opacity: 1; }
.pg-thumb.is-active { border-color: var(--accent); opacity: 1; }
/* КБЖУ на 100 г: плитки «число — подпись» */
.nutrition { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.nutrition-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg-sidebar); text-align: center; }
.nutrition-item b { font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--text); }
.nutrition-item span { font-size: 13px; color: var(--text-muted); }
.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-title { font-size: 34px; font-weight: 500; }
.product-meta { font-size: 13px; }
.product-note { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: #B5432C; } /* приписка товара («заказ за 2 дня»), цвет как у .card-note */
.product-note svg { flex: none; margin-top: 1px; }
.product-price { font-size: 28px; font-weight: 700; }
.product-price .price-old { font-size: 18px; }
.option-label { font-size: 13px; color: var(--text-muted); margin-bottom: -6px; }
.buy-form { display: flex; flex-direction: column; gap: 14px; }
.checkbox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-sidebar); }
.checkbox:hover { border-color: var(--accent); }
.checkbox input { position: absolute; opacity: 0; }
.checkbox-box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); background: var(--surface); color: transparent; display: grid; place-items: center; transition: background .15s; }
.checkbox input:checked + .checkbox-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.checkbox input:focus-visible + .checkbox-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; align-items: center; }
.product-perks { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-muted); }
.product-perks span { display: inline-flex; align-items: center; gap: 6px; }
.product-perks .product-window { color: #9B5A1E; font-weight: 600; } /* период заказа товара («Даты заказа» в админке) */
.product-h { margin-top: 8px; font-size: 18px; }
.product-text { color: var(--text-muted); line-height: 1.6; }

/* ---------- static / Woo pages ---------- */
.page-card { max-width: 960px; padding: 32px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.page-card-wide { max-width: none; }
.page-title { margin-bottom: 16px; font-size: 32px; font-weight: 500; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin: 1.2em 0 .4em; font-size: 22px; }
.prose ul { padding-left: 1.2em; }

/* ---------- cart drawer ---------- */
.drawer-overlay, .modal-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(43, 35, 32, .38); }
.drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 51; width: min(440px, 100%);
	display: flex; flex-direction: column; background: var(--surface);
	transform: translateX(100%); transition: transform .25s ease; box-shadow: -8px 0 40px rgba(60, 40, 20, .15);
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 24px; font-weight: 500; }
.drawer-count { font-family: var(--font-body); font-size: 14px; font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 0; text-align: center; color: var(--text-muted); }
.ci { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ci-img { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--surface-warm); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ci-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.ci-meta { font-size: 12px; }
.ci-extra { color: var(--accent); }
.ci-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ci-price { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.ci-remove { flex: none; width: 32px; height: 32px; padding: 0; font-size: 20px; line-height: 1; } /* ровный круг: иначе отступ вокруг «×» давал овал */
.drawer-foot { display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 20px; background: var(--bg-sidebar); border-top: 1px solid var(--border); }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); text-transform: uppercase; }
.coupon input:focus { outline: 0; border-color: var(--accent); }
.coupon-list { display: flex; flex-wrap: wrap; gap: 6px; }
.coupon-list:empty { display: none; }
.coupon-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
/* подарок по промокоду в шторке и на классической корзине */
.ci.is-gift .ci-price b, .stolle-gift-price { color: var(--accent); }
.ci-gift-qty { font-size: 14px; }
.coupon-tag button { border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; padding: 0 2px; }
.drawer-msg { padding: 8px 12px; border-radius: 10px; font-size: 13px; background: #FBE9E4; color: #9B3A1E; }
.drawer-msg.ok { background: #E6F0E8; color: var(--green); }
.totals { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.totals-row { display: flex; justify-content: space-between; gap: 12px; }
.totals-row > span:last-child { text-align: right; }
.totals-grand { padding-top: 8px; border-top: 1px dashed var(--border); font-size: 18px; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); padding: 10px 18px; border-radius: var(--radius-pill); background: var(--text); color: #fff; font-size: 14px; box-shadow: var(--shadow); }

/* ---------- city modal ---------- */
.modal { position: fixed; inset: 0; z-index: 55; overflow-y: auto; }
.modal-card { position: relative; z-index: 56; width: min(420px, calc(100% - 32px)); margin: 15vh auto 24px; padding: 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h3 { font-size: 22px; }
.city-list { display: grid; gap: 8px; margin-bottom: 12px; }
.city-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.city-opt:hover { border-color: var(--accent); }
.city-opt.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

/* ---------- WooCommerce blocks (cart / checkout) in our colours ---------- */
.entry-content .wp-block-woocommerce-cart, .entry-content .wp-block-woocommerce-checkout { font-family: var(--font-body); }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	background: var(--accent) !important; color: #fff !important; border-radius: var(--radius-btn) !important; border: 0 !important;
	font-weight: 600 !important; font-family: var(--font-body) !important;
}
.wc-block-components-button:not(.is-link):hover { background: var(--accent-hover) !important; }
.wc-block-components-text-input input, .wc-block-components-select select, .wc-block-components-combobox input, .wc-block-components-textarea, .wc-block-components-totals-coupon__input input {
	border-radius: 12px !important; border-color: var(--border) !important; background: var(--surface) !important;
}
.wc-block-components-text-input input:focus, .wc-block-components-select select:focus, .wc-block-components-textarea:focus { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent) !important; }
.wc-block-components-sidebar .wc-block-components-panel, .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-order-summary { background: var(--bg-sidebar); border-radius: var(--radius-md); }
.wc-block-components-checkout-step__title, .wc-block-components-title, .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title { font-family: var(--font-head); font-weight: 500; }
.wc-block-components-radio-control__option { border-radius: 12px; }
.wc-block-components-radio-control__input:checked { border-color: var(--accent) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--accent) !important; }
.wc-block-components-checkbox .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--accent) !important; border-color: var(--accent) !important; }
.wc-block-components-product-badge, .wc-block-components-sale-badge { background: var(--accent-soft); color: var(--accent); }
.wc-block-components-product-metadata__description, .wc-block-components-product-details__value { color: var(--accent); }
.wc-block-components-totals-coupon-link, .wc-block-components-checkout-return-to-cart-button, .wc-block-components-order-summary__button-text { color: var(--accent) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--font-body); }
.wc-block-cart .wc-block-components-product-name { font-weight: 600; }
.wc-block-cart-items__row .wc-block-components-product-metadata { font-size: 13px; }
.wc-block-components-quantity-selector { border-radius: var(--radius-btn) !important; background: var(--accent-soft); border: 0 !important; }
.wc-block-components-quantity-selector::after { display: none !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { color: var(--accent); }
.wc-block-components-notice-banner { border-radius: 12px; }

/* ---------- classic parts kept by Woo: thank-you page, my account, notices ---------- */
.woocommerce-notices-wrapper .woocommerce-message, .woocommerce-notices-wrapper .woocommerce-error, .woocommerce-notices-wrapper .woocommerce-info { list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.woocommerce-notices-wrapper .woocommerce-error { background: #FBE9E4; color: #9B3A1E; }
.woocommerce-order .woocommerce-thankyou-order-received { font-family: var(--font-head); font-size: 30px; font-weight: 500; margin-bottom: 16px; }
.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; list-style: none; margin: 0 0 24px; padding: 16px; background: var(--bg-sidebar); border-radius: var(--radius-md); }
.woocommerce-order-overview li { font-size: 13px; color: var(--text-muted); }
.woocommerce-order-overview li strong { display: block; color: var(--text); font-size: 15px; }
.woocommerce-order h2, .woocommerce-order h3, .woocommerce-account h2, .woocommerce-account h3 { font-size: 22px; font-weight: 500; margin: 24px 0 10px; }
.woocommerce-table, .shop_table { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-table th, .woocommerce-table td, .shop_table th, .shop_table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.woocommerce-table tfoot th { color: var(--text-muted); font-weight: 500; }
.woocommerce-table .wc-item-meta { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12px; color: var(--accent); }
.woocommerce-table .wc-item-meta p { display: inline; }
.woocommerce-customer-details address { font-style: normal; padding: 16px; background: var(--bg-sidebar); border-radius: var(--radius-md); }
.woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stolle-order-slot { margin-top: 12px; }
.woocommerce-order .woocommerce-notice { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.woocommerce-order .wc-bacs-bank-details { display: none; }
.woocommerce-order-details__title { margin-top: 24px; }
.woocommerce-form-login, .woocommerce-form-register { max-width: 420px; }
.woocommerce-form-login input[type=text], .woocommerce-form-login input[type=password], .woocommerce-form-register input[type=email] { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; }
.woocommerce-form-login .form-row { margin-bottom: 12px; }
.woocommerce-form-login button.button, .woocommerce-MyAccount-navigation a, .woocommerce a.button, .woocommerce button.button { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--radius-btn); border: 0; background: var(--accent); color: #fff; font-weight: 600; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 16px; }
.woocommerce-MyAccount-navigation a { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1600px) {
	.cart-btn-label { display: none; }
}
@media (max-width: 1360px) {
	.topbar { gap: 14px; }
	.topnav { gap: 2px 16px; }
	.topbar .topbar-login span { display: none; }
	.topbar .topbar-login { width: 44px; padding: 0; justify-content: center; }
}
@media (min-width: 1700px) {
	.grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
/* Семь пунктов верхнего меню полными названиями (2026-11-29) держим в одну строку до 1024 px: шрифт и отступы
   уменьшаются ступенями, на узких экранах у корзины остаётся только значок со счётчиком. */
@media (max-width: 1440px) {
	.topnav { gap: 2px 12px; }
	.topnav-link { font-size: 13.5px; }
}
@media (max-width: 1279px) {
	.topbar { padding-inline: 20px; gap: 12px; }
	.topnav { gap: 2px 10px; margin-right: 0; }
	.topnav-link { font-size: 12.5px; }
	.topbar .cart-btn-sum { display: none; }
	.topbar .cart-btn { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1160px) {
	.topbar { padding-inline: 16px; gap: 10px; }
	.topnav { gap: 2px 8px; }
	.topnav-link { font-size: 12px; }
	.topbar-actions { gap: 6px; }
}
@media (max-width: 1090px) {
	.topnav { gap: 2px 6px; }
	.topnav-link { font-size: 11.5px; }
}
@media (max-width: 1200px) {
	.grid, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.home-strip.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.home-strip.has-image .home-strip-media { grid-column: 2; grid-row: 1 / span 2; }
	.home-strip.has-image .home-strip-text { padding-top: 0; }
	.home-strip.has-image .home-strip-title { padding-bottom: 0; }
	.home-promo.has-video { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
	.banner-body { width: 62%; padding-left: 28px; }
	.home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.home-card { width: 100%; aspect-ratio: 5 / 2; } /* без ширины min-height через пропорцию раздувал карточку за край */
	.home-card-3 .home-card-bg { object-position: right top; } /* «Напитки»: в 5:2 режем низ, крышка бутылки видна целиком */
	.product { grid-template-columns: 1fr; }
}
@media (max-width: 1023px) {
	/* Телефон: шторка прокручивается целиком (логотип, категории, информация, контакты), без закреплённых частей —
	   на маленьком экране закреплённые шапка и контакты съедали место под категории. */
	.sidebar { width: min(320px, calc(100vw - 64px)); height: 100vh; height: 100dvh; bottom: auto; overflow-y: auto; overscroll-behavior: contain; transform: translateX(-100%); box-shadow: none; z-index: 60; }
	.sidebar.is-open { transform: none; box-shadow: 8px 0 40px rgba(60, 40, 20, .2); }
	/* логотип шторки — как в верхней панели (38 px), пункты меню сразу под ним (правки Штолле 2026-11-29) */
	.sidebar-head { justify-content: center; padding: 13px 16px 14px; }
	.logo { flex: none; padding: 0; }
	.logo img { width: auto; height: 38px; }
	.sidebar-nav { flex: none; overflow: visible; container-type: normal; padding: 4px 12px 12px; }
	.sidebar-nav > .nav-item, .nav-section-body > .nav-item, .nav-row { height: 46px; }
	/* шторка: «Главная», «Меню», «Информация» — всё помещается без прокрутки; разделы раскрываются по нажатию */
	.sidebar-nav .nav-section-row { display: flex; }
	.nav-sub .nav-sub-all { display: block; }
	.nav-catalog { display: block; }
	.nav-section > .nav-section-body { display: none; }
	.nav-section.is-open > .nav-section-body { display: flex; flex-direction: column; gap: 2px; }
	.nav-catalog > .nav-section-body { margin: 2px 0 6px 25px; padding-left: 8px; border-left: 1px solid var(--border); } /* линия — по середине иконки раздела, как у «Информации» (Дима 2026-12-03) */
	.nav-info > .nav-section-body { margin: 2px 0 6px 25px; }
	.nav-info .nav-subitem { font-size: 14.5px; } /* как пункты категорий (Дима 2026-12-03) */
	.nav-info .nav-subitem:not(.is-active) { font-weight: 500; color: var(--text); }
	/* контакты шторки на телефоне (Дима 2026-12-02): без часов работы, мессенджеры кучно слева */
	.sidebar-foot .contact-hours { display: none; }
	.sidebar-foot .social { justify-content: flex-start; gap: 10px; }
	.sidebar-foot { margin-top: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } /* контакты прижаты к низу, если меню короче экрана (Дима 2026-11-30) */
	.sidebar-x {
		display: grid; place-items: center; position: absolute; top: 12px; left: calc(min(320px, 100vw - 64px) + 8px);
		width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .35));
	}
	.nav-info { display: block; }
	.sidebar-overlay { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(43, 35, 32, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
	.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
	.topbar { transition: opacity .2s; }
	.sidebar-open .topbar { opacity: 0; pointer-events: none; } /* крестик шторки стоит на месте кнопок панели */
	.sidebar-open { overflow: hidden; }
	.main { margin-left: 0; }
	.topbar { gap: 8px; padding: 10px 16px; }
	.topnav { display: none; }
	.topbar .burger { display: grid; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--surface); color: var(--text); }
	/* панель телефона: слева бургер и поиск, логотип ровно по центру экрана, справа кабинет и корзина.
	   Блок кнопок «раскрыт» (display: contents) — поиск встаёт сразу после бургера, остальное отжато вправо */
	.topbar .topbar-logo { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
	.topbar-actions { display: contents; }
	.topbar .js-search-toggle { margin-right: auto; }
	.topbar-logo img { display: block; height: 38px; width: auto; }
	.topsearch { left: 16px; right: 16px; }
	.content { padding: 4px 16px 40px; }
	.footer { padding: 20px 16px; }
	.cat-chips { top: 64px; }
	.home-promo.has-video { grid-template-columns: minmax(0, 1fr); }
	.home-video { min-height: 0; aspect-ratio: 16 / 9; }
	.home-hero-decor { right: -16px; } /* поле контента здесь 16 px — иначе веточка выезжает за экран */
	/* планшет и телефон: приписка одной строкой слева под заголовком — справа угол занимает ветка */
	.home-hero-note { flex-basis: 100%; flex-direction: row; justify-content: flex-start; align-items: center; gap: .28em; margin: 26px 0 0 2px; font-size: 24px; transform: rotate(-3deg); transform-origin: left center; translate: none; }
	.home-hero-heart { width: .95em; height: .95em; margin-top: 0; }
}
@media (max-width: 760px) {
	.card .badges { top: 8px; left: 8px; gap: 4px; }
	.card .badges { right: 48px; } /* сердечко без подложки уже — плашке можно чуть шире */
	.card .badges .badge-img { height: calc(var(--badge-h, 32px) * .75); }
	.card .badge-tag { --bh: calc(var(--badge-h, 32px) * .75); }
	.grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pg-arrow { width: 38px; height: 38px; }
	.pg-thumb { width: 60px; height: 60px; }
	.nutrition-item b { font-size: 17px; }
	.nutrition-item span { font-size: 12px; }
	.card { padding: 6px; }
	.card .fav-btn { top: 9.1px; right: 7.1px; width: 34px; height: 34px; } /* плашка 24 px в 14 px от края карточки */
	.card .fav-btn svg { width: 22px; height: 22px; }
	.card-body { padding: 10px 4px 2px; }
	.section-head h2 { font-size: 24px; }
	.products-section { margin-top: 56px; }
	/* телефон: заголовок во всю ширину (справа место под веточку), ниже подзаголовок слева и приписка справа под веточкой —
	   подзаголовок переносится до приписки сам, на любой ширине */
	.home-hero { --decor-h: 122px; --decor-img: var(--decor-h); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; min-height: 0; padding: 22px 0 14px 0; }
	.home-hero-text { display: contents; }
	.home-hero h1, .home-hero p { position: relative; z-index: 1; }
	.home-hero h1 { grid-column: 1 / -1; margin-right: calc(var(--decor-h) * .8); font-size: 28px; } /* .8 — видимая ширина ветки (.92 высоты) минус её вылет за поле */
	.home-hero p { grid-column: 1 / -1; margin-right: calc(var(--decor-h) * .8); font-size: 13px; }
	/* на телефоне приписка одной строкой под заголовком, слева; ветка остаётся в углу (правки Штолле 2026-11-29) */
	.home-hero-note { grid-column: 1 / -1; justify-self: start; flex-direction: row; align-items: center; gap: .28em; margin: 24px 0 0 2px; font-size: 22px; transform: rotate(-3deg); transform-origin: left center; translate: none; }
	.home-hero-heart { width: .95em; height: .95em; margin-top: 0; }
	.home-hero-decor { top: 0; width: calc(var(--decor-h) * .92); } /* та же ветка, что на десктопе, дальше за краем экрана */
	.home-strip, .home-strip.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: 6px 12px; padding: 0 8px 0 20px; }
	.home-strip.has-image .home-strip-media { grid-column: 2; grid-row: 1 / span 2; }
	.home-strip-title { font-size: 22px; padding: 18px 0 0; }
	.home-strip-text { font-size: 13px; padding: 0 0 18px; }
	.home-strip.has-image { margin-top: 28px; }
	.home-strip-media img { height: calc(100% + 20px); }
	.home-strip.is-photo { margin-top: 20px; padding-right: 0; min-height: 0; }
	.banner, .banner-body { min-height: 0; }
	.banner-text { display: flex; flex-direction: column; }
	.banner-text .banner-media { position: relative; width: 100%; height: 200px; }
	.banner-image { aspect-ratio: 4 / 3; }
	.banner-fade { left: 0; right: 0; width: auto; top: 140px; bottom: auto; height: 61px; background: linear-gradient(0deg, var(--b-bg) 0%, transparent 100%); }
	.banner-body, .home-promo.has-video .banner-body { width: 100%; padding: 4px 20px 72px; gap: 10px; }
	.home-promo.has-video .banner-text .banner-media { width: 100%; }
	.home-promo.has-video .banner-fade { left: 0; }
	.banner-title, .home-promo.has-video .banner-title { font-size: 26px; }
	.banner-sub { font-size: 14px; }
	.banner-btn { height: 42px; padding: 0 18px; }
	.banners-nav { left: 50%; right: auto; bottom: 12px; translate: -50% 0; } /* на телефоне переключатель по центру */
	.banners-arrow { width: 38px; height: 38px; }
	.banners-dots { height: 38px; padding: 0 6px; }
	.home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.home-card { aspect-ratio: 3 / 2; min-height: 0; padding: 12px; } /* пропорции картинки: пирог остаётся в правой половине */
	.home-card-title { font-size: 16px; }
	.home-card-sub { display: none; }
	/* плитка маленькая, а вся она — ссылка: вместо «Смотреть →» только стрелка в кружке, иначе кнопка закрывает пирог */
	.home-card-btn { width: 32px; height: 32px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
	.archive-head h1, .product-title, .page-title { font-size: 26px; }
	/* приписка справа от заголовка в две строки (Дима 2026-11-30: под заголовком она липла к нему); длинный заголовок переносится сам */
	.archive-head.has-note { flex-wrap: nowrap; gap: 0; } /* без промежутка: центр приписки — ровно посередине между заголовком и краем */
	.archive-head.has-note .archive-head-text { flex: 0 1 auto; }
	/* приписка занимает всё место справа от заголовка и стоит посередине между ним и краем; половины из stolle_two_lines()
	   не рвутся внутри: влезает целиком — одна строка, нет — перенос между половинами (две строки) */
	.archive-note { flex: 1 1 0; min-width: min-content; margin: 0; padding: 0 6px; font-size: 20px; line-height: 1.05; text-align: center; white-space: normal; transform: rotate(-5deg); }
	.archive-note > span { display: inline-block; white-space: nowrap; }
	.product { padding: 16px; gap: 20px; }
	.buy-row { flex-wrap: wrap; }
	.stepper-lg { width: 140px; }
	.woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr; }
	.page-card { padding: 20px; }
}
@media (max-width: 480px) {
	.topbar-logo img, .sidebar .logo img { height: 34px; }
	.topbar-actions { gap: 6px; }
	.round-btn, .topbar .topbar-login, .topbar .cart-btn { width: 40px; height: 40px; }
	.topbar .cart-btn { padding: 0; justify-content: center; }
	.cart-btn-sum { display: none; }
	/* избранное на телефоне видно, пока кабинет выключен (Дима 2026-11-30): справа рядом с корзиной */
}
@media (max-width: 360px) {
	.topbar-logo img, .sidebar .logo img { height: 28px; } /* логотип по центру между поиском и кабинетом не должен их касаться */
}

/* ---------- Checkout (классический): форма слева карточками, сводка с оплатой справа ----------
   Поля — «подпись внутри рамки»: одна строка поля = 52 px вместе с подписью, соседние поля стоят в ряд. */
.stolle-hidden { display: none !important; }
.co-page .page-title { margin-bottom: 18px; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.co > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.co-main, .co-side { min-width: 0; }
.co-side { position: sticky; top: 96px; }
#customer_details { display: flex; flex-direction: column; gap: 16px; }
/* невидимый блок атрибуции WooCommerce (скрытые поля источника заказа) первым в колонке давал лишний отступ 16 px
   над «Контактами»: без собственной коробки поля остаются в форме, отступы карточек одинаковые (Дима 2026-12-02) */
#customer_details > wc-order-attribution-inputs { display: contents; }
.co-main > .co-cart { margin-bottom: 16px; }
.co-card { display: flex; flex-direction: column; gap: 12px; padding: 20px 24px 24px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); container-type: inline-size; }
.co-title { margin: 0; font-size: 22px; font-weight: 500; }
.co-grid { display: grid; gap: 10px; }
.co-grid-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-grid-address { grid-template-columns: minmax(0, 1fr) repeat(var(--xs, 5), 78px); }
.co-grid-address.co-grid-one { grid-template-columns: minmax(0, 1fr); }
.co-grid-when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.co-grid-when > .co-note { grid-column: 1 / -1; }
/* поле: подпись в рамке сверху, значение снизу */
.co .co-f { position: relative; margin: 0; padding: 0; min-width: 0; }
.co .co-f > label { position: absolute; z-index: 1; top: 7px; left: 13px; right: 12px; margin: 0; overflow: hidden; font-size: 12px; line-height: 16px; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.co .co-f .optional { display: none; }
.co .co-f .required { color: var(--accent); text-decoration: none; border: 0; }
.co .co-f .woocommerce-input-wrapper { display: block; }
.co .co-f input.input-text, .co .co-f select, .co .co-f textarea {
	display: block; width: 100%; height: 52px; margin: 0; padding: 22px 12px 6px;
	border: 1px solid var(--border); border-radius: 12px; background: var(--bg-sidebar);
	font-size: 15px; line-height: 22px; color: var(--text); transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.co .co-f select {
	-webkit-appearance: none; appearance: none; padding-right: 30px; cursor: pointer; text-overflow: ellipsis;
	background: var(--bg-sidebar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236E655F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 14px;
}
.co .co-f textarea { height: 76px; min-height: 52px; padding-top: 24px; resize: vertical; }
.co .co-f input.input-text::placeholder, .co .co-f textarea::placeholder { color: #B5AA9F; }
.co .co-f input.input-text:hover, .co .co-f select:hover, .co .co-f textarea:hover { border-color: #DCCBB8; }
.co .co-f input.input-text:focus, .co .co-f select:focus, .co .co-f textarea:focus { outline: 0; border-color: var(--accent); background-color: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.co .woocommerce-invalid input.input-text, .co .woocommerce-invalid select { border-color: #C4472D; }
.co .checkout-inline-error-message { margin: 4px 2px 0; font-size: 12px; line-height: 1.3; color: #9B3A1E; }
/* Дата — календарь вместо списка (checkout.js): у select нет указателя, клик ловит обёртка поля */
.co .co-f-cal select { pointer-events: none; }
.co .co-f-cal .woocommerce-input-wrapper { cursor: pointer; }
.co-cal {
	position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 304px; max-width: calc(100vw - 32px); padding: 12px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 12px 32px rgba(60, 40, 20, .16);
}
.co-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15px; }
.co-cal-nav { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.co-cal-nav:hover:not(:disabled) { background: var(--surface-warm); color: var(--accent); }
.co-cal-nav:disabled { opacity: .25; cursor: default; }
.co-cal-week, .co-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.co-cal-week span { padding: 4px 0; font-size: 12px; color: var(--text-muted); }
.co-cal-day {
	position: relative; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; transition: background .12s, color .12s;
}
.co-cal-day:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.co-cal-day:focus-visible, .co-cal-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.co-cal-day:focus:not(:focus-visible) { outline: 0; }
.co-cal-day:disabled { font-weight: 400; color: #C9BEB3; cursor: default; }
.co-cal-day.is-closed { text-decoration: line-through; }
.co-cal-day.is-today { box-shadow: inset 0 0 0 1px var(--border); }
.co-cal-day.is-selected, .co-cal-day.is-selected:hover { background: var(--accent); color: #fff; }
.co-cal-day.is-limited::after, .co-cal-legend i { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #E0782F; }
.co-cal-day.is-selected.is-limited::after { background: #fff; }
.co-cal-notes { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.co-cal-legend { position: relative; margin: 8px 0 0; padding-left: 12px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.co-cal-legend i { left: 0; top: 50%; bottom: auto; margin: -2.5px 0 0; }
.co-note.is-error { color: #9B3A1E; font-weight: 600; }
/* согласия над кнопкой заказа (CheckoutModule::consents) */
.co-consents { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 14px; }
.co-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--text); cursor: pointer; }
.co-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.co-check a { color: var(--accent); text-decoration: underline; }
.co #place_order:disabled, .co #place_order.is-blocked { opacity: .45; cursor: not-allowed; }
.co .co-f-wide { grid-column: 1 / -1; }

/* узкая карточка: адрес в два ряда, контакты в столбик */
@container (max-width: 720px) {
	.co-grid-address { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.co-grid-address .co-f-street { grid-column: span 3; }
	.co-grid-address.co-grid-one { grid-template-columns: minmax(0, 1fr); }
	.co-grid-address.co-grid-one .co-f-street { grid-column: auto; }
}
@container (max-width: 600px) {
	.co-grid-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.co-grid-contact > .co-f:nth-child(3) { grid-column: 1 / -1; }
}
@container (max-width: 420px) {
	.co-grid-contact { grid-template-columns: minmax(0, 1fr); }
	.co-grid-when { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } /* «Завтра, 2 ноября» шире, чем «09:00–11:00» */
	.co .co-grid-when select { padding-right: 26px; background-position: right 8px center; }
	.co .co-f-xs > label { left: 9px; right: 3px; font-size: 11.5px; } /* «Подъезд», «Домофон» в четверть ширины */
	.co .co-f-xs input.input-text { padding-left: 9px; padding-right: 6px; }
}

/* подсказки адреса DaData под полями «Улица» и «Дом» */
.co-suggest { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: min(520px, calc(100vw - 32px)); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(60, 40, 20, .14); }
.co-f-house .co-suggest { left: auto; right: 0; }
.co-suggest li { padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 1.3; cursor: pointer; }
.co-suggest li:hover, .co-suggest li.is-active { background: var(--accent-soft); color: var(--accent); }

/* доставка / самовывоз */
.co-fulfil { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.co-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--bg-sidebar); cursor: pointer; transition: border-color .15s, background-color .15s; }
.co-opt input, .co-point input { position: absolute; opacity: 0; pointer-events: none; }
.co-opt-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-warm); color: var(--brand); transition: background-color .15s, color .15s; }
.co-opt-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.co-opt-text b { font-size: 15px; font-weight: 700; }
.co-opt-text small { font-size: 13px; color: var(--text-muted); }
.co-opt:hover, .co-point:hover { border-color: #DCCBB8; }
.co-opt:has(input:checked), .co-point:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.co-opt:has(input:checked) .co-opt-icon { background: var(--accent); color: #fff; }
.co-opt:has(input:focus-visible), .co-point:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* адрес: подпись зоны и ссылка на карту под полями */
.co-address { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.co-address > .co-grid { flex: 1 1 100%; }
.co-address > .co-note { flex: 1 1 auto; }
.co-note { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.co-note:empty { display: none; }
.co-note.is-ok { color: var(--green); }
.co-note-when a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; } /* подсказка под выбором времени: ссылка на экспресс-доставку */
.co-note.is-warn { color: #9B5A1E; }
/* «Привезём за 45 минут» в оформлении (Express): видна при доставке всегда; is-off — условия не выполнены (причина ниже) */
.co-express { display: block; margin: 4px 0 14px; cursor: pointer; padding: 12px 14px; border: 1.5px solid #E9C9A5; border-radius: 14px; background: #FFF7EE; transition: border-color .15s, background .15s; }
.co-express.is-on { border-color: #CC7822; background: #FFF0DF; }
.co-express.is-off { border-color: var(--border); background: var(--surface-warm, #FBF6F0); }
.co-express-opt { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.co-express.is-off, .co-express.is-off .co-express-opt { cursor: default; }
.co-express-opt input { flex: none; width: 22px; height: 22px; margin: 0; border-radius: 5px; accent-color: #CC7822; cursor: inherit; }
/* доступна, но не отмечена — галочка мягко «зовёт» пульсирующим кольцом, рамка карточки ярче (Дима 2026-12-02) */
.co-express:not(.is-off):not(.is-on) { border-color: #CC7822; }
.co-express:not(.is-off):hover { background: #FFF0DF; }
.co-express:not(.is-off):not(.is-on) .co-express-opt input { animation: co-express-pulse 1.6s ease-out infinite; }
@keyframes co-express-pulse {
	0% { box-shadow: 0 0 0 0 rgba(204, 120, 34, .55); }
	70% { box-shadow: 0 0 0 9px rgba(204, 120, 34, 0); }
	100% { box-shadow: 0 0 0 0 rgba(204, 120, 34, 0); }
}
@media (prefers-reduced-motion: reduce) { .co-express-opt input { animation: none !important; } }
.co-express-hint { display: block; margin: 8px 0 0 34px; font-size: 13px; line-height: 1.4; color: #8A4E12; font-weight: 600; }
.co-express.is-on .co-express-hint { display: none; }
.co-express-badge { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; background: #CC7822; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.co-express.is-off .co-express-badge { background: #C9BEB3; }
.co-express-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-express-text b { font-size: 15px; }
.co-express-text small { font-size: 12.5px; line-height: 1.35; color: var(--text-muted); }
.co-express.is-off .co-express-text b { color: var(--text-muted); }
.co-express-why { display: block; margin: 8px 0 0 34px; font-size: 13px; line-height: 1.4; color: #9B5A1E; }
/* метка «45 мин» у товара в корзине (шторка и оформление) */
.ci-express { display: flex; align-items: center; gap: 3px; width: fit-content; margin-top: 3px; padding: 2px 7px; border-radius: 999px; background: #CC7822; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.co-line-body .ci-express { margin: 3px 0 2px; }
.stolle-zones-map-toggle { flex-basis: 100%; font-size: 13px; } /* всегда слева под подписью зоны — при раскрытии ссылка не прыгает */
.stolle-zones-map-toggle summary { cursor: pointer; color: var(--accent); font-weight: 600; list-style: none; }
.stolle-zones-map-toggle summary::-webkit-details-marker { display: none; }
.stolle-zones-map-toggle summary::after { content: ' ↓'; }
.stolle-zones-map-toggle[open] summary::after { content: ' ↑'; }
.stolle-zones-map-toggle .stolle-zones-map { margin-top: 8px; }

/* пекарни для самовывоза */
.co-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.co-point { position: relative; display: block; padding: 11px 14px 11px 42px; border: 1.5px solid var(--border); border-radius: var(--radius-md); background: var(--bg-sidebar); cursor: pointer; transition: border-color .15s, background-color .15s; }
.co-point::before { content: ''; position: absolute; top: 14px; left: 14px; width: 18px; height: 18px; border: 2px solid #CDBBA8; border-radius: 50%; background: var(--surface); box-sizing: border-box; transition: border .15s; }
.co-point:has(input:checked)::before { border: 5px solid var(--accent); }
.co-point-body { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.co-point-body b { font-size: 14px; }
.co-point-body span { font-size: 13px; }
.co-point-body small { font-size: 12px; color: var(--text-muted); }

/* товары — карточка слева (cart-items.php): фото | название, вариант, цена за шт. | счётчик | сумма | удалить;
   в узкой карточке счётчик и сумма уходят второй строкой */
.co-title-note { margin-left: 6px; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--text-muted); }
.co-lines { list-style: none; margin: 0; padding: 0; }
.co-line {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 92px 32px; grid-template-areas: "img body qty sum del";
	align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--border); transition: opacity .15s;
}
.co-line:first-child { border-top: 0; padding-top: 2px; }
.co-line.is-busy { opacity: .55; pointer-events: none; }
.co-line-img { grid-area: img; display: block; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-warm); }
.co-line-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.co-line-body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.co-line-name { font-size: 15px; font-weight: 600; }
.co-line-name:hover { color: var(--accent); }
.co-line-meta { font-size: 13px; color: var(--text-muted); }
.co-line-unit { font-size: 13px; color: var(--text-muted); }
.co-line.is-gift .co-line-unit { color: var(--accent); font-weight: 600; }
.co-line-qty { grid-area: qty; }
.co-line-giftqty { font-size: 14px; color: var(--text-muted); }
.co-line-sum { grid-area: sum; font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; }
.co-line-remove { grid-area: del; width: 32px; height: 32px; color: var(--text-muted); }
.co-line-remove:hover { color: var(--accent); background: var(--accent-soft); }
@container (max-width: 560px) {
	.co-line { grid-template-columns: 56px minmax(0, 1fr) auto 28px; grid-template-areas: "img body body del" "img qty sum sum"; gap: 6px 12px; }
	.co-line-img { width: 56px; height: 56px; }
	.co-line-sum { font-size: 15px; }
}
.co-review .totals { margin-top: 12px; }
.co-review .totals-grand { font-size: 20px; }
.woocommerce-remove-coupon { margin-left: 6px; font-size: 12px; color: var(--accent); }
.co-coupon { margin-top: 14px; }
.co-coupon.is-busy { opacity: .6; pointer-events: none; }
.co-coupon .pill { flex: none; }
.co-coupon-msg { margin-top: 6px; font-size: 13px; }
.co-coupon-msg:empty { display: none; }
.co-coupon-msg.is-ok { color: var(--green); }
.co-coupon-msg.is-err { color: #9B3A1E; }

/* оплата и кнопка */
.co #payment { margin-top: 16px; }
.co .wc_payment_methods { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.co .wc_payment_method { position: relative; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg-sidebar); transition: border-color .15s, background-color .15s; }
.co .wc_payment_method > input { position: absolute; opacity: 0; pointer-events: none; }
.co .wc_payment_method > label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
.co .wc_payment_method > label::before { content: ''; flex: none; width: 18px; height: 18px; border: 2px solid #CDBBA8; border-radius: 50%; background: var(--surface); box-sizing: border-box; transition: border .15s; }
.co .wc_payment_method > label img { max-height: 22px; width: auto; margin-left: auto; }
.co .wc_payment_method:has(> input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.co .wc_payment_method:has(> input:checked) > label::before { border: 5px solid var(--accent); }
.co .wc_payment_method:has(> input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.co .payment_box { padding: 0 14px 12px 42px; font-size: 13px; color: var(--text-muted); }
.co .payment_box p { margin: 0; }
.co .place-order { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.co #place_order { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; padding: 0 24px; border: 0; border-radius: var(--radius-btn); background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; }
.co #place_order:hover { background: var(--accent-hover); }
.stolle-checkout-notice { margin: 0; font-size: 13px; color: var(--text-muted); text-align: center; }
.co-page .woocommerce-error, .co-page .woocommerce-message, .co-page .woocommerce-info { list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.co-page .woocommerce-error { background: #FBE9E4; color: #9B3A1E; }
.co-page .woocommerce-error li + li { margin-top: 4px; }

@media (max-width: 1360px) {
	.co { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1199px) { /* уже форма зажата рядом со сводкой: сводка уходит под форму */
	.co { grid-template-columns: minmax(0, 1fr); }
	.co-side { position: static; }
}
@media (max-width: 760px) {
	.co-card { padding: 16px; border-radius: var(--radius-md); }
	.co-title { font-size: 20px; }
	.co .co-f input.input-text, .co .co-f select, .co .co-f textarea { font-size: 16px; } /* iOS не приближает поле при фокусе */
	.co-opt { gap: 10px; padding: 10px 12px; }
	.co-opt-icon { width: 34px; height: 34px; }
}

/* ---------- Избранное ---------- */
.card { position: relative; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #8a7f76; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.fav-btn:hover { color: var(--accent, #c4602b); }
.fav-btn.is-on { color: var(--accent, #c4602b); }
.fav-btn.is-on svg { fill: currentColor; }
.fav-btn-inline { position: static; margin-left: 8px; vertical-align: middle; box-shadow: none; background: transparent; }
.stolle-favorites { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ---------- окно заявки (inc/lead-form.php) ---------- */
.lead-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(40, 25, 12, .28); }
.lead-dialog::backdrop { background: rgba(43, 35, 32, .45); backdrop-filter: blur(2px); }
.lead-dialog[open] { animation: lead-in .18s ease-out; }
@keyframes lead-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.lead-form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 26px; }
.lead-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-warm); color: var(--text-muted); cursor: pointer; }
.lead-close:hover { color: var(--accent); }
.lead-title { padding-right: 36px; font-size: clamp(22px, 2vw, 26px); font-weight: 500; line-height: 1.15; }
.lead-text { margin-top: -6px; font-size: 14.5px; line-height: 1.5; color: var(--text-muted); }
.lead-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.lead-field input { height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--bg); font: inherit; font-size: 15px; font-weight: 500; color: var(--text); }
.lead-field input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.lead-field select { height: 48px; padding: 0 40px 0 14px; border: 1px solid var(--border); border-radius: var(--radius-btn); font: inherit; font-size: 15px; font-weight: 500; color: var(--text);
	appearance: none; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a7f76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; }
.lead-field select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
/* ловушка для ботов: людям не видна и не доступна с клавиатуры */
.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-error { margin-top: -4px; padding: 10px 12px; border-radius: var(--radius-btn); background: #FBE9E7; color: #9F2D20; font-size: 13.5px; line-height: 1.45; }
.lead-submit.is-busy { opacity: .7; cursor: progress; }
.lead-done { align-items: center; text-align: center; }
.lead-done .lead-title { padding-right: 0; }
.lead-done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--surface-warm); color: var(--accent); }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.lead-consent input { flex: none; margin-top: 2px; accent-color: var(--accent); }
.lead-consent a { color: var(--accent); text-decoration: underline; }
.lead-submit[disabled] { opacity: .45; cursor: not-allowed; }
.lead-note { margin-top: -4px; font-size: 13px; line-height: 1.45; text-align: center; color: var(--text-muted); }
.lead-note a { font-weight: 700; color: var(--accent); white-space: nowrap; }
