/* Navbar Ortak Stiller */
nav.navbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

nav.navbar .logo img {
  height: 40px;
  width: auto;
}

nav.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
  margin-left: auto;
  margin-right: 60px;
}

nav.navbar ul li a {
  text-decoration: none;
  color: #555;
  font-size: 16px;
  transition: color 0.3s;
}

nav.navbar ul li a:hover {
  color: #007bff;
}

nav.navbar .cart-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s;
}

nav.navbar .cart-icon a {
  text-decoration: none;
  color: #333;
}

nav.navbar .cart-icon:hover {
  transform: translateY(-50%) scale(1.1);
}

.cart-badge {
  position: absolute;
  transform: translate(-12px,-38px);
  background: #007bff;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    order: 2;
  }

  nav.navbar .container {
    position: relative;
  }

  nav.navbar ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 0;
    margin-right: 0;
  }

  nav.navbar ul.active {
    max-height: 400px;
  }

  nav.navbar ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  nav.navbar .cart-icon {
    position: static;
    transform: none;
    margin-left: 50%;
    order: 1;
    margin-right: 15px;
  }

  nav.navbar .cart-icon:hover {
    transform: scale(1.1);
  }
}
