/* General Styles */
:root {
    --primary-color: #4CAF50; /* A vibrant green */
    --secondary-color: #8BC34A; /* A lighter green */
    --heading-color: #1A5319; /* Darker green for headings */
    --text-color: #333;
    --background-color: #F1F8E9; /* Light green background */
    --white-color: #fff;
    --gray-light: #eee;
    --gray-medium: #ccc;
    --gray-dark: #666;
    --cream-color: #FAFAD2; /* Assuming '--cream' meant something like a light cream/yellowish tone, added for newsletter/specific backgrounds if needed */
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --transition: all var(--transition-speed) ease; /* Unified transition variable */
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevent horizontal scroll caused by animations or off-screen elements */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition) ease;
}

a:hover {
    color: var(--heading-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.5em; }

p {
    margin-bottom: 1rem;
    font-size: 1.1em;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--heading-color);
    border-color: var(--heading-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.outline-btn {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid var(--heading-color);
}

.outline-btn:hover {
    background-color: var(--heading-color);
    color: var(--white-color);
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        transition: 0.5s;
        z-index: 999;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        padding-top: 60px;
    }
    
    .main-nav ul.active {
        left: 0;
    }
    
    .main-nav ul li {
        margin: 15px 0;
    }
    
    .main-nav ul li a {
        font-size: 1.2rem;
    }
}

/* Header Container Styles */
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Navigation Base Styles */
.main-nav {
    display: flex;
    align-items: center;
}

/* Desktop Navigation */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 20px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* Make sure nothing is hiding the toggle */
.menu-toggle {
    position: relative;
    z-index: 1001;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes leafFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Loader Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color); /* Using consistent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease; /* Added visibility for smoother hide */
}

.loader.fade-out {
    opacity: 0;
    visibility: hidden; /* Hide completely after fading */
}

.leaf-loader {
    display: flex;
    gap: 15px;
}

.leaf-loader i {
    color: var(--primary-color); /* Using consistent primary color */
    font-size: 4rem; /* Made larger for prominence */
    animation: leafFloat 1.5s ease-in-out infinite;
}

.leaf-loader i:nth-child(2) {
    animation-delay: 0.2s;
}

.leaf-loader i:nth-child(3) {
    animation-delay: 0.4s;
}

/* Scroll Animations - Classes added by JS */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}


/* Header/Navigation */
.main-header {
    background-color: #0000;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--heading-color);
    font-size: 1.8em;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0000;
    transition: width var(--transition) ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--gray-light);
}

.search-box input {
    padding: 8px 15px;
    border: none;
    outline: none;
    font-size: 1em;
    background-color: transparent;
}

.search-box button {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition) ease;
}

.search-box button:hover {
    background-color: var(--heading-color);
}

.cart-icon {
    position: relative;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-color);
    transition: color var(--transition) ease;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.7em;
    border-radius: 50%;
    padding: 3px 6px;
    line-height: 1;
}

.mobile-menu-btn {
    display: none; /* Hidden by default */
    font-size: 1.5em;
    cursor: pointer;
    color: var(--text-color);
    transition: color var(--transition);
}
.mobile-menu-btn:hover {
    color: var(--primary-color);
}


/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden off-screen */
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--white-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right var(--transition-speed) ease; /* Only transition right property */
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-menu ul a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color); /* Using consistent text color */
    transition: var(--transition);
}

.mobile-menu ul a:hover {
    color: var(--primary-color); /* Using consistent primary color */
}

.mobile-menu .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.mobile-menu .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-light); /* Using consistent light gray */
    border-radius: 50%;
    color: var(--primary-color); /* Using consistent primary color */
    transition: var(--transition);
}

.mobile-menu .social-icons a:hover {
    background-color: var(--primary-color); /* Using consistent primary color */
    color: var(--white-color); /* Using consistent white */
}

/* Mobile Overlay for background dimming */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Hero Section */
.hero {
    background: url('mainbg.png') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    position: relative;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 2rem;
    color: var(--gray-light);
}

.hero-btns .btn {
    margin: 0 10px;
}

.hero-scroll {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 2em;
    color: var(--white-color);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--white-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}


 /* Shop Section Styles */
    .shop-section {
        padding: 80px 0;
        background-color: #f9f9f9;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2.5rem;
        color: #2e7d32;
        margin-bottom: 15px;
        font-weight: 700;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        color: #666;
        max-width: 700px;
        margin: 0 auto;
    }
    
    /* Category Tabs */
    .category-tabs {
        position: relative;
        margin-bottom: 30px;
    }
    
    .tabs-scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 40px;
    }
    
    .tabs-scroll-container::-webkit-scrollbar {
        display: none;
    }
    
    .tabs-wrapper {
        display: inline-flex;
        gap: 10px;
        padding-bottom: 15px;
    }
    
    .tab-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        border-radius: 30px;
        border: none;
        background-color: #e8f5e9;
        color: #2e7d32;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .tab-btn i {
        font-size: 0.9rem;
    }
    
    .tab-btn:hover {
        background-color: #c8e6c9;
    }
    
    .tab-btn.active {
        background-color: #2e7d32;
        color: white;
    }
    
    .scroll-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: white;
        border: 1px solid #e0e0e0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .scroll-btn:hover {
        background-color: #f5f5f5;
    }
    
    .scroll-left {
        left: 0;
    }
    
    .scroll-right {
        right: 0;
    }
    
    /* Products Grid */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .product-card {
        background-color: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0,0,0,0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
    }
    
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .product-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        color: white;
        z-index: 1;
    }
    
    .product-badge.bestseller {
        background-color: #e53935;
    }
    
    .product-badge.new {
        background-color: #3949ab;
    }
    
    .product-badge.eco {
        background-color: #43a047;
    }
    
    .product-image {
        position: relative;
        height: 250px;
        overflow: hidden;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .product-card:hover .product-image img {
        transform: scale(1.05);
    }
    
    .quick-view {
        position: absolute;
        bottom: -40px;
        left: 0;
        width: 100%;
        background-color: rgba(46, 125, 50, 0.9);
        color: white;
        text-align: center;
        padding: 10px;
        font-weight: 500;
        transition: bottom 0.3s ease;
    }
    
    .product-card:hover .quick-view {
        bottom: 0;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-name {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: #333;
    }
    
    .product-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .product-rating {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .stars {
        --percent: calc(var(--rating) / 5 * 100%);
        display: inline-block;
        font-size: 0.9rem;
        font-family: Times;
        line-height: 1;
    }
    
    .stars::before {
        content: '★★★★★';
        letter-spacing: 2px;
        background: linear-gradient(90deg, #ffc107 var(--percent), #ddd var(--percent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .product-rating span {
        font-size: 0.8rem;
        color: #666;
    }
    
    .product-price {
        text-align: right;
    }
    
    .current-price {
        font-weight: 700;
        color: #2e7d32;
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 0.9rem;
        color: #999;
        text-decoration: line-through;
        margin-left: 5px;
    }
    
    .product-actions {
        display: flex;
        gap: 10px;
    }
    
    .add-to-cart {
        flex: 1;
        padding: 10px;
        background-color: #2e7d32;
        color: white;
        border: none;
        border-radius: 4px;
        font-weight: 500;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .add-to-cart:hover {
        background-color: #1b5e20;
    }
    
    .wishlist-btn {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
        background-color: white;
        color: #666;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .wishlist-btn:hover {
        color: #e53935;
        border-color: #e53935;
    }
    
    /* Section Footer */
    .section-footer {
        text-align: center;
    }
    
    .trust-badges {
        display: flex;
        justify-content: center;
        gap: 30px;
        margin: 30px 0;
        flex-wrap: wrap;
    }
    
    .trust-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        color: #555;
    }
    
    .trust-badge i {
        color: #2e7d32;
    }
    
    .platform-badges {
        margin-top: 30px;
    }
    
    .platform-badges p {
        margin-bottom: 15px;
        color: #666;
    }
    
    .badges {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .platform-badge {
        display: inline-block;
        padding: 10px 15px;
        background-color: white;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .platform-badge:hover {
        transform: translateY(-3px);
    }
    
    .platform-badge img {
        height: 24px;
        width: auto;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: all 0.3s ease;
    }
    
    .platform-badge:hover img {
        filter: grayscale(0);
        opacity: 1;
    }
    
    /* Responsive Styles */
    @media (max-width: 992px) {
        .products-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .section-title {
            font-size: 2rem;
        }
        
        .products-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .trust-badges {
            gap: 20px;
        }
    }
    
    @media (max-width: 576px) {
        .products-grid {
            grid-template-columns: 1fr;
        }
        
        .trust-badges {
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }
        
        .badges {
            flex-wrap: wrap;
        }
    }

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.about-section .container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.about-content {
    flex: 1;
    min-width: 300px; /* Ensure content doesn't shrink too much */
}

.about-content .section-title {
    text-align: left; /* Align title left in this layout */
    margin-bottom: 2rem;
}

.about-content .section-title::after {
    left: 0;
    transform: translateX(0);
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    background-color: var(--white-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition) ease;
}
.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1em;
    color: var(--gray-dark);
    margin: 0;
}

.about-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't shrink too much */
    text-align: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-height: 400px; /* Limit image height */
    object-fit: cover;
    transition: transform var(--transition) ease;
}
.about-image img:hover {
    transform: scale(1.02);
}


/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: minmax(200px, auto); /* Set minimum row height */
    gap: 15px;
}

.gallery-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column; /* Align text nicely */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    padding: 20px; /* Add padding for text */
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--white-color);
    font-size: 1.5em;
    margin: 0;
}


/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Hide testimonials not currently active */
}

.testimonial {
    display: none; /* Hidden by default */
    padding: 30px;
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial.active {
    display: block; /* Show the active testimonial */
    animation: fadeIn 1s ease; /* Add a simple fade in animation */
}

.testimonial-content p {
    font-size: 1.2em;
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-author img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
    font-size: 1.3em;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.testimonial-author span {
    font-size: 1em;
    color: var(--gray-medium);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none; /* Allow clicks to pass through to content */
}

.slider-controls button {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    pointer-events: all; /* Enable clicks on buttons */
}

.slider-controls button:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }


/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.contact-section .container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.contact-info .section-title::after {
    left: 0;
    transform: translateX(0);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.info-item i {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-right: 15px;
}

.info-item p {
    font-size: 1.1em;
    margin: 0;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.8em;
    color: var(--text-color);
    transition: color var(--transition) ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color var(--transition) ease, box-shadow var(--transition) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .primary-btn {
    width: 100%;
    text-align: center;
}


/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 50px 0;
    text-align: center;
}

.newsletter-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-content h3 {
    color: var(--white-color);
    font-size: 2em;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.2em;
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 600px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1em;
    outline: none;
}

.newsletter-form .primary-btn {
    background-color: var(--heading-color);
    color: var(--white-color);
    border: 2px solid var(--heading-color);
    flex-shrink: 0;
}

.newsletter-form .primary-btn:hover {
    background-color: var(--white-color);
    color: var(--heading-color);
    border-color: var(--white-color);
}


/* Footer */
.main-footer {
    background-color: var(--heading-color);
    color: var(--gray-light);
    padding-top: 60px;
    font-size: 0.9em;
}

.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-light);
    transition: color var(--transition) ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    color: var(--gray-light);
    font-size: 1.5em;
    transition: color var(--transition) ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.payment-methods img {
    height: 30px; /* Adjust as needed */
    margin-right: 10px;
    filter: grayscale(50%);
    transition: filter var(--transition) ease;
}

.payment-methods img:hover {
    filter: grayscale(0%);
}


.footer-bottom {
    background-color: #113810; /* Slightly darker green */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: var(--gray-medium);
    font-size: 0.9em;
}

.footer-bottom .footer-links {
    margin-top: 10px;
}

.footer-bottom .footer-links a {
    color: var(--gray-medium);
    margin: 0 10px;
    transition: color var(--transition) ease;
}

.footer-bottom .footer-links a:hover {
    color: var(--primary-color);
}


/* Shopping Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden off-screen */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white-color); /* Consistent white */
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-speed) ease; /* Only transition right property */
}

.cart-sidebar.active {
    right: 0;
}

/* Cart Overlay for background dimming */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}


.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light); /* Consistent gray */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color); /* Consistent primary color */
    margin: 0; /* Removed margin-bottom */
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-dark); /* Using consistent gray for text */
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color); /* Consistent primary color */
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto; /* Enable scrolling if items exceed height */
}

/* Styling for individual cart items */
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Adjusted margin */
    padding-bottom: 20px; /* Adjusted padding */
    border-bottom: 1px solid var(--gray-light); /* Consistent gray */
}

.cart-item:last-child {
    border-bottom: none; /* No border on the last item */
    padding-bottom: 0;
}

.cart-item-img {
    width: 80px; /* Adjusted size */
    height: 80px; /* Adjusted size */
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1.1rem; /* Adjusted size */
    font-weight: 500;
    margin: 0 0 5px 0;
    color: var(--heading-color); /* Consistent heading color */
}

.cart-item-price {
    font-size: 1rem; /* Adjusted size */
    color: var(--primary-color); /* Consistent primary color */
    margin-bottom: 10px;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--gray-light); /* Consistent light gray */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color); /* Default icon color */
    font-size: 0.9em;
}

.quantity-btn:hover {
    background-color: var(--primary-color); /* Consistent primary color */
    color: var(--white-color); /* Consistent white */
}

.cart-item-quantity {
    width: 30px;
    text-align: center;
    font-size: 1em;
    color: var(--text-color);
}

.remove-item {
    margin-left: auto; /* Pushes button to the right */
    color: #ff5252; /* Red color for remove */
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1em;
}

.remove-item:hover {
    transform: scale(1.2);
    color: #e53935; /* Darker red on hover */
}

.cart-total {
    padding: 20px;
    border-top: 1px solid var(--gray-light); /* Consistent gray */
    text-align: right;
}

.cart-total p {
    font-size: 1.3rem; /* Adjusted size */
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--heading-color); /* Consistent heading color */
}

.cart-total span {
    color: var(--primary-color); /* Consistent primary color */
}

.cart-total .btn {
    width: 100%;
    text-align: center;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color); /* Consistent primary color */
    color: var(--white-color); /* Consistent white */
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease; /* Added transform transition */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    font-size: 1.5em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--heading-color); /* Consistent dark green */
    transform: translateY(-5px);
}


/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.4em; }

    .main-nav {
        display: none; /* Hide main nav on smaller screens */
    }

    .mobile-menu-btn {
        display: block; /* Show mobile menu button */
    }

    .main-header .container {
        flex-wrap: nowrap; /* Prevent wrapping in header to keep logo/actions on one line */
        gap: 20px;
    }

    .header-actions {
        gap: 15px;
    }

    .search-box {
        flex-grow: 1; /* Allow search box to take available space */
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .about-section .container {
        flex-direction: column;
    }

    .about-content .section-title,
    .contact-info .section-title {
        text-align: center; /* Center align titles when stacked */
    }

    .about-content .section-title::after,
    .contact-info .section-title::after {
         left: 50%;
         transform: translateX(-50%);
    }

    .about-image {
        order: -1; /* Place image above content on smaller screens */
    }

    /* Adjusted gallery grid for better mobile layout */
    .gallery-grid {
         grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller base item size */
         grid-auto-rows: minmax(180px, auto); /* Slightly smaller auto row */
    }

    .gallery-item.tall,
    .gallery-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .contact-section .container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        min-width: unset; /* Remove minimum width constraint */
        width: 100%; /* Allow them to take full width */
    }

    .footer-col {
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social,
    .payment-methods {
        justify-content: center;
    }

    .newsletter-section .container {
         flex-direction: column;
         text-align: center;
         gap: 20px;
    }

    .newsletter-form {
         max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    h4 { font-size: 1.3em; }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .hero {
        height: 70vh;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-btns .btn {
        margin: 0;
        width: 80%;
        max-width: 250px;
        margin: 0 auto;
    }

    .shop-section,
    .about-section,
    .gallery-section,
    .testimonials-section,
    .contact-section,
    .newsletter-section {
        padding: 60px 0;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
    }

    .products-grid {
         grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Slightly smaller card size */
         gap: 25px;
    }


    .badges {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 15px;
    }

    .testimonial {
        padding: 20px;
    }

    .testimonial-content p {
        font-size: 1em;
    }

    .testimonial-author img {
        width: 60px;
        height: 60px;
    }

    .slider-controls button {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .cart-sidebar {
        width: 300px;
    }

    .main-footer .container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .newsletter-form input[type="email"] {
        width: 80%;
        max-width: 300px;
        padding: 10px 15px;
    }

     .newsletter-form .primary-btn {
        width: 80%;
        max-width: 300px;
        padding: 10px 15px;
     }

     .back-to-top {
         width: 45px;
         height: 45px;
         font-size: 1.3em;
     }
}

@media (max-width: 576px) {
     h1 { font-size: 2.5em; }
     h2 { font-size: 1.8em; }
     h3 { font-size: 1.4em; }
     h4 { font-size: 1.2em; }

     .main-header {
         padding: 10px 0;
     }

    .logo a {
        font-size: 1.5em;
    }
    .logo img {
        height: 30px;
    }

     .header-actions {
         gap: 10px;
     }

     .search-box {
        /* Allow search box to shrink more */
         min-width: 100px;
     }

     .search-box input {
         padding: 6px 10px;
         font-size: 0.9em;
     }

     .search-box button {
        padding: 6px 10px;
     }

     .cart-icon {
         font-size: 1.3em;
     }

     .mobile-menu {
         width: 250px; /* Adjusted width */
         padding: 60px 20px 20px; /* Adjusted padding */
     }

     .hero {
         height: 60vh;
     }

     .hero h1 {
         font-size: 2em;
     }

     .hero p {
         font-size: 0.9em;
     }

    .hero-btns .btn {
        width: 90%;
        padding: 10px 20px;
    }


    .shop-section,
    .about-section,
    .gallery-section,
    .testimonials-section,
    .contact-section,
    .newsletter-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 2rem;
    }

    .category-tabs .tab-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .products-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr; /* Single column */
    }

    .stat-item h3 {
        font-size: 2em;
    }

    .stat-item p {
        font-size: 0.9em;
    }

    .gallery-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 10px;
        grid-auto-rows: minmax(150px, auto); /* Smaller auto row */
    }

    .gallery-overlay h3 {
        font-size: 1.2em;
    }

    .testimonial {
        padding: 15px;
    }

    .testimonial-content p {
        font-size: 0.9em;
        margin-bottom: 1.5rem;
    }

    .testimonial-author img {
        width: 50px;
        height: 50px;
    }

    .testimonial-author h4 {
        font-size: 1.1em;
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-item i {
        margin: 0 0 10px 0;
    }

    .social-links {
        justify-content: center;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9em;
    }

    .newsletter-content h3 {
        font-size: 1.5em;
    }

    .newsletter-content p {
        font-size: 1em;
    }

    .main-footer .container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 20px;
    }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-bottom .footer-links a {
        margin: 0 5px;
    }

    .cart-sidebar {
        width: 100%; /* Full width on small screens */
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
        bottom: 15px;
        right: 15px;
    }
}

/* Added custom animation styles from animate.css as per your original HTML */
/* Ensure you have animate.css linked in your HTML for these to work */

/* Example usage from animate.css */
.animate__animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animate__fadeInDown {
  -webkit-animation-name: fadeInDown;
  animation-name: fadeInDown;
}

.animate__fadeInUp {
  -webkit-animation-name: fadeInUp;
  animation-name: fadeInUp;
}

/* Define animate.css keyframes if you are not linking the full library */
/* (If you link the library, you don't need these keyframes here) */
/*
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
*/