 /* по умолчанию показываем контурную, прячем залитую */
.wishlist .star { display: none; }

/* когда добавлен _active_, прячем контурную и показываем залитую */
.wishlist._active_ .star-o { display: none; }
.wishlist._active_ .star   { display: inline-block; }

/* (опционально, чтобы обе SVG вели себя одинаково) */
.wishlist .star-o,
.wishlist .star {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor; /* если символы не наследуют цвет */
}

/* показываем одну из двух иконок по состоянию */
.catalog-item .star { display: none; }
.catalog-item._active_ .star-o { display: none; }
.catalog-item._active_ .star   { display: inline-block; }

/* если иконки не наследуют цвет */
.catalog-item .star-o { fill: currentColor; }
.catalog-item .star   { fill: currentColor; }

/* СКОП: только внутри .product-options */
.product-options .options-list {
  /* переносим элементы на новые строки, используем gap */
  row-gap: .5rem;
}
.product-options .options-list label {
  white-space: nowrap;           /* склейка значений, типа "XL / Черный" одной «плашкой» */
  line-height: 1.2;
}

/* На узких экранах подстрахуем от горизонтального скролла */
@media (max-width: 576px) {
  .product-options .options-list {
    margin-right: -8px;          /* компенсируем внутренние паддинги родителя, если есть */
  }
}

/* Если вдруг вариантов ОЧЕНЬ много (20+), ограничим высоту и дадим прокрутку,
   чтобы блок «Купить» не улетал за 2–3 экрана. Включи/отключи по вкусу. */
.product-options .shop-swatch .options-list {
  max-height: none;              /* по умолчанию — без ограничения */
  overflow: visible;
}
@media (max-width: 576px) {
  .product-options .shop-swatch .options-list.too-many {
    max-height: 220px;           /* мягкое ограничение на мобилках */
    overflow-y: auto;
  }
}

/* GRID: всплывающий call-to-action по центру снизу */
.card-product.grid-2 .card-img-top { position: relative; }
.card-product.grid-2 .product-cta{
  position: absolute;
  left: 50%;
  bottom: .5rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  width: max-content;
  transition: opacity .2s ease, transform .2s ease;
}
.card-product.grid-2:hover .product-cta{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* LIST: без абсолютного позиционирования */
.card-product.list .product-cta{
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  margin-top: .5rem;
}

/* На всякий случай: глушим возможный float из ms2/темы */
.card-product .product-cta .btn{
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Прячем системный чекбокс, оставляя его кликабельным через <label for> */
.input-visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0; padding: 0; margin: 0;
}

/* Базовый вид «пилюли» */
#mse2_mfilter .mse2-pill {
  display: inline-block;
  padding: .375rem .625rem;
  border: 1px solid var(--bs-border-color);
  border-radius: .5rem;
  cursor: pointer;
  user-select: none;
}

/* :hover / :focus */
#mse2_mfilter .mse2-pill:hover,
#mse2_mfilter .mse2-pill:focus {
  text-decoration: none;
  border-color: var(--bs-body-color);
}

/* Активная «пилюля» — напрямую от состояния инпута */
#mse2_mfilter .mse2_checkbox:checked + .mse2-pill {
  background: var(--bs-body-color);
  color: var(--bs-body-bg);
  border-color: var(--bs-body-color);
}

/* Disabled */
#mse2_mfilter .mse2_checkbox[disabled] + .mse2-pill {
  opacity: .5;
  cursor: not-allowed;
}



#mcd-mini-cart .minicart-qty .btn-qty{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:2rem;height:2rem;padding:0!important;margin:0!important;
  border:1px solid var(--bs-border-color,#dee2e6)!important;
  background:var(--bs-body-bg,#fff)!important;color:var(--bs-body-color,#212529)!important;
  border-radius:.375rem!important;font-size:1rem!important;line-height:1!important;font-weight:700!important;
}
#mcd-mini-cart .minicart-qty .btn-qty::before{content:"";display:block}
#mcd-mini-cart .minicart-qty .btn-qty[data-msmcdvalue="-1"]::before{content:"\2212"}
#mcd-mini-cart .minicart-qty .btn-qty[data-msmcdvalue="+1"]::before{content:"+"}
