/* Brand Pilihan. Angka dari kanvas "Bedah Desain Beautyhaul", Bedah 5. */

.elementor-widget-habits_brand_showcase { width: 100%; }   /* CLAUDE.md §5.12 */

.hbt-bs {
  --hbt-bs-gap: 24px;
  --hbt-bs-banner-h: 132px;
  --hbt-bs-logo: 108px;
  --hbt-bs-logo-line: 4px;
  font-family: var(--hbt-font);
  color: var(--hbt-ink);
}

.hbt-bs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
/* Kelas ganda: h2 kit Elementor (.elementor-kit-6 h2, 0,1,1) menimpa kelas tunggal. */
.hbt-bs__title.hbt-bs__title { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--hbt-ink); }

/* Kelas ganda: <a>, Theme Style → Link (0,1,1). */
.hbt-bs__more.hbt-bs__more { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 15px; font-weight: 500; color: var(--hbt-accent); text-decoration: none; }
.hbt-bs__more.hbt-bs__more:hover { color: var(--hbt-ink); }
.hbt-bs__more svg { width: 18px; height: 18px; fill: none; }

.hbt-bs__wrap { position: relative; }

/*
 * Jalur geser: scroll-snap tanpa pustaka, tetap bisa digeser walau JS gagal.
 * Padding atas/bawah memberi ruang bayangan kartu yang kalau tidak terpotong
 * overflow. Hanya margin atas yang dikembalikan: margin bawah negatif membuat
 * isi meluber 16px dari widget dan menimpa section berikutnya (§5.12).
 */
.hbt-bs__track {
  display: flex; gap: var(--hbt-bs-gap);
  margin: -4px 0 0; padding: 4px 0 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.hbt-bs__track::-webkit-scrollbar { display: none; }

.hbt-bs__card.hbt-bs__card {
  flex: 0 0 calc((100% - (var(--hbt-bs-per, 3) - 1) * var(--hbt-bs-gap)) / var(--hbt-bs-per, 3));
  min-width: 0;
  display: block;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  color: var(--hbt-ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(23, 23, 23, .06), 0 4px 16px rgba(23, 23, 23, .06);
  transition: box-shadow .2s;
}
.hbt-bs__card.hbt-bs__card:hover { color: var(--hbt-ink); box-shadow: 0 2px 4px rgba(23, 23, 23, .08), 0 8px 24px rgba(23, 23, 23, .1); }

/* Brand tanpa banner: kepala kartu polos, bukan gambar rusak. */
.hbt-bs__banner { display: block; height: var(--hbt-bs-banner-h); background: var(--hbt-surface); overflow: hidden; }
.hbt-bs__img.hbt-bs__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }

.hbt-bs__foot { position: relative; display: flex; align-items: center; min-height: calc(var(--hbt-bs-logo) * .78); padding: 0 16px 0 calc(var(--hbt-bs-logo) + 44px); box-sizing: border-box; }

/* Logo bulat menumpang separuh ke banner. Latar putih untuk logo berlatar transparan. */
.hbt-bs__logo {
  position: absolute; left: 24px; top: calc(var(--hbt-bs-logo) * -.52);
  width: var(--hbt-bs-logo); height: var(--hbt-bs-logo);
  box-sizing: border-box;
  border: var(--hbt-bs-logo-line) solid #fff; border-radius: 50%;
  background: #fff; overflow: hidden;
  box-shadow: 0 4px 14px rgba(23, 23, 23, .12);
}
.hbt-bs__logo-img.hbt-bs__logo-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; border-radius: 0; }

.hbt-bs__name { min-width: 0; font-size: 20px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Kelas ganda: reset tema mewarnai button:hover. */
.hbt-bs__nav.hbt-bs__nav {
  position: absolute; top: calc(var(--hbt-bs-banner-h) / 2 - 22px + 4px); z-index: 2;
  width: 44px; height: 44px; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hbt-border); border-radius: 50%;
  background: #fff; color: var(--hbt-ink);
  box-shadow: 0 2px 8px rgba(23, 23, 23, .1);
  cursor: pointer;
}
.hbt-bs__nav.hbt-bs__nav:hover, .hbt-bs__nav.hbt-bs__nav:focus { background: #fff; color: var(--hbt-accent); }
.hbt-bs__nav.hbt-bs__nav[hidden] { display: none; }
.hbt-bs__nav--prev { left: -22px; }
.hbt-bs__nav--next { right: -22px; }
.hbt-bs__nav svg { width: 20px; height: 20px; fill: none; }

@media (max-width: 1024px) {
  .hbt-bs { --hbt-bs-gap: 16px; }
  .hbt-bs__nav.hbt-bs__nav { display: none; }
}

@media (max-width: 767px) {
  .hbt-bs { --hbt-bs-gap: 12px; --hbt-bs-banner-h: 100px; --hbt-bs-logo: 80px; --hbt-bs-logo-line: 3px; }
  .hbt-bs__head { margin-bottom: 16px; }
  .hbt-bs__title.hbt-bs__title { font-size: 18px; }
  .hbt-bs__more.hbt-bs__more { font-size: 14px; }
  .hbt-bs__logo { left: 16px; }
  .hbt-bs__foot { padding-left: calc(var(--hbt-bs-logo) + 28px); }
  .hbt-bs__name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hbt-bs__track { scroll-behavior: auto; }
}
