:root {
    --green: #174d25;
    --green-medium: #5fae3e;
    --green-light: #eef8e9;
    --red: #d82121;
    --gold: #d6a600;
    --text: #1d2a20;
    --muted: #6b756e;
    --border: #e5ebe6;
    --white: #ffffff;
    --bg: #f7faf7;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.header-main {
    min-height: 88px;
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    gap: 28px;
}

.logo img {
    width: 145px;
    max-height: 70px;
    object-fit: contain;
}

.search {
    display: flex;
    background: #f4f7f4;
    border: 1px solid #dce5dd;
    border-radius: 14px;
    overflow: hidden;
}

.search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 15px 18px;
    background: transparent;
    font-size: 15px;
}

.search button {
    border: 0;
    background: var(--green);
    color: #fff;
    min-width: 58px;
    cursor: pointer;
    font-size: 18px;
}

.header-actions {
    display: flex;
    gap: 18px;
    font-weight: 700;
    font-size: 14px;
}

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

.nav-inner {
    display: flex;
    gap: 28px;
    min-height: 46px;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
}

.nav a:hover {
    color: var(--green-medium);
}

.hero {
    padding: 70px 0;
    background:
        radial-gradient(circle at 80% 20%, #dff2d3 0, transparent 35%),
        linear-gradient(135deg, #f7fff3, #eef8e9);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 50px;
    align-items: center;
}

.eyebrow {
    color: var(--green-medium);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 13px;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 66px);
    line-height: .98;
    color: var(--green);
    max-width: 700px;
}

.hero p {
    margin-top: 22px;
    max-width: 600px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: .2s;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--green);
    color: var(--green);
    background: #fff;
}

.hero-card {
    background: #fff;
    border-radius: 28px;
    padding: 38px;
    box-shadow: 0 20px 60px rgba(23,77,37,.12);
}

.hero-card strong {
    color: var(--green);
    font-size: 24px;
}

.hero-card ul {
    margin-top: 22px;
    display: grid;
    gap: 14px;
    list-style: none;
}

.hero-card li {
    padding: 14px 16px;
    background: var(--green-light);
    border-radius: 12px;
    font-weight: 700;
}

.section {
    padding: 72px 0;
}

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

.section-heading h2 {
    font-size: 32px;
    color: var(--green);
}

.section-heading p {
    margin-top: 8px;
    color: var(--muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 25px 14px;
    text-align: center;
    transition: .2s;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--green-medium);
    box-shadow: 0 12px 28px rgba(23,77,37,.08);
}

.category-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--green-light);
    color: var(--green);
    font-size: 25px;
    font-weight: 900;
}

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

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

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.product-image {
    height: 220px;
    background: #f0f5f0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

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

.product-body {
    padding: 18px;
}

.product-category {
    color: var(--green-medium);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-body h3 {
    margin-top: 7px;
    font-size: 17px;
}

.price {
    margin-top: 14px;
    color: var(--green);
    font-weight: 900;
    font-size: 22px;
}

.empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px dashed #cad6cb;
    border-radius: 18px;
    padding: 38px;
    text-align: center;
    color: var(--muted);
}

.business {
    background: var(--green);
    color: #fff;
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 30px;
}

.business h2 {
    font-size: 34px;
}

.business p {
    margin-top: 10px;
    max-width: 680px;
    color: #dcebdd;
    line-height: 1.6;
}

.business .btn {
    background: #fff;
    color: var(--green);
}

.footer {
    background: #102f19;
    color: #dbe7dd;
    padding: 45px 0 25px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-logo img {
    width: 125px;
    max-height: 60px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 35px;
    padding-top: 20px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .header-main {
        grid-template-columns: 130px 1fr;
        gap: 15px;
        padding: 12px 0;
    }

    .header-actions {
        display: none;
    }

    .nav {
        overflow-x: auto;
    }

    .nav-inner {
        width: max-content;
    }

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

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

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

@media (max-width: 600px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-main {
        grid-template-columns: 1fr;
    }

    .logo {
        text-align: center;
    }

    .hero {
        padding: 46px 0;
    }

    .hero-card {
        padding: 24px;
    }

    .section {
        padding: 50px 0;
    }

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

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

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

    .footer-grid {
        flex-direction: column;
    }
}

/* =========================================================
   AJUSTES GERAIS M5
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f7faf7;
    color: #18231b;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

a {
    transition:
        color .18s ease,
        background .18s ease,
        border-color .18s ease,
        opacity .18s ease,
        transform .18s ease;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding-top: 42px;
    padding-bottom: 42px;
}

@media (max-width: 768px) {

    .container {
        width: min(100% - 24px, 1180px);
    }

    .section {
        padding-top: 28px;
        padding-bottom: 28px;
    }
}


/* =========================================================
   CABEÇALHO GLOBAL M5
   ========================================================= */

.m5-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e4ebe5;
    position: relative;
    z-index: 100;
}

.m5-header-main {
    width: min(1180px, calc(100% - 32px));
    min-height: 86px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 92px minmax(280px, 1fr) auto;
    align-items: center;

    gap: 28px;
}


/* LOGO */

.m5-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    text-decoration: none;
}

.m5-header-logo img {
    width: 70px;
    height: 70px;

    display: block;
    object-fit: contain;

    border-radius: 8px;
}


/* BUSCA */

.m5-header-search {
    width: 100%;
    height: 48px;

    display: grid;
    grid-template-columns: 1fr 58px;

    border: 1px solid #d7e0d8;
    border-radius: 13px;

    background: #f8faf8;

    overflow: hidden;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.m5-header-search:focus-within {
    border-color: #3e7c50;

    box-shadow:
        0 0 0 3px rgba(23,77,37,.08);
}

.m5-header-search input {
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    padding: 0 18px;

    color: #18231b;

    font-size: 14px;
}

.m5-header-search input::placeholder {
    color: #7d887f;
}

.m5-header-search button {
    border: 0;

    background: #174d25;
    color: #fff;

    display: grid;
    place-items: center;

    cursor: pointer;
}

.m5-header-search button:hover {
    background: #103d1c;
}

.m5-header-search button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}


/* AÇÕES */

.m5-header-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.m5-header-action {
    min-height: 50px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 6px 10px;

    border-radius: 10px;

    color: #18231b;
    text-decoration: none;
}

.m5-header-action:hover {
    background: #f2f7f2;
}

.m5-action-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #eef7ea;

    color: #174d25;
}

.m5-action-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.m5-action-text {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.m5-action-text small {
    color: #778078;
    font-size: 10px;

    margin-bottom: 3px;
}

.m5-action-text strong {
    color: #17381f;

    font-size: 12px;
    white-space: nowrap;
}


/* NAVEGAÇÃO */

.m5-header-navigation {
    border-top: 1px solid #eef2ee;

    background: #fff;
}

.m5-header-nav {
    width: min(1180px, calc(100% - 32px));
    min-height: 47px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 6px;
}

.m5-header-nav a {
    min-height: 47px;

    display: flex;
    align-items: center;

    position: relative;

    padding: 0 15px;

    color: #263429;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.m5-header-nav a:hover {
    color: #174d25;

    background: #f7faf7;
}

.m5-header-nav a.active {
    color: #174d25;
}

.m5-header-nav a.active::after {
    content: "";

    height: 3px;

    position: absolute;

    left: 15px;
    right: 15px;
    bottom: 0;

    border-radius: 10px 10px 0 0;

    background: #d82121;
}


/* MENU MOBILE */

.m5-mobile-trigger {
    width: 44px;
    height: 44px;

    display: none;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    border: 0;
    border-radius: 10px;

    background: #174d25;

    cursor: pointer;
}

.m5-mobile-trigger span {
    width: 19px;
    height: 2px;

    display: block;

    border-radius: 10px;

    background: #fff;

    transition: .2s ease;
}

.m5-mobile-trigger.is-open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.m5-mobile-trigger.is-open span:nth-child(2) {
    opacity: 0;
}

.m5-mobile-trigger.is-open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* TABLET */

@media (max-width: 930px) {

    .m5-header-main {
        grid-template-columns: 76px 1fr auto;

        gap: 16px;
    }

    .m5-header-logo img {
        width: 62px;
        height: 62px;
    }

    .m5-action-text {
        display: none;
    }

    .m5-header-action {
        padding: 5px;
    }

    .m5-action-icon {
        width: 39px;
        height: 39px;
    }
}


/* MOBILE */

@media (max-width: 700px) {

    .m5-header-main {
        width: min(100% - 24px, 1180px);

        min-height: 72px;

        grid-template-columns: 58px 1fr auto;

        gap: 10px;
    }

    .m5-header-logo img {
        width: 53px;
        height: 53px;
    }

    .m5-header-search {
        height: 43px;

        grid-template-columns: 1fr 46px;
    }

    .m5-header-search input {
        padding: 0 12px;

        font-size: 13px;
    }

    .m5-header-action {
        display: none;
    }

    .m5-mobile-trigger {
        display: flex;
    }

    .m5-header-navigation {
        display: none;

        border-top: 1px solid #e4ebe5;

        box-shadow:
            0 10px 20px rgba(0,0,0,.06);
    }

    .m5-header-navigation.is-open {
        display: block;
    }

    .m5-header-nav {
        width: 100%;
        min-height: auto;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 8px 12px 14px;
    }

    .m5-header-nav a {
        width: 100%;
        min-height: 46px;

        padding: 0 14px;

        border-radius: 8px;
    }

    .m5-header-nav a.active::after {
        display: none;
    }

}


/* CELULARES PEQUENOS */

@media (max-width: 420px) {

    .m5-header-main {
        grid-template-columns: 52px 1fr 42px;
    }

    .m5-header-logo img {
        width: 48px;
        height: 48px;
    }

    .m5-header-search button {
        width: 44px;
    }

}


/* =========================================================
   CONTADOR DO CARRINHO
   ========================================================= */

.m5-cart-icon-wrap {
    position: relative;
    display: inline-flex;
}

.m5-cart-badge {
    position: absolute;

    top: -7px;
    right: -8px;

    min-width: 19px;
    height: 19px;

    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #d82121;
    color: #fff;

    border: 2px solid #fff;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 900;
    line-height: 1;

    box-shadow: 0 2px 5px rgba(0,0,0,.16);
}

@media (max-width: 700px) {

    /*
     * No celular mantemos o carrinho visível.
     * Apenas a conta fica recolhida no menu.
     */

    .m5-account-action {
        display: none;
    }

    .m5-cart-action {
        display: flex;
        padding: 3px;
    }

    .m5-cart-action .m5-action-text {
        display: none;
    }

}


/* =========================================================
   RESULTADOS DA BUSCA
   ========================================================= */

.m5-search-result-info {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;

    padding: 15px 18px;

    background: #fff;
    border: 1px solid #dfe8e0;
    border-radius: 12px;
}

.m5-search-result-info span {
    color: #748076;

    font-size: 13px;

    margin-right: 5px;
}

.m5-search-result-info strong {
    color: #174d25;
}

.m5-search-result-count {
    color: #59665c;
    font-size: 13px;
}

.m5-search-result-info a {
    color: #d82121;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;
}

.m5-search-result-info a:hover {
    text-decoration: underline;
}

@media(max-width: 650px) {

    .m5-search-result-info {
        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

}


/* =========================================================
   BUSCA SEM RESULTADOS
   ========================================================= */

.m5-search-empty {
    width: 100%;
    min-height: 260px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 40px 25px;

    background: #fff;
    border: 1px solid #e0e8e1;
    border-radius: 16px;
}

.m5-search-empty-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    border-radius: 50%;

    background: #eef7ea;
    color: #174d25;

    font-size: 30px;
    font-weight: 700;
}

.m5-search-empty h3 {
    margin: 0 0 8px;

    color: #174d25;
    font-size: 21px;
}

.m5-search-empty p {
    max-width: 520px;

    margin: 0;

    color: #68736a;
    line-height: 1.6;
}

.m5-search-empty a {
    display: inline-flex;

    margin-top: 20px;

    padding: 11px 18px;

    border-radius: 9px;

    background: #174d25;
    color: #fff;

    font-weight: 800;
    font-size: 13px;

    text-decoration: none;
}

.m5-search-empty a:hover {
    background: #103d1c;
}
