body {
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      background: linear-gradient(to bottom, #eafaf1, #ffffff);
    }
    img { max-width: 100%; height: auto; display: block; }

    header {
      background-color: #2e8b57;
      padding: 15px 40px;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    header h1 { margin: 0; }
    .search-bar { flex: 1; min-width: 240px; display: flex; }
    .search-bar input {
      flex: 1; padding: 8px; border: 2px solid #c0a646;
      border-radius: 20px 0 0 20px; outline: none;
    }
    .search-bar button {
      padding: 8px 15px; border: 2px solid #c0a646; border-left: none;
      border-radius: 0 20px 20px 0; background: white; cursor: pointer;
    }
    .cart { position: relative; cursor: pointer; font-size: 20px; }
    .cart-count {
      position: absolute; top: -10px; right: -10px;
      background: red; color: white; border-radius: 50%;
      padding: 2px 8px; font-size: 12px;
    }

    nav { background: #f5fff7; padding: 10px; display: flex; justify-content: center; gap: 20px; border-bottom: 2px solid #ddd; }
    nav a { text-decoration: none; color: #2e8b57; font-weight: bold; }

    .products {
      display: flex; justify-content: center; gap: 20px; padding: 30px;
      background: linear-gradient(to right, #a8e6cf, #dcedc1);
      flex-wrap: wrap;
    }
    .product-card {
      background: white; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      padding: 15px; text-align: center; width: 250px; /* Increased width */
    }
    .image-carousel {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        margin-bottom: 10px;
        height: 200px; /* Set a fixed height for the carousel */
    }
    .carousel-images {
        display: flex;
        transition: transform 0.3s ease-in-out;
        height: 100%;
    }
    .carousel-image {
        flex: 0 0 100%;
        display: block; /* Ensure images are block level for height to work */
        height: 100%; /* Make image take full height of carousel */
        object-fit: cover; /* Cover the area, cropping if necessary */
    }
    .carousel-image:not(.active) {
        display: none; /* Hide non-active images */
    }
    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.4);
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        border-radius: 50%;
        font-size: 18px;
        user-select: none;
    }
    .prev-btn {
        left: 5px;
    }
    .next-btn {
        right: 5px;
    }
    .product-card h3 { margin: 10px 0; color: #2e8b57; }
    .price { color: #c0a646; font-weight: bold; margin-bottom: 10px; }
    .add-to-cart {
      background: #2e8b57; color: white; border: none; padding: 8px 15px;
      border-radius: 6px; cursor: pointer; font-weight: bold;
    }
    .add-to-cart:hover { background: #256d46; }
    .quantity-controls {
      display: none; justify-content: center; align-items: center; gap: 10px; margin-top: 10px;
    }
    .quantity-controls button {
      background: #2e8b57; color: white; border: none; padding: 5px 12px; border-radius: 5px; cursor: pointer; font-size: 16px;
    }
    .quantity-controls button:hover { background: #256d46; }
    .quantity-controls span { font-weight: bold; font-size: 16px; color: #333; min-width: 20px; text-align: center; }

    .features { display: flex; justify-content: center; gap: 20px; padding: 40px 20px; background: #f9fff9; flex-wrap: wrap; }
    .feature-card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); width: 250px; text-align: center; }
    .feature-card h4 { color: #007f4f; margin: 15px 0 10px; }
    .feature-card p { font-size: 14px; color: #444; }

    .announcement-bar { background-color: #2e8b57; color: white; font-size: 18px; font-weight: bold; padding: 8px 0; text-align: center; border-bottom: 2px solid #ffd700; }

    .account { cursor: pointer; font-size: 20px; margin-right: 14px; position: relative; z-index: 10; }
    .account-panel {
      position: fixed; right: 20px; top: 70px;
      background: #fff; color: #333; width: 300px;
      border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.15);
      display: none; z-index: 1000; padding: 16px;
      border: 1px solid #eee;
    }
    .account-panel.visible { display: block; }
    .account-panel h3 { margin: 0 0 10px; color: #2e8b57; }
    .account-row { margin: 6px 0; font-size: 14px; }
    .account-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap:wrap; }
    .btn {
      background: #2e8b57; color: #fff; border: none; padding: 8px 10px;
      border-radius: 8px; cursor: pointer; font-weight: 600;
    }
    .btn:hover { background: #256d46; }
    .btn-secondary { background: #c0a646; }
    .btn-secondary:hover { background: #a48934; }

    .modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      align-items: center;
      justify-content: center;
      z-index: 1500;
    }
    .modal.show { display: flex; }
    .modal-box {
      background: #fff;
      width: 360px;
      padding: 18px;
      border-radius: 10px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }
    .modal-box h3 { margin-top: 0; color: #2e8b57; }
    .modal-box label { display:block; margin:8px 0 4px; font-weight:600; }
    .modal-box input, .modal-box textarea {
      width: 100%; padding:8px; border:1px solid #ccc; border-radius:6px; box-sizing:border-box;
    }
    .modal-actions { margin-top:12px; display:flex; gap:8px; justify-content:flex-end; }
    .modal-actions button { padding:8px 12px; border-radius:8px; border:none; cursor:pointer; font-weight:600; }
    .save-btn { background:#2e8b57; color:#fff; }
    .cancel-btn { background:#ddd; color:#333; }
    .btn-login {
      width: 100%;
      margin-bottom: 12px;
      padding: 12px;
      font-size: 16px;
      background-color: #2e8b57;
      color: white;
      border: none;
      border-radius: 30px;
      cursor: pointer;
    }
    .btn-login:hover {
      background-color: #256b45;
      transform: scale(1.05);
    }

    /* Product Popup Styles */
    .product-popup {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 90vh;
      background-color: white;
      box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
      z-index: 1001;
      transform: translateY(100%);
      visibility: hidden;
      transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s;
      display: flex;
      flex-direction: column;
      border-top-left-radius: 20px;
      border-top-right-radius: 20px;
      overflow-y: auto;
    }

    .product-popup.show {
      transform: translateY(0);
      visibility: visible;
    }

    .popup-content {
      display: flex;
      flex-direction: row;
      padding: 40px;
      gap: 30px;
      flex: 1;
      overflow-y: auto;
    }

    .close-popup-btn {
      position: absolute;
      top: 15px;
      right: 20px;
      background: none;
      border: none;
      font-size: 30px;
      cursor: pointer;
      color: #888;
    }

    .popup-images {
      display: flex;
      flex-direction: column;
      gap: 15px;
      width: 30%;
    }

    .popup-images img {
      width: 100%;
      border-radius: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .popup-details {
      width: 70%;
      padding-left: 20px;
      border-left: 1px solid #eee;
    }
    
    .popup-details h2 {
        margin-top: 0;
        color: #2e8b57;
    }

    .popup-details h3 {
        color: #c0a646;
        margin-top: 20px;
    }

    .popup-details ul {
        list-style-type: '🌿';
        padding-left: 20px;
    }
    
    .popup-details li {
        margin-bottom: 10px;
    }

    @media (max-width: 768px) {
      header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
      }
      .search-bar {
        margin: 10px 0;
        width: 100%;
      }
      .search-bar input {
        font-size: 14px;
      }
      nav {
        flex-wrap: wrap;
        gap: 10px;
      }
      .products {
        flex-direction: column;
        align-items: center;
      }
      .product-card {
        width: 90%;
        max-width: 350px;
      }
      .features {
        flex-direction: column;
        align-items: center;
      }
      .feature-card {
        width: 90%;
        max-width: 350px;
      }
      .account-panel {
        width: 90%;
        right: 5%;
        top: 60px;
      }
      .modal-box {
        width: 90%;
      }
      footer div {
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      header h1 {
        font-size: 22px;
      }
      .announcement-bar {
        font-size: 14px;
      }
      section h2 {
        font-size: 24px;
      }
      .product-card h3 {
        font-size: 18px;
      }
      .btn, .btn-secondary, .btn-login {
        font-size: 14px;
        padding: 8px 10px;
      }
    }