/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fffdf9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cabeçalho */
header {
    background-color: #f2efe8;
    padding: 15px 20px;
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.logo {
    z-index: 2;
}

.logo img {
    max-width: 250px;
    height: 65px;
}

.menu {
    display: flex;
    gap: 75px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.menu a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #d6a66d;
}

.menu-toggle {
    margin-left: auto;
    padding-right: 30px;
    font-size: 28px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    display: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Correção para manter o hambúrguer preto no hover */
.menu-toggle:hover {
    color: black !important;
    opacity: 0.7;
}

/* Ícones do Header */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.search-container input[type="text"] {
    width: 0;
    opacity: 0;
    padding: 0;
    margin-right: 0;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.search-container.active input[type="text"] {
    width: 150px;
    opacity: 1;
    padding: 8px;
    margin-right: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-container button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
}

.search-container:focus-within {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-container input {
    border: none;
    outline: none;
    padding: 8px 10px;
    font-size: 14px;
    background: transparent;
    width: 180px;
}

.search-container input::placeholder {
    color: #999;
}

.search-container button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 4px;
    transition: color 0.3s ease;
}

.search-container button:hover {
    color: #d6a66d;
}

/* Esconder busca mobile por padrão */
.mobile-search {
    display: none;
}

/* Mostrar apenas busca desktop por padrão */
.desktop-search {
    display: flex;
}

.icon-button {
    position: relative;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-button:hover {
    background-color: rgba(214, 166, 109, 0.1);
    color: #d6a66d;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Hero com slide de frases */
.hero {
    background: #ddd6ce;
    padding: 10px 10px 10px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #704f37;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Formulário */
.form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: hsl(20, 27%, 51%);
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-container h2 {
    text-align: center;
    color: #000000;
    font-size: 26px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

button {
    background-color: #d6a66d;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #b98a54;
}

#mensagem {
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

#slide-image img {
    width: 100%;   
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    max-height: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#slide-image {
    width: 100%;
    overflow: hidden; /* Evita qualquer estouro */
}

/* Estilo do Rodapé */
footer, .footer {
    background-color: #d6a66d;
    color: white;
    padding: 20px 0;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

footer .social-media, .footer .social-media {
    margin-bottom: 10px;
}

footer a, .footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

footer a i, .footer a i {
    margin-right: 6px;
}

footer p, .footer p {
    margin: 0;
}

#adbar {
    position: relative;
    z-index: 1000;
}

.adbar {
    background-color: #000000;
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.form-title {
    text-align: left;
    margin-left: 0;
    padding-left: 10px;
    width: 100%;
}

/* Estilo do slide */
.slide-text {
    margin-top: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* Estilos para mensagem de "sem resultados" na busca */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
}

.no-results h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.no-results p {
    color: #666;
    margin-bottom: 15px;
}

.no-results button {
    background-color: #d6a66d;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.no-results button:hover {
    background-color: #b98a54;
}

/* Media Queries */
@media (max-width: 768px) {
    .menu {
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        background-color: #f2efe8;
        display: none;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 15;
        transform: none;
    }

    .menu.active {
        display: flex;
    }

    .menu a {
        font-size: 16px;
        padding: 10px;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    /* Mostrar busca mobile dentro do menu */
    .menu .mobile-search {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin-top: 10px;
    }

    .mobile-search input[type="text"] {
        width: 200px !important;
        opacity: 1 !important;
        padding: 8px !important;
        margin-right: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: white;
    }

    .mobile-search button {
        padding: 8px;
        font-size: 16px;
        color: #666;
    }

    /* Esconder busca desktop no mobile */
    .desktop-search {
        display: none;
    }

    .header-icons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    /* Mostrar o botão menu-toggle */
    .menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        background: none;
        border: none;
        color: black;
        cursor: pointer;
        z-index: 20;
        padding-right: 0;
        margin-left: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Manter preto no hover também no mobile */
    .menu-toggle:hover {
        color: black !important;
        opacity: 0.7;
    }

    /* Centralizar a logo */
    header {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 70px;
        padding: 10px 15px;
    }

    /* Ajustar a logo para centralizar */
    .logo {
        padding-left: 0;
        z-index: 10;
    }

    .logo img {
        max-width: 140px;
        height: auto;
    }

    /* Posicionar ícones do header */
    .header-icons {
        position: absolute;
        right: 15px;
        gap: 10px;
    }

    /* Esconder busca desktop completamente no mobile */
    .desktop-search {
        display: none !important;
    }

    /* Esconde o menu enquanto não ativado */
    .menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #f2efe8;
        display: none;
        flex-direction: column;
        gap: 20px;
        padding: 10px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 15;
        transform: none;
    }

    /* Ajustar os links do menu para ficar legível */
    .menu a {
        font-size: 16px;
        padding: 10px 20px;
        color: black;
        text-align: center;
    }

    /* Busca mobile dentro do menu no mobile */
    .menu .mobile-search {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin: 10px 0;
    }

    .mobile-search input[type="text"] {
        width: 180px !important;
        opacity: 1 !important;
        padding: 10px !important;
        margin-right: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background: white;
        font-size: 14px;
    }

    .mobile-search button {
        padding: 10px;
        font-size: 16px;
        color: #666;
        background: #d6a66d;
        border-radius: 6px;
        color: white;
    }

    .mobile-search button:hover {
        background: #b98a54;
    }

    /* Ajustes para a logo */
    .logo img {
        max-width: 140px;
        height: auto;
    }

    /* Ajustes para o adbar */
    .adbar {
        font-size: 13px;
        padding: 5px 0;
        height: auto;
    }

    /* Ajustes para o rodapé (footer) */
    .footer {
        padding: 10px 5px;
        font-size: 12px;
        text-align: center;
    }

    /* Ajuste do formulário */
    .form-container {
        padding: 30px 20px;
    }
}
/* ==========================================
   GAVETA DO CARRINHO E MODAL DE CHECKOUT
   ========================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; background: #f2efe8; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; }
.cart-header h2 { color: #704f37; font-size: 1.3rem; margin: 0; }
.close-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #333; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; gap: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; display: flex; flex-direction: column; justify-content: center;}
.cart-item-title { font-weight: 600; color: #333; margin-bottom: 5px; font-size: 0.95rem;}
.cart-item-price { color: #d6a66d; font-weight: bold; }
.cart-item-remove { color: #e74c3c; cursor: pointer; font-size: 0.8rem; border: none; background: none; margin-top: 5px; text-align: left; text-decoration: underline;}
.cart-footer { padding: 20px; border-top: 1px solid #ddd; background: #fff; }
.cart-total { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; display: flex; justify-content: space-between; color: #333;}
.btn-checkout { background: #25d366; color: white; width: 100%; padding: 15px; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-checkout:hover { background: #128c7e; }
.btn-checkout:disabled { background: #95a5a6; cursor: not-allowed; }
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1999; display: none; }
.cart-overlay.show { display: block; }

/* Modal Checkout */
.modal { display: none; position: fixed; z-index: 2001; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-content { background-color: #fff; padding: 30px; border-radius: 12px; width: 90%; max-width: 400px; text-align: center; position: relative;}
.modal-content h2 { color: #704f37; margin-bottom: 10px; font-size: 1.5rem; }
.modal-content p { color: #666; margin-bottom: 20px; font-size: 0.9rem; line-height: 1.4;}
.modal-content form { display: flex; flex-direction: column; gap: 15px; }
.modal-content input { padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; font-family: 'Montserrat', sans-serif;}
#close-modal { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; color: #aaa; cursor: pointer; }
#close-modal:hover { color: #333; }