/* css/style.css - Versão Limpa */

/* ---------- VARIÁVEIS DE COR E BASE ---------- */

:root {
    --cor-principal: #4A4A4A;
    --cor-dourado: #E8B41B;
    --cor-fundo: #FAF9F6;
    --cor-branca: #FFFFFF;
    --cor-zap: #25D366;
    --cor-erro: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-principal);
    line-height: 1.5;
    padding-bottom: 80px; /* espaço pra barra flutuante não cobrir conteúdo */
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- BOTÃO PADRÃO DOURADO ---------- */

.btn-dourado {
    display: inline-block;
    background-color: var(--cor-dourado);
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-dourado:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ---------- GRID E CARDS (HOME E PRODUTOS) ---------- */

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #eee; /* segurança caso não carregue imagem */
}

.card h3 {
    color: var(--cor-dourado);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* Botão dourado ocupando largura total dentro de card de produto */
.card .btn-dourado {
    width: 100%;
    margin-top: 10px;
}

/* ---------- ESTILOS ESPECÍFICOS PARA PÁGINAS DE PRODUTOS ---------- */
/* (Ativam quando o <body> tiver class="pagina-produtos") */

.pagina-produtos .grid-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.pagina-produtos .grid-container .card {
    max-width: 400px;
}

/* Descrição técnica dos produtos */

.descricao-tecnica {
    font-size: 0.9rem;
    color: #555;
    background: #FAF9F6;
    padding: 10px 12px;
    border-radius: 5px;
    margin-top: 8px;
    margin-bottom: 12px;
    line-height: 1.5;
    text-align: left;
}

/* ---------- BOTÕES DE VARIAÇÃO (P, M, G, ETC) ---------- */

.variacoes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-pill {
    background-color: #FFFFFF;
    border: 2px solid var(--cor-dourado);
    color: var(--cor-dourado);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-pill:hover {
    background-color: var(--cor-dourado);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* ---------- BARRA FLUTUANTE (ZAP + LIXEIRA) ---------- */

.floating-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* JS muda para flex quando tiver itens */
    align-items: center;
    gap: 15px;
    z-index: 9999;
}

/* Botão da lixeira */
.btn-trash {
    background-color: var(--cor-erro);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
    transition: 0.2s;
}

.btn-trash:hover {
    transform: scale(1.05);
}

/* Botão principal da sacola */
.sacola-float {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--cor-zap);
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: 0.3s;
}

.sacola-float i {
    font-size: 1.3rem;
}

.sacola-float span {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Bolinha com quantidade */
.contador {
    background: #fff;
    color: var(--cor-zap);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* ---------- MODAIS (SUCESSO / POPUP) ---------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
    display: none; /* JS muda pra flex quando mostrar */
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.modal-content {
    background-color: #fff;
    padding: 25px 25px 30px 25px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

/* Modal de sucesso (se quiser algo específico) */
#modal-sucesso .modal-content {
    border-top: 4px solid var(--cor-dourado);
}

/* ---------- CARROSSEL DE PRODUTOS (FOTOS / VÍDEOS) ---------- */

.galeria-carrossel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 5px;
    margin-bottom: 5px;
    gap: 5px;
}

.galeria-carrossel img,
.galeria-carrossel video {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 100%;
    border-radius: 5px;
}

/* Barra de rolagem discreta (desktop) */
.galeria-carrossel::-webkit-scrollbar {
    height: 8px;
}

.galeria-carrossel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.galeria-carrossel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.aviso-arraste {
    font-size: 0.8rem;
    color: #999;
    margin-top: 3px;
}

/* ---------- CARROSSEL DE DEPOIMENTOS ---------- */

.testimonial-slider {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    height: 250px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.testimonial-slide.active {
    opacity: 1;
    z-index: 2;
}

/* ---------- RESPONSIVO ---------- */

@media (max-width: 768px) {
    .grid-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .card {
        padding: 15px;
    }

    .floating-bar {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .sacola-float span {
        display: none; /* deixa só o ícone e o número em telas muito pequenas */
    }
}
