.custom-slider {
  position: relative;
  padding: 18px 44px 26px;
}

.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(180px, 19vw, 260px);
  gap: clamp(14px, 2vw, 0px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.product-card {
  scroll-snap-align: start;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
  box-shadow: 5px 5px 12px rgba(5, 59, 108, .18);
  transform: translateY(-2px);
}

.img-box {
  background: #fff;
  padding: 10px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, .18); */
}

.img-box img {
  width: 100%;
  height: 100%;
}

.price-bar {
  background: #1390cb;
  color: #fff;
  padding: 8px;
  font-weight: 700;
  margin-top: 10px;
}

.meta {
  font-size: 13px;
  color: #333;
  margin: 8px 0;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #1390cb;
  color: #fff;
  border: 0;
  min-height: 38px;
  padding: 9px 14px;
  width: min(100%, 190px);
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cart-btn:hover {
  background: #0f789f;
  color: #fff;
}

.title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 44px;
  background: #fff;
  border: 0;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  z-index: 2;
}

.left {
  left: 0;
}

.right {
  right: 0;
}

@media (max-width: 767.98px) {
  .custom-slider {
    padding: 14px 34px 22px;
  }

  .slider {
    grid-auto-columns: minmax(165px, 68vw);
    gap: 16px;
  }

  .arrow {
    width: 30px;
    height: 40px;
    font-size: 18px;
  }
}
