@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #2c1a0e url('fig/Fundo.jpg') repeat center top;
    background-size: cover;
    background-attachment: fixed;
    color: #2b1810;
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(255, 252, 245, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Header Alinhado e Organizado */
header {
    background: linear-gradient(135deg, #1d0f08 0%, #3e2213 100%);
    color: #f3e5ab;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #8b4513;
    flex-wrap: wrap;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Logotipo em destaque circular com borda em degradê */
/* Logotipo Maior com Fundo Branco e Cantos Arredondados */
.logo-container {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: 2px solid #8b4513;
    flex-shrink: 0;
}

.brand img {
    height: 75px; /* Logotipo bem maior */
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

.brand-text h1 {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.brand-text p {
    font-size: 0.85rem;
    color: #d2b48c;
    margin-top: 2px;
}

/* Menu de Navegação Alinhado Verticalmente */
nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

nav a, .dropdown-btn {
    color: #f3e5ab;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
}

nav a:hover, .dropdown:hover .dropdown-btn, nav a.active {
    background: #8b4513;
    color: #ffffff;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2b1810;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.4);
    border-radius: 6px;
    z-index: 1000;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #f3e5ab;
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #8b4513;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Barra de Pesquisa */
.search-box {
    width: 100%;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.search-box input {
    width: 90%;
    max-width: 600px;
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #8b4513;
    border-radius: 25px;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    background: #fff;
}

/* Conteúdo Principal */
main {
    padding: 30px;
    min-height: 500px;
}

.section-title {
    font-size: 1.8rem;
    color: #3e2213;
    margin-bottom: 20px;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 8px;
}

.hero-fachada {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e0d5c1;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-card h4 {
    font-size: 0.95rem;
    color: #2b1810;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-social {
    padding: 10px 20px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp { background-color: #25D366; }
.btn-instagram { background-color: #E1306C; }
.btn-facebook { background-color: #1877F2; }

.lang-btn {
    background: #8b4513;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

footer {
    background: #1d0f08;
    color: #d2b48c;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
    border-top: 3px solid #8b4513;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    .brand {
        flex-direction: column;
    }
    nav ul {
        justify-content: center;
    }
    .dropdown-content {
        position: static;
        width: 100%;
    }
}
