/* Basic Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: white;
    color:#4CAF50;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
 padding: 25px; /* adjust padding as needed */
  border-bottom: 1px solid #ddd; /* optional border */
  z-index: 100; /* ensure header stays on top */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  header #logo {
    font-size: 32px;
    font-weight: bold;
    text-decoration: none;
    color: #4CAF50;
  }
  
  header #cartBtn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    font-size: 30px;
    margin-right: 100px;
  }
  
  header #cartBtn i {
    font-size: 32px;
  }
  
  #cart-quantity {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color:#4CAF50;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 50%;
    margin-right: 100px;
  }
  h1{
    font-size: 30px;
    color: var(--main-color);
    margin-top: 6rem;
    text-align: center;
  }
  
  
  /* Main Items Layout */
  .main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
  }
  
  figure {
    background-color: white;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  figure img {
    width: 100%;
    margin-right: 30px;
    width: 125px;
    height: 100px;
      
  }
  
  figure button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
  }
  
  figure button:hover {
    background-color: #45a049;
  }
  
  /* Cart Section */
  #cart-container {
    position: fixed;
    top: 10%;
    right: 10%;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    display: none;
  }
  
  #cart-container h2 {
    margin-top: 0;
  }
  
  .cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .cart-item div {
    display: flex;
    gap: 5px;
  }
  
  .cart-item button {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    background-color: #f44336;
    color: white;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .cart-item button:hover {
    background-color: #d32f2f;
  }
  
  #checkoutbtn {
    display: block;
    margin: 20px 0 0 auto;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #checkoutbtn:hover {
    background-color: #45a049;
  }
  
  #closeCartBtn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    float: right;
    margin: 10px 5px 5px;
  }
  
  #closeCartBtn:hover {
    background-color: #d32f2f;
  }
  