/* section */
.customers-also-bought-section {
  margin-top: 120px;
  margin-bottom: 120px;
  transition: margin-top 0.4s ease, margin-bottom 0.4s ease;
}

/* Title and view all */
.products-title-wrapper {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: flex-end;
  margin-bottom: 24px;
}

.products-title-wrapper a {
  padding: 12px 32px;
  text-decoration: underline;
  height: 45px;

  &:hover {
    color: var(--grey1);
  }
}

.view-all-mobile {
  display: none;
}

/* Products */
ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

ul.products a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* badge */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: var(--brand1);
}

ul.products img {
  width: 100%;
  border-radius: 8px;
  height: 377px;
  -o-object-fit: cover;
  object-fit: cover;
}

/* rating stars */

.custom-rating {
  display: flex;
  gap: 5.25px;
  align-items: center;
}
.star-wrap {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
}

.star-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.star-base {
  color: var(--black1);
}

.star-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--black1);
}

.star-fill.full {
  -webkit-clip-path: none;
  clip-path: none;
}

.star-fill.half {
  -webkit-clip-path: inset(0 50% 0 0);
  clip-path: inset(0 50% 0 0);
}

.star-fill svg path {
  fill: currentColor;
  stroke: none;
}

.rating-count {
  color: var(--grey1);
  margin-left: -1.25px;
}

/* price */
.products .price {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
}
.price,
.price * {
  font-family: "HalisR", sans-serif;
  font-size: 16px;
  line-height: 21px;
}
.price del {
  color: var(--grey1);
  font-weight: 400;
  text-decoration: line-through;
}
.price ins {
  text-decoration: none;
  font-weight: 500;
  color: var(--black1);
}

/* responsive */
@media (max-width: 740px) {
  .customers-also-bought-section {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .view-all-desktop {
    display: none;
  }

  .view-all-mobile {
    display: block;
    text-decoration: underline;
    margin-top: 24px;
  }

  /* products */
  ul.products {
    -moz-column-gap: 12px;
    column-gap: 12px;
    row-gap: 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  ul.products img {
    height: 175px;
  }
}
