@font-face {
            font-family: 'Montserrat';
            src: url('../fonts/montserrat/Montserrat-Regular.ttf') format('truetype'); 
            font-weight: normal;
            font-style: normal;
        }

        body {
            margin: 0;
            font-family: Montserrat, Arial;
            background: #fff;
            min-height: 100vh;
            padding-bottom: 80px; 
            box-sizing: border-box;
        }

        header {
            background-image: linear-gradient(to right, #84E291, #98e0ae);
            box-shadow: 0 5px 24px rgba(0,0,0,0.25);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 4vw 10px 2vw;
            position: sticky;
            top: 0;
            z-index: 9;
        }

            .logo {
            color: #fff;
            background: none;
            border: none;
            font-family: 'Montserrat', sans-serif;
            font-size: 2rem;
            font-weight: bold;
        }

        .search-bar {
            background: #fff url('../img/lupa.png') no-repeat right 16px center;
            background-size: 24px;
            flex: 1;
            max-width: 450px;
            border-radius: 18px;
            border: none;
            padding: 8px 20px;
            padding-right: 46px;
            font-family: Montserrat, sans-serif;
            font-size: 1rem;
            color:#355a36;
            box-shadow: 0 5px 16px rgba(0,0,0,0.25);
            margin: 0 20px;
        }
        .search-container {
            display: flex;
            justify-content: left;
            flex: 1;
        }

        #overlay-search {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: white;
            overflow-y: auto;
            z-index: 8;
            padding: 120px 20px 20px;
            box-sizing: border-box;
        }

        @media (max-width: 768px) {
            #overlay-search {
                padding-top: 140px;
            }
        }

        nav {
            background: #fff;
            box-shadow: 0 0 16px rgba(0,0,0,0.25);
            border-radius: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 2vw 10px 2vw;
            position: sticky;
            top: 0;
            z-index: 9;
        }
 
        .menu {
            display: flex;
            gap: 24px;
        }
        .menu-btn {
            background: #fff;
            border-radius: 18px;
            border: none;
            padding: 8px 20px;
            font-family: Montserrat, sans-serif;
            font-size: 1rem;
            font-weight: bold;
            color:#355a36;
            transition: background 0.21s, box-shadow 0.21s, transform 0.12s;
            cursor: pointer;
        }
        .menu-btn.selected, .menu-btn:hover {
            background:#437144;
            color: #fff;
            box-shadow: 0 5px 16px rgba(0,0,0,0.25);
            transform: scale(1.05);
        }
        .main-content {
            max-width: 1280px;
            margin: 0 auto;
            padding: 32px 10px 80px 10px;
            min-height: 68vh;
            animation: fadein 0.4s;
        }
        @keyframes fadein {
            from { opacity: 0;}
            to {opacity: 1;}
        }

        .split {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .split-text {
            flex: 1;
        }

        .split-img {
            flex: 1;
            display: flex;
            justify-content: center;
            width: 100%;
            max-width: 450px;
            height: auto;
        }

        /* Cards para produtos/categorias */
        .produtos-grid, .categorias-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
            gap: 28px;
            margin-top: 10px;
            justify-content: start;
        }
        .card {
            background: #fff;
            padding: 18px 18px 12px 18px;
            border: 1px solid #adadad;
            border-radius: 14px;
            box-shadow: 0 5px 16px rgba(0,0,0,0.25);
            transition: transform 0.22s, box-shadow 0.22s;
            width: 100%;
            max-width: 260px;
            margin: 0 auto;
            cursor: pointer;
            overflow: hidden;
        }
        .card:hover {
            box-shadow: 0 5px 24px #0003;
            transform: translateY(-7px) scale(1.04);
        }
        .card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 8px;
        }
        .card strong {
            display: block;
            margin-bottom: 6px;
        }

        .btn-pedidos {
            background-color: #437144;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-family: Montserrat, sans-serif;
            font-size: 0.8rem;
            margin-top: 10px;
            transition: background 0.2s;
            z-index: 10; /* Garante que ele fique acima do clique do card */
        }

        .btn-pedidos:hover {
            background-color: #355a36;
        }

        /* Detalhes de produto */
        .produto-detalhe {
            display: flex;
            flex-wrap: wrap;
            gap: 55px;
            align-items: flex-start;
        }
        .produto-detalhe img {
            padding: 18px 18px 18px 18px;
            border-radius: 12px;
            border:  3px solid #adadad;
            box-shadow: 0 4px 18px rgba(0,0,0,0.25);
            width: 370px;
            max-width: 94vw;
        }
        .produto-info {
            border-radius: 12px;
            border: 3px solid #adadad;
            box-shadow: 0 4px 18px rgba(0,0,0,0.25);
            padding: 10px 50px 10px 50px;
            min-width: 290px;
            flex: 1;
            min-height: 260px;
        }
        .botao-destaque {
            background: #3F6B40;
            border-radius: 32px;
            border: none;
            color: white;
            padding: 13px 44px;
            font-family: Montserrat, sans-serif;
            font-size: 1.25em;
            font-weight: bold;
            transition: background 0.15s, transform 0.12s;
            box-shadow: 0px 0px 16px rgba(0,0,0,0.25);
            
            transition: background 0.21s, box-shadow 0.21s, transform 0.12s;
            cursor: pointer;
            outline: none;
        }
        .botao-destaque.selected, .botao-destaque:hover {
            background: #3F6B40;
            color: white;
            box-shadow: 0px 0px 16px rgba(0,0,0,0.25);
            transform: scale(1.03);
        }

        .botao-destaque:disabled {
            cursor: not-allowed;
            background: #adadad;
            color: #355a36;
        }

        /* Formulários simplificados */
        .form-cadastro {
            max-width: 450px;
            margin: 0 auto;
            background:  #F7FFF9;
            padding: 30px 30px;
            border: 1px solid #adadad;
            border-radius: 12px;
            box-shadow: 0 0 16px rgba(0,0,0,0.25);
        }
        .form-cadastro input, 
        .form-cadastro select,
        .form-cadastro textarea {
            width: 100%;
            min-width: 100%;
            max-width: 100%;
            min-height: 18px;
            max-height: 250px;
            margin-bottom: 12px;
            padding: 7px 0;
            border-radius: 6px;
            border: 1px solid #5B5C5B;
            font-size: 1em;
        }

        .form-cadastro label {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 2px;
        }
        .form-cadastro .botao-destaque {
            width: 100%;
        }

        /* Footer */
        footer {
            background: #eafdc9;
            padding: 15px 40px;
            color: #437144;
            font-size: 1.08rem;
            position: sticky;
            width: 100%;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10;
            border-top: 2px solid #c9ebac;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-sizing: border-box;
        }
        .footer-logo {
            font-weight: bold;
            font-size: 1.2rem;
            color: #b4d394;

        }

        @media (max-width:900px) {
            header, nav, .main-content, footer {
                padding-left: 12px;
                padding-right: 12px;
            }

        @media (max-width: 1080px) {
        /* Ajusta o Cabeçalho para empilhar a Logo e o Menu */
        header {
            flex-direction: column;
            gap: 16px;
            padding: 16px 4vw;
        }

        /* Permite que o menu ocupe a largura da tela e reduz os botões */
        nav {
            width: 100%;
            box-sizing: border-box;
        }

        .menu {
            width: 100%;
            justify-content: space-around; /* Distribui os botões uniformemente */
            gap: 8px;
        }

        .menu-btn {
            padding: 8px 12px;
            font-size: 0.9rem;
        }

        /* Empilha o texto de boas-vindas e a imagem circular */
        .split {
            flex-direction: column;
            text-align: center; /* Centraliza o texto no mobile para melhor leitura */
            gap: 30px;
        }

        .split-text h1 {
            font-size: 2rem; /* Caso o título h1 esteja muito grande */
        }

        /* Evita que a imagem vaze da tela */
        .split-img {
            max-width: 100%;
        }

        /* Ajuste para a página de detalhes do produto, caso exista */
        .produto-detalhe {
            flex-direction: column;
            gap: 20px;
        }

        .produto-info {
            padding: 20px;
            min-width: unset;
            width: 100%;
            box-sizing: border-box;
        }

        .produto-detalhe img {
            width: 100%;
            box-sizing: border-box;
        }
                .main-content {
                max-width: 1280px;
                margin: 0 auto;
                padding: 32px 10px 80px 10px;
                min-height: 68vh;
                animation: fadein 0.4s;
            }
            @keyframes fadein {
                from { opacity: 0;}
                to {opacity: 1;}
            }

        /* Empilha os itens do rodapé */
        footer {
            flex-direction: column;
            text-align: center;
            gap: 12px;
            padding: 15px 20px;
        }
    }
    /* 1. O contêiner principal que envolve o Perfil e os Anúncios */
        /* Substitua ".minha-conta-container" pela classe real do seu HTML */
        .minha-conta-container {
            display: flex;
            flex-direction: column; /* Empilha o perfil em cima e os anúncios embaixo */
            align-items: center;    /* Centraliza os blocos na tela */
            gap: 40px;              /* Espaçamento entre o perfil e os anúncios */
            width: 100%;
            box-sizing: border-box;
            overflow-x: hidden;     /* Evita a rolagem horizontal indesejada */
        }

        /* 2. A área da foto de perfil e dados do usuário */
        /* Substitua ".perfil-usuario" pela classe real do seu HTML */
        .perfil-usuario {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;    /* Centraliza a foto, textos e botão */
            text-align: center;
        }

        /* Centraliza o botão "Sair" especificamente */
        .perfil-usuario button, 
        .btn-sair {
            margin: 20px auto 0 auto;
            display: block;
        }

        /* 3. A área/lista "Meus anúncios" */
        /* Substitua ".meus-anuncios" pela classe real do seu HTML */
        .meus-anuncios {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* Garante que os cards de anúncios do usuário se ajustem à tela e fiquem centralizados */
        .meus-anuncios .card {
            width: 100%;
            max-width: 320px; /* Mantém um tamanho agradável no mobile */
            margin: 0 auto 20px auto; /* Adiciona margem embaixo de cada card */
            box-sizing: border-box;
        }
}