/* Homepage — featured products section */
.home-products {
  position: relative;
  padding: 56px 0 64px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-top: 1px solid #e2e8f0;
}

.home-products .container {
  max-width: 1320px;
}

.home-products__wrap {
  width: 100%;
  float: none;
}

.home-products__head {
  margin-bottom: 40px !important;
  text-align: center;
}

.home-products__title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.home-products__title-wrap::before,
.home-products__title-wrap::after {
  content: '';
  flex: 0 1 100px;
  width: 100px;
  max-width: 14vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1);
}

.home-products__title-wrap::after {
  background: linear-gradient(90deg, #cbd5e1, transparent);
}

.home-products__head h2 {
  position: relative;
  margin: 0;
  padding-bottom: 14px;
  font-family: 'Sora', 'DM Sans', sans-serif;
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #0c2d4a;
  text-align: center;
}

.home-products__head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9 0%, #0c2d4a 100%);
}

.home-products__head p,
.home-products__subtitle {
  max-width: 560px;
  margin: 0 auto;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: #64748b;
  text-align: center;
}

.home-products__slider {
  margin-bottom: 8px;
}

.home-products .product_list {
  clear: both;
  padding: 0;
  margin: 0;
}

.home-products .bx-wrapper {
  margin: 0 auto;
  padding: 4px 0 8px;
  max-width: 100%;
}

.home-products .bx-wrapper .bx-viewport {
  border: none;
  box-shadow: none;
  background: transparent;
  left: 0;
}

.home-products .slide {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-products .slide:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.28);
  box-shadow: 0 14px 36px rgba(12, 45, 74, 0.1);
}

.home-products .slide > a {
  display: block;
  padding: 20px 20px 12px;
  background: #fff;
  text-align: center;
}

.home-products .slide img,
.home-products .slide .img-thumbnail {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 200px;
  max-height: 200px;
  margin: 0 auto 0;
  padding: 0;
  border: none !important;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  transition: transform 0.3s ease;
}

.home-products .slide:hover img {
  transform: scale(1.03);
}

.home-products .product_title {
  height: auto;
  min-height: 52px;
  margin: 0;
  padding: 14px 16px 18px;
  text-align: left;
  background: #f8fafc;
  border-top: 1px solid #eef2f6;
}

.home-products .product_title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #1e293b;
  text-decoration: none;
}

.home-products .product_title a:hover {
  color: #0369a1;
  text-decoration: none;
}

/* bxSlider arrows */
.home-products .bx-wrapper .bx-prev,
.home-products .bx-wrapper .bx-next {
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border-radius: 50%;
  background: #fff !important;
  background-image: none !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  opacity: 1;
  text-indent: 0;
  font-size: 0;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-products .bx-wrapper .bx-prev::before,
.home-products .bx-wrapper .bx-next::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-top: 2px solid #0c2d4a;
  border-right: 2px solid #0c2d4a;
  transition: border-color 0.2s ease;
}

.home-products .bx-wrapper .bx-prev::before {
  margin-left: -3px;
  transform: rotate(-135deg);
}

.home-products .bx-wrapper .bx-next::before {
  margin-left: -7px;
  transform: rotate(45deg);
}

.home-products .bx-wrapper .bx-prev:hover,
.home-products .bx-wrapper .bx-next:hover {
  background: #0c2d4a !important;
  border-color: #0c2d4a;
  box-shadow: 0 6px 18px rgba(12, 45, 74, 0.2);
}

.home-products .bx-wrapper .bx-prev:hover::before,
.home-products .bx-wrapper .bx-next:hover::before {
  border-color: #fff;
}

.home-products .bx-wrapper .bx-prev {
  left: -12px;
}

.home-products .bx-wrapper .bx-next {
  right: -12px;
}

.home-products .bx-wrapper .bx-controls-direction a {
  z-index: 2;
  position: absolute;
  top: 50%;
}

.home-products .bx-pager {
  display: none !important;
}

.home-products__footer {
  text-align: center;
  margin-top: 32px;
}

.home-products__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  min-width: 200px;
  height: auto !important;
  line-height: 1.4 !important;
  margin: 0 auto !important;
  padding: 13px 32px !important;
  font-family: 'Sora', 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(135deg, #0369a1 0%, #0c2d4a 100%) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 20px rgba(12, 45, 74, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-products__btn:hover,
.home-products__btn:focus {
  color: #fff !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.3);
  text-decoration: none;
}

.home-products__btn::after {
  content: '→';
  font-size: 14px;
  line-height: 1;
}

@media screen and (max-width: 991px) {
  .home-products {
    padding: 40px 0 48px;
  }

  .home-products__head {
    margin-bottom: 28px !important;
  }

  .home-products__title-wrap::before,
  .home-products__title-wrap::after {
    flex-basis: 48px;
    width: 48px;
  }

  .home-products__head h2 {
    font-size: 1.5rem;
    padding-bottom: 12px;
  }

  .home-products__subtitle {
    font-size: 14px;
    padding: 0 12px;
  }

  .home-products .slide img,
  .home-products .slide .img-thumbnail {
    height: 170px;
    max-height: 170px;
  }

  .home-products .bx-wrapper .bx-prev {
    left: 0;
  }

  .home-products .bx-wrapper .bx-next {
    right: 0;
  }
}

@media screen and (max-width: 768px) {
  .home-products {
    padding: 32px 0 40px;
  }

  .home-products .slide img,
  .home-products .slide .img-thumbnail {
    height: 150px;
    max-height: 150px;
  }

  .home-products .product_title a {
    font-size: 13px;
  }

  .home-products .bx-wrapper .bx-prev,
  .home-products .bx-wrapper .bx-next {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }
}
