/* --- DESIGN SYSTEM BIOPURE --- */
:root {
    --primary-blue: #00AEEF;
    --primary-gold: #FFD200;
    --text-dark: #1A202C;
    --text-light: #718096;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--white); overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* HEADER FIXO */
header {
    height: 80px; display: flex; align-items: center; position: fixed;
    width: 100%; top: 0; z-index: 1000; background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px); border-bottom: 1px solid #eee;
}
nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; color: var(--primary-blue); }
.logo img { height: 40px; }

.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); }

.btn-primary-nav { background: var(--primary-blue); color: white !important; padding: 10px 20px; border-radius: 50px; }

/* CATÁLOGO */
.catalog-page { padding-top: 140px; }
.catalog-hero { text-align: center; margin-bottom: 50px; }
.catalog-hero h1 { font-size: 3rem; margin-bottom: 10px; }
.catalog-hero h1 span { color: var(--primary-blue); }

.category-nav { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.filter-btn {
    padding: 12px 30px; border: 2px solid #edf2f7; background: white;
    border-radius: 50px; cursor: pointer; font-weight: 700; color: var(--text-light); transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary-blue); color: white; border-color: var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.2);
}

/* GRID E CARDS */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; padding-bottom: 100px; }
.product-card {
    background: white; border-radius: 20px; border: 1px solid #f0f0f0;
    overflow: hidden; display: flex; flex-direction: column; transition: 0.3s;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.product-image { height: 260px; background: #f8fbff; position: relative; display: flex; align-items: center; justify-content: center; }
.product-image img { max-height: 80%; object-fit: contain; }
.badge-cat { position: absolute; bottom: 15px; left: 15px; background: white; padding: 5px 12px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; color: var(--primary-blue); text-transform: uppercase; }

.product-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1.2rem; margin-bottom: 10px; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 20px; display: block; }

.btn-details {
    padding: 12px; border: 2px solid var(--primary-blue); background: transparent;
    color: var(--primary-blue); border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-details:hover { background: var(--primary-blue); color: white; }

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px); display: none; justify-content: center; align-items: center; z-index: 2000; padding: 20px;
}
.modal-content { background: white; width: 100%; max-width: 850px; border-radius: 30px; position: relative; padding: 40px; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; cursor: pointer; color: #ccc; }

.modal-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.modal-img-box { background: #f8fbff; border-radius: 20px; height: 350px; display: flex; align-items: center; justify-content: center; }
.modal-img-box img { max-height: 90%; object-fit: contain; }

.btn-main-wa {
    display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: white;
    padding: 15px 30px; border-radius: 12px; text-decoration: none; font-weight: 700; margin-top: 20px;
}

/* RESPONSIVO */
/* --- AJUSTE DE ALINHAMENTO PARA CELULAR --- */

@media (max-width: 768px) {
    /* Centraliza a coluna da marca */
    .footer-column.brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centraliza logo e texto horizontalmente */
    }

    /* Centraliza o Logo (Imagem + Texto) */
    .footer-column.brand .logo {
        justify-content: center;
        margin-bottom: 15px;
    }

    /* Centraliza o parágrafo de descrição */
    .footer-column.brand p {
        margin: 0 auto 25px auto; /* Centraliza o bloco de texto */
        max-width: 90%; /* Garante que o texto não cole nas bordas do celular */
    }

    /* Centraliza os ícones das redes sociais */
    .social-medias {
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }
}

/* Estilo do Preço no Modal */
.modal-price-tag {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 10px 0 20px;
}

/* Estilo da Descrição Completa */
.modal-description-full {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
    max-height: 200px; /* Se a descrição for Gigante, ele cria scroll interno */
    overflow-y: auto;
    padding-right: 10px;
}

/* Estilização da barra de scroll da descrição (Opcional) */
.modal-description-full::-webkit-scrollbar { width: 5px; }
.modal-description-full::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }

/* ============================================================
   RODAPÉ PREMIUM (FOOTER) - BIOPURE
   ============================================================ */

.main-footer {
    background-color: #F8FAFC; /* Cinza gelo muito claro e limpo */
    padding: 80px 0 30px;
    border-top: 1px solid #eee;
    margin-top: 80px;
    width: 100%;
}

/* Grade do Rodapé */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.5fr; /* Map com mais destaque */
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}

/* Estilo das Colunas */
.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
}

/* Barrinha dourada abaixo dos títulos */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 35px;
    height: 3px;
    background-color: var(--primary-gold);
}

/* Coluna 1: Branding */
.footer-column.brand p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 320px;
}

.social-medias {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.social-icon:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

/* Coluna 2: Links */
.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-column ul a:hover {
    color: var(--primary-blue);
    padding-left: 8px;
}

/* Coluna 3: Sede (Centralizada) */
.footer-column.map-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-column.map-col h4::after {
    left: 50%;
    transform: translateX(-50%);
}

.map-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    filter: grayscale(0.2);
    transition: 0.5s;
}

.map-wrapper:hover {
    filter: grayscale(0);
}

/* Botão Como Chegar */
.btn-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    transition: var(--transition);
    width: 100%;
    max-width: 220px;
}

.btn-directions:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.2);
}

.address {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.address i { color: var(--primary-gold); }

/* Rodapé Final (Copyright) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background-color: #25d366;
    color: #fff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    transition: var(--transition);
}

/* Efeito Pulsar do WhatsApp */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* AJUSTES MOBILE (Responsividade) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .footer-column { align-items: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { flex-direction: column; gap: 15px; }
    .social-medias { justify-content: center; }
}

/* ============================================================
   BOTÃO WHATSAPP FLUTUANTE - DESIGN PREMIUM
   ============================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Verde oficial do WhatsApp */
    color: #fff !important;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 9999; /* Garante que fique acima de tudo, inclusive do modal */
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efeito de aumento ao passar o mouse */
.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
}

/* ANIMAÇÃO PULSAR (O "Anel" que expande) */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.7;
    z-index: -1;
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* TOOLTIP (Pequeno balão de texto ao lado) */
.whatsapp-float .tooltip {
    position: absolute;
    right: 80px; /* Distância do botão */
    background-color: #333;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Seta do balão de texto */
.whatsapp-float .tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #333;
}

/* Mostrar Tooltip no Hover */
.whatsapp-float:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* AJUSTE PARA CELULAR */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
    
    /* Esconde o tooltip no mobile para não atrapalhar o toque */
    .whatsapp-float .tooltip {
        display: none;
    }
}

/* --- HEADER GERAL --- */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- CONFIGURAÇÃO PARA PC (DESKTOP) --- */
.nav-links {
    display: flex; /* Links lado a lado no PC */
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.hamburger {
    display: none; /* ESCONDIDO NO PC */
    cursor: pointer;
}

/* --- CONFIGURAÇÃO PARA CELULAR (MOBILE) --- */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* APARECE NO CELULAR */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Escondido fora da tela */
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        transition: 0.5s ease;
    }

    .nav-links.active {
        right: 0; /* Desliza para dentro */
    }

    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary-blue);
        transition: 0.3s;
    }

    /* Transformação em X quando ativo */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* --- ASSINATURA DO DESENVOLVEDOR --- */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.my-signature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-signature a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Efeito quando passar o mouse na sua assinatura */
.my-signature a:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.my-signature strong {
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.my-signature a:hover strong {
    border-bottom-color: var(--primary-gold); /* Detalhe em dourado no hover */
}

/* Se usar imagem no seu logo de dev */
.my-signature img {
    height: 20px;
    width: auto;
    filter: grayscale(1); /* Deixa cinza para ser discreto */
    transition: 0.3s;
}

.my-signature a:hover img {
    filter: grayscale(0); /* Fica colorido no hover */
}

/* AJUSTE PARA CELULAR */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .my-signature {
        margin-top: 5px;
        font-size: 0.9rem;
    }
}