:root {
  --yellow: #ffc107;
  --yellow-dark: #ffc008;
  --bg: #0f1115;
  --glass-bg: rgba(31, 41, 55, 0.96);
  --header-h: 56px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: #f3f4f6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.container-narrow {
  width: 100%;
  max-width: 1095px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ── Navbar (Garuda style) ── */
.glass-nav {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.glass-nav .navbar-brand img {
  max-height: 34px;
}

.glass-nav .nav-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  padding: 0.46rem 0.72rem;
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active-link {
  color: var(--yellow) !important;
}

.glass-nav .nav-link.active-link {
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: #111827 !important;
}

.gv-search-btn {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fde68a;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

#searchPanel.search-panel {
  display: none;
  position: sticky;
  top: var(--header-h);
  z-index: 1020;
  background: var(--glass-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
}

#searchPanel.show { display: block; }

.search-panel .form-control {
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding-left: 2.1rem;
}

.search-icon-lg {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
}

.search-results-panel {
  margin-top: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.search-section-title {
  font-size: 0.78rem;
  color: #cbd5e1;
  padding: 0.48rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.search-list { list-style: none; margin: 0; padding: 0.3rem; }

.search-item a {
  display: block;
  padding: 0.48rem 0.6rem;
  border-radius: 0.55rem;
  color: #e5e7eb;
}

.search-item a:hover { background: rgba(255, 255, 255, 0.08); }

/* ── Main surface ── */
.main-surface { padding: 1rem 0 2.5rem; }

/* ── Banner ── */
.banner-frame {
  position: relative;
  width: 100%;
  max-width: 1095px;
  margin-inline: auto;
  border-radius: 22px;
  overflow: hidden;
  background: #101010;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
  aspect-ratio: 1095 / 328;
}

.banner-frame .swiper { height: 100%; }

.banner-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-swiper .swiper-pagination-bullet {
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.banner-swiper .swiper-pagination-bullet-active {
  width: 38px;
  background: var(--yellow);
}

/* ── Category pills ── */
.sticky-header {
  border-radius: 10px;
  background: rgba(38, 38, 38, 0.65);
  margin: 1rem 0;
}

.cont-category {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: thin;
}

.category-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  background: var(--yellow-dark);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.category-btn.muted {
  background: rgba(255, 192, 8, 0.22);
  color: var(--yellow);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

/* ── Section head ── */
.gv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px 8px 0 0;
  background: rgb(38, 38, 38);
  color: var(--yellow);
  padding: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ── Flash sale ── */
.flash-sale-container {
  background: linear-gradient(135deg, rgba(38, 38, 38, 0.95), rgba(18, 18, 18, 0.95));
  border: 1px solid rgba(255, 193, 7, 0.12);
  border-radius: 22px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.flash-sale-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.flash-sale-badge {
  display: inline-flex;
  border-radius: 999px;
  background: var(--yellow);
  padding: 0.25rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #1e1400;
}

.flash-sale-subtext {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.flash-sale-countdown__time {
  display: inline-flex;
  min-width: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.5rem;
  font-weight: 700;
}

.flash-sale-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.flash-sale-card {
  flex: 0 0 168px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 15, 15, 0.88);
  overflow: hidden;
  color: #f5f5f5;
  transition: transform 0.25s;
}

.flash-sale-card:hover { transform: translateY(-4px); border-color: rgba(255, 193, 7, 0.35); }

.flash-sale-card__thumb {
  position: relative;
  aspect-ratio: 1;
  background: #131313;
}

.flash-sale-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.flash-sale-card__tag {
  position: absolute;
  left: 8px;
  top: 8px;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.92);
  padding: 2px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #1e1400;
}

.flash-sale-card__body { padding: 10px 12px 12px; }

.flash-sale-card__title { font-size: 0.82rem; font-weight: 700; }

.flash-sale-card__discount {
  font-size: 0.72rem;
  color: #ff6b6b;
  text-decoration: line-through;
}

.flash-sale-card__button {
  border-radius: 8px;
  background: var(--yellow);
  padding: 4px 12px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #000;
}

/* ── Populer custom-card ── */
.custom-card {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  min-height: 4rem;
  margin-bottom: 0.75rem;
}

.custom-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0.72);
}

.custom-card-left {
  position: relative;
  z-index: 1;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-card-icon {
  width: 70%;
  border-radius: 25%;
}

.custom-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.custom-card-sub { font-size: 0.75rem; font-weight: 400; color: rgba(255, 255, 255, 0.75); }

/* ── Catalog tile ── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 576px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .catalog-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .catalog-grid { grid-template-columns: repeat(5, 1fr); } }

.catalog-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(15, 15, 15, 0.9);
  transition: transform 0.25s;
}

.catalog-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 193, 7, 0.35);
}

.catalog-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.catalog-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 55%);
}

.catalog-tile-foot {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.65rem;
}

.catalog-tile-btn {
  margin-top: 0.5rem;
  display: flex;
  height: 1.75rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 193, 7, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--yellow);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 24, 39, 0.92);
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer a { color: var(--yellow); }

/* ── Forms / panels ── */
.gv-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 193, 7, 0.1);
  background: linear-gradient(135deg, rgba(38, 38, 38, 0.92), rgba(18, 18, 18, 0.95));
  padding: 1.15rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.gv-input {
  width: 100%;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  padding: 0 0.85rem;
  color: #fff;
}

.gv-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--yellow);
  padding: 0.65rem 1.25rem;
  font-weight: 800;
  color: #111;
  cursor: pointer;
}

.gv-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.product-option {
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  margin-bottom: 0.5rem;
}

.product-option.active {
  border-color: rgba(255, 193, 7, 0.75);
  background: rgba(255, 193, 7, 0.08);
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.pay-tile {
  cursor: pointer;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
  padding: 0.65rem 0.45rem;
  text-align: center;
  color: #1e293b;
  font-size: 0.72rem;
}

.pay-tile.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

.pay-tile img { height: 28px; object-fit: contain; }

.status-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.12);
  color: var(--yellow);
}

.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1050;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .glass-nav { backdrop-filter: none; background: rgba(17, 24, 39, 0.92); }
}
