.products {
  padding-top: 100px;
  padding-bottom: 100px;
}

.products__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 47px;
  text-align: center;
}

.products__list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-top: 100px;
}

.products__item {
  border: 1px solid #EDF2F7;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  overflow: hidden;
}

.products__item:hover .image-wrapper img {
  transform: scale(1.3);
  transition: all ease 0.4s;
}

.products__item:hover .image-wrapper:before {
  opacity: 0;
  transition: all ease 0.4s;
}

.products__item .image-wrapper img {
  transition: all ease 0.4s;
}

.products__item .image-wrapper {
  min-height: 262px;
  background-color: #EDF2F7;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.products__item .image-wrapper::before {
  transition: all ease 0.4s;
  content: '';
  position: absolute;
  width: 63px;
  height: 30px;
  left: 20px;
  top: 20px;
  background-image: url('/img/logo_for_product.svg');
  background-repeat: no-repeat;
  background-position: right bottom;
  z-index: 1;
}

.products__item .text-wrapper {
  padding: 50px 44px;
}

.products__item-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 34.32px;
  color: #1A202C;
  margin: 0;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
}

.products__item-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #5D6A83;
  margin: 0;
  margin-bottom: 16px;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre-line;
  height: 50px;
}

.edit-product-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background-color: #f0f2f5;
  cursor: pointer;
}

.products__more {
  margin-top: 20px;
  padding: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background-color: #004AAC;
  border: none;
  border-radius: 14px;
  width: 100%;
}

.our-product__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 47.88px;
  text-align: center;
  margin-bottom: 50px;
}

.see-all-products {
  display: block;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 27.36px;
  text-align: center;
  color: #004AAC;
  border-radius: 24px;
  border: 1px solid #004AAC;
  padding: 30px 50px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  width: 419px;
}

.pharmacies {
  background-color: #F2F6FF;
  padding-top: 100px;
  padding-bottom: 100px;
}

.pharmacies__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 47.88px;
  text-align: center;
  color: #1A202C;
  margin: 0;
}

.pharmacies .wrapper {
  margin-top: 100px;
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 24px;
}

.pharmacies .wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pharmacies .wrapper ul li h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 25.2px;
  text-align: left;
  color: #1A202C;
  margin: 0;
  margin-bottom: 20px;
}

.pharmacies .wrapper ul li p {
  font-size: 16px;
  font-weight: 400;
  line-height: 25.2px;
  text-align: left;
  color: #5D6A83;
  margin: 0;
}

.product-detail-carousel {
  position: relative;
  max-width: 1180px;
  height: 548px;
  margin: 100px auto;
  background-color: #eef2fb;
  border-radius: 24px;
  overflow: hidden;
  padding: 0 103px;
}

.product-detail-carousel::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  right: 0;
  bottom: 0;
  background-image: url('/img/carousel-after.svg');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 98px;
  z-index: 1;
}

.product-detail-carousel::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  left: 0;
  top: 0;
  background-image: url('/img/carousel-before.svg');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 98px;
  z-index: 1;
}

.product-detail-carousel .inner {
  min-width: 100%;
  min-height: 100%;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
}

.text-content {
  width: 480px;
  margin-right: 75px;
}

.image-content {
  position: relative;
  width: 100%;
  max-width: 401px;
  height: 401px;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.image-content .product {
  width: 308px;
  z-index: 2;
}

.image-content .product-bg {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 383px;
  height: 358px;
}

.bg-red {
  filter: invert(19%) sepia(94%) saturate(7483%) hue-rotate(357deg) brightness(97%) contrast(115%);
}

.bg-green {
  filter: invert(57%) sepia(72%) saturate(470%) hue-rotate(89deg) brightness(91%) contrast(92%);
}

.text-content h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
  color: #1A202C;
  margin: 0;
  margin-bottom: 20px;
}

.text-content p {
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: #5D6A83;
  margin: 0;
  margin-top: 14px;
}

.product-detail-carousel-item.active {
  display: flex;
}

.text-content h2 {
  color: #1a202c;
  margin-bottom: 20px;
}

.text-content p {
  color: #4a5568;
}

.image-content img {
  width: 300px;
  height: auto;
}

@media (max-width: 400px) {
  .products {
    padding: 50px 0;
  }

  .products__title {
    font-size: 24px;
    line-height: 35px;
    text-align: left;
    width: 250px;
    margin-left: 20px;
  }

  .products__list {
    gap: 30px;
    margin: 50px 0;
    flex-direction: column;
  }

  .products__item {
    max-width: 355px;
    margin-left: auto;
    margin-right: auto;
  }

  .products__item .image-wrapper img {
    max-width: 193px;
  }

  .products__item .image-wrapper::before {
    content: '';
    position: absolute;
    width: 58px;
    height: 28px;
    left: 18px;
    top: 18px;
    background-image: url('/img/logo_for_product.svg');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 58px;
    z-index: 1;
  }

  .products__item-title {
    font-size: 22px;
    line-height: 31px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
  }

  .products__item-text {
    font-size: 14px;
    line-height: 21px;
    margin-bottom: 13px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
  }

  .products__more {
    padding: 18px;
    font-size: 16px;
  }

  .see-all-products {
    font-size: 15px;
    line-height: 23px;
    padding: 25px;
    width: 354px;
  }

  .pharmacies {
    background-color: #FFF;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .pharmacies__title {
    font-size: 24px;
    line-height: 35px;
    text-align: left;
    color: #1A202C;
    margin-left: 20px;
  }

  .pharmacies .wrapper {
    margin-top: 30px;
    width: 100%;
    max-width: 395px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    background-color: #fff;
    border-radius: 24px;
  }

  .pharmacies .wrapper ul {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .pharmacies .wrapper ul li h4 {
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
  }
  
  .product-detail-carousel {
    position: relative;
    max-width: 350px;
    margin: 50px auto;
    background-color: #eef2fb;
    border-radius: 24px;
    overflow: hidden;
    padding: 0;
  }
  
  .product-detail-carousel::after, .product-detail-carousel::before {
  display: none;
  }
  
  .product-detail-carousel .inner {
    flex-direction: column;
    height: 469px;
  }
  
  .text-content {
    width: 350px;
    margin-right: 0;
    padding: 20px;
  }
  
  .image-content {
    position: relative;
    width: 100%;
    max-width: 350px;
    padding-left: 0;
  }
  
  .image-content .product {
    width: 161px;
    z-index: 2;
    margin-left: 12px;
    margin-bottom: 90px;
  }
  
  .image-content .product-bg {
    position: absolute;
    z-index: 1;
    right: 50px;
    bottom: 50px;
    width: 210px;
    height: 210px;
  }

  .text-content h2 {
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 22px;
    max-width: 300px;
  }
  
  .text-content p {
    font-size: 15px;
    line-height: 25px;
  }
  

}

.product-info {
  background-color: #F2F6FF;
  padding-top: 100px;
  padding-bottom: 100px;
  white-space: pre-line;
}

.product-info h2 {
  text-align: center;
  margin-bottom: 100px;
  font-size: 36px;
  font-weight: 700;
  line-height: 47.88px;
}

.product-info .wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
}

.product-info .wrapper h4 {
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  text-align: left;
  color: #1A202C;
  margin: 0;
  margin-top: 40px;
}

.product-info .wrapper h4:nth-child(1) {
  margin-top: 0;
}

.product-info .wrapper p {
  max-width: 1050px;
  white-space: pre-line;
}


@media (max-width: 1600px) {
  .products__list {
    gap: 15px;
  }

  .products__item {
    max-width: 380px;
  }
}