/* =========================================================
   HOLAHOOB.ID / HOLASTORE
   CSS UTAMA - VERSI MODERN & RAPI (PREMIUM)
   ========================================================= */

/* IMPORT FONT RAJDHANI */
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
}

body,
button,
input,
select,
textarea {
  font-family: "Rajdhani", sans-serif !important;
}

body {
  background: #fffafb;
  color: #3d314a;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
}

/* =========================================================
   TOPBAR HEADER
   ========================================================= */
.topbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242, 228, 236, 0.7);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #322365;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  font-size: 20px;
}

/* =========================================================
   CARD & PANEL UMUM
   ========================================================= */
.login-card,
.panel {
  background: #fff;
  border: 1px solid rgba(236, 219, 229, 0.6);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(80, 55, 85, 0.03);
  margin-bottom: 24px;
}

.login-card {
  max-width: 440px;
  margin: 60px auto;
}

.login-card h1,
.panel h2,
#loginView h1 {
  color: #322365;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.login-card p,
.panel p {
  color: #72637d;
  font-size: 13px;
  margin-bottom: 20px;
}

/* =========================================================
   FORM STYLING
   ========================================================= */
label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 900;
  color: #322365;
  gap: 6px;
  margin-bottom: 16px;
}

input,
select,
textarea {
  padding: 12px 14px;
  border: 1.5px solid #ecdbe5;
  border-radius: 12px;
  font-size: 14px;
  color: #3d314a;
  outline: none;
  background: #fff;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7b4ea3;
  box-shadow: 0 0 0 4px rgba(123, 78, 163, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .full {
  grid-column: span 2;
}

.form-grid.compact {
  max-width: 600px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
button.primary,
button#loginBtn {
  background: #322365;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}

button.primary:hover,
button#loginBtn:hover {
  background: #443180;
  transform: translateY(-1px);
}

button.danger {
  background: #fff1f5;
  color: #e03163;
  border: 1.5px solid #f6b6ca;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

button.danger:hover {
  background: #ffe4ee;
}

/* =========================================================
   HERO ADMIN & STATS
   ========================================================= */
.hero.admin-hero {
  background: linear-gradient(135deg, #3c1c78 0%, #542894 100%);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.hero.admin-hero h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 6px;
}

.hero.admin-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.hero-icons {
  font-size: 20px;
  letter-spacing: 6px;
  color: #ffe65c;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stats > div {
  background: #fff;
  border: 1.5px solid #ecdbe5;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(80, 55, 85, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stats span {
  font-size: 12px;
  font-weight: 900;
  color: #72637d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats strong {
  font-size: 24px;
  font-weight: 800;
  color: #322365;
}

/* =========================================================
   TABS NAVIGATION
   ========================================================= */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tabs button {
  background: #fff;
  border: 1.5px solid #ecdbe5;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 900;
  color: #5c4d66;
  cursor: pointer;
  transition: all 0.2s;
}

.tabs button:hover,
.tabs button.active {
  background: #322365;
  color: #fff;
  border-color: #322365;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-head button {
  background: #f8f4f9;
  border: 1.5px solid #ecdbe5;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  color: #322365;
}

/* =========================================================
   TABLE
   ========================================================= */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #f2e4ec;
}

th {
  font-weight: 800;
  color: #322365;
  background: #fcf9fc;
}

td {
  color: #3d314a;
}

/* =========================================================
   UTILITY
   ========================================================= */
.hidden {
  display: none !important;
}

.small {
  font-size: 12px;
  color: #72637d;
  margin-top: 8px;
}

/* =========================================================
   SCROLL KATEGORI
   ========================================================= */
.category-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.category-nav-bottom {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 16px 4px 8px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.category-nav-bottom:active {
  cursor: grabbing;
}

.category-nav-bottom::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.category-nav-bottom::-webkit-scrollbar-thumb {
  display: none !important;
}

.scroll-arrow-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1.5px solid #ecdbe5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #322365;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  z-index: 5;
  pointer-events: none;
}

.scroll-arrow-left {
  left: -10px;
}

.scroll-arrow-right {
  right: -10px;
}

/* =========================================================
   KARTU PRODUK & KATALOG
   ========================================================= */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  padding: 16px 0;
}

.hh-product-card {
  background: #ffffff;
  border: 1px solid rgba(236, 219, 229, 0.5);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(80, 55, 85, 0.02);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.2s ease;
  position: relative;
}

.hh-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(50, 35, 101, 0.08);
  border-color: #322365;
}

/* =========================================================
   GAMBAR PRODUK UTAMA (TANPA TERCROP)
   ========================================================= */
.hh-product-image {
  width: 100%;
  height: 220px;
  background: #fdf2f6;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
}

/* Menggunakan contain agar seluruh gambar muat dalam kotak tanpa ada bagian yang terpotong */
.hh-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.hh-product-card:hover .hh-product-image img {
  transform: scale(1.03);
}

.hh-photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(61, 49, 74, 0.78);
  color: #fff;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  height: auto; /* Memastikan tinggi tidak memanjang */
  line-height: 1; /* Mencegah spasi teks membengkak */
  display: inline-block; /* Mencegah pelebaran flexbox */
  z-index: 2;
}

/* =========================================================
   4 FOTO KECIL DI BAWAH FOTO UTAMA (KATALOG DEPAN)
   ========================================================= */
.hh-card-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 12px 0 12px;
  background: #ffffff;
}

.hh-card-thumb {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1.5px solid #ecdbe5;
  overflow: hidden;
  background: #fcf8fa;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hh-card-thumb.active,
.hh-card-thumb:hover {
  border-color: #322365;
}

.hh-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
}

/* =========================================================
   ISI KARTU PRODUK
   ========================================================= */
.hh-product-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hh-category {
  font-size: 10px;
  font-weight: 600;
  color: #a08fae;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.hh-product-name {
  font-size: 14px;
  font-weight: 500;
  color: #3d314a;
  margin-bottom: 12px;
  line-height: 1.25;
  height: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-price-box {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  text-align: left;
  gap: 6px;
  flex-wrap: wrap;
}

.hh-price {
  font-size: 11px;
  font-weight: 900;
  color: #e03163;
  display: block;
  width: 100%;
  text-align: left;
}

.hh-normal-price {
  font-size: 12px;
  color: #a08fae;
  text-decoration: line-through;
  display: block;
  width: 100%;
  text-align: left;
}

.hh-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #72637d;
  margin-bottom: 14px;
  border-top: 1px dashed rgba(236, 219, 229, 0.8);
  padding-top: 10px;
}

.hh-detail-btn {
  width: 100%;
  background: #f8f5fc;
  color: #322365;
  border: 1px solid #ecdbe5;
  padding: 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hh-product-card:hover .hh-detail-btn {
  background: #322365;
  color: #ffffff;
  border-color: #322365;
}

/* =========================================================
   MODAL DETAIL & CHECKOUT (POPUP)
   ========================================================= */
.hh-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 35, 101, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hh-modal.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 999999 !important;
}

#dynamicModalContainer,
#modalKeranjangMain,
#checkoutModalMain,
#productDetailModal,
#orderSuccessModal {
  z-index: 999999 !important;
}

.hh-modal-box {
  background: #fff;
  border-radius: 24px;
  width: 92%;
  max-width: 850px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(50, 35, 101, 0.15);
  border: 1px solid rgba(236, 219, 229, 0.5);
}

.hh-close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f8f5fc;
  border: 1px solid #ecdbe5;
  color: #322365;
  font-size: 18px;
  font-weight: 800;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s ease;
}

.hh-close-modal:hover {
  background: #e03163;
  color: #fff;
  border-color: #e03163;
}

/* =========================================================
   DETAIL LAYOUT & GALERI POPUP (DESKTOP)
   ========================================================= */
.hh-detail-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 7, 34, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  z-index: 999999 !important;
}

.hh-detail-modal-box {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 26px 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(32, 14, 60, 0.25);
  border: 1px solid rgba(236, 219, 229, 0.8);
  box-sizing: border-box;
  animation: adminModalPop 0.25s ease-out;
}

.hh-detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  align-items: start;
}

.hh-detail-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.hh-gallery-main {
  width: 100%;
  max-width: 270px;
  height: 270px;
  background: #fbf8fc;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #ecdbe5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.hh-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}

.hh-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid #ecdbe5;
  color: #322365;
  font-size: 15px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  z-index: 5;
}

.hh-gallery-prev {
  left: 8px;
}
.hh-gallery-next {
  right: 8px;
}

.hh-gallery-arrow:hover {
  background: #322365;
  color: #fff;
  border-color: #322365;
}

.hh-gallery-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.hh-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 270px;
  width: 100%;
  padding-bottom: 4px;
  justify-content: center;
}

.hh-thumbnails:empty,
.hh-thumbnails:not(:has(.hh-thumb:nth-child(2))) {
  display: none !important;
}

.hh-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid #ecdbe5;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.hh-thumb.active {
  border-color: #322365;
  transform: scale(0.96);
}

.hh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
}

/* =========================================================
   DETAIL INFORMASI PRODUK
   ========================================================= */
.hh-detail-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.hh-detail-category {
  font-size: 11px;
  font-weight: 900;
  color: #72637d;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hh-detail-name {
  font-size: 19px;
  font-weight: 800;
  color: #322365;
  line-height: 1.3;
  margin: 0;
  word-break: break-word;
}

.hh-price-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.hh-detail-price {
  font-size: 20px;
  font-weight: 800;
  color: #e03163;
}

.hh-detail-old-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.hh-discount-badge {
  background: #ffe6ed;
  color: #e03163;
  border: 1px solid #fecdd3;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
}

.hh-stock-box {
  background: #f8f5fc;
  border: 1px solid #ebdfee;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #542894;
  width: fit-content;
  display: flex;
  align-items: center;
}

.hh-desc-container {
  margin-top: 4px;
  border-top: 1px solid rgba(236, 219, 229, 0.6);
  padding-top: 8px;
}

.hh-desc-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #322365;
  margin-bottom: 3px;
}

.hh-detail-description {
  font-size: 11.5px;
  color: #665c78;
  line-height: 1.5;
  max-height: 85px;
  overflow-y: auto;
  padding-right: 4px;
}

.hh-qty-wrapper {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hh-qty-wrapper label {
  font-size: 11.5px;
  font-weight: 900;
  color: #322365;
}

.hh-qty-input {
  width: 75px;
  padding: 7px 10px;
  border: 1.5px solid #ecdbe5;
  border-radius: 8px;
  font-weight: 900;
  outline: none;
  font-size: 12px;
  background: #ffffff;
}

.hh-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.hh-add-cart-btn {
  background: #f0edf6;
  color: #322365;
  border: 1.5px solid #322365;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.hh-add-cart-btn:hover {
  background: #e3dceb;
}

.hh-buy-btn {
  background: linear-gradient(135deg, #322365, #542894);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(50, 35, 101, 0.2);
  transition: all 0.2s ease;
}

.hh-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(50, 35, 101, 0.3);
}

/* =========================================================
   RESPONSIVE DETAIL MODAL (HP & TABLET)
   ========================================================= */
@media (max-width: 768px) {
  .hh-detail-modal-overlay {
    padding: 12px 10px;
    align-items: center;
  }

  .hh-detail-modal-box {
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .hh-close-modal {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 17px;
    background: #f0edf6;
  }

  .hh-detail-layout {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hh-detail-gallery-col {
    gap: 8px;
  }

  .hh-gallery-main {
    max-width: 210px;
    height: 190px;
    border-radius: 14px;
  }

  .hh-thumbnails {
    max-width: 210px;
    gap: 6px;
  }

  .hh-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .hh-detail-name {
    font-size: 11px;
  }

  .hh-detail-price {
    font-size: 18px;
  }

  .hh-detail-old-price {
    font-size: 12px;
  }

  .hh-stock-box {
    font-size: 11px;
    padding: 4px 8px;
  }

  .hh-desc-container {
    margin-top: 3px;
    padding-top: 6px;
  }

  .hh-detail-description {
    font-size: 11px;
    max-height: 70px;
  }

  .hh-action-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .hh-add-cart-btn,
  .hh-buy-btn {
    padding: 9px 8px;
    font-size: 11px;
    border-radius: 9px;
  }
}

@media (max-width: 380px) {
  .hh-detail-modal-box {
    padding: 16px 10px 14px;
  }

  .hh-gallery-main {
    max-width: 180px;
    height: 160px;
  }

  .hh-action-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* =========================================================
   POPUP KERANJANG TOAST
   ========================================================= */
.hh-cart-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid rgba(236, 219, 229, 0.8);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 15px 45px rgba(50, 35, 101, 0.12);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateX(40px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hh-cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hh-cart-toast-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: #e9fff2;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}

.hh-cart-toast-content {
  flex: 1;
  min-width: 0;
}

.hh-cart-toast-title {
  color: #322365;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 4px;
}

.hh-cart-toast-product {
  color: #72637d;
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-cart-toast-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: #322365;
  color: #ffffff !important;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.hh-cart-toast-button:hover {
  background: #443180;
}

.hh-cart-toast-close {
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #9b8da3;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hh-cart-toast-close:hover {
  background: #f8f5fc;
  color: #322365;
}
/* =========================================================
   CHECKOUT PAYMENT METHODS — COMPACT & RESPONSIVE
   Visual-only styles. Does not change checkout structure/function.
   ========================================================= */
#dynamicModalContainer .payment-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0 9px;
  color: #322365;
}

#dynamicModalContainer .payment-section-title span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

#dynamicModalContainer .payment-section-title small {
  color: #8b7d99;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

#dynamicModalContainer .payment-method-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0 0 14px;
}

#dynamicModalContainer .payment-method-card {
  position: relative;
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ead5f5;
  border-radius: 13px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

#dynamicModalContainer .payment-method-card:hover {
  transform: translateY(-1px);
  border-color: #d9b5ef;
  box-shadow: 0 6px 16px rgba(155, 98, 209, 0.12);
}

#dynamicModalContainer .payment-method-card:has(input:checked) {
  border-color: #9b62d1;
  background: #fdf7ff;
  box-shadow:
    0 6px 16px rgba(50, 35, 101, 0.08),
    inset 0 0 0 1px rgba(116, 82, 173, 0.08);
}

#dynamicModalContainer .payment-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#dynamicModalContainer .payment-method-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1.5px solid #c9bfd3;
  border-radius: 50%;
  background: #fff;
}

#dynamicModalContainer
  .payment-method-card:has(input:checked)
  .payment-method-check {
  border-color: #9b62d1;
  background: #9b62d1;
  box-shadow: inset 0 0 0 3px #fff;
}

#dynamicModalContainer .payment-method-logo {
  width: 74px;
  height: 48px;
  min-width: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  color: #322365;
  font-size: 10px;
  font-weight: 800;
}

#dynamicModalContainer .payment-method-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

#dynamicModalContainer .payment-method-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 18px;
}

#dynamicModalContainer .payment-method-info strong {
  display: block;
  color: #322365;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dynamicModalContainer .payment-method-info small {
  display: block;
  color: #81738e;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.35;
}

#dynamicModalContainer .payment-method-arrow {
  display: none;
}

@media (max-width: 700px) {
  #dynamicModalContainer .payment-method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #dynamicModalContainer .payment-method-card {
    min-height: 46px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  #dynamicModalContainer .payment-method-logo {
    width: 62px;
    min-width: 62px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  #dynamicModalContainer .payment-method-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #dynamicModalContainer .payment-method-card {
    min-height: 72px;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
  }

  #dynamicModalContainer .payment-method-logo {
    width: 70px;
    min-width: 70px;
    height: 42px;
  }
}

/* =========================================================
   POPUP PESANAN BERHASIL
   ========================================================= */
.hh-success-modal {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(28, 18, 45, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: auto !important;
}

.hh-success-box {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid rgba(236, 219, 229, 0.95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(50, 35, 101, 0.22);
  color: #322365;
  animation: hhSuccessIn 0.22s ease-out;
  pointer-events: auto !important;
}

@keyframes hhSuccessIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hh-success-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f1fa;
  color: #6d5b7e;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.hh-success-close:hover {
  background: #ece4f4;
  color: #322365;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9fff2;
}

.success-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #20a95b;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}

.success-badge {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f2ebfb;
  color: #65419a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.hh-success-box h2 {
  margin: 0;
  text-align: center;
  color: #322365;
  font-size: 22px;
  line-height: 1.25;
}

.success-subtitle {
  margin: 9px 0 18px;
  color: #72637d;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.order-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #eadfea;
  border-radius: 14px;
  background: #faf8fd;
}

.order-code-card > div {
  min-width: 0;
}

.order-code-label {
  display: block;
  margin-bottom: 4px;
  color: #8b7d99;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.order-code-card strong {
  display: block;
  color: #322365;
  font-size: 14px;
  letter-spacing: 0.3px;
  word-break: break-all;
}

#copyOrderIdBtn {
  flex: 0 0 auto;
  border: 1px solid #d9c9e7;
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  color: #542894;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

#copyOrderIdBtn:hover,
#copyOrderIdBtn.copied {
  background: #f1eafb;
}

.success-info-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #eadfea;
  border-radius: 14px;
  background: #fff9fc;
}

.success-info-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #f2ebfb;
  font-size: 11px;
}

.success-info-card strong,
.success-info-card span {
  display: block;
}

.success-info-card strong {
  margin-bottom: 3px;
  color: #322365;
  font-size: 11px;
}

.success-info-card span {
  color: #72637d;
  font-size: 10px;
  line-height: 1.5;
}

.success-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.success-whatsapp-btn {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #322365, #542894);
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(50, 35, 101, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.success-whatsapp-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(50, 35, 101, 0.24);
}

.wa-btn-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
}

.success-whatsapp-btn strong,
.success-whatsapp-btn small {
  display: block;
  text-align: left;
}

.success-whatsapp-btn strong {
  font-size: 12px;
  line-height: 1.3;
}

.success-whatsapp-btn small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 500;
}

.success-later-btn {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7b6b87;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.success-later-btn:hover {
  background: #f8f5fc;
  color: #322365;
}

@media (max-width: 480px) {

/* Digital category grids: Voucher Game, Voucher, and Pembayaran Online share the same card layout. */
.hh-game-grid .hh-game-card {
  box-sizing: border-box;
}
}

/* =========================================================
   INPUT & FORM TEXT READABILITY FIX (ALL DEVICES & DARK MODE)
   ========================================================= */
:root {
  color-scheme: light !important;
}

input,
select,
textarea,
input:focus,
select:focus,
textarea:focus {
  color: #2d1847 !important;
  -webkit-text-fill-color: #2d1847 !important;
  background-color: #ffffff !important;
  caret-color: #7b4ea3 !important;
}

input::placeholder,
textarea::placeholder {
  color: #8d7d9f !important;
  -webkit-text-fill-color: #8d7d9f !important;
  opacity: 1 !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: #2d1847 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.search-wrap input {
  color: #2d1847 !important;
  -webkit-text-fill-color: #2d1847 !important;
  background: transparent !important;
}

/* =========================================================
   PRODUK TERLARIS & PROMO SHOWCASE (HOME LAYOUT)
   ========================================================= */
.best-seller-section {
  margin: 18px 0 28px;
  width: 100%;
}

.best-seller-container {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Kiri: Banner Promo Spesial */
.best-seller-promo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(50, 35, 101, 0.16);
  background: linear-gradient(135deg, #2b1154, #441a7d);
  display: flex;
  height: 100%;
  min-height: 380px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.best-seller-promo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(50, 35, 101, 0.22);
}

.best-seller-promo-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.promo-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 24px;
}

/* Kanan: Slider Produk Terlaris */
.best-seller-slider-card {
  background: #ffffff;
  border: 1.5px solid #ecdbe5;
  border-radius: 24px;
  padding: 22px 24px 20px;
  box-shadow: 0 10px 32px rgba(123, 78, 163, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

.best-seller-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.best-seller-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.best-seller-fire-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff1f3, #ffe4e6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.15);
}

.best-seller-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #322365;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.best-seller-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: #72637d;
  font-weight: 500;
}

.best-seller-view-all {
  color: #553764;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #f8f4fb;
  border: 1px solid #ecdbe5;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.best-seller-view-all:hover {
  background: #322365;
  color: #ffffff;
  border-color: #322365;
}

/* Slider Track & Wrapper */
.best-seller-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}

.best-seller-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: stretch;
}

.best-seller-track::-webkit-scrollbar {
  display: none;
}

.best-seller-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #ecdbe5;
  color: #322365;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(50, 35, 101, 0.15);
  z-index: 5;
  transition: all 0.2s ease;
}

.best-seller-arrow:hover {
  background: #322365;
  color: #ffffff;
  border-color: #322365;
  box-shadow: 0 6px 18px rgba(50, 35, 101, 0.25);
}

.best-seller-arrow.left {
  left: -16px;
}

.best-seller-arrow.right {
  right: -16px;
}

/* Kartu Produk Terlaris - Ukuran Statis */
.best-seller-card {
  flex: 0 0 215px !important;
  width: 215px !important;
  min-width: 215px !important;
  max-width: 215px !important;
  height: 320px !important;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1.5px solid #f1dce7;
  border-radius: 18px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(123, 78, 163, 0.04);
}

.best-seller-card:hover {
  transform: translateY(-4px);
  border-color: #7b4ea3;
  box-shadow: 0 12px 28px rgba(123, 78, 163, 0.14);
}

.bs-badge-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.bs-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 20px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.bs-badge-bestseller,
.bs-badge-best-seller {
  background: #ffedd5;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.bs-badge-terlaris {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.bs-badge-promo {
  background: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}

.bs-badge-hot {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

/* Container Gambar Statis */
.bs-img-wrap {
  width: 100% !important;
  height: 130px !important;
  min-height: 130px !important;
  max-height: 130px !important;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf8fb 0%, #f4eef9 100%);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

.bs-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.best-seller-card:hover .bs-img-wrap img {
  transform: scale(1.06);
}

.bs-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.bs-name {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #322365;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 34px;
}

.bs-sub {
  margin: 3px 0 6px;
  font-size: 10.5px;
  color: #72637d;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 16px;
}

.bs-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #e03163;
  margin-top: auto;
  margin-bottom: 8px;
  line-height: 1.2;
}

.bs-buy-btn {
  width: 100%;
  height: 34px;
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(91, 33, 182, 0.22);
}

.bs-buy-btn:hover {
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(91, 33, 182, 0.32);
}

.bs-buy-btn:active {
  transform: scale(0.97);
}

/* Responsive Best Seller Section */
@media (max-width: 960px) {
  .best-seller-container {
    grid-template-columns: 1fr;
  }
  .best-seller-promo-card {
    min-height: 220px;
    height: 220px;
  }
  .promo-banner-img {
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .best-seller-section {
    margin: 10px 0 16px;
  }
  .best-seller-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .best-seller-promo-card {
    border-radius: 14px;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
  }
  .promo-banner-img {
    object-fit: cover;
    border-radius: 14px;
  }
  .best-seller-slider-card {
    padding: 14px 12px 12px;
    border-radius: 16px;
  }
  .best-seller-header {
    margin-bottom: 10px;
  }
  .best-seller-title {
    font-size: 11px;
  }
  .best-seller-sub {
    font-size: 11px;
  }
  .best-seller-view-all {
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 10px;
  }
  /* 2-COLUMN CATALOG ON MOBILE - UKURAN STATIS */
  .best-seller-carousel-wrapper {
    width: 100%;
  }
  .best-seller-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow-x: visible !important;
    padding: 4px 0 8px !important;
    width: 100% !important;
  }
  .best-seller-card {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 270px !important;
    box-sizing: border-box !important;
    padding: 10px 8px 10px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .bs-img-wrap {
    width: 100% !important;
    height: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    margin-bottom: 7px !important;
    padding: 0 !important;
    border-radius: 10px !important;
  }
  .bs-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 10px !important;
  }
  .bs-name {
    font-size: 12px;
    margin-bottom: 2px;
    height: 32px;
  }
  .bs-sub {
    font-size: 10px;
    margin-bottom: 4px;
    height: 14px;
  }
  .bs-price {
    font-size: 12.5px;
    margin-bottom: 8px;
    margin-top: auto;
  }
  .bs-buy-btn {
    padding: 0 8px;
    font-size: 10.5px;
    border-radius: 9px;
    height: 32px;
  }
  .best-seller-arrow {
    display: none !important;
  }
}

/* =========================================================
   OPTIMASI MODAL KERANJANG DI MOBILE (BOTTOM SHEET & DRAWER)
   ========================================================= */
@keyframes slideUpCartMobile {
  from {
    transform: translateY(100%);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hh-cart-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 8, 28, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  box-sizing: border-box;
}

.hh-cart-modal-container {
  max-width: 480px;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 20px 20px;
  position: relative;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(50, 35, 101, 0.3);
  box-sizing: border-box;
  animation: adminModalPop 0.25s ease-out;
}

.hh-cart-drag-handle {
  display: none;
}

.hh-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #faf7fd;
  border: 1.5px solid #ecdbe5;
  padding: 12px 14px;
  border-radius: 16px;
  margin-bottom: 10px;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.hh-cart-item-row:hover {
  border-color: #cbb8dc;
}

.hh-cart-stepper-btn {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border: 1.5px solid #322365;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  color: #322365 !important;
  -webkit-text-fill-color: #322365 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.hh-cart-stepper-btn:active {
  background: #322365;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: scale(0.92);
}

.hh-cart-trash-btn {
  background: #fff0f3;
  border: 1px solid #fecdd3;
  color: #e11d48;
  cursor: pointer;
  font-size: 13px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.hh-cart-trash-btn:hover {
  background: #e11d48;
  color: #ffffff;
}

.hh-cart-trash-btn:active {
  transform: scale(0.92);
}

/* Khusus Tampilan Layar HP (Mobile-First Bottom Sheet) */
@media (max-width: 640px) {
  .hh-cart-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .hh-cart-modal-container {
    max-width: 100%;
    width: 100%;
    border-radius: 26px 26px 0 0;
    padding: 12px 18px 22px;
    max-height: 85vh;
    animation: slideUpCartMobile 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hh-cart-drag-handle {
    display: block;
    width: 44px;
    height: 5px;
    background: #d8cbd4;
    border-radius: 3px;
    margin: 4px auto 14px;
  }

  .hh-cart-item-row {
    padding: 10px 12px;
    border-radius: 14px;
  }
}


/* =========================================================
   KATEGORI E-MONEY — tambahan aman, tidak mengubah layout lain
   ========================================================= */
.category-nav-bottom .hh-emoney-category {
  background: linear-gradient(135deg, #f4fbff 0%, #f8f5ff 100%);
  border-color: #d8e8f5;
}
.category-nav-bottom .hh-emoney-category b {
  color: #4b5cc4;
}
.category-nav-bottom .hh-emoney-category:hover,
.category-nav-bottom .hh-emoney-category.active {
  background: linear-gradient(135deg, #eaf6ff 0%, #f2edff 100%);
  border-color: #b9d5ef;
}



/* Pembayaran Online - kartu kategori rapi dan responsif */
.hh-operator-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.hh-operator-grid .hh-operator-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 118px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 16px;
  text-align: center;
}

.hh-operator-grid .hh-operator-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hh-operator-grid .hh-operator-logo img {
  display: block;
  width: 68%;
  height: 68%;
  object-fit: contain;
  object-position: center;
}

.hh-operator-grid .hh-operator-name {
  width: 100%;
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  text-align: center;
}

.hh-operator-grid .hh-operator-count {
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 480px) {
  .hh-operator-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .hh-operator-grid .hh-operator-card {
    min-height: 100px;
    padding: 10px 8px;
    gap: 0;
  }

  .hh-operator-grid .hh-operator-logo {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .hh-operator-grid .hh-operator-name {
    font-size: 10px;
    line-height: 1.25;
  }

  .hh-operator-grid .hh-operator-count {
    font-size: 8px;
  }
}



/* =========================================================
   SUPERADMIN - TABEL TRANSAKSI
   Khusus transaksi, tidak mengubah tabel lain
   ========================================================= */
#salesTable {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f5;
  border-radius: 12px;
  background: #ffffff;
  box-sizing: border-box;
}

#salesTable table {
  width: 100%;
  min-width: 1050px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  text-align: left;
}

#salesTable th {
  padding: 13px 14px;
  background: #edf2ff;
  color: #344b91;
  border-bottom: 1px solid #d9e2fa;
  font-weight: 900;
  white-space: nowrap;
}

#salesTable td {
  padding: 12px 14px;
  color: #374151;
  border-bottom: 1px solid #edf0f6;
  vertical-align: middle;
}

#salesTable tbody tr:nth-child(even) {
  background: #fafbff;
}

#salesTable tbody tr:hover {
  background: #f0f5ff;
}

#salesTable tbody tr:last-child td {
  border-bottom: none;
}

#salesTable button {
  white-space: nowrap;
}

#tab-sales .sales-submenu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

#tab-sales .sales-submenu button {
  padding: 10px 14px;
  border: 1px solid #dbe3f4;
  border-radius: 9px;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#tab-sales .sales-submenu button.active {
  background: #526fc2;
  border-color: #526fc2;
  color: #ffffff;
}

@media (max-width: 600px) {
  #salesTable {
    border-radius: 9px;
  }

  #salesTable table {
    min-width: 1050px;
  }

  #salesTable th,
  #salesTable td {
    padding: 10px 11px;
    font-size: 12px;
  }

  #tab-sales .sales-submenu button {
    padding: 9px 11px;
    font-size: 12px;
  }
}


/* =========================================================
   HOLOHOOB SUPERADMIN - MODERN DASHBOARD
   Tampilan saja; fungsi dan logika tetap dipertahankan
   ========================================================= */

#adminView.is-superadmin {
  --hh-blue: #536fc3;
  --hh-blue-dark: #354c96;
  --hh-teal: #27b6a5;
  --hh-border: #e5eaf3;
  --hh-muted: #778198;
  color: #26324a;
}

/* Hero dashboard */
#adminView.is-superadmin .admin-hero {
  padding: 26px 28px;
  margin-bottom: 22px;
  border: 1px solid #e3eafa;
  border-radius: 18px;
  background: linear-gradient(120deg, #ffffff 0%, #f1f5ff 100%);
  box-shadow: 0 6px 24px rgba(44, 66, 125, 0.06);
}

#adminView.is-superadmin .admin-hero h1 {
  margin: 0 0 7px;
  color: #304785;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

#adminView.is-superadmin .admin-hero p {
  color: var(--hh-muted);
}

/* Kartu statistik */
#adminView.is-superadmin .stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}

#adminView.is-superadmin .stats > div {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--hh-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgba(37, 54, 95, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#adminView.is-superadmin .stats > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(37, 54, 95, 0.09);
}

#adminView.is-superadmin .stats span {
  display: block;
  margin-bottom: 11px;
  color: var(--hh-muted);
  font-size: 12px;
  font-weight: 600;
}

#adminView.is-superadmin .stats strong {
  display: block;
  overflow-wrap: anywhere;
  color: #344d98;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 750;
}

/* Sidebar dan area konten */
#adminView.is-superadmin .superadmin-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin-top: 0;
}

#adminView.is-superadmin .superadmin-sidebar {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce5fb;
  border-radius: 18px;
  background: linear-gradient(160deg, #647fce 0%, #455fae 100%);
  box-shadow: 0 9px 24px rgba(56, 77, 145, 0.14);
}

#adminView.is-superadmin .superadmin-sidebar .tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

#adminView.is-superadmin .superadmin-sidebar .tabs button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

#adminView.is-superadmin .superadmin-sidebar .tabs button:hover {
  background: rgba(255, 255, 255, 0.14);
}

#adminView.is-superadmin .superadmin-sidebar .tabs button.active {
  border-color: #ffffff;
  background: #ffffff;
  color: #4059a3;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(26, 42, 95, 0.12);
}

#adminView.is-superadmin .superadmin-sidebar .digital-links-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

#adminView.is-superadmin .superadmin-sidebar .digital-admin-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-align: left;
  font-size: 12px;
  box-sizing: border-box;
}

#adminView.is-superadmin .superadmin-sidebar .digital-admin-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

#adminView.is-superadmin .superadmin-content {
  min-width: 0;
}

#adminView.is-superadmin .superadmin-content > .tab-panel {
  margin-top: 0;
  border: 1px solid var(--hh-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(37, 54, 95, 0.04);
}

#adminView.is-superadmin .superadmin-content .panel-head {
  gap: 12px;
  flex-wrap: wrap;
}

#adminView.is-superadmin .superadmin-content .panel-head h2 {
  color: #304785;
}

/* Responsif tablet dan HP */
@media (max-width: 1000px) {
  #adminView.is-superadmin .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminView.is-superadmin .superadmin-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 760px) {
  #adminView.is-superadmin .admin-hero {
    padding: 20px;
  }

  #adminView.is-superadmin .superadmin-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  #adminView.is-superadmin .superadmin-sidebar {
    padding: 11px;
  }

  #adminView.is-superadmin .superadmin-sidebar .tabs button {
    min-height: 41px;
  }

  #adminView.is-superadmin .superadmin-content > .tab-panel {
    padding: 14px;
  }
}

@media (max-width: 420px) {
  #adminView.is-superadmin .stats {
    gap: 10px;
  }

  #adminView.is-superadmin .stats > div {
    padding: 14px;
  }

  #adminView.is-superadmin .stats span {
    font-size: 11px;
  }

  #adminView.is-superadmin .stats strong {
    font-size: 19px;
  }
}


/* SUPERADMIN: panel, tabel, dan tombol modern */
#adminView.is-superadmin .superadmin-content > .tab-panel {
  box-sizing: border-box;
  padding: 26px;
  border: 1px solid #e2e8f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(45, 64, 115, 0.06);
}

#adminView.is-superadmin .superadmin-content .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

#adminView.is-superadmin .superadmin-content .panel-head h2 {
  margin: 0;
  color: #304785;
  font-size: 22px;
  font-weight: 750;
}

#adminView.is-superadmin .superadmin-content .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  background: #fff;
}

#adminView.is-superadmin .superadmin-content .table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

#adminView.is-superadmin .superadmin-content .table-wrap th {
  padding: 14px 15px;
  background: #f0f4ff;
  color: #354c88;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  border-bottom: 1px solid #dfe6f7;
}

#adminView.is-superadmin .superadmin-content .table-wrap td {
  padding: 13px 15px;
  color: #3b465c;
  border-bottom: 1px solid #edf0f6;
  vertical-align: middle;
}

#adminView.is-superadmin .superadmin-content .table-wrap tbody tr:nth-child(even) {
  background: #fafbfe;
}

#adminView.is-superadmin .superadmin-content .table-wrap tbody tr:hover {
  background: #f1f5ff;
}

#adminView.is-superadmin .superadmin-content .table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

/* Tombol dalam panel Superadmin */
#adminView.is-superadmin .superadmin-content .panel-head button,
#adminView.is-superadmin .superadmin-content .table-wrap button {
  box-sizing: border-box;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

#adminView.is-superadmin .superadmin-content .panel-head button {
  border: 1px solid #d9e3fb;
  background: #edf3ff;
  color: #36549e;
}

#adminView.is-superadmin .superadmin-content .panel-head button:hover {
  background: #e0eaff;
}

#adminView.is-superadmin .superadmin-content .table-wrap button {
  margin: 2px;
}

@media (max-width: 760px) {
  #adminView.is-superadmin .superadmin-content > .tab-panel {
    padding: 15px;
    border-radius: 13px;
  }

  #adminView.is-superadmin .superadmin-content .panel-head h2 {
    font-size: 19px;
  }

  #adminView.is-superadmin .superadmin-content .table-wrap table {
    min-width: 760px;
  }

  #adminView.is-superadmin .superadmin-content .table-wrap th,
  #adminView.is-superadmin .superadmin-content .table-wrap td {
    padding: 11px 12px;
  }
}
/* AUTOCOMPLETE PENCARIAN PRODUK HO LAHOOB */
.search-wrap {
  position: relative;
}

#searchSuggestions {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 99999;
  display: none;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.16);
  padding: 7px;
}

#searchSuggestions.show {
  display: block;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: #333;
}

.search-suggestion-item:hover {
  background: #f1f5f9;
}

.search-suggestion-item img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
  border-radius: 7px;
  background: #f8fafc;
}

.search-suggestion-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.search-suggestion-empty {
  padding: 14px;
  color: #777;
  font-size: 13px;
}

@media (max-width: 600px) {
  #searchSuggestions {
    max-height: 300px;
  }
}
/* =========================================================
   HOLOHOOB - PENYESUAIAN TIPOGRAFI ROBOTO
   ========================================================= */

body,
button,
input,
select,
textarea {
  font-family: "Rajdhani", sans-serif !important;
  font-weight: 400;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Teks informasi dan deskripsi */
p,
small,
.description,
.product-description {
  font-weight: 400;
}

/* Nama produk dan kategori */
.product-name,
.product-title,
.category-name {
  font-weight: 500;
}

/* Judul dan tombol */
h1,
h2,
h3,
button,
.btn {
  font-weight: 600;
}
/* INFORMASI GAME PREMIUM */
.hh-game-info-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hh-game-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hh-game-image {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #f8f5fc;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.hh-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hh-game-title-row h2 {
  margin: 0;
  color: #322365;
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
}

.hh-game-trust-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 7px;
}

.hh-game-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 30px;
  background: #f3effb;
  color: #493477;
  font-size: 10px;
  font-weight: 900;
}

.hh-game-description-box {
  padding: 12px;
  border: 1px solid #e8e0f3;
  border-radius: 12px;
  background: linear-gradient(135deg, #faf8ff, #f5f8ff);
}

.hh-game-description-title {
  margin-bottom: 5px;
  color: #322365;
  font-size: 13px;
  font-weight: 800;
}

.hh-game-description-text {
  color: #777087;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* =========================================
   HOLAHOOB CHECKOUT - BLACK GLOSSY NEON RED
   ========================================= */

.hh-checkout-payment {
  margin: 16px 0;
  padding: 16px;
  color: #fff;
  background: linear-gradient(145deg, #191919, #050505);
  border: 1px solid #a91528;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,.4);
  font-family: 'Rajdhani', sans-serif;
}


.hh-checkout-payment-title {
  color: #9b62d1;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hh-payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 9px 0;
  padding: 13px;
  color: #49365d;
  background: linear-gradient(110deg, #ffffff, #fdf7ff);
  border: 1px solid #ead5f5;
  border-radius: 12px;
  cursor: pointer;
  transition: .2s ease;
}

.hh-payment-option:has(input:checked) {
  border-color: #9b62d1;
  background: linear-gradient(110deg, #fceafa, #f0e8ff);
  box-shadow: 0 3px 12px rgba(155, 98, 209, .12);
}

.hh-payment-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #9b62d1;
}

.hh-payment-option-name {
  display: block;
  color: #49365d;
  font-size: 11px;
  font-weight: 900;
}

.hh-payment-option-desc {
  display: block;
  color: #806b91;
  font-size: 12px;
  margin-top: 3px;
}

.hh-bank-details {
  margin: 8px 0 12px 28px;
  padding: 12px;
  background: #fdf7ff;
  border: 1px solid #ead5f5;
  border-left: 3px solid #ec65b5;
  border-radius: 10px;
}

.hh-bank-details-name {
  color: #49365d;
  font-weight: 900;
  font-size: 14px;
}

.hh-bank-details-number {
  margin: 5px 0;
  color: #9b62d1;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1px;
}

.hh-bank-details-owner {
  color: #806b91;
  font-size: 12px;
}

.hh-copy-account {
  margin-top: 9px;
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(110deg, #ec65b5, #9b62d1);
  border: none;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  cursor: pointer;
}

@media(max-width:600px) {
  .hh-checkout-payment {
    padding: 12px;
  }

  .hh-bank-details {
    margin-left: 10px;
  }

  .hh-bank-details-number {
    font-size: 18px;
  }
}

/* QRIS PAYMENT - LIGHT PINK PURPLE */
.hh-qris-payment-details {
  display: none;
  margin: 10px 0 14px 28px;
  padding: 16px;
  text-align: center;
  background: linear-gradient(145deg, #ffffff, #fdf5ff);
  border: 1px solid #ead5f5;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(155, 98, 209, .10);
}

.hh-checkout-payment:has(input[name="paymentMethod"][value="qris"]:checked)
.hh-qris-payment-details {
  display: block;
}

.hh-qris-payment-title {
  margin-bottom: 12px;
  color: #9b62d1;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hh-qris-payment-image {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.hh-qris-payment-note {
  margin-top: 12px;
  color: #806b91;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .hh-qris-payment-details {
    margin-left: 10px;
    margin-right: 0;
    padding: 12px;
  }

  .hh-qris-payment-image {
    max-width: 260px;
  }
}

/* TRANSFER BANK SUBMENU */
.hh-bank-submenu {
  margin: 9px 0;
  border: 1px solid #ead5f5;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.hh-bank-submenu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  color: #49365d;
  cursor: pointer;
  list-style: none;
}

.hh-bank-submenu > summary::-webkit-details-marker {
  display: none;
}

.hh-bank-arrow {
  color: #9b62d1;
  font-size: 22px;
  transition: transform .2s ease;
}

.hh-bank-submenu[open] .hh-bank-arrow {
  transform: rotate(180deg);
}

.hh-bank-submenu-list {
  padding: 0 10px 10px;
  border-top: 1px solid #ead5f5;
}

.hh-bank-submenu-list > .hh-payment-option {
  margin: 9px 0;
}

.hh-bank-submenu .hh-bank-details {
  display: none;
  margin: 0 0 12px 28px;
}

.hh-bank-submenu:has(input[value="bca_va"]:checked)
.hh-bank-details-bca {
  display: block;
}

.hh-bank-submenu:has(input[value="bri_va"]:checked)
.hh-bank-details-bri {
  display: block;
}

@media (max-width: 600px) {
  .hh-bank-submenu-list {
    padding-left: 7px;
    padding-right: 7px;
  }

  .hh-bank-submenu .hh-bank-details {
    margin-left: 10px;
  }
}

.hh-bank-submenu-list > .hh-payment-option {
  justify-content: center;
  text-align: center;
}

.hh-bank-submenu-list .hh-payment-option-content {
  text-align: center;
  align-items: center;
}

/* DETAIL BANK DAN QRIS */
.hh-bank-submenu .hh-bank-details {
  display: none;
}

.hh-bank-submenu:has(input[value="bca_va"]:checked)
.hh-bank-details-bca {
  display: block;
}

.hh-bank-submenu:has(input[value="bri_va"]:checked)
.hh-bank-details-bri {
  display: block;
}

.hh-qris-payment-details {
  display: none;
}

.hh-checkout-payment:has(input[name="paymentMethod"][value="qris"]:checked)
.hh-qris-payment-details {
  display: block;
}

/* PERINGATAN DAN NOMINAL QRIS */
.hh-qris-warning {
  color: #ec65b5;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin: 5px 0 8px;
  text-transform: none;
}

.hh-qris-amount {
  color: #7136a5;
  font-size: 25px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 15px;
  padding: 12px;
  border: 1px solid #d9b5ef;
  border-radius: 10px;
  background: #fdf7ff;
}

/* =========================================
   HOLAHOOB - FINAL LIGHT PINK PURPLE THEME
   VISUAL ONLY - KEEP ALL FUNCTIONS
   ========================================= */

:root {
  color-scheme: light;
  --hh-bg: #ffffff;
  --hh-bg-soft: #fdf7ff;
  --hh-card: #ffffff;
  --hh-card-hover: #fdf5ff;
  --hh-red: #ec65b5;
  --hh-red-light: #b98aff;
  --hh-white: #49365d;
  --hh-muted: #806b91;
  --hh-border: #ead5f5;
  --hh-glow: 0 4px 16px rgba(155, 98, 209, .10);
}

/* BACKGROUND */
html,
body {
  background: #ffffff !important;
  color: #49365d !important;
}

body {
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #fdf7ff 55%,
    #f8efff 100%
  ) !important;
}

/* AREA KATEGORI */
.hh-game-grid,
.hh-operator-grid {
  background: #ffffff !important;
  border-radius: 16px !important;
}

/* KARTU KATEGORI */
.hh-game-grid .hh-game-card,
.hh-operator-grid .hh-operator-card {
  background: linear-gradient(135deg, #fceafa, #f0e8ff) !important;
  border: 1px solid #ead5f5 !important;
  border-radius: 13px !important;
  color: #7136a5 !important;
  box-shadow: var(--hh-glow) !important;
}

/* TEKS KATEGORI */
.hh-game-name,
.hh-operator-name,
.hh-operator-count,
.hh-game-card *,
.hh-operator-card * {
  color: #7136a5 !important;
}

.hh-game-name,
.hh-operator-name {
  font-weight: 800 !important;
}

/* KARTU PRODUK */
.hh-product-card,
.hh-nominal-card,
.best-seller-card,
.best-seller-slider-card {
  background: #ffffff !important;
  color: #49365d !important;
  border: 1px solid #ead5f5 !important;
  border-radius: 14px !important;
  box-shadow: var(--hh-glow) !important;
}

.hh-product-card *,
.hh-nominal-card *,
.best-seller-card * {
  color: #49365d !important;
}

/* HARGA DAN AKSEN */
.hh-product-price,
.hh-nominal-price,
.hh-product-card .price {
  color: #ec65b5 !important;
  font-weight: 800 !important;
}

/* TOMBOL */
button,
.hh-detail-btn {
  border-color: #ec65b5 !important;
}

.hh-detail-btn {
  background: #ec65b5 !important;
  color: #ffffff !important;
}

/* AREA CHECKOUT */
.hh-checkout,
.hh-checkout-payment,
.hh-bank-submenu,
.hh-bank-submenu-list {
  background: #ffffff !important;
  color: #49365d !important;
  border-color: #ead5f5 !important;
}

/* GAMBAR ASLI TETAP DIPERTAHANKAN */
.hh-product-card img,
.hh-game-card img,
.hh-operator-card img,
.best-seller-card img {
  background: transparent !important;
  object-fit: contain;
}

/* AREA KONTEN */
.container,
#products,
.best-seller-section,
.best-seller-container {
  background: transparent !important;
  color: #49365d !important;
}

/* JUDUL DAN TEKS */
h1,
h2,
h3,
h4,
h5,
p {
  color: #49365d;
}

/* SCROLLBAR */
body::-webkit-scrollbar-track {
  background: #fdf7ff !important;
}

body::-webkit-scrollbar-thumb {
  background: #d9b5ef !important;
  border-radius: 10px;
}

/* MOBILE - PERTAHANKAN SUSUNAN */
@media (max-width: 600px) {
  .hh-game-grid .hh-game-card,
  .hh-operator-grid .hh-operator-card,
  .best-seller-card {
    border-radius: 11px !important;
  }

  .hh-product-card:hover,
  .hh-game-grid .hh-game-card:hover,
  .hh-operator-grid .hh-operator-card:hover {
    transform: none;
  }
}
/* FIX TULISAN CHECKOUT YUK */
button[onclick*="bukaFormCheckout"],
.hh-buy-btn {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* HOLAHOOB — COMPACT SQUARE PRODUCT CARDS */
#products.hh-real-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

#products.hh-real-product-grid .hh-product-card {
  min-height: 0 !important;
  height: auto !important;
  border-radius: 13px !important;
}

#products.hh-real-product-grid .hh-product-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
}

#products.hh-real-product-grid .hh-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 7px !important;
}

#products.hh-real-product-grid .hh-product-content {
  padding: 8px !important;
  gap: 0 !important;
}

#products.hh-real-product-grid .hh-product-name {
  height: 36px !important;
  min-height: 36px !important;
  margin-bottom: 5px !important;
  font-size: 12px !important;
}

#products.hh-real-product-grid .hh-meta {
  margin-bottom: 5px !important;
}

@media (max-width: 640px) {
  #products.hh-real-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #products.hh-real-product-grid .hh-product-content {
    padding: 6px !important;
  }

  #products.hh-real-product-grid .hh-product-name {
    height: 34px !important;
    min-height: 34px !important;
    font-size: 10px !important;
  }
}

@media (max-width: 380px) {
  #products.hh-real-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}.search-wrap #searchSuggestions .search-suggestion-item{flex:0 0 100%!important;width:100%!important;height:auto!important;min-height:58px!important;border-radius:10px!important;justify-content:flex-start!important;background:#fff!important;color:#49365d!important}
/* Compact product cards */ #products.hh-real-product-grid .hh-product-card button{padding:6px 4px!important;min-height:30px!important;font-size:10px!important} #products.hh-real-product-grid .hh-product-name{height:30px!important;min-height:30px!important;margin-bottom:2px!important} #products.hh-real-product-grid .hh-product-content{padding:5px!important}
#products.hh-real-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important} #products.hh-real-product-grid .hh-product-image{aspect-ratio:1.2/1!important} #products.hh-real-product-grid .hh-product-content{padding:7px!important} #products.hh-real-product-grid .hh-product-card button{padding:7px 4px!important;min-height:30px!important;font-size:10px!important} @media(max-width:640px){#products.hh-real-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}}
html body #products.hh-operator-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;width:100%!important}
html body #products.hh-operator-grid .hh-operator-card{min-height:unset!important;height:auto!important;padding:10px 10px 14px!important;box-sizing:border-box!important;border:1px solid #ead5f5!important;border-radius:18px!important;background:#fff!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;box-shadow:0 4px 16px rgba(155,98,209,.08)!important}
html body #products.hh-operator-grid .hh-operator-card{min-height:unset!important;height:auto!important;padding:10px 10px 14px!important;box-sizing:border-box!important;border:1px solid #ead5f5!important;border-radius:18px!important;background:#fff!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:0!important;box-shadow:0 4px 16px rgba(155,98,209,.08)!important}
html body #products.hh-operator-grid .hh-operator-logo{position:relative!important;width:88%!important;height:auto!important;aspect-ratio:1/1!important;flex:0 0 auto!important;border-radius:14px!important;background:#fdf7ff!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;margin:0 auto 12px!important;border:1px solid #ead5f5!important;box-shadow:inset 0 0 14px rgba(155,98,209,.08)!important} html body #products.hh-operator-grid .hh-operator-logo img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important;border-radius:14px!important}
html body #products.hh-operator-grid .hh-operator-name{font-family:Rajdhani,sans-serif!important;font-size:15px!important;font-weight:700!important;letter-spacing:.7px!important;color:#49365d!important;line-height:1.3!important;width:100%!important;min-height:42px!important;padding:7px 8px!important;box-sizing:border-box!important;border:1px solid #e5c8f0!important;border-radius:9px!important;background:linear-gradient(135deg,#fceafa,#f0e8ff)!important;margin:0!important;text-align:center!important;box-shadow:0 3px 10px rgba(155,98,209,.10)!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
html body #products.hh-operator-grid .hh-operator-count{display:none!important}
@media(max-width:480px){html body #products.hh-operator-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}html body #products.hh-operator-grid .hh-operator-card{padding:8px 6px 10px!important;border-radius:14px!important}html body #products.hh-operator-grid .hh-operator-logo{width:90%!important;margin-bottom:8px!important}html body #products.hh-operator-grid .hh-operator-name{font-size:11px!important;min-height:38px!important;padding:5px 6px!important}}
@media(min-width:481px) and (max-width:768px){html body #products.hh-operator-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important}}
.hh-game-popular-section{margin:0 0 18px;padding:14px;background:#fff;border-radius:16px}.hh-game-popular-section h3{margin:0 0 12px;font-size:18px;font-weight:800;color:#292238}.hh-game-popular-track{display:flex;gap:12px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory}.hh-game-popular-card{position:relative;flex:0 0 112px;text-align:center;cursor:pointer;scroll-snap-align:start}.hh-game-popular-card img{width:100%;height:105px;object-fit:cover;border-radius:13px}.hh-game-popular-card span{display:inline-block;margin-top:5px;padding:3px 7px;border-radius:20px;background:#ffe5f3;color:#d62986;font-size:10px;font-weight:800}.hh-game-popular-card b{display:block;margin-top:5px;font-size:12px;color:#30263b}
@media(max-width:640px){#products.hh-real-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}#products.hh-operator-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}}
@media(max-width:640px){#products.hh-real-product-grid .hh-product-content{padding:8px!important;gap:4px!important}#products.hh-real-product-grid .hh-product-name{height:auto!important;min-height:34px!important;font-size:12px!important;line-height:1.35!important}#products.hh-real-product-grid .hh-product-card button{min-height:36px!important;font-size:11px!important;border-radius:9px!important}}
@media(max-width:640px){#products.hh-operator-grid .hh-operator-card{padding:7px 5px!important;border-radius:12px!important}#products.hh-operator-grid .hh-operator-logo{width:100%!important;margin-bottom:7px!important}#products.hh-operator-grid .hh-operator-name{font-size:11px!important;min-height:36px!important;padding:5px 3px!important;letter-spacing:0!important;line-height:1.3!important}}

/* FIX GRID PRODUK HP DAN TABLET */
@media(max-width:900px){html body #products.hh-real-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}

/* FIX GRID KATEGORI DIGITAL MOBILE */
@media(max-width:640px){html body #products.hh-operator-grid,html body #products.hh-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}
#products .hh-pulsa-card [style*="color:#1769e0"]{color:#1769e0!important}
#products .hh-pulsa-card [style*="color:#542894"]{color:#542894!important}
#products .hh-pulsa-card [style*="color:#16a34a"]{color:#16a34a!important}
#products .hh-pulsa-card [style*="color:#db2777"]{color:#db2777!important}
#products .hh-pulsa-card [style*="color:#999"]{color:#999!important}
#products .hh-pulsa-card [style*="color:#78668f"]{color:#78668f!important}
#products .hh-pulsa-card{text-align:left!important;align-items:stretch!important}#products .hh-pulsa-card>div{text-align:left!important}#products .hh-pulsa-card button{width:100%!important;text-align:center!important}
#products.hh-pulsa-masa-grid{grid-template-columns:repeat(auto-fill,minmax(135px,150px))!important;justify-content:center!important;gap:8px!important}#products.hh-pulsa-masa-grid>.hh-product-card{width:100%!important;max-width:150px!important;min-width:0!important;justify-self:center!important;box-sizing:border-box!important}#products.hh-pulsa-masa-grid .hh-product-card,#products.hh-pulsa-masa-grid .hh-product-card>div{text-align:left!important}#products.hh-pulsa-masa-grid .hh-product-card button{text-align:center!important;width:100%!important}
html body #products.hh-real-product-grid.hh-pulsa-masa-grid{grid-template-columns:repeat(auto-fill,minmax(135px,150px))!important;justify-content:center!important;justify-items:center!important;gap:5px!important}html body #products.hh-real-product-grid.hh-pulsa-masa-grid>.hh-product-card{width:100%!important;max-width:150px!important;min-width:0!important;justify-self:center!important;box-sizing:border-box!important}html body #products.hh-pulsa-masa-grid .hh-pulsa-card>div,html body #products.hh-pulsa-masa-grid .hh-pulsa-card>div *{text-align:left!important}html body #products.hh-pulsa-masa-grid .hh-pulsa-card button{text-align:center!important;width:100%!important}
html body #products.hh-real-product-grid.hh-pulsa-masa-grid{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:stretch!important;gap:9px 10px!important;width:100%!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important}html body #products.hh-real-product-grid.hh-pulsa-masa-grid>.hh-product-card{flex:0 0 calc((100% - 30px)/4)!important;width:calc((100% - 30px)/4)!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}html body #products.hh-pulsa-masa-grid .hh-pulsa-card{min-height:160px!important}
#products.hh-data-grid{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:10px!important;max-width:760px!important;margin-left:auto!important;margin-right:auto!important}#products.hh-data-grid>.hh-product-card{flex:0 1 170px!important;width:170px!important;max-width:170px!important;min-width:0!important;box-sizing:border-box!important}@media(max-width:640px){#products.hh-data-grid>.hh-product-card{flex:0 1 calc((100% - 10px)/2)!important;width:calc((100% - 10px)/2)!important;max-width:170px!important}}
/* GAME KECIL */
.hh-game-grid{grid-template-columns:repeat(4,minmax(0,108px))!important;justify-content:start!important;gap:10px!important}
.hh-game-grid .hh-game-card{height:100px!important;min-height:100px!important;padding:0!important;overflow:hidden!important;border-radius:12px!important}
.hh-game-grid .hh-game-banner-wrap{width:100%!important;height:76px!important;overflow:hidden!important}.hh-game-grid .hh-game-banner{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.hh-game-grid .hh-game-name{font-size:9px!important;line-height:1.1!important;padding:3px 2px!important}
.hh-game-grid .hh-game-card{height:auto!important;min-height:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}.hh-game-grid .hh-game-banner-wrap{border-radius:12px!important}.hh-game-grid .hh-game-name{display:block!important;background:transparent!important;border:0!important;box-shadow:none!important;margin-top:5px!important;padding:2px 0!important;text-align:center!important}
.hh-game-grid .hh-game-discount-badge{display:none!important}
.hh-game-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:20px!important}.hh-game-grid .hh-game-card{height:auto!important;min-height:0!important;padding:14px!important;background:#fff!important;border:1px solid #eee!important;border-radius:17px!important;box-shadow:0 3px 10px #00000012!important;overflow:hidden!important}.hh-game-grid .hh-game-banner-wrap{width:100%!important;aspect-ratio:1!important;height:auto!important;border-radius:14px!important;overflow:hidden!important}.hh-game-grid .hh-game-banner{width:100%!important;height:100%!important;object-fit:cover!important}.hh-game-grid .hh-game-name{font-size:15px!important;font-weight:800!important;margin-top:10px!important;background:transparent!important;border:0!important;box-shadow:none!important}.hh-game-grid .hh-game-discount-badge{display:none!important}@media(max-width:640px){.hh-game-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}
@media(max-width:640px){.hh-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.hh-game-grid .hh-game-card{padding:8px!important}.hh-game-grid .hh-game-name{font-size:11px!important}}
@media(max-width:640px){html body #products.hh-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}}
.hh-emoney-grid{justify-content:center!important;justify-items:center!important}
.products-panel.voucher-game-bg{background-image:linear-gradient(rgba(15,8,35,.48),rgba(15,8,35,.48)),url("images/voucher-game-bg.jpg")!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;border-radius:20px}
.products-panel.voucher-game-bg .section-title,.products-panel.voucher-game-bg .section-title h2,.products-panel.voucher-game-bg .section-title p{color:#fff!important;text-shadow:0 1px 4px rgba(0,0,0,.8)!important}
.products-panel.voucher-game-bg .pagination-controls .page-btn,.products-panel.voucher-game-bg .pagination-info{color:#fff!important;font-size:14px!important;font-weight:700!important;text-shadow:0 1px 4px #160b2b!important}.products-panel.voucher-game-bg .pagination-info{font-size:14px!important;line-height:1.6!important}.products-panel.voucher-game-bg .pagination-controls .page-btn{border-color:rgba(255,255,255,.65)!important}
.products-panel.voucher-game-bg .pagination-controls .page-btn{background:rgba(35,15,65,.9)!important;color:#fff!important;border:1px solid #fff!important;font-size:15px!important;font-weight:800!important;min-width:42px!important;height:40px!important;opacity:1!important;text-shadow:0 1px 3px #160b2b!important}.products-panel.voucher-game-bg .pagination-controls .page-btn.active{background:#fff!important;color:#382064!important;border-color:#fff!important;text-shadow:none!important}.products-panel.voucher-game-bg .pagination-controls .page-btn:disabled{opacity:.8!important;background:rgba(45,25,75,.85)!important;color:#fff!important}.products-panel.voucher-game-bg .pagination-controls .page-btn.ellipsis{background:transparent!important;border:0!important;color:#fff!important}.products-panel.voucher-game-bg .pagination-info{color:#fff!important;font-size:15px!important;font-weight:800!important;text-shadow:0 1px 4px #160b2b!important}
