/* ================================
   MAIN HEADER (Desktop)
================================ */
.main-header {
  display: flex;
  align-items: center;
  /* Standard Desktop Padding */
  padding: 15px clamp(20px, 5vw, 70px);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 70px;
  cursor: pointer;
  display: block;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: clamp(20px, 4vw, 50px); /* Responsive gap between links */
}

.nav-links a {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  /* Standardized Font Size */
  font-size: 16px;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #27ae60;
}

/* ORDER BUTTON */
.btn-order {
  background: #27ae60;
  padding: 10px 22px;
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-order:hover {
  background: #1e8449;
}

/* CART ICON */
.cart-icon {
  flex: 0 0 auto;
  margin-left: 20px;
}

.cart-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

/* ================================
   MOBILE FIX (Auto-Adjust)
================================ */
@media (max-width: 768px) {
  .main-header {
    padding: 10px 15px;
    justify-content: space-between;
  }

  /* ⭐ ADD THIS — creates spacing between logo and first link */
  .nav-links {
    margin-left: 15px;
    gap: 15px;
  }

  .logo img {
    height: 50px;
  }

  /* Standard Mobile Font Size */
  .nav-links a {
    font-size: 14px;
  }

  /* Hide order button on very small screens if it crowds the links */
  @media (max-width: 480px) {
    .btn-order {
      display: none;
    }
  }

  .cart-icon img {
    width: 24px;
    height: 24px;
  }

  .cart-icon {
    margin-right: 0;
  }
}
/* ================================
   ⭐ MOBILE HEADER (MAIN PAGE ONLY)
================================ */
.mobile-header-main {
  display: none;
}

@media (max-width: 768px) {
  /* Hide desktop header ONLY on main page */
  .main-page-body .main-header {
    display: none !important;
  }

  /* Show mobile header */
  .main-page-body .mobile-header-main {
    display: block;
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .mobile-header-top-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
  }

  .mobile-logo-main img {
    width: 55px;
  }

  .mobile-cart-icon-main {
    position: relative;
  }

  .mobile-cart-icon-main img {
    width: 32px;
    height: 32px;
  }

  #cart-count-mobile-main {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #27ae60;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
  }

  .mobile-menu-btn-main {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    background: #f8f8f8;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }

  .mobile-dropdown-main {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid #eee;
  }

  .mobile-dropdown-main.active {
    display: flex;
  }

  .mobile-dropdown-main a {
    padding: 14px 20px;
    font-size: 17px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
  }

  .mobile-dropdown-main a:last-child {
    border-bottom: none;
  }
}
