/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c7a2c, #4caf50);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav a:hover {
    opacity: 0.8;
}

.cart-icon {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.cart-icon:hover {
    background: rgba(255,255,255,0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(76, 175, 80, 0.8), rgba(76, 175, 80, 0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%234caf50" width="1200" height="600"/><path fill="%232e7d32" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-btn:hover {
    background: #e55a2e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.4);
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: white;
}

.products-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c7a2c;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #e8f5e8;
    border: 2px solid #4caf50;
    color: #2c7a2c;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4caf50;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2c7a2c;
}

.product-category {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #4caf50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c7a2c;
}

.about-section p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    background: white;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c7a2c;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e8f5e8;
}

.contact-item h3 {
    color: #2c7a2c;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    background: #4caf50;
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: white;
    opacity: 0.8;
}

.close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin-bottom: 0.5rem;
    color: #2c7a2c;
}

.cart-item-info p {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: #4caf50;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #45a049;
}

.cart-total {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.cart-total h3 {
    color: #2c7a2c;
    font-size: 1.5rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Product Actions and Quantity Controls */
.product-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    width: 100%;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #e8f5e8;
    border-radius: 30px;
    padding: 0.4rem 1.2rem;
    box-shadow: 0 2px 8px rgba(76,175,80,0.10);
    min-width: 130px;
    justify-content: center;
    border: 1.5px solid #4caf50;
}

.quantity-controls .quantity-btn {
    background: #4caf50;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(44,122,44,0.10);
    font-weight: bold;
}

.quantity-controls .quantity-btn:active {
    background: #388e3c;
    transform: scale(0.95);
}

.quantity-controls .quantity-btn:hover {
    background: #388e3c;
    transform: scale(1.12);
}

.quantity-controls .quantity {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c7a2c;
    min-width: 28px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    padding: 2px 8px;
    border: 1px solid #c8e6c9;
    margin: 0 2px;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2100;
}
.hamburger .bar {
    width: 28px;
    height: 4px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hide hamburger bars when active (cross state) */
.hamburger.active .bar {
    background: transparent;
}
.hamburger.active .bar:nth-child(1),
.hamburger.active .bar:nth-child(3) {
    background: #fff;
}
.hamburger.active .bar:nth-child(2) {
    background: transparent;
}

/* Hamburger close X styles */
.hamburger .close-x {
    display: none;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    pointer-events: none;
    z-index: 2200;
}
.hamburger.active .close-x {
    display: block;
    pointer-events: auto;
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    .cart-icon {
        z-index: 2100;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav ul {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .cart-actions {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0 8px;
    }
    .logo {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.5rem;
    }
    .logo h1 {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }
    .logo p {
        font-size: 0.8rem;
    }
    .nav ul {
        flex-direction: column;
        gap: 0.2rem;
        align-items: flex-start;
        padding-left: 0;
        font-size: 1rem;
    }
    .nav li {
        margin-bottom: 0.2rem;
    }
    .cart-icon {
        align-self: flex-end;
        margin-top: 0.5rem;
        font-size: 1rem;
        padding: 0.3rem 0.7rem;
    }
    .hero {
        padding: 2.5rem 0 2rem 0;
    }
    .hero h2 {
        font-size: 1.3rem;
    }
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }
    .cta-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
    }
    .products-section {
        padding: 2rem 0 1.5rem 0;
    }
    .products-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    .filter-buttons {
        gap: 0.5rem;
        margin-bottom: 1.2rem;
    }
    .filter-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-card {
        padding: 0.8rem;
        border-radius: 10px;
    }
    .product-image {
        height: 120px;
        font-size: 2rem;
    }
    .product-info h3 {
        font-size: 1rem;
    }
    .product-category {
        font-size: 0.7rem;
        padding: 0.1rem 0.5rem;
    }
    .product-description {
        font-size: 0.8rem;
    }
    .product-price {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    .btn, .btn-primary, .btn-secondary {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .product-actions {
        min-height: 38px;
    }
    .quantity-controls {
        min-width: 90px;
        padding: 0.2rem 0.5rem;
        gap: 0.3rem;
    }
    .quantity-controls .quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }
    .quantity-controls .quantity {
        font-size: 1rem;
        min-width: 18px;
        padding: 1px 4px;
    }
    .about-section, .contact-section {
        padding: 1.5rem 0 1rem 0;
    }
    .about-section h2, .contact-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    .about-section p, .contact-item p {
        font-size: 0.9rem;
    }
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-item {
        padding: 1rem;
    }
    .modal-content {
        width: 98%;
        max-width: 99vw;
        padding: 0.5rem;
    }
    .modal-header, .modal-body {
        padding: 0.7rem;
    }
    .cart-item-info h4 {
        font-size: 1rem;
    }
    .cart-item-controls {
        gap: 0.3rem;
    }
    .cart-total h3 {
        font-size: 1.1rem;
    }
    .footer {
        padding: 1rem 0;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: #388e3c;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0 1rem 1.5rem;
        box-shadow: 0 4px 16px rgba(44,122,44,0.08);
        z-index: 2000;
        display: none;
    }
    .nav.open {
        display: flex;
    }
    .nav ul {
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
    }
    .nav li {
        width: 100%;
    }
    .nav a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
        display: block;
    }
}

/* Animation for product filtering */
.product-card.hide {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.product-card.show {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}