/* =========================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ========================================= */
:root {
    --primary-color: #B39DDB;
    --primary-dark: #9575CD;
    --secondary-bg: #F3E5F5;
    --white: #FFFFFF;
    --gold: #D4AF37;
    --text-dark: #4A4A4A;
    --text-light: #777777;
    
    --font-title: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-detail: 'Great Vibes', cursive;
    
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #FAFAFA;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; transition: var(--transition); color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }

/* =========================================
   2. CABEÇALHO (HEADER)
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.logo span {
    color: var(--gold);
    font-family: var(--font-detail);
    font-weight: 400;
    font-size: 1.8rem;
    margin-left: 5px;
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; position: relative; color: var(--text-dark); }
.nav-links a:hover, .nav-links a.active { color: var(--primary-dark); }
.nav-links a.active::after {
    content: ''; width: 100%; height: 2px; background: var(--gold);
    position: absolute; bottom: -5px; left: 0;
}

.btn-nav {
    border: 2px solid var(--primary-color);
    padding: 8px 25px;
    border-radius: 50px;
    color: var(--primary-color) !important;
}
.btn-nav:hover { background: var(--primary-color); color: #fff !important; }
.nav-links a.btn-nav::after { display: none; } 

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-dark); }

/* =========================================
   3. HERO SECTION (CAPA)
   ========================================= */
.welcome-banner {
    margin-top: 70px;
    padding: 40px 0 20px;
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 100%);
    text-align: center;
}

.welcome-banner h1 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.welcome-banner p { 
    font-size: 1rem; color: var(--text-light); 
    max-width: 600px; margin: 0 auto; 
}
.arrow-down { margin-top: 15px; color: var(--gold); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* Adicionado para manter compatibilidade com o HTML anterior */
.hero-socials { display: flex; justify-content: center; gap: 20px; margin-top: 25px; margin-bottom: 10px; }
.social-big { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.1); text-decoration: none; }
.social-big:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.insta-bg { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.zap-bg { background: #25D366; }


/* =========================================
   4. LOJA E PRODUTOS
   ========================================= */
.store-section { padding-top: 20px; }

/* Filtros Fixos */
.filter-container { 
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; 
    position: sticky; top: 75px; z-index: 900; background: #fafafa; padding: 10px 0;
}

.filter-btn {
    padding: 6px 18px;
    border: 1px solid var(--primary-color);
    background: #fff;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-dark);
    transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover { background: var(--primary-color); color: #fff; }

/* Grid de Produtos */
.product-grid {
    display: grid;
    /* Padrão PC: Cards automáticos */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: var(--primary-color); }

/* --- CARROSSEL (FOTOS) --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel-img {
    position: absolute; /* Uma em cima da outra */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Começa invisível */
    transition: opacity 1s ease-in-out; /* Fade suave */
    z-index: 1;
}

.carousel-img.active {
    opacity: 1; /* Só a ativa aparece */
    z-index: 2;
}

/* Informações do Produto */
.product-info { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; align-items: center; }

.category-tag {
    display: inline-block; font-size: 0.7rem; background: var(--secondary-bg);
    color: var(--primary-dark); padding: 3px 10px; border-radius: 20px;
    margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}

.product-info h3 { 
    font-family: var(--font-title); margin-bottom: 5px; font-size: 1.1rem; color: var(--text-dark); line-height: 1.3;
}

.product-price {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 4px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin: 8px 0;
}
.original-price { text-decoration: line-through; color: #999; font-size: 0.8rem; margin-right: 5px; background: none; }
.promo-price { font-weight: bold; font-size: 1.1rem; }

.btn-sm { 
    color: var(--gold); font-weight: 700; font-size: 0.8rem; 
    border-bottom: 1px solid transparent; display: inline-block; margin-top: auto;
}

/* Badge Esgotado/Destaque */
.badge-bestseller {
    position: absolute; top: 10px; left: 10px;
    background: var(--gold); color: #fff;
    padding: 4px 10px; border-radius: 15px;
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; z-index: 10;
}
.badge-promo { position: absolute; top: 10px; left: 10px; background: #E91E63; color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* =========================================
   5. FOOTER & SOBRE
   ========================================= */
.about-text h2 { color: var(--primary-dark); margin-bottom: 15px; font-family: var(--font-title); }
.about-text p { margin-bottom: 10px; font-size: 0.95rem; }

footer { background: #2c2c2c; color: #fff; padding: 40px 0 20px; text-align: center; }
.footer-brand h3 { font-family: var(--font-title); font-size: 1.5rem; color: var(--primary-color); }
.socials a { color: #fff; font-size: 1.5rem; margin: 0 10px; }
.footer-support { margin: 20px 0; font-size: 0.9rem; color: #ccc; }
.footer-support a { color: var(--gold); }
.copyright { border-top: 1px solid #444; padding-top: 20px; font-size: 0.8rem; opacity: 0.6; }

/* =========================================
   6. RESPONSIVO (CORREÇÃO MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    /* 2 COLUNAS NO CELULAR */
    .product-grid {
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
    }

    .product-card { border-radius: 8px; }
    .carousel-container { height: 160px; } /* Imagem mais baixa */
    
    .product-info { padding: 10px; }
    .product-info h3 { font-size: 0.95rem; height: 40px; overflow: hidden; }
    .category-tag { font-size: 0.6rem; padding: 2px 8px; }
    .product-price { font-size: 0.9rem; padding: 3px 12px; }
    .btn-sm { font-size: 0.75rem; }
    
    /* Filtros compactos */
    .filter-container { top: 60px; padding: 5px 0; overflow-x: auto; justify-content: flex-start; padding-left: 10px; }
    .filter-btn { white-space: nowrap; font-size: 0.8rem; padding: 5px 12px; }
    
    .hero h1 { font-size: 1.8rem; }
}

/* =========================================
   7. EXTRAS (NOVAS FUNCIONALIDADES)
   ========================================= */

/* Barra de Pesquisa */
.search-container {
    max-width: 600px;
    margin: 0 auto 20px auto;
    position: relative;
    padding: 0 5px;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: var(--font-body);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    outline: none;
    color: var(--text-dark);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(179, 157, 219, 0.3);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Botão Flutuante WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.floating-whatsapp:hover {
    background-color: #1DA851;
    transform: scale(1.1);
}

.floating-whatsapp i { margin-top: 2px; }

/* Skeleton Loading (Carregamento Bonito) */
.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%; 
    animation: shimmer 1.5s infinite linear; 
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.skeleton-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: var(--shadow);
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #f0f0f0;
}

.skeleton-img { width: 100%; height: 160px; border-radius: 10px; }
.skeleton-title { width: 80%; height: 20px; margin: 10px auto 0; }
.skeleton-price { width: 40%; height: 25px; margin: 10px auto; border-radius: 20px; }