/* Reset & Base */
* {
  margin: 0; 
  padding: 0;     
  box-sizing: border-box; 
}

body {
  font-family: "Poppins", sans-serif !important;
  background-color: white;
  margin: 0;
}

/* Navbar */
.navbar {
  font-family: "Poppins", sans-serif !important;
  font-weight: 500;
  letter-spacing: 0.4px;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background-color: white;
  color: black;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 60px;
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Left side */
.left-side {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logo {
  font-size: 1.7rem;
  font-weight: bold;
}

.logo img {
  height: 60px;      /* ← image ki height control karega */
  width: auto;       /* ← width automatically adjust hogi */
  object-fit: contain; /* image distort nahi hogi */
  margin-top: 6px;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 50px;
}

.nav-links li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: blue;
}

.right-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: nowrap; /* ❌ wrapping band karo taaki upar jump na kare */
  width: 100%;
  margin-left: 20px;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 5px;

  flex: 0 1 700px;   /* 👈 base width reduced (responsive bhi rahe) */
  max-width: 650px;  /* 👈 upper limit */
  min-width: 260px;  /* 👈 safe for smaller screens */
}

.search-container input {
  flex: 1;
  height: 40px;
  padding: 0 10px;
  border-radius: 5px;
  outline: none;
  border: none;
  background: rgb(231, 246, 248);
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

.magnifying_glass {
  height: 40px;
  padding: 0 10px;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  background: rgb(231, 246, 248);
  justify-items: center;
  align-items: center;
  text-align: center;
  margin-right: -7px;
}

#magnifying_glass {
  margin-top: 12px;
  color: rgb(169, 169, 169);
}

.search-container button {
  height: 30px;
  padding: 0 12px;
  border-radius: 3px;
  background-color: rgb(68, 68, 255);
  cursor: pointer;
  color: white;
  border: none;
  outline: none;
}

/* Profile / Cart / Chat links */
.add-to-cart-link {
  color: black;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  vertical-align: middle;   /* ✅ icon + text ek line me align */
  align-items: center;      /* ✅ vertically perfect center */
  gap: 6px;                 /* ✅ icon-text gap */
  transition: color 0.3s ease;
  margin-left: 15px;
  white-space: nowrap;      /* ✅ text ko next line me jane se roke */
}

.add-to-cart-link i {
  font-size: 1.2rem;
}

.add-to-cart-link:hover {
  color: blue;
}

/* Hamburger for mobile */
/* Hamburger for mobile */
.hamburger {
  display: none;
  font-size: 1.2rem; 
  cursor: pointer;
  background-color: white;
  color: black;
  padding: 5px; 
  border: none;
  -webkit-tap-highlight-color: transparent;
  margin-left: 15px;
}

/* Nav Links default (desktop) */
.nav-links {
  display: flex;              
  flex-direction: row;
  gap: 50px;
  position: static;
  width: auto;
  max-width: none;
  background-color: transparent;
  margin: 0;
  padding: 0;
  align-items: center;
  text-align: center;
  transition: none;         
}

.footer {
  background-color: #111;
  color: #ddd;
  padding: 40px 20px;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  text-align: center;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-column h3, .footer-column h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-column p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #bbb;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #ff6f61;
}

/* 🌐 Social Icons */
.social-icons a {
  color: white;
  background: #222;
  border-radius: 50%;
  padding: 8px;
  margin-right: 8px;
  display: inline-block;
  transition: 0.3s;
}

.social-icons a:hover {
  background: #ff6f61;
  transform: scale(1.1);
}

/* Bottom Section */
.footer-bottom {
  border-top: 1px solid #333;
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 30px 15px;
  }
  .footer-column h4 {
    font-size: 1rem;
  }
}


/* Responsive - mobile */
/* Responsive - mobile */
@media(max-width: 900px) {

  /* Sidebar container */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    width: 80%;
    max-width: 300px;
    background-color: #fff;
    color: #333;
    position: absolute;
    top: 60px;
    right: 0;
    margin: 0 auto;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.3s ease;
    pointer-events: none;
    border: none; /* removed test border */
  }

  /* Active state - when hamburger clicked */
  .nav-links.active {
    max-height: 1000px;
    padding: 10px 0;
    pointer-events: auto;
  }

  /* Sidebar list items */
  .nav-links li {
    list-style: none;
    width: 100%;
  }

  /* 🌈 Sidebar link styles (Flipkart style) */
  .nav-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    background-color: #ffffff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    text-align: left;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
  }

  /* When sidebar active — show links */
  .nav-links.active li a {
    opacity: 1;
    transform: translateX(0);
  }

  /* Hover effect — soft Flipkart blue */
  .nav-links li a:hover {
    background-color: #f1f3f6;
    color: #2874f0;
    transform: translateX(5px);
  }

  /* Cart link — slightly orange hover */
  .nav-links li.add-to-cart-link-item a:hover {
    background-color: #fff3e0;
    color: #ff7a00;
  }

  /* Hamburger button visible */
  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 1100;
  }

  /* Right-side (no effect here) */
  .right-side {
    gap: 10px;
    flex-wrap: nowrap;
  }

  /* Search container (unchanged, adjusted for space) */
  .search-container {
    width: auto;
    flex: 1;
  }

  .search-container input {
    width: 100%;
  }

  /* Logo untouched */
  .logo {
    margin-right: 20px;
  }

  /* Hide desktop cart button */
  .right-side .add-to-cart-link {
    display: none;
  }

  /* Sidebar special cart link */
  .nav-links li.add-to-cart-link-item {
    display: block;
    width: 100%;
    margin: 6px 0;
  }

  /* Sidebar cart link design */
  .nav-links li.add-to-cart-link-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 12px 18px;
    background-color: #ffffff;
    border-radius: 6px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 0;
    margin: 0;
    position: relative;
    top: -5px;
  }

  .nav-links li.add-to-cart-link-item a i {
    position: relative;
    left: -4px;
  }
}

/* Ensure desktop links have no bullets */
.nav-links li {
  list-style: none;
}

/* Small screens (mobile tweaks) */
@media(max-width: 450px) {
  .search-container {
    position: relative;
    right: 25px;
    min-width: auto;
    gap: 2px;
    margin: 0;
  }

  .left-side {
    gap: 5px !important;
  }

  .hamburger {
    margin-left: -15px;
  }

  .navbar {
    padding: 10px 10px;
  }
}
