
/* ================= NAVBAR ================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: #ffffff;

  border-bottom: 1px solid #e5e7eb;
}


.navbar-container {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  padding: 0 16px;
}


/* ================= TOP NAV ================= */

.navbar-top {
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
}


/* ================= LOGO ================= */

.logo-section {
  display: flex;
  align-items: center;

  flex-shrink: 0;
}


.logo-image {
  width: 32px;
  height: 32px;
}


.logo-text {
  margin: 0 0 0 8px;

  font-size: 16px;
  font-weight: 800;

  letter-spacing: -0.025em;

  color: #374151;
}


/* ================= DESKTOP SEARCH ================= */

.desktop-search {
  display: none;

  flex: 1;

  padding: 0 24px;
}


.desktop-search input {
  display: block;

  width: 100%;
  max-width: 448px;

  margin: 0 auto;

  padding: 12px 20px;

  border: none;
  border-radius: 999px;

  background: #f3f4f6;

  font-size: 14px;

  outline: none;

  box-sizing: border-box;
}


.desktop-search input:focus {
  box-shadow: 0 0 0 2px #8b5cf6;
}


/* ================= DESKTOP ACTIONS ================= */

.desktop-actions {
  display: none;

  align-items: center;

  gap: 20px;
}


.nav-action {
  position: relative;

  display: flex;
  align-items: center;

  gap: 8px;

  border: none;

  background: transparent;

  color: #374151;

  font-size: 14px;

  cursor: pointer;
}


.nav-action:hover {
  color: #7c3aed;
}


.nav-action img {
  width: 20px;
  height: 20px;
}


/* ================= CART BADGE ================= */

.cart-action {
  position: relative;
}


.cart-badge {
  position: absolute;

  top: -8px;
  right: -12px;

  min-width: 16px;
  height: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 4px;

  border-radius: 50px;

  background: #ef4444;

  color: #ffffff;

  font-size: 9px;

  box-sizing: border-box;
}


/* ================= MOBILE ACTIONS ================= */

.mobile-actions {
  display: flex;
  align-items: center;

  gap: 12px;
}


.mobile-cart {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;

  background: transparent;

  cursor: pointer;
}


.mobile-cart img {
  width: 20px;
  height: 20px;
}


/* ================= HAMBURGER ================= */

.menu-button {
  width: 36px;
  height: 36px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 4px;

  border: 1px solid #e5e7eb;

  border-radius: 8px;

  background: #f9fafb;

  cursor: pointer;
}


.menu-button span {
  width: 18px;
  height: 2px;

  display: block;

  background: #374151;

  border-radius: 2px;
}


/* ================= MOBILE SEARCH ================= */

.mobile-search {
  padding-bottom: 16px;
}


.mobile-search input {
  width: 100%;

  padding: 10px 20px;

  border: none;

  border-radius: 999px;

  background: #f3f4f6;

  font-size: 14px;

  outline: none;

  box-sizing: border-box;
}


.mobile-search input:focus {
  box-shadow: 0 0 0 2px #8b5cf6;
}


/* ================= MOBILE MENU ================= */

.mobile-menu {
  padding: 12px 0;

  border-top: 1px solid #f3f4f6;
}


.mobile-menu-item {
  width: 100%;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 12px;

  border: none;

  border-radius: 8px;

  background: transparent;

  color: #374151;

  font-size: 14px;

  text-align: left;

  cursor: pointer;
}


.mobile-menu-item:hover {
  background: #f9fafb;
}


.mobile-menu-item img {
  width: 20px;
  height: 20px;
}


.mobile-menu-badge {
  margin-left: auto;

  padding: 2px 8px;

  border-radius: 999px;

  background: #ef4444;

  color: #ffffff;

  font-size: 10px;
}


/* ================= TABLET ================= */

@media (min-width: 768px) {

  .navbar-container {
    padding: 0 24px;
  }


  .logo-image {
    width: 36px;
    height: 36px;
  }


  .logo-text {
    font-size: 20px;
  }


  .desktop-search {
    display: block;
  }


  .desktop-actions {
    display: flex;
  }


  .mobile-actions {
    display: none;
  }


  .mobile-search {
    display: none;
  }


  .mobile-menu {
    display: none;
  }

}


/* ================= LARGE DESKTOP ================= */

@media (min-width: 1024px) {

  .desktop-search {
    padding: 0 40px;
  }


  .desktop-actions {
    gap: 24px;
  }

}

