/* ============================================================
   soodu.id — beranda versi HP/tablet (< 993 px)
   Tujuan: produk sudah terlihat di layar pertama.
   ============================================================ */

/* ---------- pintasan menu 4×2 ---------- */
.hp-shortcuts {
   display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 6px 4px; margin: 14px 0 6px; padding: 12px 6px 8px;
   background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.hp-shortcuts a {
   display: flex; flex-direction: column; align-items: center; gap: 5px;
   padding: 4px 2px; border-radius: 10px; color: #374151; text-align: center;
   touch-action: manipulation; -webkit-tap-highlight-color: rgba(39, 180, 65, .12);
}
.hp-shortcuts a:active { background: #f3f8f4; }
.hp-sc-icon {
   display: flex; align-items: center; justify-content: center;
   width: 44px; height: 44px; border-radius: 14px;
}
.hp-sc-icon i { font-size: 24px; }
.hp-sc-label { font-size: .74rem; line-height: 1.15; font-weight: 600; min-height: 2.3em; display: flex; align-items: flex-start; justify-content: center; }

/* ---------- kategori: strip geser 2 baris ---------- */
.hp-cat-strip {
   display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
   grid-auto-columns: 76px; gap: 8px 6px;
   overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
   -webkit-overflow-scrolling: touch; scrollbar-width: none;
   padding: 10px 8px; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.hp-cat-strip::-webkit-scrollbar { display: none; }
.hp-cat-strip a {
   display: flex; flex-direction: column; align-items: center; gap: 4px;
   scroll-snap-align: start; color: #374151; text-align: center; touch-action: manipulation;
}
.hp-cat-strip img { width: 44px; height: 44px; object-fit: contain; }
.hp-cat-strip span {
   font-size: .72rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- filter: tombol kecil ---------- */
.hp-filter-chips {
   display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
   margin: 12px 0 0; padding: 0 0.75rem 2px;
}
.hp-filter-chips::-webkit-scrollbar { display: none; }
.hp-filter-chips a {
   flex: none; display: inline-flex; align-items: center; gap: 4px;
   height: 34px; padding: 0 12px; border-radius: 17px;
   border: 1px solid #27b441; background: #fff; color: #1d8f33; font-size: .85rem; font-weight: 600;
   touch-action: manipulation;
}
.hp-filter-chips a i { font-size: 17px; }
.hp-filter-chips a:active { background: #f1faf3; }

/* ---------- slider info & update (gambar <picture> WebP + JPG) ---------- */
.carousel.promo .carousel-item picture,
.carousel.mobile-promo .carousel-item picture { display: block; width: 100%; height: 100%; }
.carousel.promo .carousel-item img,
.carousel.mobile-promo .carousel-item img { -webkit-user-drag: none; user-select: none; }

@media only screen and (max-width: 992px) {
   /* banner lebih ringkas, jarak antarbagian dipadatkan */
   .container > .row.mt-1:first-child { margin-top: 6px !important; margin-bottom: 0; }
   .hp-shortcuts { margin-left: .75rem; margin-right: .75rem; }
   h5.title.hp-title { margin-top: 14px; margin-bottom: 8px; }
   .products.mt-1 { margin-top: 6px !important; }
   .products h5.title { margin-top: 14px; }

   /* slider HP: gambar khusus HP rasio 2,25 : 1 (1080 x 480), tidak lagi ditarik/gepeng */
   .carousel.mobile-promo { height: 140px; margin-bottom: 0; }
   .carousel.mobile-promo .carousel-item { width: 315px; height: 140px; }
   .carousel.mobile-promo .carousel-item img { object-fit: cover; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
   .carousel.mobile-promo .indicators { bottom: -6px; }
}

@media only screen and (min-width: 993px) {
   .hp-shortcuts, .hp-cat-strip, .hp-filter-chips { display: none !important; }
}
