/* ===== FRESH FARMS MARKET - COMPLETE CSS ===== */
/* Just copy everything below this line into your style.css file */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-green: #27ae60;
    --secondary-green: #2ecc71;
    --dark-green: #229954;
    --fresh-orange: #e67e22;
    --fresh-red: #e74c3c;
    --light-bg: #f9fdf7;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #34495e;
    --black: #2c3e50;
    
    /* Fonts */
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--light-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER ===== */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-green);
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--fresh-orange);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
    background-color: rgba(39, 174, 96, 0.1);
}

.cart-btn {
    position: relative;
    background: var(--primary-green);
    color: white !important;
    padding: 0.4rem 0.9rem !important;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--fresh-red);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-green);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 3rem 0;
    flex: 1;
}

.section-title {
    text-align: center;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.category-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border: 1px solid var(--medium-gray);
    border-radius: 20px;
    font-weight: 600;
    color: var(--dark-gray);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

/* ===== PRODUCTS GRID ===== */
/* Mobile: 2 products per row */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--light-bg);
    color: var(--primary-green);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.product-description {
    font-size: 0.85rem;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 0.8rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--medium-gray);
    background: white;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    padding: 0.4rem;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    text-align: center;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-actions .btn {
    padding: 0.6rem;
    font-size: 0.9rem;
}

/* ===== INSTRUCTIONS SECTION ===== */
.instructions-section {
    background: var(--dark-green);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.instructions-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.instructions-box h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.instructions-list {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.instructions-list li {
    margin-bottom: 0.8rem;
}

.note {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, var(--dark-green), var(--black));
    color: white;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1rem;
    background: var(--primary-green);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--dark-gray);
}

.cart-total {
    padding: 1rem;
    background: var(--light-bg);
    border-top: 1px solid var(--medium-gray);
}

.cart-total p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-green);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1002;
    display: none;
    align-items: center;
    gap: 10px;
}

.notification.show {
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet: 3 products per row */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Desktop: 4 products per row */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cart-sidebar {
        width: 400px;
        right: -400px;
    }
}

/* Mobile menu */
@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .product-actions .btn {
        font-size: 0.8rem;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 3rem 0;
    }
}