/* body */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "Arrial", sans-serif;
  margin: 0 auto;
  max-width: 1200px;
}

/* header */
.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 10px 3px;
  color: #3a3837;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.logo {
  font-weight: bold;
  font-size: 20px;
  color: #3a3837;
}

i {
  color: #8b7d76;
}



.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  color: #3a3837;
  margin-left: 15px;
}
.nav-links a:hover {
  color: #cac2bd;
}


/* herro sectin */

.hero {
  width: 100%;
  height: 200px;
  background-color: #201d33;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 2rem;
  max-width: 600px;
}

.hero p {
  font-size: 1rem;
  margin-top: 0.5rem;
  max-width: 600px;
}

/* filtering section */

.filtering {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto;
  width: 100%;
  max-width: 1200px;
}

#Categories,
#featured,
#Price {
  padding: 5px 10px;
}

/* all products shop card */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
 

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}


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


.card h3 {
  font-size: 1.1rem;
  margin: 0.75rem;
  color: #333;
}

.card p {
  font-size: 0.9rem;
  margin: 0.4rem 0.75rem;
  color: #666;
}


.card p:nth-of-type(1) {
  font-weight: bold;
  color: #1a73e8;
}


.card .description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2em;
  max-height: 2.4em;
}


.quick-preview {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  display: none;
  transition: opacity 0.3s;
}

.card:hover .quick-preview {
  display: block;
}


.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
}

.product {
  padding: 20px;
  background-color: #f9f9f9;
}







/* batanka yar ee si fudud page kor imaanayo */

html { scroll-behavior: smooth; }

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #201d33;
  color: #fff;
  font-size: 18px;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}










/* footer */

footer {
  background-color: #151722;
  color: white;
  text-align: left;
  padding: 15px 150px;
  margin-top: 30px;
}

footer i {
  color: white;
  font-size: 20px;
  text-align: center;
  padding-top: 15px;
}

.footer-navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px 10px;
  border-bottom: 0.1px solid #898a8a;
}

footer p {
  color: #aaaeb1;
  font-size: 100;
  line-height: 1.6;
}
.social-media. {
  color: white;
}

.footer-links {
  display: flex;
  flex-wrap: column;
  justify-content: space-between;
  padding: 50px 10px;
  margin: 10px 0;
  border-bottom: 0.1px solid #898a8a;
}
.quick-links {
  line-height: 1.6;
}
.help {
  line-height: 1.6;
}

.contact {
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  flex-wrap: column;
  justify-content: space-between;
  padding: 5px 10px;
  margin-top: 5px;
}

footer a {
  text-decoration: none;
  font-size: 1rem;
  color: #aaaeb1;
  margin-left: 15px;
}

footer a:hover {
  color: #cac2bd;
}







  @media screen and (max-width: 768px) {

 .navbar {
    display: flex;
    justify-content: center;
    flex-direction: column;
   
  }

  .nav-links {
    flex-direction: column;
 
    margin-top: 10px;
  }
  .cards {
  display: flex;
  flex-direction: column;
}


  .card img {
    height: 300px;
    width: 100%;
    object-fit: contain;
  }




  .hero {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

.footer-links,
  .footer-navbar,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  footer {
    padding: 15px 20px;
  }



}



  @media screen and (max-width: 480px) {

  .navbar {
    display: flex;
    justify-content: center;
    flex-direction: column;
  
  }

  .nav-links {
    flex-direction: column;

    margin-top: 10px;
  }
}










