:root {
  --bg: #faf8f6;
  --surface: #ffffff;
  --text: #1f1b1a;
  --muted: #7a716d;
  --line: #ece7e3;
  --accent: #d6456b;
  --accent-dark: #b8335a;
  --accent-soft: #fdebf0;
  --ok: #1f9d55;
  --ok-soft: #e7f6ee;
  --warn: #c77700;
  --warn-soft: #fff3df;
  --danger: #d33a2c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(40, 20, 10, .07);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(84px + var(--safe-b));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.container { max-width: 1180px; margin: 0 auto; padding: 16px; outline: none; min-height: 60vh; }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.logo-mark { background: var(--accent); color: #fff; border-radius: 10px; padding: 4px 8px; font-size: 16px; letter-spacing: .02em; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; padding: 0; color: inherit; }
.icon-btn:active { background: var(--bg); }
.lang-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* ---------- Common ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 14px 20px; font-weight: 700; font-size: 16px; background: var(--accent); color: #fff; min-height: 50px; transition: background .15s, transform .05s; text-align: center; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: #d9d3cf; color: #fff; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f4f0ed; }
.btn-wa { background: #25d366; }
.btn-wa:hover { background: #1eb956; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 11px; }
.link { color: var(--accent); font-weight: 700; background: none; border: 0; padding: 0; }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin-bottom: 12px; background: none; border: 0; padding: 4px 0; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .emoji { font-size: 48px; margin-bottom: 8px; }
.loader { display: grid; place-items: center; padding: 80px 0; }
.loader span { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pills / tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tag-out { background: #f1edea; color: var(--muted); }
.tag-low { background: var(--warn-soft); color: var(--warn); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Banners ---------- */
.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 18px; padding: 0 16px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 100%; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; position: relative; min-height: 170px; background: linear-gradient(135deg, #fde3ea 0%, #fff4e6 100%); display: flex; align-items: flex-end; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0) 65%); }
.banner-text { position: relative; z-index: 1; padding: 20px; }
.banner.has-img .banner-text { color: #fff; }
.banner-title { font-size: 24px; font-weight: 800; line-height: 1.15; }
.banner-sub { margin-top: 6px; font-weight: 500; opacity: .9; }
@media (min-width: 760px) { .banner { flex-basis: calc(50% - 6px); min-height: 220px; } }

/* ---------- Search & filters ---------- */
.search { position: relative; margin-bottom: 12px; }
.search input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px 0 46px; font-size: 16px; outline: none; }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 15px; top: 15px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 15px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; user-select: none; cursor: pointer; }
.toggle input { appearance: none; width: 42px; height: 24px; background: #ddd6d1; border-radius: 999px; position: relative; transition: background .15s; margin: 0; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked { background: var(--ok); }
.toggle input:checked::after { transform: translateX(18px); }
.filters-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.pcard { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pcard-img { position: relative; aspect-ratio: 1 / 1; background: #f4efeb; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-img .tag { position: absolute; left: 8px; top: 8px; }
.pcard.out .pcard-img img, .pcard.out .ph { opacity: .45; filter: grayscale(.6); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; background: linear-gradient(135deg, #fbe7ec, #fdf3e7); }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.pcard-name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pcard-price { font-size: 17px; font-weight: 800; margin-top: auto; }
.pcard-add { min-height: 40px; padding: 8px; font-size: 14px; border-radius: 11px; }

/* ---------- Product page ---------- */
.product { display: grid; gap: 18px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; } }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: #f4efeb; border-radius: var(--radius); overflow: hidden; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track > * { flex: 0 0 100%; scroll-snap-align: center; height: 100%; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #f4efeb; }
.thumbs button.active { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 2px rgba(0,0,0,.3); }
.dots span.active { background: #fff; width: 18px; border-radius: 4px; }
.product-price { font-size: 30px; font-weight: 800; }
.product-desc { white-space: pre-line; color: #4a4340; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.qty button { width: 46px; height: 48px; border: 0; background: none; font-size: 22px; font-weight: 600; }
.qty button:disabled { color: #ccc; }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 700; font-size: 17px; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 36px; height: 38px; font-size: 18px; }
.qty.sm input { width: 36px; font-size: 15px; }
.buy-row { display: flex; gap: 10px; }
.buy-row .btn { flex: 1; }

/* ---------- Cart ---------- */
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: #f4efeb; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph { font-size: 28px; }
.cart-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cart-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 0; }
.warn-line { font-size: 13px; color: var(--warn); font-weight: 600; margin-top: 4px; }
.summary-line { display: flex; justify-content: space-between; padding: 4px 0; }
.summary-total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.free-badge { display: flex; gap: 10px; align-items: center; background: var(--ok-soft); color: var(--ok); font-weight: 700; padding: 12px 14px; border-radius: var(--radius-sm); }
.free-hint { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; padding: 12px 14px; border-radius: var(--radius-sm); }
.progress { height: 6px; background: rgba(214,69,107,.18); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 4px; }
.cart-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.cart-layout > *, .stack > * { min-width: 0; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } .sticky { position: sticky; top: 80px; } }

/* ---------- Forms ---------- */
.field { display: block; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 12px 14px; font-size: 16px; outline: none; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.options { display: grid; gap: 8px; }
.options.two { grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15px; min-height: 52px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.opt .ico { font-size: 20px; }
.dates { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.dates .opt { flex: 0 0 auto; flex-direction: column; gap: 0; align-items: center; padding: 10px 14px; min-width: 82px; text-align: center; }
.section-title { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.error { color: var(--danger); font-weight: 600; font-size: 14px; }
.alert { background: #fdecea; color: var(--danger); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.auth-box { max-width: 420px; margin: 10px auto; }
.tabs { display: flex; background: #efe9e5; border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 11px; font-weight: 700; color: var(--muted); }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ---------- Account ---------- */
.bonus-card { background: linear-gradient(135deg, var(--accent) 0%, #ef7f6a 100%); color: #fff; border-radius: var(--radius); padding: 20px; }
.bonus-card .big { font-size: 34px; font-weight: 800; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: var(--surface); }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #f1edea; }
.status-new { background: #e8f0ff; color: #2b5fd9; }
.status-in_progress { background: var(--warn-soft); color: var(--warn); }
.status-assembled { background: #f1e8ff; color: #7a3fd1; }
.status-delivered { background: var(--ok-soft); color: var(--ok); }
.status-cancelled { background: #f1edea; color: var(--muted); }
.addr { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Success ---------- */
.success { text-align: center; max-width: 480px; margin: 20px auto; }
.success .check-ico { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; font-size: 38px; }

/* ---------- Bottom cart bar ---------- */
.cart-bar { position: fixed; z-index: 15; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); background: var(--text); color: #fff; border-radius: 16px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 560px; margin: 0 auto; }
.cart-bar .free { font-size: 12px; font-weight: 600; opacity: .85; display: block; }

/* ---------- Footer ---------- */
.footer { max-width: 1180px; margin: 30px auto 0; padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: grid; gap: 14px; }
@media (min-width: 700px) { .footer { grid-template-columns: repeat(3, 1fr); } }
.footer b { color: var(--text); }
.footer a { color: var(--accent); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--text); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Выбор точки ---------- */
.branch-bar { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 13px; padding: 8px 16px; }
.branch-bar u { text-decoration: none; opacity: .75; font-weight: 600; }
.sheet { position: fixed; inset: 0; z-index: 45; background: rgba(20,10,5,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { background: var(--surface); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-box { border-radius: 22px; } }
.branch-opt { display: block; width: 100%; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; margin-top: 10px; }
.branch-opt.active { border-color: var(--accent); background: var(--accent-soft); }
.branch-opt b { display: block; font-size: 16px; }
.branch-opt span { color: var(--muted); font-size: 13px; }
.other-branch { font-size: 13px; color: var(--muted); }
.other-branch button { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 0; font-size: 13px; }
.pcard-other { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ---------- Акция недели ---------- */
.promo-hero { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 16px; background: linear-gradient(135deg, #d6456b 0%, #f08a5d 100%); color: #fff; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); }
.promo-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.15) 70%); }
.promo-body { position: relative; z-index: 1; padding: 22px 20px; width: 100%; }
.promo-label { display: inline-block; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.promo-title { font-size: 28px; font-weight: 800; margin: 12px 0 6px; line-height: 1.15; }
.promo-text { margin: 0 0 8px; font-size: 15px; opacity: .95; white-space: pre-line; }
.promo-until { margin: 0 0 12px; font-size: 13px; font-weight: 700; opacity: .9; }
.promo-cta { background: #fff; color: var(--accent-dark); min-height: 46px; }
.promo-cta:hover { background: #fff3f6; }
@media (min-width: 760px) { .promo-hero { min-height: 280px; } .promo-title { font-size: 36px; } .promo-body { padding: 32px; max-width: 640px; } }
.promo-pop .promo-hero { margin-bottom: 12px; }
.shelf-head { margin: 4px 0 10px; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
@media (min-width: 640px) { .shelf { grid-auto-columns: 30%; } }
@media (min-width: 980px) { .shelf { grid-auto-columns: 23%; } }
.old-price { color: var(--muted); font-weight: 600; font-size: .78em; }
.sale-badge { position: absolute; right: 8px; top: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 999px; }
.sale-badge.inline { position: static; vertical-align: middle; font-size: 14px; }

.promo-products { position: relative; z-index: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding: 0 20px 20px; scrollbar-width: none; }
.promo-products::-webkit-scrollbar { display: none; }
.promo-item { background: #fff; color: var(--text); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.promo-item.out { opacity: .6; }
.promo-item-img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f4efeb; display: grid; place-items: center; font-size: 30px; }
.promo-item-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-item-img .sale-badge { top: 4px; right: 4px; font-size: 11px; padding: 2px 6px; }
.promo-item-name { font-size: 12px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.promo-item-price { font-size: 14px; font-weight: 800; }
.promo-item-price s { color: var(--muted); font-weight: 600; font-size: 11px; }
@media (min-width: 760px) { .promo-products { padding: 0 32px 28px; grid-auto-columns: 150px; } }

/* ---------- Боковое меню: каталог и фильтры ---------- */
.layout { max-width: 1180px; margin: 0 auto; }
.layout > .container { max-width: none; }
.menu-btn { margin-left: -10px; }
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; max-width: 86vw; background: var(--surface); z-index: 46; transform: translateX(-105%); transition: transform .22s ease; overflow-y: auto; padding: 14px 12px calc(24px + var(--safe-b)); box-shadow: 0 0 40px rgba(0,0,0,.18); }
.sidebar.open { transform: none; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(20,10,5,.42); z-index: 45; }
body.no-scroll { overflow: hidden; }
.side-head { padding: 0 4px 6px 12px; font-size: 18px; }
.side-nav { display: grid; gap: 2px; }
.side-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.side-link:hover { background: #f4f0ed; }
.side-link.active { background: var(--accent-soft); color: var(--accent-dark); }
.side-count { color: var(--muted); font-weight: 600; font-size: 13px; }
.side-title { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; margin: 18px 12px 6px; }
.side-filters { display: grid; gap: 14px; padding: 4px 12px; }
.side-filters .input { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.crumbs a { color: var(--accent); font-weight: 700; }
.crumbs .sep { opacity: .6; }
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; padding: 0 16px; }
  .layout > .container { padding-left: 4px; padding-right: 0; }
  .sidebar { position: sticky; top: 112px; align-self: start; transform: none; width: auto; max-width: none; max-height: calc(100vh - 124px); box-shadow: none; background: transparent; padding: 16px 0; z-index: 1; transition: none; }
  .menu-btn, .sidebar-close { display: none; }
  .sidebar-overlay { display: none !important; }
  .side-head, .side-apply { display: none; }
  #chips { display: none; }
}
.side-apply { position: sticky; bottom: calc(-24px - var(--safe-b)); background: var(--surface); padding: 14px 12px 4px; margin-top: 10px; }

/* ---------- сроки акций ---------- */
.sale-note { font-size: 12px; font-weight: 700; color: var(--accent-dark); line-height: 1.2; }
.sale-note.hot { color: var(--danger); }
.promo-item .sale-note { font-size: 11px; }
.sale-cta { background: var(--accent-soft); color: var(--accent-dark); padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.promo-hero.auto { background: linear-gradient(135deg, #c2185b 0%, #e94e77 45%, #f6a04d 100%); }

/* ---------- подкатегории ---------- */
.side-sub { display: grid; gap: 2px; margin: 2px 0 6px 14px; padding-left: 8px; border-left: 2px solid var(--line); }
.side-sub .side-link { font-size: 14px; padding: 8px 10px; }
.side-caret { color: var(--muted); font-size: 12px; margin-left: 4px; }
.subchips { margin-bottom: 14px; }
.subchips .chip { display: inline-flex; align-items: center; }
@media (min-width: 900px) { .subchips { display: flex !important; flex-wrap: wrap; margin-left: 0; margin-right: 0; padding-left: 0; } }
