:root {
    --green: #075f2a;
    --green2: #0d7b39;
    --text: #111827;
    --muted: #667085;
    --line: #e6e9ec;
    --bg: #f7f9f8
}

* {
    box-sizing: border-box
}

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

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

.topbar {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 14px
}

.site-header {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5.5%;
    border-bottom: 1px solid var(--line);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center
}

.brand-mark {
    font-size: 40px;
    color: var(--green);
    font-weight: 800
}

.brand b {
    display: block;
    font-size: 22px
}

.brand small {
    display: block;
    font-size: 12px
}

.main-nav {
    display: flex;
    gap: 38px
}

    .main-nav a {
        padding: 30px 0;
        position: relative
    }

        .main-nav a.active, .main-nav a:hover {
            color: var(--green)
        }

            .main-nav a.active:after {
                content: "";
                height: 2px;
                background: var(--green);
                left: 0;
                right: 0;
                bottom: 15px;
                position: absolute
            }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 12px 20px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer
}

.btn-primary {
    background: var(--green);
    color: white
}

    .btn-primary:hover {
        background: var(--green2)
    }

.btn-outline {
    border-color: var(--green);
    color: var(--green);
    background: white
}

.btn-lg {
    padding: 15px 25px
}

.icon-btn {
    border: 0;
    background: transparent;
    font-size: 26px
}

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

.hero {
    min-height: 470px;
    padding: 55px 7%;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    background: linear-gradient(90deg,#fbfcfb,#f2f7f4)
}

    .hero h1 {
        font-size: 54px;
        line-height: 1.15;
        margin: 0 0 20px
    }

        .hero h1 span, .about-hero h1 span {
            color: var(--green)
        }

    .hero p, .about-hero p {
        font-size: 18px;
        line-height: 1.7;
        color: var(--muted)
    }

.hero-art svg {
    width: 100%;
    height: auto
}

.feature-strip {
    margin-top: -24px;
    position: relative;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    border-radius: 12px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    padding: 24px
}

    .feature-strip div, .value-grid div {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0 25px;
        border-right: 1px solid var(--line)
    }

        .feature-strip div:last-child, .value-grid div:last-child {
            border-right: 0
        }

    .feature-strip span, .value-grid span {
        font-size: 13px;
        color: var(--muted)
    }

.section-space {
    padding: 55px 0
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e5ebe3;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(26, 62, 37, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        border-color: #c5dcc9;
        box-shadow: 0 12px 28px rgba(26, 62, 37, 0.11);
    }

.product-image-placeholder {
    position: relative;
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f7faf5, #eaf3e8);
    border-bottom: 1px solid #e8ede6;
}

    .product-image-placeholder span {
        font-size: 58px;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-image-placeholder span {
    transform: scale(1.06);
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 16px;
}

.product-code {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 5px 9px;
    color: #28733e;
    background: #edf7ef;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.product-card-body h3 {
    margin: 0 0 8px;
    color: #173d24;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-card-body p {
    margin: 0 0 14px;
    color: #69766d;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

    .product-meta span {
        padding: 4px 8px;
        color: #59675e;
        background: #f4f7f3;
        border: 1px solid #e4eae2;
        border-radius: 7px;
        font-size: 10px;
        font-weight: 600;
    }

.product-stock {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #2a733e;
    font-size: 12px;
    font-weight: 700;
}

    .product-stock::before {
        content: "";
        width: 7px;
        height: 7px;
        flex: 0 0 7px;
        background: #36a853;
        border-radius: 50%;
    }

    .product-stock.out-of-stock {
        color: #b04438;
    }

        .product-stock.out-of-stock::before {
            background: #dc4c3f;
        }

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #edf0eb;
}

.product-detail-button {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #ffffff;
    background: #2d7a43;
    border: 1px solid #2d7a43;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .product-detail-button:hover {
        color: #ffffff;
        background: #205f33;
        transform: translateY(-1px);
    }

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 820px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card-body {
        padding: 14px;
    }

    .product-image-placeholder {
        height: 150px;
    }
}

.filters {
    display: grid;
    grid-template-columns: 2fr repeat(3,1fr) auto;
    gap: 12px;
    margin: 22px 0
}

    .filters input, .contact-form input, .contact-form textarea, .login-form input {
        width: 100%;
        border: 1px solid #d9dee3;
        padding: 13px 14px;
        border-radius: 7px;
        font: inherit
    }

.status {
    color: var(--muted);
    margin-bottom: 14px
}

.eyebrow {
    color: var(--green);
    font-weight: 800;
    letter-spacing: .06em
}

.about-hero {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center
}

    .about-hero h1 {
        font-size: 48px;
        margin: 8px 0 18px
    }

.about-image {
    height: 420px;
    border-radius: 24px;
    background: linear-gradient(135deg,#d7efcd,#f5d79f);
    display: flex;
    align-items: center;
    justify-content: center
}

.farm-card {
    font-size: 70px;
    text-align: center
}

    .farm-card strong {
        font-size: 24px;
        display: block;
        margin-top: 20px
    }

.values {
    background: var(--bg);
    padding: 35px 0
}

    .values h2 {
        text-align: center
    }

.value-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-top: 28px
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 25px;
    margin-top: 30px
}

.contact-info {
    display: grid;
    gap: 14px
}

    .contact-info div {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 9px
    }

    .contact-info span {
        grid-column: 2;
        color: var(--muted)
    }

.contact-form {
    display: grid;
    gap: 14px
}

.map-card {
    background: linear-gradient(145deg,#e9ece9,#f7f7f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 36px;
    min-height: 350px
}

    .map-card span {
        font-size: 14px;
        color: var(--muted)
    }

.login-wrap {
    min-height: calc(100vh - 82px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8faf9;
    padding: 35px
}

.login-panel {
    width: min(940px,95%);
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.09)
}

.login-side {
    background: linear-gradient(150deg,#075f2a,#0b7b38);
    color: white;
    padding: 60px
}

    .login-side li {
        margin: 14px 0
    }

.login-icon {
    font-size: 48px
}

.login-form {
    padding: 60px;
    display: grid;
    gap: 18px
}

    .login-form label {
        display: grid;
        gap: 8px;
        font-size: 13px
    }

.footer {
    background: #064f24;
    color: white;
    padding: 38px 0;
    margin-top: 60px
}

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

.footer a {
    display: block;
    margin: 8px 0
}

@media(max-width:900px) {
    .main-nav {
        display: none
    }

    .hero, .about-hero {
        grid-template-columns: 1fr
    }

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

    .filters, .contact-grid {
        grid-template-columns: 1fr
    }

    .login-panel {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 40px
    }
}

@media(max-width:520px) {
    .product-grid, .feature-strip, .value-grid {
        grid-template-columns: 1fr
    }

    .site-header {
        padding: 0 20px
    }

    .header-actions .icon-btn {
        display: none
    }
}

.page-banner {
    padding: 64px 20px;
    background: linear-gradient(135deg, #f4fbf1, #fff8e8);
    border-bottom: 1px solid #e7eee3;
}

    .page-banner h1 {
        margin: 8px 0;
        font-size: 42px;
        color: #173d24;
    }

    .page-banner p {
        margin: 0;
        color: #64736a;
    }

.page-label {
    color: #2c7a43;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.products-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 60px;
}

.products-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-card,
.support-card {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e4e9e2;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(32, 61, 39, 0.06);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

    .filter-header h3,
    .support-card h3 {
        margin: 0;
        color: #173d24;
    }

.clear-filter-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #2c7a43;
    cursor: pointer;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 18px;
}

    .filter-group label {
        display: block;
        margin-bottom: 7px;
        font-size: 13px;
        font-weight: 700;
        color: #36483c;
    }

    .filter-group input,
    .filter-group select,
    .toolbar-actions select {
        width: 100%;
        height: 44px;
        padding: 0 12px;
        border: 1px solid #dce4d9;
        border-radius: 9px;
        background: #ffffff;
        font-family: inherit;
        color: #26352b;
        outline: none;
    }

        .filter-group input:focus,
        .filter-group select:focus,
        .toolbar-actions select:focus {
            border-color: #3b8b50;
            box-shadow: 0 0 0 3px rgba(59, 139, 80, 0.1);
        }

.filter-apply-button {
    width: 100%;
    justify-content: center;
}

.support-card p {
    color: #657168;
    line-height: 1.6;
}

.support-card a {
    color: #2c7a43;
    font-weight: 700;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

    .products-toolbar h2 {
        margin: 0 0 4px;
        color: #173d24;
    }

    .products-toolbar p {
        margin: 0;
        color: #748078;
        font-size: 14px;
    }

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .toolbar-actions label {
        color: #627069;
        font-size: 14px;
    }

    .toolbar-actions select {
        width: 160px;
    }

.product-image-placeholder {
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f8f3, #edf4ea);
    /*font-size: 58px;*/
}

.product-code {
    display: inline-flex;
    margin-bottom: 8px;
    color: #28733e;
    font-size: 10px;
    font-weight: 700;
}

.product-card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #173d24;
}

.product-card-body p {
    min-height: 0;
    margin: 0 0 14px;
    color: #6b766f;
    line-height: 1.55;
    font-size: 12px;
}

.product-detail-button {
    display: inline-flex;
    margin-top: 6px;
}

.empty-products {
    padding: 70px 20px;
    text-align: center;
    background: #fafcf9;
    border: 1px dashed #cfd9cc;
    border-radius: 16px;
}

.empty-products-icon {
    font-size: 65px;
}

.empty-products h3 {
    margin-bottom: 5px;
    color: #173d24;
}

.empty-products p {
    color: #738078;
}

.status-message {
    margin-bottom: 16px;
}

    .status-message.error {
        color: #b42318;
    }

    .status-message.loading {
        color: #2c7a43;
    }

.product-skeleton {
    overflow: hidden;
}

.skeleton-image,
.skeleton-line,
.skeleton-button {
    background: linear-gradient(90deg, #edf0ec 25%, #f7f8f6 50%, #edf0ec 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.4s infinite;
}

.skeleton-image {
    height: 210px;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
}

    .skeleton-line.small {
        width: 35%;
    }

    .skeleton-line.title {
        width: 75%;
        height: 18px;
    }

.skeleton-button {
    width: 110px;
    height: 36px;
    margin-top: 18px;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@media (max-width: 900px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 28px;
    }

    .products-sidebar {
        order: 0;
        width: 100%;
    }

    .products-content {
        order: 1;
        min-width: 0;
    }

    .filter-card,
    .support-card {
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .page-banner {
        padding: 42px 16px;
    }

        .page-banner h1 {
            font-size: 32px;
        }

    .products-layout {
        width: 92%;
        gap: 18px;
        padding-top: 22px;
        padding-bottom: 45px;
    }

    .products-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
    }

    .toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
    }

        .toolbar-actions select {
            width: 100%;
            min-width: 0;
        }

    .filter-header {
        margin-bottom: 16px;
    }

    .filter-group {
        margin-bottom: 14px;
    }

        .filter-group input,
        .filter-group select,
        .toolbar-actions select {
            height: 42px;
        }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    .product-image-placeholder {
        height: 145px;
    }

        .product-image-placeholder span {
            font-size: 52px;
        }

    .product-card-body {
        padding: 14px;
    }

        .product-card-body h3 {
            font-size: 15px;
        }

        .product-card-body p {
            font-size: 12px;
            line-height: 1.5;
        }

    .product-detail-button {
        min-height: 37px;
        font-size: 12px;
    }

    .empty-products {
        padding: 45px 16px;
    }
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.login-card {
    width: 420px;
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

    .login-card h2 {
        margin-bottom: 8px;
        color: #1d4d2e;
    }

    .login-card p {
        margin-bottom: 25px;
        color: #666;
    }

    .login-card input {
        width: 100%;
        height: 50px;
        margin-bottom: 18px;
        padding: 0 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 15px;
    }

    .login-card button {
        width: 100%;
    }

#loginMessage {
    margin-top: 20px;
    font-weight: 600;
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

#loginMessage.success {
    color: #1f7a3b;
}

#loginMessage.error {
    color: #b42318;
}
/* =========================================
   CHATBOT
   ========================================= */

.chatbot {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
}

.chatbot-toggle {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(7, 95, 42, 0.28);
    transition: transform .2s ease, background .2s ease;
}

    .chatbot-toggle:hover {
        background: var(--green2);
        transform: translateY(-2px);
    }

.chatbot-window {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 350px;
    height: 480px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8e3;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
}

    .chatbot-window.open {
        display: flex;
    }

.chatbot-header {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--green);
    color: #fff;
}

    .chatbot-header strong {
        display: block;
        font-size: 15px;
    }

    .chatbot-header small {
        display: block;
        margin-top: 3px;
        opacity: .8;
        font-size: 11px;
    }

.chatbot-close {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 27px;
    line-height: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f7f9f8;
}

.chat-message {
    width: fit-content;
    max-width: 82%;
    margin-bottom: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
}

.bot-message {
    margin-right: auto;
    background: #fff;
    color: #334139;
    border: 1px solid #e5ebe3;
    border-bottom-left-radius: 4px;
}

.user-message {
    margin-left: auto;
    background: var(--green);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chatbot-suggestions {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #edf0eb;
}

    .chatbot-suggestions button {
        flex: 0 0 auto;
        padding: 6px 10px;
        border: 1px solid #d6e5d8;
        border-radius: 20px;
        background: #f4faf5;
        color: var(--green);
        cursor: pointer;
        font-family: inherit;
        font-size: 11px;
        font-weight: 600;
    }

.chatbot-input-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 7px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #e5e9e6;
}

    .chatbot-input-area input {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 12px;
        border: 1px solid #dce4d9;
        border-radius: 9px;
        outline: none;
        font-family: inherit;
        font-size: 13px;
    }

        .chatbot-input-area input:focus {
            border-color: var(--green);
        }

    .chatbot-input-area button {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 9px;
        background: var(--green);
        color: #fff;
        cursor: pointer;
        font-size: 17px;
    }

.chat-product-result {
    display: block;
    margin-top: 7px;
    padding: 8px;
    background: #f7faf7;
    border: 1px solid #e1e9e0;
    border-radius: 8px;
}

    .chat-product-result strong {
        display: block;
        color: #173d24;
    }

    .chat-product-result small {
        color: #69766d;
    }

    .chat-product-result a {
        display: inline-block;
        margin-top: 5px;
        color: var(--green);
        font-weight: 700;
    }

@media(max-width: 520px) {

    .chatbot {
        right: 14px;
        bottom: 14px;
    }

    .chatbot-window {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 82px;
        width: auto;
        height: min(520px, calc(100vh - 110px));
    }

    .chatbot-toggle {
        width: 54px;
        height: 54px;
    }
}