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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    color: #2c5530;
    font-size: 2rem;
    font-weight: bold;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2c5530;
    color: white;
}

.btn-primary:hover {
    background: #1e3a21;
}

.btn-outline {
    background: transparent;
    color: #2c5530;
    border: 2px solid #2c5530;
}

.btn-outline:hover {
    background: #2c5530;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 120px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* 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);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

.modal h3 {
    margin-bottom: 1.5rem;
    color: #2c5530;
    text-align: center;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal input {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.modal input:focus {
    outline: none;
    border-color: #2c5530;
}

.modal p {
    text-align: center;
    margin-top: 1rem;
}

.modal a {
    color: #2c5530;
    text-decoration: none;
}

.modal a:hover {
    text-decoration: underline;
}

/* Shopping Page Styles */
.shopping-header {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.user-info {
    display: flex;
    align-items: center;
    width: 100%;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.search-bar {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.categories {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    overflow-x: auto;
    margin-top: 100px;
}

.category {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.3s ease;
}

.category:hover,
.category.active {
    background: #2c5530;
    color: white;
}

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

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

.product-info {
    padding: 1rem;
}

.product-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

.add-to-cart {
    width: 100%;
    background: #2c5530;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.add-to-cart:hover {
    background: #1e3a21;
}

.qr-code {
    background: white;
    border: 2px solid #2c5530;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}

.qr-code h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.qr-display {
    width: 150px;
    height: 150px;
    background: #f8f9fa;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .left-section {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-bar {
        margin: 0;
        max-width: none;
        width: 100%;
    }
    
    .cart-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .categories {
        margin-top: 140px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}
