.primary-banner {
  padding: 0;
}
.primary-banner img {
  width: 100%;
  aspect-ratio: 4/1;
}

.mx-n10 {
  margin-inline: -10px;
}

/* carousel */
.card-img-wrapper {
  display: inline-block;
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}

.carousel-slide {
  margin-top: -100px;
  position: relative;
}

.carousel-slide #banner-carousel-control-prev {
  left: -10px;
}
.carousel-slide #banner-carousel-control-next {
  right: -10px;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control-next,
.carousel-control-prev {
  width: 48px;
  height: 48px;
  border-radius: 100%;
  border: 1px solid var(--bs-white);
  position: absolute;
  top: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  opacity: 0.6;
  background: #FFFFFF;
  box-shadow: 0px 0px 16px 0px rgba(0, 0, 0, 0.30);
}

.carousel-control-prev {
  left: 0;
  transform: translate(calc(-50% + 10px), -50%);
}

.carousel-control-next {
  right: 0;
  transform: translate(calc(50% - 10px), -50%);
}

.carousel-item .col-md-6:first-child {
  padding-right: 10px;
}

.carousel-item .col-md-6:nth-child(2) {
  padding-left: 10px;
}

.section-spacing {
  width: 100%;
  height: 30px;
}

.golden-hour-wrapper {
  padding: 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-image: url("/img/banner-giovang.png");
  background-position: center;
  background-size: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.golden-hour-wrapper .golden-hour-title {
  margin: 0;
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 500;
  line-height: 40px;
  text-transform: uppercase;
}

#golden-hour-products-carousel .slide-padding {
  padding: 6px;
}

#countdown {
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.golden-hour-countdown .golden-hour-end-title {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 400;
  line-height: calc(24/16);
  margin-right: 8px;
}

.golden-hour-countdown .countdown-item {
  padding: 4px 8px;
  font-size: 24px;
  font-weight: 500;
  line-height: calc(32/24);
  border-radius: 8px;
  background: #F44336;
}

.golden-hour-carousel-controls {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  align-items: center;
}

.golden-hour-carousel-controls .carousel-control-next,
.golden-hour-carousel-controls .carousel-control-prev {
  position: static;
  transform: unset;
}

.golden-hour-products {
  padding: 14px 6px;
  border-radius: 0px 0px 8px 8px;
  background: #FFAC4A;
}

.featured-category {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
}

.homepage-section-title {
  font-size: 24px;
  font-weight: 500;
  line-height: calc(32 / 24);
  text-transform: uppercase;
}

.featured-category-title {
  margin-bottom: 20px;
}

.featured-category-list {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  row-gap: 20px;
}

.featured-category-list .featured-category-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  row-gap: 8px;
}

.featured-category-list .featured-category-item .featured-category-item-img {
  width: 64px;
  height: 64px;
}

.featured-category-list .featured-category-item .featured-category-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-category-list .featured-category-item .featured-category-item-title {
  text-align: center;
  line-height: 22px;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Great deal */
.great-deal-banner {
  width: 100%;
  display: inline-block;
  aspect-ratio: 9.8 / 1;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.great-deal-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.great-deal-products {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  border-radius: 0px 0px 8px 8px;
  background-color: #69C0FF;
  padding-top: 10px;
  padding-bottom: 20px;
}

.great-deal-products .great-deal-item-padding {
  padding: 6px;
}

#great-deal-carousel-control-prev {
  left: -20px;
}

#great-deal-carousel-control-next {
  right: -20px;
}

/* Suggestion */
.suggestion-title {
  margin-bottom: 12px;
}

.suggestion-cate {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow-x: auto;
  column-gap: 20px;
  margin-bottom: 20px;
}

/* Custom scrollbar ngang */
.suggestion-cate::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #F5F5F5;
  border-radius: 3px;
  margin-top: 0.25rem;
}

.suggestion-cate::-webkit-scrollbar {
  height: 6px;
  background-color: #F5F5F5;
}

.suggestion-cate::-webkit-scrollbar-thumb {
  background-color: #BFBFBF80;
  border-radius: 3px;
}

.suggestion-cate .suggestion-cate-item {
  flex: 0 0 calc(25% - 15px);
  display: flex;
  padding: 12px 0px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #FFFFFF;
  border: none;
  transition: all 0.25s ease-in-out;
  color: #1F1F1F;
}

.suggestion-cate .suggestion-cate-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 100%;
}

.suggestion-cate .suggestion-cate-item span {
  font-size: 16px;
  font-weight: 500;
  line-height: calc(24 / 16);
}

.suggestion-cate .suggestion-cate-item:hover,
.suggestion-cate .suggestion-cate-item.active {
  color: #FFFFFF;
  background-color: #F7941D;
}

.suggestion-products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* News */
.news-img {
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.news-content {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
}

.news-content-header {
  margin-bottom: 12px;
}

.btn-show-all-news {
  color: #8C8C8C;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  border: none;
  transition: transform 0.2s ease-in-out;
}

.btn-show-all-news:hover {
  transform: scale(1.05);
}

.news-item {
  display:flex;
  justify-content:center;
  flex-direction:column;
  row-gap: 8px;
}

.news-item-img {
  width: 100%;
  height: 170px;
  border-radius: 8px;
  overflow: hidden;
}

.news-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-title {
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.news-item:hover .news-item-title {
  color: var(--primary-color);
}

/* Outstanding */
.outstanding-brand-title {
  margin-bottom: 12px;
}

#outstanding-carousel .outstanding-item {
  width: 100%;
  height: 100%;
}

#outstanding-carousel .outstanding-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  overflow: hidden;
}

#outstanding-carousel .owl-stage {
  display: flex;
  height: 220px;
}

#outstanding-brand-control-prev {
  left: -10px
}
#outstanding-brand-control-next {
  right: -10px
}

/* ============ Responsive ============ */

@media screen and (min-width: 768px) and (max-width: 1199.98px){
  .section-spacing {
    height: 20px;
  }
  .card-img-wrapper {
    height: 150px;
  }
  .carousel-slide {
    margin-top: -75px;
  }
  .featured-category-list {
    grid-template-columns: repeat(6, 1fr);
    row-gap: 10px;
  }
  .suggestion-cate {
    gap: 10px;
  }
  .suggestion-cate .suggestion-cate-item {
    padding: 0.25rem 0.75rem;
    justify-content: flex-start;
    flex: 0 0 auto;
    border-radius: 4px;

  }
  .suggestion-cate .suggestion-cate-item img {
    width: 1.5rem;
    height: 1.5rem;
  }
  .suggestion-products {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .news-img {
    height: 500px;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 767.98px) {
  .section-spacing {
    width: 100%;
    height: 1rem;
  }
  .card-img-wrapper {
    height: 100px;
  }
  .carousel-slide {
    margin-top: 0;
  }
  .golden-hour-wrapper {
    flex-direction: column;
    row-gap: 1rem;
    padding: 20px;
  }

  .home_banner_mobile{
    margin-top: 20px;
  }
  .featured-category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 10px;
  }
  .primary-banner {
    width: 100%;
    aspect-ratio: unset;
    height: 150px;
  }
  .primary-banner img {
    object-fit: fill;
    height: 100%;
  }
  .suggestion-cate {
    gap: 10px;
  }
  .suggestion-cate .suggestion-cate-item {
    padding: 0.25rem 0.75rem;
    justify-content: flex-start;
    flex: 0 0 auto;
    border-radius: 4px;
  }
  .suggestion-cate .suggestion-cate-item img {
    width: 2rem;
    height: 2rem;
  }
  .suggestion-cate .suggestion-cate-item span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }
  .great-deal-banner {
    aspect-ratio: unset;
    width: 100%;
    height: 75px;
  }
  .great-deal-banner img {
    object-fit: fill;
  }
  .suggestion-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .news-img {
    height: 400px;
    margin-bottom: 1rem;
  }
}