/* --- RESET E GERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    /* PALETA DE CORES (Marsala Original) */
    --marsala-dark: #7d4e57;    
    --marsala-medium: #a87b85;  
    --marsala-bg: #cfb0b7;      
    --rosa-claro: #fff0f5;      
    --text: #333;
    --white: #ffffff;
}

body {
    background-color: #fafafa;
    color: var(--text);
    padding-top: 100px;
}

html {
    scroll-behavior: smooth;
}

/* UTILITÁRIO DE TEXTO CENTRALIZADO */
.text-center { text-align: center; }

/* --- TOPO E HEADER --- */
.top-bar {
    background: var(--marsala-dark);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    position: fixed;
    top: 36px;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

.logo-link { text-decoration: none; color: inherit; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 50px; }

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--marsala-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu { display: flex; gap: 25px; }

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--marsala-dark); }

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

/* --- HERO SECTION (BANNER) --- */
.hero {
    height: 75vh;
    background: linear-gradient(rgba(125, 78, 87, 0.3), rgba(125, 78, 87, 0.3)), url('../img/hero-bg.jpg') center/cover no-repeat;
    background-color: var(--marsala-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(125, 78, 87, 0.6);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 0 20px;
    backdrop-filter: blur(3px);
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    color: #f0f0f0;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.btn-hero {
    background: rgba(255,255,255,0.25);
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid white;
    transition: all 0.3s;
    display: inline-block;
}

.btn-hero:hover {
    background: white;
    color: var(--marsala-dark);
}

.slogan-banner {
    background: var(--rosa-claro);
    text-align: center;
    padding: 40px 20px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--marsala-dark);
    font-size: 1.3rem;
}

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

.section { padding: 60px 0; }

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--marsala-dark);
    margin-bottom: 40px;
}

.section-title-left {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--marsala-dark);
    margin-bottom: 40px;
}

/* --- FILTROS E BUSCA --- */
.filtros-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-filtro {
    padding: 8px 18px;
    border: 1px solid var(--marsala-dark);
    background: transparent;
    color: var(--marsala-dark);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-filtro.ativo, .btn-filtro:hover {
    background: var(--marsala-dark);
    color: white;
}

.search-container { text-align: center; margin-bottom: 40px; }

#campo-busca {
    padding: 12px 25px;
    width: 100%;
    max-width: 450px;
    border: 1px solid #ccc;
    border-radius: 30px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s;
}

#campo-busca:focus {
    border-color: var(--marsala-dark);
    box-shadow: 0 0 10px rgba(125, 78, 87, 0.2);
}

/* --- GRID DE PRODUTOS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.card-produto {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card-produto:hover { transform: translateY(-5px); }

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--marsala-dark);
    color: white;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 10;
}

.img-container { height: 380px; overflow: hidden; position: relative; }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-produto:hover .img-container img { transform: scale(1.05); }

.info-produto {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-produto h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.price-new {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--marsala-dark);
}

.installments {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

.btn-buy {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background 0.3s;
}
.btn-buy:hover { background: #1ebc57; }
.btn-buy:disabled { background: #ddd; color: #999; cursor: not-allowed; }

/* --- AVALIAÇÕES --- */
.reviews-section { background: white; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card {
    background: #fffafa; padding: 30px; border-radius: 8px; text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee;
}
.client-photo {
    width: 80px; height: 80px; border-radius: 50%; margin-bottom: 15px; object-fit: cover;
    border: 3px solid var(--marsala-dark);
}
.stars { color: #f1c40f; margin-bottom: 15px; }
.review-text { font-style: italic; color: #555; margin-bottom: 20px; line-height: 1.5; }
.client-name { font-weight: 700; color: var(--marsala-dark); }
.client-location { font-size: 0.8rem; color: #999; }

.btn-social-proof {
    display: block; width: fit-content; margin: 40px auto 0;
    color: var(--marsala-dark); text-decoration: none; font-weight: 600;
    border: 2px solid var(--marsala-dark); padding: 10px 25px; border-radius: 30px;
    transition: all 0.3s;
}
.btn-social-proof:hover { background: var(--marsala-dark); color: white; }

/* --- TEXTOS E VIP --- */
.bg-suave { background-color: var(--rosa-claro); }

.text-box {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
}
.text-box p { margin-bottom: 20px; }

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-top: 30px;
    color: var(--marsala-dark);
}

.compact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-row {
    display: flex;
    gap: 15px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s;
}
.form-input:focus {
    border-color: var(--marsala-dark);
    box-shadow: 0 0 5px rgba(125, 78, 87, 0.2);
}

.btn-full {
    width: 100%;
    padding: 15px;
    background: var(--marsala-dark);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background 0.3s;
}
.btn-full:hover { background: var(--marsala-medium); }
.btn-full:disabled { background: #ccc; }

/* --- FOOTER --- */
.footer {
    background: var(--marsala-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.footer-info p { color: #ffdee6; font-style: italic; }

.address-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.icon-map { font-size: 2rem; color: white; }

.footer-map {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    margin-top: 20px;
}

/* --- ÍCONES SOCIAIS CORRIGIDOS --- */
.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.social-links-footer a {
    text-decoration: none !important;
    border: none !important;
    font-size: 2rem; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: white; /* Bolinha Branca */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.social-links-footer a:hover { transform: scale(1.1); }
.social-links-footer .fa-instagram { color: #E1306C; }
.social-links-footer .fa-whatsapp { color: #25D366; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px; text-align: center; font-size: 0.8rem; color: #ffdee6;
}

/* --- FLUTUANTES CORRIGIDOS --- */
.float-zap {
    position: fixed; bottom: 100px; right: 20px;
    background: #25d366; 
    color: white !important; 
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000; transition: transform 0.3s;
}
.float-zap i { font-size: 2.2rem; color: white; margin: 0; }
.float-zap:hover { transform: scale(1.1); }

.cart-float {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--marsala-dark);
    color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer; z-index: 1000; transition: transform 0.2s;
}

.cart-count {
    position: absolute; top: -5px; right: -5px;
    background: red; color: white; font-size: 0.75rem;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; border: 2px solid white;
}

/* --- MODAL CARRINHO (REMODELADO) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 2000;
    display: none; justify-content: flex-end; 
    backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }

.modal-content {
    background: white; 
    width: 100%; 
    max-width: 450px; 
    height: 100%;
    padding: 0; 
    display: flex; flex-direction: column;
    animation: slideIn 0.3s ease-out;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* Cabeçalho do Carrinho */
.modal-header {
    background: var(--marsala-dark); 
    color: white;
    padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 0; color: white; }

/* Botão X de Fechar */
.btn-close {
    background: rgba(255,255,255,0.2); border: none; color: white;
    font-size: 1.5rem; cursor: pointer; width: 40px; height: 40px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.btn-close:hover { background: rgba(255,255,255,0.4); }

/* Lista de Itens */
#itens-carrinho {
    list-style: none; flex-grow: 1; overflow-y: auto; padding: 20px;
}
.item-carrinho {
    background: #fffafa; border: 1px solid #eee; border-radius: 8px;
    padding: 15px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* Rodapé do Carrinho */
.cart-footer {
    padding: 25px; background: white; border-top: 1px solid #eee;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}
.cart-total {
    font-size: 1.4rem; font-weight: 700; text-align: right;
    margin-bottom: 20px; color: var(--marsala-dark);
    display: flex; justify-content: space-between;
}
.btn-finalizar {
    width: 100%; padding: 18px; background: #25d366; color: white;
    border: none; font-size: 1.1rem; font-weight: 700; border-radius: 50px;
    cursor: pointer; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.btn-finalizar:hover { background: #1ebc57; transform: translateY(-2px); }

/* Controles de Quantidade */
.qty-controls {
    display: flex; align-items: center; gap: 8px;
    background: #f0f0f0; padding: 5px; border-radius: 20px;
}
.btn-qty {
    width: 30px; height: 30px; background: white; border: none; border-radius: 50%;
    font-weight: bold; color: var(--marsala-dark); cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 10px; }
    .nav-menu { display: none; flex-direction: column; width: 100%; text-align: center; padding-top: 15px; border-top: 1px solid #eee; }
    .nav-menu.active { display: flex; }
    .mobile-menu-icon { display: block; position: absolute; right: 20px; top: 20px; }
    .hero { height: 60vh; }
    .hero-content h2 { font-size: 2.2rem; }
    .input-row { flex-direction: column; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
}
