/* ========================= */ /* VARIÁVEIS E RESET */ /* ========================= */
:root {
    --verde-principal: #267e68;
    --verde-claro: #6ab992;
    --fundo: #f6f9fc;
    --rosa-acento: #e07a8c;
    --texto: #267e68;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================= */ /* BASE */ /* ========================= */
body {
    font-family: 'Nunito', sans-serif;
    background: var(--fundo);
    color: var(--texto);
    padding-top: 96px;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

section {
    scroll-margin-top: 110px;
}

/* ========================= */ /* ACESSIBILIDADE */ /* ========================= */
:focus-visible {
    outline: 3px solid var(--rosa-acento);
    outline-offset: 3px;
}

/* ========================= */ /* HEADER */ /* ========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #267e68;
    border-bottom: 2px solid #eee;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

/* ========================= */ /* LOGO */ /* ========================= */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2f2f2f;
}

.logo img {
    height: 64px;
    width: auto;
}

/* ========================= */ /* MENU */ /* ========================= */
.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-list a {
    text-decoration: none;
    font-weight: 600;
    color: #2f2f2f;
}

.nav-list a:hover {
    color: var(--rosa-acento);
}

/* ========================= */ /* HERO */ /* ========================= */
.hero-home {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 55vh;
    background: url('imagens/desenhoSecaoPrincipal/desenho2.png') center/cover no-repeat;
    position: relative;
    align-items: center;
    padding-top: 90px; /* ajuste para a altura real do seu header */
}

.hero-grid {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    align-items: stretch;
    justify-content: center;
}

.hero-texto-card {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid var(--verde-principal);
    border-radius: 25px;
    box-shadow: 0 0 0 4px rgba(38, 126, 104, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.hero-texto-card h1 {
    font-size: clamp(0.8rem, 4vw, 2.0rem);
    font-weight: 800;
    color: var(--texto);
    line-height: 1.3;
    margin-bottom: 10px;
}

.hero-texto-card p {
    font-size: clamp(1.2rem, 2vw, 1.1rem);
    line-height: 1.5;
    color: #2f2f2f;
}

.hero-texto-card .btn-primary {
    width: fit-content;
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    background: var(--rosa-acento);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    margin: 0 auto;
}

.hero-texto-card .btn-primary:hover {
    background: transparent;
    color: var(--rosa-acento);
    border: 2px solid var(--rosa-acento);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.hero-imagens {
    flex: 2;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.hero-imagens img {
    flex: 1;
    height: 380px;
    width: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--verde-principal);
    box-shadow: 0 0 0 4px rgba(38, 126, 104, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-imagens img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* ========================= */ /* BOTÕES */ /* ========================= */
.btn {
    padding: 12px 22px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn, .btn a {
    text-decoration: none;
}

.btn-primary {
    background: rgb(10, 57, 95);
    color: var(--verde-claro);
}

.btn-comprar {
    background: var(--verde-principal);
    color: white;
    width: 100%;
}

.btn-amostra {
    background: transparent;
    border: 2px solid var(--verde-principal);
    color: var(--verde-claro);
    margin-bottom: 10px;
}

/* ========================= */ /* SEÇÃO TÍTULOS */ /* ========================= */
.section-title {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

/* ========================= */ /* PRODUTOS / CARROSSEL */ /* ========================= */
.produtos {
    padding: 80px 0;
    padding-top: 120px;
    padding-bottom: 80px;
}

.section-title {
    margin-top: 40px;
}

.busca-materiais {
    position: relative;
    max-width: 400px;
    margin: 0 auto 40px;
}

.busca-materiais input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 2px solid #ddd;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    background: white;
}

.busca-materiais input:focus {
    border-color: var(--verde-claro);
    box-shadow: 0 0 0 4px rgba(150, 203, 224, 0.35);
}

.icone-busca {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--verde-claro);
    pointer-events: none;
    transition: color 0.3s ease;
}

.busca-materiais input:focus + .icone-busca {
    color: var(--rosa-acento);
}

.carrossel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.produtos-list-wrapper {
    overflow: hidden;
}

.produtos-list, #produtosCarrossel {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.produto-card {
    min-width: 200px;
    background: #ffffff;
    border-radius: 18px;
    padding: 15px;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* Imagem do card — ajuste max-height para controlar o tamanho */
.produto-card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 15px;
    background: #f0f0f0;
    min-height: 80px;
    max-height: 150px;
    object-fit: cover;
}

/* Placeholder para produtos sem imagem */
.produto-sem-imagem {
    width: 100%;
    min-height: 80px;
    max-height: 150px;
    background: #f0f4f8;
    border-radius: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ccc;
}

.carrossel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: var(--verde-claro);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carrossel-btn:hover {
    background: var(--rosa-acento);
    transform: translateY(-50%) scale(1.1);
}

.carrossel-btn.prev {
    left: -25px;
}

.carrossel-btn.next {
    right: -25px;
}

/* ========================= */ /* SOBRE / EQUIPE */ /* ========================= */
.sobre {
    background: var(--fundo);
    padding: 90px 0;
}

.sobre-texto {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
}

.equipe {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prof-card {
    background: #6ab992;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: #2f2f2f;
}

.prof-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--verde-principal);
    margin-bottom: 15px;
}

.prof-card h3 {
    font-family: 'Poppins', sans-serif;
    color: #2f2f2f;
    margin-bottom: 15px;
}

.prof-card ul {
    list-style: none;
    font-size: 0.95rem;
}

.prof-card ul li {
    margin-bottom: 8px;
}

/* ========================= */ /* CONTATO */ /* ========================= */
.contato {
    padding: 120px 20px;
    background: #f6f9fc;
    color: #267e68;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.contato .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contato .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #267e68;
    margin-bottom: 20px;
    font-weight: 700;
}

.contato p {
    margin-bottom: 30px;
    font-size: 1rem;
    opacity: 0.8;
}

.contatos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.contato-icon {
    font-size: 40px;
    color: #267e68;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contato-icon:hover {
    color: var(--rosa-acento);
    transform: scale(1.2);
}

.email-card {
    font-size: 36px;
    color: #267e68;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-card:hover {
    transform: scale(1.2);
    color: var(--rosa-acento);
}

.email-text {
    display: none;
    margin-top: 12px;
    font-size: 16px;
    color: #267e68;
}

/* ========================= */ /* MODAL */ /* ========================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 90%;
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.modal img {
    width: 100%;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mensagem para produtos sem amostra */
.modal-sem-amostra {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    color: var(--verde-principal);
    text-align: center;
}

.modal-sem-amostra span {
    font-size: 3rem;
}

.modal-sem-amostra p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-sem-amostra small {
    font-size: 0.95rem;
    color: #777;
}

/* ========================= */ /* CARRINHO */ /* ========================= */
.carrinho-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--verde-principal);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    border: none;
}

.carrinho-icon span {
    background: white;
    color: var(--verde-principal);
    padding: 2px 7px;
    border-radius: 50%;
    margin-left: 5px;
    font-size: 0.8rem;
}

.carrinho-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 998;
}

.carrinho-overlay.active {
    display: block;
}

.carrinho {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.carrinho.active {
    right: 0;
}

.carrinho-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.carrinho-itens {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.carrinho-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.carrinho-item strong {
    display: block;
    margin-bottom: 5px;
}

.carrinho-item p {
    margin: 0;
    font-size: 14px;
}

.carrinho-item button {
    margin-top: 8px;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.carrinho-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

#fecharCarrinho {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: #f2f2f2;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#fecharCarrinho:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

.btn-finalizar {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-finalizar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.btn-finalizar:active {
    transform: scale(0.98);
}

/* ========================= */ /* FOOTER */ /* ========================= */
.footer {
    text-align: center;
    padding: 20px;
}

/* ========================= */ /* MEDIA QUERIES */ /* ========================= */
@media (max-width: 900px) {
    .hero-grid {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .hero-texto-card {
        height: auto;
        max-width: 90%;
        padding: 25px 20px;
    }

    .hero-imagens img {
        height: auto;
        max-width: 90%;
    }

    .equipe {
        grid-template-columns: repeat(2, 1fr);
    }

    .produtos-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .contatos {
        gap: 20px;
    }

    .contato-icon {
        font-size: 32px;
    }

    .email-card {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .hero-texto-card h1 {
        font-size: 1.8rem;
    }

    .hero-texto-card p {
        font-size: 1rem;
    }

    .hero-imagens {
        flex-direction: column;
        gap: 15px;
    }

    .hero-imagens img {
        width: 100%;
        height: auto;
    }

    .equipe {
        grid-template-columns: 1fr;
    }

    .produtos-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contato .section-title {
        font-size: 1.5rem;
    }

    .contatos {
        flex-direction: column;
        gap: 20px;
    }
}

/* ========================= */ /* HERO - AJUSTE MOBILE */ /* ========================= */
@media (max-width: 768px) {
    /* Empilha tudo */
    .hero-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Remove imagem 1 */
    .hero-imagens img:first-child {
        display: none;
    }

    /* Organiza imagens */
    .hero-imagens {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Diminui imagem 2 */
    .hero-imagens img {
        width: 75%; /* controla o tamanho */
        max-width: 280px; /* limite máximo */
        height: auto;
    }

    /* Ajusta card de texto */
    .hero-texto-card {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        gap: 15px;
    }

    /* Deixa botão por último */
    .hero-texto-card ul {
        margin-top: 10px;
    }
}

/* ========================= */ /* HEADER MOBILE SIMPLES */ /* ========================= */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* ajusta espaço do header fixo */
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 10px 0;
    }

    /* Logo menor */
    .logo {
        font-size: 1rem;
        gap: 6px;
    }

    .logo img {
        height: 22px;
    }

    /* Menu abaixo da logo */
    .nav-list {
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        flex-wrap: wrap;
    }

    .nav-list a {
        font-size: 0.9rem;
        font-weight: 600;
    }

    /* Ajuste do carrinho */
    .carrinho-icon {
        top: 12px;
        right: 12px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}