.product-best-seller {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
.product-img-wrap-best {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 0;
  min-height: 180px;
  max-height: 220px;
}
.product-img-best {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
  border-radius: 16px;
  background: #f5f5f5;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.07);
  padding: 0.2rem;
}
.product-caption-title-best {
  margin-top: 0.7rem;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: center;
  word-break: break-word;
  font-size: 1.08rem;
}
.product-caption-best {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 110px;
}
.product-action-best {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 48px;
  gap: 0.5em;
}
/* Sản phẩm bán chạy hiện đại */
.product-best-seller {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(30, 136, 229, 0.10), 0 1.5px 6px 0 rgba(0,0,0,0.04);
  padding: 1rem 0.3rem 1rem 0.3rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
  min-height: 340px;
  max-width: 240px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Căn giữa card trong cột */
.col-lg-3.col-md-4.col-sm-6.d-flex.align-items-stretch > .product-best-seller {
  margin-left: auto;
  margin-right: auto;
}
.product-best-seller:hover {
  box-shadow: 0 12px 40px 0 rgba(30, 136, 229, 0.18), 0 2px 8px 0 rgba(0,0,0,0.07);
  transform: translateY(-7px) scale(1.035);
  z-index: 2;
}
.product-img-wrap-best {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}
.product-img-best {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 16px;
  background: #f5f5f5;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.07);
  padding: 0.2rem;
}
.product-label-hot {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(90deg, #ff9800 60%, #ff5722 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 8px;
  padding: 2px 10px;
  box-shadow: 0 2px 8px 0 rgba(255, 152, 0, 0.13);
  letter-spacing: 0.5px;
}
.product-caption-best {
  width: 100%;
  text-align: center;
}
.product-caption-title-best {
  font-size: 1.13rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 0.22rem;
  min-height: 2.2em;
  word-break: break-word;
  letter-spacing: 0.2px;
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
}
.product-caption-price-best {
  margin-bottom: 0.18rem;
}
.product-caption-price-new-best {
  font-size: 1.09rem;
  font-weight: 800;
  color: #388e3c;
  margin-right: 0.5em;
}
.product-caption-price-old-best {
  font-size: 1.01rem;
  color: #bdbdbd;
  text-decoration: line-through;
  margin-left: 0.2em;
}
.product-labels-prices-best {
  font-size: 0.98rem;
  color: #ff9800;
  margin-left: 0.3em;
  font-weight: 700;
}
.product-sold-best {
  font-size: 0.98rem;
  color: #1976d2;
  margin-bottom: 0.18rem;
}
.product-action-best {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 0.3em;
}
.btn-best {
  font-size: 1.01rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.38em 1.1em;
  box-shadow: 0 1px 4px 0 rgba(30, 136, 229, 0.07);
  transition: background 0.18s, color 0.18s;
}
.btn-best:active, .btn-best:focus {
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.13);
}
/* Danh mục nhóm thuốc kiểu card nền xanh, icon cam, bố cục 5 cột, hiện đại */
.home-category-green-section {
  background: linear-gradient(120deg, #e0f7fa 60%, #c8e6c9 100%);
  border-radius: 18px;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  margin: 2.5rem auto 2rem auto;
  box-shadow: 0 2px 16px 0 rgba(30, 136, 229, 0.07);
  max-width: 1640px;
  width: 100%;
}
.home-category-green-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}
.home-category-green-title {
  font-size: 2.55rem;
  font-weight: 900;
  background: linear-gradient(90deg, #1976d2 40%, #00bfae 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: 1.5px;
  text-transform: none;
  margin: 0 0 0.5rem 0;

  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
}
.home-category-green-all {
  font-size: 1.1rem;
  color: #1976d2;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2em;
  transition: color 0.18s;
}
.home-category-green-all:hover {
  color: #0d47a1;
}
.home-category-green-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.1rem 1.1rem;
  justify-content: center;
  align-items: stretch;
}
.home-category-green-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(30, 136, 229, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem 0.7rem 0.7rem 0.7rem;
  min-height: 140px;
  height: 100%;
  transition: box-shadow 0.18s, transform 0.18s;
  border: none;
  cursor: pointer;
}
.home-category-green-card:hover {
  box-shadow: 0 8px 32px 0 rgba(30, 136, 229, 0.13);
  transform: translateY(-4px) scale(1.04);
}
.home-category-green-card-img {
  object-fit: contain;
  border-radius: 12px;

  margin-bottom: 0.7rem;
  border: none;
}
.home-category-green-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #222;
  text-align: center;
  margin-bottom: 0.18rem;
  min-height: 2.1em;
  word-break: break-word;
}
.home-category-green-card-count {
  font-size: 1.05rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.1px;
}
@media (max-width: 1200px) {
  .home-category-green-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .home-category-green-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .home-category-green-section {
    padding: 1.1rem 0.3rem 0.7rem 0.3rem;
  }
  .home-category-green-title {
    font-size: 1.2rem;
  }
  .home-category-green-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.5rem;
  }
  .home-category-green-card {
    min-height: 100px;
    padding: 0.7rem 0.3rem 0.5rem 0.3rem;
  }
  .home-category-green-card-img {
    width: 36px;
    height: 36px;
  }
}
