.carousel {
  width: 100%;
  max-width: 100%;
  margin: 0px auto 32px;
}
.carousel .slick-prev {
  background: #515154 !important;
  opacity: 0.1;
  border-radius: 100%;
  width: 48px;
  height: 48px;
  left: 56px !important;
  z-index: 1;
}
.carousel .slick-prev:hover {
  opacity: 0.7;
}
.carousel .slick-prev::before {
  content: "\e8ec";
  font-family: "iconsax", sans-serif;
  font-size: 20px;
  color: #ffffff;
}
.carousel .slick-next {
  background: #515154 !important;
  opacity: 0.1;
  border-radius: 100%;
  width: 48px;
  height: 48px;
  right: 56px !important;
  z-index: 1;
}
.carousel .slick-next:hover {
  opacity: 0.7;
}
.carousel .slick-next::before {
  content: "\e9c4";
  font-family: "iconsax", sans-serif;
  font-size: 20px;
  color: #ffffff;
}
.carousel .slick-dots {
  margin: 0;
  padding: 0;
  position: absolute;
  bottom: 12px;
}
.carousel.slick-dotted.slick-slider {
  margin-bottom: 32px;
}
.carousel-item {
  width: 100%;
  margin: 0px auto;
}
.slick-slide img {
  width: 100%;
  height: 420px;
/*  border: 2px solid #fff;*/
}
/* Content Home Page */
.content-home-page {
  width: 100%;
  max-width: 1200px;
  margin: 0px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.category {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.category:first-child {
  margin-top: 32px;
}
.category-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 45px;
  color: #1d1d1f;
  text-align: center;
}
.category-list {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}
.category-item {
  position: relative;
  width: calc(25% - 15px);
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 24px 20px 16px;
  background-color: #FFF;
  box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.04);
}
.category-item:nth-child(n+5) {
  display: none;
}
.category-item:hover {
  border-color: #02010100;
  box-shadow: 1px 1px 28px 0px rgb(0 0 0 / 12%);
}
.category-item-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
}
.category-item-header-ratio {
  border-radius: 4px;
  padding: 1px 15px;
  text-align: center;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  line-height: 24px;
  color: #fff;
  position: absolute;
  top: 0;
  left: -5px;
  background: url(../img/price-ratio.png) left center no-repeat;
  width: auto;
  height: 31px;
  background-size: cover;
}
.category-item-header-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  z-index: 2;
}
.category-item-header-tag.green {
  border: 1px solid green;
  color: green;
}
.category-item-header-tag.red {
  border: 1px solid red;
  color: red;
}
.category-item-header-tag.blue {
  border: 1px solid blue;
  color: blue;
}
.category-item-wrapper-link {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.category-item-img {
  max-width: 100%;
  max-height: 100%;
  margin: 25px 0 20px;
}
.category-item-img img {
  max-width: 100%;
  max-height: 100%;
}
.category-item-title {
  height: 54px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  font-weight: 700;
  line-height: 27px;
  font-size: 18px;
  color: #1d1d1f;
}
.category-item-price {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.category-item-price .price-old {
  font-size: 14px;
  font-weight: 300;
  line-height: 20px;
  color: #86868b;
  text-decoration: line-through;
}
.category-item-price .price-new {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #06c;
}
.view-more {
  text-align: center;
}
.view-more-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  line-height: 27px;
  padding: 5px 45px;
  border-radius: 8px;
  border: 1px solid #06C;
  color: #06C;
  background-color: transparent;
  vertical-align: middle;
  cursor: pointer;
}
.view-more-btn:hover {
  background-color: #06C;
  color: #fff;
}
.view-more-icon {
  font-size: 14px;
  font-weight: 700;
  line-height: 27px;
  color: #06C;
}
.view-more-btn:hover .view-more-icon {
  color: #FFF;
}

/* Footer Banner */
.footer-banner {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-banner-img {
  width: 100%;
  height: 100%;
}
.footer-banner-img img {
  width: 100%;
  height: 400px;
}
/* News Section*/
.news-section {
  width: 100%;
  max-width: 1200px;
  margin: 0px auto 20px;
}
.news-section-contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.news-section-title{
  font-size: 24px;
  line-height: 45px;
  color: #1D1D1F
}
.news-section-list {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.news-section-item {
  display: flex;
  width: calc(33.33% - 13.33px);
  flex-direction: column;
  position: relative;
  border-radius: 8px;
  box-shadow: 0px 1px 8px rgb(0 0 0 / 4%);
  background-color: #FFF;
}
.news-section-item-img {
  width: 100%;
  height: 200px;
}
.news-section-item-img img {
  width: 100%;
  max-height: 200px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.news-section-item-title {
  width: 100%;
  height: 100%;
  padding: 25px 25px 15px 25px;
  
}
.news-section-item-title a {
  font-size: 18px;
  font-weight: bold;
  line-height: 24px;
  color: #1D1D1F;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.news-section-item-date {
  font-size: 15px;
  line-height: 24px;
  color: #86868b;
  padding: 0 25px 25px 25px;
}
.news-section-btn {
  font-size: 14px;
  font-weight: 400;
  line-height: 27px;
  color: #06C;
  border: 1px solid #06C;
  background: transparent;
  border-radius: 8px;
  padding: 6px 45px;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}
.news-section-btn .iconsax {
  font-size: 15px;
  font-weight: bolder;
  line-height: 27px;
  color: #06C;
}
.news-section-btn:hover {
  background-color: #06C;
  color: #FFF;
}
.news-section-btn:hover .iconsax {
  color: #FFF;
}
@media (max-width: 1360px) {
  .content-home-page {
    padding: 0 20px;
  }
  .news-section-contents {
    padding: 0 20px;
  }
}
@media (min-width: 1024px) and (max-width: 1360px) {
  .slick-slide img {
    width: 100%;
    height: 320px;
    border: 2px solid #fff;
  }
 
}
@media (min-width: 540px) and (max-width: 1023px) {
  .slick-slide img {
    width: 100%;
    height: 240px;
    border: 2px solid #fff;
  }
  .category-list {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 32px;
  }
  .category-item {
    position: relative;
    width: calc(33.33% - 13.33px);
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 24px 20px 16px;
    background-color: #FFF;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.04);
  }
  /* Ẩn các phần tử .category-item có thứ tự lớn hơn 6 */
  .category-item:nth-child(n+7) {
    display: none;
  }
}
@media (min-width: 540px) and (max-width: 767px) {
  .news-section-list {
    flex-wrap: wrap;
    gap: 15px;
  }
  .news-section-item {
    width: calc(50% - 10px);
  }
}
@media (max-width: 539px) {
  .slick-slide img {
    width: 100%;
    height: 240px;
    border: 2px solid #fff;
  }
  .category-list {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
  }
  .category-item {
    position: relative;
    width: calc(50% - 10px);
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    padding: 0px;
    background-color: #FFF;
    box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.04);
  }
  .category-item-header-tag {
    font-size: 8px;
    line-height: 12px;
  }
  .category-item-title {
    padding: 0 15px;
  }
  .category-item-price {
    flex-direction: column;
    gap: 0px;
    padding: 0 15px 12px;
  }
  .category-item-price .price-old {
    font-size: 10px;
    font-weight: 300;
    line-height: 20px;
    color: #86868b;
    text-decoration: line-through;
  }
  .category-item-price .price-new {
    font-size: 13px;
    font-weight: 700;
    line-height: 24px;
    color: #06c;
  }
  /* Ẩn các phần tử .category-item có thứ tự lớn hơn 6 */
  .category-item:nth-child(n+5) {
    display: none;
  }
  .footer-banner-img img {
    height: 240px;
  }
  .news-section {
    padding: 0 20px;
    margin-bottom: 60px;
  }
  .news-section-contents {
    padding: 0px;
  }
  .news-section-list {
    flex-wrap: wrap;
    gap: 15px;
  }
  .news-section-item {
    width: 100%;
  }
}