.carousel-inner > .item > a > img,
.carousel-inner > .item > img,
.img-responsive,
.thumbnail a > img,
.thumbnail > img {
  display: block;
  max-width: 100%;
  height: auto;
}
.img-rounded {
  border-radius: 6px;
}

.img-responsive img {
  max-width: 100%;
  height: auto;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel .carousel-item {
  flex: 0 0 100%;
  width: 100%;
}

.carousel .carousel-item a,
.carousel .carousel-item img {
  width: 100%;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-nav.prev {
  left: 12px;
}

.carousel-nav.next {
  right: 12px;
}

.carousel.is-single .carousel-nav {
  display: none;
}

@media screen and (max-width: 768px) {
  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .carousel-nav.prev {
    left: 8px;
  }

  .carousel-nav.next {
    right: 8px;
  }
}

.carousel.products {
  position: relative;
  margin: 24px auto 16px;
  padding: 0;
  width: 98%;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.4s ease;
  will-change: transform;
}

.product-card {
  flex: 0 0 calc(25% - 12px);
  margin-right: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.carousel-track .product-card:last-child {
  margin-right: 0;
}

.product-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.product-image-wrap {
  position: relative;
  background: #fff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.product-image.hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-link:hover .product-image.hover {
  opacity: 1;
}

.product-link:hover .product-image.front {
  opacity: 0;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  background: #d62828;
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.product-name {
  margin: 12px 12px 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #11121b;
  min-height: 38px;
}

.product-price {
  margin: 0 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-price-list {
  color: #7a7a7a;
  text-decoration: line-through;
  font-size: 12px;
  line-height: 1;
  height: 12px;
}

.product-price-current {
  color: #11121b;
  font-size: 18px;
  line-height: 1.1;
}

@media screen and (max-width: 992px) {
  .product-card {
    flex: 0 0 calc(50% - 8px);
  }
}

@media screen and (max-width: 560px) {
  .carousel.products {
    padding: 0;
  }

  .product-card {
    flex: 0 0 100%;
    margin-right: 10px;
  }
}
