:root {
  --lada-black: #000000;
  --lada-gray-600: #4d5863;
  --lada-gray-500: #566777;
  --lada-gray-400: #a6adb5;
  --lada-zinc-300: #d9d9d9;
  --lada-zinc-100: #f4f4f4;
  --lada-white: #ffffff;
  --lada-orange: #e6873b;
}

.lp-cars {
  margin: 0;
  background: var(--lada-zinc-100);
  font-family: "LADA Pragmatica", Arial, sans-serif;
  color: var(--lada-gray-500);
}

.lp-cars * { box-sizing: border-box; }

.stock-page .container {
  max-width: 1920px;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1200px) {
  .stock-page .container { padding-left: 130px; padding-right: 130px; }
}

/* ============================================================
   HERO
   ============================================================ */
.stock-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  color: #fff;
}

@media (min-width: 992px) { .stock-hero { min-height: 1067px; } }

.stock-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.stock-hero__gradient {
  position: absolute;
  left: -80px;
  top: -138px;
  width: calc(100% + 160px);
  height: 430px;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.stock-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 33px;
  padding-bottom: 40px;
}

/* --- Top bar: logo left + right column (nav → line → address) --- */
.stock-hero__top {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.stock-hero__logo {
  width: 218px;
  height: 43px;
  object-fit: contain;
  flex: 0 0 auto;
  margin-top: 4px;
}

@media (max-width: 575px) { .stock-hero__logo { width: 140px; height: 28px; } }

/* Правая колонка — flex-col: nav → линия → адрес */
.stock-hero__nav-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.stock-hero__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26px;
  white-space: nowrap;
  overflow: hidden;
}

.stock-hero__nav a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.stock-hero__nav a:hover { opacity: 0.7; }

.stock-hero__menu {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* --- Separator line (внутри nav-row) --- */
.stock-hero__line {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.95);
  margin: 14px 0;
}

/* --- City + phone (внутри nav-row) --- */
.stock-hero__meta {
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28px;
  color: #fff;
}

/* --- Breadcrumbs --- */
.stock-hero__crumbs-row {
  display: flex;
  gap: 12px;
  margin-top: clamp(80px, 18vw, 530px);
  font-size: 15px;
  letter-spacing: 0.3px;
  color: #fff;
}

@media (max-width: 767px) { .stock-hero__crumbs-row { margin-top: 80px; font-size: 12px; } }

/* --- H1 --- */
.stock-hero__title {
  margin: 30px 0 0;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1.28px;
  font-weight: 400;
  max-width: 505px;
}

@media (max-width: 767px) { .stock-hero__title { margin-top: 15px; } }

/* Slim hero — с фото но низкий (избранное, сравнение) */
.stock-hero--slim {
  min-height: 0;
}
.stock-hero--slim .stock-hero__inner {
  padding-top: 28px;
  padding-bottom: 28px;
}
.stock-hero--slim .stock-hero__bg {
  object-position: center 30%;
}

/* ============================================================
   PROMO
   ============================================================ */
.stock-promo {
  color: #fff;
  margin-top: 48px;
}

@media (min-width: 992px) {
  .stock-promo { margin-top: 80px; }
}

.stock-promo__inner {
  position: relative;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #000 58%),
    #d9d9d9 url("./assets/offer-max-conditions.png") right center/auto 100% no-repeat;
  min-height: 240px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .stock-promo__inner { min-height: 299px; padding: 51px 60px; }
}

.stock-promo__inner > * { max-width: 700px; }

.stock-promo__title {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: 0.8px;
}

.stock-promo__sub {
  margin-top: 14px;
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.48px;
}

.stock-promo__sub2 {
  margin-top: 4px;
  font-size: clamp(14px, 1.6vw, 24px);
  font-weight: 400;
  letter-spacing: 0.48px;
}

/* ============================================================
   BREADCRUMBS (in-content)
   ============================================================ */
.stock-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--lada-gray-500);
  font-size: 13px;
  margin: 20px 0 15px;
}

.stock-breadcrumbs span:not(:last-child)::after {
  content: " /";
  margin-left: 10px;
  color: var(--lada-gray-400);
}

/* ============================================================
   SUMMARY PANEL
   ============================================================ */
.summary-panel {
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 40px;
}

.summary-text {
  color: var(--lada-gray-500);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.4px;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1200px) { .summary-actions { gap: 72px; } }

@media (max-width: 767px) {
  .summary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    justify-items: center;
  }
}

.switch-block {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--lada-gray-500);
  text-align: left;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.4px;
}

.switch-track {
  width: 63px;
  height: 28px;
  border-radius: 75px;
  background: var(--lada-gray-400);
  position: relative;
  flex: 0 0 63px;
}

.switch-thumb {
  width: 30px;
  height: 28px;
  border-radius: 75px;
  background: #fff;
  border: 3px solid var(--lada-gray-400);
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.2s ease;
}

.switch-text { line-height: 1.05; font-weight: 400; }

.switch-block.is-active .switch-track { background: var(--lada-orange); }
.switch-block.is-active .switch-thumb {
  left: 33px;
  border-color: var(--lada-orange);
  background: #fff;
}

.summary-counter {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--lada-gray-500);
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.summary-counter b { font-weight: 700; color: var(--lada-gray-500); }

.summary-counter__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background-color: var(--lada-orange);
}

.summary-counter__icon--compare {
  -webkit-mask: url("./assets/Menu_Alt_01.png") center/contain no-repeat;
  mask: url("./assets/Menu_Alt_01.png") center/contain no-repeat;
}

.summary-counter__icon--favorite {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  -webkit-mask: url("./assets/card-star.png") center/contain no-repeat;
  mask: url("./assets/card-star.png") center/contain no-repeat;
}

.summary-counter:focus-visible {
  outline: 2px solid var(--lada-orange);
  outline-offset: 2px;
}

/* ============================================================
   CONTENT
   ============================================================ */
.stock-content { margin-bottom: 60px; }

/* ============================================================
   FILTER PANEL
   ============================================================ */
.stock-filter-panel {
  background: transparent;
  display: flex;
  flex-direction: column;
}

/* Sticky-обёртка для всего сайдбара (фильтры + summary) на десктопе.
   ВАЖНО: position: sticky НЕ работает у элементов внутри overflow:clip контейнера
   (а html/body у нас clip из-за глобального overflow-x:clip).
   Решение — поднимаем sticky на сам <aside class="col-..."> через стандартный
   position: sticky + явное self-align внутри flex-row.
   .stock-sidebar внутри aside — обычный wrapper без sticky. */
@media (min-width: 992px) {
  .stock-page .row > aside.col-lg-4,
  .stock-page .row > aside.col-xxl-3 {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 4px;
    z-index: 1;
  }
  .stock-page .row > aside.col-lg-4::-webkit-scrollbar,
  .stock-page .row > aside.col-xxl-3::-webkit-scrollbar { width: 6px; }
  .stock-page .row > aside.col-lg-4::-webkit-scrollbar-thumb,
  .stock-page .row > aside.col-xxl-3::-webkit-scrollbar-thumb {
    background: var(--lada-zinc-300);
    border-radius: 4px;
  }
}

.filter-title {
  padding: 15px 30px;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--lada-gray-600);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.filter-title::after {
  content: "";
  width: 24px;
  height: 24px;
  background: url("./assets/Chevron_Up.png") center/contain no-repeat;
  flex: 0 0 24px;
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

.filter-title.is-open::after { transform: rotate(0); }

.filter-group { display: flex; flex-direction: column; }
.filter-group.is-hidden { display: none; }

.filter {
  padding: 15px 20px;
  background: #fff;
  color: var(--lada-gray-500);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  letter-spacing: 0.4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--lada-zinc-100);
  text-align: left;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.2s ease;
  width: 100%;
  font-family: inherit;
}

.filter:hover { background: #f9f9f9; }

.filter::after {
  content: "";
  width: 24px;
  height: 24px;
  background: url("./assets/Chevron_Up.png") center/contain no-repeat;
  flex: 0 0 24px;
  transform: rotate(180deg);
}

.filter.is-open::after { transform: rotate(0); }

.filter.is-active {
  background: rgba(230, 135, 59, 0.08);
  box-shadow: inset 4px 0 0 var(--lada-orange);
}

.filter-price {
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: nowrap;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 14px;
}
.filter-price::after { display: none; }
.filter-price strong { color: var(--lada-gray-600); font-weight: 700; flex-shrink: 0; font-size: 14px; }
.filter-price span { color: var(--lada-orange); flex-shrink: 0; font-size: 14px; }
.filter-price input {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--lada-zinc-300);
  background: transparent;
  color: var(--lada-orange);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 0 0 2px;
  text-align: right;
}
.filter-price input:focus-visible {
  outline: none;
  border-bottom-color: var(--lada-orange);
}

.reset-filters {
  padding: 15px 12px;
  background: #fff;
  color: var(--lada-gray-400);
  text-transform: uppercase;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.4px;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  font-family: inherit;
  width: 100%;
  white-space: nowrap;
}

.reset-filters:hover { background: var(--lada-orange); color: #fff; }

.filter-dropdown {
  background: #fff;
  border-top: 1px solid var(--lada-zinc-200, #d4d4d4);
  padding: 14px 18px 16px;
  display: none;
}
.filter-dropdown.show { display: block; }

.filter-dropdown__title {
  margin: 0 0 10px;
  color: var(--lada-gray-700, #3a3a3a);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Список — авто перенос на 2 колонки если узко, 3+ если шире */
.filter-dropdown__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.filter-option {
  border: 1px solid var(--lada-zinc-200, #d4d4d4);
  background: #fff;
  color: var(--lada-gray-700, #3a3a3a);
  padding: 10px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 1.3;
}

.filter-option:hover {
  background: #fdf3ea;
  border-color: var(--lada-orange);
  color: var(--lada-orange);
}

.filter-option.is-selected {
  border-color: var(--lada-orange);
  background: var(--lada-orange);
  color: #fff;
  font-weight: 700;
}

/* На mobile — одна колонка */
@media (max-width: 575px) {
  .filter-dropdown__list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CAR CARDS
   ============================================================ */
.car-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 8px;
}

.car-card.is-hidden,
.stock-results > .is-hidden { display: none !important; }

.cc-body {
  position: relative;
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.cc-badge {
  position: absolute;
  left: 0;
  top: 0;
  width: 260px;
  max-width: 70%;
  height: 32px;
  background: url("./assets/badge-slanted.png") left top/100% 100% no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px 0 25px;
  text-transform: uppercase;
  z-index: 10;
}

.cc-badge b { font-size: 24px; font-weight: 700; letter-spacing: 0.48px; line-height: 1; }
.cc-badge span { font-size: 12px; line-height: 1.05; font-weight: 700; letter-spacing: 0.24px; }

.cc-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  letter-spacing: 0.4px;
  margin: 46px 27px 10px;
  line-height: 1.2;
}

.cc-image {
  width: calc(100% - 12px);
  height: 230px;
  margin: 0 6px 10px;
  object-fit: contain;
  cursor: pointer;
}

.cc-lines { display: flex; gap: 8px; margin: 0 27px 20px; }
.cc-lines span { width: 40px; height: 2px; background: var(--lada-zinc-100); cursor: pointer; transition: background-color 0.2s; }
.cc-lines span.active { background: var(--lada-gray-500); }
/* Скрываем черточки если фото только одно */
.cc-lines:has(span:only-child) { display: none; }

.cc-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--lada-gray-600);
  letter-spacing: 0.56px;
  margin: 0 32px 20px;
  line-height: 1;
}

.cc-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  padding: 12px 32px;
  border-top: 1px solid var(--lada-gray-400);
  border-bottom: 1px solid var(--lada-gray-400);
}

/* Модификация — на всю ширину */
.cc-spec:first-child { grid-column: 1 / -1; }

.cc-spec { display: flex; flex-direction: column; gap: 1px; }
.cc-spec small { font-size: 12px; text-transform: uppercase; color: var(--lada-gray-600); letter-spacing: 0.24px; }
.cc-spec strong { font-size: 16px; color: #000; font-weight: 400; letter-spacing: 0.32px; text-transform: uppercase; }
/* Комплектация и Кузов — строчные */
.cc-spec:nth-child(2) strong,
.cc-spec:nth-child(3) strong { text-transform: none; letter-spacing: 0; }

.cc-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 32px 20px;
  font-size: 15px;
  color: var(--lada-gray-600);
  letter-spacing: 0.3px;
}

.cc-year { text-transform: uppercase; }
.cc-color { color: var(--lada-black); font-weight: 400; }

.cc-actions { display: grid; gap: 8px; }

.cc-btn {
  width: 100%;
  padding: 15px 31px;
  border-radius: 38px;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  display: block;
  font-family: inherit;
  line-height: 1.2;
}

.cc-btn.fill { background: var(--lada-orange); color: #fff; border: 0; }
.cc-btn.outline { background: transparent; color: var(--lada-orange); border: 3px solid var(--lada-orange); padding: 12px 31px; text-decoration: none; text-align: center; }
.cc-btn:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); transform: translateY(-1px); }
.cc-btn:active { transform: translateY(0) scale(0.98); }
.cc-btn:focus-visible { outline: 2px solid var(--lada-orange); outline-offset: 2px; }

.cc-fav-btn,
.cc-compare-btn {
  position: absolute;
  right: 15px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 8;
}

.cc-fav-btn { top: 15px; width: 36px; height: 36px; }
.cc-compare-btn { top: 60px; width: 28px; height: 28px; }

.cc-fav-btn::before,
.cc-compare-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--lada-gray-600);
  transition: background-color 0.2s;
}

.cc-fav-btn::before { -webkit-mask: url("./assets/card-star.png") center/contain no-repeat; mask: url("./assets/card-star.png") center/contain no-repeat; }
.cc-compare-btn::before { -webkit-mask: url("./assets/Menu_Alt_01.png") center/contain no-repeat; mask: url("./assets/Menu_Alt_01.png") center/contain no-repeat; }
.cc-fav-btn.is-active::before, .cc-compare-btn.is-active::before { background-color: var(--lada-orange); }
.cc-fav-btn:focus-visible, .cc-compare-btn:focus-visible { outline: 2px solid var(--lada-orange); outline-offset: 2px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.show-more {
  display: block;
  width: 100%;
  padding: 15px 31px;
  background: var(--lada-gray-400);
  color: #fff;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 0;
  cursor: pointer;
  margin-top: 40px;
  transition: background-color 0.2s;
  font-family: inherit;
}

.show-more:hover { background: var(--lada-orange); }
.show-more.is-hidden { display: none; }

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: center;
  color: var(--lada-gray-600);
  font-size: clamp(14px, 1.6vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 40px 0;
}

@media (min-width: 992px) { .pager { gap: 63px; } }

.pager-btns { display: flex; gap: 6px; }

.pager-btns button {
  padding: 10px;
  min-width: 44px;
  border: 2px solid var(--lada-gray-600);
  font-weight: 700;
  background: transparent;
  color: var(--lada-gray-600);
  cursor: pointer;
  font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 0.4px;
  transition: all 0.2s;
  font-family: inherit;
}

.pager-btns button:hover { border-color: var(--lada-orange); color: var(--lada-orange); }
.pager-btns button.is-active { background: var(--lada-orange); color: #fff; border-color: var(--lada-orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.stock-footer {
  background: #fff;
  padding: 48px 0 32px;
  color: var(--lada-gray-500);
  border-top: 1px solid var(--lada-zinc-300);
}

/* --- Top: phones --- */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

@media (min-width: 992px) { .footer-top { gap: 80px; } }

.footer-contacts { display: flex; flex-direction: column; gap: 4px; }

.footer-phone {
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--lada-gray-600);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-phone:hover { color: var(--lada-orange); }

.footer-address {
  font-size: 12px;
  color: var(--lada-gray-400);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.24px;
}

.footer-free {
  font-weight: 400;
  text-transform: none;
  margin-left: 6px;
  opacity: 0.7;
}

/* --- Separator --- */
.footer-sep {
  height: 1px;
  background: var(--lada-zinc-300);
  margin: 28px 0;
}

/* --- Nav groups --- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

@media (min-width: 992px) { .footer-nav { gap: 60px; } }

.footer-nav-group { min-width: 120px; }

.footer-heading {
  color: var(--lada-gray-600);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-links a {
  color: var(--lada-gray-500);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.6;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--lada-orange); }

/* --- Legal bottom --- */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copyright {
  font-size: 11px;
  color: var(--lada-gray-400);
  line-height: 1.5;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-legal-links a {
  font-size: 11px;
  color: var(--lada-gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover { color: var(--lada-orange); }

/* ============================================================
   TOAST
   ============================================================ */
.ui-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 9999;
}

.ui-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BOOTSTRAP-GRID SHIM (минимум для legacy-разметки в Next.js)
   Нужен потому что мы выкинули bootstrap из iframe и теперь
   рендерим разметку прямо в React-странице.
   Скоупим под .stock-page чтобы не аффектить остальной сайт.
   ============================================================ */
.stock-page .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
  margin-right: -8px;
}
.stock-page .row.g-3 > * { padding: 8px; }
.stock-page .row.g-4 > * { padding: 12px; }
.stock-page [class*="col-"] {
  width: 100%;
  flex: 0 0 auto;
}
.stock-page .col-12 { width: 100%; }
@media (min-width: 576px) {
  .stock-page .col-sm-6 { width: 50%; }
}
@media (min-width: 992px) {
  .stock-page .col-lg-4 { width: 33.3333%; }
  .stock-page .col-lg-8 { width: 66.6667%; }
}
@media (min-width: 1400px) {
  .stock-page .col-xxl-3 { width: 25%; }
  .stock-page .col-xxl-4 { width: 33.3333%; }
  .stock-page .col-xxl-9 { width: 75%; }
}
.stock-page .d-flex { display: flex; }
.stock-page .container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
