.paling-laris {
  padding: 20px 0 40px 0;
  background: #ffffff;
}
/* ================= HEADER ================= */
.pl-header-top h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.pl-filter button {
  border: 1px solid #0d6efd;
  background: transparent;
  color: #0d6efd;
  padding: 5px 12px;
  border-radius: 6px;
  margin-right: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.pl-filter button.active,
.pl-filter button:hover {
  background: #0d6efd;
  color: #fff;
}

/* ================= SECTION HEADER ================= */
.pl-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 15px;
}

.pl-section-header h3 {
  font-size: 20px;
  font-weight: 600;
}

.pl-section-header a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

/* ================= SLIDER WRAPPER ================= */
.pl-slider-wrapper {
  position: relative;
}

/* ================= SLIDER ================= */
.pl-slider {
  display: flex;
  align-items: stretch;  /* banner & card sama tinggi */
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
}

.pl-slider .m10-banner-v2 {
  align-self: stretch;
}

.pl-slider::-webkit-scrollbar {
  display: none;
}

/* ================= CARD ================= */
/* CARD */
.pl-card {
  scroll-snap-align: start;
  position: relative;
  min-width: 165px;
  max-width: 165px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* bikin rata */
}

/* IMAGE */
.pl-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 6px;
}

/* TITLE */
.pl-card h4 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  height: 34px; /* paksa tinggi sama */
  overflow: hidden;
  margin-bottom: 4px;
}

/* META & PRICE */
.pl-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: auto; /* dorong ke bawah */
}

/* ================= BADGE ================= */
.pl-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e53935;
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 6px;
  font-weight: 600;
}

/* ================= TEXT ================= */
.pl-category {
  font-size: 11px;
  color: #777;
  margin: 6px 0 2px;
}

.pl-card h4 {
  font-size: 13px;
  font-weight: 600;
  min-height: 32px;
  margin-bottom: 4px;
}

.pl-old {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.pl-price {
  font-size: 14px;
  font-weight: 700;
  color: #e53935;
}

.pl-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 4px;
}

.stars {
  color: #fbc02d;
}

/* ================= BUTTON ================= */
.pl-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 5;
  font-size: 18px;
  transition: 0.2s;
}

.pl-btn.left {
  left: 0; /* sejajar */
}

.pl-btn.right {
  right: 0; /* sejajar */
}

.pl-btn:hover {
  background: #0d6efd;
  color: #fff;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .pl-btn {
    display: none;
  }

  .pl-card {
    min-width: 145px;
    max-width: 145px;
  }

  .pl-card img {
    height: 105px;
  }
}
