/* General Styling */
:root {
    /* FINAL PALETTE: Dark Forest Green, Terracotta Orange, and White/Cream */
    --primary-color: #386641; /* Dark Forest Green - Deep, rich, dominant color */
    --secondary-color: #D35400; /* Terracotta Orange - Rich, original accent color */
    --text-color: #333; /* Dark gray for text */
    --light-bg: #F8F7F4; /* Creamy Off-White - Cleaner background */
    --dark-bg: #2C3E50; /* Dark Blue-Grey - For footer/Headings (unchanged) */
    --white: #fff; /* Pure White */
    --box-shadow: 0 6px 15px rgba(0,0,0,0.12); /* Deeper, softer shadow */
    --subtle-shadow: 0 2px 4px rgba(0,0,0,0.06); /* Lighter element shadow */
    
    /* FINAL FONTS: Lora (Sharp Serif) for Headings, Poppins (Modern Sans) for Body */
    --heading-font: 'Lora', serif; 
    --body-font: 'Poppins', sans-serif; 
}

/* Base box-sizing correction for layout control */
*, *::before, *::after {
    box-sizing: border-box;
}

/* AGGRESSIVE ROOT FIX: Allow main page vertical scrolling but hide accidental horizontal scrollbars */
html {
    overflow-x: hidden;
    overflow-y: auto; 
    &::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

body {
    font-family: var(--body-font);
    margin: 0; 
    padding: 0;
    background-color: var(--light-bg); 
    color: var(--text-color);
    width: 100%; 
    overflow-y: auto; 
    -ms-overflow-style: none;  
    scrollbar-width: none; 
}

/* NEW FIX: Ensure main content wrapper stretches horizontally */
main {
    width: 100%;
    display: block; 
    overflow: hidden; 
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--dark-bg);
    line-height: 1.2;
    margin-top: 0;
    font-weight: 700; /* Make all headings bold */
}
h2 { font-size: 2.5rem; }


a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color); /* Hover to accent color */
}

/* Modernized Button Style */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 14px 30px; /* Slightly larger padding */
    border-radius: 30px; /* Pill shape for modernity */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700; /* Bolder text */
    box-shadow: 0 4px 8px rgba(211, 84, 0, 0.3); /* Shadow based on secondary color */
}

.btn:hover {
    background-color: #B84C00; /* Darker secondary on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(211, 84, 0, 0.5); 
    color: var(--white);
}

/* Flash Sale Banner */
.flash-sale-banner {
    background-color: var(--primary-color); 
    color: var(--white);
    text-align: center;
    padding: 12px 20px; /* Slightly more padding */
    font-size: 1.0rem;
    font-weight: 700;
    box-shadow: var(--subtle-shadow);
    width: 100%; 
}

.flash-sale-banner p {
    margin: 0;
}

.flash-sale-banner .banner-link {
    color: var(--secondary-color); 
    text-decoration: underline;
    margin-left: 15px;
    transition: color 0.3s ease;
    font-weight: 800;
}

.flash-sale-banner .banner-link:hover {
    color: var(--light-bg); /* Cream hover for accent */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white); 
    padding: 10px 40px; /* Reduced vertical padding */
    box-shadow: var(--subtle-shadow); /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; 
    overflow: hidden; 
}

.navbar .logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-bg); /* Logo should be dark text for contrast */
}

.logo a img {
    height: 45px; /* Slightly smaller logo */
    width: auto;
}

/* Desktop Menu Links */
.main-nav-links {
    display: flex;
    gap: 25px; /* Wider gap for cleaner look */
    transition: transform 0.3s ease-in-out;
}

.main-nav-links a {
    margin: 0 5px;
    font-size: 1.05rem;
    color: var(--text-color);
    transition: color 0.3s ease, border-bottom 0.2s ease;
    padding-bottom: 5px; /* Space for subtle underline hover */
}

.main-nav-links a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color); /* Subtle indicator on hover */
}

.nav-icons {
    display: flex;
    align-items: center;
}

/* Profile Icon Styling */
.profile-icon {
    cursor: pointer;
    font-size: 1.4rem; /* Slightly smaller */
    color: var(--primary-color);
    margin-right: 15px; 
    transition: color 0.2s;
}
.profile-icon:hover {
    color: var(--secondary-color);
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--white); 
    transition: box-shadow 0.3s ease;
}
.search-bar:focus-within {
    box-shadow: 0 0 0 2px var(--primary-color);
    border-color: var(--primary-color);
}

.search-bar input {
    border: none;
    padding: 8px 15px;
    font-size: 0.95rem;
    outline: none;
    background-color: transparent;
}

.search-bar button {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #2F5236; /* Darker primary on hover */
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.4rem;
    margin-left: 20px;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-icon #cart-count {
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 0.8rem;
    position: absolute;
    top: -12px;
    right: -14px;
}

/* Keyframes for the cart icon pulse */
@keyframes cart-pulse {
    0% { transform: scale(1); background-color: var(--secondary-color); }
    50% { transform: scale(1.3); background-color: #28a745; }
    100% { transform: scale(1); background-color: var(--secondary-color); }
}

/* --- MOBILE MENU TOGGLE ICON --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    margin-right: 20px; 
}

/* Hero Section */
.hero {
    width: 100%; 
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--white);
    text-align: left; 
    align-items: flex-start; 
    padding: 120px 10%; /* Increased vertical padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 550px; /* Taller hero section */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8); /* Stronger shadow for readability */
    
    overflow: hidden; 
    max-height: none; 
}

.hero h1 {
    font-size: 3.8rem; /* Larger, bolder heading */
    margin-bottom: 15px;
    color: var(--white);
    max-width: 600px; 
    font-weight: 900; /* Extra bold */
}

.hero p {
    font-size: 1.4rem; /* Clearer subtext */
    margin-bottom: 40px;
    font-weight: 400; /* Regular weight for easy reading */
    max-width: 600px; 
    line-height: 1.5;
    
    overflow: hidden !important;
}

/* General Section Styling (Desktop/Wide Screen) */
.section {
    width: calc(100% - 40px); 
    max-width: 1300px; /* Slightly narrower content container for focus */
    padding: 70px 40px; /* Increased padding */
    
    margin: 40px auto;
    /* Sections get a white background for pop */
    background-color: var(--white);
    border-radius: 12px; /* Rounder corners */
    box-shadow: var(--box-shadow);
    overflow: hidden; 
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8rem;
    color: var(--dark-bg); /* Use dark gray for professionalism */
    position: relative;
}
.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-section-content {
    display: flex;
    align-items: center;
    gap: 60px; /* Increased gap */
    flex-wrap: wrap; 
    overflow: hidden; 
}

.about-section-content img {
    flex: 1 1 50%;
    min-width: 300px;
    max-width: 550px; 
    height: auto;
    border-radius: 10px;
    box-shadow: var(--subtle-shadow);
    object-fit: cover; 
}

.about-section-text {
    flex: 2; 
    min-width: 300px;
}

@media (min-width: 1024px) {
    .about-section-text {
        margin-left: 0;
        flex-basis: auto; 
    }
}
@media (max-width: 1024px) { 
    /* FIX: MOBILE MENU FIX & ABOUT SECTION CENTERING */
    .section {
        padding: 40px 0; 
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    .about-section-content {
        flex-direction: column;
        text-align: center;
    }
    .about-section-text {
        margin-top: 0;
        flex-basis: 100%;
        width: 100%; 
        padding: 0; 
        overflow: hidden; 
        
        display: block; 
        text-align: center; 
    }
    .about-section-text p {
        max-width: 100%; 
        width: 100%; 
        margin: 0 auto 15px auto;
        
        padding: 0 20px; /* Increased padding on text for mobile */
        text-align: center; 
        
        word-wrap: break-word; 
        overflow: hidden;
    }
    .about-section-text .btn {
        margin-left: auto;
        margin-right: auto;
        display: inline-block; 
        width: auto;
    }
    
    /* Hero Section adjustments */
    .hero {
        padding: 60px 5%; /* Reduced vertical padding for mobile */
    }

    /* Navbar icon spacing FIX for mobile */
    .navbar {
        padding: 10px 15px; /* Tighter padding for small screens */
    }
    
    /* NEW FIX: Hide desktop links and set up drawer position */
    .main-nav-links {
        display: none; /* Hidden on desktop */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding-top: 60px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        z-index: 999; 
    }

    /* NEW FIX: Style for the open drawer */
    .main-nav-links.active {
        display: flex; /* Show links when active */
        transform: translateX(0);
    }
    
    .main-nav-links a {
        margin: 5px 15px;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    /* End Mobile Menu Fix */


    .nav-icons {
        order: 3; 
        flex-shrink: 0;
        margin-right: 0;
    }
    
    /* Remove Search Bar */
    .search-bar {
        display: none;
    }

    /* Icon Spacing */
    .profile-icon {
        margin-right: 10px; 
    }
    .cart-icon {
        margin-left: 5px; 
    }
}


.about-section-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Values Section (Why Choose Us) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Smaller min width for 4 columns */
    gap: 30px;
    margin-top: 30px;
}

.value-item {
    text-align: center;
    padding: 30px;
    background-color: var(--light-bg); /* Aesthetic lift from white section background */
    border-radius: 10px;
    box-shadow: var(--subtle-shadow);
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-8px); /* Deeper lift */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.value-item i {
    font-size: 3.0rem; /* Slightly smaller icon */
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.value-item p {
    font-size: 1rem;
    color: #666;
}

/* Testimonials Section Styles */
.testimonials-section {
    background-color: var(--light-bg); 
    padding: 0;
}
/* Revert section styling for testimonial content */
.testimonials-section .section {
    background-color: var(--white);
    padding: 60px 40px;
    margin: 40px auto;
    box-shadow: var(--box-shadow);
    border-radius: 12px;
}


.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid var(--primary-color); /* Stronger accent color band */
    box-shadow: var(--subtle-shadow);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-color);
    line-height: 1.5;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card p {
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-card h4 {
    font-size: 1rem;
    color: var(--dark-bg);
    font-weight: 700;
    margin: 0;
}

.testimonial-card p::before {
    content: "“";
    display: block;
    font-size: 3rem;
    color: var(--secondary-color); /* Quote color to accent */
    line-height: 1;
    margin-bottom: -15px;
}


/* Products Section on Products Page */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Scrolling Products on Home Page */
.scrolling-product-container {
    overflow-x: scroll; 
    padding: 20px 0;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
}
.scrolling-product-container::-webkit-scrollbar {
    display: none;
}


.scrolling-product-grid {
    display: flex;
    width: max-content; 
    flex-wrap: nowrap;
    gap: 30px;
    animation: scrollProducts 40s linear infinite; 
    padding-bottom: 10px;
}
.scrolling-product-grid:hover {
    animation-play-state: paused;
}
@keyframes scrollProducts {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}


/* Styling for the new "View All Products" link in the products section header */
.products-heading {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8rem;
    color: var(--dark-bg);
    position: relative;
    padding-bottom: 5px; 
}

.products-heading .view-all-link {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.products-heading .view-all-link:hover {
    color: #B84C00;
    text-decoration: underline;
}

/* Category Filter Bar */
.category-filter-bar {
    text-align: center;
    margin-bottom: 30px;
    display: flex; 
    justify-content: center;
    flex-wrap: wrap; 
    gap: 10px;
}

.category-filter-bar .btn-category {
    background-color: transparent;
    color: var(--primary-color); 
    border: 2px solid var(--primary-color); 
    padding: 8px 18px; 
    margin: 0 5px;
    border-radius: 25px; /* Pill shape */
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.category-filter-bar .btn-category.active {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

/* --- SORT BY Dropdown Styling FIX --- */
.filter-sort {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.filter-sort label {
    margin-right: 10px;
    font-weight: bold;
    color: var(--text-color); 
    font-size: 1.0rem;
}

.filter-sort select {
    padding: 10px 15px; 
    border-radius: 8px; 
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    color: var(--dark-bg); 
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Custom dropdown arrow using SVG */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%2F%2Fwww.w3.org%2F2000%2Fsvg%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23386641%22%20d%3D%22M287%20197.8L158.4%2069.2c-4.7-4.7-12.4-4.7-17.1%200L5.4%20197.8c-4.7%204.7-4.7%2012.4%200%2017.1%204.7%204.7%2012.4%204.7%2017.1%200l128-128%20128%20128c4.7%204.7%2012.4%204.7%2017.1%200%204.6-4.7%204.6-12.3%20-.1-17z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
    padding-right: 35px; /* Space for the custom arrow */
    transition: border-color 0.3s ease;
}

.filter-sort select:focus {
    border-color: var(--primary-color); 
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 102, 65, 0.3);
}

.filter-sort select option {
    color: var(--text-color);
    background-color: var(--white);
}

/* Product Cards */
.product-card {
    background-color: var(--white); 
    color: var(--text-color);      
    border-radius: 10px;
    box-shadow: var(--subtle-shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 280px; 
    flex-shrink: 0;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* IMAGE FIT FIX */
.product-card img {
    max-width: 100%;
    height: 180px; /* Reduced height for better card ratio */
    object-fit: contain; 
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.product-card .product-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-top: 5px;
    margin-bottom: 5px;
}

.product-card h3 a {
    color: var(--dark-bg);
    transition: color 0.3s ease;
}

.product-card h3 a:hover {
    color: var(--primary-color);
}

.product-card p {
    font-size: 0.95rem;
    color: #666;
    padding-bottom: 10px; 
    margin-bottom: 5px; 
    flex-grow: 1;
}

.product-card .price-info {
    margin-top: auto;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.product-card .new-price {
    font-size: 1.8rem; /* Larger price */
    font-weight: bold;
    color: var(--secondary-color);
    margin-right: 10px;
}

/* Buy Now/Add to Cart Button Styling in Grid View */
.product-actions-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 auto 15px auto;
    width: 90%;
}

.product-actions-grid .btn {
    padding: 10px 5px;
    font-size: 0.85rem;
    border-radius: 5px; /* Keep buttons standard shape here */
    box-shadow: none;
    transform: none;
    margin: 0; 
    width: 100%;
}

.product-actions-grid .grid-atc {
    background-color: var(--primary-color); /* Primary color for ATC button */
    box-shadow: 0 4px 8px rgba(56, 102, 65, 0.3);
}
.product-actions-grid .grid-atc:hover {
    background-color: #2F5236;
}

.product-actions-grid .grid-buy-now {
    background-color: var(--secondary-color); /* Secondary color for Buy Now */
    order: 2; 
    box-shadow: 0 4px 8px rgba(211, 84, 0, 0.3);
}


/* Newsletter Sign-up Section Styles */
.newsletter-section {
    padding: 60px 40px; 
    background-color: var(--white); 
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--box-shadow); 
}

.newsletter-section h2 {
    color: var(--dark-bg); 
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.newsletter-section h2::after {
    background-color: var(--dark-bg);
}

.newsletter-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex; 
    justify-content: center;
    max-width: 550px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1; 
    padding: 12px 18px;
    border: 1px solid #ccc; 
    border-radius: 30px; /* Pill shape for input */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(56, 102, 65, 0.2);
}

.newsletter-form .btn {
    flex-shrink: 0; 
    padding: 12px 25px;
    font-size: 1rem;
    background-color: var(--primary-color); 
    box-shadow: none;
    transform: none;
    border-radius: 30px;
}

.newsletter-form .btn:hover {
    background-color: #2F5236; 
    transform: none;
}


/* Blog Page Styles */
.blog-container {
    max-width: 1000px; 
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post {
    display: flex;
    gap: 30px;
    background-color: var(--light-bg); 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--subtle-shadow);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* Blog Image Fit Fix */
.blog-post img {
    width: 35%; /* Slightly smaller image on desktop */
    height: auto;
    object-fit: cover; 
    min-height: 250px;
    border-radius: 0;
}

.blog-post .post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-post h3 {
    font-size: 1.6rem;
    color: var(--dark-bg);
    margin-bottom: 8px;
}

.blog-post .post-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.blog-post p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.btn-read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: #B84C00;
}

/* Product Details Page Specific Styles */
.product-details-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 50px; /* Wider gap */
    flex-wrap: wrap;
    justify-content: center;
}

.product-image-large {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.product-image-large img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--subtle-shadow);
    border: 1px solid #eee;
}

.product-details-content {
    flex: 2;
    min-width: 300px;
}

.product-details-content h1 {
    font-size: 3.2rem; /* Larger product name */
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.product-details-content .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.product-details-content .description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.quantity-selector label {
    font-weight: 600;
    margin-right: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}
.quantity-selector button {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 8px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quantity-selector button:hover {
    background-color: #2F5236;
}

.quantity-selector span {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 15px;
    min-width: 30px;
    text-align: center;
}

/* Button Styling on Single Product Page */
.product-actions {
    display: flex;
    flex-direction: row; /* Horizontal layout for desktop */
    gap: 15px;
    margin-bottom: 30px;
    justify-content: flex-start; 
}

.product-details-content .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    width: auto; 
    min-width: 200px;
    border-radius: 30px;
}

.product-details-content .add-to-cart {
    background-color: var(--primary-color); /* Primary color for ATC */
    order: 1; 
    box-shadow: 0 4px 8px rgba(56, 102, 65, 0.3);
}
.product-details-content .add-to-cart:hover {
    background-color: #2F5236;
}

.product-details-content .buy-now {
    background-color: var(--secondary-color); /* Secondary color for Buy Now */
    color: var(--white);
    order: 2; 
    box-shadow: 0 4px 8px rgba(211, 84, 0, 0.3);
}

.product-details-content .buy-now:hover {
    background-color: #B84C00; 
}


/* Reviews Section */
.reviews-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.reviews-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
}
.reviews-section h2::after {
    background-color: var(--primary-color);
}

#reviews-list {
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.review-item {
    background-color: var(--light-bg); /* Aesthetic lift for reviews */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.review-item h4 {
    margin: 0 0 8px 0;
    color: var(--dark-bg);
    font-size: 1.1rem;
    font-weight: 700;
}

.review-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.review-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* IMPORTANT FIX */
}

.review-form textarea {
    resize: vertical;
    min-height: 80px;
}

.review-form button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(211, 84, 0, 0.3);
}

.review-form button:hover {
    background-color: #B84C00;
}

/* About Us Page */
.about-us-container, .contact-us-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--box-shadow);
}

.about-us-container h1, .contact-us-container h1 {
    text-align: center;
    font-size: 3.0rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-us-container p, .contact-us-container p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.our-values {
    margin-top: 40px;
}

.our-values h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
}

/* Contact Us Page */
.contact-us-container .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    align-items: flex-start; /* Align left */
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-us-container .contact-info div {
    display: flex;
    align-items: flex-start;
    color: #555;
}

.contact-us-container .contact-info i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    min-width: 30px;
    margin-top: 5px; /* Adjust icon alignment with text */
}

.contact-form {
    text-align: center; 
    max-width: 600px;
    margin: 0 auto;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left; 
    color: var(--text-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select { 
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* IMPORTANT FIX */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(56, 102, 65, 0.3);
}

.contact-form button:hover {
    background-color: #2F5236;
}


/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #f0f0f0;
    padding: 50px 20px 20px; /* Increased top padding */
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Spaced out sections */
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    gap: 40px; /* Increased gap */
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    color: var(--secondary-color); /* Used accent color for footer headings */
    margin-bottom: 18px;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-section p {
    color: #ccc;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section .contact-info span {
    display: flex; /* Use flex to align icon/text */
    align-items: flex-start;
    margin-bottom: 10px;
    color: #ccc;
    line-height: 1.5;
}

.footer-section .contact-info i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 20px;
    margin-top: 3px;
}

.footer-section .social a {
    color: var(--white);
    font-size: 1.6rem;
    margin-right: 18px;
    transition: color 0.3s ease;
}

.footer-section .social a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    /* FIX: Corrected border thickness */
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    color: #aaa;
}


/* Modals (Cart and Checkout) */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); 
    width: 90%;
    max-width: 550px; /* Slightly narrower modal */
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 30px; /* Increased padding */
    animation: fadeIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.open {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-content h2 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.modal .close-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close-btn:hover,
.modal .close-btn:focus {
    color: var(--secondary-color);
    text-decoration: none;
}

#cart-items {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    justify-content: space-between;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item .item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.cart-item .item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1.0rem;
    color: var(--text-color);
}

.cart-item .cart-item-controls button {
    background-color: #ddd;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
    margin: 0 3px;
}

.cart-item .cart-item-controls button:hover {
    background-color: #ccc;
}
.cart-item .cart-item-controls button.remove-btn:hover {
    background-color: #d32f2f;
}

.cart-item .item-price {
    font-weight: bold;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-left: 15px;
    flex-shrink: 0;
}

.cart-summary .checkout-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(211, 84, 0, 0.3);
}

.cart-summary .checkout-btn:hover {
    background-color: #B84C00;
}

/* Checkout Modal Specifics */
#checkout-form {
    margin-top: 20px;
    text-align: center;
}

#checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    text-align: left;
    width: 100%;
}

#checkout-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* IMPORTANT FIX */
}

#checkout-form .place-order-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(56, 102, 65, 0.3);
}

#checkout-form .place-order-btn:hover {
    background-color: #2F5236;
}

#order-summary {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

#order-summary h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .name {
    color: #555;
}

.summary-item .price {
    font-weight: bold;
    color: var(--text-color);
}

.summary-total {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

#thank-you-message h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

/* --- MOBILE VIEW OPTIMIZATION (COMPACT MENU & LAYOUT) --- */
@media (max-width: 1024px) { 
    
    /* Navbar Layout and Ordering */
    .navbar {
        padding: 10px 15px; /* Tighter padding for small screens */
    }

    /* Logo Centering */
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%); 
        order: 2; 
    }

    /* Menu Toggle in far left (Order: 1) */
    .menu-toggle {
        display: block; 
        order: 1; 
    }
    
    /* Hero Section adjustments */
    .hero {
        padding: 60px 5%; /* Reduced vertical padding for mobile */
        min-height: 400px;
        text-align: center;
        align-items: center;
    }
    .hero h1 {
        font-size: 2.5rem;
        max-width: 100%;
        margin-right: 0;
    }
    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
        margin-right: 0;
    }

    /* Icon Group adjustment */
    .nav-icons {
        order: 3; 
        flex-shrink: 0;
        margin-right: 0; 
    }
    
    /* Remove Search Bar */
    .search-bar {
        display: none;
    }

    /* Icon Spacing */
    .profile-icon {
        margin-right: 10px; 
    }
    .cart-icon {
        margin-left: 5px; 
    }
    
    /* Mobile Menu drawer styling */
    .main-nav-links {
        display: none; /* Hidden on desktop */
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding-top: 60px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease-out;
        z-index: 999; 
    }

    /* NEW FIX: Style for the open drawer */
    .main-nav-links.active {
        display: flex; /* Show links when active */
        transform: translateX(0);
    }
    
    .main-nav-links a {
        margin: 5px 15px;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    /* End Mobile Menu Fix */
    
    /* Our Story Section Centering (Ensure text is centered) */
    .about-section-content {
        gap: 20px;
    }
    .about-section-text p {
        padding: 0 20px; 
        text-align: center; 
    }

    /* Product Details Page on Mobile */
    .product-details-container {
        padding: 30px 20px;
        gap: 30px;
    }
    .product-details-content h1 {
        font-size: 2.2rem;
    }
    .product-details-content .price {
        font-size: 2.0rem;
    }
    .product-actions {
        flex-direction: column; /* Stack buttons vertically */
    }
    .product-details-content .btn {
        width: 100%; 
        max-width: none;
    }

    /* Footer layout adjustment for mobile */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    .footer-section {
        min-width: 100%;
        text-align: center; 
    }
    .footer-section ul,
    .footer-section .social {
        padding-left: 0;
        text-align: center; 
    }
    .footer-section .contact-info span {
        justify-content: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-section .contact-info i {
        margin-top: 5px;
    }
    
    /* Blog post image stack */
    .blog-post {
        flex-direction: column;
    }
    .blog-post img {
        width: 100%;
        min-height: auto;
    }
    .blog-post .post-content {
        padding: 20px;
    }

    /* FIX: Profile/Checkout Modal input width issue on mobile */
    #checkout-form input,
    #checkout-form select,
    .review-form input[type="text"],
    .review-form textarea {
        width: 100%;
        box-sizing: border-box; 
    }
    
    /* Further adjustment for about text alignment if needed on smaller screens */
    .about-us-container .contact-info {
        align-items: center; 
        text-align: center;
    }
    .about-us-container .contact-info div {
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
    .about-us-container .contact-info i {
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/* --- LOGIN MODAL AESTHETIC IMPROVEMENTS (To match download.png style) --- */

/* Ensures the login form takes up the full width inside the modal */
#login-modal .modal-content {
    padding: 35px 30px; /* Slightly more vertical padding */
    text-align: center;
}

#login-modal h2 {
    font-size: 2.2rem;
    color: var(--dark-bg);
    margin-bottom: 30px; /* Space below the main heading */
}

#login-modal form {
    text-align: left; /* Aligns labels and inputs left */
}

#login-modal h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

#login-modal label {
    font-weight: 400; /* Regular weight for a cleaner look */
    color: #555;
    margin-bottom: 5px;
    display: none; /* Hiding the explicit label to match the image's style */
}

#login-modal input[type="email"],
#login-modal input[type="password"] {
    width: 100%;
    padding: 12px 15px; /* Taller inputs */
    margin-bottom: 20px; 
    border: 1px solid #ccc;
    border-radius: 8px; /* Slightly rounder edges */
    font-size: 1.05rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease;
}

#login-modal input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(56, 102, 65, 0.2); /* Subtle green focus ring */
}

#login-modal .divider {
    color: #999;
    margin: 25px 0;
    font-size: 0.95rem;
}

/* Style for the main Log In button (using primary color) */
#email-login-form .btn {
    background-color: var(--primary-color);
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(56, 102, 65, 0.3);
    margin-top: 5px;
    margin-bottom: 10px;
}

#email-login-form .btn:hover {
    background-color: #2F5236;
}

/* Style for the Google Sign In button */
#google-login-btn {
    background-color: var(--white); /* White background for Google */
    color: var(--text-color); /* Dark text color */
    border: 1px solid #ddd;
    box-shadow: var(--subtle-shadow);
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.2s;
}

#google-login-btn:hover {
    background-color: var(--light-bg);
    color: var(--text-color);
    transform: none;
    box-shadow: var(--subtle-shadow);
}