/* --- RESET GERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fbf9f6;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- TOP BAR --- */
.top-bar {
    background-color: #000; color: #fff; font-size: 0.65rem;
    display: flex; justify-content: space-between; padding: 10px 5%;
    text-transform: uppercase; letter-spacing: 1px; font-weight: 500;
}
.top-bar div { display: flex; align-items: center; gap: 8px; }
.top-bar i { color: #d4af37; font-size: 0.8rem; }

/* --- NAVBAR E PESQUISA PROFISSIONAL --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background-color: #fff; border-bottom: 1px solid #f0f0f0;
    position: sticky; top: 0; z-index: 1000;
}
.logo img { height: 90px; object-fit: contain; transition: 0.3s; } 

.nav-links {
    display: flex; gap: 30px; position: relative; align-items: center; 
}

/* ==========================================
   DROPDOWN NO HEADER (MODALZINHO) E TRAÇO
   ========================================== */
.nav-links li[data-cat] {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.nav-item { 
    position: relative; 
    transition: color 0.3s ease; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    cursor: pointer;
}
.nav-item:hover { color: #b78a6c; }
.nav-item.active { color: #b78a6c; }

.nav-main { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-sub { font-size: 0.65rem; font-weight: 500; text-transform: uppercase; color: #888; letter-spacing: 1px; margin-top: 1px; transition: color 0.3s ease; }
.nav-item:hover .nav-sub, .nav-item.active .nav-sub { color: #b78a6c; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 160px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.nav-links li[data-cat]:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}
.dropdown-item:hover {
    background-color: #faf9f7;
    color: #b78a6c;
}

.nav-indicator {
    position: absolute; bottom: -5px; left: 0; height: 2px;
    background-color: #b78a6c; transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px; pointer-events: none; z-index: 10;
}

/* ESTRUTURA DIREITA (COLUNA) */
.nav-actions-right { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.nav-icons { display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; color: #333; margin-right: 5px; padding: 0 10px; }
.search-bar-pro { position: relative; display: flex; align-items: center; width: 260px; background-color: #faf9f7; border: 1px solid #e2deda; border-radius: 30px; padding: 6px 15px; transition: all 0.4s; }
.search-bar-pro:focus-within { background-color: #fff; border-color: #b78a6c; box-shadow: 0 4px 15px rgba(183, 138, 108, 0.1); width: 300px; }
.search-bar-pro input { flex: 1; border: none; background: transparent; outline: none; font-family: 'Montserrat', sans-serif; font-size: 0.75rem; color: #222; }
.search-bar-pro input::placeholder { color: #aaa; }
.search-icon-pro { color: #b78a6c; font-size: 0.95rem; margin-left: 10px; cursor: pointer; }
.cart-icon-wrapper { position: relative; cursor: pointer; }
.cart-badge { position: absolute; top: -6px; right: -10px; background-color: #d4af37; color: #fff; font-size: 0.6rem; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

.menu-mobile-header { display: none; }
.btn-menu-mobile { display: none; }

/* ==========================================
   HERO SECTION (MAIOR E COM WHATSAPP)
   ========================================== */
.hero {
    display: flex; align-items: center; background: url('../img/fundo.png') center center/cover no-repeat;
    padding: 80px 5%;
    min-height: 550px;
    position: relative; overflow: hidden;
    transition: background-image 0.5s ease;
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%); z-index: 1; }
.hero-content { max-width: 580px; position: relative; z-index: 3; }
.hero-subtitle { font-size: 0.75rem; color: #b78a6c; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; font-weight: 600; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 15px; color: #111; }
.hero-title span { font-family: 'Great Vibes', cursive; color: #cda88a; font-size: 5rem; display: block; font-weight: normal; text-transform: none; margin-top: 0px; padding-left: 4px; }

/* Links de Whatsapp e Cadastro no Hero */
.hero-actions-extra { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 600; }
.hero-wa-link { color: #111; display: flex; align-items: center; gap: 8px; transition: color 0.3s; }
.hero-wa-link i { font-size: 1.2rem; }
.hero-wa-link:hover { color: #b78a6c; }
.hero-divider { color: #ccc; font-weight: 300; }
.hero-cad-link { color: #b78a6c; text-decoration: underline; transition: color 0.3s; }
.hero-cad-link:hover { color: #111; }

.hero-desc { font-size: 0.9rem; color: #444; margin-bottom: 35px; max-width: 450px; line-height: 1.5; font-weight: 500; }
.btn-primary { display: inline-block; background-color: #000; color: #fff; padding: 14px 35px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; transition: 0.3s; font-weight: 500; }
.btn-primary:hover { background-color: #333; }

.hero-rings-wrapper { position: absolute; right: 15%; top: 50%; transform: translateY(-50%); width: 450px; height: 450px; z-index: 2; pointer-events: none; }
.ring-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); mix-blend-mode: screen; }
.ring-slide.slide-menor { padding: 0 !important; }
.ring-slide.active { transform: translateX(0); }
.ring-slide.hidden-left { transform: translateX(-150vw); }
.ring-slide.hidden-right { transform: translateX(150vw); }

.hero-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; color: #d4af37; border: none; cursor: pointer; z-index: 10; font-size: 2.5rem; display: flex; justify-content: center; align-items: center; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); pointer-events: auto; text-shadow: 2px 2px 10px rgba(0,0,0,0.1); }
.hero-nav-btn:hover { color: #b78a6c; transform: translateY(-50%) scale(1.2); }
.hero-prev { left: 3%; }
.hero-next { right: 3%; }

/* ==========================================
   SECÇÃO DE PRODUTOS E FILTROS DINÂMICOS
   ========================================== */
.products-section { padding: 20px 5% 60px 5%; text-align: center; background-color: #faf9f7; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 2px; color: #222; }
.filters { display: flex; justify-content: center; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.filter-btn { background-color: #fff; border: 1px solid #e0e0e0; padding: 10px 25px; border-radius: 30px; font-family: 'Montserrat', sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; color: #555; transition: all 0.3s ease; font-weight: 500; }
.filter-btn.active, .filter-btn:hover { background-color: #000; color: #fff; border-color: #000; }

.product-carousel-wrapper { position: relative; display: flex; align-items: center; margin-bottom: 50px; max-width: 1600px; margin-left: auto; margin-right: auto; padding: 0 40px; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; cursor: pointer; z-index: 10; font-size: 2.2rem; color: #333; transition: all 0.4s; }
.carousel-arrow:hover { color: #b78a6c; transform: translateY(-50%) scale(1.15); }
.carousel-arrow.left { left: 0px; } .carousel-arrow.right { right: 0px; }

/* ==========================================
   ESTILOS DO CARD DE PRODUTO ATUALIZADOS
   ========================================== */
.product-card { background-color: #fff; padding: 15px 15px 18px; border-radius: 8px; border: 1px solid #eaeaea; display: flex; flex-direction: column; text-align: left; cursor: pointer; scroll-snap-align: start; position: relative; transition: transform 0.4s ease, box-shadow 0.3s; }
.product-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.06); transform: translateY(-3px); }
.product-image { width: 100%; height: auto; aspect-ratio: 1 / 1; max-height: 220px; object-fit: contain; margin-bottom: 25px; mix-blend-mode: darken; transition: 0.4s ease; align-self: center; }
.product-card:hover .product-image { transform: scale(1.03); }
.product-title { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 600; text-transform: uppercase; color: #111; line-height: 1.2; margin-bottom: 2px; letter-spacing: 0.5px; }
.product-subtitle { font-family: 'Montserrat', sans-serif; font-size: 0.7rem; font-weight: 500; color: #888; text-transform: lowercase; margin-bottom: 6px; display: block; }
.product-subtitle::first-letter { text-transform: uppercase; }
.product-stats { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; margin-top: auto; }

.product-weight { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.65rem; 
    font-weight: 500; 
    color: #888; 
}

.product-price > span { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #222; 
    display: block; 
}

.installment-prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 2px;
}

.installment-prices small {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #888;
}

.btn-buy { width: 100%; background-color: #000; color: #fff; padding: 10px; border: none; border-radius: 4px; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px; font-weight: 600; cursor: pointer; transition: 0.3s; text-align: center; }
.btn-buy:hover { background-color: #333; }

/* ==========================================
   FOOTER ATUALIZADO (3 Colunas e Mais Espaçoso)
   ========================================== */
.footer-middle {
    background-color: #f7f7f7;
    color: #333;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 40px;
    padding: 70px 5%;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid #eaeaea;
}

.footer-col h4 { 
    font-size: 1.05rem;
    font-weight: 700; 
    margin-bottom: 25px; 
    color: #222; 
    letter-spacing: 0.5px; 
}

.brand-col .footer-logo { 
    max-width: 190px;
    margin-bottom: 20px; 
}
.brand-col p { 
    font-size: 0.95rem;
    color: #555; 
    line-height: 1.6; 
    margin-bottom: 25px; 
    max-width: 90%; 
}
.social-icons { display: flex; gap: 15px; }
.social-icons a { 
    display: flex; justify-content: center; align-items: center; 
    width: 42px; height: 42px;
    border-radius: 50%; border: 1px solid #ccc; 
    color: #333; font-size: 1.2rem;
    transition: 0.3s; 
}
.social-icons a:hover { background-color: #b78a6c; color: #fff; border-color: #b78a6c; }

.links-col ul li { margin-bottom: 15px; }
.links-col ul li a { 
    font-size: 0.95rem;
    color: #555; transition: color 0.3s; 
}
.links-col ul li a:hover { color: #b78a6c; }

.contact-item { 
    display: flex; align-items: flex-start; gap: 15px; 
    margin-bottom: 20px; font-size: 0.95rem;
    color: #555; line-height: 1.4; 
}
.contact-item i { font-size: 1.3rem; color: #444; margin-top: 2px; }

/* ==========================================
   MODAIS DE LOGIN E PERFIL (IFRAME)
   ========================================== */
.modal-iframe-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.90); backdrop-filter: blur(8px); z-index: 99999 !important; display: none; justify-content: center; align-items: center; }
.modal-iframe-overlay iframe { width: 100%; height: 100%; border: none; background: transparent; }
.btn-fechar-iframe { position: absolute; top: 20px; right: 40px; font-size: 50px; color: white; cursor: pointer; z-index: 100000; transition: 0.3s; }
.btn-fechar-iframe:hover { color: #b78a6c; transform: scale(1.1); }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 99999 !important; display: none; justify-content: center; align-items: center; }
.logout-box { background: #fff; padding: 35px 30px; border-radius: 15px; border: 1px solid #e2deda; text-align: center; max-width: 400px; width: 90%; color: #333; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); animation: popupLogout 0.4s forwards; }
@keyframes popupLogout { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.logo-pequena { height: 50px; width: auto; margin-bottom: 15px; }
.logout-box h3 { font-family: 'Playfair Display', serif; color: #b78a6c; margin-bottom: 8px; font-size: 1.6rem; }
.logout-box p { font-size: 0.95rem; color: #666; margin-bottom: 25px; }
.opcoes-perfil { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.btn-perfil-item { width: 100%; padding: 14px 20px; border: 1px solid #e2deda; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; text-transform: uppercase; background-color: #faf9f7; color: #333; }
.btn-perfil-item:hover { background-color: #fff; border-color: #b78a6c; color: #b78a6c; transform: translateY(-2px); }
.btn-perfil-item.sair { background-color: #000; color: #fff; border: none; }
.btn-perfil-item.sair:hover { background-color: #e53e3e; color: #fff; }
.btn-fechar-perfil { background: transparent; border: none; color: #888; font-size: 0.85rem; cursor: pointer; font-weight: 500; transition: 0.3s; }
.btn-fechar-perfil:hover { color: #000; text-decoration: underline; }

.user-auth-btn { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 20px; transition: 0.3s; }
.user-auth-btn:hover { background: #faf9f7; }
.user-auth-btn.logado { color: #b78a6c; font-weight: 600; }
.user-auth-btn.logado i { color: #b78a6c; }

/* ==========================================
   RESPONSIVIDADE 
   ========================================== */
@media (max-width: 1400px) { .product-grid { grid-auto-columns: calc((100% - 60px) / 4); } } 
@media (max-width: 992px) { 
    .product-grid { grid-auto-columns: calc((100% - 40px) / 3); } 
    .footer-middle { grid-template-columns: 1fr 1fr; } 
    .brand-col { grid-column: 1 / -1; text-align: center; }
    .brand-col p { margin: 0 auto 20px; }
    .social-icons { justify-content: center; }
} 

@media (max-width: 768px) { 
    .navbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 15px 5%; }
    .btn-menu-mobile { display: block; order: 1; background: transparent; border: none; font-size: 1.6rem; cursor: pointer; color: #111; }
    .logo { order: 2; margin-right: auto; margin-left: 15px; }
    .logo img { height: 50px; } 
    .nav-actions-right { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; order: 4; margin-top: 15px; }
    .nav-icons { order: 1; display: flex; align-items: center; gap: 12px; }
    .search-bar-pro { order: 2; width: 60%; margin-top: 0; }
    
    .nav-links { display: flex; flex-direction: column; position: fixed; top: 0; left: -300px; width: 280px; height: 100vh; background-color: #fff; box-shadow: 5px 0 25px rgba(0,0,0,0.15); padding: 0; gap: 20px; z-index: 10000; transition: left 0.4s; align-items: flex-start; overflow-y: auto; }
    .nav-links.menu-aberto { left: 0; }
    
    .menu-mobile-header { display: flex !important; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #f0f0f0; background-color: #faf9f7; width: 100%; }
    .btn-fechar-menu-mobile { background: transparent; border: none; font-size: 1.4rem; cursor: pointer; color: #333; }
    
    .nav-links li[data-cat] { width: 100%; padding: 0 20px; }
    .nav-item { align-items: flex-start !important; border-bottom: 1px solid #f5f5f5; padding-bottom: 12px; width: 100%; }
    .nav-indicator { display: none !important; }

    .dropdown-menu { position: relative; top: 0; left: 0; transform: none; box-shadow: none; border: none; padding-left: 20px; background: #faf9f7; width: 100%; display: none; opacity: 1; visibility: visible;}
    .nav-links li[data-cat]:hover .dropdown-menu { display: flex; transform: none;} 
    .dropdown-item { text-align: left; }

    .product-grid { grid-auto-columns: calc((100% - 20px) / 2); } 
    .product-carousel-wrapper { padding: 0; } 
    .carousel-arrow { display: none !important; } 

    .hero { padding: 40px 5%; justify-content: center; text-align: center; min-height: auto; flex-direction: column; background-image: url('../img/fundo2.png'); background-size: cover; background-position: center 20px; }
    .hero-title { font-size: 2.5rem; }
    .hero-title span { font-size: 3.5rem; }
    
    .hero-actions-extra { justify-content: center; flex-wrap: wrap; }
    
    .hero-rings-wrapper { position: relative; right: auto; width: 100%; height: 300px; margin-top: -30px; transform: none; display: flex; justify-content: center; align-items: center; }
    .hero-nav-btn { top: auto; bottom: 0px; transform: none; }
    .hero-prev { left: 20%; }
    .hero-next { right: 20%; }

    .footer-middle { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .contact-item { justify-content: center; }
    .modal-iframe-overlay iframe { width: 100vw; height: 100vh; border-radius: 0; }
    .btn-fechar-iframe { top: 15px; right: 20px; font-size: 45px; }
}

@media (max-width: 500px) {
    .nav-actions-right { flex-direction: column; align-items: center; gap: 10px; }
    .nav-icons { width: 100%; justify-content: center; }
    .search-bar-pro { width: 100%; }
    
    .product-grid { display: grid; grid-auto-flow: row !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px; padding: 10px 5%; width: 100%; overflow-x: hidden; }
    .product-card { padding: 10px 10px; }
    .product-image { max-height: 140px; margin-bottom: 15px; }
    .product-title { font-size: 0.85rem; height: auto; }
}