/* ============================================================
   style.css — Salutare
   ============================================================ */

/* --- Base --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 800;
}

:root {
    --azul-medico: #007bff;
    --azul-escuro: #0056b3;
}

/* --- Navbar --- */
.bg-azul-medico {
    background-color: var(--azul-medico) !important;
}

/* Compensa a altura do menu fixo */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* --- Hero Section --- */
.hero-bg {
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 123, 255, 0.5)),
                url('../img/layout/banner_home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 90vh;
    margin-top: -80px;
    padding-top: 100px;
}

/* --- Cards genéricos --- */
.card {
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}

/* --- Botão do Menu --- */
.navbar .btn-outline-light:hover {
    color: var(--azul-medico) !important;
    font-weight: bold;
}

/* --- Botão Flutuante do WhatsApp --- */
.btn-whatsapp-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    text-decoration: none;
}
.btn-whatsapp-flutuante:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* --- Imagem "Quem Somos" --- */
.img-mesma-altura {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 300px;
}

/* ============================================================
   PÁGINA DE PRODUTOS
   ============================================================ */

/* Sidebar sticky */
.sticky-sidebar {
    position: sticky;
    top: 90px;
    z-index: 900;
    max-height: 85vh;
    overflow-y: auto;
}
.sticky-sidebar::-webkit-scrollbar { width: 6px; }
.sticky-sidebar::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

/* Botões de categoria */
.list-group-item {
    transition: all 0.2s;
    border-left: 4px solid transparent;
}
.list-group-item:hover,
.list-group-item.active {
    background-color: #f8f9fa;
    color: var(--azul-medico);
    border-left-color: var(--azul-medico);
    border-color: rgba(0, 0, 0, 0.125);
}
.list-group-item.active {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: var(--azul-medico);
}

/* --- Card de Produto --- */
.produto-card {
    cursor: pointer; /* indica que é clicável */
}
.produto-card img {
    transition: transform 0.3s;
}
.produto-card:hover img {
    transform: scale(1.05);
}

/* Indicador visual de "clique para ampliar" */
.produto-card .card-body::after {
    content: '🔍 Clique para ampliar';
    display: block;
    font-size: 0.72rem;
    color: #aaa;
    text-align: center;
    margin-top: 6px;
    letter-spacing: 0.02em;
}

/* ============================================================
   MODAL DE PRODUTO — Acessibilidade / Visão
   ============================================================ */

/* Overlay com blur suave no fundo */
#modal-produto .modal-dialog {
    max-width: 780px;
}

#modal-produto .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Header do modal */
#modal-produto .modal-header {
    background: linear-gradient(135deg, var(--azul-medico), var(--azul-escuro));
    color: #fff;
    padding: 18px 24px;
    border: none;
}
#modal-produto .modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
#modal-produto .modal-header .btn-close {
    filter: invert(1) brightness(2); /* botão X branco */
}

/* Imagem do produto no modal — grande e nítida */
#modal-produto .modal-img-wrapper {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
    min-height: 280px;
}
#modal-produto .modal-img-wrapper img {
    max-height: 280px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s;
}
#modal-produto .modal-img-wrapper img:hover {
    transform: scale(1.04);
}

/* Corpo do modal — texto grande para acessibilidade */
#modal-produto .modal-body {
    padding: 28px 32px;
}

/* Código do produto */
#modal-produto .modal-codigo {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* Nome do produto — fonte grande */
#modal-produto .modal-nome {
    font-size: 1.45rem;   /* ~23px — fácil leitura */
    font-weight: 800;
    color: #212529;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Badge de categoria */
#modal-produto .modal-categoria {
    font-size: 0.88rem;
    margin-bottom: 16px;
}

/* Descrição completa — sem truncar */
#modal-produto .modal-descricao {
    font-size: 1.1rem;    /* maior que no card */
    color: #555;
    line-height: 1.75;
    margin-bottom: 0;
}

/* Footer do modal */
#modal-produto .modal-footer {
    padding: 16px 32px 24px;
    border: none;
    gap: 12px;
    justify-content: flex-start;
}

/* Botão WhatsApp no modal — grande e acessível */
#modal-produto .btn-wpp-modal {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid #25d366;
    color: #25d366;
    background: #fff;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
#modal-produto .btn-wpp-modal:hover,
#modal-produto .btn-wpp-modal:focus {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    outline: none;
}

/* Botão fechar no footer */
#modal-produto .btn-fechar-modal {
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 50px;
    color: #666;
    border: 2px solid #dee2e6;
    background: transparent;
    transition: all 0.2s;
}
#modal-produto .btn-fechar-modal:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
    color: #333;
}

/* --- Responsividade do modal --- */
@media (max-width: 576px) {
    #modal-produto .modal-body {
        padding: 20px 18px;
    }
    #modal-produto .modal-nome {
        font-size: 1.2rem;
    }
    #modal-produto .modal-descricao {
        font-size: 1rem;
    }
    #modal-produto .modal-footer {
        flex-direction: column;
        padding: 12px 18px 20px;
    }
    #modal-produto .btn-wpp-modal,
    #modal-produto .btn-fechar-modal {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   LAYOUT 80%
   ============================================================ */
.layout-80 {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 1200px) {
    .layout-80 {
        max-width: 80%;
    }
}

/* ============================================================
   BANNER LGPD
   ============================================================ */
.lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease-out;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}