/* style.css - Tamarind & Earth Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-brown: #3E2723; /* Deep Tamarind Brown */
    --secondary-brown: #5D4037; /* Lighter Brown */
    --accent-gold: #FFC107; /* Golden Yellow */
    --nature-green: #2E7D32; /* Fresh Green */
    --bg-cream: #FFF8E1; /* Soft Cream Background */
    --white: #ffffff;
    --shadow: 0 8px 16px rgba(62, 39, 35, 0.1); /* Soft Brown Shadow */
    --gradient-header: linear-gradient(135deg, var(--primary-brown), var(--secondary-brown));
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-cream);
    color: var(--primary-brown);
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav .logo {
    color: var(--primary-brown);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
nav .logo img { height: 90px; }
nav ul { list-style: none; padding: 0; display: flex; gap: 30px; margin: 0; }
nav ul li a {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}
nav ul li a:hover { color: var(--nature-green); }

/* --- Hero Section (Home & Others) --- */
.hero {
    background: var(--gradient-header);
    color: var(--white);
    text-align: center;
    padding: 140px 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://www.transparenttextures.com/patterns/food.png'); /* Subtle food pattern */
    opacity: 0.1;
    pointer-events: none;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero p { font-size: 1.2rem; opacity: 0.9; }

/* --- Product Card Design --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); /* Wider cards */
    gap: 35px;
    padding: 60px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 240px;
    border: none;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(62, 39, 35, 0.15); }

.card-img-container {
    width: 40%;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    width: 60%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title { font-size: 1.4rem; color: var(--primary-brown); margin: 0 0 8px 0; }
.card-desc { font-size: 0.9rem; color: #777; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.card-footer { display: flex; justify-content: space-between; align-items: center; }
.price-tag { font-size: 1.3rem; font-weight: 700; color: var(--nature-green); }
.price-tag span { font-size: 0.85rem; font-weight: 400; color: #999; }

/* Update this section in style.css */
.btn-order {
    background-color: var(--nature-green);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    font-size: 0.85rem; /* Slightly smaller text */
    border: none;
    cursor: pointer;
    display: inline-flex; /* Keeps text centered */
    align-items: center;
    justify-content: center;
    white-space: nowrap; /* PREVENTS TEXT BREAKING */
    min-width: 100px; /* Ensures button is never too small */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-order:hover { background-color: #1B5E20; transform: translateY(-2px); }

/* --- Mobile / Tablet View --- */
@media (max-width: 768px) {
    /* Fix Navigation Header */
    nav { 
        flex-direction: column; 
        padding: 15px; 
        gap: 15px; 
    }

    nav .logo { 
        flex-direction: column; /* Stack Image and Text */
        text-align: center;
        gap: 5px;
    }

    nav .logo img { 
        height: 70px; /* Slightly smaller on phone to save space */
    }

    nav ul { 
        width: 100%; 
        justify-content: center; 
        gap: 15px; 
        flex-wrap: wrap; /* Allows menu items to wrap if screen is very small */
    }
    
    nav ul li a {
        font-size: 0.95rem; /* Readable size */
        padding: 5px;
    }

    /* Fix Hero Section Text */
    .hero { padding: 80px 20px; }
    .hero h1 { font-size: 2.2rem; line-height: 1.2; }

    /* Fix Cards for Mobile */
    .product-grid { 
        grid-template-columns: 1fr; /* 1 card per row */
        padding: 40px 20px;
    }
    
    .card { 
        flex-direction: column; /* Stack Image on Top, Details Bottom */
        height: auto; 
        max-width: 400px; /* Prevents card from getting too wide on tablets */
        margin: 0 auto; /* Centers the card */
    }
    
    .card-img-container { 
        width: 100%; 
        height: 220px; /* Fixed height for image */
    }
    
    .card-body { 
        width: 100%; 
        padding: 20px; 
        box-sizing: border-box; 
    }

    .card-footer {
        margin-top: 15px;
        flex-direction: row; /* Keep Price and Button side-by-side */
        align-items: center;
        justify-content: space-between;
    }
    
    /* Move WhatsApp icon slightly so it doesn't block text */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}
/* --- Contact & About Pages --- */
.page-container { max-width: 900px; margin: 60px auto; padding: 30px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; max-width: 1000px; margin: 60px auto; padding: 0 20px; }
.contact-card { background: var(--white); padding: 35px; border-radius: 12px; text-align: center; box-shadow: var(--shadow); }
.contact-card i { font-size: 2.5rem; color: var(--nature-green); margin-bottom: 20px; }

/* --- Admin Panel --- */
.login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-brown); z-index: 2000; display: flex; justify-content: center; align-items: center; }
.login-box { background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); text-align: center; width: 300px; }
.admin-container { max-width: 900px; margin: 60px auto; padding: 30px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); }
.product-list-item { background: var(--bg-cream); padding: 15px; margin-bottom: 12px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #eee; }
.action-btn { padding: 6px 12px; cursor: pointer; border-radius: 6px; border: none; margin-left: 8px; font-weight: 600; font-size: 0.85rem; }
.btn-del { background: #FFEBEE; color: #D32F2F; }
.btn-edit { background: #E3F2FD; color: #1976D2; }

.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 32px; box-shadow: 2px 4px 10px rgba(0,0,0,0.2); z-index: 100; display: flex; align-items: center; justify-content: center; transition: transform 0.3s ease; }
.whatsapp-float:hover { transform: scale(1.1); }