/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E PALETA DE CORES (Dani Pratas & Semijoias)
   ========================================================================== */
:root {
    --rosa-fundo: #F5D3D9;
    /* Rosa pastel do logo */
    --marrom-texto: #5E3E37;
    /* Marrom escuro da escrita */
    --prata-brilhante: #E5E9EC;
    /* Tom base para o prateado limpo */
    --prata-borda: #A1A8AE;
    /* Prata metálico para detalhes */
    --branco-puro: #FFFFFF;
    --sombra-suave: rgba(94, 62, 55, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--marrom-texto);
    line-height: 1.6;
    background-color: var(--branco-puro);
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* FUNDO GLOBAL FIXO (Diretório único com 70% de transparência) */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('joias-fundo.jpg');
    /* Puxa direto do diretório unificado */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -2;
}

/* AJUSTE EXCLUSIVO PARA A PÁGINA DO PORTAL PRINCIPAL */
body.pagina-portal::before {
    display: none;
}

body.pagina-portal {
    background-color: var(--rosa-fundo);
}

/* ==========================================================================
   2. CABEÇALHO PADRONIZADO E ALINHADO (CORRIGIDO)
   ========================================================================== */
.site-header {
    background-color: var(--rosa-fundo);
    border-bottom: 2px solid var(--prata-borda);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--sombra-suave);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

/* Área unificada da logo e textos (Esquerda de quem olha) */
.logo-area-esquerda {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.logo-texto h1 {
    font-family: 'Playfair Display', serif;
    color: var(--marrom-texto);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo-texto span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--marrom-texto);
    opacity: 0.8;
    display: block;
    margin-top: 2px;
}

/* Sem bordas arredondadas na logo do cabeçalho */
.header-logo-img {
    height: 50px !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.header-logo-img img {
    height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* Barra de Navegação e Botões (Direita de quem olha) */
.main-nav {
    display: flex !important;
    gap: 15px !important;
    align-items: center !important;
}

.main-nav a {
    text-decoration: none;
    color: var(--marrom-texto);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--branco-puro);
}

.btn-voltar {
    font-weight: 600 !important;
    padding: 8px 12px;
}

.main-nav .btn-contato {
    background: linear-gradient(135deg, var(--prata-brilhante), var(--prata-borda));
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--branco-puro);
    color: var(--marrom-texto) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.main-nav .btn-contato:hover {
    background: var(--marrom-texto);
    color: var(--branco-puro) !important;
}

/* ==========================================================================
   3. ESTILO DO PORTAL PRINCIPAL (PARÁGRAFO EMBAIXO DO BOTÃO NO RODAPÉ)
   ========================================================================== */
.portal-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    height: 60vh;
    min-height: 400px;
}

.portal-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    border: 2px solid var(--prata-borda);
    box-shadow: 0 10px 25px rgba(94, 62, 55, 0.15);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.portal-card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.portal-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(94, 62, 55, 0.95), rgba(0, 0, 0, 0.3));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 35px;
    text-align: center;
    z-index: 2;
}

.portal-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
}

.portal-card-overlay h2 {
    font-family: 'Playfair Display', serif;
    color: var(--branco-puro);
    font-size: 42px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

/* Novo layout de rodapé dos cards: Botão em cima e texto embaixo */
.portal-card-footer {
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.portal-btn {
    display: inline-block;
    color: var(--branco-puro);
    border: 1px solid var(--branco-puro);
    padding: 12px 35px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.portal-card-footer p {
    color: var(--branco-puro);
    font-size: 14px;
    max-width: 350px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.85;
    line-height: 1.4;
}

.portal-card:hover {
    transform: translateY(-5px);
    border-color: var(--branco-puro);
}

.portal-card:hover .portal-card-bg {
    transform: scale(1.05);
}

.portal-card:hover .portal-btn {
    background-color: var(--branco-puro);
    color: var(--marrom-texto);
}

/* ==========================================================================
   4. BANNER PRATAS (HERO DO INTERNO COM IMAGEM DO PINGENTE)
   ========================================================================== */
.hero-section {
    height: 70vh;
    min-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('pingente-hero.jpg');
    /* Corrigido para pasta única */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 4px solid var(--rosa-fundo);
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.88);
    padding: 40px 60px;
    border-radius: 8px;
    border: 1px solid var(--prata-borda);
    box-shadow: 0 10px 30px rgba(94, 62, 55, 0.2);
    max-width: 650px;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--marrom-texto);
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 25px;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    background-color: var(--marrom-texto);
    color: var(--branco-puro);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: linear-gradient(135deg, var(--prata-brilhante), var(--prata-borda));
    color: var(--marrom-texto);
}

/* ==========================================================================
   4.1 BANNER SEMI-JOIAS DO INTERNO COM IMAGEM DO PINGENTE)
   ========================================================================== */
.hero-section-sj {
    height: 70vh;
    min-height: 400px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('pingente-hero-sj.jpg');
    /* Imagem exclusiva das semijoias */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 4px solid var(--rosa-fundo);
}

/* ==========================================================================
   5. SEÇÃO DE CATEGORIAS (GRADE TRAVADA EM 3 COLUNAS POR LINHA)
   ========================================================================== */
.categories-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Força rigidamente o layout a exibir 3 colunas na linha */
.categories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* Preserva a integridade e visibilidade total dos cards */
.category-card {
    display: block !important;
    position: relative;
    height: 350px !important;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid var(--prata-borda);
    box-shadow: 0 8px 20px var(--sombra-suave);
    text-decoration: none;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.card-image {
    width: 100% !important;
    height: 100% !important;
    background-size: cover;
    background-position: center;
    display: block !important;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(94, 62, 55, 0.85), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
}

.card-overlay h3 {
    font-family: 'Playfair Display', serif;
    color: var(--branco-puro);
    font-size: 24px;
    margin-bottom: 15px;
}

.card-btn {
    color: var(--branco-puro);
    border: 1px solid var(--branco-puro);
    padding: 8px 20px;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--rosa-fundo);
}

.category-card:hover .card-image {
    transform: scale(1.08);
}

.category-card:hover .card-btn {
    background-color: var(--rosa-fundo);
    color: var(--marrom-texto);
    border-color: var(--rosa-fundo);
}


/* ==========================================================================
   6. BOTÃO DE WHATSAPP FLUTUANTE EXCLUSIVO E RODAPÉ DE PÁGINA
   ========================================================================== */
.whatsapp-float-novo {
    position: fixed !important;
    width: 65px !important;
    height: 65px !important;
    bottom: 40px !important;
    right: 40px !important;
    z-index: 9999 !important;
    background-color: transparent !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.whatsapp-float-novo img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: contain !important;
}

.whatsapp-float-novo:hover {
    transform: scale(1.1) !important;
}

.site-footer {
    background-color: var(--marrom-texto);
    color: var(--branco-puro);
    padding: 30px 20px;
    text-align: center;
    border-top: 3px solid var(--rosa-fundo);
}

.footer-phone {
    color: var(--rosa-fundo);
    font-weight: 600;
    margin-top: 5px;
}

/* ==========================================================================
   7. RESPONSIVIDADE E CENTRALIZAÇÃO DO RODAPÉ (AJUSTADO PARA CELULAR)
   ========================================================================== */
@media (max-width: 768px) {

    /* Força os cards de categoria a ficarem em uma linha única vertical */
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .portal-card {
        height: 320px;
    }

    .portal-card-overlay h2 {
        font-size: 32px;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {

    /* O auto-fit acima já cuida da quebra, mas esta regra garante linha única em telas pequenas */
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
}

/* ==========================================================================
   8. PAINEL DE CONTROLE CENTRAL (HUB) - ESTILO PÍLULA NEON
   ========================================================================== */

/* Mantém o fundo rosa pastel limpo na página do portal administrativo */
body.pagina-hub-admin {
    background-color: var(--rosa-fundo);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container principal do menu administrativo */
.hub-container {
    background-color: var(--branco-puro) !important;
    border: 2px solid var(--prata-borda) !important;
    border-radius: 8px !important;
    padding: 40px !important;
    width: 100% !important;
    max-width: 480px !important;
    box-shadow: 0 10px 30px rgba(94, 62, 55, 0.15) !important;
    text-align: center;
}

.hub-logo {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.hub-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--marrom-texto);
}

/* Organiza o menu em coluna única */
.hub-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Formato pílula elegante idêntico aos botões do site visível */
.btn-hub {
    text-decoration: none;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    /* Pílula perfeita */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(94, 62, 55, 0.1);
}

/* Novo botão da Vitrine: Sólido e em grande destaque */
.btn-hub-vitrine {
    background-color: var(--marrom-texto) !important;
    color: var(--branco-puro) !important;
    border: 2px solid var(--marrom-texto) !important;
}

.btn-hub-vitrine:hover {
    background-color: #452d28 !important;
    border-color: #452d28 !important;
    box-shadow: 0 0 15px rgba(94, 62, 55, 0.5) !important;
    /* Brilho Neon */
}

/* Botões de Gerenciamento: Vazados e discretos */
.btn-hub-vazado {
    background-color: transparent !important;
    color: var(--marrom-texto) !important;
    border: 2px solid var(--marrom-texto) !important;
}

.btn-hub-vazado:hover {
    background-color: var(--marrom-texto) !important;
    color: var(--branco-puro) !important;
    box-shadow: 0 0 15px rgba(94, 62, 55, 0.4) !important;
    /* Brilho Neon */
}

/* Dani Pratas V50.31 — ajustes exclusivos do Menu Gerencial.
   Nenhuma regra das páginas públicas ou do estoque é alterada. */
body.pagina-hub-admin {
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: hidden;
}
body.pagina-hub-admin .site-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100%;
    flex: 0 0 auto;
}
body.pagina-hub-admin .header-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    padding: 18px 16px;
}
body.pagina-hub-admin .logo-area-esquerda {
    display: block !important;
    width: 100%;
}
body.pagina-hub-admin .logo-texto h1 {
    font-size: clamp(23px, 3vw, 32px);
    line-height: 1.2;
}
body.pagina-hub-admin .logo-texto span {
    margin-top: 6px;
    line-height: 1.45;
}
body.pagina-hub-admin .hub-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 30px 18px;
}
body.pagina-hub-admin .hub-container {
    width: 100% !important;
    max-width: 480px !important;
}
body.pagina-hub-admin .hub-menu .btn-hub {
    display: flex;
    width: 100%;
    min-height: 54px;
    padding: 13px 18px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
}
body.pagina-hub-admin .hub-menu .btn-hub-sair {
    background: #fff !important;
    color: var(--marrom-texto) !important;
    border: 1px solid #c9b8b5 !important;
    box-shadow: none;
    margin-top: 5px;
}
body.pagina-hub-admin .hub-menu .btn-hub-sair:hover {
    background: #f8edf0 !important;
}
@media (max-width: 768px) {
    body.pagina-hub-admin .header-container {
        flex-direction: row !important;
        padding: 17px 14px;
        gap: 0;
    }
    body.pagina-hub-admin .logo-texto h1 {
        font-size: clamp(23px, 6.5vw, 29px);
        letter-spacing: .3px;
    }
    body.pagina-hub-admin .logo-texto span {
        font-size: 10px;
        letter-spacing: 1px;
        max-width: 320px;
        margin: 6px auto 0;
    }
    body.pagina-hub-admin .hub-main {
        padding: 24px 15px 32px;
    }
    body.pagina-hub-admin .hub-container {
        padding: 26px 20px !important;
        max-width: 420px !important;
    }
    body.pagina-hub-admin .hub-logo {
        width: 112px;
        margin-bottom: 10px;
    }
    body.pagina-hub-admin .hub-title {
        font-size: 25px;
        margin-bottom: 24px;
    }
    body.pagina-hub-admin .hub-menu { gap: 12px; }
    body.pagina-hub-admin .hub-menu .btn-hub {
        font-size: 13px;
        letter-spacing: .5px;
        min-height: 54px;
    }
}
@media (max-width: 360px) {
    body.pagina-hub-admin .hub-container { padding: 23px 15px !important; }
    body.pagina-hub-admin .hub-menu .btn-hub { font-size: 12px; }
}
