.slide-products {
  display: block;
  margin: 0 auto;
  position: relative;
}

.slide-products__tabs {
  margin-bottom: 1rem;
  overflow: hidden;
}

.swiper-thumbs-wrapper .swiper-slide {
  padding: 0 0.5rem;
}

.swiper-thumbs-wrapper .swiper-slide:first-of-type,
.swiper-thumbs-wrapper .swiper-slide:last-of-type {
  padding: 0;
}

.slide-products__tab-button {
  background: var(--slide-products-tab-inactive-color);
  color: var(--slide-products-tab-inactive-text-color);
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  width: 100%;
  line-height: 2;
}

.swiper-slide-thumb-active .slide-products__tab-button {
  background: var(--slide-products-tab-active-color);
  color: var(--slide-products-tab-active-text-color);
}

.slide-products__carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #ffffff;
}

.slide-products__slide {
  position: relative;
  display: block;
  width: 100%;
}

.slide-products__title {
  font-size: 1.1rem;
  padding: 0.5rem;
  color: #7b120f;
  text-align: center;
  line-height: 1;
}

.slide-products__background-image {
  width: 100%;
  height: auto;
  display: block;
}

.slide-products__products-list--vertical {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1rem;
  z-index: 2;
  padding-right: 1rem;
}

.slide-products__product-item {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
}

.slide-products__product-title {
  color: #7b120f;
  font-size: 0.92rem;
  padding: 0.2rem 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.slide-products__product-info {
  padding: 0.63rem;
}

.slide-products__product-price {
  background: #d29928;
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
  line-height: 1.5;
}

.slide-products__arrow {
  transform: rotateZ(270deg);
  display: inline-block;
  width: 10px;
  height: 10px;
}

.slide-products__quick-add {
  position: absolute;
  right: 0;
  bottom: 0;
}

.slide-products .block-product-card__quick-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid rgb(0 0 0 / 5%);
  border-radius: 50%;
}

.slide-products .block-product-card__quick-add svg {
  width: 13px;
  height: 13px;
  color: #29252c;
}

.slide-products .block-product-card__quick-add .icon-loading {
  display: none;
  animation: animation-button-loading linear 1.5s infinite;
}

.slide-products .block-product-card__quick-add.loading {
  pointer-events: none;
}

.slide-products .block-product-card__quick-add.loading .icon-quick-add {
  display: none;
}

.slide-products .block-product-card__quick-add.loading .icon-loading {
  display: block;
}

/* Bundle mode styles */
.slide-products__bundle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 10rem;
}

.slide-products__bundle-item .slide-products__bundle-item-inner,
.slide-products__bundle-item a.slide-products__bundle-item-inner {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.slide-products__bundle-variant-picker .slide-products__bundle-select {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  background: #fff;
  color: #333;
  cursor: pointer;
  outline: none;
}

.slide-products__bundle-footer {
  width: 100%;
  padding: 0.5rem 0.63rem;
  background: #fff;
}

.slide-products__bundle-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slide-products__bundle-total-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
}

.slide-products__bundle-total-price {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: end;
}

.slide-products__bundle-original-price {
  font-size: 0.8rem;
  color: #999;
  text-decoration: line-through;
}

.slide-products__bundle-discount-price {
  font-size: 1rem;
  font-weight: 600;
  color: #d29928;
}

.slide-products__bundle-form {
  width: 100%;
}

.slide-products__bundle-add-btn {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.92rem;
  background: rgb(var(--color-button-background));
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.slide-products__bundle-add-btn:hover {
  opacity: 0.9;
}

.slide-products__bundle-add-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.slide-products__bundle-add-btn .button__spinner {
  display: none;
  width: 16px;
  height: 16px;
  animation: animation-button-loading linear 1.5s infinite;
}

.slide-products__bundle-add-btn.loading .button__spinner {
  display: inline-block;
}

@media (min-width: 769px) {
  .slide-products__tab-button {
    font-size: 28px;
  }

  .slide-products__title {
    font-size: 22px;
    padding: 12px;
  }

  .slide-products__bundle {
    width: 214px;
  }

  .slide-products__products-list--vertical {
    padding-right: 20px;
  }

  .slide-products__product-title {
    font-size: 16px;
    line-height: 1;
    text-align: center;
    padding: 8px 0;
  }

  .slide-products__product-info {
    padding: 8px;
  }

  .slide-products__product-price {
    font-size: 20px;
  }

  .slide-products__arrow {
    width: 15px;
    height: 15px;
  }

  .slide-products .block-product-card__quick-add {
    width: 32px;
    height: 32px;
  }

  .slide-products .block-product-card__quick-add svg {
    width: 15px;
    height: 15px;
  }

  .slide-products__bundle-variant-picker .slide-products__bundle-select {
    font-size: 14px;
    padding: 4px 8px;
  }

  .slide-products__bundle-total-price {
    gap: 0.5rem;
  }

  .slide-products__bundle-total-label {
    font-size: 16px;
  }

  .slide-products__bundle-original-price {
    font-size: 14px;
  }

  .slide-products__bundle-discount-price {
    font-size: 18px;
  }

  .slide-products__bundle-add-btn {
    font-size: 16px;
    padding: 8px;
  }
}
