/*-----------------------------------*\
  #PRODUCTS
\*-----------------------------------*/

.bestsellers-section {
  width: 100%;
  height: auto;
  padding: 48px 0 64px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 40px;
}

.best-sellers-title-container {
  width: min(calc(100% - 32px), 1280px);
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bestsellers-title {
  font-size: 48px;
  letter-spacing: 1px;
  font-weight: var(--regular);
  color: var(--primary);
}

.bestsellers-link {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neutral-18);
  padding-bottom: 6px;
  border-bottom: solid 2px var(--neutral-18);
}

.bestsellers-link:is(:hover, :focus-visible, :focus-within) {
  cursor: pointer;
  font-weight: var(--medium);
  color: var(--neutral-20);
  border-bottom: solid 2px var(--neutral-20);
}

.products-carrussel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: auto;
}

.bestsellers-carousel {
  width: min(calc(100% - 32px), 1280px);
  position: relative;
  overflow: visible;
}

.bestsellers-carousel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 100vw;
  background-color: var(--white);
  z-index: 1;
  pointer-events: none;
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.bestsellers-carousel .products-carrussel {
  width: max-content;
  justify-content: flex-start;
  transition: transform 300ms ease;
  will-change: transform;
}

.single-product-card {
  flex: 0 0 302px;
  color: inherit;
  text-decoration: none;
}

.single-product-card.is-dim {
  opacity: 0.35;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  background-color: transparent;
  outline: none;
  border: none;
}

.carousel-arrow.is-disabled,
.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-arrow.is-hidden {
  display: none;
}

.carousel-arrow.left {
  left: -56px;
}

.carousel-arrow.right {
  right: -56px;
}

.carousel-arrow-icon {
  width: 32px;
  height: 32px;
}

.carousel-arrow.is-disabled .carousel-arrow-icon,
.carousel-arrow:disabled .carousel-arrow-icon {
  filter: none;
}

.carousel-arrow:is(:hover, :focus-visible, :focus-within) .carousel-arrow-icon {
  filter: var(--filter-black);
}

/*-----------------------------------*\
  #PRODUCTS
\*-----------------------------------*/

.single-product-card {
  width: 302px;
  height: 484px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 200ms ease;
}

.single-product-card:is(:hover, :focus-visible, :focus-within) {
  cursor: pointer;
}

.single-product-card.is-unavailable .item-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(224, 224, 224, 0.38);
  pointer-events: none;
}

.item-image-container {
  width: 100%;
  height: 378px !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  flex-shrink: 0;
}

.item-image-container.placeholder {
  align-items: center;
  background-color: var(--neutral-02);
  display: flex;
  justify-content: center;
}

.product-image-placeholder {
  color: var(--neutral-12);
  font-size: 13px;
}

.item-fav-icon-container {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 24px;
  right: 0;
  z-index: 4;
  background-color: var(--white);
}

.item-icon-favourite {
  width: 32px;
  height: 32px;
  filter: var(--filter-black);
}

.badge-container {
  position: absolute;
  bottom: 24px;
  left: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}

.product-badge {
  font-size: 14px;
  line-height: 14px;
  font-weight: var(--semiBold);
  color: var(--neutral-18);
  padding: 8px;
  background-color: var(--white);
}

.product-badge.promo {
  background-color: var(--promo-red);
  color: var(--white);
}

.product-badge.unavailable {
  background-color: var(--white);
  color: var(--promo-red);
}

.item-details {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.product-name {
  font-size: 14px;
  line-height: 14px;
  font-weight: var(--semiBold);
  color: var(--primary);
}

.color-description {
  font-size: 12px;
  line-height: 12px;
  font-weight: var(--regular);
  color: var(--neutral-14);
}

.item-price {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 16px;
  line-height: 16px;
  font-weight: var(--regular);
  color: var(--neutral-20);
  gap: 2px;
}

.main-number {
  font-size: 16px;
  line-height: 16px;
  font-weight: var(--semiBold);
  color: var(--neutral-20);
}

.cents {
  font-size: 10px;
  line-height: 12px;
  font-weight: var(--bold);
  color: var(--neutral-20);
  align-self: flex-start;
}

.currency {
  font-size: 12px;
  line-height: 12px;
  font-weight: var(--semiBold);
  color: var(--neutral-20);
  align-self: flex-end;
}

.discount-price-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.item-price.promo {
  margin-top: unset;
  color: var(--promo-red);
}

.item-price.promo .main-number {
  color: var(--promo-red);
}

.item-price.promo .cents {
  color: var(--promo-red);
}

.item-price.promo .currency {
  color: var(--promo-red);
}

.original-price-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
}

.original-price-text {
  font-size: 10px;
  line-height: 10px;
  color: var(--neutral-14);
  font-weight: var(--regular);
}

.item-price.original-price {
  color: var(--neutral-14);
  text-decoration: line-through;
  align-items: center;
  margin-top: unset;
}

.item-price.original-price .main-number {
  color: var(--neutral-14);
  font-size: 14px;
  line-height: 14px;
  font-weight: var(--regular);
}

.item-price.original-price .cents {
  color: var(--neutral-14);
  font-size: 8px;
  line-height: 8px;
  font-weight: var(--regular);
}

.item-price.original-price .currency {
  color: var(--neutral-14);
  font-size: 10px;
  line-height: 10px;
  font-weight: var(--regular);
}

.item-discount-percentage {
  color: var(--promo-red);
  font-size: 14px;
  line-height: 14px;
  font-weight: var(--semiBold);
  margin-left: 2px;
}

/*-----------------------------------*\
  #OUTFITS
\*-----------------------------------*/

.item-price.outfit {
  margin-top: unset;
  gap: 4px;
}

.outfit-combined-price-text {
  font-size: 12px;
  line-height: 14px;
  font-weight: var(--semiBold);
  color: var(--neutral-09);
}

.check-outfit-button {
  display: block;
  margin-top: auto;
  width: 100%;
  height: auto;
  padding: 16px;
  font-size: 14px;
  line-height: 14px;
  font-weight: var(--semiBold);
  color: var(--primary);
  border: solid 1px var(--neutral-06);
  background-color: transparent;
  outline: none;
  text-align: center;
  text-decoration: none;
}

.single-product-card.outfit:is(:hover, :focus-visible, :focus-within)
  .check-outfit-button {
  cursor: pointer;
  background-color: var(--neutral-01);
  border-color: var(--primary);
}

.check-outfit-button:is(:hover, :focus-visible, :focus-within) {
  cursor: pointer;
  background-color: var(--neutral-01);
  border-color: var(--primary);
}

@media (max-width: 1024px) {
  .bestsellers-section {
    padding: 40px 0 56px 0;
    gap: 32px;
  }

  .best-sellers-title-container,
  .bestsellers-carousel {
    width: min(calc(100% - 48px), 1280px);
  }

  .single-product-card {
    width: 280px;
    height: 456px;
    flex-basis: 280px;
  }

  .item-image-container {
    height: 348px !important;
  }

  .carousel-arrow.left {
    left: -20px;
  }

  .carousel-arrow.right {
    right: -20px;
  }
}

@media (min-width: 768px) and (max-width: 1420px) {
  .bestsellers-carousel {
    padding-bottom: 72px;
  }

  .carousel-arrow {
    top: auto;
    bottom: 0;
    width: 40px;
    height: 40px;
    transform: none;
    border: 1px solid var(--neutral-06);
    background-color: var(--white);
  }

  .carousel-arrow.left {
    right: 56px;
    left: auto;
  }

  .carousel-arrow.right {
    right: 0;
  }

  .carousel-arrow-icon {
    width: 24px;
    height: 24px;
    filter: var(--filter-black);
  }

  .carousel-arrow.is-disabled,
  .carousel-arrow:disabled {
    opacity: 1;
  }

  .carousel-arrow.is-disabled .carousel-arrow-icon,
  .carousel-arrow:disabled .carousel-arrow-icon {
    filter: var(--filter-neutral-07);
  }
}

@media (max-width: 767px) {
  .bestsellers-section {
    padding: 0 0 48px 0;
    gap: 24px;
  }

  .best-sellers-title-container {
    width: min(calc(100% - 32px), 1280px);
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .bestsellers-title {
    font-size: 36px;
    line-height: 1;
  }

  .bestsellers-link {
    font-size: 12px;
    letter-spacing: 1.6px;
  }

  .bestsellers-carousel {
    width: min(calc(100% - 32px), 1280px);
  }

  .carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .carousel-viewport::-webkit-scrollbar {
    display: none;
  }

  .products-carrussel {
    gap: 16px;
    align-items: flex-start;
  }

  .bestsellers-carousel .products-carrussel {
    width: max-content;
    transform: none !important;
  }

  .single-product-card {
    width: min(78vw, 280px);
    height: auto;
    flex-basis: min(78vw, 280px);
    gap: 12px;
    scroll-snap-align: start;
  }

  .item-image-container {
    height: min(96vw, 340px) !important;
  }

  .item-fav-icon-container {
    width: 32px;
    height: 32px;
    top: 8px;
  }

  .item-icon-favourite {
    width: 24px;
    height: 24px;
  }

  .badge-container {
    bottom: 8px;
    gap: 6px;
  }

  .product-badge {
    font-size: 10px;
    line-height: 10px;
    padding: 6px;
  }

  .item-details {
    gap: 10px;
  }

  .product-name {
    font-size: 12px;
    line-height: 18px;
  }

  .item-price {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .carousel-arrow {
    display: none;
  }

  .main-number {
    font-size: 14px;
    line-height: 14px;
  }

  .original-price-container {
    max-width: 112px;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .product-details-gallery .product-badge {
    font-size: 14px;
    line-height: 14px;
    padding: 8px;
  }
}

@media (max-width: 479px) {
  .best-sellers-title-container,
  .bestsellers-carousel {
    width: calc(100% - 24px);
  }

  .bestsellers-title {
    font-size: 28px;
  }

  .single-product-card {
    width: 124px;
    flex-basis: 124px;
  }

  .item-image-container {
    height: 156px !important;
  }

  .check-outfit-button {
    display: none;
  }

  .color-description {
    font-size: 10px;
    line-height: 12px;
  }
}
