a{
  color: #000;
  text-decoration: none;
}

body {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
}

/* Make the navbar sticky + animation */
header {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 180px; /* vetëm padding horizontal */
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
  transition: height 0.3s ease;
}

/* Smaller navbar when scrolled */
header.scrolled {
  height: 65px; /* originally 100px, reduced by 20px */
  opacity: 0.9;
  padding-top: 0;
  padding-bottom: 0;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-family: "Roboto", Arial, sans-serif;
}

.cart {
  font-weight: 600;
  font-family: "Roboto", Arial, sans-serif;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 30px;
  height: 4px;
  background: black;
  transition: 0.3s;
}
.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 998;
  display: flex;
  flex-direction: column;

  background: white;
  border-top: 1px solid #ddd;

  /* folded state */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  pointer-events: none;

  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
}

.mobile-menu a {
  padding: 10px 20px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  font-family: "Roboto", Arial, sans-serif;
}

/* opened state */
.mobile-menu.open {
  max-height: 300px; /* adjust if you have more links */
  opacity: 0.9;
  padding: 20px 20px;
  margin-top: -3px;
  pointer-events: auto;
}

/* mobile-only */
@media (min-width: 769px) {
  .mobile-menu {
    display: none; /* hide it completely on desktop */
  }
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (min-width: 1201px) {
  header {
    padding: 0 180px;
  }
}

@media (max-width: 1200px) and (min-width: 993px) {
  header {
    padding: 0 120px;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  header {
    padding: 0 80px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 0 20px;
    justify-content: space-between;
  }
  nav ul {
    display: none;
  }
  .cart {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}


/* wrapper to control spacing */
.cart-favorites-wrapper {
  display: flex;
  align-items: center;
  gap: 20px; /* max 20px gap from cart */
}

/* favorites button */
.favorites {
  cursor: pointer;
  font-size: 18px;
  color: #111;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.favorites:hover {
  color: #e00; /* heart hover effect */
}

.favorites.active i {
  color: #e00;
}

/* Optional: smaller on mobile */
@media (max-width: 768px) {
  .cart-favorites-wrapper {
    gap: 12px;
  }

  .favorites {
    font-size: 16px;
  }
}

/* Hide favorites heart on small screens */
@media (max-width: 768px) {
  .cart-favorites-wrapper .favorites {
    display: none;
  }
}
