/* ========== GLOBAL RESET & TYPOGRAPHY ========== */
* {
    margin: 0;
    padding: 0;
    box-box-sizing: border-box;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding-top: 70px; /* Prevents content from hiding behind the sticky header */
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== STICKY HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 998;
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #26a541; /* Premium Agri Green */
    text-decoration: none;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-link:hover {
    color: #26a541;
}

/* ========== HEADER ACTIONS & DROPDOWN ========== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.icon-btn:hover {
    color: #26a541;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff4d4d;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Account Dropdown Context */
.account-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
    padding: 10px 0;
    z-index: 1001;
}
.account-dropdown:hover .dropdown-menu {
    display: block;
}
.user-info {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
}
.user-info strong { font-size: 14px; color: #333; }
.user-info span { font-size: 12px; color: #777; }
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #26a541;
}

/* ========== SLIDE-OUT CART OVERLAY & SIDEBAR ========== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}
.cart-sidebar.open { right: 0; }
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}
.close-cart { background: none; border: none; font-size: 20px; cursor: pointer; }
.cart-body { flex-grow: 1; padding: 20px; overflow-y: auto; }
.empty-cart-message { text-align: center; color: #888; margin-top: 50px; }
.empty-cart-message i { font-size: 40px; margin-bottom: 10px; color: #ccc; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; background: #fafafa; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 15px; }
.btn-checkout {
    display: block; width: 100%; padding: 12px; background: #26a541;
    color: white; text-align: center; text-decoration: none; font-weight: bold; border-radius: 4px;
}

/* ========== FULL FOOTER STYLES ========== */
.site-footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
    padding: 60px 0 0 0;
    margin-top: 60px;
    font-family: 'Poppins', sans-serif;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}
.footer-col {
    flex: 1;
    min-width: 250px;
}
.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: #26a541; /* Premium Agri Green */
    text-decoration: none;
    display: inline-block;
    margin-bottom: 15px;
}
.brand-col p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #b0b0b0;
    font-size: 14px;
}
.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #333;
    color: #fff;
    text-align: center;
    line-height: 36px;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background: #26a541;
    transform: translateY(-3px);
}
.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: #26a541;
}
.links-col ul, .contact-info {
    list-style: none;
    padding: 0;
}
.links-col ul li {
    margin-bottom: 12px;
}
.links-col ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    display: inline-block;
}
.links-col ul li a:hover {
    color: #26a541;
    transform: translateX(5px);
}
.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
}
.contact-info li i {
    color: #26a541;
    margin-right: 15px;
    margin-top: 4px;
    font-size: 16px;
}
.footer-bottom {
    background: #111;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #777;
}