/* Reset and Base 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 Styles */
.header {
    background: linear-gradient(135deg, #2e8b57, #228b22);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #90ee90;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-box input {
    padding: 8px 15px;
    border: none;
    outline: none;
    width: 200px;
}

.search-box button {
    padding: 8px 15px;
    background: #228b22;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #1e7b1e;
}

.cart-btn {
    position: relative;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-btn:hover {
    background: rgba(255,255,255,0.3);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-login, .btn-signup {
    padding: 8px 16px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-login:hover, .btn-signup:hover {
    background: white;
    color: #2e8b57;
}

.user-profile {
    position: relative;
}

.profile-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.user-profile:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 3rem;
    color: #2e8b57;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #2e8b57, #228b22);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46,139,87,0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #90ee90, #98fb98);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(46,139,87,0.2);
}

.eco-icon {
    font-size: 8rem;
    color: #2e8b57;
}

/* Products Section */
.featured-products, .all-products {
    padding: 4rem 0;
}

.featured-products h2, .all-products h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2e8b57;
    margin-bottom: 3rem;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    gap: 1rem;
}

.filters select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filters select:focus {
    outline: none;
    border-color: #2e8b57;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    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: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.product-image i {
    font-size: 3rem;
    color: #2e8b57;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info h3 {
    color: #2e8b57;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #228b22;
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #ffd700;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-add-cart, .btn-view {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-add-cart {
    background: #2e8b57;
    color: white;
}

.btn-add-cart:hover {
    background: #228b22;
}

.btn-view {
    background: #e9ecef;
    color: #333;
}

.btn-view:hover {
    background: #dee2e6;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: white;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2e8b57;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46,139,87,0.2);
}

.category-card i {
    font-size: 3rem;
    color: #2e8b57;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: #2e8b57;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #666;
}

/* Load More Button */
.load-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-load-more {
    padding: 12px 30px;
    background: #2e8b57;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-load-more:hover {
    background: #228b22;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #90ee90;
}

.footer-section p, .footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #90ee90;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #2e8b57;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bdc3c7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 5% auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    animation: slideIn 0.3s;
}

.cart-modal-content {
    max-width: 600px;
}

.product-modal-content {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #2e8b57;
    margin: 0;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #2e8b57;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    margin-right: 10px;
}

.btn-primary {
    background: #2e8b57;
    color: white;
}

.btn-primary:hover {
    background: #228b22;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.switch-form {
    text-align: center;
    margin-top: 1rem;
    color: #666;
}

.switch-form a {
    color: #2e8b57;
    text-decoration: none;
    font-weight: 500;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Cart Styles */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image i {
    font-size: 2rem;
    color: #2e8b57;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    color: #2e8b57;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: bold;
    color: #228b22;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity-display {
    padding: 0 10px;
    font-weight: 500;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.remove-btn:hover {
    background: #c82333;
}

.cart-summary {
    padding: 1rem;
    border-top: 2px solid #eee;
    text-align: center;
}

.cart-total {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2e8b57;
}

.cart-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-cart i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Product Detail Modal */
.product-detail {
    display: flex;
    gap: 2rem;
}

.product-detail-image {
    flex: 1;
    max-width: 300px;
}

.product-detail-image .placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image i {
    font-size: 4rem;
    color: #2e8b57;
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h2 {
    color: #2e8b57;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #228b22;
    margin-bottom: 1rem;
}

.product-detail-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 1.5rem;
}

.product-features h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.product-features ul {
    list-style: none;
    padding-left: 0;
}

.product-features li {
    padding: 0.25rem 0;
    color: #666;
}

.product-features li:before {
    content: "✓ ";
    color: #2e8b57;
    font-weight: bold;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .search-box {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .placeholder-image {
        width: 250px;
        height: 250px;
    }
    
    .eco-icon {
        font-size: 4rem;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-content {
        margin: 10% 5%;
        max-width: none;
    }
    
    .product-detail {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 1rem;
    }
}
