/* ===================== */
/* NAVBAR */
/* ===================== */
nav {
  transform-style: flat;
  perspective: none !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 15px 30px;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.4),
              0 0 80px rgba(255, 107, 0, 0.1) inset;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 30px);
  max-width: 1200px;
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--brand);
  text-shadow: 1px 1px 8px rgba(255, 107, 0, 0.7);
  z-index: 1001;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  margin-left: 15px; /* Add spacing between cart and hamburger */
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  font-size: 1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.cart {
  font-size: 1.4rem;
    position: relative;

  cursor: pointer;
  color: var(--text);
  transition: 0.3s;
  z-index: 1001;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff6b00;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}
.cart:hover {
  color: var(--brand);
}

/* Mobile Icons Container */
.mobile-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ===================== */
/* RESPONSIVE DESIGN */
/* ===================== */

/* Tablet */
@media (max-width: 992px) {
  nav {
    padding: 12px 20px;
    top: 10px;
    width: calc(100% - 20px);
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .logo {
    font-size: 1.3rem;
  }
}

/* Mobile (Phones) */
@media (max-width: 768px) {
  nav {
    padding: 10px 15px;
    border-radius: 10px;
    top: 10px;
    width: calc(100% - 20px);
  }
  
  /* Show hamburger menu */
  .hamburger {
    display: flex;
  }
  
  /* Hide regular nav links by default on mobile */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    padding-top: 80px;
    margin: 0;
    z-index: 1000;
    border-left: 2px solid var(--brand);
    display: flex !important; /* Important to override inline styles if any */
  }
  
  /* Show nav links only when menu is active */
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
  }
  
  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-links li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links li:nth-child(5) { transition-delay: 0.5s; }
  
  .nav-links a {
    font-size: 1.2rem;
  }
  
  .logo {
    font-size: 1.2rem;
    flex: 1;
  }
  
  /* Cart positioning */
  .cart {
    font-size: 1.3rem;
  }
  
  /* Hamburger animation when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
}

@media (max-width: 600px) {
  nav {
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0 0 16px 16px;
    padding: 12px 16px;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  nav {
    padding: 8px 12px;
    top: 8px;
    width: calc(100% - 16px);
  }
  
  .nav-links {
    width: 85%;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .cart {
    font-size: 1.2rem;
  }
  
  .hamburger {
    margin-left: 10px;
  }
  
  .hamburger span {
    width: 22px;
    height: 2.5px;
  }
}

/* Very Small Phones */
@media (max-width: 360px) {
  nav {
    padding: 6px 10px;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .nav-links a {
    font-size: 1rem;
  }
  
  .cart {
    font-size: 1.1rem;
  }
}