/* == NEW PRODUCTS SLIDER (single line + always-on nav) == */
/* Section */
.new-products{
  text-align:center;
  margin:20px auto;
}

/* Title */
.section-title{
  font-size:18px;
  margin-bottom:16px;
  font-weight:bold;
  color:var(--muted);
  text-transform:uppercase;
  text-align:center;
  margin:10px 0;
}

/* Wrapper */
.slider-wrapper{
  position:relative;
  display:flex;
  align-items:center;
}

/* Slider: 1 baris selalu, bisa drag */
.products__slider{
  display:flex;
  gap:20px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  flex-wrap:nowrap;            /* force single line */
  padding:10px 12px;
  cursor:grab;
}
.products__slider:active{cursor:grabbing}

/* Card (lebar tetap agar step konsisten) */
.products__item {
  flex: 0 0 200px;
  max-width: 200px;
  width: 200px;
  scroll-snap-align: start;
  padding: 12px;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm, 16px);
  background: var(--card-bg, #fff);
  box-shadow: var(--shadow, 0 8px 24px rgba(15, 21, 53, 0.06));
}
.products__item:hover{transform:translateY(-2px)}
.products__item img{
  width:100%;
  border-radius:var(--m-border-radius,8px);
  margin-bottom:8px;
}

/* Teks (namespace ganda agar kompatibel) */
.product-name,.new-products__name{
  font-size: 14px;
  line-height: 1.3;
  margin: 8px 0;
  min-height: 55px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-price,.new-products__price{
  color:#444;
  font-weight:bold;
  margin:6px 0;
}

/* Tombol beli */
.new-products__buy{
  display:block;
  width:100%;
  padding:6px 10px;
  color:#fff;
  border:none;
  border-radius:var(--m-border-radius,8px);
  font-size:14px;
  cursor:pointer;
}

/* --- NAV (gaya mirip hero-nav) --- */
.products__nav-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background:var(--card-bg,#fff);
  border:1px solid var(--ring,#e5e7eb);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  color:var(--fg,#1f2937);
  font-size:26px; line-height:1; cursor:pointer; z-index:5;
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.products__nav-btn.is-left{left:-12px}
.products__nav-btn.is-right{right:-12px}
.products__nav-btn:hover{transform:translateY(-50%) scale(1.04)}
.products__nav-btn.is-disabled{opacity:.35;pointer-events:none;box-shadow:none}

/* (Opsional) sembunyikan scrollbar WebKit agar bersih */
.products__slider::-webkit-scrollbar{height:8px}
.products__slider::-webkit-scrollbar-track{background:transparent}
.products__slider::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12);border-radius:8px}

/* (Tetap tampil di desktop: tidak ada flex-wrap) */
@media (min-width:768px){
  .products__slider{flex-wrap:nowrap;overflow-x:auto}
  .products__nav-btn{display:flex}
}

/* Utility kecil */
.more-product-wrapper{margin-top:14px}

.products__nav-btn.is-left { opacity:.35; pointer-events:none; }
.products__nav-btn.is-left:not(.is-disabled){ opacity:1; pointer-events:auto; }


/* efek disable yang pasti terlihat */
.new-products .products__nav-btn.is-disabled{
  opacity: .35 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
}
