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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #4CAF50;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: #c0fdb9;
    max-width: 100%;
    height: 13vh;
    padding: 0px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(8px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: 700;
    color: #1cc121;
}

.logo img {
    height: 15vh;
    width: 90px;
    margin-right: 0px;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #2894c2;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #46ea4b;
}

.btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: 2px solid #4CAF50;
}

.btn-primary:hover {
    background-color: #31a437;
    border-color: #37713a;
}

.btn-secondary {
    background-color: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

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

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(230, 23, 23, 0.5)), url('farm-hero.jpg') no-repeat center center/cover; /* Add a farm-hero.jpg image */
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    width: 100%;
    height: 100vh;
    background-size: 100% 100%;
    background-position: center;
    /* background-repeat: no-repeat; */
    background-attachment: fixed;
    box-shadow: 20px 20px 10px rgba(208, 208, 208, 0.5);
    animation: slider 10s linear infinite;
}

@keyframes slider {

    0% {
        background-image: url('pics/71d21a85-7780-4687-aa63-6f19073ce091.jpg');
    }
    
    60% {
        background-image: url('pics/1_MeychflOLBrEkcBeUtY6IQ.png');
    }
    
    100% {
        background-image: url('pics/9a00e6be-1f6e-427d-a36b-ad71c30a7701.jpg');
    }
    
}


.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 60px 0;
    text-align: center;
}

section:nth-child(even) {
    background-color: #f0f0f0;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #54c2e0;
}

p {
    font-size: 1.1em;
    color: #98defc;    
    font-weight: bold;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 1.5em;
    color: #4CAF50;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 0.95em;
    color: #555;
}

/* Marketplace Section */
.marketplace-section {
    background-color: #dafdd8;
}
.marketplace-section {
    width: 100%;
    height: 100vh;
    background-size: 100% 100%;
    background-position: center;
    /* background-repeat: no-repeat; */
    background-attachment: fixed;
    box-shadow: 20px 20px 10px rgba(208, 208, 208, 0.5);
    background-image: url(pics/2229e9fb-2785-4a88-941d-87c1e6c66d94.jpg);
}

.marketplace-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.marketplace-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 450px;
    text-align: left;
}

.marketplace-card h3 {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 15px;
}

.marketplace-card p {
    margin-bottom: 25px;
    color: #555;
}

/* Weather Demo Section */
.weather-demo-section {
    background-color: #f8f8f8;
}

.weather-widget {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
}

#weather-info {
    margin-top: 20px;
    font-size: 1.1em;
    color: #555;
}

#weather-info p {
    margin-bottom: 10px;
}

#weather-info strong {
    color: #333;
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4CAF50;
}

/* Authentication Pages (Login/Signup) */
.auth-page {
    background: linear-gradient(to right, #4CAF50, #7ED321);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    max-width: 450px;
    width: 100%;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
}

.auth-box h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
    border-color: #4CAF50;
    outline: none;
}

.auth-box button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.auth-switch {
    margin-top: 25px;
    font-size: 0.95em;
    color: #666;
}

.auth-switch a {
    font-weight: 700;
}

.message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    display: none; /* Hidden by default */
}

.message.success {
    background-color: #e0f7e0;
    color: #28a745;
    border: 1px solid #28a745;
}

.message.error {
    background-color: #ffe0e0;
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Sell Page Specific */
.sell-page-main {
    padding-top: 80px; /* To account for sticky header */
}

.sell-form-section {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 50px auto;
    text-align: left;
}

.sell-form-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sell-form-section p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px 10px;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1em;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 2em;
    }

    .auth-container {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1.5em;
    }

    .logo img {
        height: 30px;
    }

    .btn-large {
        padding: 12px 25px;
        font-size: 1em;
    }

    nav ul li {
        margin: 0 5px 10px 5px;
    }
}
body{
    font-family: "Ubuntu";
}
.hero> .container{
    background-color: #0b090951;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 50px auto
}

/* Update Header nav to include new page link */
/* No direct change needed here, just ensure your `buy-products.html` link is in the nav */
/* Example in index.html for marketplace section: */
/* <a href="buy-products.html" class="btn btn-secondary">Browse Products</a> */


/* Buy Products Page Specific Styles */
.buy-products-page-main {
    padding-top: 80px; /* To account for sticky header */
}

.products-section {
    padding-top: 40px;
    padding-bottom: 60px;
    text-align: center;
}

.products-section h2 {
    margin-bottom: 20px;
}

.products-section p {
    margin-bottom: 40px;
    color: #666;
}

.filter-sort-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-group, .search-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
}

.filter-sort-bar select,
.filter-sort-bar input[type="text"] {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: 180px; /* Adjust as needed */
    transition: border-color 0.3s ease;
}

.filter-sort-bar input[type="text"] {
    flex-grow: 1; /* Allow search input to grow */
}

.filter-sort-bar select:focus,
.filter-sort-bar input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images cover the area without distortion */
    display: block;
    border-bottom: 1px solid #eee;
}

.product-card h3 {
    font-size: 1.3em;
    color: #333;
    margin: 15px 15px 5px 15px;
}

.product-card .product-description {
    font-size: 0.9em;
    color: #777;
    margin: 0 15px 10px 15px;
    flex-grow: 1; /* Allows description to take up available space */
}

.product-card .product-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #4CAF50;
    margin: 10px 15px 20px 15px;
}

.product-card .btn {
    display: block; /* Make button full width */
    width: calc(100% - 30px); /* Account for padding */
    margin: 0 15px 15px 15px; /* Margin to align with content */
    padding: 12px 0;
    font-size: 1em;
}

.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #4CAF50;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.pagination span {
    padding: 10px 0;
    color: #888;
}

/* Responsive adjustments for filter/sort bar */
@media (max-width: 768px) {
    .filter-sort-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-sort-bar select,
    .filter-sort-bar input[type="text"] {
        width: 100%; /* Full width on smaller screens */
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
}


.no-products-message, .error-message, #loading-message {
    text-align: center;
    font-size: 1.1em;
    color: #555;
    padding: 20px;
    grid-column: 1 / -1; /* Make messages span all columns in the grid */
}

.error-message {
    color: #dc3545;
    font-weight: bold;
}

#loading-message {
    color: #4CAF50;
    font-weight: bold;
}


/* Cart Icon in Navbar */
.cart-icon-container {
    position: relative; /* Needed for positioning the dropdown */
    list-style: none; /* Remove bullet point from li */
    margin-left: 20px; /* Spacing from other nav items */
}

.cart-link {
    display: flex;
    align-items: center;
    color: rgba(15, 15, 15, 0.829);
    text-decoration: none;
    font-size: 1.2em;
    position: relative;
    padding: 0 5px; /* Adjust padding if needed */
}

.cart-link:hover {
    color: #000000; /* Slightly lighter on hover */
}

.cart-link .fa-shopping-cart {
    margin-right: 5px;
    font-size: 1.5em; /* Make icon a bit bigger */
}

.cart-count {
    background-color: #ff5722; /* Orange-red for notification */
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 50%;
    padding: 0 7px;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px; /* Ensure circular shape for single digits */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Cart Dropdown Styles */
.cart-dropdown-content {
    display: none; /* Hidden by default */
    position: absolute;
    top: calc(100% + 10px); /* Position below the cart icon */
    right: 0;
    background-color: #f9f9f9;
    min-width: 300px;
    max-height: 400px; /* Limit height and make scrollable */
    overflow-y: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000; /* Ensure it's above other content */
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ddd;
    animation: fadeInDown 0.3s ease-out; /* Smooth dropdown animation */
}

.cart-dropdown-content.show {
    display: block;
}

/* Animation for dropdown */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-dropdown-content h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cart-items-container {
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px dashed #eee;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-details h5 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #333;
    line-height: 1.2;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.8em;
    color: #666;
}

.cart-item-price {
    font-weight: bold;
    color: #4CAF50;
    font-size: 0.9em;
}

.cart-summary {
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: right;
}

.cart-summary p {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.cart-summary .btn {
    width: 100%;
    padding: 10px;
    font-size: 1em;
}

/* Responsive adjustments for header nav */
@media (max-width: 768px) {
    /* Adjust as needed for your specific nav responsiveness */
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 5px 0;
    }
    .cart-icon-container {
        margin-left: 0; /* Remove left margin for better centering */
        order: -1; /* Push cart icon to top on mobile */
    }
    .cart-dropdown-content {
        position: static; /* Allows it to flow naturally */
        width: 100%; /* Full width */
        margin-top: 10px;
        box-shadow: none;
        border: none;
        max-height: unset;
    }
}

/* Add these styles to your style.css */

/* Contact Page Specific Styles */
.contact-page-main {
    padding-top: 80px; /* To account for sticky header */
}

.contact-section {
    padding-top: 40px;
    padding-bottom: 60px;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section p {
    margin-bottom: 40px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
    }
}

.contact-info-box, .contact-form-box {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info-box h3, .contact-form-box h3 {
    font-size: 1.5em;
    color: #4CAF50;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
}

.contact-info-box p {
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
    text-align: left; /* Align text within info box */
}

.contact-info-box p i {
    color: #4CAF50;
    margin-right: 10px;
    width: 20px; /* Ensure consistent icon alignment */
    text-align: center;
}

/* Contact Form Specifics (reusing .input-group from auth pages) */
.contact-form-box .input-group label {
    font-size: 0.95em;
}

.contact-form-box .input-group input,
.contact-form-box .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form-box .input-group input:focus,
.contact-form-box .input-group textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.contact-form-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    margin-top: 20px;
}

/* Map Section */
.map-section {
    background-color: #f0f0f0;
    padding: 60px 0;
    text-align: center;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (height / width * 100%) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #e0e0e0; /* Placeholder background */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Match container border-radius */
}