* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  padding-top: 80px;
}

nav {
  box-shadow: 0.1rem 0.1rem 0.2rem rgb(119, 118, 118);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: white;
  transition: all 0.3s ease;
  height: 70px; 
}

.nav1 {
  display: flex;
  align-items: center;
  flex: 1;
}

#logo {
  justify-content: center;
}

#logo img {
  height: 38px;
  object-fit: contain;
  cursor: pointer;
}

.nav11 {
  padding: 0rem 0.5rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.nav11 img {
  width: 25px;
}

.enter {
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}
.use {
  font-size: 0.7rem;
  color: #555;
  white-space: nowrap;
}

#searchbar {
  justify-content: flex-end;
}

.search {
  width: 100%;
  max-width: 250px;
  height: 38px;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  background: #fff;
}

.search img {
  height: 18px;
  opacity: 0.6;
}
.pro {
  display: flex;
}
.search input {
  height: 100%;
  width: 100%;
  font-size: 0.9rem;
  padding-left: 0.5rem;
  border: none;
  outline: none;
  background: transparent;
}

.profile {
  background-color: transparent;
  border: none;
  margin-left: 1rem;
  cursor: pointer;
}

.profile img {
  height: 24px;
}


.shoping {
  display: flex;
  /* grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); */
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-items: center;
  justify-content: space-evenly;
  max-width: 1400px;
  margin: 0 auto;
  padding:0rem 1rem;
}

.product-card {
  width: 30%;
  max-width: 300px;
  background: #fff;
  transition: box-shadow 0.3s;
}

.image-box {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .image-box img {
  transform: scale(1.05);
  cursor: pointer;
}

.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  cursor: pointer;
  color: #000;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info {
  padding: 10px 5px;
  text-align: left;
}

.product-info h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 5px 0;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price {
  font-size: 16px;
  font-weight: bold;
}

.footer {
  background: #f8eee6;
  padding: 40px 20px;
  margin-top: 4rem;
}
.footer-top h3 {
  text-align: center;
  margin-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  color: #444;
}
.mt {
  margin-top: 40px;
  text-align: center;
}
.footer-bottom {
  margin-top: 50px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.company {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 12px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.social span img {
  cursor: pointer;
  width: 24px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 120px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  }
  .nav1:first-child {
    display: none;
  } 

  #logo {
    width: 50%;
    justify-content: flex-start;
  }
  #searchbar {
    width: 50%;
  }

}


  @media (max-width: 480px) {
 
  body {
    padding-top: 95px !important;
    padding-left: 5px;
    padding-right: 5px;
  }

  nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; 
    background-color: white;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
  }

  .nav1:first-child {
    display: none !important;
  }

  .section1 {
    gap: 0;
  }

  #logo img {
    height: 32px;
  }

  #searchbar {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    height: 25px;
    margin-top: -1rem;
  }
  .search{
    height: 28px;
    font-size: 0.8rem;
  }
  .pro img{
    height: 20px;
  }

  #logo {
    display: flex;
    justify-content: center;
  }
  #logo img{
    top: 0;
  }
   .shoping {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    padding: 0px;
  }
  .product-card{
    width: 47%;
  }

  .product-info h4 {
    font-size: 11px;
  }
  .price {
    font-size: 13px;
  }

}

@media (max-width: 400px) {
  #logo img {
    width: 108px;
  }

}