/* =====================================================
   megamenu.css — Finger Print
   ===================================================== */

/* ── Tombol Daftar / Register ── */
.fp-btn-register {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--black);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.fp-btn-register:hover {
  background: var(--gray-1);
  border-color: var(--gray-1);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Mega trigger chevron animate ── */
.fp-mega-trigger .fp-chevron {
  transition: transform .2s ease;
}
.fp-mega-trigger.open .fp-chevron {
  transform: rotate(180deg);
}

/* ── Mega Panel ── */
.fp-mega-panel {
  position: fixed;
  top: var(--navbar-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  max-height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
}
.fp-mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Backdrop */
.fp-mega-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--navbar-h);
  background: rgba(0,0,0,.25);
  z-index: 997;
  backdrop-filter: blur(2px);
}
.fp-mega-backdrop.open { display: block; }

/* ── Inner layout ── */
.fp-mega-inner {
  display: flex;
  align-items: stretch;
  min-height: 340px;
  padding: 1rem 0;
}

/* ── Sidebar ── */
.fp-mega-sidebar {
  flex: 0 0 210px;
  border-right: 1px solid #f0f0ec;
  padding: .5rem .75rem .5rem 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.fp-mega-cat {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-2);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.fp-mega-cat:hover,
.fp-mega-cat.active {
  background: var(--gray-5);
  color: var(--black);
}
.fp-mega-cat.active {
  background: #fff9e6;
  color: var(--black);
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: calc(.9rem - 3px);
}
.fp-mega-cat-icon { font-size: 1.1rem; flex-shrink: 0; }
.fp-mega-cat .fa-chevron-right { color: var(--gray-4); font-size: .65rem; }
.fp-mega-cat.active .fa-chevron-right { color: var(--accent); }

/* ── Content area ── */
.fp-mega-content {
  flex: 1;
  padding: .5rem 1.75rem;
  position: relative;
  min-height: 300px;
}

.fp-mega-sub {
  display: none;
  animation: fadeIn .15s ease;
}
.fp-mega-sub.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.fp-mega-sub-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--black);
  margin-bottom: 1rem;
  padding-bottom: .65rem;
  border-bottom: 1.5px solid var(--gray-5);
}

.fp-mega-sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.fp-mega-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #f0f0ec;
  background: var(--white);
  font-size: .84rem;
  color: var(--gray-1);
  transition: var(--transition);
  position: relative;
  text-decoration: none;
}
.fp-mega-item:hover {
  border-color: var(--accent);
  background: #fffdf0;
  color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255,205,54,.2);
}
.fp-mega-item-icon { font-size: 1.1rem; flex-shrink: 0; }
.fp-mega-item-name { font-weight: 500; flex: 1; }

/* Badges */
.fp-mega-badge {
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 3px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.fp-mega-badge.best { background: #fff3cd; color: #856404; }
.fp-mega-badge.new  { background: #fff9e6; color: #b8860b; }
.fp-mega-badge.promo { background: #fee2e2; color: #991b1b; }

/* ── Promo strip ── */
.fp-mega-promo {
  flex: 0 0 180px;
  border-left: 1px solid #f0f0ec;
  padding: .5rem 0 .5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.fp-mega-promo-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--black);
  margin-bottom: .4rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid var(--gray-5);
}
.fp-mega-promo-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--gray-5);
  font-size: .78rem;
  color: var(--gray-1);
  transition: var(--transition);
  text-decoration: none;
}
.fp-mega-promo-item:hover { background: #fff9e6; color: var(--black); }
.fp-mega-promo-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--black);
}
.fp-mega-promo-cta {
  display: block;
  margin-top: auto;
  padding: .55rem .7rem;
  background: var(--accent);
  color: var(--black);
  font-size: .78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}
.fp-mega-promo-cta:hover { background: var(--accent-dark); color: var(--black); }

/* ── Responsive — sembunyikan mega menu di mobile ── */
@media (max-width: 991px) {
  .fp-mega-panel { display: none; }
  .fp-mega-backdrop { display: none !important; }
}

/* ── Logo image fix ── */
.fp-logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

/* ── Fix gap putih antara navbar dan hero ── */
.fp-navbar {
  height: auto !important;
  min-height: var(--navbar-h);
}
.fp-nav-inner {
  height: auto !important;
  min-height: var(--navbar-h);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.fp-logo-img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
/* Mobile menu — pastikan hidden saat closed */
.fp-mobile-menu {
  display: none;
}
.fp-mobile-menu.open {
  display: block;
}
/* Tidak ada margin/padding ekstra di body > pertama setelah navbar */
.fp-hero {
  margin-top: 0 !important;
}
