@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #f0f0f0;
    margin-bottom: 100px; /* Compensa a altura do footer */
}


.cabeca {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    background: linear-gradient(45deg, #1e90ff, #16c2fb);
    box-shadow: 0 4px 4px rgba(239, 240, 244, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap; /* Impede que os elementos quebrem */
    position: relative; /* Para posicionar elementos filhos */
}

.logo {
    width: 60px;
    margin-right: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

nav {
    display: flex;
    align-items: center;
}

.ham-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.ham-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.ham-menu.active .bar {
    background-color: #fff;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.menu {
    display: flex;
    list-style: none;
    transition: transform 0.5s ease;
    white-space: nowrap;
}

.menu li {
    margin: 10px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative; /* Para o efeito de hover */
}

.menu li a {
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden; /* Para o efeito de hover */
}

/* Efeito de hover moderno */
.menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* Altura da linha */
    background-color: #00bfff; /* Cor da linha */
    transform: scaleX(0); /* Inicia sem largura */
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.menu li a:hover::before {
    transform: scaleX(1); /* Expande a linha */
    transform-origin: left;
}

.menu li a:hover {
    color: #130260; /* Cor do texto ao passar o mouse */
    background-color: rgba(255, 255, 255, 0.1); /* Fundo sutil */
}

/* Efeito de hover para o menu ativo (mobile) */
.menu.active li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Fundo mais claro no mobile */
}

/* Adicionando um efeito de "pulsar" ao link */
.menu li a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    opacity: 0;
}

.menu li a:hover::after {
    width: 150px;
    height: 150px;
    opacity: 1;
}

/* Estilos gerais para o campo de pesquisa */
.search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-shrink: 1;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.search-input {
    position: absolute;
    right: 50px; /* Posiciona ao lado do botão */
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    background: white;
    border-radius: 50px;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
    height: 40px;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 144, 255, 0.5);
}

.search-button {
    padding: 8px;
    border: none;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.search-button i {
    color: #1e90ff;
    transition: transform 0.3s ease;
    font-size: 18px;
}

.search-button:hover i {
    transform: scale(1.1);
}

/* Campo de pesquisa ativo */
.search-input.active {
    width: 200px;
    opacity: 1;
    padding: 10px 15px;
    padding-right: 40px; /* Espaço para o botão */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    right: 0;
}

/* Estilos para telas grandes */
@media (min-width: 769px) {
    .search-input.active {
        width: 300px;
    }
    
    /* Campo de pesquisa expandido não deve esconder o menu */
    body.search-active nav .menu {
        display: flex !important;
    }
}

/* Estilos para telas pequenas */
@media (max-width: 768px) {
    .ham-menu {
        display: flex !important; /* Força a exibição */
        position: static; /* Remove posicionamento absoluto */
        transform: none; /* Remove centralização */
        order: 1; /* Posição no flex container */
        margin-right: 15px; /* Espaçamento */
        z-index: 1002; /* Garante visibilidade */
    }

    /* Ajuste de layout para cabeçalho */
    .cabeca {
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .cabeca > a {
        order: 0; /* Logo à esquerda */
        margin-right: auto;
    }
    
    .search {
        order: 2; /* Pesquisa à direita */
        margin-left: auto;
    }

    /* Menu deslizando da esquerda para direita */
    .menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: #1e90ff;
        flex-direction: column;
        align-items: flex-start;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
        padding-top: 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    
    .menu.active {
        transform: translateX(0);
    }

    /* Campo de pesquisa expandindo da direita para esquerda */
    .search-input {
        position: absolute;
        top: 0;
        right: 50px;
        width: 0;
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }
    
    .search-input.active {
        width: calc(100vw - 80px);
        opacity: 1;
        right: 10px;
        left: auto;
        z-index: 1001;
        animation: slideInLeft 0.3s ease-out;
    }

    .search-input.active + .search-results {
        position: fixed !important;
        top: 70px !important; /* ajuste conforme altura do header */
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: none !important;
        min-width: 0 !important;
        box-sizing: border-box;
        z-index: 10010 !important;
    }

    /* Animação para entrada do campo */
    @keyframes slideInLeft {
        from {
            transform: translateX(100%);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    /* Esconde o menu quando pesquisa ativa */
    body.search-active .menu {
        transform: translateX(-100%) !important;
    }
    
    /* Mantém o hambúrguer visível durante a pesquisa */
    body.search-active .ham-menu {
        display: flex !important;
        z-index: 1003;
    }
}

/* Resultados da pesquisa - estilo moderno e limpo */
.search-results {
    position: fixed !important;
    top: 70px !important;
    left: 10px !important;
    right: 10px !important;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(30, 144, 255, 0.15), 0 1.5px 6px rgba(0,0,0,0.06);
    padding: 8px 0;
    margin-top: 4px;
    z-index: 10010;
    list-style: none;
    border: none;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    font-family: "Poppins", sans-serif;
}

.search-results li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.search-results a {
    display: block;
    padding: 14px 24px;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.search-results a:hover,
.search-results a:focus {
    background: #e6f3ff;
    color: #1e90ff;
    outline: none;
}

.search-results li {
    transition: background 0.2s;
}

.search-results li:hover {
    background: #f4faff;
}

/* Mensagem de nenhum resultado */
.search-results li:only-child {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 18px 0;
    background: none;
    border: none;
}

/* Mobile: resultado ocupa quase toda a tela */
@media (max-width: 768px) {
    .search-results,
    .search-input.active + .search-results {
        position: fixed !important;
        top: 70px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(30, 144, 255, 0.18), 0 1.5px 6px rgba(0,0,0,0.08);
        padding: 10px 0;
        z-index: 10010 !important;
        max-height: 60vh;
    }
}

/* Estilo para alertas personalizados */
.custom-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #ff4757;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Garante que fique acima de tudo */
    display: none; /* Inicialmente oculto */
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

main {
    text-align: center;
}

h2 {
    margin-bottom: 20px;
    color: black;
    font-weight: bold;
}

p {
    font-size: 18px;
    color: black;
    font-weight: bold;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(100%); 
    transition: all 0.5s ease-in-out;
    position: fixed; /* Alterado para fixed */
    bottom: -100px; /* Esconde totalmente */
    left: 0;
    z-index: 1000;
}

footer.footer-visible { /* Mude a classe para evitar conflito */
    opacity: 1;
    transform: translateY(0);
    bottom: 0;
}

/* Garante que o footer fique no final do conteúdo */
body {
    position: relative;
    min-height: 100vh;
}

footer.visible {
    bottom: 0; /* Mostra no final */
    opacity: 1;
}

/* Adicione margem no final do body para o footer não cobrir conteúdo */
body {
    margin-bottom: 100px; /* Ajuste conforme a altura do footer */
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.rodape {
    display: flex;
    justify-content: space-around;
}

.endereco > p{
    color: white;
}
.red a {
    margin: 10px;
    font-size: 1.5rem;
    color: white;
    
}

.red a:hover {
    color: #00bfff;
}



h3{
    margin-bottom: 5px;
}

/* Estilo do ícone flutuante */
.cart-icon-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #1e90ff;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.cart-icon:hover {
    background-color: #1476d2;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.cart-icon i {
    font-size: 24px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}

/* Animação quando o número muda */
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-badge.update {
    animation: bounce 0.3s ease-in-out;
}


/* Estilos para telas grandes */
@media (min-width: 769px) {
    .menu {
        transform: none;
    }
    .ham-menu {
        display: none;
    }
    
    /* Esconde o campo de pesquisa por padrão */
.search-input {
    transition: all 0.3s ease-in-out !important;
    position: absolute;
    right: 60px; /* Ajuste conforme necessário */
    background: white;
    z-index: 1000;
}

    .search-input.active {
        width: 500px;
        opacity: 1;
        margin-right: px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        border-radius: 60px;
    }

    .search-input {
        display: inline-block;
    }
    
    .fotopc{
        position: relative;
        width: 100%;
    }
    .fotopc img{
        width: 100%;
        height: auto;
    }
    .animado{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%); /* Centraliza o texto */
        color: white; /* Cor do texto */
        font-size: 2rem; /* Tamanho da fonte */
        text-align: center;
        font-family: "Poppins", sans-serif;
        opacity: 0; /* Inicialmente invisível */
        transition: opacity 1s ease;
        animation: fadeInUp 2s ease-in-out forwards; /* Aplica a animação */
    }
    .animado.show {
        opacity: 1;
    }
    .animado.hide {
        opacity: 0;
    }
    .animado h2{
        color: #fff;
        font-family: "Poppins", sans-serif;
        font-size: 3rem;
        padding: 10px;
        letter-spacing: 10px;
        line-height: 90px;
    }
    .animado.visible {
        opacity: 1; /* Visível quando a classe 'visible' é adicionada */
    }

    .foto img{
        display: none;
    }
    
    .produtos {
        margin-top: 20px;
        padding: 20px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #product-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
    }
    
    #product-list .col-md-4 {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
        height: 580px; /* Altura fixa do container pai */
        margin-bottom: 20px;
    }
    
    .card {
        display: flex;
        flex-direction: column;
        height: 100%; /* Ocupa 100% da altura do container pai (580px) */
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
        overflow: hidden; /* Garante que nada ultrapasse o card */
    }
    
    .card-img-top {
        height: 250px;
        object-fit: cover;
        border-radius: 8px 8px 0 0;
        flex-shrink: 0; /* Imagem não reduz */
    }
    
    .card-body {
        display: flex;
        flex-direction: column;
        flex: 1; /* Ocupa o espaço restante após a imagem */
        padding: 15px;
        min-height: 0; /* Permite que o conteúdo interno faça scroll */
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
        min-height: 60px; /* Altura fixa para o título */
    }
    
    .card-text {
        flex: 1; /* Ocupa todo o espaço disponível no card-body */
        overflow-y: auto; /* Scroll no texto */
        margin-bottom: 15px;
        text-align: center;
        max-height: calc(100% - 60px - 15px); /* Calcula altura máxima com base no espaço restante */
        padding-right: 10px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 10px;
        font-size: 0.9rem;
        margin-top: auto; /* Empurra os botões para a base do card-body */
        flex-shrink: 0; /* Botões não reduzem */
    }

    .cart-icon-container {
        bottom: 20px;
        right: 20px;
    }

    .cart-icon {
        width: 50px;
        height: 50px;
    }

    .cart-icon i {
        font-size: 20px;
    }

    .cart-badge {
        font-size: 10px;
        padding: 4px 6px;
        min-width: 20px;
    }
    
    .hero{
        margin-top: 0px;
    }

    .presentation{
        display: flex;
        flex-direction: column;
        margin-top: 0px;
        background-color: #ffffff;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    }
    .apresenta{
        display: flex;
        margin-top: 100px;
    }
    .apresenta, .apresentacao{
        width: 100%;
        height: auto;
    
    }
    .apresenta, .apresent h2{
        padding: 20px;
        font-size: 3rem;
    }
    .apresenta, .apresent p{
        padding: 15px;
    }

    .imagem_apresentacao{
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-left: 29px;
    }

    .present{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 40px;
    }
    .apresent{
        display: flex;
        flex-direction: row-reverse;
    }
    .txto{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 25px;
        margin: 20px;
    }

    .txto p {
        display: flex;
        font-size: 1.5rem;
        margin: 29px;
        padding: 20px;
    }

    #maoesquerda{
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 20px;
        width: 50%;
    }

}

/* Estilos para telas pequenas (tablet e celular) */


/* Animação para deslizar da direita para a esquerda */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Animação para deslizar da esquerda para a direita */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CSS - Adicione essas regras */
[data-animation] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Animação da direita para esquerda */
.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

/* Animação de cima para baixo */
.slide-in-top {
    animation: slideInTop 1s ease-out forwards;
}

/* Animação da esquerda para direita */
.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}



/* ======= MODAL DE ASSINATURA ======= */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
  }
  .modal.active {
    display: flex;
  }
  .modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  .close-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  .btn-assinar {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 1rem;
  }
  .btn-assinar:hover {
    transform: translateY(-2px);
    background: #45a049;
  }

