/* ARQUIVO: Home/css/Style.css */

body.pagina-inicial {
    background-color: #ffffff;
}

.scene-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.conteudo-central {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 102;
}

.conteudo-novo-layout {
    padding-top: 0px;
    padding-bottom: 10px;
}

/* --- TÍTULOS DAS SEÇÕES --- */
.titulo-secao {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.titulo-secao h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    color: #3a3732;
    margin: 0;
    font-weight: 400;
}

.titulo-secao p {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
}

.linha-decorativa {
    width: 200px;
    height: 2px;
    background-color: #e3d5ca;
    margin-top: 8px;
}

.secao-categorias {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 60px;
    z-index: 105;
}

.grid-categorias {
    display: grid;
    /* Usa repeat(4) para garantir 4 por linha no PC */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.card-categoria {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 40px 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-categoria:hover {
    transform: translateY(-5px);
    background-color: #635d58;
}

.card-categoria:hover span, .card-categoria:hover .icone-categoria {
    color: white;
}

.icone-categoria {
    font-size: 24px;
    color: #a8a098;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.card-categoria span {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* --- HISTÓRIA --- */
.secao-historia-remodelada {
    background-color: #b6ada3;
    color: #3a3732;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 60px 20px;
    margin-top: 40px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.secao-historia-remodelada .titulo-secao h3 {
    color: #3a3732;
}

.texto-historia-centralizado {
    max-width: 800px;
}

.texto-historia-centralizado p {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #3a3732;
    margin-bottom: 20px;
}

/* --- VITRINE / FAVORITOS --- */
.secao-vitrine {
    width: 100%;
    margin-bottom: 60px;
    position: relative;
    z-index: 105;
}

.vitrine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

/* CARD EM SI */
.card-vitrine {
    background-color: rgb(255, 255, 255);
    border-radius: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-vitrine:hover {
    background-color: rgb(255, 255, 255);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-vitrine .img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* === A MÁGICA DA IMAGEM (Cinza -> Colorido) === */
.card-vitrine .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(100%); /* Começa Cinza */
    /* Volta pro cinza devagar (1.5s) após delay (0.5s) */
    transition: filter 2.5s ease 0.5s, transform 0.5s ease;
}

.card-vitrine:hover .img-wrapper img {
    filter: grayscale(0%); /* Fica Colorido */
    /* Fica colorido rápido (0.4s) sem delay */
    transition: filter 0.4s ease 0s, transform 0.5s ease;
}

.card-info {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-info h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    margin: 5px 0;
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 500;
}

.info-preco-pagamento-home {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.card-info .preco {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 18px;
}

.metodos-pagamento-home {
    display: flex;
    justify-content: center;
    gap: 5px;
}

/* === ETIQUETAS PIX/CARTÃO (Cinza -> Colorido) === */
.tag-pagamento {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    padding: 3px 8px;
    color: white;
    background-color: #b0b0b0; /* INICIAL: Cinza */
    border-radius: 4px;
    /* Mesma transição da imagem: Volta pro cinza devagar */
    transition: background-color 1.5s ease 0.5s;
}

.card-vitrine:hover .tag-pagamento {
    background-color: #9db89c; /* HOVER: Verde */
    /* Entrada rápida */
    transition: background-color 0.4s ease 0s;
}

/* === BOTÃO VER DETALHES (Cinza -> Colorido) === */
.btn-card-home {
    display: flex;
    width: 100%;
    padding: 12px 0;
    justify-content: center;
    align-items: center;
    background-color: #8d928d; /* INICIAL: Cinza */
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    /* Mesma transição da imagem */
    transition: background-color 1.5s ease 0.5s, transform 0.3s ease;
}

/* Quando passa o mouse no CARD, o botão fica verde */
.card-vitrine:hover .btn-card-home {
    background-color: rgb(104, 141, 107); /* HOVER: Verde */
    transition: background-color 0.4s ease 0s, transform 0.3s ease;
}

/* Quando passa o mouse no PRÓPRIO BOTÃO, ele fica mais claro (interação direta) */
.btn-card-home:hover {
    background-color: rgb(124, 221, 140) !important;
    transform: translateY(-2px);
    transition: background-color 0.2s ease !important;
}

.botao-ver-todos {
    margin-top: 40px;
    text-align: center;
}

.btn-estacao {
    padding: 18px 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: var(--button-primary-text);
    background-color: var(--button-primary-bg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0px;
    box-shadow: 0 4px 15px var(--shadow-main);
    display: inline-block;
}

.btn-estacao:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: #8d928d !important;
    color: rgb(189, 185, 185) !important;
    box-shadow: none !important;
    border-radius: 8px;
}

.btn-outline:hover {
    background-color: var(--button-primary-bg) !important;
    color: white !important;
}

/* === AJUSTE PARA CELULAR === */
@media (max-width: 768px) {
    /* Layout de colunas */
    .grid-categorias, .vitrine-grid {
        display: grid;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    /* CARD NO MOBILE */
    .card-vitrine {
        filter: grayscale(100%); /* Tudo fica cinza (incluindo texto/tags) */
        opacity: 1;
        transition: filter 1.5s ease-out; 
        will-change: filter;
        padding: 5px; 
    }

    /* Quando o JS ativa o scroll */
    .card-vitrine.colorido-scroll {
        filter: grayscale(0%); /* Tudo fica colorido */
    }

    /* GARANTIR que as tags fiquem verdes quando o scroll ativar */
    .card-vitrine.colorido-scroll .tag-pagamento {
        background-color: #9db89c;
    }

    .card-vitrine:active, .card-vitrine:hover {
        filter: grayscale(0%);
        transform: none !important;
    }

    .card-vitrine .img-wrapper img {
        filter: none;
        transition: none;
    }
    
    .btn-card-home {
        display: none !important;
    }

    .card-info h4 {
        font-size: 14px;
        min-height: 40px;
    }
    
    .card-info .preco {
        font-size: 15px;
    }
}

/* --- RODAPÉ HOME --- */
.rodape-site {
    background-color: #dbdbdb;
    padding-top: 60px;
    margin-top: 0;
}

.rodape-coluna h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
    color: #686868;
    text-align: left;
    font-weight: 500;
}

/* ARQUIVO: Home/css/Style.css */

/* --- POPUP DESTAQUE (Com Leque Fade) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.6) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    padding: 15px;
    box-sizing: border-box;
    perspective: 1000px;
}

.popup-overlay.open {
    opacity: 1;
    visibility: visible;
}

.destaque-modal.popup-content {
    background-color: white;
    padding: 0;
    border-radius: 16px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    position: relative;
    max-width: 400px;
    width: 100%;
    transform: scale(.8) translateY(20px);
    transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
    font-family: 'Montserrat', sans-serif;
    overflow: visible; /* Necessário para o leque aparecer */
    z-index: 10;
}

/* --- O LEQUE (Cartas de Trás com Fade) --- */
.destaque-modal.popup-content::before,
.destaque-modal.popup-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    z-index: -1; 
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombra mais suave */
    opacity: 0; /* Começam invisíveis */
}

/* Carta da ESQUERDA (Mais transparente/Longe) */
.destaque-modal.popup-content::before {
    background-color: rgba(255, 255, 255, 0.4); /* 40% visível */
}

/* Carta da DIREITA (Meio termo) */
.destaque-modal.popup-content::after {
    background-color: rgba(255, 255, 255, 0.7); /* 70% visível */
}

/* --- ANIMAÇÃO AO ABRIR --- */
.popup-overlay.open .popup-content {
    transform: scale(1) translateY(0);
}

.popup-overlay.open .destaque-modal.popup-content::before {
    transform: rotate(-8deg) translateX(-25px); /* Gira um pouco mais */
    opacity: 1;
}

.popup-overlay.open .destaque-modal.popup-content::after {
    transform: rotate(8deg) translateX(25px); /* Gira um pouco mais */
    opacity: 1;
}

/* --- CONTEÚDO INTERNO --- */
.destaque-corpo {
    background-color: white;
    border-radius: 16px; 
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: 100%;
}

/* --- RESTANTE DOS ESTILOS (Texto, Botões, etc) --- */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: all .3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.popup-close-btn:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

.destaque-imagem-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.destaque-info {
    padding: 25px;
    text-align: center;
    background-color: #fff;
}

.tag-destaque {
    display: inline-block;
    background-color: #ffead3;
    color: #d37a5a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.destaque-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--text-primary);
    margin: 10px 0;
}

.destaque-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-ver-destaque {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    text-decoration: none;
    font-weight: 150;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn-ver-destaque:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-2px);
}

/* === REMOVE EFEITO LEQUE NO MOBILE === */
@media (max-width: 768px) {
    .destaque-modal.popup-content::before,
    .destaque-modal.popup-content::after {
        display: none !important; /* Some com as cartas de trás */
        content: none;
    }
    
    .destaque-modal.popup-content {
        transform: scale(0.95); /* Animação mais simples no mobile */
    }
    
    .popup-overlay.open .popup-content {
        transform: scale(1);
    }
}

.destaque-imagem-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.destaque-info {
    padding: 25px;
    text-align: center;
    background-color: #fff;
}

.tag-destaque {
    display: inline-block;
    background-color: #ffead3;
    color: #d37a5a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.destaque-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--text-primary);
    margin: 10px 0;
}

.destaque-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-ver-destaque {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    text-decoration: none;
    font-weight: 150;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn-ver-destaque:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-2px);
}

.destaque-imagem-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.destaque-info {
    padding: 25px;
    text-align: center;
    background-color: #fff;
}

.tag-destaque {
    display: inline-block;
    background-color: #ffead3;
    color: #d37a5a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.destaque-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    color: var(--text-primary);
    margin: 10px 0;
}

.destaque-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-ver-destaque {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    background-color: var(--button-primary-bg);
    color: var(--button-primary-text);
    text-decoration: none;
    font-weight: 150;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.btn-ver-destaque:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-2px);
}

/* === CORES PASTÉIS PARA ÍCONES DAS CATEGORIAS === */
.icone-batismo i { color: #a2c8d6; }
.icone-gravidez i { color: #d1bd91; }
.icone-casamento i { color: #FFB7C5; }
.icone-lembrancinhas i { color: #B2E2B2; }
.icone-higiene i { color: #C3B1E1; }
.icone-mobile i { color: #ADD8E6; }
.icone-porta i { color: #FFDAC1; }
.icone-sacra i { color: #d1c8bb; }

.card-categoria:hover .icone-categoria i {
    filter: brightness(0.9);
    transform: scale(1.1);
}


.card-categoria:hover span, 
.card-categoria:hover .icone-categoria {
    color: #4a4744 !important; /* Cinza escuro forte */
}

/* 1. Batismo (Azul Serenity - Mais visível) */
.card-categoria[href*="Batismo"]:hover {
    background-color: #c0d3e7 !important;
    .icone-batismo i { color: white; }
}

/* 2. Gravidez (Ouro Suave - Mais quente que amarelo) */
.card-categoria[href*="Gravidez"]:hover {
    background-color: #f1d2af !important;
    .icone-gravidez i { color: white; }
}

/* 3. Casamento (Rosa Queimado / Old Pink) */
.card-categoria[href*="Casamento"]:hover {
    background-color: #E6A8B3 !important;
    .icone-casamento i { color: white; };
}

/* 4. Lembrancinhas (Verde Sálvia) */
.card-categoria[href*="Lembrancinhas"]:hover {
    background-color: #A8C6A6 !important;
    .icone-lembrancinhas i { color: white; };
}

/* 5. Kit Higiene (Lavanda Intenso) */
.card-categoria[href*="Higiene"]:hover {
    background-color: #CAB3D6 !important;
    .icone-higiene i { color: white; };
}

/* 6. Móbile (Azul Aqua / Menta) */
.card-categoria[href*="Mobile"]:hover {
    background-color: #99CED3 !important;
    .icone-mobile i { color: white; };
}

/* 7. Porta Maternidade (Terracota Suave / Pêssego Forte) */
.card-categoria[href*="Porta"]:hover {
    background-color: #F2C4A8 !important;
    .icone-porta i { color: white; };
}

/* 8. Imagem Sacra (Areia Escuro / Taupe) */
.card-categoria[href*="Sacra"]:hover {
    background-color: #e6d7c4 !important;
    .icone-sacra i { color: white; };
}