section.bestselling-products {
  margin-top: 2vw;
  padding: 4vw 8vw;
  width: 100%;
  min-height: 10vw;
  position: relative;
  gap: 3vw;
  justify-content: start !important;
}

.bestselling-products-top-bar {
  width: 100%;
  justify-content: space-between !important;
  position: relative;
  /* align-items: start !important; */
}

.bestselling-products-top-bar h1 {
  font-size: 1.85vw;
  font-weight: bold;
  gap: 0.5vw;
  position: relative;
  font-family: Kalameh, sans-serif;
  color: var(--green);
}

.bestselling-products-top-bar h1 svg {
  width: 3vw;
}

.bestselling-products-top-bar ul {
  width: 70%;
  position: relative;
  justify-content: start !important;
}

.bestselling-products-top-bar ul li {
  padding: 0.9vw 1vw;
  border-radius: 0.75vw;
  color: #64748b;
  font-weight: 600;
  font-size: 1vw;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.bestselling-products-top-bar ul li.active {
  padding: 0.9vw 1.25vw;
  background-color: var(--green);
  color: var(--light-bg);
  font-size: 0.95vw;
  font-weight: 500;
}

.bestselling-products-top-bar ul li:not(li.active):hover {
  color: var(--red);
}

.bestselling-products-top-bar ul li:last-child {
  padding: 0;
  position: absolute;
  left: 0;
}

.bestselling-products-top-bar ul li:last-child a.btn {
  padding: 0.9vw 0;
  width: 9vw;
  border-radius: 0.9vw;
  border: 0.1vw solid #e2e8f0;
  color: #64748b;
  gap: 0.5vw;
  font-weight: 500;
  font-size: 0.95vw;
  transition: all 0.25s ease-in-out;
}

.bestselling-products-top-bar ul li:last-child a.btn:hover {
  filter: brightness(0.8);
  color: var(--red);
}

.bestselling-products-top-bar ul li:last-child a.btn i {
  font-size: 1.2vw;
}

.bestselling-products-main-contents {
  width: 100%;
  min-height: 40vw;
  gap: 1vw;
  position: relative;
  justify-content: space-between !important;
  align-items: start !important;
}

.bestselling-products-main-contents-div-1 {
  padding: 2.5vw 1.5vw;
  width: 27%;
  height: 52vw;
  border-radius: 0.85vw;
  position: relative;
  gap: 1.5vw;
  justify-content: start !important;
  align-items: start !important;
  background-color: rgba(175, 182, 197, 0.15);
  overflow: hidden;
}

.bestselling-products-main-contents-div-1 h2 {
  font-size: 2.5vw;
  font-weight: 900;
  color: var(--dark-font);
}

.bestselling-products-main-contents-div-1 img {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  right: 0;
}

.bestselling-products-main-contents-div-1 a.btn {
  padding: 0.75vw 1vw;
  border-radius: 0.9vw;
  border: 0.1vw solid rgba(175, 182, 197, 0.5);
  color: var(--green);
  background-color: var(--light-bg);
  gap: 0.4vw;
  font-size: 0.9vw;
  font-weight: 500;
  transition: all 0.25s ease-in-out;
}

.bestselling-products-main-contents-div-1 a.btn:hover {
  filter: brightness(0.92);
}

.bestselling-products-main-contents-div-1 a.btn i {
  font-size: 1.1vw;
}

.bestselling-products-main-contents-div-2 {
  width: 70%;
  height: 50vw;
  border-radius: 0.85vw;
  position: relative;
  row-gap: 2vw;
  column-gap: 1.75vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bestselling-products-main-contents-div-2 a {
  padding: 1vw;
  height: 25vw;
  gap: 0.5vw;
  position: relative;
  justify-content: start !important;
  border-radius: 0.85vw;
  border: 0.1vw solid rgba(175, 182, 197, 0.15);
  transition: all 0.25s ease-in-out;
  box-shadow: 0 0 0.5vw rgba(0, 0, 0, 0.2);
}

.bestselling-products-main-contents-div-2 a:hover {
  transform: scale(1.02);
  box-shadow: 0 0 2vw rgba(163, 171, 165, 0.5);
  /* rgba(163, 171, 165, 0.5) */
}

.bestselling-products-main-contents-div-2 a::before {
  content: "";
  width: 90%;
  height: 0;
  background-color: rgba(163, 171, 165, 0.5);
  border-radius: 0 0 1vw 1vw;
  position: absolute;
  top: 100%;
  transition: all 0.25s ease-in-out;
  /*filter: blur(3px);*/
}

.bestselling-products-main-contents-div-2 a:hover::before {
  height: 1vw;
}

.bestselling-products-main-contents-div-2 a .discount-label {
  width: 2.6vw;
  height: 2.6vw;
  position: absolute;
  top: 1.75vw;
  right: 1.5vw;
  z-index: 2;
}

.bestselling-products-main-contents-div-2 a .discount-label > svg {
  width: 100%;
  fill: var(--green);
}

.bestselling-products-main-contents-div-2 a .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;
}

.bestselling-products-main-contents-div-2 a .discount-label span {
  position: absolute;
  font-weight: 500 !important;
  color: var(--light-bg);
  transform: translateY(-0.1vw);
  gap: 0.25vw;
}

.bestselling-products-main-contents-div-2 a figure {
  padding: 1vw 2vw;
  width: 100%;
  height: 69%;
  position: relative;
}

.bestselling-products-main-contents-div-2 a figure img {
  width: 100%;
  height: 100%;
  transform: scale(1.05);
}

.bestselling-products-main-contents-div-2 .bestselling-product-card-details {
  padding-top: 1vw;
  width: 100%;
  height: 30%;
  position: relative;
  gap: 0.7vw;
}

.bestselling-products-main-contents-div-2
  .bestselling-product-card-details
  ul.product-colors-pallet {
  padding: 0 0.5vw;
  position: absolute;
  width: 110%;
  top: -1vw;
  justify-content: start !important;
  direction: ltr !important;
}

.bestselling-products-main-contents-div-2
  .bestselling-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;
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(2) {
  transform: translateX(-0.2vw);
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(3) {
  transform: translateX(-0.4vw);
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(4) {
  transform: translateX(-0.6vw);
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(5) {
  transform: translateX(-0.8vw);
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(6) {
  transform: translateX(-1vw);
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(7) {
  transform: translateX(-1.2vw);
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(8) {
  transform: translateX(-1.4vw);
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(9) {
  transform: translateX(-1.6vw);
}

.bestselling-product-card-details ul.product-colors-pallet li:nth-child(10) {
  transform: translateX(-1.8vw);
}

.bestselling-products-main-contents-div-2 .bestselling-product-card-details h2 {
  width: 100%;
  font-size: 0.95vw;
  font-weight: 600;
  text-align: start;
  height: 2.55vw;
  justify-content: start !important;
}

.bestselling-product-last-div {
  width: 100%;
  position: relative;
  justify-content: space-between !important;
}

.bestselling-product-last-div .score {
  width: 3vw;
  gap: 0.3vw;
  font-size: 0.9vw;
  font-weight: 500;
}

.bestselling-product-last-div .score span {
  margin-top: 0.2vw;
}

.bestselling-product-last-div .score svg {
  width: 1.25vw;
}

.bestselling-products-main-contents-div-2 .bestselling-product-card-details h3 {
  gap: 0.25vw;
}

.bestselling-products-main-contents-div-2
  .bestselling-product-card-details
  h3
  span.price {
  color: var(--green);
  font-size: 1.25vw;
  font-weight: 600;
}

.bestselling-products-main-contents-div-2
  .bestselling-product-card-details
  h3
  span.toman
  svg {
  fill: var(--green);
}

.responsive-see-all {
  display: none;
}

@media (max-width: 450px) {
  section.bestselling-products {
    margin-top: 5vw;
  }

  .bestselling-products-top-bar {
    display: flex;
    justify-content: space-between !important;
    flex-direction: column;
  }

  .bestselling-products-top-bar ul {
    width: 100%;
    position: relative;
    justify-content: space-between !important;
  }

  .bestselling-products-top-bar ul li:last-child {
    display: none;
  }

  .responsive-top-bar {
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    gap: 22vw;
    margin-bottom: 4vw;
    width: 100%;
  }

  .responsive-see-all {
    padding: 0.9vw 0;
    width: 19vw;
    display: block;
    border-radius: 2vw;
    border: 0.1vw solid #6b6a6a;
    color: #4d4e50;
    gap: 0.5vw;
    font-weight: 600;
    font-size: 2.6vw;
    transition: all 0.25s ease-in-out;
    align-items: center;
  }

  .responsive-see-all i {
    font-size: 2.6vw;
  }

  .bestselling-products-top-bar h1 {
    font-size: 3.4vw;
    gap: 2vw;
  }

  .bestselling-products-top-bar ul {
    gap: 0;
  }

  .bestselling-products-top-bar ul li {
    padding: 1.5vw 2vw;
    font-size: 2.5vw;
    border-radius: 1.5vw;
  }

  .bestselling-products-top-bar ul li.active {
    font-size: 2.5vw;
  }

  .bestselling-products-main-contents-div-1 {
    display: none;
  }

  .bestselling-products-main-contents-div-2 {
    width: 100%;
    height: max-content;
    border-radius: 0.85vw;
    position: relative;
    row-gap: 2vw;
    column-gap: 1.75vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }

  .bestselling-products-main-contents-div-2 a {
    padding: 1vw;
    height: 61vw;
    gap: 0.5vw;
    position: relative;
    justify-content: start !important;
    border-radius: 2vw;
    border: 0.1vw solid rgba(175, 182, 197, 0.15);
    transition: all 0.25s ease-in-out;
    box-shadow: 0 0 1.5vw rgba(0, 0, 0, 0.15);
  }

  .bestselling-products-main-contents-div-2
    .bestselling-product-card-details
    h2 {
    width: 100%;
    font-size: 2.7vw;
    font-weight: 600;
    text-align: start;
    height: 2.55vw;
    justify-content: start !important;
  }

  .bestselling-products-main-contents-div-2 a .discount-label {
    width: 7.6vw;
    height: 7.6vw;
    top: 3vw;
  }

  .bestselling-products-main-contents-div-2 a .discount-label span {
    font-size: 2.3vw !important;
  }

  .bestselling-products-main-contents-div-2
    .bestselling-product-card-details
    h3
    span.price {
    color: var(--green);
    font-size: 3.2vw;
    margin-top: 2vw;
    font-weight: 600;
  }

  .bestselling-products-main-contents-div-2
    .bestselling-product-card-details
    ul.product-colors-pallet {
    margin-left: 3.4vw;
  }

  .bestselling-products-main-contents-div-2
    .bestselling-product-card-details
    ul.product-colors-pallet
    li {
    width: 1.9vw;
    height: 1.9vw;
    border-radius: 50%;
    box-shadow: 0 0 0.15vw rgba(0, 0, 0, 0.3);
  }

  .bestselling-products-main-contents-div-2
    .bestselling-product-card-details
    h3 {
    gap: 0.55vw;
    margin-top: 2vw;
  }

  .bestselling-products-top-bar h1 svg {
    width: 8vw;
  }

  .bestselling-products-main-contents-div-2 a .special-offer-label {
    padding: 0;
    width: 14vw;
    height: 1.8vw;
    border-radius: 1vw;
    color: #de3618;
    position: absolute;
    top: 2.4vw;
    left: 1.5vw;
    z-index: 2;
    font-weight: bold;
    font-size: 2.5vw;
    font-family: Kalameh, sans-serif;
  }

  .bestselling-products-main-contents-div-2
    .bestselling-product-card-details
    ul.product-colors-pallet {
    padding: 0 0.5vw;
    position: absolute;
    width: 110%;
    top: -2.9vw;
    justify-content: start !important;
    direction: ltr !important;
  }
}
