.product_v2 {
  /* По умолчанию: спиннер скрыт */
  position: relative;

  .actions .spinner {
    display: none !important;
  }
  /* По умолчанию: кнопка видна */
  .actions .in-button {
    display: flex !important; /* или inline-flex, в зависимости от ваших стилей */
  }

  /* Когда JS добавил класс active (товар в корзине): */

  /* Скрываем кнопку */
  .actions.active .in-button {
    display: none !important;
  }
  /* Показываем спиннер */
  .actions.active .spinner {
    display: flex !important;
    position: relative !important;
  }

  .input-group {
    width: 100% !important;
  }

  /* Дополнительные стили для красоты спиннера (как на скрине) */
  .actions .spinner {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: var(--green-light);
    border-radius: 4px; /* Подберите радиус как у кнопки */
    height: 48px; /* Высота как у кнопки */
  }

  .actions .spinner-input {
    border: none;
    text-align: center;
    width: 40px;
    font-weight: bold;
  }

  .actions .green-btn {
    width: 100%;
    height: 48px;
  }

  .slider-categories__slide_text .actions {
    opacity: 1 !important;
    margin-top: auto;
  }

  .slider-categories__slide .actions-to-basket {
    opacity: 1 !important;
  }

  .spinner button {
    border-radius: 4px !important;
    background: white;
  }

  .slider-categories__slide_text .add-to-favorite {
    height: 40px;
    width: 40px;
    background: var(--green-light);
    border-radius: 8px;
    display: grid;
    place-items: center;
    opacity: 1 !important;
  }

  .slider-categories__slide_text .add-to-favorite:hover svg path,
  .slider-categories__slide_text .add-to-favorite.active svg path {
    fill: var(--green-dark) !important;
  }

  .slider-categories__slide_text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .slider-categories__slide_text a.name {
    margin: 0 !important;
    max-width: 80%;
    text-wrap: wrap;
    min-height: 48px;
    font-weight: 600 !important;
  }

  .price {
    font-weight: 700 !important;
    text-wrap: nowrap;
  }

  .price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    line-height: 1;
    gap: 8px;
  }

  .slider-categories__slide_image {
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100%;
  }
}

.product_v2 {
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  height: 100%;
  display: flex !important;
  flex-direction: column;
  margin: 0 !important;
}

.swiper-slide {
  height: auto !important;
}
