/* ==========================================================================
   EMMET Header (base styles)
   NOTE: Этот файл подключён глобально в `common/header.twig`
   ========================================================================== */

:root {
  --emmet-accent: #f5c400;
  --emmet-accent-hover: #d9ad00;
  --emmet-accent-ink: #1a1a1a;
  --emmet-muted: #5c5c5c;
  --emmet-top-border: #e8e8e8;
  /* Выше липкой шапки (1030), мегаменю каталога (2000), тостов Bootstrap */
  --emmet-z-city-dropdown: 100500;
  /* Мобильные фильтры каталога: выше #content (позже в .row) и tabbar (1210) */
  --emmet-z-catalog-filter: 100520;
}

/* Каталог: сортировка + «Показать» в одну строку (2×50% на мобильных) */
#display-control.emmet-catalog-toolbar .input-group {
  flex-wrap: nowrap;
  min-width: 0;
}

#display-control.emmet-catalog-toolbar .input-group > .form-select {
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 575.98px) {
  #display-control.emmet-catalog-toolbar .input-group-text {
    flex: 0 1 auto;
    max-width: 46%;
    padding: 0.35rem 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #display-control.emmet-catalog-toolbar .form-select {
    font-size: 0.74rem;
    padding: 0.35rem 1.6rem 0.35rem 0.35rem;
    line-height: 1.25;
  }
}

/* Каталог: мобильная кнопка «Фильтры» + offcanvas-md (тот же сайдбар, что на ПК) */
.emmet-catalog-sidebar-root .emmet-catalog-offcanvas.offcanvas-md {
  --bs-offcanvas-width: min(92vw, 400px);
}

.emmet-catalog-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 46px;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--emmet-accent-ink, #1a1a1a);
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.emmet-catalog-filter-btn:not(:disabled):hover {
  border-color: rgba(245, 196, 0, 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.emmet-catalog-filter-btn:not(:disabled):active {
  transform: translateY(1px);
}

.emmet-catalog-filter-btn__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.emmet-catalog-filter-btn__inner .fa-sliders {
  font-size: 1rem;
  color: var(--emmet-accent, #f5c400);
}

.emmet-catalog-filter-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

@media (max-width: 767.98px) {
  /*
   * Offcanvas в #column-left (первый ребёнок .row), товары в #content — второй.
   * Без z-index весь блок контента перекрывает fixed-панель фильтров.
   */
  .emmet-catalog-sidebar-root:has(#emmetCatalogFilters.show),
  .emmet-catalog-sidebar-root:has(#emmetCatalogFilters.showing) {
    position: relative;
    z-index: var(--emmet-z-catalog-filter);
  }

  .emmet-catalog-sidebar-root .emmet-catalog-offcanvas.offcanvas-md {
    --bs-offcanvas-zindex: calc(var(--emmet-z-catalog-filter) + 2);
    z-index: var(--bs-offcanvas-zindex);
  }

  .emmet-catalog-sidebar-root .emmet-catalog-offcanvas.offcanvas-md.offcanvas-start {
    top: 0;
    bottom: 0;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
  }

  body:has(#emmetCatalogFilters.show) .offcanvas-backdrop,
  body:has(#emmetCatalogFilters.showing) .offcanvas-backdrop {
    z-index: calc(var(--emmet-z-catalog-filter) + 1);
  }

  .emmet-catalog-offcanvas .offcanvas-body {
    background: #f8f8f8;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .emmet-catalog-offcanvas .emmet-catalog-sidebar-pane {
    min-height: 100%;
  }

  .emmet-catalog-offcanvas .emmet-column-left-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* transform на #column-left ломает position:fixed у offcanvas — не анимировать корень. */
  .emmet-catalog-sidebar-root.emmet-deferred-reveal {
    animation: none;
  }

  /* В выезжающей панели — только фильтры (цена + атрибуты), без аккордеона категорий и CTA. */
  .emmet-catalog-sidebar-root.emmet-catalog-sidebar--has-filter .emmet-sidebar-module--category,
  .emmet-catalog-sidebar-root.emmet-catalog-sidebar--has-filter .emmet-sidebar-module--other,
  .emmet-catalog-sidebar-root.emmet-catalog-sidebar--has-filter .emmet-sidebar-module--cta {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .emmet-catalog-sidebar-root .emmet-catalog-filter-btn {
    display: none !important;
  }

  .emmet-catalog-sidebar-root .emmet-column-left-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /*
   * В разметке стоят и базовый .offcanvas, и .offcanvas-md. В bootstrap.css правила
   * `.offcanvas` / `.offcanvas.offcanvas-start` идут ПОСЛЕ responsive-блока и снова
   * задают position:fixed, visibility:hidden, translateX(-100%). На мобильных .show
   * это снимает; на ПК панель остаётся невидимой. Сбрасываем только наш каталог.
   */
  .emmet-catalog-sidebar-root .emmet-catalog-offcanvas.offcanvas-md.offcanvas-start {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    right: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    visibility: visible;
    transform: none;
    box-shadow: none;
    transition: none;
  }

  /*
   * Bootstrap .offcanvas-md .offcanvas-body задаёт flex-grow: 0 — тело схлопывается по ширине
   * контента, скелет фильтров в колонке превращается в «узкую полоску».
   */
  .emmet-catalog-sidebar-root .emmet-catalog-offcanvas.offcanvas-md .offcanvas-body {
    width: 100%;
    flex-grow: 1;
    align-self: stretch;
    min-width: 0;
  }

  .emmet-catalog-sidebar-root .emmet-catalog-offcanvas .emmet-catalog-sidebar-pane {
    width: 100%;
    min-width: 0;
  }
}

/* Отступ под фиксированную шапку задаётся скриптом в `header.twig` — анимируем, чтобы не было рывка */
body > main {
  transition: padding-top 0.34s cubic-bezier(0.33, 1, 0.68, 1);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--emmet-top-border);
}

/* Иначе выпадающий город оказывается под липкой полосой (.site-header-sticky z-index 1030).
   overflow:hidden нужен для анимации схлопывания — но он режет dropdown; при открытии города
   класс .site-header__top--city-open снимает overflow (см. header.twig). */
.site-header__top {
  position: relative;
  z-index: 1045;
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
  font-size: 14px;
  overflow: hidden;
  max-height: 280px;
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.26s ease,
    border-bottom-width 0.26s ease,
    border-bottom-color 0.26s ease,
    visibility 0s;
}

.site-header__top.site-header__top--city-open {
  overflow: visible;
  z-index: var(--emmet-z-city-dropdown);
}

.site-header__top-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

/* Колонки одной высоты с блоком телефонов: содержимое по вертикали по центру */
.site-header__top-inner > .site-header__top-center {
  align-self: stretch;
}

.site-header__top-inner > .site-header__top-right {
  align-self: stretch;
}

/* Город слева — фиксированная колонка; центр (ссылки + соцсети) забирает оставшуюся ширину */
.site-header__top-center {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(8px, 1.2vw, 16px);
}

.site-header__city {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.site-header__top--city-open .site-header__city {
  z-index: calc(var(--emmet-z-city-dropdown) + 1);
}

/* Перебиваем Bootstrap .text-muted — город в фирменном жёлто-медовом блоке */
.site-header__city.text-muted {
  color: inherit;
}

/* Город и блок телефонов по высоте строки: содержимое по центру вертикально */
.site-header__top-inner > .site-header__city {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.site-header__city-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(245, 196, 0, 0.5);
  background: linear-gradient(180deg, rgba(255, 248, 220, 0.95) 0%, rgba(245, 196, 0, 0.22) 100%);
  font: inherit;
  font-size: inherit;
  line-height: 1.25;
  font-weight: 600;
  color: var(--emmet-accent-ink);
  cursor: pointer;
  border-radius: 999px;
  max-width: 100%;
  text-align: left;
  box-shadow: 0 1px 2px rgba(217, 173, 0, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.site-header__city-btn .fa-location-dot {
  color: var(--emmet-accent-hover);
  font-size: 1.05em;
}

.site-header__city-btn:hover {
  color: var(--emmet-accent-ink);
  background: linear-gradient(180deg, #fff9e0 0%, rgba(245, 196, 0, 0.38) 100%);
  border-color: rgba(217, 173, 0, 0.75);
  box-shadow: 0 2px 6px rgba(217, 173, 0, 0.2);
}

.site-header__city-btn:focus-visible {
  outline: 2px solid var(--emmet-accent);
  outline-offset: 2px;
}

.site-header__city-label {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 22ch;
}

.site-header__city-menu {
  max-height: min(60vh, 380px);
  overflow-y: auto;
  min-width: 260px;
  max-width: min(92vw, 340px);
  font-size: 13px;
  z-index: calc(var(--emmet-z-city-dropdown) + 2);
}

.site-header__city-menu.dropdown-menu.show {
  z-index: calc(var(--emmet-z-city-dropdown) + 2) !important;
}

.site-header__city-search-li {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0;
  padding: 8px 12px 10px;
  list-style: none;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.site-header__city-filter {
  border-radius: 8px;
}

.site-header__city-filter:focus {
  border-color: rgba(245, 196, 0, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(245, 196, 0, 0.2);
}

.site-header__city-menu .dropdown-item {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* Заголовок области в списке городов — заметнее, чем строки городов */
.site-header__city-group-li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__city-menu .site-header__city-group {
  position: sticky;
  top: 46px;
  z-index: 2;
  margin: 8px 10px 6px;
  padding: 9px 12px 9px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.25;
  white-space: normal;
  color: #2a2410;
  border-radius: 8px;
  border-left: 4px solid var(--emmet-accent-hover);
  background: linear-gradient(
    90deg,
    rgba(245, 196, 0, 0.42) 0%,
    rgba(255, 244, 200, 0.92) 42%,
    rgba(255, 252, 240, 0.98) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 1px 2px rgba(217, 173, 0, 0.18);
}

.site-header__top-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: clamp(10px, 1.35vw, 20px);
  min-width: 0;
}

.site-header__top-links a {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
  color: var(--emmet-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header__top-links a:hover {
  color: var(--emmet-accent-hover);
}

.site-header__top-social {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(245, 196, 0, 0.07);
  border: 1px solid rgba(245, 196, 0, 0.35);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-header__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--emmet-muted);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-header__social-link:hover {
  color: var(--emmet-accent-hover);
  background: rgba(245, 196, 0, 0.18);
}

.site-header__social-link:focus-visible {
  outline: 2px solid var(--emmet-accent);
  outline-offset: 2px;
}

/* Bootstrap 5 visually-hidden — на случай если базовый stylesheet не подтянул утилиту */
.site-header__top-social .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1399.98px) {
  .site-header__top-links {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 4px;
    column-gap: 12px;
  }

  .site-header__top-links a {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 11.5px;
    padding: 3px 0;
  }
}

.site-header__top-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}

/* Три телефона в одну строку — только десктоп (d-lg-flex в разметке) */
.site-header__phones {
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  line-height: 1.25;
  margin: 0;
}

.site-header__phones__lines {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0 4px;
}

.site-header__phones__tel + .site-header__phones__tel::before {
  content: '·';
  display: inline-block;
  margin: 0 6px 0 0;
  color: #c8c8c8;
  font-weight: 400;
  font-size: 1.1em;
  line-height: 1;
  pointer-events: none;
}

.site-header__phones__tel {
  color: var(--emmet-accent-ink, #1a1a1a);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-header__phones__tel:hover {
  color: var(--emmet-accent-hover, #d9ad00);
}

.site-header__phones__meta {
  margin: 2px 0 0 0;
  font-size: 11px;
  color: var(--emmet-muted, #5c5c5c);
  white-space: nowrap;
}

.site-header__bonus {
  color: var(--emmet-accent-ink);
  text-decoration: none;
  font-weight: 600;
}
.site-header__bonus:hover {
  color: var(--emmet-accent-hover);
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emmet-accent-ink);
  text-decoration: none;
  font-weight: 600;
}
.site-header__phone i {
  color: var(--emmet-accent);
}

.site-header__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emmet-muted);
  text-decoration: none;
}
.site-header__login:hover {
  color: var(--emmet-accent-hover);
}

.site-header-sticky {
  position: fixed;
  top: 0; /* фактический top выставляет JS (syncMainPadding) */
  left: 0;
  right: 0;
  z-index: 1030;
  background: #fff;
}

.site-header__main {
  padding: 10px 0;
}

.site-header__main-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__logo {
  flex: 0 0 auto;
  min-width: 0;
}

/* Логотип: не растягивать по ширине колонки (img-fluid даёт max-width:100%) */
.site-header__logo a {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}

.site-header__logo .emmet-logo,
#site-header #logo img.emmet-logo {
  width: auto;
  max-width: min(175px, 100%);
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.emmet-logo {
  max-height: 44px;
}

/* Планшет/ПК: крупнее логотип, плотнее ряд — без заметного роста высоты шапки */
@media (min-width: 768px) {
  .site-header__main {
    padding: 7px 0;
  }

  .site-header__main-inner {
    gap: 9px;
  }

  .site-header__logo .emmet-logo,
  #site-header #logo img.emmet-logo,
  .emmet-logo {
    max-height: 52px;
    max-width: min(212px, 100%);
  }

  .emmet-catalog-btn:not(.emmet-catalog-btn--icon-only) {
    padding: 7px 11px;
    gap: 8px;
  }

  .site-header__actions {
    gap: 9px;
  }

  .site-header__top-inner {
    padding: 6px 0;
  }
}

.site-header__catalog {
  flex: 0 0 auto;
}

.emmet-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(245, 196, 0, 0.45);
  background: #fffbea;
  color: var(--emmet-accent-ink);
  font-weight: 800;
}
.emmet-catalog-btn:hover {
  background: #fff3c2;
  border-color: rgba(245, 196, 0, 0.65);
}

/* Мобильный хедер: пара кнопок справа — одинаковый размер и радиус */
.site-header__mobile-tools {
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.emmet-mobile-icon-btn {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: #fff;
  color: var(--emmet-accent-ink);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease;
}

.emmet-mobile-icon-btn:hover {
  border-color: rgba(245, 196, 0, 0.55);
  background: #fffbea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.emmet-mobile-icon-btn:active {
  transform: scale(0.96);
}

.emmet-mobile-icon-btn:focus-visible {
  outline: 2px solid var(--emmet-accent);
  outline-offset: 2px;
}

.emmet-catalog-btn.emmet-catalog-btn--icon-only {
  gap: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-color: rgba(245, 196, 0, 0.4);
}

.emmet-catalog-btn.emmet-catalog-btn--icon-only:hover {
  box-shadow: 0 2px 8px rgba(245, 196, 0, 0.25);
}

.site-header--compact .emmet-catalog-btn.emmet-catalog-btn--icon-only {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 16px;
}

.site-header--compact .emmet-mobile-icon-btn {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.site-header__search-wrap {
  flex: 1 1 auto;
  min-width: 220px;
}

.emmet-header-search-host {
  position: relative;
  min-height: 44px;
}

.emmet-header-search-host__skel {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 10px 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #ededed;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.emmet-header-search-host--ready .emmet-header-search-host__skel {
  opacity: 0;
  visibility: hidden;
}

.emmet-search.emmet-search {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ededed;
  background: #fff;
}
.emmet-search__input {
  border: 0;
  box-shadow: none !important;
  padding-left: 14px;
}
.emmet-search__submit {
  border: 0;
  background: var(--emmet-accent);
  color: #1a1a1a;
  font-weight: 800;
}
.emmet-search__submit:hover {
  background: var(--emmet-accent-hover);
}

.site-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.emmet-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--emmet-accent-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid #f0f0f0;
}
.emmet-action:hover {
  border-color: rgba(245, 196, 0, 0.45);
  background: #fffbea;
  color: var(--emmet-accent-ink);
}

/* Корзина в шапке: как «Избранное», с жёлтым акцентом (вместо btn-inverse) */
.emmet-header-cart__btn,
.site-header__cart .emmet-header-cart__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  height: auto;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--emmet-accent-ink, #1a1a1a) !important;
  text-shadow: none;
  background: #fff9e6 !important;
  background-image: none !important;
  border: 1px solid rgba(245, 196, 0, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(245, 196, 0, 0.12) inset;
  white-space: nowrap;
  max-width: 100%;
}

.emmet-header-cart__ico {
  flex-shrink: 0;
  font-size: 1.22em;
  line-height: 1;
}

.emmet-header-cart__btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.emmet-header-cart__title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.emmet-header-cart__sep {
  opacity: 0.45;
  font-weight: 700;
  user-select: none;
}

.emmet-header-cart__summary {
  font-weight: 600;
  opacity: 0.95;
}

@media (min-width: 992px) {
  .emmet-header-cart__ico {
    font-size: 1.42em;
  }
  .emmet-header-cart__btn,
  .site-header__cart .emmet-header-cart__btn {
    padding: 9px 16px;
    gap: 11px;
  }
}
.emmet-header-cart__btn:hover,
.emmet-header-cart__btn:focus,
.site-header__cart .emmet-header-cart__btn:hover,
.site-header__cart .emmet-header-cart__btn:focus {
  color: var(--emmet-accent-ink, #1a1a1a) !important;
  background: #fff3c2 !important;
  border-color: var(--emmet-accent, #f5c400) !important;
}
.emmet-header-cart__btn.dropdown-toggle::after {
  margin-left: 0.25rem;
  opacity: 0.6;
  vertical-align: 0.12em;
}

#header-cart.emmet-header-cart.d-grid {
  min-width: 0;
  margin-bottom: 0;
}

/* Выпадающая мини-корзина */
.emmet-header-cart__menu.dropdown-menu {
  width: min(100vw - 20px, 460px);
  min-width: min(100vw - 20px, 280px);
  padding: 0;
  margin-top: 8px !important;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  /* Не обрезаем футер и тени кнопок (overflow:hidden давал обрезание снизу) */
  overflow: visible;
  max-height: none !important;
}

.emmet-header-cart__panel {
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: min(82vh, 560px);
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.emmet-header-cart__items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 12px 8px;
  -webkit-overflow-scrolling: touch;
}

.emmet-header-cart__row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 2px;
  border-bottom: 1px solid #f0f0f0;
  min-width: 0;
  box-sizing: border-box;
}

.emmet-header-cart__row:last-of-type {
  border-bottom: 0;
}

.emmet-header-cart__thumb {
  flex: 0 0 56px;
  width: 56px;
}

.emmet-header-cart__thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fafafa;
}

.emmet-header-cart__body {
  flex: 1;
  min-width: 0;
}

.emmet-header-cart__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a6dcc;
  text-decoration: none;
  line-height: 1.35;
}

.emmet-header-cart__name:hover {
  text-decoration: underline;
}

.emmet-header-cart__opt {
  font-size: 11px;
  color: var(--emmet-muted, #5c5c5c);
  margin-top: 2px;
  line-height: 1.35;
}

.emmet-header-cart__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  min-width: 0;
}

.emmet-header-cart__qty {
  font-size: 12px;
  color: #888;
}

.emmet-header-cart__price {
  font-size: 13px;
  font-weight: 800;
  color: var(--emmet-accent-ink, #1a1a1a);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

.emmet-header-cart__remove-form {
  flex: 0 0 32px;
  margin: 0;
  align-self: flex-start;
}

.emmet-header-cart__remove-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #f0d0d0;
  background: #fff5f5;
  color: #c62828;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emmet-header-cart__remove-btn:hover {
  background: #ffecec;
  border-color: #e57373;
  color: #b71c1c;
}

.emmet-header-cart__totals {
  flex-shrink: 0;
  padding: 10px 14px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.emmet-header-cart__total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: #555;
  padding: 4px 0;
  min-width: 0;
}

.emmet-header-cart__total-line > span:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 8px;
}

.emmet-header-cart__total-line strong {
  flex: 0 0 auto;
  font-weight: 800;
  color: var(--emmet-accent-ink, #1a1a1a);
  white-space: nowrap;
  text-align: right;
  max-width: 55%;
}

.emmet-header-cart__total-line--grand {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
  font-size: 15px;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-header-cart__total-line--grand strong {
  font-size: 16px;
}

.emmet-header-cart__actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: stretch;
  align-items: stretch;
  padding: 12px 12px 14px;
  background: #fff;
  border-top: 1px solid #eee;
}

.emmet-header-cart__btn-secondary,
.emmet-header-cart__btn-primary {
  flex: 1 1 calc(50% - 4px);
  min-width: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  padding: 10px 8px;
  text-decoration: none !important;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emmet-header-cart__btn-secondary {
  background: #fff;
  border: 2px solid var(--emmet-top-border, #e8e8e8);
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-header-cart__btn-secondary:hover {
  border-color: rgba(245, 196, 0, 0.55);
  background: #fffbea;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-header-cart__btn-primary {
  background: linear-gradient(180deg, #ffe98a 0%, #f5c400 42%, #deb800 100%);
  border: none;
  color: var(--emmet-accent-ink, #1a1a1a);
  box-shadow: 0 8px 22px rgba(245, 196, 0, 0.35);
}

.emmet-header-cart__btn-primary:hover {
  filter: brightness(0.97);
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-header-cart__empty {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 14px;
  color: var(--emmet-muted, #5c5c5c);
}

/* Категории (полоса под поиском) */
.site-header__categories {
  border-top: 1px solid #f3f3f3;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.emmet-catbar {
  position: relative;
  display: block;
  padding: 4px 0;
}

/* Реальная разметка живёт в `common/menu.twig`: .emmet-catbar__track + .emmet-catbar__scroll */
.emmet-catbar__track {
  position: relative;
}

.emmet-catbar__scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding: 0 46px; /* место под стрелки */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* scroll-behavior: smooth у колёсика даёт задержку и рывок; плавность — кнопками (JS behavior:'smooth') */
  white-space: nowrap; /* на всякий случай — в одну строку */
}
.emmet-catbar__scroll::-webkit-scrollbar {
  display: none;
}

.emmet-catbar__scroll:not(.emmet-catbar__scroll--skeleton) {
  cursor: grab;
  user-select: none;
}

.emmet-catbar__scroll.is-dragging {
  cursor: grabbing;
}

.emmet-catbar__promo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fffbea;
  border: 1px solid rgba(245, 196, 0, 0.35);
  color: var(--emmet-accent-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.emmet-catbar__promo i {
  color: var(--emmet-accent);
}
.emmet-catbar__promo:hover {
  background: #fff3c2;
  color: var(--emmet-accent-ink);
}

.emmet-catbar__item {
  position: relative;
  flex: 0 0 auto;
}

.emmet-catbar__link {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--emmet-accent-ink);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.25;
}
.emmet-catbar__link:hover {
  background: #f5f5f5;
  color: var(--emmet-accent-ink);
}

.emmet-catbar__chev {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--emmet-top-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emmet-accent);
  cursor: pointer;
  z-index: 2;
}

.emmet-catbar__chev--prev {
  right: auto;
  left: 4px;
}

.emmet-catbar__chev:hover {
  background: #fffbea;
}

/* --- Compact / scroll: прячем только верхнюю полоску и ряд категорий --- */
.site-header--compact .site-header__top {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  border-bottom-width: 0;
  margin-bottom: 0;
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease,
    border-bottom-width 0.22s ease,
    visibility 0s linear 0.32s;
}

/* В компактном режиме прячем только верхнюю полоску; категории остаются вместе с поиском */
.site-header--compact .site-header-sticky {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.site-header--compact .site-header__main {
  padding: 6px 0;
}

.site-header--compact .site-header__logo .emmet-logo,
.site-header--compact #site-header #logo img.emmet-logo {
  max-height: 38px;
  max-width: min(158px, 100%);
}

.site-header--compact .emmet-catalog-btn:not(.emmet-catalog-btn--icon-only) {
  padding: 6px 10px;
  font-size: 14px;
}

/* Mobile: одна строка — логотип слева, справа поиск + бургер; поле поиска раскрывается; верхняя полоса скрыта */
@media (max-width: 767.98px) {
  .site-header__top {
    display: none !important;
  }

  .site-header__main {
    padding: 7px 0;
  }

  .site-header__main-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
  }

  .site-header__logo .emmet-logo,
  #site-header #logo img.emmet-logo {
    max-height: 36px;
    max-width: min(148px, 100%);
  }

  .emmet-mobile-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 15px;
    border-radius: 10px;
  }

  .emmet-catalog-btn.emmet-catalog-btn--icon-only {
    width: 40px;
    height: 40px;
    font-size: 15px;
    border-radius: 10px;
  }

  .site-header--compact .emmet-mobile-icon-btn,
  .site-header--compact .emmet-catalog-btn.emmet-catalog-btn--icon-only {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .site-header__bonus {
    display: none;
  }

  .site-header__logo {
    order: 1;
    flex: 0 0 auto;
    min-width: 0;
  }

  .site-header__mobile-tools {
    order: 2;
    margin-left: auto;
    gap: 6px;
  }

  .site-header__search-wrap {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, margin 0.2s ease;
  }

  .site-header__search-wrap:not(.is-search-open) {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none;
  }

  .site-header__search-wrap.is-search-open {
    max-height: 180px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 4px !important;
  }

  .emmet-action span {
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Категории на мобилке — только после бургера */
  .site-header__categories .emmet-catbar {
    display: none;
  }
}

/* На мобильном карусель категорий не показываем */
@media (max-width: 767.98px) {
  .site-header__categories {
    display: none !important;
  }
}

body.emmet-catbar-open .site-header__categories .emmet-catbar {
  display: block !important;
}

/* =======================================================================
   EMMET: хлебные крошки (как на странице товара) — глобально
   ======================================================================= */
.emmet-breadcrumb {
  margin-bottom: 1rem;
  padding: 0.35rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.emmet-breadcrumb::-webkit-scrollbar {
  display: none;
}

.emmet-breadcrumb__list {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--emmet-muted, #5c5c5c);
}

.emmet-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.emmet-breadcrumb__item a {
  color: var(--emmet-muted, #5c5c5c);
  text-decoration: none;
}
.emmet-breadcrumb__item a:hover {
  color: var(--emmet-accent-hover, #d9ad00);
}

.emmet-breadcrumb__item--current span {
  color: var(--emmet-accent-ink, #1a1a1a);
  font-weight: 600;
}

.emmet-breadcrumb__sep {
  display: inline-flex;
  align-items: center;
  color: #c8c8c8;
  margin: 0 0.35rem;
  font-size: 10px;
}

/* =======================================================================
   EMMET: шапка информационных страниц (крошки + заголовок)
   ======================================================================= */
.emmet-page-heading {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem 1.2rem;
  background: linear-gradient(165deg, #fffdf6 0%, #ffffff 52%, #fafafa 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  box-shadow:
    0 10px 34px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.emmet-page-heading .emmet-page-heading__breadcrumb.emmet-breadcrumb {
  margin-bottom: 0;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.emmet-page-heading__title-wrap {
  padding-top: 0.85rem;
}

.emmet-page-heading__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.6vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: #111;
}

.emmet-page-heading__title::after {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6d32d 0%, #ffe566 100%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

@media (max-width: 575.98px) {
  .emmet-page-heading {
    padding: 0.85rem 0.95rem 1rem;
    border-radius: 14px;
  }

  .emmet-page-heading__title::after {
    width: 44px;
    margin-top: 0.55rem;
  }
}

/* =======================================================================
   EMMET: аккордеон категорий в каталоге (иконки + мягкий стиль)
   ======================================================================= */
.emmet-cat-sidebar.emmet-cat-sidebar--accordion {
  background: #fff;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.emmet-cat-sidebar--accordion .emmet-cat-accordion.accordion {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  margin-bottom: 0 !important;
}

.emmet-cat-accordion.accordion {
  background: #fff;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.emmet-cat-accordion .accordion-item {
  border: 0;
}

.emmet-cat-accordion .accordion-header {
  margin: 0;
}

.emmet-cat-accordion .accordion-button {
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--emmet-accent-ink, #1a1a1a);
  background: #fff;
  box-shadow: none;
}

.emmet-cat-accordion .accordion-button:hover {
  background: #fffbea;
  color: var(--emmet-accent-hover, #d9ad00);
}

.emmet-cat-accordion .accordion-button:not(.collapsed) {
  background: #fff;
  color: var(--emmet-accent-ink, #1a1a1a);
  box-shadow: inset 3px 0 0 var(--emmet-accent, #f5c400);
  font-weight: 700;
}

/* Открыта страница корневой категории (без подкатегории в path) — без дубля в списке */
.emmet-cat-accordion .accordion-button.emmet-cat-accordion__btn--current-root {
  background: #fffbea;
  color: var(--emmet-accent-ink, #1a1a1a);
  box-shadow: inset 3px 0 0 var(--emmet-accent, #f5c400);
  font-weight: 700;
}

.emmet-cat-accordion .accordion-button::after {
  opacity: 0.6;
}

.emmet-cat-accordion__icon {
  width: 22px;
  text-align: center;
  color: var(--emmet-accent, #f5c400);
  flex: 0 0 22px;
}

.emmet-cat-accordion .accordion-body {
  background: #fff;
}

.emmet-cat-accordion .list-group-item {
  border: 0;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-cat-accordion .list-group-item:hover {
  background: #f7f7f7;
  color: var(--emmet-accent-hover, #d9ad00);
}

.emmet-cat-accordion .list-group-item.active {
  background: #fffbea;
  color: var(--emmet-accent-ink, #1a1a1a);
  font-weight: 700;
}

.emmet-cat-accordion__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e5e5e5;
  flex: 0 0 8px;
}

.emmet-cat-accordion__dot--child {
  background: #f3e39b;
}

/* =======================================================================
   Layout: общий max-width сайта 1500px на больших экранах
   ======================================================================= */
@media (min-width: 1400px) {
  .container {
    max-width: 1500px;
  }
}

/* =======================================================================
   Floating contact + cart (bottom-left) — desktop + mobile
   ======================================================================= */
.emmet-fab-stack {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.emmet-fab-messenger {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.emmet-fab-messenger__flyout {
  position: absolute;
  left: 0;
  bottom: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.22s ease, transform 0.28s ease;
}

.emmet-fab-messenger.is-open .emmet-fab-messenger__flyout {
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.emmet-fab-messenger__item {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.2s ease, transform 0.28s ease, filter 0.15s;
}

.emmet-fab-messenger.is-open .emmet-fab-messenger__item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.emmet-fab-messenger.is-open .emmet-fab-messenger__item:nth-child(1) { transition-delay: 0.04s; }
.emmet-fab-messenger.is-open .emmet-fab-messenger__item:nth-child(2) { transition-delay: 0.1s; }
.emmet-fab-messenger.is-open .emmet-fab-messenger__item:nth-child(3) { transition-delay: 0.16s; }
.emmet-fab-messenger.is-open .emmet-fab-messenger__item:nth-child(4) { transition-delay: 0.22s; }

.emmet-fab-messenger__item--telegram  { background: #229ed9; }
.emmet-fab-messenger__item--viber     { background: #7360f2; }
.emmet-fab-messenger__item--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.emmet-fab-messenger__item--phone     { background: #1a7e3e; }
.emmet-fab-messenger__item:hover { filter: brightness(1.06); }

.emmet-fab-messenger__btn {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: var(--emmet-accent, #f5c400);
  color: #1a1a1a;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, transform 0.12s;
}
.emmet-fab-messenger__btn:hover { background: var(--emmet-accent-hover, #d9ad00); }
.emmet-fab-messenger__btn:active { transform: scale(0.98); }
.emmet-fab-messenger.is-open .emmet-fab-messenger__btn { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }

@media (prefers-reduced-motion: reduce) {
  .emmet-fab-messenger__flyout,
  .emmet-fab-messenger__item {
    transition: none;
  }
  .emmet-fab-messenger.is-open .emmet-fab-messenger__item { transition-delay: 0s !important; }
}

.emmet-fab-cart {
  position: relative;
}

.emmet-fab-cart__btn {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  background: var(--emmet-accent, #f5c400);
  color: #1a1a1a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.emmet-fab-cart__btn:hover {
  background: var(--emmet-accent-hover, #d9ad00);
  color: #1a1a1a;
}

.emmet-fab-cart__btn.is-empty {
  opacity: 0.75;
}

.emmet-fab-cart__count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  background: #1a1a1a;
  color: #fff;
}

.emmet-fab-cart__toast {
  position: absolute;
  left: 0;
  bottom: 66px;
  background: #1a1a1a;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.emmet-fab-cart__toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* Уведомление «добавлено в корзину» */
.emmet-cart-notice-root {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 10060;
  width: min(560px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

@media (min-width: 992px) {
  .emmet-cart-notice-root {
    top: 16px;
  }
}

.emmet-cart-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--emmet-accent, #f5c400);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(245, 196, 0, 0.12);
  font-size: 1rem;
  line-height: 1.5;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.emmet-cart-notice.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.emmet-cart-notice__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 169, 124, 0.14);
  color: #1a9b6e;
  font-size: 1.35rem;
}

.emmet-cart-notice__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  font-weight: 500;
}

.emmet-cart-notice__body a {
  color: #0d6efd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.emmet-cart-notice__body a:hover {
  color: #0a58ca;
}

.emmet-cart-notice__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -4px -6px 0 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.emmet-cart-notice__close:hover,
.emmet-cart-notice__close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

.emmet-cart-notice--remove {
  border-left-color: #1a9b6e;
  box-shadow:
    0 14px 40px rgba(26, 155, 110, 0.14),
    0 0 0 1px rgba(26, 155, 110, 0.08);
}

.emmet-cart-notice--remove .emmet-cart-notice__icon {
  background: rgba(26, 155, 110, 0.16);
  color: #1a9b6e;
}

/* Тосты Bootstrap в углу — не блокируют клики по шапке (корзина, избранное) */
#alert {
  z-index: 10050;
  pointer-events: none;
  width: auto;
  max-width: min(420px, calc(100vw - 24px));
}

#alert .alert {
  pointer-events: auto;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
  font-weight: 500;
}

#alert .alert-success {
  background: #fff;
  color: #1a1a1a;
  border-left: 4px solid #1a9b6e;
}

#alert .alert-danger {
  background: #fff;
  color: #1a1a1a;
  border-left: 4px solid #dc3545;
}

@media (max-width: 575.98px) {
  .emmet-cart-notice-root {
    top: max(8px, env(safe-area-inset-top, 0px));
    width: calc(100vw - 16px);
  }

  .emmet-cart-notice {
    padding: 16px 14px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .emmet-cart-notice__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Уведомление «добавлено в избранное» */
.emmet-wishlist-notice-root {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 10060;
  width: min(560px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

@media (min-width: 992px) {
  .emmet-wishlist-notice-root {
    top: 16px;
  }
}

.emmet-wishlist-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 5px solid #e85d75;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(232, 93, 117, 0.1);
  font-size: 1rem;
  line-height: 1.5;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.emmet-wishlist-notice.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.emmet-wishlist-notice__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 93, 117, 0.14);
  color: #d94462;
  font-size: 1.25rem;
}

.emmet-wishlist-notice__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
  font-weight: 500;
}

.emmet-wishlist-notice__body::before {
  content: 'Добавлено в избранное';
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d94462;
}

.emmet-wishlist-notice__body a {
  color: #0d6efd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.emmet-wishlist-notice__body a:hover {
  color: #0a58ca;
}

.emmet-wishlist-notice__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -4px -6px 0 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #6b6b6b;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.emmet-wishlist-notice__close:hover,
.emmet-wishlist-notice__close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

@media (max-width: 575.98px) {
  .emmet-wishlist-notice-root {
    top: max(8px, env(safe-area-inset-top, 0px));
    width: calc(100vw - 16px);
  }

  .emmet-wishlist-notice {
    padding: 16px 14px;
    font-size: 0.95rem;
    gap: 12px;
  }

  .emmet-wishlist-notice__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

/* Button "added" state */
.emmet-thumb__btn-cart.emmet-btn-added,
button.emmet-btn-added {
  background: #1ea97c !important;
  border-color: #1ea97c !important;
  color: #fff !important;
}

/* Избранное / сравнение — компактные круглые кнопки */
.emmet-thumb__mini-actions {
  display: inline-flex;
  align-items: flex-start;
  margin: 0;
}

.emmet-thumb__icon-actions {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

button.emmet-thumb__iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: #fff;
  color: #5a5a5a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  line-height: 1;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

button.emmet-thumb__iconbtn i {
  font-size: 0.95rem;
  line-height: 1;
}

button.emmet-thumb__iconbtn:hover {
  border-color: rgba(245, 196, 0, 0.55);
  color: var(--emmet-accent-ink, #1a1a1a);
  background: #fffef8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

button.emmet-thumb__iconbtn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.45);
}

button.emmet-thumb__iconbtn--wish:hover {
  color: #c2185b;
  border-color: rgba(194, 24, 91, 0.35);
  background: #fff5f9;
}

button.emmet-thumb__iconbtn--compare:hover {
  color: var(--emmet-accent-ink, #1a1a1a);
}

/* =======================================================================
   Product list (горизонтальная карточка товара) — современный стиль
   Включается только для list view: #product-list.product-list
   ======================================================================= */
#product-list.product-list .product-thumb.emmet-thumb {
  /* Перебиваем stylesheet.css: .product-list .product-thumb { display:flex } —
     один ребёнок + flex ломает ширину grid и раздувает правую колонку */
  display: block;
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.045);
  overflow: hidden;
}

#product-list.product-list .product-thumb.emmet-thumb .emmet-thumb__row {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  /* Третья колона: minmax(0, 220px) — жёсткий потолок, не растёт от контента */
  grid-template-columns: minmax(176px, 248px) minmax(0, 1fr) minmax(0, 200px);
  gap: 0;
  align-items: stretch;
}

#product-list.product-list .emmet-thumb__media,
#product-list.product-list .emmet-thumb__main,
#product-list.product-list .emmet-thumb__buy {
  min-width: 0;
}

#product-list.product-list .emmet-thumb__media {
  padding: 10px 12px;
  border-right: 1px solid #f0f0f0;
}

#product-list.product-list .emmet-thumb__image {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f2f2f2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-list.product-list .emmet-thumb__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

#product-list.product-list .emmet-thumb__main {
  padding: 10px 12px;
}

#product-list.product-list .emmet-thumb__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

#product-list.product-list .emmet-thumb__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
}

#product-list.product-list .emmet-thumb__title a {
  color: var(--emmet-accent-ink, #1a1a1a);
  text-decoration: none;
}

#product-list.product-list .emmet-thumb__title a:hover {
  color: var(--emmet-accent-hover, #d9ad00);
}

#product-list.product-list button.emmet-thumb__iconbtn {
  width: 36px;
  height: 36px;
}

#product-list.product-list button.emmet-thumb__iconbtn i {
  font-size: 0.9rem;
}

#product-list.product-list .emmet-thumb__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
  font-size: 13px;
}

#product-list.product-list .emmet-thumb__rating i {
  font-size: 12px;
}

#product-list.product-list .emmet-thumb__attrs {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: #444;
}

#product-list.product-list .emmet-thumb__attrs-k {
  color: #777;
}

#product-list.product-list .emmet-thumb__desc {
  margin: 8px 0 0 0;
  color: #666;
  font-size: 13px;
}

/* Фрагмент описания при превью атрибутов — только мобильный каталог (см. @media ниже) */
#product-list.product-list .emmet-thumb__desc--mobile-catalog {
  display: none;
}

#product-list.product-list .emmet-thumb__perks {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#product-list.product-list .emmet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fffbea;
  color: #5c4a00;
  border: 1px solid rgba(245, 196, 0, 0.35);
  font-size: 12px;
  white-space: nowrap;
}

#product-list.product-list .emmet-pill i {
  color: var(--emmet-accent, #f5c400);
}

#product-list.product-list .emmet-thumb__buy {
  padding: 10px 12px;
  border-left: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
  overflow-wrap: anywhere;
}

#product-list.product-list .emmet-thumb__cartform {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* «Подробнее» на карточке — только режим списка (#product-list.product-list) */
.emmet-thumb__more {
  display: none;
}

.emmet-thumb__buy-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

#product-list.product-list .emmet-thumb__buy-actions {
  gap: 8px;
}

#product-list.product-list .emmet-thumb__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid var(--emmet-top-border, #e8e8e8);
  color: var(--emmet-accent-ink, #1a1a1a);
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#product-list.product-list .emmet-thumb__more:hover {
  border-color: var(--emmet-accent, #f5c400);
  background: #fffef6;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-thumb.emmet-thumb--added-flash {
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.55);
  transition: box-shadow 0.2s ease;
}

.emmet-thumb.emmet-thumb--wishlist-flash {
  box-shadow: 0 0 0 3px rgba(232, 93, 117, 0.45);
  transition: box-shadow 0.2s ease;
}

button.emmet-btn-added--wishlist,
.emmet-thumb__btn-wish.emmet-btn-added--wishlist {
  background: rgba(232, 93, 117, 0.12) !important;
  border-color: #e85d75 !important;
  color: #c73e55 !important;
}

button.emmet-thumb__iconbtn.emmet-btn-added--wishlist,
button.emmet-product-buy__iconbtn.emmet-btn-added--wishlist {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

button.emmet-thumb__iconbtn.emmet-btn-added--wishlist i,
button.emmet-product-buy__iconbtn.emmet-btn-added--wishlist i {
  margin: 0;
}

.emmet-thumb .emmet-thumb__btn-cart.emmet-btn-added {
  background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%) !important;
  border-color: #81c784 !important;
  color: #1b5e20 !important;
}

.emmet-thumb__image > .badge {
  z-index: 2;
}

/* Бейджи наличия на миниатюре каталога / каруселей. */
.emmet-thumb__image .emmet-stock-badge.emmet-stock-badge--out {
  background-color: #c62828 !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.35em 0.55em;
}

.emmet-thumb__image .emmet-stock-badge.emmet-stock-badge--order {
  font-weight: 700;
  border-radius: 8px;
  padding: 0.35em 0.55em;
}

/* «Оплата частями» в списке каталога — кнопка-ссылка на форму на карточке товара */
.emmet-thumb__install-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 10px;
  background: #fff;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #444;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: break-word;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.emmet-thumb__install-btn:hover,
.emmet-thumb__install-btn:focus-visible {
  border-color: #ccc;
  background: #fafafa;
  color: var(--emmet-accent-ink, #1a1a1a);
  text-decoration: none;
}

.emmet-thumb__install-btn .emmet-thumb__install-sum {
  font-weight: 800;
  color: var(--emmet-accent-ink, #1a1a1a);
}

#product-list.product-list .emmet-thumb__install-btn {
  margin-top: 14px;
  margin-bottom: 12px;
}

#product-list.product-list .emmet-thumb__price-new {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--emmet-accent-ink, #1a1a1a);
}

#product-list.product-list .emmet-thumb__price-old {
  margin-top: 2px;
  color: #9a9a9a;
  text-decoration: line-through;
  font-size: 16px;
  font-weight: 600;
}

#product-list.product-list .emmet-thumb__price-compare {
  margin: 0 0 4px;
  font-size: 16px;
}

#product-list.product-list .emmet-thumb__btn-cart {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 10px;
  font-weight: 800;
  padding: 9px 10px;
  background: var(--emmet-accent, #f5c400);
  border-color: var(--emmet-accent, #f5c400);
  color: #1a1a1a;
}

#product-list.product-list .emmet-thumb__btn-cart:hover {
  background: var(--emmet-accent-hover, #d9ad00);
  border-color: var(--emmet-accent-hover, #d9ad00);
  color: #1a1a1a;
}

/* Планшет: фото | текст в ряд, блок цены снизу на всю ширину */
@media (max-width: 991.98px) and (min-width: 768px) {
  #product-list.product-list .product-thumb.emmet-thumb .emmet-thumb__row {
    grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  }
  #product-list.product-list .emmet-thumb__buy {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid #f0f0f0;
    flex-direction: row;
    align-items: center;
    max-width: none;
    justify-self: stretch;
  }
  #product-list.product-list .emmet-thumb__buy .emmet-thumb__price {
    flex: 1 1 auto;
    min-width: 0;
  }
  #product-list.product-list .emmet-thumb__buy .emmet-thumb__buy-actions {
    flex: 0 1 260px;
    max-width: 280px;
    min-width: 200px;
  }
  #product-list.product-list .emmet-thumb__btn-cart {
    width: 100%;
    max-width: none;
    white-space: nowrap;
  }
}

/* Телефон: одна колонка — фото сверху, информация, снизу цена | иконка в корзину */
@media (max-width: 767.98px) {
  #product-list.product-list .product-thumb.emmet-thumb .emmet-thumb__row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "main"
      "buy";
  }

  #product-list.product-list .emmet-thumb__media {
    grid-area: media;
    border-right: 0;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 10px 10px;
  }

  #product-list.product-list .emmet-thumb__image {
    max-height: 200px;
    margin: 0 auto;
    width: 100%;
  }

  #product-list.product-list .emmet-thumb__image img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }

  #product-list.product-list .emmet-thumb__main {
    grid-area: main;
    padding: 8px 10px 10px;
  }

  #product-list.product-list .emmet-thumb__title {
    font-size: 14px;
  }

  #product-list.product-list .emmet-thumb__buy {
    grid-area: buy;
    grid-column: auto;
    border-left: 0;
    border-top: 1px solid #f0f0f0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 10px;
    max-width: none;
  }

  #product-list.product-list .emmet-thumb__buy .emmet-thumb__price {
    flex: 1 1 auto;
    min-width: 0;
  }

  #product-list.product-list .emmet-thumb__buy .emmet-thumb__buy-actions {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  #product-list.product-list .emmet-thumb__more {
    display: none !important;
  }

  #product-list.product-list .emmet-thumb__price-new {
    font-size: 17px;
    line-height: 1.2;
  }

  #product-list.product-list .emmet-thumb__install-btn {
    font-size: 0.72rem;
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 6px 8px;
    line-height: 1.3;
  }

  #product-list.product-list .emmet-thumb__cartform {
    width: auto;
  }

  #product-list.product-list .emmet-thumb__btn-cart {
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 0;
    line-height: 0;
    white-space: nowrap;
  }

  #product-list.product-list .emmet-thumb__btn-cart i {
    font-size: 1.1rem;
    line-height: 1;
    margin: 0 !important;
  }

  #product-list.product-list .emmet-thumb__meta-item {
    display: none;
  }

  #product-list.product-list .emmet-thumb__attrs {
    display: none;
  }

  #product-list.product-list .emmet-thumb__perks {
    display: none !important;
  }

  #product-list.product-list .emmet-thumb__desc--mobile-catalog {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    margin: 6px 0 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #555;
  }

  #product-list.product-list .emmet-thumb__desc:not(.emmet-thumb__desc--mobile-catalog) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  #product-list.product-list button.emmet-thumb__iconbtn {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 575.98px) {
  #product-list.product-list .emmet-thumb__media {
    padding: 8px 10px 10px;
  }
  #product-list.product-list .emmet-thumb__main {
    padding: 8px 10px 10px;
  }
  #product-list.product-list .emmet-thumb__buy {
    padding: 8px 10px 10px;
  }
}

/* =======================================================================
   Каталог: сетка (не list) — тот же визуальный язык, что и список / карточка
   ======================================================================= */
#product-list:not(.product-list) > .col {
  display: flex;
}

#product-list:not(.product-list) .product-thumb.emmet-thumb {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

#product-list:not(.product-list) .product-thumb.emmet-thumb:hover {
  border-color: #d8d8d8;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

#product-list:not(.product-list) .emmet-thumb__row {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
}

#product-list:not(.product-list) .emmet-thumb__media {
  padding: 12px 12px 0;
  flex: 0 0 auto;
}

#product-list:not(.product-list) .emmet-thumb__image {
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #f2f2f2;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#product-list:not(.product-list) .emmet-thumb__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#product-list:not(.product-list) .emmet-thumb__main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
}

#product-list:not(.product-list) .emmet-thumb__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

#product-list:not(.product-list) .emmet-thumb__title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 800;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#product-list:not(.product-list) .emmet-thumb__title a {
  color: var(--emmet-accent-ink, #1a1a1a);
  text-decoration: none;
}

#product-list:not(.product-list) .emmet-thumb__title a:hover {
  color: var(--emmet-accent-hover, #d9ad00);
}

  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 6px;
  font-size: 12px;
}

#product-list:not(.product-list) .emmet-thumb__attrs {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #444;
  flex: 0 1 auto;
  max-height: 4.6em;
  overflow: hidden;
}

#product-list:not(.product-list) .emmet-thumb__attrs-k {
  color: #777;
}

#product-list:not(.product-list) .emmet-thumb__desc {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 0 1 auto;
}

#product-list:not(.product-list) .emmet-thumb__perks {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#product-list:not(.product-list) .emmet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fffbea;
  color: #5c4a00;
  border: 1px solid rgba(245, 196, 0, 0.35);
  font-size: 11px;
  white-space: nowrap;
}

#product-list:not(.product-list) .emmet-pill i {
  color: var(--emmet-accent, #f5c400);
  font-size: 11px;
}

#product-list:not(.product-list) .emmet-thumb__buy {
  margin-top: auto;
  padding: 12px 14px 14px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
}

#product-list:not(.product-list) .emmet-thumb__price {
  width: 100%;
  min-width: 0;
}

#product-list:not(.product-list) .emmet-thumb__price-new {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--emmet-accent-ink, #1a1a1a);
  line-height: 1.2;
}

#product-list:not(.product-list) .emmet-thumb__price-old {
  margin-top: 2px;
  color: #9a9a9a;
  text-decoration: line-through;
  font-size: 15px;
  font-weight: 600;
}

#product-list:not(.product-list) .emmet-thumb__price-compare {
  margin: 0 0 3px;
  font-size: 14px;
}

#product-list:not(.product-list) .emmet-thumb__install-btn {
  font-size: 0.78rem;
  margin-top: 10px;
  margin-bottom: 8px;
  line-height: 1.3;
}

#product-list:not(.product-list) .emmet-thumb__cartform {
  width: 100%;
  margin: 0;
}

#product-list:not(.product-list) .emmet-thumb__btn-cart,
#product-list:not(.product-list) .emmet-thumb__btn-cart.btn-primary {
  width: 100%;
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 12px;
  border: none;
  background: var(--emmet-accent, #f5c400) !important;
  color: var(--emmet-accent-ink, #1a1a1a) !important;
  box-shadow: 0 4px 14px rgba(245, 196, 0, 0.35);
}

#product-list:not(.product-list) .emmet-thumb__btn-cart:hover,
#product-list:not(.product-list) .emmet-thumb__btn-cart.btn-primary:hover {
  background: var(--emmet-accent-hover, #d9ad00) !important;
  color: var(--emmet-accent-ink, #1a1a1a) !important;
}

#product-list:not(.product-list) .emmet-thumb__btn-cart.emmet-btn-added,
#product-list:not(.product-list) .emmet-thumb__btn-cart.btn-primary.emmet-btn-added {
  background: #1ea97c !important;
  border-color: #1ea97c !important;
  color: #fff !important;
  box-shadow: none;
}

/* =======================================================================
   Боковой модуль «Фильтр» (extension opencart module/filter)
   ======================================================================= */
.emmet-filter.card {
  --bs-card-border-width: 0;
  --bs-card-border-color: transparent;
  --bs-card-cap-bg: transparent;
  --bs-card-bg: #fff;
  --bs-card-inner-border-radius: 0;
  --emmet-filter-sticky-gap: 10px;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  overflow: visible;
  background: #fff;
  margin-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
}

.emmet-filter .card-header {
  padding: 0;
  border-bottom: none;
  background: transparent;
}

.emmet-filter__header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  background: linear-gradient(135deg, #fffbea 0%, #fff 48%, #fafafa 100%);
  border-bottom: 1px solid #f0f0f0;
  border-radius: 12px 12px 0 0;
  font-weight: 800;
  font-size: 13px;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-filter__header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(245, 196, 0, 0.4);
  color: var(--emmet-accent, #f5c400);
  font-size: 13px;
  flex-shrink: 0;
}

.emmet-filter__header-text {
  line-height: 1.2;
}

.emmet-filter__body {
  padding: 8px 10px 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(62vh, 520px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

@media (min-width: 768px) {
  .emmet-filter__body {
    max-height: none;
    overflow: visible;
  }
}

.emmet-filter__body::-webkit-scrollbar {
  width: 6px;
}
.emmet-filter__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
}

.emmet-filter__group {
  margin-bottom: 0;
  padding-bottom: 10px;
}
.emmet-filter__group + .emmet-filter__group {
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.emmet-filter__group:last-child {
  padding-bottom: 0;
}

.emmet-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.emmet-active-filters[hidden] {
  display: none !important;
}

.emmet-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 8px 5px 10px;
  font-size: 13px;
  line-height: 1.25;
  color: #1a1a1a;
  background: #f3f3f3;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
}

.emmet-active-filter-chip__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emmet-active-filter-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #777;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.emmet-active-filter-chip__remove:hover,
.emmet-active-filter-chip__remove:focus-visible {
  color: #222;
  background: rgba(0, 0, 0, 0.06);
}

.emmet-filter__group-title {
  margin: 0 0 6px 0;
  padding: 0 2px 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emmet-muted, #5c5c5c);
  border-left: 3px solid var(--emmet-accent, #f5c400);
  line-height: 1.3;
}

.emmet-filter__group--yesno {
  padding-bottom: 12px;
}

.emmet-filter__group--yesno .emmet-filter__group-title {
  margin-bottom: 8px;
  padding: 0;
  border-left: 0;
  text-transform: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: #111;
  line-height: 1.25;
}

.emmet-filter__yesno-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 3px;
  border: 1px solid #e2e2e8;
  border-radius: 10px;
  background: #f6f6f8;
  box-shadow: inset 0 1px 2px rgba(17, 17, 26, 0.04);
  gap: 3px;
}

.emmet-filter__yesno-btn {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #3a3a44;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.emmet-filter__yesno-btn:hover {
  background: rgba(255, 255, 255, 0.72);
  color: #111;
}

.emmet-filter__yesno-btn.is-active {
  background: #fff;
  border-color: #d5d5dd;
  color: #111;
  box-shadow: 0 1px 3px rgba(17, 17, 26, 0.08);
}

.emmet-filter__yesno-btn:focus-visible {
  outline: 2px solid rgba(245, 196, 0, 0.65);
  outline-offset: 1px;
}

.emmet-filter__options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emmet-filter__option {
  position: relative;
}

.emmet-filter__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.emmet-filter__label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 5px 7px 5px 7px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--emmet-accent-ink, #1a1a1a);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
}

.emmet-filter__label:hover {
  background: #fafafa;
  border-color: #f0f0f0;
}

.emmet-filter__label::before {
  content: '';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 2px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.emmet-filter__checkbox:focus-visible + .emmet-filter__label::before {
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.45);
  border-color: var(--emmet-accent, #f5c400);
}

.emmet-filter__checkbox:checked + .emmet-filter__label {
  background: #fffbea;
  border-color: rgba(245, 196, 0, 0.35);
  font-weight: 600;
}

.emmet-filter__checkbox:checked + .emmet-filter__label::before {
  background-color: var(--emmet-accent, #f5c400);
  border-color: #c9a000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231a1a1a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3 3 6.5-7'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.emmet-filter__label-text {
  flex: 1 1 auto;
  min-width: 0;
}

.emmet-filter__house-tag {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: linear-gradient(180deg, #ffe98a, #f5c400);
  border: 1px solid rgba(201, 160, 0, 0.45);
  line-height: 1.35;
  white-space: nowrap;
}

.emmet-filter__option--house-brand .emmet-filter__label {
  background: #fffdf3;
  border-color: rgba(245, 196, 0, 0.22);
}

.emmet-filter__option--house-brand .emmet-filter__checkbox:checked + .emmet-filter__label {
  background: #fffbea;
  border-color: rgba(245, 196, 0, 0.45);
}

.emmet-filter__option--zero:not(:has(.emmet-filter__checkbox:checked)) .emmet-filter__label {
  color: #8a8a8a;
}

.emmet-filter__option--zero:not(:has(.emmet-filter__checkbox:checked)) .emmet-filter__label-text {
  opacity: 0.85;
}

.emmet-filter__option--blocked .emmet-filter__label,
.emmet-filter__option--blocked .emmet-filter__label-text {
  color: #a8a8a8;
  cursor: not-allowed;
}

.emmet-filter__option--blocked .emmet-filter__checkbox:disabled + .emmet-filter__label {
  opacity: 0.72;
}

.emmet-filter__yesno-btn--blocked,
.emmet-filter__yesno-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.emmet-filter__footer {
  position: relative;
  padding: 8px 10px 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
  flex: 0 0 auto;
}

.emmet-filter__footer--sticky {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-top: auto;
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.92) 0%, #fafafa 28%);
  backdrop-filter: blur(6px);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  /*
   * Длинный фильтр: карточка липнет в колонке, список опций скроллится внутри,
   * «Сбросить» / «Применить» всегда внизу экрана; ниже — категории сайдбара.
   */
  .emmet-sidebar-module--filter > .emmet-filter.card {
    position: sticky;
    top: calc(var(--emmet-sticky-offset, 72px) + var(--emmet-filter-sticky-gap));
    max-height: calc(100dvh - var(--emmet-sticky-offset, 72px) - var(--emmet-filter-sticky-gap) * 2);
    z-index: 5;
  }

  .emmet-sidebar-module--filter .emmet-filter__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
  }

  .emmet-sidebar-module--filter .emmet-filter__body::-webkit-scrollbar {
    width: 6px;
  }

  .emmet-sidebar-module--filter .emmet-filter__body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 6px;
  }
}

@media (max-width: 767.98px) {
  /*
   * В offcanvas — прокрутка всей панели; футер липнет к низу экрана,
   * пока блок фильтра на экране, затем уезжает вместе с ним.
   */
  .emmet-catalog-offcanvas .emmet-filter__body {
    max-height: none;
    overflow-y: visible;
  }

  .emmet-catalog-offcanvas .emmet-filter__footer--sticky {
    bottom: env(safe-area-inset-bottom, 0px);
    z-index: 10;
  }

  .emmet-catalog-offcanvas .offcanvas-body {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

.emmet-filter__footer-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.emmet-filter__reset {
  flex: 0 0 auto;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #444;
  white-space: nowrap;
}

.emmet-filter__reset:hover {
  background: #f3f3f3;
  color: #1a1a1a;
  border-color: #c8c8c8;
}

.emmet-filter__reset:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.emmet-filter__footer-actions .emmet-filter__submit {
  flex: 1 1 auto;
  width: auto;
}

.emmet-filter__hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% + 6px);
  padding: 8px 10px;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 8;
}

.emmet-filter__hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.emmet-filter--applied .emmet-filter__header-text::after {
  content: ' · применён';
  font-weight: 600;
  color: #6b6b6b;
  text-transform: none;
  letter-spacing: 0;
}

.emmet-filter__submit {
  width: 100%;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border: none;
  background: var(--emmet-accent, #f5c400) !important;
  color: var(--emmet-accent-ink, #1a1a1a) !important;
  box-shadow: 0 3px 10px rgba(245, 196, 0, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.emmet-filter__submit:hover {
  background: var(--emmet-accent-hover, #d9ad00) !important;
  color: var(--emmet-accent-ink, #1a1a1a) !important;
  box-shadow: 0 6px 18px rgba(245, 196, 0, 0.42);
}

.emmet-filter__submit:active {
  transform: translateY(1px);
}

.emmet-filter__submit.btn:focus-visible {
  outline: none;
  box-shadow:
    0 4px 14px rgba(245, 196, 0, 0.35),
    0 0 0 3px rgba(245, 196, 0, 0.45);
}

.emmet-filter__submit.is-dirty {
  box-shadow:
    0 3px 10px rgba(245, 196, 0, 0.3),
    0 0 0 2px rgba(245, 196, 0, 0.55);
}

.emmet-filter__submit.is-dirty.is-zero {
  background: #f5f5f5;
  color: #666;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    0 0 0 2px rgba(180, 180, 180, 0.45);
}

.emmet-filter__submit.is-dirty.is-zero:hover {
  background: #ececec;
  color: #444;
}

/* Свернутый/развёрнутый список значений (бренд, атрибуты, filter[]) */
.emmet-filter__collapsible {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emmet-filter__collapsible-search {
  display: none;
  width: 100%;
  margin: 0 0 6px;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.3;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}

.emmet-filter__collapsible-search:focus {
  border-color: var(--emmet-accent, #f5c400);
  box-shadow: 0 0 0 2px rgba(245, 196, 0, 0.25);
  outline: none;
}

.emmet-filter__collapsible-scroll {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}

.emmet-filter__collapsible.is-expanded .emmet-filter__collapsible-search {
  display: block;
}

.emmet-filter__collapsible.is-expanded .emmet-filter__collapsible-scroll {
  max-height: min(40vh, 260px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

.emmet-filter__collapsible.is-expanded .emmet-filter__collapsible-scroll::-webkit-scrollbar {
  width: 6px;
}
.emmet-filter__collapsible.is-expanded .emmet-filter__collapsible-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.emmet-filter__collapsible:not(.is-expanded) .emmet-filter__option--folded {
  display: none;
}

.emmet-filter__collapsible:not(.is-expanded) .emmet-filter__option--folded:has(.emmet-filter__checkbox:checked) {
  display: block;
}

.emmet-filter__collapsible:not(.is-expanded) .emmet-filter__line-link--folded {
  display: none;
}

.emmet-filter__collapsible:not(.is-expanded) .emmet-filter__line-link--active.emmet-filter__line-link--folded {
  display: flex;
}

.emmet-filter__group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.emmet-filter__group-head .emmet-filter__group-title {
  margin-bottom: 0;
}

.emmet-filter__group-link {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #0b5ed7;
  text-decoration: none;
  white-space: nowrap;
}

.emmet-filter__group-link:hover {
  text-decoration: underline;
}

.emmet-filter__group-meta {
  font-size: 11px;
  font-weight: 600;
  color: #6c757d;
}

.emmet-filter__option--locked .emmet-filter__label {
  cursor: default;
  background: #fffbea;
  border-color: rgba(245, 196, 0, 0.35);
  font-weight: 600;
}

.emmet-filter__option--locked .emmet-filter__checkbox:disabled + .emmet-filter__label::before {
  background-color: var(--emmet-accent, #f5c400);
  border-color: #c9a000;
  opacity: 0.85;
}

.emmet-filter__phone-now {
  margin: 0 0 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f5f7fa;
  border: 1px solid #e8ecf0;
  font-size: 12px;
  line-height: 1.35;
  color: #5c5c5c;
}

.emmet-filter__phone-now strong {
  color: #1a1a1a;
  font-weight: 700;
}

.emmet-filter__phone-now-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  margin-bottom: 2px;
}

.emmet-filter__phone-lines-hint {
  line-height: 1.4;
  margin: 0 0 8px;
}

.emmet-filter__phone-lines-scroll {
  gap: 2px;
}

.emmet-filter__line-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.emmet-filter__line-link:hover {
  background: #f0f4ff;
  color: #0b5ed7;
}

.emmet-filter__line-link--active {
  background: #e8f0fe;
  color: #0b5ed7;
  font-weight: 600;
}

.emmet-filter__line-link--current {
  cursor: default;
  pointer-events: none;
}

.emmet-filter__line-link__count {
  font-size: 12px;
  color: #6c757d;
  white-space: nowrap;
}

.emmet-filter__option--search-hide,
.emmet-filter__line-link.emmet-filter__option--search-hide {
  display: none !important;
}

.emmet-filter__collapsible-toggle {
  align-self: flex-start;
  margin: 4px 0 0;
  padding: 0;
  border: none;
  background: none !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #0b5ed7 !important;
  text-decoration: none;
}

.emmet-filter__collapsible-toggle:hover {
  color: #084298 !important;
  text-decoration: underline;
}

.emmet-filter__chev {
  display: inline-block;
  margin-left: 3px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* ---------- Фильтр по цене (категория, сайдбар) ---------- */
.emmet-price-filter.card {
  --bs-card-border-width: 0;
  --bs-card-border-color: transparent;
  --bs-card-cap-bg: transparent;
  --bs-card-bg: #fff;
  --bs-card-inner-border-radius: 0;
  border: 1px solid var(--emmet-top-border, #e8e8e8);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background: #fff;
  margin-bottom: 0.65rem;
}

.emmet-price-filter__header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  background: linear-gradient(135deg, #fffbea 0%, #fff 48%, #fafafa 100%);
  border-bottom: 1px solid #f0f0f0;
  font-weight: 800;
  font-size: 13px;
  color: var(--emmet-accent-ink, #1a1a1a);
}

.emmet-price-filter__header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(245, 196, 0, 0.4);
  color: var(--emmet-accent, #f5c400);
  font-size: 13px;
  flex-shrink: 0;
}

.emmet-price-filter__body {
  padding: 8px 10px 8px;
}

.emmet-price-filter__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.emmet-price-filter__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
}

.emmet-price-filter__label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--emmet-muted, #5c5c5c);
}

.emmet-price-filter__input {
  border-radius: 8px;
  font-size: 12px;
  padding: 6px 8px;
  border: 1px solid #e4e4e4;
}

.emmet-price-filter__slider-wrap {
  position: relative;
  height: 32px;
  margin-top: 10px;
  margin-bottom: 0;
  touch-action: none;
}

.emmet-price-filter__slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 5px;
  background: #ececec;
  pointer-events: none;
  z-index: 0;
}

.emmet-price-filter__slider-range {
  position: absolute;
  left: var(--emmet-range-left-pct, 0%);
  width: var(--emmet-range-width-pct, 100%);
  top: 50%;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 5px;
  background: var(--emmet-accent, #f5c400);
  pointer-events: none;
  z-index: 1;
}

.emmet-price-filter__thumb {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 2px solid #c9a000;
  border-radius: 50%;
  background: var(--emmet-accent, #f5c400);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}

.emmet-price-filter__thumb--min {
  left: var(--emmet-thumb-min-pct, 0%);
}

.emmet-price-filter__thumb--max {
  left: var(--emmet-thumb-max-pct, 100%);
  z-index: 3;
}

.emmet-price-filter__thumb.is-active {
  z-index: 4;
  cursor: grabbing;
}

.emmet-price-filter__thumb:focus-visible {
  outline: none;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.12),
    0 0 0 3px rgba(245, 196, 0, 0.45);
}

.emmet-price-filter__footer {
  padding: 8px 10px 10px;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.emmet-price-filter__submit {
  width: 100%;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 10px;
  border: none;
  background: var(--emmet-accent, #f5c400) !important;
  color: var(--emmet-accent-ink, #1a1a1a) !important;
  box-shadow: 0 3px 10px rgba(245, 196, 0, 0.3);
}

.emmet-price-filter__submit:hover {
  background: var(--emmet-accent-hover, #d9ad00) !important;
}

.emmet-price-filter__reset {
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: var(--emmet-muted, #5c5c5c) !important;
}

.emmet-price-filter__reset:hover {
  color: var(--emmet-accent-ink, #1a1a1a) !important;
}

.emmet-filter__group--attr-range .emmet-attr-range-filter {
  padding: 0 2px 4px;
}

.emmet-filter__group--attr-range .emmet-filter__range-inputs {
  margin-top: 4px;
}

.emmet-filter__group--attr-range .emmet-price-filter__slider-wrap {
  margin-top: 8px;
  margin-bottom: 2px;
}

.emmet-filter__group--year-facet .emmet-filter__facet-options,
.emmet-filter__group--diagonal-facet .emmet-filter__facet-options,
.emmet-filter__group--facet-range .emmet-filter__facet-options {
  margin-bottom: 10px;
}

.emmet-filter__facet-range,
.emmet-filter__year-range {
  padding: 0 2px 4px;
}

.emmet-filter__facet-range-fields,
.emmet-filter__year-range-fields {
  display: flex;
  align-items: stretch;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.emmet-filter__facet-range-select,
.emmet-filter__year-range-input {
  flex: 1 1 50%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 10px 28px 10px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  color: #1a1a1a;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239a9a9a' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.emmet-filter__year-range-input {
  text-align: center;
  padding: 10px 12px;
  background-image: none;
  cursor: text;
}

.emmet-filter__facet-range-select:focus,
.emmet-filter__year-range-input:focus {
  outline: none;
  background-color: #fffef5;
}

.emmet-filter__year-range-input::placeholder {
  color: #9a9a9a;
  font-weight: 500;
}

.emmet-filter__facet-range-sep,
.emmet-filter__year-range-sep {
  flex: 0 0 1px;
  align-self: stretch;
  background: #d8d8d8;
}

/* ---------- Пагинация каталога / списков (общий pagination.twig) ---------- */
.emmet-catalog-pagination-bar {
  margin-bottom: 2.5rem;
  padding-bottom: 0.35rem;
}

.emmet-pagination-wrap {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 1.25rem;
}

.emmet-catalog-pagination-bar .emmet-pagination-wrap {
  margin-bottom: 0;
}

.pagination.emmet-pagination {
  gap: 8px;
  align-items: center;
}

.pagination.emmet-pagination .page-item + .page-item {
  margin-left: 0;
}

.pagination.emmet-pagination .page-link {
  position: relative;
  z-index: 1;
  min-width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.62rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--emmet-accent-ink, #1a1a1a);
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.pagination.emmet-pagination .page-item:first-child .page-link,
.pagination.emmet-pagination .page-item:last-child .page-link {
  border-radius: 11px;
}

.pagination.emmet-pagination .page-link:hover {
  background: #fffbea;
  border-color: rgba(245, 196, 0, 0.55);
  color: var(--emmet-accent-ink, #1a1a1a);
  box-shadow: 0 2px 8px rgba(245, 196, 0, 0.18);
}

.pagination.emmet-pagination .page-link:focus-visible {
  outline: none;
  border-color: rgba(245, 196, 0, 0.85);
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.35);
}

.pagination.emmet-pagination .page-item.active .page-link {
  z-index: 2;
  color: var(--emmet-accent-ink, #1a1a1a);
  background: linear-gradient(180deg, #fff8dc 0%, var(--emmet-accent, #f5c400) 100%);
  border-color: rgba(217, 173, 0, 0.75);
  box-shadow:
    0 2px 10px rgba(245, 196, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.pagination.emmet-pagination .page-item.disabled .page-link {
  opacity: 0.55;
}

.pagination.emmet-pagination .emmet-pagination__chev {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.emmet-catalog-pagination-bar .col-sm-6.text-end {
  font-size: 0.875rem;
  color: var(--emmet-muted, #5c5c5c);
}

@media (max-width: 575.98px) {
  .emmet-catalog-pagination-bar {
    margin-bottom: 2rem;
  }

  .pagination.emmet-pagination {
    gap: 6px;
  }

  .pagination.emmet-pagination .page-link {
    min-width: 2.35rem;
    padding: 0.38rem 0.5rem;
    font-size: 0.8125rem;
  }
}

/* Отложенное тело подвала: скелет и фикс высоты против CLS */
.emmet-footer-deferred-wrap.emmet-footer-deferred--pending {
  min-height: 260px;
}

.emmet-footer-skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  padding: 1rem 0 2rem;
}

.emmet-footer-skel-title {
  height: 14px;
  border-radius: 6px;
  max-width: 160px;
  background: linear-gradient(90deg, #e4e4e4 0%, #efefef 50%, #e4e4e4 100%);
  background-size: 200% 100%;
  animation: emmetFooterSkel 1.2s ease-in-out infinite;
  margin-bottom: 0.85rem;
}

.emmet-footer-skel-title--sm {
  max-width: 200px;
  height: 12px;
}

.emmet-footer-skel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.emmet-footer-skel-pill {
  display: inline-block;
  height: 22px;
  width: 72px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eaeaea 0%, #f4f4f4 50%, #eaeaea 100%);
  background-size: 200% 100%;
  animation: emmetFooterSkel 1.2s ease-in-out infinite;
}

.emmet-footer-skel-pill--wide {
  width: 120px;
}

.emmet-footer-skel-line {
  height: 11px;
  border-radius: 5px;
  max-width: 90%;
  margin-bottom: 0.45rem;
  background: linear-gradient(90deg, #e8e8e8 0%, #f2f2f2 50%, #e8e8e8 100%);
  background-size: 200% 100%;
  animation: emmetFooterSkel 1.2s ease-in-out infinite;
}

.emmet-footer-skel-line--long {
  max-width: 100%;
}

.emmet-footer-skel-line--legal {
  max-width: 100%;
  height: 10px;
  margin: 1rem auto 0;
}

.emmet-footer-skel-social {
  height: 36px;
  width: 120px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e8e8e8 0%, #f2f2f2 50%, #e8e8e8 100%);
  background-size: 200% 100%;
  animation: emmetFooterSkel 1.2s ease-in-out infinite;
}

.emmet-footer-skel-badge {
  display: inline-block;
  width: 56px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e2e2 0%, #ececec 50%, #e2e2e2 100%);
  background-size: 200% 100%;
  animation: emmetFooterSkel 1.2s ease-in-out infinite;
}

.emmet-footer-skel-payments {
  padding: 1rem 0 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Плавное появление отложенных блоков (фильтр, карточки) */
.emmet-deferred-reveal {
  animation: emmetDeferredFadeIn 0.38s ease-out both;
}

.emmet-category-content-top-deferred:not([aria-busy="true"]) {
  animation: emmetDeferredFadeIn 0.32s ease-out both;
}

#product-list > .col {
  animation: emmetDeferredFadeIn 0.42s ease-out both;
}

#product-list > .col:nth-child(2) {
  animation-delay: 0.04s;
}

#product-list > .col:nth-child(3) {
  animation-delay: 0.08s;
}

#product-list > .col:nth-child(4) {
  animation-delay: 0.12s;
}

.emmet-column-left--pending .emmet-skel-sidebar-panel,
.emmet-column-left--pending .emmet-skel-sidebar-panel--dense,
.emmet-column-left--pending .emmet-skel-sidebar-panel--price {
  background: linear-gradient(90deg, #ececec 0%, #f6f6f6 50%, #ececec 100%);
  background-size: 200% 100%;
  animation: emmetFooterSkel 1.15s ease-in-out infinite;
}

.emmet-skel-sidebar-panel--price {
  min-height: 7.5rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

@keyframes emmetDeferredFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.emmet-inline-skel {
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(90deg, #ececec 0%, #f6f6f6 50%, #ececec 100%);
  background-size: 200% 100%;
  animation: emmetFooterSkel 1.1s ease-in-out infinite;
  vertical-align: middle;
}

.emmet-inline-skel--pagination {
  width: 10rem;
  height: 2.1rem;
}

.emmet-inline-skel--results {
  width: 7.5rem;
  height: 0.95rem;
}

#emmet-category-listing-root {
  position: relative;
}

#emmet-category-listing-root.emmet-listing-is-loading {
  pointer-events: none;
}

#emmet-category-listing-root.emmet-listing-is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

@keyframes emmetFooterSkel {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* =======================================================================
   Мобильная нижняя полоска: город, сравнение, корзина, звонок, избранное
   ======================================================================= */
@media (max-width: 767.98px) {
  main {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
}

.emmet-mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  /* Выше FAB (1100); на мобилке мессенджер справа, не перекрывает «Город» слева */
  z-index: 1210;
  border-top: none;
  border-radius: 18px 18px 0 0;
  overflow: visible;
  background: rgba(252, 253, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.65) inset,
    0 -12px 40px rgba(15, 23, 42, 0.08),
    0 -4px 16px rgba(15, 23, 42, 0.04);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .emmet-mobile-tabbar {
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f9 100%);
  }
}

.emmet-mobile-tabbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  max-width: 100%;
  min-height: 52px;
  border-radius: 18px 18px 0 0;
  /* visible: иначе overflow:hidden режет dropup города и ломает Popper/clippingParents */
  overflow: visible;
}

.emmet-mobile-tabbar__cell--city {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.emmet-mobile-tabbar__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px 9px;
  text-decoration: none;
  color: #5c6370;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  border-left: 1px solid rgba(15, 23, 42, 0.06);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.emmet-mobile-tabbar__cell--city + .emmet-mobile-tabbar__item {
  border-left: none;
}

.emmet-mobile-tabbar__item:active {
  background: rgba(245, 196, 0, 0.12);
  color: #1f2937;
}

.emmet-mobile-tabbar__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3d4556;
  flex-shrink: 0;
}

.emmet-mobile-tabbar__txt {
  max-width: 100%;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Город в таббаре: как отдельная «кнопка» с подписью */
.emmet-mobile-tabbar .site-header__city--tabbar {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.emmet-mobile-tabbar .site-header__city--tabbar .site-header__city-btn {
  width: 100%;
  height: 100%;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px 9px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #5c6370;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.emmet-mobile-tabbar .site-header__city--tabbar .site-header__city-btn:hover,
.emmet-mobile-tabbar .site-header__city--tabbar .site-header__city-btn:focus {
  background: rgba(245, 196, 0, 0.1);
  color: #1f2937;
}

.emmet-mobile-tabbar .site-header__city--tabbar .site-header__city-btn .fa-location-dot {
  font-size: 17px;
  line-height: 1;
  color: var(--emmet-accent, #f5c400);
}

.emmet-mobile-tabbar .site-header__city--tabbar .site-header__city-label {
  display: block;
  max-width: 100%;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #5c6370;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.emmet-mobile-tabbar .site-header__city--tabbar .site-header__city-menu {
  max-width: min(100vw - 16px, 380px);
  max-height: min(72vh, 440px);
  overflow-y: auto;
  margin-bottom: 6px !important;
  /* static display (BS): меню в потоке dropup, не под обрезанием inner */
  z-index: calc(var(--emmet-z-city-dropdown, 100500) + 2);
}

.emmet-mobile-tabbar__ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.emmet-mobile-tabbar__cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  background: #1a1a1a;
  color: #fff;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
}

.emmet-mobile-tabbar__cart-count.is-zero {
  opacity: 0.92;
}

/* Мобилка: убрать жёлтый FAB-корзины; счётчик — на нижней плашке; чат — справа над таббаром */
@media (max-width: 767.98px) {
  .emmet-fab-stack {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px) + 12px);
    right: 12px;
    left: auto;
    align-items: flex-end;
    gap: 10px;
  }

  .emmet-fab-messenger__flyout {
    right: 0;
    left: auto;
  }

  .emmet-fab-cart__btn {
    display: none !important;
  }

  /* Тост «добавлено» — fixed, чтобы не зависеть от скрытой кнопки корзины */
  .emmet-fab-cart__toast {
    position: fixed;
    right: 12px;
    left: auto;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px) + 12px + 56px + 10px);
    z-index: 1101;
  }
}

/* Мегакаталог: плитка 2 колонки до md (emmet-catalog-mega.css подгружается при открытии — без этого сетка не включается) */
@media (max-width: 991.98px) {
  #emmet-catalog-mega .emmet-mega-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 10px;
    padding-top: 6px;
  }

  #emmet-catalog-mega .emmet-mega-card {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 10px 6px;
    gap: 6px;
    border-radius: 12px;
  }

  #emmet-catalog-mega .emmet-mega-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  #emmet-catalog-mega .emmet-mega-card__name {
    width: 100%;
    font-size: 0.74rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #emmet-catalog-mega .emmet-mega-card__chev {
    display: none !important;
  }
}

/* ==========================================================================
   Цена BYN (system/library/cart/currency.php — HTML .emmet-price)
   ========================================================================== */
/* Зачёркнутая цена для сравнения (карточка товара + плитки каталога) */
.emmet-product-intro__price-compare,
.emmet-thumb__price-compare {
  font-weight: 700;
  line-height: 1.25;
  color: #73463f;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(115, 70, 63, 0.92);
  letter-spacing: -0.01em;
}

.emmet-product-intro__price-compare .emmet-price,
.emmet-thumb__price-compare .emmet-price {
  font-weight: 700;
}

.emmet-thumb__price {
  display: flex;
  flex-direction: column;
}

.emmet-thumb__price-compare {
  order: -1;
}

.emmet-price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.emmet-price__int,
.emmet-price__suffix {
  font-weight: inherit;
}

.emmet-price__dec {
  font-size: 0.8em;
  font-weight: inherit;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

/* ==========================================================================
   Плашка согласия с cookies (common/cookie.twig) — компактная, в тон тёмному подвалу
   ========================================================================== */

/* Перекрываем тему: stylesheet.css задаёт #cookie { height: 150px } — из‑за этого полоса «висит» с пустым низом */
#cookie.emmet-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100560;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0;
  margin: 0;
  background: transparent;
  opacity: 1;
  pointer-events: none;
}

.emmet-cookie-bar__shell {
  pointer-events: auto;
  background: #1a1b1f;
  color: #e6e6e9;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
  /* safe-area внутри полосы — без прозрачного зазора под плашкой */
  padding-bottom: max(0px, env(safe-area-inset-bottom, 0px));
}

.emmet-cookie-bar__inner {
  padding: 10px 12px 10px;
}

.emmet-cookie-bar__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px 16px;
}

.emmet-cookie-bar__message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.emmet-cookie-bar__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  margin-top: 2px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--emmet-accent, #f5c400);
  background: rgba(245, 196, 0, 0.12);
  border: 1px solid rgba(245, 196, 0, 0.28);
}

.emmet-cookie-bar__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.emmet-cookie-bar__title {
  margin: 0 0 2px;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.emmet-cookie-bar__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(230, 230, 233, 0.82);
}

/* Тема: #cookie div { font-size: 16px } — перебивает классы, без этого моб. кегль не уменьшается */
#cookie.emmet-cookie-bar .emmet-cookie-bar__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(230, 230, 233, 0.82);
}

.emmet-cookie-bar__text a.emmet-cookie-bar__link {
  color: #fff4b8;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.emmet-cookie-bar__text a.emmet-cookie-bar__link:hover {
  color: var(--emmet-accent, #f5c400);
}

.emmet-cookie-bar__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .emmet-cookie-bar__actions {
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .emmet-cookie-bar__row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .emmet-cookie-bar__message {
    align-items: flex-start;
  }

  .emmet-cookie-bar__title {
    font-size: 0.75rem;
  }

  #cookie.emmet-cookie-bar .emmet-cookie-bar__text--mobile {
    font-size: 0.6875rem;
    line-height: 1.3;
  }

  .emmet-cookie-bar__actions {
    width: 100%;
    justify-content: stretch;
    order: 0;
  }

  .emmet-cookie-bar__message {
    order: 1;
  }

  .emmet-cookie-bar__btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: normal;
    padding: 9px 10px;
    font-size: 0.78rem;
  }
}

.emmet-cookie-bar__btn {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 8px 14px;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.emmet-cookie-bar__btn--primary {
  background: var(--emmet-accent, #f5c400);
  color: var(--emmet-accent-ink, #1a1a1a);
  border-color: rgba(245, 196, 0, 0.9);
}

.emmet-cookie-bar__btn--primary:hover {
  background: var(--emmet-accent-hover, #d9ad00);
}

.emmet-cookie-bar__btn--ghost {
  background: transparent;
  color: rgba(230, 230, 233, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
}

.emmet-cookie-bar__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 196, 0, 0.45);
  color: #fff;
}

/* =======================================================================
   EMMET: страница 404 (not_found)
   ======================================================================= */
.emmet-error-404__breadcrumb {
  margin-bottom: 1.1rem;
}

.emmet-error-404__card {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
  background: linear-gradient(165deg, #fffdf6 0%, #ffffff 48%, #fafafa 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.emmet-error-404__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.emmet-error-404__code {
  display: inline-block;
  font-size: clamp(3rem, 10vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--emmet-accent, #f5c400);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9);
}

.emmet-error-404__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 1.35rem;
  color: var(--emmet-accent-ink, #1a1a1a);
  background: linear-gradient(180deg, #fff9e0 0%, rgba(245, 196, 0, 0.35) 100%);
  border: 1px solid rgba(245, 196, 0, 0.55);
}

.emmet-error-404__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 3.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #111;
}

.emmet-error-404__lead {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #444;
}

.emmet-error-404__hint {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #666;
}

.emmet-error-404__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.emmet-error-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.emmet-error-404__btn--primary {
  color: var(--emmet-accent-ink, #1a1a1a);
  background: var(--emmet-accent, #f5c400);
  border-color: rgba(245, 196, 0, 0.95);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.emmet-error-404__btn--primary:hover {
  color: var(--emmet-accent-ink, #1a1a1a);
  background: var(--emmet-accent-hover, #d9ad00);
  border-color: var(--emmet-accent-hover, #d9ad00);
}

.emmet-error-404__btn--ghost {
  color: #333;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}

.emmet-error-404__btn--ghost:hover {
  color: var(--emmet-accent-hover, #d9ad00);
  border-color: rgba(245, 196, 0, 0.65);
  background: #fffef8;
}

@media (max-width: 480px) {
  .emmet-error-404__actions {
    flex-direction: column;
    width: 100%;
  }

  .emmet-error-404__btn {
    width: 100%;
  }
}

