/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f0f0f0;
  }
  
  header {
    background-color: #333;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  .cart-icon {
    position: relative;
  }
  
  .cart-icon i {
    font-size: 1.5rem;
  }
  
  .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: #fff;
    border-radius: 50%;
    padding: 4px;
    font-size: 0.8rem;
  }
  
  main {
    padding: 1rem;
  }
  
  .product-info {
    display: flex;
    flex-wrap: wrap;
  }
  
  .product-image {
    flex: 1 0 300px;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
  }
  
  .product-image img {
    max-width: 100%;
    display: block;
    transition: transform 0.2s;
  }
  
  .product-image img:hover {
    transform: scale(1.1);
  }
  
  .product-details {
    flex: 1 1 300px;
  }
  
  .product-price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }
  
  .quantity {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .quantity label {
    margin-right: 0.5rem;
  }
  
  .quantity input {
    width: 40px;
    padding: 4px;
    text-align: center;
  }
  
  .buttons {
    margin-top: 1rem;
  }
  
  .buttons button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
  }
  
  .buttons button:hover {
    background-color: #0056b3;
  }
  
  .product-info p {
    font-size: 1.2rem;
    margin-top: 1rem;
  }
  
  .customer-reviews {
    margin-top: 2rem;
  }
  
  .customer-reviews h2 {
    margin-bottom: 1rem;
  }
  
  .review {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .ratings {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .average-rating {
    margin-right: 1rem;
  }
  
  .total-reviews {
    margin-right: 1rem;
  }
  
  .checkout-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-left:12px;
  }
  
  .checkout-btn:hover {
    background-color: #1d9233;
  }
  
  .shopping-cart {
    margin-top: 2rem;
    margin-left:12px;
  }
  
  .cart-items {
    list-style: none;
    padding: 0;
  }
  
  .cart-items li {
    margin-bottom: 1rem;
  }
  
  .cart-item {
    display: flex;
    justify-content: space-between;
  }
  
  .cart-item .product-name {
    flex: 1 0 70%;
  }
  
  .cart-item .product-price {
    flex: 0 0 20%;
  }
  
  .cart-item .product-quantity {
    flex: 0 0 10%;
  }
  
  .cart-total {
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-left:12px;
  }
  
  footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
  }
  .product-details {
  flex: 1 1 300px;
  max-height: 100%;
  max-width: 300px; /* Set the maximum width for the product details */
}

.product-details p {
  max-width: 100%; /* Ensure paragraphs don't exceed the width */
 
  overflow-wrap: break-word; /* Allow words to break and wrap if necessary */
}

/* Add this CSS to your styles.css or in the head section of your HTML file */
.product-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .product-image {
    flex: 1 1 300px;
  }
  
  .product-details {
    flex: 1 1 300px;
  }
  
  .review-card {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
  }
  
  .review-rating {
    font-size: 18px;
    font-weight: bold;
    color: #f90;
    margin-bottom: 5px;
  }
  
  .review-text {
    margin-bottom: 10px;
  }
  
  .reviewer-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
  }
  
  .reviewer-name {
    font-weight: bold;
  }
  
  .reviewer-date {
    margin-left: 10px;
  }
  
  /* Media Query for responsive design */
  @media (max-width: 768px) {
    .product-info {
      /* flex-direction: column; */
      display: block;
    }
  }
  
  /* Add this CSS to your styles.css or in the head section of your HTML file */
form#reviewForm {
    border: 1px solid #ccc;
    padding: 20px;
    margin-top: 20px;
  }
  
  form#reviewForm label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  form#reviewForm select,
  form#reviewForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }
  
  form#reviewForm button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s ease;
  }
  
  form#reviewForm button[type="submit"]:hover {
    background-color: #0056b3;
  }
  
  /* Media Query for responsive design */
  @media (max-width: 768px) {
    form#reviewForm {
      margin-top: 10px;
    }
  }
  