/* ================================================
   МАГАЗИН — БЫТОВАЯ ХИМИЯ И КОФЕ ИЗ ТУРЦИИ
   style.css  v3 — redesign
   ================================================ */

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --red:        #E30A17;
  --red-dark:   #b80812;
  --white:      #ffffff;
  --bg:         #f2f2f7;
  --card-bg:    #ffffff;
  --text:       #1c1c1e;
  --text-2:     #3a3a3c;
  --text-muted: #8e8e93;
  --border:     #e5e5ea;
  --green:      #34c759;
  --green-bg:   #e8fbed;
  --orange:     #ff9500;
  --purple:     #7c3aed;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.18);

  --r:    20px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════════════
   HEADER / HERO
═══════════════════════════════════════════════ */
.hero {
  background: linear-gradient(180deg, #fff8f0 0%, #ffffff 100%);
  padding: 0 0 20px;
  border-bottom: 1px solid var(--border);
}

/* ── top bar: logo + contacts ── */
.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0 16px;
}
.hero-logo { display: inline-flex; align-items: center; gap: 11px; }
.hero-logo__mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(227,10,23,0.25);
  flex-shrink: 0; overflow: hidden;
}
.hero-logo__mark img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-logo__name { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.hero-logo__tag  { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

.hero-contacts { display: flex; align-items: center; gap: 10px; }
.hero-contacts__socials { display: flex; gap: 7px; }
.hero-contacts__social {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), opacity var(--transition);
}
.hero-contacts__social:hover { transform: scale(1.08); opacity: 0.9; }
.hero-contacts__social--tg  { background: #29b6f6; }
.hero-contacts__social--max { background: #b33dfa; }

.hero-phone {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 10px;
  background: var(--bg); border-radius: 100px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition);
}
.hero-phone:hover { border-color: var(--red); }
.hero-phone__icon {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: white;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-phone__text { display: flex; flex-direction: column; line-height: 1.1; }
.hero-phone__num { font-size: 13.5px; font-weight: 700; color: var(--text); }
.hero-phone__sub { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }

/* ── promo banners ── */
.promo-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.promo-card {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 28px 30px;
  min-height: 178px;
}
.promo-card--primary {
  background: linear-gradient(135deg, #ffd86a 0%, #ffb347 55%, #ff8a3c 100%);
  color: #3d2200;
  display: flex; align-items: center;
}
.promo-card__body { position: relative; z-index: 2; max-width: 68%; }
.promo-card__tag {
  display: inline-block;
  background: rgba(255,255,255,0.5); backdrop-filter: blur(8px);
  color: #5a2d00; font-size: 10.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 12px;
}
.promo-card__title {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.025em; margin-bottom: 10px;
}
.promo-card__sub {
  font-size: 13.5px; color: rgba(61,34,0,0.72);
  line-height: 1.45; margin-bottom: 16px; max-width: 400px;
}
.promo-card__cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: #3d2200; color: #ffd86a;
  padding: 10px 18px; border-radius: 100px;
  font-size: 13.5px; font-weight: 700;
  transition: transform var(--transition), background var(--transition);
}
.promo-card__cta:hover { transform: translateY(-1px); background: #1a0f00; }

.promo-card__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.promo-card__blob { position: absolute; border-radius: 50%; }
.promo-card__blob--1 {
  width: 260px; height: 260px; top: -90px; right: -70px;
  background: radial-gradient(circle at 40% 40%, #fff7d6 0%, rgba(255,247,214,0) 70%);
}
.promo-card__blob--2 {
  width: 140px; height: 140px; bottom: -40px; right: 110px;
  background: radial-gradient(circle, rgba(255,255,255,0.38) 0%, transparent 65%);
}
.promo-card__blob--3 {
  width: 80px; height: 80px; top: 34px; right: 44px;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.32);
}

.promo-card--secondary {
  background: linear-gradient(135deg, #d4ecff 0%, #b8dcff 100%);
  color: #0b3a6b;
  display: flex; flex-direction: column; justify-content: center;
}
.promo-card__icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,0.55); backdrop-filter: blur(8px);
  color: #0b3a6b;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.promo-card__small-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 5px; }
.promo-card__small-text  { font-size: 13px; color: rgba(11,58,107,0.7); line-height: 1.45; }

/* ─── CATEGORY TILES ─────────────────────── */
.cat-tiles-wrap {
  overflow-x: auto; scrollbar-width: none;
  margin: 0 -20px; padding: 0 20px 6px;
}
.cat-tiles-wrap::-webkit-scrollbar { display: none; }
.cat-tiles { display: flex; gap: 10px; min-width: max-content; }

.cat-tile {
  position: relative;
  width: auto; min-height: 104px; height: auto;
  border-radius: 20px;
  cursor: pointer; flex-shrink: 0;
  overflow: hidden;
  border: 2.5px solid transparent;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 11px 11px 9px;
  text-align: left;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.cat-tile.active { border-color: rgba(0,0,0,0.4); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

.cat-tile__label {
  position: relative; z-index: 2;
  font-size: 11.5px; font-weight: 700; line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  word-break: break-word;
  hyphens: auto;
}

.cat-tile__emoji {
  position: relative; z-index: 2;
  font-size: 30px; line-height: 1;
  align-self: flex-end;
  display: block;
}

/* Цвета плиток */
.cat-tile--all    { background: linear-gradient(140deg, #2c2c2e 0%, #48484a 100%); }
.cat-tile--new    { background: linear-gradient(140deg, #ff375f 0%, #ff6b6b 100%); }
.cat-tile--coffee { background: linear-gradient(140deg, #795548 0%, #a0785a 100%); }
.cat-tile--wash   { background: linear-gradient(140deg, #2196f3 0%, #42a5f5 100%); }
.cat-tile--soft   { background: linear-gradient(140deg, #7b61ff 0%, #a78bfa 100%); }
.cat-tile--dish   { background: linear-gradient(140deg, #f59e0b 0%, #fbbf24 100%); }
.cat-tile--clean  { background: linear-gradient(140deg, #10b981 0%, #34d399 100%); }
.cat-tile--stain  { background: linear-gradient(140deg, #f97316 0%, #fb923c 100%); }
.cat-tile--bleach { background: linear-gradient(140deg, #64748b 0%, #94a3b8 100%); }
.cat-tile--scale  { background: linear-gradient(140deg, #06b6d4 0%, #22d3ee 100%); }
.cat-tile--soap   { background: linear-gradient(140deg, #ec4899 0%, #f472b6 100%); }

/* ═══════════════════════════════════════════════
   STICKY TOOLBAR
═══════════════════════════════════════════════ */
.toolbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.toolbar__inner { display: flex; align-items: center; gap: 10px; padding: 10px 0; }

/* Search */
.search-box { position: relative; flex: 1; min-width: 0; }
.search-box__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
  display: flex; align-items: center;
}
.search-box input {
  width: 100%; padding: 11px 40px 11px 40px;
  border: none; border-radius: 12px;
  font-size: 15px; font-family: inherit;
  background: var(--bg); color: var(--text);
  transition: background var(--transition), box-shadow var(--transition);
}
.search-box input:focus { outline: none; background: var(--white); box-shadow: 0 0 0 2px var(--text); }
.search-box input::placeholder { color: var(--text-muted); }
.search-box__clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 20px; line-height: 1;
  display: none; padding: 2px; border-radius: 50%;
}
.search-box__clear:hover { color: var(--red); }
.search-box__clear.visible { display: block; }

/* Cart button */
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--white);
  padding: 11px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.cart-btn:hover { background: #000; transform: translateY(-1px); }
.cart-btn__count {
  background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 800;
  min-width: 19px; height: 19px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-btn__count.hidden { display: none; }

/* ─── FILTERS BAR ────────────────────────────── */
.filters-bar { background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.filters-bar::-webkit-scrollbar { display: none; }
.filters-bar__inner { display: flex; gap: 0; min-width: max-content; }
.filter-tab {
  padding: 11px 18px; font-size: 13px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
  background: none; border-top: none; border-left: none; border-right: none;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active { color: var(--red); border-bottom-color: var(--red); }

/* ─── CHIPS ──────────────────────────────────── */
.chips-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.chips-bar::-webkit-scrollbar { display: none; }
.chips-bar__inner { display: flex; gap: 6px; padding: 0 16px; min-width: max-content; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 100px;
  font-size: 13px; font-weight: 500; color: var(--text);
  white-space: nowrap; cursor: pointer;
  transition: all var(--transition);
}
.chip:hover   { border-color: var(--text); }
.chip.active  { background: var(--text); border-color: var(--text); color: var(--white); }
.chip.active svg { stroke: white; }
.chip__icon   { display: flex; align-items: center; width: 16px; height: 16px; flex-shrink: 0; }
.chip__icon svg { width: 16px; height: 16px; }
.chip__icon--sm { width: 14px; height: 14px; }
.chip__icon--sm svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════
   CATALOG HEADER
═══════════════════════════════════════════════ */
.catalog-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0 10px; flex-wrap: wrap;
}
.catalog-header__count { font-size: 14px; color: var(--text-muted); }
.catalog-header__count strong { color: var(--text); font-weight: 700; }
.sort-select { display: flex; align-items: center; gap: 8px; }
.sort-select label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.sort-select select {
  padding: 8px 30px 8px 12px; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236b7280' stroke-width='2'><path d='M4 6l4 4 4-4'/></svg>") right 8px center / 16px no-repeat;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: border-color var(--transition);
}
.sort-select select:focus { outline: none; border-color: var(--text); }

/* ═══════════════════════════════════════════════
   SECTION HEADING
═══════════════════════════════════════════════ */
.section-heading {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  scroll-margin-top: 130px;
}
.section-heading__icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--text); color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.section-heading__icon svg { width: 17px; height: 17px; }
.section-heading__text h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.025em; }
.section-heading__text p  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.section-heading__count {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-muted);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   PRODUCT GRID + CARDS
═══════════════════════════════════════════════ */
main { padding: 0 0 120px; }
.catalog-section { margin-bottom: 44px; scroll-margin-top: 130px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

/* ─── PRODUCT CARD ───────────────────────────── */
.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex; flex-direction: column;
  cursor: pointer; position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
}
.product-card:active { transform: translateY(0); }
.product-card--out { opacity: 0.6; }

/* image */
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #f7f7f7;
  overflow: hidden;
}
.product-card__img {
  width: 100%; height: 100%; object-fit: contain; padding: 14px;
  transition: transform 0.32s ease;
}
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card--out .product-card__img  { filter: grayscale(0.5); }
.product-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.product-card__img-placeholder svg { width: 44px; height: 44px; opacity: 0.12; }

/* badges */
.product-card__badges {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  pointer-events: none; padding: 8px;
}
.product-card__badge {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 7px; border-radius: 7px;
  line-height: 1.4;
}
.product-card__badge           { background: var(--red); color: white; }
.product-card__badge--new      { background: var(--green); color: white; }
.product-card__badge--out      { background: #bbb; color: white; }
.product-card__badge--sale     { background: var(--green); color: white; margin-left: auto; }
.product-card__badges:has(.product-card__badge--sale:only-child) { justify-content: flex-end; }

/* body */
.product-card__body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; flex: 1;
}
.product-card__brand {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.product-card__name {
  font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 2px; flex: 1;
}
.product-card__desc {
  font-size: 11.5px; color: var(--text-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}
.product-card__footer {
  display: flex; align-items: center;
  justify-content: space-between; gap: 6px;
  margin-top: auto; padding-top: 8px;
}

/* prices */
.product-card__price {
  font-size: 17px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; white-space: nowrap; line-height: 1.2;
}
.product-card__price-wrap { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.product-card__price-old  { font-size: 12px; color: var(--text-muted); text-decoration: line-through; white-space: nowrap; }
.product-card__price--out { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* add button */
.product-card__action { display: flex; align-items: center; flex-shrink: 0; }
.product-card__add {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg); color: var(--text);
  border-radius: 50%;
  font-size: 22px; font-weight: 300; line-height: 1;
  transition: background var(--transition), color var(--transition), transform 0.15s ease;
}
.product-card__add:hover { background: var(--red); color: white; transform: scale(1.1); }
.product-card__add:active { transform: scale(0.94); }

/* ─── CARD STEPPER ───────────────────────────── */
.card-stepper {
  display: flex; align-items: center;
  background: var(--red); border-radius: 100px;
  overflow: hidden;
}
.card-stepper__btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300; color: white;
  transition: background var(--transition);
  flex-shrink: 0;
}
.card-stepper__btn:hover { background: rgba(0,0,0,0.14); }
.card-stepper__val { min-width: 24px; text-align: center; font-size: 14px; font-weight: 700; color: white; }

/* ═══════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════ */
.empty-state { display: none; text-align: center; padding: 80px 20px; }
.empty-state.visible { display: block; }
.empty-state__icon { margin: 0 auto 16px; opacity: 0.18; }
.empty-state__icon svg { width: 64px; height: 64px; }
.empty-state h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state p  { color: var(--text-muted); font-size: 15px; }

/* ═══════════════════════════════════════════════
   PRODUCT POPUP
═══════════════════════════════════════════════ */
.popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.popup-overlay.active { opacity: 1; visibility: visible; }

.popup {
  background: var(--white); width: 100%; max-width: 560px;
  border-radius: 24px 24px 0 0;
  overflow-y: auto; max-height: 92vh; position: relative;
  transform: translateY(50px); opacity: 0;
  transition: transform 0.32s cubic-bezier(0.34,1.1,0.64,1), opacity 0.25s ease;
}
.popup-overlay.active .popup { transform: translateY(0); opacity: 1; }

/* drag indicator */
.popup::before {
  content: ''; display: block;
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 10px auto 0;
}

.popup__close {
  position: absolute; top: 12px; right: 14px; z-index: 10;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.popup__close:hover { background: var(--border); }

.popup__img-wrap {
  aspect-ratio: 16/9; background: #f7f7f7;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.popup__img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }

.popup__body { padding: 20px 22px 28px; }
.popup__brand { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 7px; }
.popup__name  { font-size: 19px; font-weight: 800; line-height: 1.25; margin-bottom: 9px; letter-spacing: -0.015em; }
.popup__badge {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin-bottom: 11px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.popup__desc  { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; }

.popup__purposes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.popup__purpose-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px;
}
.popup__tag-icon { display: flex; align-items: center; width: 14px; height: 14px; }
.popup__tag-icon svg { width: 14px; height: 14px; }

/* wholesale */
.popup__wholesale {
  background: #fff8e6; border: 1.5px solid #fde68a; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.popup__wholesale-title { font-size: 11.5px; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; }
.popup__wholesale-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #fde68a; }
.popup__wholesale-row:last-child { border-bottom: none; padding-bottom: 0; }
.popup__wholesale-label { font-size: 13px; color: #78350f; font-weight: 500; }
.popup__wholesale-price { font-size: 15px; font-weight: 800; color: #92400e; }
.popup__wholesale-row--active .popup__wholesale-label { color: var(--text); }
.popup__wholesale-row--active .popup__wholesale-price { color: var(--red); }
.popup__wholesale-row--active { background: rgba(255,255,255,0.6); border-radius: 8px; padding: 6px 8px; margin: 0 -8px; border-bottom: none; }

.popup__price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.popup__price-group { display: flex; align-items: baseline; gap: 8px; }
.popup__price      { font-size: 28px; font-weight: 800; color: var(--red); letter-spacing: -0.025em; }
.popup__price--out { font-size: 16px; color: var(--text-muted); font-weight: 600; }
.popup__old-price  { font-size: 16px; color: var(--text-muted); text-decoration: line-through; }

.popup__qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.popup__qty-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text); transition: background var(--transition), color var(--transition); }
.popup__qty-btn:hover { background: var(--bg); color: var(--red); }
.popup__qty-val { width: 38px; text-align: center; font-size: 15px; font-weight: 700; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

.popup__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.popup__btn {
  padding: 13px; border-radius: 14px;
  font-size: 14px; font-weight: 700; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all var(--transition);
}
.popup__btn--cart  { background: var(--bg); border: 1.5px solid var(--border); color: var(--text); }
.popup__btn--cart:hover { border-color: var(--text); }
.popup__btn--order { background: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(227,10,23,0.3); }
.popup__btn--order:hover { background: var(--red-dark); transform: translateY(-1px); }

@media (min-width: 640px) {
  .popup { border-radius: 24px; max-height: 88vh; transform: translateY(16px) scale(0.97); }
  .popup-overlay { align-items: center; padding: 20px; }
  .popup-overlay.active .popup { transform: none; }
  .popup::before { display: none; }
}

/* ═══════════════════════════════════════════════
   CART DRAWER
═══════════════════════════════════════════════ */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); z-index: 1100; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px;
  background: var(--white); z-index: 1200;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-xl);
}
.cart-drawer.active { transform: translateX(0); }

.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.cart-drawer__title { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.cart-drawer__title span { font-size: 11.5px; font-weight: 700; background: var(--red); color: white; padding: 2px 8px; border-radius: 100px; }
.cart-drawer__close { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--bg); transition: background var(--transition); }
.cart-drawer__close:hover { background: var(--border); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 14px 22px; }

.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.cart-empty__icon { display: flex; justify-content: center; margin-bottom: 14px; opacity: 0.22; }
.cart-empty p { font-size: 15px; }

.cart-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item__img { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); flex-shrink: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item__info  { flex: 1; min-width: 0; }
.cart-item__brand { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }
.cart-item__name  { font-size: 13px; font-weight: 500; line-height: 1.35; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item__price { font-size: 14px; font-weight: 800; color: var(--text); margin-top: 4px; }
.cart-item__controls { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; flex-shrink: 0; }
.cart-item__qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.cart-item__qty-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--text); transition: background var(--transition); }
.cart-item__qty-btn:hover { background: var(--bg); }
.cart-item__qty-val { width: 28px; text-align: center; font-size: 13px; font-weight: 700; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.cart-item__remove { font-size: 12px; color: var(--text-muted); transition: color var(--transition); }
.cart-item__remove:hover { color: var(--red); }

.cart-drawer__foot { padding: 18px 22px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }
.cart-total__label { font-size: 14px; color: var(--text-muted); }
.cart-total__val   { font-size: 22px; font-weight: 800; }
.cart-checkout-btn {
  width: 100%; padding: 15px;
  background: var(--red); color: var(--white); border-radius: 14px;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(227,10,23,0.3);
  transition: background var(--transition), transform var(--transition);
}
.cart-checkout-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════
   ORDER FORM
═══════════════════════════════════════════════ */
.form-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(6px); z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity 0.22s, visibility 0.22s; }
.form-overlay.active { opacity: 1; visibility: visible; }

.form-modal {
  background: var(--white); border-radius: 24px;
  padding: 28px 26px; width: 100%; max-width: 420px; position: relative;
  transform: scale(0.95); opacity: 0;
  transition: transform 0.28s cubic-bezier(0.34,1.1,0.64,1), opacity 0.22s;
  box-shadow: var(--shadow-xl); max-height: 92vh; overflow-y: auto;
}
.form-overlay.active .form-modal { transform: scale(1); opacity: 1; }

.form-modal__close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--bg); transition: background var(--transition); }
.form-modal__close:hover { background: var(--border); }
.form-modal__title { font-size: 20px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.015em; }
.form-modal__sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-field input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 13px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--bg); transition: border-color var(--transition), box-shadow var(--transition); }
.form-field input:focus { outline: none; border-color: var(--text); background: var(--white); box-shadow: 0 0 0 3px rgba(28,28,30,0.08); }
.form-field input::placeholder { color: var(--text-muted); }

.form-section-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; margin-top: 4px; }
.pay-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pay-radio { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.pay-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-radio__box { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; margin-top: 2px; transition: border-color var(--transition), background var(--transition); }
.pay-radio__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--white); transform: scale(0); transition: transform 0.2s cubic-bezier(0.34,1.5,0.64,1); }
.pay-radio input:checked ~ .pay-radio__box { border-color: var(--red); background: var(--red); }
.pay-radio input:checked ~ .pay-radio__box .pay-radio__dot { transform: scale(1); }
.pay-radio__info { line-height: 1.4; }
.pay-radio__title { font-size: 14px; font-weight: 600; display: block; }
.pay-radio__hint  { font-size: 12px; color: var(--text-muted); display: block; margin-top: 1px; }
.pay-radio__badge { display: inline-block; margin-top: 3px; background: var(--green-bg); color: var(--green); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; }

.order-summary { background: var(--bg); border-radius: 13px; padding: 13px 15px; margin-bottom: 13px; border: 1px solid var(--border); }
.order-summary__row { display: flex; justify-content: space-between; align-items: center; }
.order-summary__label { font-size: 13px; color: var(--text-muted); }
.order-total__val  { font-size: 18px; font-weight: 800; }
.order-total__old  { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.order-total__new  { font-size: 18px; font-weight: 800; color: var(--green); }
.order-total__save { font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 2px 7px; border-radius: 100px; margin-left: 4px; }

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin-bottom: 13px; }
.form-checkbox input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.form-checkbox__box { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; border: 2px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: border-color var(--transition), background var(--transition); }
.form-checkbox__check { width: 11px; height: 7px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) scale(0) translateY(-1px); transition: transform 0.2s cubic-bezier(0.34,1.5,0.64,1); }
.form-checkbox input:checked ~ .form-checkbox__box { border-color: var(--red); background: var(--red); }
.form-checkbox input:checked ~ .form-checkbox__box .form-checkbox__check { transform: rotate(-45deg) scale(1) translateY(-1px); }
.form-checkbox__text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.form-checkbox__text a { color: var(--red); text-decoration: underline; }

.form-submit { width: 100%; padding: 14px; background: var(--red); color: var(--white); border-radius: 14px; font-size: 15px; font-weight: 700; margin-top: 4px; box-shadow: 0 4px 14px rgba(227,10,23,0.3); transition: background var(--transition), transform var(--transition); }
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-success { display: none; text-align: center; padding: 16px 0 8px; }
.form-success.visible { display: block; }
.form-success__icon  { font-size: 52px; margin-bottom: 10px; }
.form-success__title { font-size: 19px; font-weight: 800; margin-bottom: 7px; }
.form-success__text  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════
   FLOATING WIDGETS — компактнее на мобилке
═══════════════════════════════════════════════ */
.float-widgets {
  position: fixed; bottom: 20px; right: 16px; z-index: 500;
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
}
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer; border: none; text-decoration: none; flex-shrink: 0;
}
.float-btn:hover { transform: scale(1.08) translateY(-2px); box-shadow: var(--shadow-lg); }

.float-btn--phone { background: var(--green); color: white; animation: pulse-phone 2.8s infinite; }
.float-btn--tg    { background: #29b6f6; color: white; }
.float-btn--max   { background: var(--purple); color: white; }
.float-btn--cart  { background: var(--red); color: white; display: none; position: relative; }
.float-btn--cart .js-cart-count {
  position: absolute; top: -3px; right: -3px;
  background: var(--white); color: var(--red);
  font-size: 10.5px; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  border: 1.5px solid var(--red);
}
.float-btn--cart .js-cart-count.hidden { display: none; }
.float-btn--top { background: var(--white); color: var(--text); border: 1.5px solid var(--border); opacity: 0; pointer-events: none; transform: scale(0.8); }
.float-btn--top.visible { opacity: 1; pointer-events: all; transform: scale(1); }

.float-btn[data-tip] { position: relative; }
.float-btn[data-tip]::before {
  content: attr(data-tip); position: absolute; right: calc(100% + 9px); top: 50%; transform: translateY(-50%);
  background: var(--text); color: var(--white); font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.float-btn[data-tip]:hover::before { opacity: 1; }

@keyframes pulse-phone {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,199,89,0.4), var(--shadow-md); }
  50%      { box-shadow: 0 0 0 10px rgba(52,199,89,0), var(--shadow-md); }
}

/* ═══════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════ */
#singleToast {
  position: fixed; top: 18px; right: 18px; z-index: 2000;
  background: var(--text); color: var(--white);
  padding: 11px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-10px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34,1.26,0.64,1);
  white-space: nowrap; max-width: calc(100vw - 36px);
}
#singleToast.toast--visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#singleToast.toast--success { background: var(--green); }
#singleToast.toast--error   { background: var(--red); }
#singleToast.toast--shake   { animation: shake 0.36s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-5px); }
  75%     { transform: translateX(5px); }
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer { background: #1c1c1e; color: rgba(255,255,255,0.6); padding: 44px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; }
.footer__logo { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 8px; letter-spacing: -0.015em; }
.footer__logo em { font-style: normal; color: #ff6068; }
.footer__tagline { font-size: 13.5px; line-height: 1.6; max-width: 340px; }
.footer__cta { margin-top: 16px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: white; border-radius: 100px; font-size: 13.5px; font-weight: 700; border: none; cursor: pointer; transition: background var(--transition), transform var(--transition); }
.footer__cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.footer__contacts { text-align: right; }
.footer__phone { font-size: 20px; font-weight: 700; color: var(--white); display: block; margin-bottom: 5px; transition: color var(--transition); }
.footer__phone:hover { color: #ff6068; }
.footer__contact-name { font-size: 13px; margin-bottom: 13px; }
.footer__socials { display: flex; gap: 9px; justify-content: flex-end; }
.footer__social { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform var(--transition), opacity var(--transition); }
.footer__social:hover { transform: scale(1.1); }
.footer__social--tg  { background: #29b6f6; }
.footer__social--max { background: var(--purple); }
.footer__bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__bottom a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--white); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { padding: 0 0 14px; }
  .hero-top { padding: 12px 0 14px; }
  .hero-logo__mark { width: 38px; height: 38px; border-radius: 11px; }
  .hero-logo__name { font-size: 15px; }

  /* на мобилке телефон — только иконка */
  .hero-phone {
    padding: 8px 14px 8px 10px;
    background: var(--bg); border-color: var(--border);
    border-radius: 100px;
  }
  .hero-phone__icon { width: 26px; height: 26px; border-radius: 50%; background: var(--red); }
  .hero-phone__icon svg { color: white; stroke: white; }
  .hero-phone__num { font-size: 12px; }
  .hero-phone__sub { display: none; }
  .hero-contacts__social { width: 36px; height: 36px; }

  .promo-row { grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
  .promo-card { padding: 20px 22px; min-height: 150px; }
  .promo-card--primary { min-height: 160px; }
  .promo-card__body { max-width: 76%; }
  .promo-card__title { font-size: clamp(18px, 5.5vw, 24px); }
  .promo-card__sub { font-size: 12.5px; margin-bottom: 13px; }
  .promo-card--secondary { min-height: auto; padding: 16px 18px; }
  .promo-card__small-title { font-size: 15px; }
  .promo-card__small-text { font-size: 12px; }

  /* плитки на мобилке */
  .cat-tile { width: auto; min-height: 88px; height: auto; border-radius: 16px; padding: 9px 9px 8px; }
  .cat-tile__label { font-size: 10px; }
  .cat-tile__emoji { font-size: 22px; }

  .cart-btn { display: none; }
  .float-btn--cart { display: flex; }

  /* 2 колонки на мобилке */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card__body { padding: 8px 10px 11px; }
  .product-card__name { font-size: 12.5px; }
  .product-card__desc { display: none; }
  .product-card__price { font-size: 15px; }
  .product-card__footer { flex-direction: column; align-items: flex-start; gap: 7px; }
  .product-card__action { width: 100%; }
  .product-card__add { width: 100%; border-radius: 10px; height: 36px; }
  .card-stepper { width: 100%; justify-content: space-between; border-radius: 10px; }
  .card-stepper__val { flex: 1; }

  .popup__body { padding: 16px 18px 24px; }
  .popup__name { font-size: 17px; }
  .popup__price { font-size: 24px; }
  .popup__actions { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 22px; }
  .footer__contacts { text-align: left; }
  .footer__socials  { justify-content: flex-start; }
  .footer__bottom   { flex-direction: column; align-items: flex-start; gap: 6px; }

  .float-widgets { bottom: 14px; right: 12px; gap: 8px; }
  .float-btn { width: 46px; height: 46px; }
  #singleToast { top: 12px; right: 12px; font-size: 13px; padding: 10px 16px; }
}

@media (max-width: 380px) {
  .product-grid { gap: 6px; }
  .cat-tile { min-height: 84px; }
  .form-modal { padding: 22px 18px; }
}

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ═══════════════════════════════════════════════
   SKELETON LOADER
═══════════════════════════════════════════════ */
.skeleton-wrap { padding: 18px 0 0; }
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.skeleton-card {
  background: var(--white); border-radius: 16px;
  overflow: hidden; padding: 0 0 12px;
}
.sk {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
.sk--img  { aspect-ratio: 1; border-radius: 0; margin-bottom: 10px; }
.sk--line { height: 10px; margin: 0 12px 8px; }
.sk--line-short { width: 40%; height: 9px; }
.sk--line-med   { width: 65%; height: 13px; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════
   STICKY CART BAR
═══════════════════════════════════════════════ */
.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  padding: 10px 16px 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.cart-bar--visible { transform: translateY(0); }
.cart-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; }
.cart-bar__info { display: flex; flex-direction: column; }
.cart-bar__count { font-size: 12px; color: var(--text-muted); }
.cart-bar__total { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.cart-bar__btn {
  background: var(--red); color: white;
  padding: 13px 24px; border-radius: 14px;
  font-size: 15px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(227,10,23,0.3);
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.cart-bar__btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* когда cart-bar видима — добавляем padding к main */
body:has(.cart-bar--visible) main { padding-bottom: 180px; }

/* ═══════════════════════════════════════════════
   SEARCH SUGGESTIONS
═══════════════════════════════════════════════ */
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border: 1px solid var(--border);
  overflow: hidden; z-index: 300;
  display: none;
}
.search-suggestions.visible { display: block; }
.sugg-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.sugg-item:last-child { border-bottom: none; }
.sugg-item:hover { background: var(--bg); }
.sugg-item__img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; background: var(--bg); padding: 4px; flex-shrink: 0; }
.sugg-item__info { flex: 1; min-width: 0; }
.sugg-item__name  { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sugg-item__price { font-size: 12px; font-weight: 700; color: var(--red); margin-top: 2px; }

/* ═══════════════════════════════════════════════
   CARD — флаг страны + оптовая плашка
═══════════════════════════════════════════════ */
.product-card__flag {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 16px; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
  z-index: 2;
}
.product-card__wholesale-badge {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  background: rgba(255,149,0,0.92); color: white;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 3px 7px; border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════════
   CART FLY ANIMATION
═══════════════════════════════════════════════ */
.cart-fly {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red);
  transform: translate(-50%, -50%);
  animation: cartFly 0.65s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes cartFly {
  0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3); }
}

/* ═══════════════════════════════════════════════
   ПРOMO COL (2 маленьких карточки справа)
═══════════════════════════════════════════════ */
.promo-col {
  display: flex; flex-direction: column; gap: 10px;
}
.promo-card--how {
  background: linear-gradient(135deg, #e8fbed 0%, #d1fae5 100%);
  color: #065f46;
  display: flex; flex-direction: column; justify-content: center;
  flex: 1;
}
.promo-card__icon--green { background: rgba(255,255,255,0.6); color: #065f46; }
.promo-how-btn {
  margin-top: 8px; font-size: 12px; font-weight: 700;
  color: #059669; background: none; border: none; cursor: pointer;
  padding: 0; text-align: left;
  transition: opacity var(--transition);
}
.promo-how-btn:hover { opacity: 0.7; }

/* ═══════════════════════════════════════════════
   HOW TO ORDER MODAL
═══════════════════════════════════════════════ */
.how-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  z-index: 1400; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}
.how-overlay.active { opacity: 1; visibility: visible; }

.how-modal {
  background: var(--white); border-radius: 24px;
  padding: 28px 24px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow-xl); position: relative;
  transform: scale(0.95); transition: transform 0.28s cubic-bezier(0.34,1.1,0.64,1);
  max-height: 90vh; overflow-y: auto;
}
.how-overlay.active .how-modal { transform: scale(1); }
.how-modal__close {
  position: absolute; top: 14px; right: 16px;
  font-size: 22px; color: var(--text-muted); line-height: 1;
  background: none; border: none; cursor: pointer;
}
.how-modal__title { font-size: 20px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.015em; }

.how-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.how-step  { display: flex; gap: 14px; align-items: flex-start; }
.how-step__num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: white;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.how-step__title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.how-step__text  { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.how-modal__cta {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px;
  background: #29b6f6; color: white; border-radius: 14px;
  font-size: 15px; font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
}
.how-modal__cta:hover { opacity: 0.9; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════
   FORM SUCCESS — TG кнопка
═══════════════════════════════════════════════ */
.form-success__tg {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 11px 20px;
  background: #29b6f6; color: white; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  transition: opacity var(--transition);
}
.form-success__tg:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════════
   CART DRAWER — кнопка очистить
═══════════════════════════════════════════════ */
.cart-drawer__clear-btn {
  font-size: 12.5px; color: var(--text-muted); font-weight: 500;
  transition: color var(--transition); padding: 4px 6px;
}
.cart-drawer__clear-btn:hover { color: var(--red); }

/* ═══════════════════════════════════════════════
   TILE — счётчик товаров
═══════════════════════════════════════════════ */
.cat-tile__bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
}
.cat-tile__count {
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.18);
  padding: 2px 6px; border-radius: 100px;
  line-height: 1.4;
}
.cat-tile__emoji {
  font-size: 28px; line-height: 1;
  display: block;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE additions
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-col { flex-direction: row; }
  .promo-card--secondary,
  .promo-card--how { flex: 1; min-height: 100px; }
  .promo-card__small-title { font-size: 13px; }
  .promo-card__small-text  { font-size: 11px; }
  .promo-card__icon { width: 30px; height: 30px; margin-bottom: 6px; }
  /* cart bar только на мобилке */
  .cart-bar { display: block; }
  span.hero-phone__text {
    display: none;
}
}
@media (min-width: 769px) {
  .cart-bar { display: none; }
}
/* ═══════════════════════════════════════════════
   НОВЫЕ СТИЛИ v5
═══════════════════════════════════════════════ */

/* --- Ссылка Акции в шапке --- */
.hero-promo-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #e63946, #ff6b6b);
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(230,57,70,.35);
  transition: opacity .18s, transform .18s;
  letter-spacing: .02em;
}
.hero-promo-link:hover { opacity: .88; transform: translateY(-1px); }

/* --- Карточка скидок (заменяет secondary) --- */
.promo-card--discounts {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff; padding: 14px 16px; border-radius: var(--r);
  display: flex; flex-direction: column; gap: 8px;
}
.promo-card__disc-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #94a3b8; margin-bottom: 2px;
}
.promo-disc-list { display: flex; flex-direction: column; gap: 6px; }
.promo-disc-item {
  display: flex; align-items: flex-start; gap: 10px;
}
.promo-disc-pct {
  font-size: 18px; font-weight: 900; color: #fbbf24; min-width: 44px;
  line-height: 1;
}
.promo-disc-pct--big { font-size: 22px; color: #34d399; }
.promo-disc-label {
  font-size: 12px; color: #e2e8f0; line-height: 1.35;
  display: flex; flex-direction: column;
}
.promo-disc-label small { font-size: 10px; color: #94a3b8; margin-top: 1px; }

/* --- Плитки категорий: сетка --- */
.cat-tiles-header {
  display: flex; align-items: center; justify-content: flex-end;
  margin-bottom: 10px;
}
.brand-pick-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: 20px; cursor: pointer; font-family: inherit;
  transition: background .18s;
}
.brand-pick-btn:hover { background: rgba(255,255,255,.25); }

.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  overflow: visible; /* убираем горизонтальный скролл */
}
@media (max-width: 480px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* Плитка Акции */
.cat-tile--promo { background: linear-gradient(135deg, #e63946, #c1121f); }
.cat-tile--promo.active,
.cat-tile--promo:hover { background: linear-gradient(135deg, #c1121f, #9d0208); }

/* --- Бейдж АКЦИЯ на карточке --- */
.product-card__badge--promo {
  background: linear-gradient(135deg, #e63946, #ff6b6b);
  color: #fff;
}

/* --- Цена "за N шт" --- */
.product-card__price-hint {
  font-size: 10px; color: #64748b; font-weight: 400;
}

/* --- Кнопка "Выбрать" для комбо-товара --- */
.product-card__add--combo {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 700; padding: 6px 10px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: opacity .18s;
}
.product-card__add--combo:hover { opacity: .85; }

/* --- Combo Picker Modal --- */
.combo-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.6);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.combo-overlay.active { opacity: 1; pointer-events: all; }
.combo-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 440px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: translateY(20px); transition: transform .2s; padding: 24px;
  position: relative;
}
.combo-overlay.active .combo-modal { transform: translateY(0); }
.combo-modal__close {
  position: absolute; top: 16px; right: 16px; background: #f1f5f9;
  border: none; border-radius: 50%; width: 30px; height: 30px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #64748b;
}
.combo-modal__close:hover { background: #e2e8f0; color: #1e293b; }
.combo-modal__title { font-size: 18px; font-weight: 800; color: #1e293b; margin-bottom: 4px; }
.combo-modal__sub { font-size: 12px; color: #64748b; margin-bottom: 18px; }
.combo-variants { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.combo-variant-btn {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border: 2px solid #e2e8f0;
  border-radius: 10px; padding: 10px 14px; cursor: pointer;
  font-family: inherit; transition: all .15s; text-align: left;
}
.combo-variant-btn:hover { border-color: #7c3aed; background: #faf5ff; }
.combo-variant-btn--selected { border-color: #7c3aed; background: #faf5ff; }
.combo-variant-color {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(0,0,0,.1);
}
.combo-variant-name { flex: 1; font-size: 14px; font-weight: 500; color: #1e293b; }
.combo-variant-cnt {
  min-width: 24px; height: 24px; background: #7c3aed; color: #fff;
  border-radius: 50%; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.combo-variant-btn:not(.combo-variant-btn--selected) .combo-variant-cnt { background: transparent; }
.combo-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.combo-selected-info { font-size: 13px; color: #64748b; }
.combo-modal__add {
  display: flex; align-items: center; gap: 6px;
  background: #7c3aed; color: #fff; border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: opacity .18s;
}
.combo-modal__add:disabled { opacity: .4; cursor: not-allowed; }
.combo-modal__add:not(:disabled):hover { opacity: .88; }

/* --- Brand Picker Modal --- */
.brand-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.6);
  z-index: 500; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.brand-overlay.active { opacity: 1; pointer-events: all; }
.brand-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: translateY(20px); transition: transform .2s;
}
.brand-overlay.active .brand-modal { transform: translateY(0); }
.brand-modal__head {
  padding: 18px 20px 14px; border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.brand-modal__title { font-size: 17px; font-weight: 800; color: #1e293b; }
.brand-modal__close {
  background: #f1f5f9; border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #64748b;
}
.brand-modal__close:hover { background: #e2e8f0; color: #1e293b; }
.brand-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px;
}
@media (max-width: 400px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-card {
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  border-radius: 12px; padding: 14px 10px; text-align: center;
  cursor: pointer; font-family: inherit; transition: all .18s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.brand-card:hover { border-color: #2563eb; background: #eff6ff; transform: translateY(-2px); }
.brand-card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-card__icon svg { width: 20px; height: 20px; }
.brand-card__name { font-size: 13px; font-weight: 700; color: #1e293b; }
.brand-card__sub { font-size: 10px; color: #94a3b8; }
.brand-card__count { font-size: 10px; color: #64748b; background: #e2e8f0; border-radius: 10px; padding: 1px 6px; }

/* --- Акции на главной --- */
.main-promos {
  margin: 14px 0 4px;
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.main-promos::-webkit-scrollbar { display: none; }
.main-promo-card {
  min-width: 260px; max-width: 320px; background: #fff;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  border: 1px solid #e2e8f0; flex-shrink: 0;
  display: flex; flex-direction: column;
}
.main-promo-card__img {
  width: 100%; height: 140px; object-fit: cover; display: block;
}
.main-promo-card__body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.main-promo-card__tag {
  font-size: 9px; font-weight: 800; color: #fff;
  background: #e63946; padding: 2px 7px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .06em; align-self: flex-start;
}
.main-promo-card__title { font-size: 13px; font-weight: 700; color: #1e293b; line-height: 1.35; }
.main-promo-card__desc { font-size: 11px; color: #64748b; line-height: 1.4; flex: 1; }
.main-promo-card__btn {
  background: #2563eb; color: #fff; border: none; border-radius: 7px;
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; align-self: flex-start;
  transition: opacity .18s;
}
.main-promo-card__btn:hover { opacity: .85; }

/* --- Promo detail modal --- */
.promo-overlay-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,.6);
  z-index: 600; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.promo-overlay-modal.active { opacity: 1; pointer-events: all; }
.promo-detail-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 660px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: translateY(20px); transition: transform .2s; position: relative;
}
.promo-overlay-modal.active .promo-detail-modal { transform: translateY(0); }
.promo-detail-modal__close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.4); border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.promo-detail-modal__close:hover { background: rgba(0,0,0,.6); }
.promo-detail-modal__body { padding: 20px 22px 24px; }
.promo-detail-modal__title { font-size: 18px; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.promo-detail-modal__desc { font-size: 14px; color: #475569; line-height: 1.6; margin-bottom: 18px; }
.promo-detail-products-title { font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 12px; }
.product-grid--compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* --- Корзина: инфо о скидках --- */
.cart-discount-info { padding: 8px 12px; margin-bottom: 2px; }
.cart-discount-applied {
  font-size: 13px; color: #16a34a; font-weight: 600;
  background: #f0fdf4; border-radius: 8px; padding: 8px 12px;
  border: 1px solid #bbf7d0;
}
.cart-promo-warning {
  font-size: 12px; color: #92400e; font-weight: 600;
  background: #fffbeb; border-radius: 8px; padding: 8px 12px;
  border: 1px solid #fde68a;
}
.cart-item__combo-label {
  font-size: 10px; color: #7c3aed; font-weight: 600;
  margin-top: 2px;
}

/* --- Popup: badges row --- */
.popup__badges-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px;
}
.popup__badge {
  font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 6px; background: #f1f5f9; color: #475569;
}
.popup__badge--promo {
  background: linear-gradient(135deg, #e63946, #ff6b6b);
  color: #fff;
}

/* --- Order summary discount note --- */
.order-discount-note {
  font-size: 12px; color: #92400e; background: #fffbeb;
  border-radius: 6px; padding: 6px 10px; margin-top: 6px;
  border: 1px solid #fde68a;
}

/* --- Скидки в order summary --- */
.order-total__old { text-decoration: line-through; color: #94a3b8; font-size: 13px; }
.order-total__new { font-weight: 700; color: #16a34a; }
.order-total__save { font-size: 11px; background: #dcfce7; color: #166534; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.order-total__val { font-weight: 700; }

/* --- Responsive правки --- */
@media (max-width: 480px) {
  .promo-card--discounts { font-size: 12px; }
  .promo-disc-pct { font-size: 16px; min-width: 38px; }
  .promo-disc-pct--big { font-size: 19px; }
}

/* ═══════════════════════════════════════════════
   ADDRESS FIELD — Dadata подсказки
═══════════════════════════════════════════════ */

.form-field--address { position: relative; }

.form-field__required {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #e63946;
  background: #fff0f0; border-radius: 4px; padding: 2px 7px;
  margin-left: 8px; vertical-align: middle;
  display: inline-block;
}
.form-field__required--ok {
  color: #16a34a; background: #f0fdf4;
}
.form-field__required--phone {
  color: #2563eb; background: #eff6ff;
}

/* Обёртка инпута */
.address-input-wrap {
  position: relative; display: flex; align-items: center;
}
.address-input-wrap__icon {
  position: absolute; left: 12px; color: #94a3b8; pointer-events: none;
  display: flex; align-items: center;
}
.address-input {
  width: 100%; padding: 11px 36px 11px 40px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #1e293b;
  background: #fff; transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.address-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.address-input.input--error {
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230,57,70,.12);
  animation: shake .3s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}

/* Кнопка очистить */
.address-clear-btn {
  position: absolute; right: 10px;
  background: #f1f5f9; border: none; border-radius: 50%;
  width: 22px; height: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; opacity: 0; pointer-events: none;
  transition: opacity .18s, background .18s;
}
.address-clear-btn.visible { opacity: 1; pointer-events: all; }
.address-clear-btn:hover { background: #e2e8f0; color: #475569; }

/* Выпадающие подсказки */
.address-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); z-index: 200;
  max-height: 260px; overflow-y: auto;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity .16s, transform .16s;
  scrollbar-width: thin;
}
.address-suggestions.visible {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.addr-sugg-item {
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background .12s;
}
.addr-sugg-item:last-child { border-bottom: none; }
.addr-sugg-item:hover,
.addr-sugg-item--active { background: #eff6ff; }
.addr-sugg-item__main {
  font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.35;
}
.addr-sugg-item__sub {
  font-size: 11px; color: #94a3b8; margin-top: 2px; line-height: 1.3;
}
.addr-sugg-hint {
  padding: 10px 14px; font-size: 12px; color: #94a3b8; font-style: italic;
}

/* Плашка выбранного адреса */
.address-chosen {
  margin-top: 6px;
}
.address-chosen__inner {
  display: flex; align-items: flex-start; gap: 8px;
  border-radius: 10px; padding: 10px 12px;
  border: 1.5px solid;
}
.address-chosen--ok .address-chosen__inner {
  background: #f0fdf4; border-color: #86efac; color: #166534;
}
.address-chosen--phone .address-chosen__inner {
  background: #eff6ff; border-color: #bfdbfe; color: #1e40af;
}
.address-chosen--ok svg { color: #16a34a; flex-shrink: 0; margin-top: 2px; }
.address-chosen--phone svg { color: #2563eb; flex-shrink: 0; margin-top: 2px; }
.address-chosen__text {
  flex: 1; font-size: 13px; font-weight: 600; line-height: 1.4;
}
.address-chosen__edit {
  background: transparent; border: none; cursor: pointer;
  font-size: 14px; padding: 0 2px; opacity: .7; flex-shrink: 0;
  transition: opacity .15s;
}
.address-chosen__edit:hover { opacity: 1; }

/* Кнопка "сообщу оператору" */
.address-tel-option {
  margin-top: 8px;
}
.address-tel-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1.5px dashed #cbd5e1; border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 600;
  color: #64748b; cursor: pointer; font-family: inherit;
  transition: border-color .18s, color .18s, background .18s;
  width: 100%;
}
.address-tel-btn:hover {
  border-color: #2563eb; color: #2563eb; background: #eff6ff;
}
.address-tel-btn svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   ИСПРАВЛЕНИЯ v5.1
═══════════════════════════════════════════════ */

/* 1. Шапка мобилка — скрыть TG и MAX */
@media (max-width: 600px) {
  .hero-socials--desktop { display: none !important; }
}

/* 2. Плитки — растягиваем на всю ширину */
.cat-tiles {
  grid-template-columns: repeat(4, 1fr) !important;
  width: 100%;
}
@media (max-width: 600px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 380px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr) !important; }
}
.cat-tile {
  width: 100% !important;
  min-width: 0 !important;
}

/* 3. z-index: float-widgets выше cart-bar */
.float-widgets { z-index: 600 !important; }
.cart-bar { z-index: 400 !important; }

/* На мобилке когда cart-bar видима — поднимаем виджеты выше неё */
@media (max-width: 768px) {
  body:has(.cart-bar--visible) .float-widgets {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

/* 4. Баннер скидок — как настоящий баннер */
.promo-card--discounts {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 180px;
}
.promo-card__disc-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.disc-blob {
  position: absolute; border-radius: 50%;
  opacity: .18; filter: blur(28px);
}
.disc-blob--1 { width: 140px; height: 140px; background: #fbbf24; top: -30px; right: -20px; }
.disc-blob--2 { width: 100px; height: 100px; background: #34d399; bottom: -20px; left: 20px; }
.promo-card__disc-inner {
  position: relative; z-index: 1;
  padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.promo-card__disc-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: #94a3b8;
}
.promo-disc-list { display: flex; flex-direction: column; gap: 8px; }
.promo-disc-item { display: flex; align-items: flex-start; gap: 10px; }
.promo-disc-item--big { padding: 6px 0; }
.promo-disc-pct {
  font-size: 20px; font-weight: 900; color: #fbbf24;
  min-width: 48px; line-height: 1; flex-shrink: 0;
}
.promo-disc-pct--big { font-size: 26px; color: #34d399; }
.promo-disc-label {
  font-size: 12px; color: #e2e8f0; line-height: 1.35;
  display: flex; flex-direction: column;
}
.promo-disc-label small { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.promo-card__disc-cta {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #e2e8f0; border-radius: 8px; padding: 7px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .18s;
  align-self: flex-start; margin-top: auto;
}
.promo-card__disc-cta:hover { background: rgba(255,255,255,.2); }

/* Убираем старые стили promo-col */
.promo-col { display: contents !important; }

/* ═══════════════════════════════════════════════
   ИСПРАВЛЕНИЯ v5.2 — финальные
═══════════════════════════════════════════════ */

/* Шапка — выравниваем hero-top на мобилке */
@media (max-width: 600px) {
  .hero-top {
    flex-wrap: nowrap;
    align-items: center;
  }
  .hero-contacts {
    gap: 8px;
  }
  .hero-promo-link {
    font-size: 11px;
    padding: 4px 9px;
  }
  .hero-phone__text { display: none; }
  .hero-phone {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-phone__icon { margin: 0; }
}

/* promo-row — убираем promo-col, два баннера рядом */
.promo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .promo-row { grid-template-columns: 1fr; }
}

/* Баннер скидок полностью заменяет прежний */
.promo-card--discounts {
  min-height: 200px;
}

/* Страница прайса — кнопка назад */
.promo-back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f1f5f9; border-radius: 10px; padding: 10px 18px;
  color: #475569; text-decoration: none; font-size: 13px; font-weight: 600;
  transition: background .18s; border: none; cursor: pointer;
}
.promo-back-btn:hover { background: #e2e8f0; color: #1e293b; }

/* cart-bar — safe area поддержка */
@media (max-width: 768px) {
  .cart-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

/* Ссылка на акции в шапке — активная страница */
.hero-promo-link--active {
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%) !important;
}

/* Убираем promo-col из старых стилей */
.promo-col { display: contents; }

/* ═══════════════════════════════════════════════
   COOKIE CONSENT BANNER
═══════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: #1e293b; color: #e2e8f0;
  padding: 14px 20px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__text { font-size: 13px; line-height: 1.5; flex: 1; min-width: 200px; }
.cookie-banner__text a { color: #93c5fd; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner__btn {
  padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; font-family: inherit; text-decoration: none; display: inline-block;
  transition: opacity .18s;
}
.cookie-banner__btn:hover { opacity: .85; }
.cookie-banner__btn--ok { background: #2563eb; color: #fff; pointer-events: auto !important; touch-action: manipulation; -webkit-tap-highlight-color: rgba(0,0,0,0.1); }
.cookie-banner__btn--more { background: rgba(255,255,255,.1); color: #e2e8f0; }

/* ═══════════════════════════════════════════════
   BRAND PICK BUTTON — более заметная
═══════════════════════════════════════════════ */
.brand-pick-btn {
  background: rgba(255,255,255,.22) !important;
  border: 1.5px solid rgba(255,255,255,.45) !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
}
.brand-pick-btn:hover { background: rgba(255,255,255,.35) !important; }

/* ═══════════════════════════════════════════════
   ДЕСКТОП: показывать все float-виджеты
═══════════════════════════════════════════════ */
@media (min-width: 769px) {
  .float-btn--cart { display: flex !important; }
}

/* ═══════════════════════════════════════════════
   FORM SUCCESS SVG ICON
═══════════════════════════════════════════════ */
.form-success__icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: #f0fdf4; border-radius: 50%;
  margin: 0 auto 16px;
}
.form-success__icon svg { display: block; }

/* Кнопка редактирования адреса — SVG */
.address-chosen__edit {
  display: flex !important;
  align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(0,0,0,.06) !important;
  color: currentColor;
}
.address-chosen__edit:hover { background: rgba(0,0,0,.12) !important; }

/* ═══════════════════════════════════════════════
   КНОПКА БРЕНДЫ В ТУЛБАРЕ
═══════════════════════════════════════════════ */
.toolbar-brand-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f1f5f9; color: #334155;
  border: 1.5px solid #e2e8f0;
  font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: 10px; cursor: pointer; font-family: inherit;
  white-space: nowrap; flex-shrink: 0;
  transition: background .18s, border-color .18s;
}
.toolbar-brand-btn:hover { background: #e2e8f0; border-color: #cbd5e1; }
.toolbar-brand-btn svg { color: #64748b; }
@media (max-width: 480px) {
  .toolbar-brand-btn span { display: inline; }
}

/* Скрываем старый cat-tiles-header если вдруг остался */
.cat-tiles-header { display: none; }

/* Ссылки в подвале */
.footer__bottom-links {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.footer__bottom-links a {
  color: inherit; text-decoration: none; opacity: .75;
  font-size: 12px; transition: opacity .18s;
}
.footer__bottom-links a:hover { opacity: 1; text-decoration: underline; }

/* ═══════════════════════════════════════════════
   ВИЗУАЛЬНЫЙ РЕФАЙН v5.3
═══════════════════════════════════════════════ */

/* Первый баннер — богаче и глубже */
.promo-card--primary {
  background: linear-gradient(140deg, #ffe169 0%, #ffb347 40%, #ff7c2a 75%, #e8531a 100%);
  box-shadow: 0 8px 32px rgba(230, 100, 30, 0.22);
  min-height: 190px;
}
.promo-card--primary .promo-card__title {
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.promo-card__blob--1 {
  width: 300px; height: 300px; top: -100px; right: -80px;
  background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.35) 0%, rgba(255,247,214,0) 65%);
}
.promo-card__blob--3 {
  width: 90px; height: 90px; top: 28px; right: 38px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.4);
}

/* Убираем дублирующий blob-стиль, добавляем 4-й shine */
.promo-card__deco::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
}

/* Hero-top: чуть более выраженный разделитель */
.hero-top {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 2px;
}

/* Логотип — чуть крупнее и акцентнее */
.hero-logo__mark {
  box-shadow: 0 4px 16px rgba(227,10,23,0.3);
}
.hero-logo__name { letter-spacing: -0.025em; }

/* Категориальные плитки — немного выше для лучшего touch-target */
.cat-tile { min-height: 108px; }

/* Кнопка "Как заказать" в баннере скидок */
.promo-card__disc-cta {
  margin-top: 6px;
}

/* Toolbar-brand-btn — более заметный акцент */
.toolbar-brand-btn {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-color: #d1d5db;
  color: #374151;
  font-weight: 700;
}
.toolbar-brand-btn:hover {
  background: linear-gradient(135deg, #e8edf5, #dde3ee);
  border-color: #9ca3af;
}

/* footer__cta как ссылка */
a.footer__cta {
  text-decoration: none;
}

/* Улучшенные hover-состояния карточек товаров */
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}

/* Плавное появление основного контента */
#catalogWrap {
  animation: fadeInUp 0.3s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Акции в hero — отступ снизу */
#mainPromos { margin-bottom: 16px; }

/* Прилипший тулбар — мягкая тень */
.toolbar.stuck {
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

/* Кнопки корзины — более насыщенный цвет */
.btn-add-main {
  background: var(--red);
}
.btn-add-main:hover { background: var(--red-dark); }

/* Прокрутка без дёргания */
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

/* ═══════════════════════════════════════════════
   ФИКСЫ v5.4 — комплексный патч
═══════════════════════════════════════════════ */

/* 1. Плитки категорий — убираем отрицательный отступ при grid-раскладке */
.cat-tiles-wrap {
  margin: 0 !important;
  padding: 0 0 10px !important;
  overflow: visible !important;
}

/* 2. ABC/главная акция — адаптивная раскладка по количеству */
#mainPromos {
  display: grid !important;
  gap: 14px;
  overflow: visible !important;
  padding-bottom: 0;
}
#mainPromos[data-count="1"] { grid-template-columns: 1fr; }
#mainPromos[data-count="2"] { grid-template-columns: 1fr 1fr; }
#mainPromos[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
#mainPromos:not([data-count]) { grid-template-columns: 1fr; }

#mainPromos .main-promo-card {
  min-width: 0 !important;
  max-width: none !important;
  width: 100%;
}
#mainPromos[data-count="1"] .main-promo-card__img { height: 260px; }
#mainPromos[data-count="2"] .main-promo-card__img { height: 220px; }

@media (max-width: 600px) {
  #mainPromos[data-count="2"] { grid-template-columns: 1fr; }
  #mainPromos[data-count="3"] { grid-template-columns: 1fr 1fr; }
  #mainPromos .main-promo-card__img { height: 200px !important; }
}

/* 3. Плавающая кнопка "Бренды" */
.float-btn--brand {
  background: #4f46e5;
  color: white;
}
.float-btn--brand:hover { background: #4338ca; }

/* 4. Cookie banner — компактный floating card */
.cookie-banner {
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  border-radius: 16px !important;
  padding: 12px 16px !important;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  gap: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
  flex-wrap: wrap !important;
  align-items: center !important;
}
.cookie-banner__text { font-size: 12px !important; min-width: 0 !important; }
.cookie-banner__actions { flex-shrink: 0; }
.cookie-banner__btn { padding: 7px 14px !important; font-size: 12px !important; border-radius: 10px !important; }

/* 5. Address input — иконка не перекрывает текст */
.address-input {
  padding-left: 42px !important;
}
.address-input-wrap__icon {
  left: 13px !important;
  z-index: 1;
}

/* 6. Мобильные виджеты + cart-bar совместимость */
@media (max-width: 768px) {
  .float-widgets {
    bottom: 16px !important;
  }
  body:has(.cart-bar--visible) .float-widgets {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:has(.cart-bar--visible) .cookie-banner.visible {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* 7. "Оформить" cart-bar — поднимаем */
.cart-bar {
  padding: 12px 16px !important;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

/* 8. Кнопка добавить — не вылезает за карточку */
.product-card { overflow: hidden; }
.product-card__footer {
  overflow: hidden;
  min-width: 0;
}
.product-card__add {
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
}

/* 9. Главная страница акций — полная ширина карточки */
.main-promo-card {
  border-radius: 16px;
}
.main-promo-card__img {
  border-radius: 16px 16px 0 0;
}

/* 10. Прomo-page — такой же container как главная */
.promo-page {
  max-width: 1360px !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* 11. Toolbar brand btn — скрываем на десктопе если есть floating */
@media (min-width: 769px) {
  .float-btn--brand { display: none !important; }
}

/* 12. Promo page hero header - убираем лишний padding */
.promo-page .breadcrumb { padding-top: 16px; }

/* ═══════════════════════════════════════════════
   ФИКСЫ v5.5 — UX и цвета
═══════════════════════════════════════════════ */

/* ── Хлебные крошки — перенос длинных названий ── */
.breadcrumb { flex-wrap: wrap; }
.breadcrumb span:last-child { word-break: break-word; min-width: 0; }

/* ── Z-index: все попапы выше float-widgets (600) ── */
.popup-overlay,
.cart-overlay,
.form-overlay,
.how-overlay,
.combo-overlay,
.promo-overlay-modal,
.brand-overlay { z-index: 700 !important; }
.product-popup { z-index: 701 !important; }

/* ── Chip сброса бренда ── */
.brand-reset-chip {
  display: flex; align-items: center; gap: 8px;
  background: #4f46e5; color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 8px 14px 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand-reset-chip__x {
  background: rgba(255,255,255,0.2); border: none; border-radius: 50%;
  width: 20px; height: 20px; color: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: auto;
  transition: background .15s;
}
.brand-reset-chip__x:hover { background: rgba(255,255,255,0.35); }

/* ── Cart: cash hint ── */
.cart-cash-hint {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0; border-radius: 8px;
  color: #065f46; font-size: 12px; font-weight: 600;
  padding: 7px 10px; margin-bottom: 4px;
}

/* ── Дисконт баннер с картинкой ── */
.promo-card__disc-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit;
  opacity: 0.25; z-index: 0;
}
.promo-card--discounts:has(.promo-card__disc-bg[style*="display:none"]) .promo-card__disc-bg,
.promo-card--discounts:not(:has(.promo-card__disc-bg)) .promo-card__disc-inner {
  /* fallback — без картинки остаётся тёмный фон */
}

/* Если картинка загрузилась — усиливаем контраст поверх */
.promo-card__disc-bg + .promo-card__disc-deco { mix-blend-mode: overlay; }

/* ── Floating brand button — ярче ── */
.float-btn--brand {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(79,70,229,0.4) !important;
  animation: pulse-brand 3s infinite;
}
@keyframes pulse-brand {
  0%, 100% { box-shadow: 0 4px 16px rgba(79,70,229,0.4); }
  50% { box-shadow: 0 4px 24px rgba(79,70,229,0.65); }
}

/* ── Рефайн цветовой палитры — убираем «колхоз» ── */

/* Основной красный → чуть теплее и мягче */
:root {
  --red:      #e8372e;
  --red-dark: #c62d26;
  --green:    #2db76c;
  --purple:   #6d4fc1;
}

/* Кнопки добавить — стандартный стиль (серый, hover → красный) */

/* Бейдж НОВИНКА — пастельный синий */
.product-card__badge--new {
  background: #dbeafe; color: #1d4ed8;
}

/* Бейдж АКЦИЯ — мягкий красный */
.product-card__badge--promo {
  background: #fee2e2; color: #b91c1c;
}

/* Баннер primary — мягче золото */
.promo-card--primary {
  background: linear-gradient(140deg, #f9c74f 0%, #f4a040 45%, #e8743a 100%);
  color: #2d1600;
}
.promo-card--primary .promo-card__cta {
  background: #2d1600; color: #f9c74f;
}

/* Плитки категорий — спокойнее */
.cat-tile--promo { background: linear-gradient(135deg, #dc2626, #991b1b); }
.cat-tile--promo.active,
.cat-tile--promo:hover { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }

/* Toolbar brand btn — более заметный на мобилке */
@media (max-width: 768px) {
  .toolbar-brand-btn {
    background: linear-gradient(135deg, #4f46e5, #6d4fc1);
    color: #fff; border-color: transparent;
  }
  .toolbar-brand-btn svg { color: #fff; }
  .toolbar-brand-btn:hover {
    background: linear-gradient(135deg, #4338ca, #5b21b6);
  }
}

/* ── Order total hint ── */
.order-total__save-hint {
  font-size: 12px; font-weight: 600; color: #059669;
  background: #d1fae5; border-radius: 6px;
  padding: 2px 8px; margin-left: 6px; white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   UX POLISH v5.6
═══════════════════════════════════════════════ */

/* 1. Cart badge bounce */
@keyframes badge-bounce {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.55); }
  65%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.cart-btn__count.pop { animation: badge-bounce 0.38s cubic-bezier(0.36,0.07,0.19,0.97); }

/* 2. Product card image placeholder — тёплый градиент */
.product-card__img-placeholder {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
}
.product-card__img-placeholder svg { opacity: 0.18; }

/* 3. Cart empty state */
.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 20px 40px; gap: 6px; text-align: center;
}
.cart-empty__icon {
  width: 72px; height: 72px;
  background: var(--bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.cart-empty__icon svg { opacity: 0.22; }
.cart-empty > p {
  font-size: 16px; font-weight: 600; color: var(--text-2); margin: 0;
}
.cart-empty__sub {
  font-size: 13px; color: var(--text-muted); margin: 0;
}
.cart-empty__cta {
  margin-top: 14px; background: var(--red); color: white;
  border-radius: 12px; padding: 11px 24px;
  font-size: 14px; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.cart-empty__cta:hover { background: var(--red-dark); transform: translateY(-1px); }

/* 4. "Вы экономите" в форме заказа */
.order-savings {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #065f46;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #a7f3d0; border-radius: 9px;
  padding: 7px 12px; margin-top: 8px;
}
.order-savings svg { flex-shrink: 0; }

/* 5. Toolbar тень при скролле — уже есть .toolbar.stuck */

/* 6. Skeleton fade-out плавнее */
#skeletonLoader { transition: opacity 0.25s ease; }
#skeletonLoader.hiding { opacity: 0; }

/* 7. Section heading count badge — стильнее */
.section-heading__count {
  font-size: 11px; font-weight: 700;
  background: var(--bg); color: var(--text-muted);
  padding: 3px 9px; border-radius: 20px;
  white-space: nowrap;
}

/* 8. Анимация появления продуктовой сетки */
@keyframes grid-appear {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-grid { animation: grid-appear 0.25s ease both; }

/* 9. Cart bar — flash при первом появлении */
@keyframes cart-bar-flash {
  0%   { background: var(--white); }
  40%  { background: #fffbeb; }
  100% { background: var(--white); }
}
.cart-bar--flash { animation: cart-bar-flash 0.7s ease; }

/* 10. Catalog header — results count более выраженный */
.catalog-header__count strong { color: var(--text); }

/* ═══════════════════════════════════════════════
   VIEWS + SIMILAR PRODUCTS
═══════════════════════════════════════════════ */

/* Счётчик просмотров на карточке товара */
.product-card__views {
  position: absolute; bottom: 6px; left: 6px;
  background: rgba(0,0,0,0.46);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 10px;
  pointer-events: none;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  line-height: 1.5; z-index: 1;
}

/* Просмотры в попапе */
.popup__views {
  font-size: 12px; color: var(--text-muted);
  margin: -4px 0 12px;
}

/* Раздел «Похожие товары» в попапе */
.popup__similar {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.popup__similar-title {
  font-size: 11px; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px;
}
.popup__similar-list {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.popup__similar-list::-webkit-scrollbar { display: none; }

/* Мини-карточка похожего товара */
.sim-card {
  flex: 0 0 118px; scroll-snap-align: start;
  background: var(--white); border-radius: 12px;
  border: 1.5px solid var(--border);
  overflow: hidden; text-align: left;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.sim-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.sim-card__img {
  width: 100%; aspect-ratio: 1;
  background: #f7f7f7;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sim-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.sim-card__img--placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  display: flex; align-items: center; justify-content: center;
}
.sim-card__img--placeholder svg { opacity: 0.18; }
.sim-card__info { padding: 7px 9px 9px; }
.sim-card__name {
  font-size: 11px; font-weight: 500; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.sim-card__price { font-size: 13px; font-weight: 700; color: var(--red); }

/* ─── Смешанная корзина: сноска об акционных товарах ─── */
.cart-promo-note {
  font-size: 11px; color: var(--text-muted);
  margin-top: 4px; line-height: 1.4;
}
