/*
Theme Name: Plenteous Pearl Theme
Theme URI: http://plenteouspearl.com
Author: Pro Developer
Description: A native PHP custom theme for Garri, Palm Oil, and Fufu.
Version: 5.0 (Clean Build)
Text Domain: agro-theme
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-green: #14591D;   /* Corporate Green */
    --accent-gold: #C5A059;     /* Pearl Gold */
    --off-white: #fcfcfc;
    --white: #ffffff;
    --text-dark: #222222;
    --border-color: #e5e5e5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents mobile breakage */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================
   2. HEADER & TOP BAR
   ========================================= */
.top-bar {
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
    text-align: center;
}

.site-header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo-area {
    flex: 1;
    text-align: left;
}
.text-logo {
    font-family: 'Georgia', serif; /* Corporate Serif */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-transform: uppercase;
    line-height: 1.1;
}
.group-text {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

/* Navigation (Desktop) */
.main-navigation { flex: 2; }
.nav-links { display: flex; justify-content: flex-end; gap: 25px; }
.nav-links li a { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; }
.nav-links li a:hover { color: var(--primary-green); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 15px; margin-left: 20px; }
.cart-btn { font-weight: bold; color: var(--primary-green); }

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero-section {
    background-color: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem;
}
.hero-section h1 { font-size: 2.5rem; margin-bottom: 1rem; font-family: 'Georgia', serif; }
.btn-cta {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: bold;
}

/* =========================================
   4. PRODUCT GRID
   ========================================= */
.section-title { text-align: center; margin: 3rem 0 2rem; color: var(--primary-green); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* WooCommerce Cards */
.woocommerce ul.products li.product, 
.product-card {
    background: var(--white);
    padding: 1rem;
    border: 1px solid #eee;
    text-align: center;
    border-radius: 8px;
}
.product-card h3 { font-size: 1.1rem; margin: 10px 0; }
.price { color: var(--primary-green); font-weight: bold; display: block; margin-bottom: 10px; }

/* =========================================
   5. FOOTER
   ========================================= */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 4rem;
}

/* =========================================
   6. MOBILE RESPONSIVENESS (The Critical Fix)
   ========================================= */
.menu-toggle { display: none; } /* Hide mobile button on PC */

@media screen and (max-width: 768px) {
    /* Prevent Breaking */
    .header-inner { flex-wrap: nowrap; } 
    
    /* Elements */
    .logo-area { text-align: center; white-space: nowrap; overflow: hidden; }
    .text-logo { font-size: 1rem; }
    .group-text { font-size: 0.65rem; }
    
    /* Mobile Menu Button */
    .menu-toggle { 
        display: block; 
        background: none; border: none; 
        font-size: 1.5rem; color: var(--primary-green); 
        flex: 0 0 30px;
    }
    
    /* Cart */
    .header-actions { margin-left: 0; flex: 0 0 30px; justify-content: flex-end; }
    .desktop-only { display: none; }

    /* The Drawer Menu */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
    }
    .main-navigation.toggled { display: block; }
    .nav-links { flex-direction: column; gap: 0; }
    .nav-links li a { display: block; padding: 15px; border-bottom: 1px solid #eee; }
}