/* ================= FONT ================= */
*{
  font-family:'Plus Jakarta Sans','Poppins',system-ui,sans-serif;
  box-sizing:border-box;
}

/* ================= HEADER ================= */
.header{
  position:sticky;
  top:0;
  z-index:99999;
}

/* ================= TOPBAR ================= */
.topbar{
  background:#e84c7f;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.topbar-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}

/* ================= LEFT ================= */
.left{
  display:flex;
  align-items:center;
  gap:12px;
}

.menu-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,.22);
  color:white;
  font-size:18px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.logo{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:white;
  font-weight:800;
}

.logo img{
  height:100px; /* desktop */
}

.logo-text{display:none}

/* ================= SEARCH ================= */
.search-box{
  flex:1;
  max-width:520px;
}

.search-box form{
  display:flex;
  align-items:center;
  background:white;
  border-radius:999px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}

.search-box input{
  flex:1;
  border:none;
  outline:none;
  padding:10px 16px;
  font-size:14px;
}

.search-box button{
  border:none;
  background:linear-gradient(135deg,#ebe8e9,#ddd9da);
  color:#e84c7f;
  padding:0 16px;
  font-size:15px;
  cursor:pointer;
}

/* ================= RIGHT ================= */
.right{
  display:flex;
  align-items:center;
  gap:8px;
}

/* CART */
.cart{
  background:white;
  color:#e84c7f;
  padding:6px 10px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:4px;
  font-size:13px;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.cart b{
  background:#e84c7f;
  color:white;
  padding:1px 6px;
  border-radius:999px;
  font-size:10px;
}

/* ACCOUNT */
.account-wrap{position:relative}

.account-btn{
  background:#2563eb;
  border:none;
  color:white;
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}

/* DROPDOWN */
.account-dropdown{
  position:absolute;
  left:-65%;
  top:52px;
  transform:translateX(-50%);
  width:320px;
  max-width:95vw;   /* biar aman di HP kecil */
  background:white;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.18);
  padding:18px;
  display:none;
  z-index:3000;
}

.account-dropdown.show{display:block}

/* FORM */
.dw-form h4{text-align:center;margin-bottom:14px}

.dw-group{margin-bottom:12px}
.dw-group label{font-size:12px;font-weight:600;color:#475569}

.dw-group input{
  width:100%;
  padding:10px;
  border-radius:10px;
  border:1px solid #e2e8f0;
}

.dw-row{display:flex;justify-content:space-between;font-size:12px;margin-bottom:12px}

.dw-btn-login{
  width:100%;
  padding:12px;
  border:none;
  border-radius:12px;
  background:#e84c7f;
  color:white;
  font-weight:700;
}

.dw-btn-admin{
  display:block;
  margin-top:10px;
  padding:12px;
  border-radius:12px;
  background:#7c3aed;
  color:white;
  text-align:center;
  text-decoration:none;
  font-weight:700;
}

.dw-divider{text-align:center;font-size:12px;color:#94a3b8;margin:12px 0}
.dw-register{text-align:center;font-size:12px}

/* ================= MENU BAR ================= */
.menubar{
  background:#d93b6c;
  border-top:1px solid rgba(255,255,255,.25);
}

.menu-wrap{
  display:flex;
  align-items:center;
  gap:22px;
  padding:10px 0;
}

.menu-left,.menu-right{
  display:flex;
  gap:22px;
  align-items:center;
}

.menu-right{margin-left:auto}

.menu-wrap a{
  color:white;
  font-weight:600;
  text-decoration:none;
  position:relative;
}

.menu-wrap a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:white;
  transition:.25s;
}

.menu-wrap a:hover::after{width:100%}

/* ================= ALL PRODUK ================= */
.all-produk{
  display:none;
  background:white;
  border-top:1px solid #f1f5f9;
  box-shadow:0 20px 50px rgba(0,0,0,.15);
  position:relative;
  z-index:900;
}

.all-produk.show{display:block}

.all-produk-box{
  padding:26px 10px 34px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
  gap:18px;
}

.all-produk-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:14px;
  text-decoration:none;
  transition:.25s;
}

.all-produk-item:hover{
  background:#fdf2f8;
  transform:translateY(-3px);
}

.all-produk-item img{
  width:42px;
  height:42px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid #f9a8d4;
}

.all-produk-item span{
  font-weight:600;
  font-size:13px;
  color:#d93b6c;
}

/* ================= MOBILE ================= */
@media(max-width:420px){

  /* LOGO LEBIH GEDE */
  .logo img{
    height:60px;
  }

  /* TOPBAR */
  .topbar-wrap{
    gap:5px;
    padding:5px 6px;
  }

  /* ☰ MENU */
  .menu-icon{
    width:26px;
    height:26px;
    font-size:13px;
  }

  /* SEARCH ICON */
  .search-box input{display:none}

  .search-box form{
    background:transparent;
    box-shadow:none;
  }

  .search-box button{
    padding:6px;
    font-size:13px;
    border-radius:50%;
  }

  /* RIGHT ICON GROUP */
  .right{
    gap:5px;
  }

  .cart{
    padding:4px 7px;
    font-size:10px;
  }

  .cart b{
    font-size:8px;
    padding:1px 4px;
  }

  .account-btn{
    padding:4px 7px;
    font-size:10px;
  }

  .more-btn{
    width:26px;
    height:26px;
    font-size:16px;
  }

  /* MENU BAWAH */
  .menu-wrap{
    padding:5px 8px;
  }

  .menu-wrap a{
    font-size:10px;
  }
}

/* ===== MORE MENU ===== */
.more-wrap{position:relative}

.more-btn{
  display:none;
  background:white;
  border:none;
  width:32px;
  height:32px;
  border-radius:50%;
  font-size:20px;
  font-weight:bold;
  color:#e84c7f;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.more-dropdown{
  display:none;
  position:absolute;
  right:0;
  top:44px;
  background:white;
  width:190px;
  border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,.2);
  overflow:hidden;
  z-index:5000;
}

.more-dropdown a{
  display:block;
  padding:12px 14px;
  text-decoration:none;
  color:#111827;
  font-weight:600;
  border-bottom:1px solid #f1f5f9;
}

.more-dropdown a:hover{
  background:#fdf2f8;
  color:#e84c7f;
}

.more-dropdown.show{display:block}

/* MOBILE */
@media(max-width:420px){
  .menubar{display:none;}
  .more-btn{display:flex;align-items:center;justify-content:center;}
}
