/* =========================
   GLOBAL
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: #16324f;
    background: #ffffff;
    line-height: 1.6;
}

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

button,
input,
select {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}


/* =========================
   HEADER
========================= */

.market-header {
    background: #ffffff;
    border-bottom: 1px solid #e7edf2;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #032e66;
}

.logo small {
    display: block;
    color: #5da031;
    font-size: 10px;
    letter-spacing: 2px;
    margin-top: -3px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #5da031;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: #52677c;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #5da031;
}

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

.icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #e2e9ee;
    background: #ffffff;
    color: #52677c;
    border-radius: 10px;
    cursor: pointer;
}

.login-btn {
    background: transparent;
    border: none;
    color: #032e66;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 15px;
}

.signup-btn {
    border: none;
    background: #5da031;
    color: #ffffff;
    padding: 12px 19px;
    border-radius: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.signup-btn:hover {
    background: #4d8b29;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: #f2f7ef;
    color: #5da031;
    border-radius: 9px;
    cursor: pointer;
}


/* =========================
   MOBILE NAV
========================= */

.mobile-nav {
    background: #ffffff;
    border-bottom: 1px solid #e7edf2;
    padding: 15px 5%;
}

.mobile-nav a {
    display: block;
    padding: 11px 0;
    color: #52677c;
    font-weight: 600;
}

.mobile-nav a.active {
    color: #5da031;
}


/* =========================
   HERO
========================= */

.market-hero {
    background:
        linear-gradient(90deg, #f2f8ee 0%, #f8fbf5 52%, #eef6f8 100% );
    padding: 160px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 65px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5da031;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.hero-text h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.08;
    color: #032e66;
    margin-bottom: 22px;
    letter-spacing: -2px;
}

.hero-text h1 span {
    color: #5da031;
}

.hero-text p {
    max-width: 600px;
    color: #64788a;
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 14px 21px;
    border-radius: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.primary-btn {
    background: #5da031;
    color: #ffffff;
}

.secondary-btn {
    background: #ffffff;
    color: #032e66;
    border: 1px solid #dce5eb;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 25px;
    display: block;
    box-shadow: 0 25px 60px rgba(3, 46, 102, 0.13);
}

.hero-floating-card {
    position: absolute;
    left: -25px;
    bottom: 30px;
    background: #ffffff;
    padding: 15px 18px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(3, 46, 102, 0.15);
}

.floating-icon {
    width: 42px;
    height: 42px;
    background: #eaf5e4;
    color: #5da031;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-floating-card strong {
    display: block;
    font-size: 13px;
    color: #032e66;
}

.hero-floating-card span {
    display: block;
    font-size: 11px;
    color: #81909c;
}


/* =========================
   SEARCH
========================= */

.search-section {
    margin-top: -35px;
    position: relative;
    z-index: 5;
}

.search-box {
    background: #ffffff;
    padding: 12px;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(3, 46, 102, 0.13);
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 10px;
}

.search-input,
.location-input {
    min-height: 52px;
    border: 1px solid #e0e8ed;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    color: #7b8b99;
}

.search-input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
}

.location-input select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #52677c;
    cursor: pointer;
}

.search-btn {
    min-width: 130px;
    border: none;
    border-radius: 9px;
    background: #032e66;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}


/* =========================
   MARKETPLACE
========================= */

.marketplace-section {
    padding: 90px 0;
}

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

.section-label {
    color: #5da031;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-heading h2 {
    color: #032e66;
    font-size: 34px;
    line-height: 1.2;
    margin: 7px 0 10px;
}

.section-heading p {
    color: #718393;
    font-size: 14px;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sort-box label {
    color: #81909c;
    font-size: 13px;
}

.sort-box select {
    border: 1px solid #dce5eb;
    padding: 10px 14px;
    border-radius: 8px;
    color: #52677c;
    outline: none;
}


/* =========================
   CATEGORY
========================= */

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.category-btn {
    border: 1px solid #dce5eb;
    background: #ffffff;
    color: #52677c;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background: #5da031;
    color: #ffffff;
    border-color: #5da031;
}


/* =========================
   PRODUCT GRID
========================= */

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

.product-card {
    background: #ffffff;
    border: 1px solid #e5ebef;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(3, 46, 102, 0.11);
}

.product-image {
    height: 230px;
    position: relative;
    overflow: hidden;
}

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

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    background: #ffffff;
    color: #5da031;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.product-badge.organic {
    color: #032e66;
}

.favorite-btn {
    position: absolute;
    right: 13px;
    top: 13px;
    width: 35px;
    height: 35px;
    border: none;
    background: #ffffff;
    color: #52677c;
    border-radius: 50%;
    cursor: pointer;
}

.favorite-btn.active {
    color: #5da031;
}

.product-content {
    padding: 18px;
}

.product-category {
    color: #5da031;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 6px;
}

.product-content h3 {
    color: #032e66;
    font-size: 17px;
    margin-bottom: 10px;
}

.farmer-name,
.product-location {
    color: #758695;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.farmer-name i {
    color: #5da031;
}

.product-location i {
    color: #032e66;
}

.product-info {
    border-top: 1px solid #edf1f3;
    border-bottom: 1px solid #edf1f3;
    margin: 15px 0;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
}

.product-info span {
    display: block;
    font-size: 10px;
    color: #91a0aa;
    margin-bottom: 3px;
}

.product-info strong {
    font-size: 12px;
    color: #032e66;
}

.product-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.details-btn,
.offer-btn {
    padding: 10px 5px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.details-btn {
    background: #ffffff;
    color: #032e66;
    border: 1px solid #dce5eb;
}

.offer-btn {
    background: #5da031;
    color: #ffffff;
    border: 1px solid #5da031;
}


/* =========================
   NO RESULTS
========================= */

.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    color: #5da031;
    font-size: 40px;
}

.no-results h3 {
    color: #032e66;
    margin: 12px 0 5px;
}

.no-results p {
    color: #81909c;
}


/* =========================
   LOAD MORE
========================= */

.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 13px 22px;
    background: #ffffff;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    color: #032e66;
    font-weight: 700;
    cursor: pointer;
}

.load-more-btn:hover {
    border-color: #5da031;
    color: #5da031;
}


/* =========================
   HOW IT WORKS
========================= */

.how-section {
    background: #f6f9f4;
    padding: 90px 0;
}

.center {
    display: block;
    text-align: center;
}

.center p {
    max-width: 600px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.step-card {
    background: #ffffff;
    padding: 30px 22px;
    border-radius: 15px;
    position: relative;
    border: 1px solid #e6ece2;
}

.step-number {
    position: absolute;
    right: 18px;
    top: 15px;
    color: #e4ecdf;
    font-size: 30px;
    font-weight: 800;
}

.step-icon {
    width: 52px;
    height: 52px;
    background: #eaf5e4;
    color: #5da031;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-card h3 {
    color: #032e66;
    font-size: 17px;
    margin-bottom: 10px;
}

.step-card p {
    color: #718393;
    font-size: 13px;
}


/* =========================
   CTA
========================= */

.market-cta {
    padding: 70px 0;
    background: #032e66;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-content span {
    color: #8fc46e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 35px;
    margin: 7px 0;
}

.cta-content p {
    color: #b9c9d9;
    font-size: 14px;
}

.cta-btn {
    background: #5da031;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 9px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #021f46;
    color: #ffffff;
}

.footer-grid {
    padding: 60px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    color: #ffffff;
    margin-bottom: 18px;
}

.footer-about p {
    color: #aab9c8;
    max-width: 350px;
    font-size: 13px;
}

.footer-links h4 {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: #aab9c8;
    font-size: 12px;
    margin-bottom: 10px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom p {
    color: #91a4b6;
    font-size: 11px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {

    .main-nav {
        gap: 16px;
    }

    .header-actions .login-btn {
        display: none;
    }

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

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

}


@media (max-width: 850px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav.show {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image img {
        height: 400px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .search-btn {
        min-height: 50px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

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

}


@media (max-width: 600px) {

    .container {
        width: 92%;
    }

    .market-hero {
        padding: 55px 0 70px;
    }

    .hero-text h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-image img {
        height: 320px;
    }

    .hero-floating-card {
        left: 10px;
        bottom: 15px;
    }

    .marketplace-section,
    .how-section {
        padding: 65px 0;
    }

    .section-heading h2 {
        font-size: 28px;
    }

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

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

    .category-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .category-btn {
        white-space: nowrap;
    }

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

    .cta-content h2 {
        font-size: 28px;
    }

}
