/* ===== Header / Navigasi (mobile) =====
   Layout rapi 3 baris:
   1) Logo (kiri) + Login/Daftar (kanan, kompak)
   2) Search bar penuh lebar
   3) Kategori chip geser horizontal */
header {
  padding: 12px 14px 0;
}
.navbar {
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 10px;
  padding-bottom: 4px;
}
.nav-buttons {
  order: 2;
  margin-left: auto;
  gap: 8px;
}
.nav-buttons button {
  padding: 8px 16px;
  font-size: 0.85rem;
}
.search-box {
  order: 3;
  flex: 1 1 100%;
  max-width: none;
  margin-top: 2px;
}
.search-bar {
  padding: 10px 16px;
  font-size: 16px; /* 16px penuh = iOS tidak auto-zoom saat input fokus */
}
.brand-link {
  gap: 8px;
}
.logo {
  font-size: 1.3rem;
}
.nav-logo {
  width: 40px;
  height: 40px;
}
.quick-links {
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 2px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  /* Tepi memudar = isyarat "bisa digeser" */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
}
.quick-links::-webkit-scrollbar {
  display: none;
}

/* ===== Tanda "bisa digeser" di baris chip =====
   Muncul hanya kalau barisnya benar-benar overflow (class .swipeable
   dipasang oleh js/animate.js pada pembungkus .quick-links-wrap).
   Isinya hanya dua panah bulat kecil: ‹ di kiri dan › di kanan, chevron
   putih di atas latar gelap agar kontras di semua warna halaman. Panah
   di-position absolute di atas pembungkus (yang tidak ikut scroll), jadi
   tidak menggeser layout, tidak menutup chip, dan tidak terseret
   scroll-snap. js/animate.js memberi .swipe-can-left / .swipe-can-right
   mengikuti posisi scroll aktual, jadi di ujung kiri hanya panah kanan
   yang tampak dan di ujung kanan hanya panah kiri. */
.quick-links-wrap {
  position: relative;
}
.quick-links-wrap.swipeable::before,
.quick-links-wrap.swipeable::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.55);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.quick-links-wrap.swipeable::before {
  content: "\2039";
  left: 16px;
}
.quick-links-wrap.swipeable::after {
  content: "\203A";
  right: 16px;
}
.quick-links-wrap.swipeable.swipe-can-left::before {
  opacity: 1;
  animation: qlSwipeHintL 1.5s ease-in-out infinite;
}
.quick-links-wrap.swipeable.swipe-can-right::after {
  opacity: 1;
  animation: qlSwipeHintR 1.5s ease-in-out infinite;
}
@keyframes qlSwipeHintL {
  0%, 100% { transform: translateY(-50%); opacity: 0.75; }
  50% { transform: translateY(-50%) translateX(-3px); opacity: 1; }
}
@keyframes qlSwipeHintR {
  0%, 100% { transform: translateY(-50%); opacity: 0.75; }
  50% { transform: translateY(-50%) translateX(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-links-wrap.swipeable.swipe-can-left::before,
  .quick-links-wrap.swipeable.swipe-can-right::after {
    animation: none;
  }
}
.quick-link {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 6px 13px;
}
/* "Beranda" di logo — tidak perlu jadi chip di layar sempit */
.quick-link[href="#bannerSlider"],
.quick-link[href="../index.html"] {
  display: none;
}

/* ===== Banner (mobile) ===== */
.banner-slider {
  height: 230px;
}
.banner-text h2 {
  font-size: 1.4rem;
}
.banner-text p {
  font-size: 1rem;
}
.banner-arrow {
  font-size: 1.3rem;
  padding: 8px 10px;
}