/* Basic reset and typography */
body {
    margin: 0;
    font-family: 'Georgia', serif;
    background-color: #eeedda;
    color: #333;
  }
  
  /* Header and Footer with overlay text */
  header, footer {
    font-family: Brush Script MT, Brush Script Std, cursive;
    font-size: 1rem;
    position: relative;
    text-align: center;
  }
  
  header img, footer img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
  }
  
  .header-text, .footer-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  }
  
  .header-text {
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
  }
  
  .footer-text {
    bottom: 10px;
    font-size: 1em;
  }
  
  /* Victorian style container */
  main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Product styling */
  .products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
  }
  
  .product {
    display: flex;
    flex-direction: row;
    max-width: 800px;
    margin: 15px auto;
    border: 2px solid #d3c4a6;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    background: #fff;
  }

  .product img {
    width: 40%;
    height: auto;
    object-fit: cover;
  }

  .product-content {
    width: 60%;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .product-content h2 {
    font-size: 1.5em;
    margin: 10px 0;
    text-align: left;
  }
  
  .product img {
    width: 40%;
    height: auto;
    object-fit: cover;
  }
  
  .product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .product-content label,
  .product-content select,
  .product-content button {
    margin-top: 10px;
  }
  
  .product-details h2 {
    font-size: 1.5em;
    margin: 10px 0;
    text-align: left;
  }
  
  /* Container for description and ingredients with fixed height */
  .product-info {
    min-height: 100px;
    margin-bottom: 10px;
  }
  
  .product-info p {
    margin: 5px 0;
  }
  
  .price {
    margin: 10px 0;
  }
  
  #price-display {
    padding-top: 10px;
  }
  .add-to-cart {
    background: rgb(32, 32, 32);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
  }
  
  .add-to-cart:hover {
    background: rgb(32, 32, 32);
  }
  
  /* Quantity selector styling */
  .product-details label,
  .product-details select {
    margin: 5px 0;
  }
  
  /* View Cart Button */
  #view-cart {
    display: block;
    margin: 20px auto;
    background: rgb(32, 32, 32);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
  }
  
  #view-cart:hover {
    background: rgb(32, 32, 32);
  }
  
  /* Modal styling */
  .modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }
  
  .modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 2px solid #d3c4a6;
    width: 80%;
    max-width: 500px;
    position: relative;
    font-family: 'Georgia', serif;
  }

  .modal-content button {
    margin-top: 15px;
    background: rgb(32, 32, 32);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  .modal-content button:hover {
    background: rgb(32, 32, 32);
  }
  
  .modal-content h2,
  .modal-content h3 {
    margin-top: 0;
  }
  
  .close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Order form styling */
  #order-form {
    display: flex;
    flex-direction: column;
  }
  
  #order-form label {
    margin-top: 10px;
  }
  
  #order-form input {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  #order-form button {
    margin-top: 15px;
    background: rgb(32, 32, 32);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  #order-form button:hover {
    background: rgb(32, 32, 32);
  }

  /* Toast Notification styling */
  .toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 200;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
  }
  
  .toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }
  
  @keyframes fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
  }
  
  @keyframes fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
  }
  
  /* Mobile Layout */
  @media (max-width: 600px) {
    /* On mobile, display the container as a column */
    .product {
      display: flex;
      flex-direction: column;
      align-items: center;
      background-color: #eeedda;
    }

    .product img {
        width: 60%;
    }
  }
  