
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
  font-family: Assistant, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header{
  background-color: #131921;
  color: white;
  display: flex;
  height: 5rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  border-bottom: 1px solid white;
}
.header p span{
  color:#9B5DE0 ;
  font-weight: 900;
}
.logo img{
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
}
.logo{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo p{
  font-size: 1.2rem;
  font-weight: 600;
}

.nav nav a{
  text-decoration: none;
  margin: 1rem;
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 700;
  background-color: transparent;
  transition: all 0.3s ease;
  position: relative;
}

/* Active state for nav links */
.nav nav a.active {
  color: white !important;
}

.nav nav a.active::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 5px;
  background-color: #9B5DE0;
}

/* Different colors for each nav link */
.nav nav a[href="#men-section"].active::after {
  background-color: #F25912;
}

.nav nav a[href="#women-section"].active::after {
  background-color: #FF3F7F;
}

.nav nav a[href="#kids-section"].active::after {
  background-color: #FFC400; 
}

.nav nav a[href="#grocery-section"].active::after {
  background-color: #4caf50;
}

.nav nav a[href="#gadgets-section"].active::after {
  background-color: #0046FF; 
}

/* Hover effect */
.nav nav a:hover {
  color: white;
}

.nav nav a sup{
  color: #9B5DE0;
}
.login{
  margin-right: 1.5rem;
  width: 14rem;
  display: flex;
  justify-content: space-around;
}
.Signup{
  height: 3rem;
  width: 6rem;
  margin-left: .5rem;
  border-radius: .5rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  
}
.Signup:hover{
 color: #9B5DE0;
}

#login-fun{
  font-size: 30px;
  border-radius: 50%;
  height: 40px;
  width: 40px;
}

#signup-fun{
  margin-top: 2px;
  font-size: 26px;
}

body{
  min-height: 100vh;
}

main{
  padding-top: 5rem;
}

.profilePicture{
  width: 100%;
  
}

.profilePicture p{
  font-size: 18px;
  font-weight: 700;
}
.profilePicture .submit{
  margin-top: 20px;
  margin-right: 20px;
  height: 2.5rem;
  width: 7rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  font-size: 1rem;
  font-weight: 700;
}
.profilePicture input[type="file"]{
  color: transparent;
}

.picture img{
  height: 100%;
  width: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.profilePicture input[type="file"]::-webkit-file-upload-button{
  height: 2.4rem;
  width: 7rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  background-color: #9B5DE0;
}


/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.searchbar{
  display: flex;
  align-items: center;
  height: 35px;
  width: 400px;
  background: #f5f5f6;
  color: #696e79;
  border-radius: 3px;
}

.searchicon{
  height: 34px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  width: 5%;
}

.searchinput{
  height: 34px;
  display: flex;
  align-items: center;
  width: 95%;
  padding: 0 0 0 1rem;
}

.searchinput input{
  height: 34px;
  display: flex;
  align-items: center;
  width: 100%;
  border: none;
  outline: none;
  background: #f5f5f6;
  color: #696e79;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.humberger .searchbar .searchinput input{
  padding-left: 10px;
}

.searchinput i{
  padding-right: 30px;
  cursor: pointer;
}

.searchinput input::placeholder{
  color: #696e79;
  opacity: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.maincontainer{
  background-color: antiquewhite;
  height: 88vh;
  width: 80vw;
  max-width: 900px;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.modal-overlay.show .maincontainer {
  transform: scale(1);
}

.first{
  width: 45vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
}


.gmail,
.pass{
  width: 100%;
}

#mobile,
#password{
  height: 3rem;
  width: 100%;
  padding-left: 1rem;
  border: none;
  outline: none;
  border-radius: 5px;
  font-size: 1rem;
}

.submit{
  height: 2.5rem;
  width: 7rem;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  background-color: #9B5DE0;
  border-radius: .8rem;
  cursor: pointer;
}

.secend{
  background-color: #9B5DE0;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 5rem 0 0 5rem;
}

.singn-log{
  text-decoration: none;
  color: #9B5DE0;
  font-weight: 600;
}

.secend i{
  font-size: 2rem;
  color: white;
  cursor: pointer;
  transition: transform 0.3s;
}

.secend i:hover{
  transform: rotate(90deg);
}
.logo i{
  visibility: hidden;
}

.humberger{
  background-color: rgba(0,0,0,0.9);
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 40%;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  transform:translateX(-100%);
  z-index: 999;
  padding-top: 4rem;
}

.AncherLink {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.AncherLink a{
  text-decoration: none;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-weight: 700;
  background-color: transparent;
  position: relative;
}

/* Active state for hamburger menu links */
.AncherLink a.active {
  background-color: #9B5DE0;
  padding-left: 1.5rem;
}

/* Different colors for each hamburger menu link */
.AncherLink a[href="#men-section"].active {
  background-color: #3498db; /* Blue for Men */
}

.AncherLink a[href="#women-section"].active {
  background-color: #e91e63; /* Pink for Women */
}

.AncherLink a[href="#kids-section"].active {
  background-color: #ff9800; /* Orange for Kids */
}

.AncherLink a[href="#grocery-section"].active {
  background-color: #4caf50; /* Green for Grocery */
}

.AncherLink a[href="#gadgets-section"].active {
  background-color: #0046FF; /* Purple for Gadgets */
}

.AncherLink a sup{
  color: #9B5DE0;
}

.AncherLink a:hover{
  background-color: #9B5DE0;
  padding-left: 1.5rem;
}


.humberger #cross{
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

.humberger.show2{
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}
@media screen and (max-width: 1265px){
  .searchbar{
    width: 300px;
  }
}

@media screen and (max-width: 1170px){
  .searchbar{
    width: 250px;
  }
}

@media screen and (max-width: 1110px){
  .searchbar{
    width: 350px;
  }

  .nav{
    display: none !important;
  }
}

@media screen and (max-width: 771px){
  .searchbar{
    width: 300px;
    margin-left: 30px;
  }
  .logo p{
    position: absolute;
    left: 65px;
  }
  .nav{
    display: none !important;
  }
}

@media screen and (max-width: 662px){
  .searchbar{
    width: 250px;
    margin-left: 30px;
  }
  .logo p{
    position: absolute;
    left: 65px;
  }
  .nav{
    display: none !important;
  }
}

@media screen and (max-width: 608px){
  .searchbar{
    width: 200px;
    margin-left: 30px;
  }
  .logo p{
    position: absolute;
    left: 65px;
  }
  .nav{
    display: none !important;
  }
}

@media screen and (max-width: 560px){
  .searchbar{
    width: 80%;
    margin: 10px;
    display: none;
  }
  .logo p{
    position: absolute;
    left: 65px;
  }
  .nav{
    display: none !important;
  }

  .humberger .AncherLink .searchbar{
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .humberger .AncherLink .searchicon{
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }

  .humberger .AncherLink .searchinput{
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
  }
}

@media screen and (max-width: 1110px) and (min-width: 561px){
  .humberger .AncherLink .searchbar{
    display: none !important;
    
  }
  .logo{
    margin-left: 24px;
  }

}

@media screen and (max-width: 1110px){
  .logo i{
    visibility: visible;
    font-size: 1.6rem;
    padding-left: 25px;
  }
  .logo img{
    display: none;
  }
  .logo{
    gap: 50px;
  }

}

@media screen and (max-width: 772px){
  .logo i{
    visibility: visible;
    font-size: 1.6rem;
    padding-left: 10px;
  }
  .logo img{
    display: none;
  }
  
}

@media screen and (max-width: 726px){
  .searchbar{
    width: 250px;
    margin-left: 10px;
  }
  .logo{
    gap:15px;
  }
  .logo p {
    position:static;
  }
}
@media screen and (max-width: 610px){
  .searchbar{
    width: 200px;
    margin-left: 10px;
  }
  .logo{
    gap:15px;
  }
  .logo p {
    position:static;
  }
  .searchinput input{
    font-size: 11px;
  }
  .searchinput input::placeholder{
    font-size: 11px;
  }
}

@media screen and (max-width: 561px){
  .logo p{
    margin-left: 35px;
  }
}

@media screen and (max-width: 449px){
  
#signup-fun {
  font-size: 1.2rem;
}
.login{
  justify-content: space-evenly;
}
#login-fun{
  height: 28px;
  width: 28px;
}
.logo p{
  margin-left: 1.8rem !important;
}

}
@media screen and (max-width: 240px){
  .logo p{
  margin-left: 1.2rem !important;
}
}


@media screen and (max-width: 560px){
  .searchbar{
    width: 80%;
    margin: 10px;
    display: none;
  }
  .logo p{
    position: absolute;
    left: 30px;
  }
}
@media screen and (max-width: 903px) {
  .logo img{
    visibility: collapse;
  }

  .logo{
    margin-left: 0;
  }
  .nav{
    display: none !important;
  }
   .logo i{
    visibility: visible;
    font-size: 1.6rem;
   }
  .login{
    width: 8rem;
    display: flex;
    margin-right: 3rem;
  }

  /* Second div hide but cross button visible */
  .maincontainer .secend{
    background-color: transparent;
    flex: 0;
    width: auto;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .maincontainer .first{
    width:100%;
  }
  .maincontainer .secend i{
    display: block;
    font-size: 1.8rem;
    color: #333;
  }

  .maincontainer {
    position: relative;
  }

  .header{
    width: 100%;
    padding: 0 1rem;
  }
  .login .Signup{
    height: 2rem;
    width: 5rem;
    font-size: .9rem;
    font-weight: 500;
  }
}

@media screen and (max-width: 860px){
  .login{
    gap: 30px;
  }
}

@media screen and (max-width: 727px){
  .login{
    gap: 40px;
  }
}

@media screen and (max-width: 448px){
  .logo img{
    visibility: hidden;
    display: none;
  }

  .logo p{
    margin-left: .8rem;
    font-size: .8rem;
  }

  .login .Signup{
    height: 1.5rem;
    width: 3rem;
    font-size: .5rem;
  }
  .login{
    margin-right: 40px;
  }
  .header{
    width: 100%;
    padding: 0;
    min-width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .login{
    margin-right: 1.5rem;
  }
  .nav{
    display: none;
  }
  .logo{
    margin-left: 10px;
  }
  .logo i{
    visibility: visible;
    font-size: 1.2rem;
   }
}
@media screen and (max-width: 397px){
  .header{
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo{
    margin-left: 10px;
  }
  .login{
    margin-right: 15px;
    gap: 0;
  }

  /* Second div background hide but cross button visible */
  .maincontainer .secend{
    background-color: transparent;
    flex: 0;
    width: auto;
    min-width: 0;
    padding: 0;
    border-radius: 0;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .maincontainer .secend i{
    display: block;
    font-size: 1.8rem;
    color: #333;
  }

  .maincontainer {
    position: relative;
  }
}
@media screen and (max-width: 440px){
  .maincontainer .first #mobile,
  .maincontainer .first #password{
    font-size: 0.7rem;
  }
  
  .maincontainer .first input::placeholder{
    font-size: 0.65rem;
  }

  .maincontainer .first button{
    font-size: 0.7rem;
    height: 2rem;
    width: 5rem;
  }

  .maincontainer .first p,
  .maincontainer .first a{
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 376px){
  .maincontainer .secend{
    top: 0.5rem !important;  /* Parent div এর position change */
    right: 0.1rem !important;
  }
  
  .maincontainer .secend i{
    font-size: 1.5rem;  /* Button size ছোট করলাম */
  }
  
  .maincontainer{
    width: 90vw;  /* Container slightly ছোট */
  }
}

@media screen and (max-height: 348px){
  .AncherLink{
    overflow-y: scroll;
  }
}

.sliderContainer{
  overflow: hidden;
  width: 100%;
  height: 200px;
  margin-top: .1rem;
  position: relative;
}

.myslide{
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  display: none; /* ✅ Initially sob slides hide thakbe */
}

.myslide img{
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.prev,.next{
  position: absolute;
  font-size: 18px;
  top: 50%;
  margin-top: -22px;
  width: auto;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  font-weight: bold;
  color: white;
  user-select: none;
  cursor: pointer;
  padding: 16px;
}

.next{
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.slidebarmenu{
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot{
  cursor: pointer;
  border-radius: 50%;
  background-color: #bbb;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  transition: background-color 0.6s ease;
}

.active, .dot:hover{
  background-color:#717171;
}

.slide-in{
  animation: slide-in 0.6s ease-out forwards;
}

.slide-out{
  animation: slide-out 0.6s ease-out forwards;
}

.slide-in-reverse{
  animation: slide-in-reverse 0.6s ease-out forwards;
}

.slide-out-reverse{
  animation: slide-out-reverse 0.6s ease-out forwards;
}

@keyframes slide-in{
  from{
    transform: translateX(100%);
  }
  to{
    transform: translateX(0);
  }
}

@keyframes slide-out{
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(-100%);
  }
}

@keyframes slide-in-reverse{
  from{
    transform: translateX(-100%);
  }
  to{
    transform: translateX(0);
  }
}

@keyframes slide-out-reverse{
  from{
    transform: translateX(0);
  }
  to{
    transform: translateX(100%);
  }
}

.men{
  text-transform: uppercase;
  color: #3e4152;
  letter-spacing: .15em;
  font-size: 1.8em;
  max-height: 5em;
  font-weight: 700;
  margin: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.mensAll{
  width: 90%;
  margin-left: 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
}

.men-card{
  height: auto;
  width: 190px;
  margin: 1px 3px 10px 1px;
  display: flex;
  flex-direction: column;
}

.men-card img{
  height: 280px;
  width: 100%;
  object-fit: cover;
  }

.Sponsored{
  margin: 3px 0 1px 0;
  color: rgba(135, 135, 135, 1.00);
  font-size: 12px;
  width: 100%;
}
.companyName{
  color: rgba(33, 33, 33, 1.00);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.productName{
  color: rgba(135, 135, 135, 1.00);
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
  font-size: 12px;
}

.prices{
  font-family: inter_semi_bold;
  font-size: 14px;
  color: rgba(33, 33, 33, 1.00);
}

.currentPrice{
  color: rgba(33, 33, 33, 1.00);
  font-weight: 700;
}

.discountPrice{
  color: rgba(135, 135, 135, 1.00);
  text-decoration-line: line-through;
}

.discountRate{
 color: #9B5DE0;
 font-weight: 700;
}
.discountRate i{
  font-size:12px;
  font-weight: 700;
}

@media screen and (max-width: 857px){
  .men-card{
    width: 230px !important;
  }
}
@media screen and (max-width: 780px){
  .men-card{
    width: 300px !important;
  }
}

@media screen and (max-width: 774px){
  .men-card{
    width: 228px !important;
  }
}

@media screen and (max-width: 770px){
  .men-card{
    width: 200px !important;
  }
}

@media screen and (max-width: 664px){
  .men-card{
    width: 170px !important;
  }
}


@media screen and (max-width: 575px){
  .men-card{
    width: 230px !important;
  }
}
@media screen and (max-width: 518px){
  .men-card{
    width: 200px !important;
  }
}

@media screen and (max-width: 455px){
  .men-card{
    width: 180px !important;
    height: 330px !important;
  }
}

@media screen and (max-width: 400px){
  .men-card{
    width: 250px !important;
    margin-top: 10px !important;
  }
}


