/* Homepage New Products carousel — scoped to .index_product_gd / .site-newprod */
.site-newprod.index_product_gd {
  --np-navy: #0f2d6b;
  --np-blue: #153f8f;
  --np-deep: #093480;
  --np-ink: #1a2332;
  --np-muted: #6b7a90;
  --np-line: rgba(21, 63, 143, 0.12);
  position: relative;
  padding: 56px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  font-family: "Barlow", "Segoe UI", sans-serif;
}

.site-newprod.index_product_gd::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--np-line), transparent);
  pointer-events: none;
}

/* —— Head —— */
.site-newprod__head.product_head {
  text-align: center;
  margin: 0 auto 32px !important;
  max-width: 640px;
}

.site-newprod__head.product_head h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--np-ink);
  text-transform: none;
}

.site-newprod__desc,
.site-newprod__head.product_head p.site-newprod__desc {
  margin: 10px 0 0 !important;
  font-size: 15px !important;
  line-height: 1.55;
  color: var(--np-muted) !important;
}

/* —— Slider shell —— */
.site-newprod .bx-wrapper {
  margin-bottom: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  max-width: 100% !important;
}

.site-newprod .bx-viewport {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  left: 0 !important;
}

.site-newprod .slider5 .slide {
  float: left;
}

.site-newprod .index_hot_product_td_l,
.site-newprod .index_hot_product_td {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.site-newprod .index_hot_product_td_img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  line-height: 0 !important;
  border: 1px solid var(--np-line) !important;
  border-radius: 4px 4px 0 0 !important;
  overflow: hidden;
  background: #fff;
  box-shadow: none !important;
  aspect-ratio: 1 / 1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-newprod .index_hot_product_td_img a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
  box-sizing: border-box;
  background: #fff !important;
  position: relative;
}

.site-newprod .index_hot_product_td_img a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--np-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.site-newprod .index_hot_product_td_img img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  opacity: 1 !important;
  transition: transform 0.45s ease !important;
  transform: none !important;
}

.site-newprod .index_hot_product_td:hover .index_hot_product_td_img {
  border-color: rgba(21, 63, 143, 0.28) !important;
  box-shadow: 0 -4px 18px rgba(15, 45, 107, 0.08) !important;
}

.site-newprod .index_hot_product_td:hover .index_hot_product_td_img a::after {
  transform: scaleX(1);
}

.site-newprod .index_hot_product_td:hover .index_hot_product_td_img img {
  transform: scale(1.06) !important;
}

.site-newprod .index_hot_product_td_text {
  width: 100% !important;
  padding: 0 !important;
  overflow: hidden;
}

.site-newprod .index_hot_product_td_name {
  margin: 0;
  padding: 12px 10px 16px;
  min-height: calc(1.35em * 2 + 2.2em + 28px);
  background: #fff;
  border: 1px solid var(--np-line);
  border-top: none;
  border-radius: 0 0 4px 4px;
  text-align: center;
  line-height: 1.35;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-newprod .index_hot_product_td:hover .index_hot_product_td_name {
  border-color: rgba(21, 63, 143, 0.28);
  box-shadow: 0 10px 22px rgba(15, 45, 107, 0.1);
}

.site-newprod__sku {
  display: block;
  margin-bottom: 4px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--np-muted);
}

.site-newprod .index_hot_product_td_name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: var(--np-ink) !important;
  transition: color 0.2s ease;
}

.site-newprod .index_hot_product_td:hover .index_hot_product_td_name a {
  color: var(--np-blue) !important;
}

/* —— Pager / controls —— */
.site-newprod .bx-wrapper .bx-pager {
  padding-top: 22px;
  position: relative;
  bottom: auto;
}

.site-newprod .bx-wrapper .bx-pager.bx-default-pager a {
  width: 8px;
  height: 8px;
  margin: 0 5px;
  border-radius: 50%;
  background: #c5cfde;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-newprod .bx-wrapper .bx-pager.bx-default-pager a:hover,
.site-newprod .bx-wrapper .bx-pager.bx-default-pager a.active {
  background: var(--np-blue);
  border: none;
  transform: scale(1.15);
}

.site-newprod .bx-wrapper .bx-controls-direction a {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--np-line);
  box-shadow: 0 4px 14px rgba(15, 45, 107, 0.1);
  text-indent: -9999px;
  z-index: 5;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-newprod .bx-wrapper .bx-controls-direction a:hover {
  background: var(--np-blue);
  border-color: var(--np-blue);
}

.site-newprod .bx-wrapper .bx-prev {
  left: -8px;
  background-image: none;
}

.site-newprod .bx-wrapper .bx-next {
  right: -8px;
  background-image: none;
}

.site-newprod .bx-wrapper .bx-prev::before,
.site-newprod .bx-wrapper .bx-next::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--np-blue);
  border-right: 2px solid var(--np-blue);
  box-sizing: border-box;
}

.site-newprod .bx-wrapper .bx-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.site-newprod .bx-wrapper .bx-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.site-newprod .bx-wrapper .bx-controls-direction a:hover::before {
  border-color: #fff;
}

@media screen and (max-width: 991px) {
  .site-newprod__head.product_head h2 {
    font-size: 34px;
  }

  .site-newprod .bx-wrapper .bx-controls-direction a {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .site-newprod.index_product_gd {
    padding: 40px 0;
    background: #f4f7fb;
  }

  .site-newprod__head.product_head {
    margin-bottom: 24px !important;
  }

  .site-newprod__head.product_head h2 {
    font-size: 28px;
  }

  .site-newprod .index_hot_product_td_img a {
    padding: 10px;
  }

  .site-newprod .index_hot_product_td_name {
    padding: 10px 6px 12px;
    min-height: calc(1.3em * 2 + 1.8em + 22px);
  }

  .site-newprod .index_hot_product_td_name a {
    font-size: 13px;
  }

  .site-newprod__sku {
    font-size: 11px;
  }
}
