section.latest-products-home {
  padding: 2vw 10vw;
  width: 100%;
  min-height: 10vw;
  position: relative;
  gap: 3.75vw;
  justify-content: start !important;
}

.latest-products-home-top-bar {
  width: 100%;
  justify-content: space-between !important;
}

.latest-products-home-top-bar h1 {
  font-size: 1.8vw;
  font-weight: bold;
  color: var(--green);
  font-family: Kalameh, sans-serif;
}

.latest-products-home-top-bar a.btn {
  padding: 0.9vw 0;
  width: 9vw;
  border-radius: 0.9vw;
  border: 0.1vw solid #e2e8f0;
  gap: 0.5vw;
  color: var(--green);
  font-weight: 500;
  font-size: 0.95vw;
  transition: all 0.25s ease-in-out;
}

.latest-products-home-top-bar a.btn:hover {
  filter: brightness(0.8);
}

.latest-products-home-top-bar a.btn i {
  font-size: 1.2vw;
}

.latest-products-home-cont {
  padding: -0.5vw;
  width: 100%;
  min-height: 45vw;
  border: 0.1vw solid #e2e8f0;
  border-radius: 0.9vw;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.latest-product-card {
  padding: 1vw 2vw;
  height: calc(45.75vw / 2);
  border: 0.05vw solid #e2e8f0;
  position: relative;
  gap: 0.6vw;
  justify-content: start !important;
}

.latest-product-card:nth-child(1) {
  border-radius: 0 0.8vw 0 0;
}

.latest-product-card:nth-child(4) {
  border-radius: 0.8vw 0 0 0;
}

.latest-product-card .discount-label {
  width: 2.6vw;
  height: 2.6vw;
  position: absolute;
  top: 1.75vw;
  right: 1.5vw;
  z-index: 2;
}

.latest-product-card .discount-label > svg {
  width: 100%;
  fill: var(--green);
}

.latest-product-card .special-offer-label {
  padding: 0;
  width: 5vw;
  height: 1.8vw;
  border-radius: 1vw;
  color: #de3618;
  position: absolute;
  top: 1.75vw;
  left: 1.5vw;
  z-index: 2;
  font-weight: bold;
  font-size: 1vw;
  font-family: Kalameh, sans-serif;
}

.latest-product-card .discount-label span {
  position: absolute;
  font-weight: 500 !important;
  color: var(--light-bg);
  transform: translateY(-0.1vw);
  gap: 0.25vw;
}

.latest-product-card figure {
  padding: 1vw 2vw;
  width: 100%;
  height: 69%;
  position: relative;
  transition: all 0.25s ease-in-out;
}

.latest-product-card:hover figure {
  transform: scale(1.04);
}

.latest-product-card figure img {
  width: 100%;
  height: 100%;
}

.latest-product-card .latest-product-card-details {
  padding-top: 1vw;
  width: 100%;
  height: 30%;
  position: relative;
  gap: 0.7vw;
}

.latest-product-card .latest-product-card-details ul.product-colors-pallet {
  position: absolute;
  width: 110%;
  top: -1vw;
  justify-content: start !important;
  direction: ltr !important;
}

.latest-product-card .latest-product-card-details ul.product-colors-pallet li {
  width: 0.85vw;
  height: 0.85vw;
  border-radius: 50%;
  box-shadow: 0 0 0.15vw rgba(0, 0, 0, 0.3);
  color: #142614;
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(2) {
  transform: translateX(-0.2vw);
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(3) {
  transform: translateX(-0.4vw);
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(4) {
  transform: translateX(-0.6vw);
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(5) {
  transform: translateX(-0.8vw);
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(6) {
  transform: translateX(-1vw);
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(7) {
  transform: translateX(-1.2vw);
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(8) {
  transform: translateX(-1.4vw);
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(9) {
  transform: translateX(-1.6vw);
}

.latest-product-card
  .latest-product-card-details
  ul.product-colors-pallet
  li:nth-child(10) {
  transform: translateX(-1.8vw);
}

.latest-product-card .latest-product-card-details h2 {
  width: 100%;
  font-size: 0.95vw;
  font-weight: 600;
  text-align: start;
  height: 2.55vw;
  justify-content: start !important;
}

.latest-product-card-last-div {
  width: 100%;
  position: relative;
  justify-content: space-between !important;
  /* margin-top: 3vw; */
}

.latest-product-card-last-div .score {
  width: 3vw;
  gap: 0.3vw;
  font-size: 0.9vw;
  font-weight: 500;
}

.latest-product-card-last-div .score span {
  margin-top: 0.2vw;
}

.latest-product-card-last-div .score svg {
  width: 1.25vw;
}

.latest-product-card .latest-product-card-details h3 {
  gap: 0.25vw;
  transform: translateX(-0.6vw);
}

.latest-product-card .latest-product-card-details h3 s {
  font-size: 0.8vw;
  font-weight: 300;
  opacity: 0.75;
}

.latest-product-card .latest-product-card-details h3 span.price {
  color: var(--green);
  font-size: 1.25vw;
  font-weight: 600;
}

.latest-product-card .latest-product-card-details h3 span.toman svg {
  fill: var(--green);
}

@media (max-width: 450px) {
  section.latest-products-home {
    margin: 3vw 0;
    padding: 2vw 7vw;
    width: 100%;
    min-height: 10vw;
    position: relative;
    gap: 3.75vw;
    justify-content: start !important;
  }

  .latest-products-home-cont {
    border-radius: 2vw;
  }

  .latest-products-home-top-bar h1 {
    font-size: 3.75vw;
    font-weight: bold;
    color: var(--green);
    font-family: Kalameh, sans-serif;
  }
  .latest-product-card .latest-product-card-details h3 span.price {
    color: var(--green);
    font-size: 2.8vw !important;
    font-weight: 600;
  }
  .latest-product-card .latest-product-card-details h3 s {
    font-size: 2.5vw !important;
    font-weight: 300;
    opacity: 0.75;
  }
  .latest-product-card-last-div .score svg {
    width: 4.25vw !important;
  }
  .latest-products-home-top-bar a.btn {
    width: 25vw;
    font-size: 3vw;
    border-radius: 2vw;
    align-items: center;
  }
  .latest-products-home-top-bar a.btn i {
    font-size: 2.9vw;
  }
  .latest-product-card
    .latest-product-card-details
    ul.product-colors-pallet
    li {
    width: 1.95vw !important;
    height: 1.95vw !important;
  }
  .latest-product-card .latest-product-card-details ul.product-colors-pallet {
    position: absolute;
    width: 110%;
    top: -3vw;
    margin-left: 2vw;
    justify-content: start !important;
    direction: ltr !important;
  }
  .latest-products-home-cont {
    padding: -0.5vw;
    width: 100%;
    min-height: 45vw;
    border: 0.1vw solid #e2e8f0;
    border-radius: 2.3vw;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-product-card-last-div .score span {
    font-size: 2.6vw;
  }
  .latest-product-card {
    padding: 1vw 2vw;
    height: calc(45.75vw / 0.85);
    border: 0.05vw solid #e2e8f0;
    position: relative;
    gap: 0.6vw;
    justify-content: start !important;
  }
  .latest-product-card .discount-label {
    width: 7.2vw;
    height: 7.2vw;
  }
  .latest-product-card .discount-label span {
    font-size: 2.9vw !important;
  }
  .latest-product-card .special-offer-label {
    font-size: 3vw;
    white-space: nowrap;
    margin-left: 0.1vw;
    left: 6.5vw;
    top: 3vw;
  }
  .latest-product-card .latest-product-card-details h2 {
    font-size: 2.67vw;
  }
  .latest-product-card-last-div .score {
    width: 6vw;
    font-size: 1.6vw;
  }
  .latest-product-card-last-div{
    margin-top: 3vw;
  }

  .latest-product-card
    .latest-product-card-details
    ul.product-colors-pallet
    li {
    width: 1.4vw;
    height: 1.4vw;
  }
  .latest-product-card .latest-product-card-details h3 s {
    font-size: 1.88vw;
  }
  .latest-product-card .latest-product-card-details h3 span.price {
    font-size: 1.88vw;
  }
}
