/* =====================
   HEADER
===================== */

.header-adv{
  position:static;   /* 🔥 INI KUNCI */
  top:auto;
  z-index:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 40px;
  background:#2f56a6;
  color:#fff;
}
body{
  padding-top: 0px;
}


/* LOGO HEADER */
.logo{
  display:flex;
  align-items:center;
  gap:-5px;              /* jarak logo & teks */
   margin-top:-2px;   /* ⬅️ NAIKKAN KE ATAS */
}
.logo img{
  width:70px;            /* ukuran logo */
  margin-top:-15px;   /* naikkan gambar */
  height:auto;
  display:block;
}
.logo span{
  font-size:20px;
  font-weight:700;
  color:#fff;
  line-height:1;
}


.nav-menu a{
  margin:0 12px;
  color:white;
  text-decoration:none;
  font-weight:500;
}

/* LOGO HEADER */
.logo{
  display:flex;
  align-items:center;
  gap:-5px;              /* jarak logo & teks */
   margin-top:-2px;   /* ⬅️ NAIKKAN KE ATAS */
}
.logo img{
  width:70px;            /* ukuran logo */
  margin-top:-15px;   /* naikkan gambar */
  height:auto;
  display:block;
}
.logo span{
  font-size:20px;
  font-weight:700;
  color:#fff;
  line-height:1;
}


.nav-menu a{
  margin:0 12px;
  color:white;
  text-decoration:none;
  font-weight:500;
}


.header-action span{
  margin-left:15px;
  cursor:pointer;
}

.profile-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(6px);
  display:flex;
  justify-content:center;
  align-items:center;
  opacity:0;
  pointer-events:none;
  transition:.35s ease;
  z-index:9999;
}

.profile-overlay.show{
  opacity:1;
  pointer-events:auto;
}

/* POPUP BOX */
.profile-popup{
  background:rgba(255,255,255,.95);
  border-radius:20px;
  padding:30px 28px;
  width:100%;
  max-width:300px;
  text-align:center;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  transform:scale(.8) translateY(30px);
  opacity:0;
  transition:.35s ease;
}

/* ACTIVE */
.profile-overlay.show .profile-popup{
  transform:scale(1) translateY(0);
  opacity:1;
}

/* CLOSE */
.close-btn{
  position:absolute;
  top:14px;
  right:14px;
  font-size:22px;
  cursor:pointer;
  color:#777;
}

/* AVATAR */
.profile-avatar{
  font-size:64px;
  color:#2f56a6;
  margin-bottom:10px;
}

/* TEXT */
.profile-popup h3{
  margin-bottom:6px;
  color:#1f2f5c;
}

.profile-popup p{
  font-size:14px;
  font-weight:600;
  margin-bottom:20px;
}

/* LOGOUT BUTTON */
.logout-btn{
  width:100%;
  padding:12px;
  border:none;
  border-radius:12px;
  background:#e74c3c;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:.3s;
}

.logout-btn:hover{
  background:#c0392b;
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(231,76,60,.4);
}

/* RESPONSIVE */
@media(max-width:900px){
  .nav-menu{ display:none; }
}


.header-action span{
  margin-left:15px;
  cursor:pointer;
}

.profile-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(6px);
  display:flex;
  justify-content:center;
  align-items:center;
  opacity:0;
  pointer-events:none;
  transition:.35s ease;
  z-index:9999;
}

.profile-overlay.show{
  opacity:1;
  pointer-events:auto;
}

/* POPUP BOX */
.profile-popup{
  background:rgba(255,255,255,.95);
  border-radius:20px;
  padding:30px 28px;
  width:100%;
  max-width:300px;
  text-align:center;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  transform:scale(.8) translateY(30px);
  opacity:0;
  transition:.35s ease;
}

/* ACTIVE */
.profile-overlay.show .profile-popup{
  transform:scale(1) translateY(0);
  opacity:1;
}

/* CLOSE */
.close-btn{
  position:absolute;
  top:14px;
  right:14px;
  font-size:22px;
  cursor:pointer;
  color:#777;
}

/* AVATAR */
.profile-avatar{
  font-size:64px;
  color:#2f56a6;
  margin-bottom:10px;
}

/* TEXT */
.profile-popup h3{
  margin-bottom:6px;
  color:#1f2f5c;
}
.profile-popup p{
  font-size:14px;
  font-weight:600;
  margin-bottom:20px;
}

/* LOGOUT BUTTON */
.logout-btn{
  width:100%;
  padding:12px;
  border:none;
  border-radius:12px;
  background:#e74c3c;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:.3s;
}
.logout-btn:hover{
  background:#c0392b;
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(231,76,60,.4);
}

/* RESPONSIVE */
@media(max-width:900px){
  .nav-menu{ display:none; }
}

/*BADGE CART SHOPPING*/
.cart-icon{
  position:relative;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
}

.cart-badge{
  position:absolute;
  top:-6px;
  right:-8px;
  background:#e74c3c;
  color:#fff;
  font-size:11px;
  font-weight:600;
  min-width:18px;
  height:18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  box-shadow:0 2px 6px rgba(0,0,0,.3);
}
