/* --- 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 DE PRODUTO --- */
.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;
    position: relative; 
}

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

/* --- ETIQUETA --- */
.badge {
    position: absolute;
    top: 10px;      
    right: 10px;    
    left: auto;     
    background: var(--marsala-dark); 
    color: white;
    padding: 4px 10px; 
    font-size: 0.65rem; 
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-transform: uppercase;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* --- AJUSTE DE FOTO NÍVEL GRIFE --- */
.img-container {
    width: 100%;
    aspect-ratio: 2 / 3; 
    overflow: hidden;
    position: relative;
    background-color: #f9f9f9; 
    border-bottom: 1px solid #eee;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center top; 
    transition: transform 0.5s, filter 0.3s;
}

/* --- INFO DO PRODUTO --- */
.info-produto {
    padding: 20px;
    text-align: center;       
    align-items: 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;
    width: 100%; 
}

.price-box {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.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 FOOTER --- */
.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; 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 --- */
.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 --- */
.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); } }

.modal-header {
    background: var(--marsala-dark); color: white; padding: 20px;
    display: flex; justify-content: center; align-items: center;
    position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.modal-header h2 {
    font-family: 'Playfair Display', serif; font-size: 1.4rem;
    margin: 0; color: white; display: flex; align-items: center; gap: 10px;
}

.btn-close {
    background: rgba(255,255,255,0.15); border: none; color: white;
    font-size: 1.5rem; cursor: pointer; width: 35px; height: 35px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; position: absolute; right: 15px; top: 50%;
    transform: translateY(-50%);
}
.btn-close:hover { background: rgba(255,255,255,0.3); }

#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);
}

.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); }

.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 MENU --- */
@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; }
}

/* --- SELETOR DE TAMANHOS --- */
.sizes-container {
    display: flex; gap: 8px; justify-content: center;
    margin: 10px 0 15px 0; flex-wrap: wrap;
}
.size-btn {
    border: 1px solid #ddd; background: transparent; color: #555;
    padding: 0; width: 35px; height: 35px; border-radius: 50%;
    cursor: pointer; font-size: 0.8rem; font-weight: 600;
    transition: all 0.2s ease; display: flex; align-items: center; justify-content: center;
}
.size-btn:hover { border-color: var(--marsala-dark); color: var(--marsala-dark); }
.size-btn.selected {
    background: var(--marsala-dark); color: white; border-color: var(--marsala-dark);
    transform: scale(1.1); box-shadow: 0 3px 8px rgba(125, 78, 87, 0.3);
}
.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff6b6b !important; color: #ff6b6b !important;
}
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* --- ESTILO DOS FILTROS UNIFICADO E CORRIGIDO --- */

/* 1. Ajuste do título para não brigar com o filtro */
#colecao {
    padding-top: 20px; /* Reduzi para aproximar */
    padding-bottom: 40px;
}
#colecao .section-title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    z-index: 850; /* Garante que o título fique ACIMA do fundo do filtro se tocar */
}

/* 2. Barra de Filtros (Definitiva) */
.sticky-filters {
    position: sticky;
    
    /* ONDE ELE TRAVA: Logo abaixo do header */
    top: 75px; 
    
    /* O ESCUDO: Altura suficiente para cobrir os itens rolando */
    padding-top: 40px; /* Reduzi um pouco para não ficar gigante */
    padding-bottom: 20px;
    
    /* A MÁGICA: Puxa para cima para aproximar do título quando parado */
    margin-top: -20px; /* Um valor mais suave que não sobrepõe */
    
    background: rgba(250, 250, 250, 0.98);
    z-index: 800;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* --- BOTÕES EXTRAS --- */
.load-more-container { text-align: center; margin: 40px 0; }
.btn-load-more {
    background: transparent; border: 2px solid var(--marsala-dark);
    color: var(--marsala-dark); padding: 12px 40px; border-radius: 30px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    transition: all 0.3s; font-size: 0.9rem; display: none;
}
.btn-load-more:hover {
    background: var(--marsala-dark); color: white;
    transform: translateY(-2px); box-shadow: 0 4px 10px rgba(125, 78, 87, 0.3);
}

.back-to-top {
    position: fixed; bottom: 90px; left: 20px; background: rgba(51, 51, 51, 0.7);
    color: white; width: 45px; height: 45px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 999;
    font-size: 1.2rem; border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--marsala-dark); transform: translateY(-3px); }
