/* 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 */

.hero {
  color: #f8f9fa;
  text-align: center;
  background-image: url(/assets/herro\ pic.avif);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 200px;
  margin-bottom: 15px;
  

}

.hero-text {
  font-weight: bold;
  font-size: 48px;
  margin-bottom: 10px;
}
.hero-smalltext {
  margin-bottom: 30px;
}


.hero-buttons .button {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: white;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
    
}



.hero-buttons .buttona {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  background-color: transparent;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  border: 2px solid white;
  
}




.hero-buttons .buttona:hover {
  background-color: rgb(59, 80, 57);
}


/* categrory */
.titleCategory {
  text-align: center;
}

.titleCategory h2 {
  font: bold;
  margin-bottom: 10px;
}

.titleCategory p {
   margin-bottom: 30px;
  font: bold;
}


/* card category */
.cardss {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
  color: white;
}

.card-category {
  position: relative; 
  background-color: rgb(111, 106, 106);
  color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 240px;
  padding: 15px 20px ;
  height: 250px;
  transition: transform 0.2s;
  overflow: hidden; 
}

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

.card-category img {
 display: block;
  width: 100%;
  height: auto;
}

.card-category p,
.card-category h3 {
  position: absolute; 
  bottom: 0; 
  color: #f1f1f1; 
  width: 100%;
  transition: .5s ease;
  opacity:1;
  color: white;
  font-size: 20px;
  padding: 20px;
  text-align: center;
  
}

.card-category p {
  font-size: 20px;
  margin: 50px 0;
  color: white;

}

.card-category h3 {
   display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
   color: rgb(196, 196, 196);
}



/* tranding now */

.titleTranding {
padding-left: 60px;
}


.titleTranding h2 {
margin-bottom: 10px;
font: bold;
}

.titleTranding p {
margin-bottom: 20px;
font: bold;
}




/* tranding card */

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

.card {
  position: relative;
 
  
  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;
}

.card rating {
  color: #FFD700; /* gold stars */
  font-size: 14px;
  margin: 5px 0 0 0;
}




.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;
}






/* 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;
}




/* responsive */
@media screen and (max-width: 992px) {
  .hero {
    padding: 150px 20px; 
  }

  .cardHome,
  .cardss {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .navbar {
    flex-wrap: wrap;
  }

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

  footer {
    padding: 15px 20px;
  }
}

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

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

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

  .hero {
    padding: 100px 15px;
  }

  .hero-text {
    font-size: 2rem;
  }

  .hero-smalltext {
    font-size: 1rem;
  }

  .card-category,
  .card {
    width: 100%;
  }
  
}

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

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

  .nav-links {
    flex-direction: column;

    margin-top: 10px;
  } 

  .hero {
    padding: 60px 10px;
  }

  .hero-text {
    font-size: 1.5rem;
  }

  .hero-smalltext {
    font-size: 0.9rem;
  }

   .cardss {
  display: flex;
  flex-direction: column;
}




  .card img {
  display: flex;
  flex-direction: column;
  height: auto;

  }
}

