.best-sellers {
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  overflow: hidden;
}

.best-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.best-head .section-title {
  margin-bottom: 28px;
}

.best-controls {
  display: flex;
  gap: 9px;
  margin-bottom: 31px;
}

.best-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--secondary);
  font-size: 1.08rem;
  cursor: pointer;
  transition: .23s;
}

.best-arrow:hover {
  background: var(--secondary);
  color: #fff;
}

.product-tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.product-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition: .23s;
}

.product-tab span {
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--soft-2);
  color: var(--primary);
  font-size: .7rem;
}

.product-tab.active,
.product-tab:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.product-tab.active span,
.product-tab:hover span {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.product-carousel {
  overflow: hidden;
  margin-inline: -5px;
  padding: 6px 5px 18px;
}

.product-track {
  display: flex;
  gap: 20px;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.product-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  transition: .28s;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-gallery {
  position: relative;
  aspect-ratio: 1.13 / 1;
  overflow: hidden;
  background: #f3edf1;
}

.product-gallery-track {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}

.product-gallery-slide {
  min-width: 100%;
  height: 100%;
}

.product-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--secondary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0;
  transition: .2s;
}

.product-gallery:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow.prev {
  left: 10px;
}

.gallery-arrow.next {
  right: 10px;
}

.gallery-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.gallery-dot.active {
  width: 20px;
  border-radius: 99px;
  background: var(--primary);
}

.product-category-badge {
  position: absolute;
  z-index: 5;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--secondary);
  font-size: .68rem;
  font-weight: 850;
  backdrop-filter: blur(7px);
}

.product-body {
  padding: 20px;
}

.product-label {
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}

.product-body h3 {
  margin-top: 7px;
  font-size: 1.18rem;
}

.product-body p {
  margin: 10px 0 17px;
  font-size: .87rem;
  min-height: 46px;
}

.product-order {
  width: 100%;
  min-height: 44px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: .22s;
}

.product-order:hover {
  background: var(--secondary);
}

.product-order svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.best-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.best-footer p {
  max-width: 650px;
}

@media(max-width:1050px) {
  .product-card {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media(max-width:820px) {
  .best-head {
    align-items: start;
  }
}

@media(max-width:580px) {
  .best-head {
    display: block;
  }

  .best-controls {
    justify-content: flex-end;
    margin-top: -8px;
  }

  .product-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .product-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-tab {
    flex: 0 0 auto;
  }

  .product-card {
    flex-basis: 100%;
  }

  .product-body p {
    min-height: 0;
  }

  .best-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .best-footer .btn {
    width: 100%;
  }
}
