  /* CSS Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, #2e7d32, #4caf50);
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo h1 {
            font-size: 1.8rem;
            font-weight: bold;
        }

        .search-bar {
            display: flex;
            flex: 1;
            max-width: 500px;
            margin: 0 2rem;
        }

        .search-bar input {
            flex: 1;
            padding: 0.8rem;
            border: none;
            border-radius: 25px 0 0 25px;
            outline: none;
        }

        .search-bar button {
            padding: 0.8rem 1.5rem;
            background: #1b5e20;
            color: white;
            border: none;
            border-radius: 0 25px 25px 0;
            cursor: pointer;
        }

        .header-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .cart-btn, .auth-btn {
            background: transparent;
            color: white;
            border: 2px solid white;
            padding: 0.5rem 1rem;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .orders-btn {
            background: rgba(255,255,255,0.15);
            color: white;
            border: 2px solid rgba(255,255,255,0.25);
            padding: 0.4rem 0.8rem;
            border-radius: 20px;
            cursor: pointer;
            transition: background 0.25s ease;
        }

        .orders-btn:hover {
            background: rgba(255,255,255,0.25);
        }

        /* User menu dropdown */
        .user-menu {
            z-index: 2001;
            min-width: 220px;
        }

        .user-menu-card {
            background: white;
            border: 1px solid #eee;
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12);
            color: #333;
            overflow: hidden;
        }

        .user-info {
            padding: 0.8rem 1rem;
            border-bottom: 1px solid #f1f1f1;
        }

        .user-name {
            font-weight: 700;
            margin-bottom: 0.2rem;
        }

        .user-email {
            font-size: 0.9rem;
            color: #666;
        }

        .user-actions {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            padding: 0.8rem;
        }

        .menu-btn {
            padding: 0.6rem 0.8rem;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            font-weight: 600;
        }

        .menu-btn.orders {
            background: #4caf50;
            color: white;
        }

        .menu-btn.logout-btn {
            background: #f44336;
            color: white;
        }

        .cart-btn:hover, .auth-btn:hover {
            background: white;
            color: #2e7d32;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ff5722;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Navigation */
        .nav {
            background: white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .nav-links {
            display: flex;
            list-style: none;
            padding: 1rem 0;
        }

        .nav-links li {
            margin-right: 2rem;
        }

        .nav-links a {
            color: #333;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: #4caf50;
        }

        /* Main Content */
        .main {
            min-height: calc(100vh - 200px);
        }

        .section {
            display: none;
            padding: 2rem 0;
        }

        .section.active {
            display: block;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
            padding: 4rem 0;
            text-align: center;
            margin-bottom: 2rem;
        }

        .hero h2 {
            font-size: 3rem;
            color: #2e7d32;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.2rem;
            color: #555;
            margin-bottom: 2rem;
        }

        .cta-btn {
            background: #4caf50;
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 25px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .cta-btn:hover {
            background: #45a049;
            transform: translateY(-2px);
        }

        /* Product Grid */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 2rem;
            padding: 2rem 0;
        }

        .product-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
        }

        .product-image {
            width: 100%;
            height: 200px;
            background: #f0f0f0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: #4caf50;
        }

        .product-info {
            padding: 1rem;
        }

        .product-title {
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: #333;
        }

        .product-price {
            font-size: 1.2rem;
            color: #4caf50;
            font-weight: bold;
            margin-bottom: 1rem;
        }

        .add-to-cart {
            width: 100%;
            background: #4caf50;
            color: white;
            border: none;
            padding: 0.8rem;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .add-to-cart:hover {
            background: #45a049;
        }

        /* Cart Sidebar */
        .cart-sidebar {
            position: fixed;
            top: 0;
            right: -400px;
            width: 400px;
            height: 100vh;
            background: white;
            box-shadow: -5px 0 15px rgba(0,0,0,0.1);
            transition: right 0.3s ease;
            z-index: 1000;
            display: flex;
            flex-direction: column;
        }

        .cart-sidebar.open {
            right: 0;
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid #eee;
            background: #4caf50;
            color: white;
        }

        .cart-header button {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }

        .cart-items {
            flex: 1;
            overflow-y: auto;
            padding: 1rem;
        }

        .cart-item {
            display: flex;
            align-items: center;
            padding: 1rem 0;
            border-bottom: 1px solid #eee;
        }

        .cart-item-image {
            width: 60px;
            height: 60px;
            background: #f0f0f0;
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: #4caf50;
        }

        .cart-item-info {
            flex: 1;
        }

        .cart-item-title {
            font-weight: bold;
            margin-bottom: 0.5rem;
        }

        .cart-item-price {
            color: #4caf50;
            font-weight: bold;
        }

        .cart-item-quantity {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .quantity-btn {
            background: #4caf50;
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .quantity-btn:hover {
            background: #45a049;
        }

        .cart-footer {
            padding: 1rem;
            border-top: 1px solid #eee;
            background: #f8f9fa;
        }

        .cart-total {
            text-align: center;
            margin-bottom: 1rem;
            font-size: 1.2rem;
        }

        .checkout-btn {
            width: 100%;
            background: #4caf50;
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 5px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .checkout-btn:hover {
            background: #45a049;
        }

        /* Modals */
        .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 2rem;
            border-radius: 10px;
            width: 90%;
            max-width: 600px;
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }

        /* Center the authentication modal like other modals */
        #authModal .modal-content {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            margin: 0;
            max-width: 600px;
            width: auto;
        }

        .close {
            position: absolute;
            right: 1rem;
            top: 1rem;
            color: #aaa;
            font-size: 2rem;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover {
            color: #333;
        }

        /* Auth Forms */
        .auth-tabs {
            display: flex;
            margin-bottom: 2rem;
        }

        .tab-btn {
            flex: 1;
            padding: 1rem;
            border: none;
            background: #f0f0f0;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tab-btn.active {
            background: #4caf50;
            color: white;
        }

        .auth-form {
            text-align: center;
        }

        .auth-form h3 {
            margin-bottom: 2rem;
            color: #333;
        }

        .auth-form input {
            width: 100%;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            outline: none;
        }

        .auth-form input:focus {
            border-color: #4caf50;
        }

        /* Place the show-password checkbox on the left side of the form */
        .auth-form .show-password {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.5rem;
            width: 100%;
            margin-bottom: 1rem;
            color: #333;
            font-size: 0.95rem;
        }

        .auth-form .show-password input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin: 0;
        }

        .auth-form button {
            width: 100%;
            background: #4caf50;
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 5px;
            font-size: 1.1rem;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .auth-form button:hover {
            background: #45a049;
        }

        /* Checkout Modal */
        .checkout-content {
            display: grid;
            gap: 2rem;
        }

        .shipping-info input,
        .card-details input {
            width: 100%;
            padding: 0.8rem;
            margin-bottom: 1rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            outline: none;
        }

        .payment-methods {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .payment-methods label {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem;
            border: 2px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .payment-methods label:hover {
            border-color: #4caf50;
        }

        .payment-methods input[type="radio"]:checked + label {
            border-color: #4caf50;
            background: #f1f8e9;
        }

        .card-row {
            display: flex;
            gap: 1rem;
        }

        .place-order-btn {
            width: 100%;
            background: #4caf50;
            color: white;
            border: none;
            padding: 1rem;
            border-radius: 5px;
            font-size: 1.2rem;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .place-order-btn:hover {
            background: #45a049;
        }

        /* Success Modal */
        .success-content {
            text-align: center;
            padding: 2rem 0;
        }

        .success-content i {
            font-size: 4rem;
            color: #4caf50;
            margin-bottom: 1rem;
        }

        .success-content h3 {
            color: #4caf50;
            margin-bottom: 1rem;
        }

        .success-content button {
            background: #4caf50;
            color: white;
            border: none;
            padding: 1rem 2rem;
            margin: 0.5rem;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .success-content button:hover {
            background: #45a049;
        }

        /* Order Tracking */
        .tracking-steps {
            display: flex;
            justify-content: space-between;
            margin-top: 2rem;
            position: relative;
        }

        .tracking-steps::before {
            content: '';
            position: absolute;
            top: 20px;
            left: 25px;
            right: 25px;
            height: 2px;
            background: #ddd;
            z-index: 1;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .step i {
            width: 40px;
            height: 40px;
            background: #ddd;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.5rem;
        }

        .step.completed i {
            background: #4caf50;
        }

        .step.active i {
            background: #ff9800;
        }

        /* Orders Page */
        .order-item {
            background: white;
            padding: 1.5rem;
            margin-bottom: 1rem;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }

        .order-number {
            font-weight: bold;
            color: #4caf50;
        }

        .order-status {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            color: white;
            font-size: 0.9rem;
        }

        .status-processing {
            background: #ff9800;
        }

        .status-shipped {
            background: #2196f3;
        }

        .status-delivered {
            background: #4caf50;
        }

        .track-btn {
            background: #4caf50;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

        .track-btn:hover {
            background: #45a049;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header .container {
                flex-direction: column;
                gap: 1rem;
            }

            .search-bar {
                margin: 0;
                max-width: 100%;
            }

            .nav-links {
                flex-wrap: wrap;
                gap: 1rem;
            }

            .nav-links li {
                margin-right: 0;
            }

            .hero h2 {
                font-size: 2rem;
            }

            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 1rem;
            }

            .cart-sidebar {
                width: 100%;
                right: -100%;
            }

            .modal-content {
                width: 95%;
                margin: 2% auto;
                padding: 1rem;
            }

            .checkout-content {
                grid-template-columns: 1fr;
            }

            .card-row {
                flex-direction: column;
            }

            .tracking-steps {
                flex-direction: column;
                gap: 1rem;
            }

            .tracking-steps::before {
                display: none;
            }
        }

        .empty-cart {
            text-align: center;
            padding: 2rem;
            color: #666;
        }

        .empty-orders {
            text-align: center;
            padding: 3rem;
            color: #666;
        }

        .featured-products {
            background: white;
            padding: 2rem 0;
        }

        .featured-products h3 {
            text-align: center;
            color: #2e7d32;
            margin-bottom: 2rem;
            font-size: 2rem;
        }

        .product-section h2 {
            color: #2e7d32;
            margin-bottom: 1rem;
            font-size: 2.5rem;
            text-align: center;
        }

        .order-items {
            margin-top: 1rem;
        }

        .order-item-detail {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .order-item-detail:last-child {
            border-bottom: none;
        }

        .quantity-display {
            color: #666;
            font-size: 0.9rem;
        }

        .remove-btn {
            background: #f44336;
            color: white;
            border: none;
            padding: 0.3rem 0.8rem;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: background 0.3s ease;
        }

        .remove-btn:hover {
            background: #d32f2f;
        }