/* Base CSS - Loaded on all pages */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables */
:root {
    --primary-green: #2d5f3f;
    --accent-green: #4a7c59;
    --light-green: #f8faf9;
    --text-dark: #2c2c2c;
    --text-gray: #666666;
    --white: #ffffff;
    --border-light: #e8e8e8;
}

/* Base Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Flash Messages - Global utility */
.flash {
    padding: 12px 20px;
    margin-bottom: 10px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 14px;
}

.flash.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.flash.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.flash.warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.flash.info {
    background: #cce7ff;
    color: #004085;
    border-color: #b3d7ff;
}

/* Global Components */
.cta-button {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-green);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    border-bottom: 1px solid var(--border-light);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    background: var(--light-green);
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-gray);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
    padding: 10px 0;
}

.nav-link:hover {
    color: var(--primary-green);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    list-style: none;
    padding: 12px 0;
    margin: 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-link:hover {
    background-color: var(--primary-green);
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: 0;
    width: 300px;
    font-size: 14px;
}

.search-box button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    position: relative;
    width: 44px;
    height: 44px;
    background: var(--primary-green);
    color: white;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    background: var(--accent-green);
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-bottom a:hover {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* Responsive Header/Footer */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }

    .nav-menu {
        display: none;
    }

    .search-box input {
        width: 200px;
    }
}