/* ===== MAIN STYLES FOR TOKO MORINGA ===== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* ===== HEADER STYLES ===== */
.header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: #2e7d32;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo p {
    color: #666;
    font-size: 0.9rem;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2e7d32;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
}

.cart-info:hover {
    color: #2e7d32;
}

.user-info {
    color: #2e7d32;
    font-weight: 500;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-weight: 500;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-outline:hover {
    background: #2e7d32;
    color: white;
}

.btn-primary {
    background: #2e7d32;
    color: white;
}

.btn-primary:hover {
    background: #1b5e20;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
    flex: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    padding: 120px 20px 80px;
    text-align: center;
    margin-top: 80px;
}

.hero h1 {
    color: #2e7d32;
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    font-size: 1.1rem;
    padding: 12px 30px;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    color: #2e7d32;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 3rem;
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    color: #2e7d32;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.category-desc {
    color: #666;
    font-size: 0.9rem;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background: #f8f9fa;
    padding: 80px 20px;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: #4caf50;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-name {
    color: #2e7d32;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-price {
    color: #2e7d32;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: #2e7d32;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer h3 {
    margin-bottom: 1rem;
}

.footer p {
    opacity: 0.9;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .user-section {
        gap: 1rem;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .categories, .products {
        padding: 60px 20px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}