*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    height: 100%;
}
@font-face {
    font-family: usman;
    src: url(Mabook.otf);
}
body{
    height: 100%;
}

header{
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
& .headings{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
& h1{
    font-family: usman, 'sans sarif';
    font-size: 150px;
}
& h2{
    font-style: italic;
    font-weight: bold;
    letter-spacing: 10px;
    margin-top: 10px;
}
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin: 20px 40px;
& a{
    text-decoration: none;
    color: #393E46;
    font-style: italic;
    font-size: 20px;
    margin-bottom: 10px;
}
}
& img{
    translate: 80rem;
}
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f5f5f5; 
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff; 
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px); 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); 
}

.product-item img {
  width: 100%;
  height: 300px; 
  object-fit: cover; 
  border-radius: 8px;
  margin-bottom: 10px; 
}

.product-details {
  padding: 10px 0;
}

.product-details h3 {
  font-family: "Lora", serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a3c34; 
  margin: 0 0 5px;
}

.product-details .author {
  font-family: "Lora", serif;
  font-size: 1rem;
  color: #4a4a4a; 
  margin: 0 0 5px;
}

.product-details .price {
  font-family: "Lora", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2e6d5a; 
  margin: 0;
}


@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px 10px;
  }

  .product-item img {
    height: 250px;
  }

  .product-details h3 {
    font-size: 1.1rem;
  }

  .product-details .author,
  .product-details .price {
    font-size: 0.9rem;
  }
}




