* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* HEADER & NAVIGATION */
/* ============================================ */

header {
    background: #2c5f2d;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
}

.logo h1 span {
    color: #ffd700;
}

.logo p {
    font-size: 0.8rem;
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: background 0.3s;
    border-radius: 5px;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

.btn-login {
    background: #ffd700;
    color: #2c5f2d !important;
    font-weight: bold;
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown span {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333 !important;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
    background: #f5f5f5;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

/* ============================================ */
/* HERO SECTION */
/* ============================================ */

.hero {
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3a1a 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: #ffd700;
    color: #2c5f2d;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #ffe44d;
}

/* ============================================ */
/* FEATURES SECTION */
/* ============================================ */

.features {
    padding: 60px 0;
    background: #f9f9f9;
}

.features .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    margin-bottom: 15px;
    color: #2c5f2d;
    font-size: 1.3rem;
}

.feature-box p {
    color: #666;
}

/* ============================================ */
/* PRODUCTS SECTION */
/* ============================================ */

.featured-products {
    padding: 60px 0;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c5f2d;
    font-size: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.product-info .description {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-info .price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c5f2d;
    margin-bottom: 15px;
}

.qty-input {
    width: 60px;
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.btn-add {
    background: #2c5f2d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add:hover {
    background: #1a3a1a;
}

/* ============================================ */
/* CART TABLE */
/* ============================================ */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cart-table th {
    background: #2c5f2d;
    color: white;
    font-weight: 600;
}

.cart-table tr:hover {
    background: #f9f9f9;
}

.btn-checkout {
    display: inline-block;
    background: #2c5f2d;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-checkout:hover {
    background: #1a3a1a;
}

/* ============================================ */
/* CHECKOUT PAGE */
/* ============================================ */

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.order-summary {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-summary h2 {
    margin-bottom: 20px;
    color: #2c5f2d;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
}

.order-summary p {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.order-summary h3 {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    color: #2c5f2d;
}

form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

form textarea {
    resize: vertical;
}

form button {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

/* ============================================ */
/* ORDERS PAGE */
/* ============================================ */

.orders-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.order-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.order-card h3 {
    color: #2c5f2d;
    margin-bottom: 10px;
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #888;
}

/* ============================================ */
/* RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-table {
        font-size: 0.85rem;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .features .container {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
    }
}