:root{
  --slider-h: 6px;   /* толщина полоски */
  --handle: 16px;    /* диаметр ручек */
}

/* --- reset (как у тебя) --- */
*,
*::before,
*::after { margin:0; padding:0; box-sizing:border-box; }
input,button,textarea,select { font:inherit; color:inherit; background:none; border:none; outline:none; }
ul,ol { list-style:none; }
a { text-decoration:none; color:inherit; }
h1,h2,h3,h4,h5,h6 { font-size:inherit; font-weight:inherit; margin:0; }
body { line-height:1.5; font-family:'Roboto Condensed',sans-serif; color:#000; background:#fff; -webkit-font-smoothing:antialiased; }
img { display:block; max-width:100%; height:auto; }
:focus { outline:none; }

* { font-family:'Roboto Condensed', sans-serif; }
.container { max-width:1160px; margin:0 auto; }

.breadcrumbs { font-size:14px; color:#777; margin-bottom:12px; margin-top:20px; }
.breadcrumbs a { color:#777; transition:color .2s ease; }
.breadcrumbs a:hover { color:#C2181F; }
.breadcrumbs span { font-weight:400; color:#303030; }

.subcategory-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); margin:30px 0; }
.subcategory-card { display:flex; align-items:center; gap:16px; padding:16px; border:1px solid #e0e0e0; border-radius:4px; background:#fff; color:#303030; transition:box-shadow .2s ease, background .2s ease; }
.subcategory-card:hover { background:#f9f9f9; box-shadow:0 2px 10px rgba(0,0,0,.08); color:#303030}
.subcategory-card img { width:50px; height:50px; flex-shrink:0; }
.subcategory-text { display:flex; flex-direction:column; gap:4px; }
.subcategory-title { font-size:18px; font-weight:400; }
.subcategory-count { font-size:14px; color:#888; }

.category-title { font-size:28px; font-weight:400; margin:0 0 20px; }
.category-layout { display:flex; gap:24px; max-width:1160px; margin:0 auto; padding:0; }

.filters { width:262px; flex-shrink:0; }
.filters-title { font-size:20px; font-weight:400; margin-bottom:24px; display:flex; align-items:center; gap:10px; }
.icon-sliders { display:inline-block; }

.product-count { font-size:14px; color:#303030; margin-bottom:20px; }

.filter-group { margin-bottom:28px; }
.filter-label { display:block; font-size:14px; font-weight:500; margin-bottom:12px; color:#303030; }

.price-range { display:flex; gap:8px; align-items:center; margin-bottom:10px; }
.price-range input { width:100%; padding:6px 8px; font-size:14px; border:1px solid #ccc; border-radius:4px; }

.noui-slider { margin-top:8px; height:5px; }
.noUi-target {
  background: #ddd !important;
  border: none;
  height: 2px;
  border-radius: 2px;            /* был 21px — из-за этого «булка» слева */
  box-shadow: none;
}

.noUi-connects {
  border-radius: 2px;
  overflow: hidden;              /* ключ: убирает «выпуклость» у connect */
}

.noUi-connect {
  background: #C2181F !important;
  border-radius: 0;              /* радиус не нужен — уже клипуется сверху */
}

.noUi-horizontal { height: var(--slider-h) !important; }
.noUi-target     { height: var(--slider-h) !important; border-radius: calc(var(--slider-h)/2) !important; }
.noUi-base,
.noUi-connects,
.noUi-connect    { height: 100% !important; }

.noUi-base {
    transform: translateX(-12px);
}

.noUi-target{
  position: relative;   /* чтобы было от чего сдвигать */
  overflow: visible;    /* на всякий случай, чтобы ручка не обрезалась слева */
}

.noUi-base{
  position: relative;                 /* у noUi уже relative — фиксируем явно */
  left: -1px !important;  /* ключевой сдвиг */
}



/* Ползунки по центру трека */
.noUi-handle{
  width: var(--handle) !important;
  height: var(--handle) !important;
  top: calc((var(--slider-h) - var(--handle)) / 2) !important; /* будет отрицательным и это ок */
  border: none !important;
  border-radius: 50% !important;
  background: #C2181F !important;
  box-shadow: none !important;
}

.noUi-connects { border-radius: calc(var(--slider-h)/2) !important; overflow: hidden !important; }
.noUi-handle::before, .noUi-handle::after { display:none !important; }

.filter-search { width:100%; padding:6px 8px; margin-bottom:12px; border:1px solid #ccc; border-radius:4px; font-size:14px; }

.filter-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.filter-tags.expandable .tag { display:none; }
.filter-tags.expandable.expanded .tag { display:inline-block; }
.filter-tags.expandable .tag:nth-child(-n+6) { display:inline-block; }

.tag { padding:6px 12px; font-size:13px; border:1px solid #ccc; border-radius:4px; background:#f9f9f9; cursor:pointer; transition:background .2s ease, color .2s ease, border-color .2s ease; }
.tag.active { background:#C2181F; color:#fff; border-color:#C2181F; }
.tag:hover { opacity: .85 ; }

.select-control { width:100%; padding:8px 10px; border:1px solid #ccc; border-radius:4px; background:#fff; font-size:14px; }

.show-more, .show-filters { font-size:13px; color:#C2181F; background:none; border:none; cursor:pointer; padding:0; margin-top:4px; }

.toggle-switch { position:relative; display:inline-block; width:36px; height:20px; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-switch .slider { position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0; background-color:#ccc; border-radius:10px; transition:.2s; }
.toggle-switch .slider::before { position:absolute; content:""; height:14px; width:14px; left:3px; top:3px; background:#fff; border-radius:50%; transition:.2s; }
.toggle-switch input:checked + .slider { background-color:#C2181F; }
.toggle-switch input:checked + .slider::before { transform:translateX(16px); }

.extra-filters-wrapper .filter-group { display:none; }
.extra-filters-wrapper.expanded .filter-group { display:block; }
.extra-filters-wrapper .filter-group:nth-child(-n+2) { display:block; }

.category-content { flex:1; }

.sort-options { display:flex; gap:20px; align-items:center; margin-bottom:24px; font-size:14px; }
.sort-btn { background:none; border:none; font-size:14px; color:#333; cursor:pointer; padding:4px 6px; transition:color .2s ease; }
.sort-btn:hover { color:#C2181F; }
.sort-btn.active { color:#C2181F; font-weight:400; }

/* Карточки */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
.product-card { border:1px solid #eee; padding:50px 20px 20px; position:relative; background:#fff; display:flex; flex-direction:column; gap:18px; height:100%; transition:box-shadow .2s ease; }
.product-card:hover { box-shadow:0 4px 12px rgba(0,0,0,.08); }

.product-icons { position:absolute; top:12px; right:12px; display:flex; gap:18px; font-size:20px; color:#999; }
.icon-heart { width:20px; height:20px; cursor:pointer; stroke:#303030; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:stroke .2s ease, fill .2s ease; }
.icon-heart .heart-path { fill:none; transition:fill .2s ease; }
.icon-heart:hover { stroke:#C2181F; }
.icon-heart.active { stroke:#C2181F; }
.icon-heart.active .heart-path { fill:#C2181F; }

.product-link { display:flex; flex-direction:column; align-items:center; color:inherit; gap:6px; }
.product-link img { max-height:120px; object-fit:contain; margin-bottom:20px; }
.product-title { font-size:20px; font-weight:400; }
.product-link .product-title { line-height:1.3; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:calc(1.3 * 20px * 2); }

.product-rating { display:flex; gap:2px; color:#C2181F; font-size:24px; }
.product-rating .star { color:#C2181F; }
.product-rating .star.empty { color:#ccc; }

.product-article { font-size:14px; color:#303030; }

.product-meta-bottom { margin-top:auto; display:flex; flex-direction:column; gap:12px; width:100%; }
.product-prices { display:flex; flex-direction:column; min-height:40px; }
.product-price { font-size:24px; font-weight:400; display:flex; gap:16px; align-items:baseline; }
.product-price-old { font-size:14px; color:#888; text-decoration:line-through; }
.product-price-save { font-size:12px; background:#f3f3f3; color:#888; padding:4px 8px; border-radius:4px; width:fit-content; }
.product-button { background:#C2181F; color:#fff; padding:10px; font-size:14px; border-radius:4px; cursor:pointer; width:100%; }
.product-button:hover { opacity:.85; }

.product-badges { position:absolute; top:12px; left:12px; display:flex; gap:8px; z-index:2; }
.badge { padding:2px 8px; border-radius:4px; font-size:12px; font-weight:500; color:#fff; text-transform:uppercase; white-space:nowrap; }
.badge-sale { background-color:#C2181F; }
.badge-hit { background-color:#3A7A63; }

.mobile-filters-modal { display:none; }

/* --- адаптив --- */
@media (max-width:1279px){
  .container,.category-layout { max-width:944px; margin:0 auto; }
  .subcategory-grid { grid-template-columns:repeat(auto-fill,minmax(236px,1fr)); }
  .subcategory-title { font-size:16px; }
  .filters { width:212px; }
  .product-grid { grid-template-columns:repeat(auto-fill,minmax(236px,1fr)); }
}
@media (max-width:1023px){
  .container,.category-layout { max-width:96%; margin:0 auto; }
  .subcategory-grid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); }
  .subcategory-title { font-size:14px; }
  .filters { display:none; }
  .sort-options { display:none; }
  .product-grid { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }

  .mobile-filters-modal { position:fixed; left:0; right:0; bottom:0; height:90vh; max-height:90vh; background:#fff; z-index:9999; display:none; flex-direction:column; border-top-left-radius:16px; border-top-right-radius:16px; padding:16px 16px 8px; overflow:hidden; }
  @supports (height:100dvh){ .mobile-filters-modal{ height:90dvh; max-height:90dvh; } }
  .mobile-filters-modal.active { display:flex; }
  .mobile-filters-header { display:flex; justify-content:space-between; align-items:center; font-size:20px; margin-bottom:16px; flex:0 0 auto; }
  .mobile-filters-close { background:none; border:none; font-size:24px; color:#000; cursor:pointer; }
  .mobile-filters-body { flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; padding-right:6px; overscroll-behavior:contain; touch-action:pan-y; }

  .apply-filters-button { position:sticky; bottom:0; width:100%; padding:14px 0; background:#C2181F; color:#fff; font-size:16px; border-radius:4px; border:none; margin-top:12px; cursor:pointer; flex:0 0 auto; box-shadow:0 -6px 12px rgba(0,0,0,.04); }

  .mobile-filters-overlay { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:9998; opacity:0; visibility:hidden; transition:opacity .3s ease; }
  .mobile-filters-overlay.active { opacity:1; visibility:visible; }
}
@media (max-width:767px){
  .container { max-width:96%!important; }
  .subcategory-grid { grid-template-columns:repeat(auto-fill,minmax(216px,2fr)); margin:30px 0; }
  .subcategory-card { gap:8px; }
  .product-grid { grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); align-items:stretch; }
  .product-price { font-size:18px; font-weight:400; flex-direction:column-reverse; gap:2px; margin-bottom:4px; }
  .product-prices { min-height:52px; }
}
@media (max-width:479px){
  .container { max-width:96%!important; }
  .subcategory-grid { grid-template-columns:repeat(auto-fill,minmax(160px,2fr)); margin:30px 0; }
  .subcategory-card { gap:4px; flex-direction:column; }
  .product-grid { grid-template-columns:repeat(auto-fill,minmax(160px,2fr)); }
}

.noUi-horizontal .noUi-handle-lower {
  transform: translateX(-1px);
}

/* CSR helper */
#catalog-root.is-loading { opacity: .6; pointer-events: none; }

/* сортбар под твой существующий стиль */
.sortbar-select { padding: 6px 8px; border: 1px solid #ccc; border-radius: 4px; }
.sortbar-dir-btn { padding: 6px 10px; border:1px solid #ccc; border-radius:4px; background:#fff; cursor:pointer; }
.sortbar-dir-btn.active { border-color:#C2181F; color:#C2181F; }
.pager { display:flex; align-items:center; gap:12px; }
.pager button { padding:6px 10px; border:1px solid #ccc; border-radius:4px; background:#fff; cursor:pointer; }
.pager .pages { font-size: 14px; color:#303030; }

/* пустое состояние */
.cards-empty { padding: 24px; border:1px dashed #ccc; border-radius:8px; text-align:center; color:#777; }

.product-card{
  --card-bg: #fff;          /* фон карточки для градиента */
    background: #fff;         /* у тебя и так #fff, но оставим явно */
  --desc-lines: 3;          /* сколько строк держим под FullTitle */
  --desc-lh: 1.3;           /* line-height */
}

.product-desc{
  font-size: 16px;
  line-height: var(--desc-lh);
  color: #303030;

  /* режем контент до 3 строк */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--desc-lines);
  overflow: hidden;

  /* ВСЕГДА резервируем место ровно под 3 строки,
     чтобы карточки были одной высоты даже при коротком тексте */
  min-height: calc(var(--desc-lines) * (1.3em)); /* 3 * 1.3em = 3 строки */
  /* можно добавить max-height, но min-height достаточно при overflow:hidden */
  position: relative;
}

.product-desc::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.6em; /* длина выцветания */
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0) 0%,
    var(--card-bg) 95%
  );
}

.product-title:hover {
  color: #303030;
  opacity: 0.85;
}

/* Контейнер пагинации по центру и с отступом от футера */
#pager {
  display: flex;
  justify-content: center;
  margin: 24px 0 56px;  /* сверху/снизу, оттолкнулись от футера */
}

/* Внутренний блок пагинации: "капсула" с нежной тенью */
#pager .pager {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid #eee;
  border-radius: 9999px;           /* пилюля */
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

/* Кнопки-стрелки: круглые */
#pager .pager-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .1s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#pager .pager-btn:hover {
  background: #f8f8f8;
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

#pager .pager-btn:active {
  transform: translateY(1px);
}

/* Визуально "выключенные" (логика остаётся в JS через класс, клики игнорятся обработчиком) */
#pager .pager-btn.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Текст "Стр. X из Y · N товаров" — поспокойнее */
#pager .pages {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

/* Селект "20/40/80" — компактный */
#pager #page-size-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 14px;
  padding: 8px 28px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
  position: relative;
}

/* легкая стрелочка у селекта (опционально) */
#pager #page-size-select {
  background-image:
    linear-gradient(45deg, transparent 50%, #777 50%),
    linear-gradient(135deg, #777 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 55%,
    calc(100% - 10px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

#pager #page-size-select:hover { border-color: #cfcfcf; }
#pager #page-size-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(194,24,31,0.15); }

/* Мобильные правки */
@media (max-width: 767px) {
  #pager .pager {
    gap: 8px;
    padding: 6px 10px;
  }
  #pager .pages {
    display: none;            /* можно скрыть текст на совсем маленьких экранах */
  }
  #pager .pager-btn { width: 34px; height: 34px; }
  #pager #page-size-select { padding: 6px 26px 6px 10px; font-size: 13px; }
}

.sortbar-dir-btn {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 9999px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.sortbar-dir-btn:hover { background:#f9f9f9; border-color:#ccc; }
.sortbar-dir-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(194,24,31,0.15); }


.product-card a:hover,
.product-card a:focus,
.product-card a:focus-visible,
.product-card a:active {
  color: #303030;
  opacity: 0.85;
}

/* если где-то есть более общий a:hover с !important */
.product-card .product-link:hover .product-title {
  color: #303030 !important;
}

.product-card a {
  transition: color .15s ease, opacity .15s ease;
}

.product-link img {
  height: 120px;       /* было max-height — ставим фиксированную высоту */
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

html.modal-open, body.modal-open { overflow: hidden; }

.filters-toggle {
  font-size: 18px;
}

.icon-sliders {
  vertical-align: middle;
}

/* Действия внизу модалки: ряд с двумя кнопками, прилипающий к низу */
#mobileFiltersModal > div:last-child {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 -6px 12px rgba(0,0,0,.04);
  min-width: 0; /* чтобы дети могли схлопываться, без горизонтального скролла */
}

/* Кнопки в ряд: убираем width:100% и sticky с самих кнопок */
#mobileFiltersModal > div:last-child .apply-filters-button {
  position: static;
  width: auto;
  flex: 1 1 0;    /* делим пространство 50/50 */
  margin: 0;
}

/* Цвета для "Сбросить" (если вдруг сбились из-за переопределений) */
#resetMobileFilters.apply-filters-button {
  background: #eee;
  color: #333;
}

/* На очень узких экранах — в колонку, чтобы точно не уезжали */
@media (max-width: 360px) {
  #mobileFiltersModal > div:last-child {
    flex-direction: column;
  }
}

/* Чтоб контент под кнопками не прятался, дадим снизу запас прокрутки */
#mobileFiltersBody {
  padding-bottom: 72px;
}

/* по умолчанию скрыт */
.mobile-only-filters { display: none !important; }

/* на мобильных показываем */
@media (max-width: 1023px) {
  .mobile-only-filters {
    display: flex !important;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }
}


/* карточки — блок цен как на акционной: сетка, запас под 2–3 строки */
.product-prices{
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 72px;        /* десктоп */
}

@media (max-width: 479px){
  .product-prices{ min-height: 80px; } /* мобильная поправка */
}

/* внутри — текущая + старая цена в ряд (как там) */
.product-price{
  font-size: 24px;
  font-weight: 400;
  display: flex;
  gap: 16px;
  align-items: baseline;
}

/* старая цена зачёркнута (как в шаблоне) */
.product-price-old{
  font-size: 14px;
  color: #888;
  text-decoration: line-through;
}

.icon-heart.shake { animation: fav-shake 0.4s; }
@keyframes fav-shake {
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.product-prices{
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 72px;
}
.product-price { font-size: 24px; font-weight: 400; display: flex; gap: 16px; }
.product-price-old { font-size: 14px; color: #888; text-decoration: line-through; }
.product-price-save { font-size: 12px; background: #f3f3f3; color: #888; padding: 4px 8px; border-radius: 4px; width: fit-content; }

@media (max-width: 479px){
  .product-prices{ min-height: 80px; }
  .product-price{ font-size: 18px; flex-direction: column-reverse; gap: 2px; margin-bottom: 4px; }
}

/* --- force heart stroke to render --- */
.product-card { position: relative; } /* гарантируем слой карточки */
.product-icons { z-index: 30; }       /* поднимаем поверх картинки/оверлеев */
.icon-heart { display: block; width: 20px; height: 20px; }

.icon-heart .heart-path{
  stroke: #303030 !important;
  stroke-width: 2 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none !important;
  opacity: 1 !important;
  vector-effect: non-scaling-stroke;
}

.product-icons svg,
.product-icons svg * { filter: none !important; mix-blend-mode: normal !important; }

.icon-heart:hover .heart-path{ stroke: #C2181F !important; }
.icon-heart.active .heart-path{
  stroke: #C2181F !important;
  fill: #C2181F !important;
}

.product-card { position: relative; }
.product-icons { position:absolute; top:12px; right:12px; display:flex; gap:18px; z-index: 50; }
.product-badges { position:absolute; top:12px; left:12px; z-index: 40; }

.product-icons svg * { stroke: none !important; }

.product-icons svg,
.product-icons svg * { filter: none !important; mix-blend-mode: normal !important; }

.icon-heart .heart-path { transition: fill .2s ease, stroke .2s ease; }
.icon-heart:hover .heart-path { stroke:#C2181F; }
.icon-heart.active .heart-path { stroke:#C2181F; fill:#C2181F; }

/* ===== Preorder modal ===== */
.preorder-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 10000;
}
.preorder-overlay.active { opacity: 1; pointer-events: auto; }

.preorder-modal {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  z-index: 10001;
  pointer-events: none;
  opacity: 0; transition: opacity .2s ease;
}
.preorder-modal.active { opacity: 1; pointer-events: auto; }

.preorder-modal .preorder-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #eee; font-weight: 600;
}
.preorder-modal .preorder-close {
  background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1;
}

.preorder-modal .preorder-form,
.preorder-modal .preorder-success {
  width: min(560px, calc(100vw - 24px));
  background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  overflow: hidden;
}

.preorder-form { padding: 12px 16px 16px; }
.preorder-row { display: grid; gap: 6px; margin-top: 10px; }
.preorder-row label { font-size: 14px; color: #333; }
.preorder-row input[type="text"],
.preorder-row input[type="tel"],
.preorder-row input[type="email"],
.preorder-row textarea {
  width: 100%; border: 1px solid #ddd; border-radius: 8px;
  padding: 10px 12px; font: inherit;
}
.preorder-row textarea { resize: vertical; min-height: 96px; }

.preorder-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.preorder-submit {
  background: #C2181F; color: #fff; border: none; border-radius: 8px;
  padding: 10px 16px; cursor: pointer;
}
.preorder-submit:disabled { opacity: .6; cursor: not-allowed; }

.preorder-consent { display: flex; align-items: center; gap: 10px; }
.consent-switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.consent-switch input { display:none; }
.consent-switch .slider {
  position: absolute; inset: 0; background: #ccc; border-radius: 999px; transition: .2s;
}
.consent-switch .slider:before {
  content:""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.consent-switch input:checked + .slider { background: #4CAF50; }
.consent-switch input:checked + .slider:before { transform: translateX(18px); }
.consent-label { font-size: 14px; color: #333; }

.preorder-success { padding: 16px; text-align: center; }
.preorder-success-title { font-weight: 700; font-size: 18px; margin: 8px 0; }
.preorder-success-text { color: #555; margin-bottom: 12px; }
.preorder-close-ghost {
  background: #eee; color: #333; border: none; border-radius: 8px; padding: 8px 14px; cursor: pointer;
}

/* Внешний вид кнопки "Под заказ" на карточке */
.product-button.product-button--preorder {
  background: #333;
  color: #fff;
}
/* --- Base --- */
.po { position: fixed; inset: 0; z-index: 1000; display: none; }
.po.is-open { display: grid; }
body.po-lock { overflow: hidden; }

/* --- Backdrop --- */
.po__backdrop {
  position:absolute; inset:0;
  background: rgba(0,0,0,.45);
  opacity: 0; transition: opacity .18s ease;
}
.po.is-open .po__backdrop { opacity: 1; }

/* --- Dialog --- */
.po__dialog {
  position:relative; margin:auto; width:min(560px, 92vw);
  background:#fff; color:#222; border-radius:12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transform: translateY(8px); opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  display:flex; flex-direction:column; padding:14px 14px 16px;
}
.po.is-open .po__dialog { transform: translateY(0); opacity:1; }

/* --- Header --- */
.po__header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.po__title { margin:0; font-size:18px; font-weight:700; }
.po__close {
  appearance:none; border:0; background:transparent; cursor:pointer;
  width:32px; height:32px; border-radius:8px; font-size:22px; line-height:1;
}
.po__close:hover { background:#f3f3f3; }

/* --- Form --- */
.po__form { display:grid; gap:12px; }
.po__row { display:grid; gap:6px; }
.po__row label { font-size:14px; color:#333; }
.po__row input[type="text"],
.po__row input[type="tel"],
.po__row input[type="email"],
.po__row textarea {
  width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:8px; font-size:14px; outline:none;
}
.po__row input:focus, .po__row textarea:focus { border-color:#999; }
[hidden] { display: none !important; }

.po__row--consent { display:flex; align-items:center; gap:10px; }
.po__consent-text { font-size:14px; color:#333; }

/* Toggle */
.po-toggle { position:relative; width:42px; height:24px; display:inline-block; }
.po-toggle input { display:none; }
.po-toggle__slider {
  position:absolute; inset:0; background:#ddd; border-radius:999px; transition:.2s;
}
.po-toggle__slider::before{
  content:""; position:absolute; width:18px; height:18px; left:3px; top:3px;
  background:#fff; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:.2s;
}
.po-toggle input:checked + .po-toggle__slider { background:#2fb344; }
.po-toggle input:checked + .po-toggle__slider::before { transform: translateX(18px); }

.po__actions { display:flex; justify-content:flex-end; margin-top:6px; }
.po__submit, .po__ghost {
  appearance:none; border:0; cursor:pointer;
  padding:10px 16px; border-radius:10px; font-weight:700;
}
.po__submit { background:#2fb344; color:#fff; }
.po__submit:disabled { opacity:.6; cursor:default; }
.po__ghost { background:#eee; color:#222; }

/* Success */
.po__success { display:grid; gap:10px; text-align:center; padding:8px 4px 0; }
.po__success-title { font-size:18px; font-weight:800; }
.po__success-text { color:#555; }

/* Статусы кнопки "В корзину" */
.product-button.btn-cart--pending { opacity: .75; cursor: wait; }
.product-button.btn-cart--added {
  background: #2fb344; /* зелёный статус */
  color: #fff;
}
.product-button.btn-cart--error {
  background: #b00020;
  color: #fff;
}

/* Мини-тост уведомление */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: #222;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 10000;
}
.cart-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* сердце: активное состояние */
.icon-heart .heart-path { transition: fill .2s, stroke .2s; }
.icon-heart.active .heart-path { fill: #C2181F; stroke: #C2181F; }

/* лёгкая тряска при ошибке */
@keyframes shakeX {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
.icon-heart.shake { animation: shakeX .28s ease; }

/* добавлено в корзину — как договорились */
.product-button.btn-cart--added {
  background: #3A7A63 !important;
  color: #fff !important;
  cursor: default;
}
.product-button.btn-cart--added:hover,
.product-button.btn-cart--added:focus,
.product-button.btn-cart--added:active {
  background: #3A7A63 !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.product-button[disabled] {
  cursor: default;
  opacity: .9; /* как тебе нравится */
}