/* --- DEFINIÇÃO DAS CORES DA MARCA (VARIÁVEIS CSS) --- */
:root {
    --cor-fundo: #f4f4f4;
    --cor-superficie: #ffffff;
    --cor-texto-principal: #333;
    --cor-texto-secundario: #444;
    --cor-destaque-ciano: #00aeef;
    --cor-sombra: rgba(0, 0, 0, 0.1);
}

/* Reset Básico e Estilo do Corpo */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--cor-texto-principal);
    background-color: var(--cor-fundo);
    background-image: url('../img/meu-padrao.png');
    background-repeat: repeat;
    background-attachment: fixed;
    background-size: cover;
}

.site-header {
    padding: 15px 30px;
    background-color: var(--cor-superficie);
    box-shadow: 0 2px 5px var(--cor-sombra);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Logo fica à esquerda */
.logo-container {
  display: flex;
  justify-content: flex-start; /* Alinha à esquerda */
  align-items: center; /* Centraliza verticalmente */
  flex: 1; /* Ocupa uma fração do espaço */
}

.logo-container img {
  height: 80px;
  transition: opacity 0.3s, transform 0.3s ease; /* adiciona transform na transição */
}

.logo-container img:hover {
  transform: scale(1.1); /* aumenta 10% ao passar o mouse */
}


/* Título centralizado */
.header-title-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none; /* Para que o título não interfira no clique de elementos do header */
}

/* Card de chamada - agora estilo botão preto */
.header-cta-card {
    display: inline-block; /* para se comportar como botão */
    color: #000000; /* texto PRETO */
    border: 2px solid var(--cor-destaque-ciano);
    border-radius: 20px;
    padding: 15px 15px;
    max-width: 280px;
    text-decoration: none; /* tira sublinhado */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
    cursor: pointer; /* cursor de botão */
    user-select: none; /* evita seleção do texto ao clicar */
    background-color: transparent; /* fundo transparente padrão */
}

/* Estilo do texto e parágrafo */
.header-cta-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
    margin: 0; /* Remove margens padrão */
}

.header-cta-card p strong {
    color: var(--cor-texto-principal);
}

/* Hover com leve transparência de ciano + leve elevação */
.header-cta-card:hover {
    background-color: rgba(0, 174, 239, 0.15); /* ciano com 15% de opacidade */
    color: #000; /* mantém texto preto */
    box-shadow: 0 8px 16px rgba(0, 174, 239, 0.2); /* sombra ciano leve */
    transform: translateY(-5px); /* levanta suavemente */
}


/* Barra de pesquisa */
.search-container {
    padding: 0 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

#search-bar {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    background-image: url('../img/search-icon.png');
    background-repeat: no-repeat;
    background-position: left 20px center;
    padding-left: 55px;
    background-size: 17px;
}

/* Filtros */
#category-filters {
    background-color: var(--cor-superficie);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin: 20px 20px 30px 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cor-texto-principal);
    background-color: var(--cor-fundo);
    border: 1px solid #eee;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.filter-button:hover {
    background-color: #e2e6ea;
}

.filter-button.active {
    background-color: var(--cor-destaque-ciano);
    color: white;
    border-color: var(--cor-destaque-ciano);
}

/* Grade de produtos */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background-color: var(--cor-superficie);
    box-shadow: 0 4px 8px var(--cor-sombra);
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}


.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--cor-texto-principal);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cor-destaque-ciano);
}

/* Grade desktop */
@media (min-width: 1200px) {
    #product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--cor-superficie);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 400px;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--cor-texto-principal);
}

.modal-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cor-destaque-ciano);
    margin-bottom: 20px;
}

.modal-button {
    display: inline-block;
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background-color: #25d366;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    text-transform: lowercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-button:hover {
    background-color: #128c7e;
}

/* Botões flutuantes */
.floating-buttons-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.floating-button {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.floating-button:hover {
    transform: scale(1.1);
}

.floating-button img {
  width: 85px; /* já está em 28px, o ideal é entre 32-36px */
}


#whatsapp-button {
    background-color: transparent;
}

/* Rodapé */
.site-footer {
    background-color: #4b4b50;
    color: #ccc;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-content .copyright {
    font-size: 0.8rem;
    color: #888;
    margin-top: 20px;
    margin-bottom: 0;
}

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {

    .site-header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
        position: static;
    }

    .header-title-container {
        position: static;
        transform: none;
        order: 2;
    }

    .header-title {
        font-size: 1.3rem;
    }

    .header-cta-card {
        width: 100%;
        max-width: 100%;
        order: 3;
        padding: 10px;
        border-width: 1px;
        background-color: #000000; /* mantém botão preto no mobile também */
        color: #fff;
    }

    .header-cta-card p {
        font-size: 0.75rem;
    }

    .search-container {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    #search-bar {
        padding: 12px 15px;
        padding-left: 45px;
        font-size: 1rem;
    }

    #category-filters {
        gap: 8px;
        margin-bottom: 20px;
    }

    .filter-button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    #product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px 15px 15px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .floating-buttons-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .floating-button {
        width: 50px;
        height: 50px;
    }

    .floating-button img {
        width: 28px;
    }

    .modal-content {
        width: 95%;
    }
    .site-footer {
      padding: 30px 15px;
      font-size: 0.8rem;
    }

    .footer-content p {
      line-height: 1.4;
      text-align: center;
    }
}
