/*Style for the products page*/
.products_nav {
    overflow: hidden;
    background-color: #629c44;
    width: 15%;
  }
  
  /* Style the links inside the navigation bar */
  .products_nav a {
    float: center;
    display: block;
    color: white;
    text-align: left;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    font-family: Arial;
  }
  
  /* Change the color of links on hover */
  .products_nav a:hover {
    background-color: #325320;
    color: white;
  }
  
  /* Style the "active" element to highlight the current page */
  .products_nav a.active {
    background-color: #325320;
    color: white;
  }
  

  /* When the screen is less than 600px wide, stack the links and the search field vertically instead of horizontally */
  @media screen and (max-width: 600px) {
    .products_nav a {
      float: none;
      display: block;
      text-align: left;
      width: 100%;
      margin: 0;
      padding: 14px;
    }
  }



/*Style for the main text box*/
* {
    box-sizing: border-box;
    text-align: center;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f4f6;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

header {
    background: #629c44;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #f3f4f6;
}
/*Style for the products part*/
#products {
    margin-bottom: 20px;
    flex: 1;
}
/*Style for showing each individual product*/
.product {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}
/*Style for when you hover over a product*/
.product:hover {
    transform: translateY(-5px);
}

/*Style for the product image*/
.product img {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.product h3 {
    font-size: 1.5rem;
    margin: 0;
}

.product p {
    color: #666666;
    margin-bottom: 0.5rem;
}
/*Style for the product button*/
.product button {
    background: #629c44;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}
/*Style for when you hover over the product button*/
.product button:hover {
    background: #325320;
}

/*Style for the cart text box*/
#cart {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 20px;
    width: 300px;
}

#cart h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}
/*Style for the items in the cart*/
#cart-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
/*Style for the cart item button*/
.cart-item button {
    background: red;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}

/*Style for hovering over the cart item button*/
.cart-item button:hover {
    background: red;
}
/*Style for the quantity value*/
.quantity {
    display: flex;
    align-items: center;
}

/*Style for the quantity button*/
.quantity button {
    background: #629c44;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}

/*Style for hovering over the quantity button*/
.quantity button:hover {
    background: #325320;
}

.quantity input {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 0.5rem;
    padding: 4px;
    outline: none;
}
/*Style for the checkout button*/
.checkout_button button{
    background: #629c44;
    color: #ffffff;
    font-size: 20px; 
    border: none;
    width: 30px;
    height: 15px;
    padding: 20px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}

/*Style for hovering over the checkout button*/
.checkout_button button:hover {
    background: #325320;
}
