/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}


.product-item {
    display: flex;
    gap: 20px;
    box-shadow: 0 7px 7px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}


.product-images img {
    width: 200px;
    height: auto;
    margin-right: 10px;
}


.main-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}


.product-description {
    max-width: 500px;
}


.checked {
    color: gold;
}

p{
    padding: 200x;
    font-size: 20px; 
    color: #000000;
    text-align: center; 
    margin-bottom: 20px; 
    font-family: Arial, Helvetica, sans-serif
}

h3{
    
    font-size: 2.5rem; 
    font-weight: bold; 
    color: #fec72e;
    text-align: center; 
    margin-bottom: 20px; 
    font-family: 'Arial', sans-serif;
}



@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.main-container {
  animation: fadeIn 2s ease-in-out;
}


.product-item {
  transition: transform 0.3s ease-in-out;
}

.product-item:hover {
  transform: scale(1.05); 
}


@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}


.product-item {
  animation: slideInLeft 1s ease-out forwards;
  opacity: 0; /
}


.product-item:nth-child(1) {
  animation-delay: 0.3s;
}
.product-item:nth-child(2) {
  animation-delay: 0.6s;
}


.product-images img {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; 
}

.product-item:hover .product-images img {
  transform: scale(1.4); 
  opacity: 0.9; /
}

.rating {
  display: inline-block;
  font-size: 24px; 
  color: #ccc; 
}

.rating .checked {
  color: orange; 
  align-items: center;
}

.rating span {
  margin-right: 10px; 
  cursor: default;   
}

.buy-now-button {
  background-color: #28a745;
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  margin: 20px auto 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-align: center;
  display: block; 
}

.buy-now-button:hover {
  background-color: #218838;
  transform: scale(1.10);
}

@media (min-width: 768px) {
  .product-item {
    flex-direction: row;
    align-items: flex-start;
  }

  .product-images {
    flex: 0 0 220px;
    justify-content: flex-start;
  }

  .product-description {
    flex: 1;
    padding-left: 20px;
  }

  .product-description h3,
  .product-description p {
    text-align: left;
  }

  .rating {
    justify-content: flex-start;
  }

  .buy-now-button {
    margin-left: 0;
  }
}

