/* =========================
NAVBAR - APPLE STYLE PREMIUM
========================= */

.navbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:999;

  padding:24px 0;
  background-color: #fff;

  transition:
    padding .35s ease,
    background .35s ease,
    box-shadow .35s ease,
    backdrop-filter .35s ease,
    transform .35s ease;
}

/* WRAPPER */

.nav-wrap{
  width:min(92%,1200px);
  margin:auto;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* =========================
SCROLL STATE (DYNAMIC GLASS)
========================= */

.navbar.scrolled{
  padding:10px 0;

  background:rgba(255,255,255,.78);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);

  box-shadow:0 10px 40px rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.05);
}

/* optional deeper scroll feel (kalau JS add class "deep") */

.navbar.deep{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(30px);
  box-shadow:0 12px 50px rgba(0,0,0,.08);
}

/* =========================
LOGO
========================= */

.logo{
  display:flex;
  align-items:center;
  gap:10px;

  text-decoration:none;

  color:#1f1b1c;

  font-size:18px;
  font-weight:500;
  letter-spacing:-.3px;

  transition:.3s ease;
}

.logo img{
  width:54px;
  transition:.35s ease;
}

.navbar.scrolled .logo img{
  width:40px;
}

/* =========================
MENU
========================= */

.nav-links{
  display:flex;
  align-items:center;
  gap:34px;
}

.nav-links a{
  position:relative;

  text-decoration:none;

  font-size:14px;
  font-weight:500;

  color:#1f1b1c;

  transition:.25s ease;
}

/* soft underline */

.nav-links a::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-6px;

  width:0;
  height:1px;

  background:linear-gradient(90deg,#b89b7a,transparent);

  transition:.3s ease;
}

.nav-links a:hover{
  color:#b89b7a;
}

.nav-links a:hover::after{
  width:100%;
}

/* =========================
CART ICON
========================= */

.cart-icon{
  width:42px;
  height:42px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:12px;

  color:#1f1b1c;

  transition:.25s ease;
}

.cart-icon:hover{
  background:rgba(0,0,0,.04);
  transform:translateY(-1px);
}

/* =========================
CTA
========================= */

.nav-cta{
  padding:10px 18px;

  border-radius:999px;

  background:rgba(31,27,28,.92);
  color:#fff !important;

  font-size:13px;
  font-weight:500;

  transition:.25s ease;

  border:1px solid rgba(0,0,0,.08);
}

.nav-cta:hover{
  background:#b89b7a;
  color:#1f1b1c !important;
  transform:translateY(-1px);
}

.nav-cta::after{
  display:none;
}

/* =========================
MOBILE MENU TOGGLE
========================= */

.nav-btn{
  display:none;
}

#nav-toggle{
  display:none;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

  .nav-btn{
    display:flex;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
  }

  .nav-btn span{
    width:24px;
    height:2px;
    background:#1f1b1c;
    border-radius:2px;
  }

  .nav-links{
    position:absolute;
    top:90%;
    left:0;
    right:0;

    width:100%;

    display:flex;
    flex-direction:column;
    align-items:center;

    gap:16px;

    padding:26px 20px;

     border-radius:0 0 18px 18px;
    box-shadow:0 20px 50px rgba(0,0,0,.08);

    background:rgba(255,255,255,.96);
    backdrop-filter:blur(20px);

    border-bottom:1px solid rgba(0,0,0,.06);

    /* IMPORTANT FIX */
    box-sizing:border-box;

    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);

    transition:.3s ease;
  }

  #nav-toggle:checked ~ .nav-links{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }

  .navbar.scrolling{
  backdrop-filter:blur(28px);
  background:rgba(255,255,255,.85);
}

}