body {
    
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}

header {
      /* background: linear-gradient(to right, #667eea, #764ba2, #4a2e75); */
            background: linear-gradient(to right, #4a2e75 , #764ba2, #667eea);

      color: white;
    width: 100%;
    position: fixed;
    top: 0;
    height: 70px;
  

    left: 0;
    z-index: 50;
}   /* Scrolled Navbar */

.navbar.scrolled {
      background: #1b1b1f; /* Solid dark */
      height: 68px;
      margin-top: 0px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }

.navbar a h5 {
    display: block;
    color: #ffff;
    font-size: larger;
    font-family: 'Times New Roman', Times, serif;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding-left:35px ;
    margin-top: 5px;
    padding-right:65px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

.logo img {
    height: 50px;
    width: 65px;
    border-radius: 4px;
}

.nav-links {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    margin: 0 8px;
    padding: 10px 13px;
    font-weight: 600;
    /* transition: color 0.2s; */
    font-size: 14px;
}

.nav-links a:hover {

     /* border: 1px solid #00ccff; */
  box-shadow: 0 0 7px #e4e9ff;


  /* background: linear-gradient(to right, #d946ef, #a855f7, #6366f1); */
border-radius: 25px;
}

.search-box {
    position: relative;
    margin: 0 8px;    color: #fff;

}
.search-box input:hover{
     box-shadow: 0 0 10px #e4e9ff;
}
.search-box input:focus{
     box-shadow: 0 0 10px #e4e9ff;
}
.search-box input {
    padding: 10px 55px 10px 16px;
    border: 1px solid #a071e6;
    border-radius: 9999px;
    background: transparent;
    backdrop-filter: blur(5px);
    color: #fff;
    transition: all 0.2s;
}
.search-box input::placeholder {
    color: #fff; /* ya white bhi likh sakte hain */
    opacity: 1; /* optional: default thoda fade hota hai */
}
/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content Hidden by Default */
.dropdown-content {
    display: none;
          background: linear-gradient(to right, #667eea, #764ba2, #4a2e75);

    position: absolute;
    min-width: 129px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1000;
}

/* Product links - special style */
.mobile-menu-content a.product-link {
  background: linear-gradient(45deg, #00e5ff, #ff00cc);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  margin: 8px 0;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Hover effect for product links */
.mobile-menu-content a.product-link:hover {
  background: linear-gradient(45deg, #ff00cc, #00e5ff); /* reverse gradient */
  transform: scale(1.05);
}
/* Dropdown Links */
.dropdown-content a {
    color: #ffff;
    border-bottom: 0.4px solid #676767;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
}
.dropdown-content a:hover {
  box-shadow: none;
}
/* Show Dropdown on Hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Arrow Cursor on Hover */
.dropdown a {
    cursor: pointer;
}


.search-box input:focus {
    /* background: ; */
    outline: none;
    color: #fff;
    
}

.search-box button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    
    color: #ffff;
}

.action-buttons {
    display: none;
}

.action-buttons a {
 text-decoration: none;
}



.signup-btn {
   background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 999px;
      padding: 8px 20px;
      color: white;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s ease;
}

.signup-btn:hover {
     box-shadow: 0 0 10px #e4e9ff;
}

.menu-btn,
.mobile-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: white;
    font-size: 19px;
}

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
      background: linear-gradient(to right, #667eea, #764ba2, #4a2e75);
}

.mobile-menu.active {
    max-height: 500px;
}

.mobile-menu-content {
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
}

.mobile-menu-content a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    align-items: center;
}


.mobile-menu-content .signup-btn {
        color: #fff;

}



.mobile-menu-content .search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.mobile-menu-content input {
    width: 100%;
    padding: 8px 32px 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.mobile-menu-content button {
    position: absolute;
    right: 10px;
    margin-top: 20px;
    top: 8px;
    background: transparent;
    border: none;
    color: #9ca3af;
}

.spacer {
    height: 64px;
}

.grid-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;


}

@media (min-width: 768px) {

    .nav-links,
    .search-box,
    .action-buttons {
        display: flex;
        align-items: center;
    }
    

    .grid-box {
        background: #f3f4f6;
        padding: 0px;
        border-radius: 8px;
    }

    .grid-section {
        grid-template-columns: repeat(3, 1fr);
    }
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding-left:35px ;
    padding-right:65px;
}
    .menu-btn,
    .mobile-search-btn {
        display: none;
       
    }
}
@media (min-width: 362px) {

  


    .menu-btn,
    .mobile-search-btn {
        padding-right: 30px;
       
    }
    /* .logo img{
        height: 20px;
        width: 25px;
    } */
}
@media (max-width: 450px) {
    .navbar a h5 {
        display: none;
    }

    .navbar a {
        font-size: 16px;
    }

    .mobile-menu-content {
        text-align: center;
        padding: 20px;
        align-items: center;
     
    }
    .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding-left:35px ;
    padding-right:65px;
}
}

@media (max-width: 1030px) {
    .navbar {
        /* justify-content: ; */
        padding: 0 20px;
        margin-left: 0; /* Removed */
        gap: 10px;
    }

    .navbar .nav-links {
        display: none;
    }
}
 @media (max-width: 768px) {
  header{
    height: 70px;
    align-items: center;
}
        .navbar {
        padding-top:20px ;
       
    }
    .navbar.scrolled {
    height: 80px;
align-items: center;
padding-top:0px ;
}
    .menu-btn{
       font-size: 29px;
       font-weight: 600;
       padding-right: 12px;
    }
    .search-box input{
        width: 200px;
        height: 42px;
    }
     .mobile-menu {
    position: relative;
    top: 20px; 
  } .action-buttons {
        display: flex;
        align-items: center;
        gap: 40px;
        justify-content: space-between;
    }
    

  .mobile-menu {
    position: absolute;
    top: 100%;  
    left: 0;
    width: 100%;
  }

 
  
 .menu-btn,
    .mobile-search-btn {
        display: block;
       
    }


} 


.dropdown-content a:hover {
    background:none;
        border-bottom: 0.4px solid #fff;
 
    border-radius: 0px;

}












/* cart icon */
/* Cart Icon Style */
.cart-link {
    display: inline-flex; /* or flex */
    position: relative;
    margin-left: 15px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    z-index: 60; /* make sure it's above navbar layers */
}


.cart-link i {
  font-size: 22px;
  transition: transform 0.2s ease-in-out;
}

.cart-link:hover i {
  transform: scale(1.1);
  color: #ffcc00; /* highlight on hover */
}

/* Badge (small number) */
#cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: crimson;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  display: inline-block;
  min-width: 18px;
  text-align: center;
}



@media (max-width: 768px) {
    .cart-link {
        display: flex; /* still visible */
        margin-left: 10px;
        font-size: 22px;
    }
}


@media (max-width: 650px) {
   .signup-btn {
      display: none;
   }
    
}


@media (max-width: 515px) {
  .navbar a h5{
    display: none;
  }
    
}







/* ipad air ,ipad pro ,surface pro 7  pr menu toggler nhi aarha */


/* ====== Tablet & iPad (<= 1024px) ====== */
@media ( max-width: 1024px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
  } .mobile-menu-content a {
text-align: center;
    align-items: center;
}

  /* hide nav links, show menu button */
  .navbar .nav-links {
    display: none;
    flex-direction: column;
    background: #0b0c10;
    width: 100%;
    position: absolute;
    top: 80px; /* adjust for header height */
    left: 0;
    padding: 15px 20px;
    gap: 15px;
  }

  .navbar .nav-links.active {
    display: flex; /* show when toggle button clicked */
  }


  .menu-btn{
    display: none;
  }

}

/* ====== Mobile (<= 768px) ====== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 2px 15px;
  }

 
  .menu-btn {    padding-right: 10px;

    display: block;
    font-size: 26px;
    font-weight: 600;
    cursor: pointer;
  } 
  .search-box input {
    width: 200px;
    height: 40px;
  }

  .cart-link {
    font-size: 20px;
    margin-left: 10px;
  }
}

/* ====== Small Mobiles (<= 450px) ====== */
@media (max-width: 450px) {
  .menu-btn {
    font-size: 24px;
    margin-right: 15px;
  }

  .search-box input {
    width: 160px;
  }
 .mobile-menu-content a {
text-align: center;
    align-items: center;
}
  .cart-link {
    font-size: 18px;
  }
}
/* //420 sai 380 tak do meadia queri     jis mai toggler btn bhi ho aur element aik doosrai pr charhain naa */


/* ===== Between 420px and 400px ===== */
@media (max-width: 420px) and (min-width: 401px) {
  .navbar {
    flex-wrap: wrap;
    padding: 2px 12px;
    align-items: center;
  }
   .mobile-menu-content a {
text-align: center;
    align-items: center;
}
header{
    align-items: center;
}
  .menu-btn {
    display: block;
    font-size: 24px;
    margin-right: 10px;
  }

  .search-box input {
    width: 150px;
    height: 36px;
    margin: 0px;
  }

  .cart-link {
    font-size: 18px;
    margin-left: 8px;
  }

  .navbar .nav-links {
    top: 70px; /* below header */
  }
}

/* ===== Between 400px and 380px ===== */
@media (max-width: 400px) and (min-width: 360px) {
  .navbar {
    flex-direction: row;   /* ✅ keep in one line */
    align-items: center;   /* vertically center */
    justify-content: unset; /* space elements */
    gap: 5px;
    padding: 2px 6px;
  } .mobile-menu-content a {
text-align: center;
    align-items: center;
}

  .menu-btn {
    display: block;
    font-size: 22px;
    position: absolute;
    right: 0px;
    margin: 0; /* ✅ remove bottom margin */
  }

  .search-box input {
    width: 180px;
    height: 34px;
  }

  .cart-link {
    font-size: 17px;
     position: absolute;
    right: 50px;
  }

  .navbar .nav-links {
    width: 100%;
    top: 55px; /* adjust based on navbar height */
  }
}



/* iPhone SE Portrait */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 375px) 
  and (orientation: portrait) {
     .mobile-menu-content a {
text-align: center;
    align-items: center;
}
    .menu-btn {
    display: block;
    font-size: 22px;
    position: absolute;
    right: 20px;
    margin: 0; /* ✅ remove bottom margin */
  }
 .cart-link {
    font-size: 17px;
     position: absolute;
    right: 77px;
  }

    /* Apni CSS yahan likhiye */
}






/* Samsung Galaxy S8+ Portrait */
@media only screen 
  and (min-device-width: 360px) 
  and (max-device-width: 360px) 
  and (orientation: portrait) {
    
    body {
       padding: 0px;
       margin: 0px;
       box-sizing: border-box;
    }
      .mobile-menu-content a {
text-align: center;
    align-items: center;
}
      .menu-btn {
    display: block;
    font-size: 22px;
    position: absolute;
    right: 20px;
    margin: 0; /* ✅ remove bottom margin */
  }
 .cart-link {
    font-size: 17px;
     position: absolute;
    right: 77px;
  }
}


/* Tablets (iPad Air, iPad Pro, Surface Pro) */
@media (min-width: 769px) and (max-width: 1024px) {
    .menu-btn {
        display: block;
        font-size: 26px;
        cursor: pointer;
        position: absolute;
        right: 20px;
        top: 10px; /* adjust based on header height */
    }
    .mobile-menu-content a {
text-align: center;
    align-items: center;
}
 .cart-link {
    font-size: 17px;
     position: absolute;
    right: 97px;
  }
    .signup-btn {
      display: none;
   }
 
    .navbar .nav-links {
        display: none; /* hide normal links */
    }
}
      /* iPhone 12 Portrait */
@media only screen 
  and (min-device-width: 390px) 
  and (max-device-width: 390px) 
  and (orientation: portrait) {
    
   .menu-btn {
        display: block;
        font-size: 26px;
        cursor: pointer;
        position: absolute;
        right: 10px;
    }
 .cart-link {
    font-size: 17px;
     position: absolute;
    right: 75px;
  }
  }