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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, 
        #f3d4e6 0%, 
        #e8c7dc 25%, 
        #d4b5d8 50%, 
        #b8d4e8 75%, 
        #a8e0d8 100%
    );
    min-height: 100vh;
    color: #6b4d7a;
    position: relative;
    padding-bottom: 4rem;
}

/* Pirilampos e Estrelas */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Animações de pirilampos */
@keyframes falling {
    0% {
        top: -5%;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 105%;
        opacity: 0;
        transform: translateX(100px) rotate(360deg);
    }
}

@keyframes firefly {
    0%, 100% {
        opacity: 0;
        box-shadow: 0 0 0px rgba(255, 215, 0, 0);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                    0 0 30px rgba(255, 215, 0, 0.6),
                    0 0 40px rgba(255, 215, 0, 0.4);
    }
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
        box-shadow: 0 0 5px rgba(185, 105, 212, 0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(185, 105, 212, 0.8),
                    0 0 30px rgba(122, 199, 189, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(-10px);
    }
    75% {
        transform: translateY(-15px) translateX(5px);
    }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
    margin: 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(185, 105, 212, 0.3);
}

.back-btn {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #b969d4, #7ac7bd);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.header h1 {
    color: #b969d4;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header p {
    color: #7a5d8f;
}

/* Filtros */
.filters {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    z-index: 10;
    position: relative;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #b969d4;
    color: #b969d4;
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #b969d4, #7ac7bd);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Grid de Produtos */
.produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

/* Card de Produto */
.produto-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(107, 77, 122, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.produto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(185, 105, 212, 0.4);
}

.produto-card.hidden {
    display: none;
}

.produto-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 1.5rem auto;
    display: block;
    border: 4px solid rgba(185, 105, 212, 0.3);
    box-shadow: 0 8px 24px rgba(185, 105, 212, 0.3);
    transition: transform 0.3s ease;
}

.produto-card:hover .produto-img {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(185, 105, 212, 0.5);
}

.produto-info {
    padding: 1.5rem;
}

.produto-categoria {
    display: inline-block;
    background: linear-gradient(135deg, #b969d4, #7ac7bd);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.produto-nome {
    color: #b969d4;
    font-size: 1.3rem;
    margin: 0.5rem 0;
    font-weight: 600;
}

.produto-descricao {
    color: #7a5d8f;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.produto-preco {
    color: #7ac7bd;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 1rem 0;
}

.produto-acoes {
    display: flex;
    gap: 0.5rem;
}

.btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1fa855;
    transform: scale(1.05);
}

.btn-detalhes {
    background: linear-gradient(135deg, #b969d4, #7ac7bd);
    color: white;
}

.btn-detalhes:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(185, 105, 212, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    max-width: 800px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #b969d4;
}

.close:hover {
    color: #7ac7bd;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.modal-titulo {
    color: #b969d4;
    font-size: 2rem;
    margin: 1rem 0;
}

.modal-categoria {
    display: inline-block;
    background: linear-gradient(135deg, #b969d4, #7ac7bd);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.modal-preco {
    color: #7ac7bd;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.modal-section {
    margin: 1.5rem 0;
}

.modal-section h3 {
    color: #b969d4;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.modal-section p,
.modal-section ul {
    color: #6b4d7a;
    line-height: 1.8;
}

.modal-section ul {
    list-style: none;
    padding-left: 0;
}

.modal-section li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.modal-section li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #7ac7bd;
    font-weight: bold;
}

.aviso {
    background: rgba(255, 200, 87, 0.2);
    border-left: 4px solid #ffc857;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
}

.aviso h3 {
    color: #ff9500;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.footer a {
    color: #7ac7bd;
    text-decoration: none;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .produtos {
        grid-template-columns: 1fr;
    }
    
    .back-btn {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}
