:root {
    --green: #16834c;
    --dark-green: #105d38;
    --light-green: #e9f7ef;
    --text: #26352b;
    --muted: #718078;
    --border: #e8eee9;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background: #f8faf8;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.topbar {
    background: var(--dark-green);
    color: white;
    padding: 9px 0;
    font-size: 13px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo {
    font-size: 23px;
    font-weight: 800;
    color: var(--green);
    white-space: nowrap;
}

.logo span {
    color: #e6a329;
}

.search-form {
    flex: 1;
    max-width: 500px;
    display: flex;
    border: 1px solid #dce8df;
    border-radius: 9px;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 13px;
    border: 0;
    outline: none;
}

.search-form button {
    background: var(--green);
    color: white;
    border: 0;
    padding: 0 20px;
    cursor: pointer;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 17px;
    font-size: 14px;
    font-weight: bold;
}

.header-links a:hover,
.nav a:hover {
    color: var(--green);
}

.nav {
    border-top: 1px solid var(--border);
}

.nav .container {
    display: flex;
    gap: 27px;
    padding: 13px 0;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
}

.hero {
    padding: 40px 0;
    background: linear-gradient(120deg, #e4f6e9, #f6fbf5);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 30px;
}

.hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    margin: 0 0 15px;
    color: #145e39;
}

.hero p {
    line-height: 1.7;
    color: #62766a;
}

.hero-image {
    background: #d2ebd9;
    border-radius: 20px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 8px;
    background: var(--green);
    color: white;
    font-weight: bold;
    border: 0;
    cursor: pointer;
}

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

.section {
    padding: 38px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 23px;
}

.section-heading h2 {
    margin: 0;
    font-size: 23px;
}

.section-heading a {
    color: var(--green);
    font-weight: bold;
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.category-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px 12px;
    text-align: center;
    transition: .2s;
}

.category-card:hover {
    border-color: var(--green);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 34px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 14px;
    margin: 0;
}

.filter-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: .2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.product-image {
    height: 180px;
    background: #edf3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    font-size: 55px;
}

.product-info {
    padding: 14px;
}

.product-info h3 {
    font-size: 15px;
    line-height: 1.4;
    min-height: 40px;
    margin: 0 0 9px;
}

.price {
    color: var(--green);
    font-weight: 800;
    font-size: 17px;
}

.product-location {
    color: var(--muted);
    font-size: 12px;
    margin-top: 9px;
}

.seller-banner {
    background: var(--dark-green);
    color: white;
    padding: 35px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.seller-banner h2 {
    margin-top: 0;
}

.seller-banner p {
    color: #d8eee0;
}

.seller-banner .btn {
    background: #e6a329;
    color: #26352b;
    white-space: nowrap;
}

.empty-state {
    background: white;
    padding: 35px;
    text-align: center;
    border: 1px dashed #cbd9ce;
    border-radius: 12px;
    color: var(--muted);
    grid-column: 1 / -1;
}

.footer {
    background: #123d29;
    color: white;
    padding: 40px 0 20px;
    margin-top: 35px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer p {
    color: #d1e3d7;
    line-height: 1.7;
}

.footer h3 {
    margin-top: 0;
}

.footer-links a {
    display: block;
    color: #d1e3d7;
    margin: 12px 0;
    font-size: 14px;
}

.copyright {
    border-top: 1px solid #42634e;
    margin-top: 25px;
    padding-top: 20px;
    font-size: 13px;
    color: #d1e3d7;
}

@media(max-width: 850px) {
    .header-content {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .search-form {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 550px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 150px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .seller-banner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .header-links {
        gap: 10px;
        font-size: 12px;
    }
}
