/* Variables */
:root {
    --primary-color: #bc450d;
    --secondary-color: #e7b216;
    --dark-color: #541907;
    --accent-color: #358ba2;
    --light-color: #ffffff;
    --text-color: #333333;
    --header-height: 50px;
    --footer-height: 60px;
    --mobile-nav-height: 60px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Arial", sans-serif;
    color: var(--text-color);
    background-color: #f8f8f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--mobile-nav-height); /* Space for mobile nav */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0; /* Remove space for desktop */
    }
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Header Styles */
.main-header {
    background-color: var(--light-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: var(--header-height);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.menu-icon,
.search-icon {
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Desktop Search (hidden on mobile) */
.desktop-search {
    display: none;
}

/* Desktop Cart (hidden on mobile) */
.desktop-cart {
    display: none;
}

/* Mobile Search Container */
.search-container {
    background-color: var(--light-color);
    padding: 10px 20px;
    display: none;
    border-top: 1px solid #eee;
}

.search-container.active {
    display: block;
}

/* Common search form styles */
.search-container form,
.desktop-search form {
    display: flex;
    width: 100%;
}

.search-container input,
.desktop-search input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-container button,
.desktop-search button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

/* Desktop specific styles */
@media (min-width: 768px) {
    .header-container {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        padding: 15px 40px;
        /* Keep a consistent height - no extra padding at bottom */
        height: auto;
        min-height: var(--header-height);
    }

    .logo {
        grid-column: 1;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    /* Show desktop search on desktop with proper spacing */
    .desktop-search {
        display: block;
        grid-column: 2;
        padding: 0 20px;
        /* Position properly within the header */
        align-self: center;
    }

    /* Improve search form appearance */
    .desktop-search form {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        position: relative;
    }

    .desktop-search input {
        padding: 12px 15px;
        border: 1px solid #e0e0e0;
    }

    .desktop-search button {
        padding: 12px 20px;
    }

    /* Show desktop cart on desktop */
    .desktop-cart {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        grid-column: 3;
    }

    .desktop-cart a {
        font-size: 1.5rem;
        color: var(--primary-color);
        position: relative;
    }

    .cart-count {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: var(--secondary-color);
        color: var(--dark-color);
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    /* Hide mobile-only elements on desktop */
    .menu-icon,
    .search-icon {
        display: none;
    }

    /* Hide mobile search container on desktop */
    .search-container {
        display: none !important;
    }

    /* Desktop Navigation - FIXED to prevent overlap */
    .desktop-nav {
        display: block;
        background-color: var(--primary-color);
        position: relative;
        z-index: 10; /* Ensure nav is below the header container */
        /* Add a bit of space to separate from header */
        margin-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .desktop-nav ul {
        display: flex;
        justify-content: center;
    }

    .desktop-nav li {
        position: relative;
    }

    .desktop-nav a {
        color: white;
        display: block;
        padding: 15px 20px;

    }

    .desktop-nav a:hover {
        background-color: var(--dark-color);
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: var(--light-color);
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.close-menu {
    text-align: right;
    padding: 15px;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

.mobile-menu ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
}

.mobile-menu ul li a:hover {
    background-color: #f5f5f5;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-nav-height);
    background-color: var(--light-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    padding: 5px 0;
    width: 33.333%;
    text-align: center;
}

.nav-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.nav-item span {
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 0 0 10px 10px;
    background-image: url("../images/farm-background.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(
        84,
        25,
        7,
        0.7
    ); /* Using your dark color with transparency */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(
        --secondary-color
    ); /* Using your gold color for better visibility */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
    .hero-section {
        padding: 120px 20px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;

}

.btn-primary:hover {
    background-color: var(--dark-color);
}

.hero-content .btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    font-weight: bold;
    padding: 15px 30px;
    font-size: 1.1rem;
    border: 2px solid transparent;
}

.hero-content .btn-primary:hover {

    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;

}

.btn-secondary:hover {
    background-color: #2a6d80;
}

/* Featured Products */
.featured-products {
    margin-bottom: 40px;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.product-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .product-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background-color: white;
    /* border-radius: 8px; */
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px 15px 5px;
    color: var(--primary-color);
}

.product-card p {
    padding: 0 15px 15px;
    color: #666;
}

.product-card .btn-secondary {
    margin: 0 15px 15px;
    display: inline-block;
}

/* About Section */
.about-section {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.about-section h2 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.about-section p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Pages */
.products-header,
.category-header {
    text-align: center;
    margin-bottom: 30px;
}

.products-header h1,
.category-header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;

}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-content {
    padding: 20px;
}

.category-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-content p {
    color: #666;
    margin-bottom: 15px;
}

/* Product List */
.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;

}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-details {
    padding: 20px;
}

.product-details h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.price {
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Add borders for visual separation */
.product-card,
.category-card,
.product-item {
    border: 1px solid #e0e0e0;
}

/* ==========================================
   MODERN FLAT FOOTER STYLES
   ========================================== */

/* Footer Main Container */
.modern-footer {
    background-color: #541907;
    color: #ffffff;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-main {
    padding: 50px 0 30px;
}

/* Footer Section */
.footer-section {
    margin-bottom: 20px;
}

/* Footer Title (Company Name) */
.footer-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Footer Headings */
.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Footer Description */
.footer-desc {
    color: #b8b8b8;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.badge-item {
    background-color: rgba(188, 69, 13, 0.1);
    border: 1px solid rgba(188, 69, 13, 0.3);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b8b8b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-links a:hover::before {
    width: 100%;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #b8b8b8;
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 18px;
}

.contact-item a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer Bottom */
.footer-bottom {
    background-color: #541907;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #888888;
    font-size: 0.85rem;
    margin: 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(188, 69, 13, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .footer-main {
        padding: 40px 0 20px;
    }

    .footer-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 30px 0 20px;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-heading {
        font-size: 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .trust-badges {
        justify-content: flex-start;
    }

    .badge-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 575px) {
    .footer-section {
        margin-bottom: 25px;
    }

    .social-links {
        justify-content: center;
    }

    .contact-item {
        font-size: 0.85rem;
    }
}

/* ==========================================
   ENHANCED SEO SECTION STYLES
   ========================================== */

.seo-section {
    background: linear-gradient(135deg, #fef9f5 0%, #ffffff 100%);
    padding: 60px 0;
    margin-top: 60px;
    border-top: 4px solid var(--primary-color);
    border-bottom: 1px solid #e0e0e0;
}

/* Main Title */
.seo-main-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-tagline {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
}

/* SEO Content Box */
.seo-content {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    border-left: 5px solid var(--secondary-color);
}

.seo-title {
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.seo-product-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 25px 0 15px;
}

.seo-text {
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.seo-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Product Highlights */
.product-highlights {
    background-color: #fef9f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(188, 69, 13, 0.2);
}

.product-highlight-item {
    color: #333333;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 10px;
}

.product-highlight-item:last-child {
    margin-bottom: 0;
}

.product-highlight-item strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

/* Service Highlights Sidebar */
.seo-highlights {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--dark-color) 100%
    );
    color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(188, 69, 13, 0.3);
    height: 100%;
}

.seo-subtitle {
    color: var(--secondary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.seo-list li {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.seo-list i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* CTA Section */
.seo-cta {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.seo-cta p {
    margin-bottom: 10px;
    color: #ffffff;
}

.seo-cta strong {
    color: var(--secondary-color);
    font-size: 1rem;
}

.store-location {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px !important;
}

.seo-cta .btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.seo-cta .btn-primary:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.seo-cta .btn-primary i {
    margin-right: 8px;
}

/* Keywords Section */
.seo-keywords {
    margin-top: 40px;
    padding: 25px 30px;
    background: linear-gradient(
        135deg,
        rgba(188, 69, 13, 0.08) 0%,
        rgba(231, 178, 22, 0.08) 100%
    );
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--secondary-color);
}

.seo-keywords p {
    color: #555555;
    font-size: 0.85rem;
    line-height: 2;
    margin-bottom: 15px;
}

.seo-keywords p:last-child {
    margin-bottom: 0;
}

.seo-keywords strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .seo-section {
        padding: 40px 0;
        margin-top: 40px;
    }

    .seo-main-title {
        font-size: 1.6rem;
    }

    .seo-tagline {
        font-size: 1rem;
    }

    .seo-title {
        font-size: 1.3rem;
    }

    .seo-content {
        margin-bottom: 20px;
    }

    .seo-highlights {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .seo-section {
        padding: 30px 0;
        margin-top: 30px;
    }

    .seo-main-title {
        font-size: 1.4rem;
    }

    .seo-tagline {
        font-size: 0.95rem;
    }

    .seo-title {
        font-size: 1.2rem;
    }

    .seo-product-title {
        font-size: 1.1rem;
    }

    .seo-content,
    .seo-highlights {
        padding: 25px;
    }

    .seo-text {
        font-size: 0.9rem;
        text-align: left;
    }

    .product-highlights {
        padding: 15px;
    }

    .product-highlight-item {
        font-size: 0.85rem;
    }

    .seo-keywords {
        padding: 20px;
    }

    .seo-keywords p {
        font-size: 0.8rem;
        line-height: 1.8;
    }

    .seo-list li {
        font-size: 0.85rem;
    }

    .seo-subtitle {
        font-size: 1.2rem;
    }

    .seo-cta .btn-primary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .seo-main-title {
        font-size: 1.2rem;
    }

    .seo-title {
        font-size: 1.1rem;
    }

    .seo-subtitle {
        font-size: 1.1rem;
    }

    .product-highlight-item strong {
        font-size: 0.9rem;
    }
}
