/* Estilos Gerais */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding-top: 80px; /* Espaço para a navbar fixa */
}

/* Barra Superior */
.top-bar {
    background-color: #28a745;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    border: none;
    
}

.top-bar a {
    color: #FFFFFF;
    text-decoration: none;
     
}

.top-bar a:hover {
    text-decoration: underline;
}

body.home-page .top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

/* Navbar Principal */
.navbar {
    background-color: #fff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1020;
    top: 0;
    font-weight: 600;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.6); /* Fundo translúcido */
    backdrop-filter: blur(15px); /* Desfoque */
    -webkit-backdrop-filter: blur(10px); /* Suporte para navegadores WebKit */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Sombra para destacar */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Borda sutil */
}



.navbar-brand {
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}

.navbar-brand img {
    max-height: 50px;
    margin-right: 10px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 30 30" \
        xmlns="http://www.w3.org/2000/svg"%3E%3Cpath stroke="rgba%2852, 58, 64, 1%29" stroke-width="2" \
        d="M4 7h22M4 15h22M4 23h22"%3E%3C/path%3E%3C/svg%3E');
}

/* Estilos para Navbar Desktop */
.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    color: #535354 !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease-in-out;
    position: relative;
}


.navbar-nav .nav-link::after {
    content: '';
    width: 0%;
    height: 2px;
    background-color: #28a745;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-in-out;
    opacity: 0;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-item.active .nav-link::after {
    width: 100%;
    opacity: 1;
}

.navbar-nav .nav-link:hover {
    color: #28a745 !important;
}

.navbar-nav .nav-item.active .nav-link {
    color: #28a745 !important;
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
}

.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #28a745;
}

.dropdown-item {
    color: #333;
    transition: background-color 0.2s ease-in-out;
    padding: 0.75rem 1.5rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

/* Formulário de Pesquisa Desktop */
.search-button {
    background-color: transparent;
    border: none;
    color: #28a745;
    font-size: 1.5rem;
    cursor: pointer;
    outline: none;
}

.search-button:hover {
    color: #28a745;
}

.search-form {
    position: relative;
    display: none; /* Oculto inicialmente */
    animation: fadeIn 0.3s forwards;
}

.search-form.active {
    display: flex; /* Altera para flex para alinhar os itens */
    align-items: center;
}

.search-input {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 0; /* Largura inicial zero */
    opacity: 0; /* Invisível inicialmente */
    transition: width 0.3s ease, opacity 0.3s ease;
    font-size: 1rem;
    box-sizing: border-box;
    height: 38px;
    margin: 0;
    vertical-align: middle;
}

.search-input.active {
    width: 500px; /* Largura final */
    opacity: 1;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1010;
    display: none;
    padding: 10px;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-results li:last-child {
    border-bottom: none;
}

.search-results li a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
}

.search-results img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

/* Estilos do Conteúdo */
.content {
    margin-top: 80px;
}

.container.content {
    margin-top: 80px;
    max-width: 1300px !important; /* Aumentado de 1200px para 1300px */
}

/* Ajuste da Largura da Navbar */
.navbar .container {
    max-width: 1300px !important; /* Aumentado para igualar o conteúdo */
}

.product-title {
    font-size: 2.5rem;
    color: #009039;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-top: -10px;
}

.btn-group-horizontal {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.btn-buy {
    background-color: #28a745;
    border-color: #28a745;
    width: 200px;
    padding: 15px 0;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    border-radius: 5px;
    text-align: center;
    margin-right: 10px;
}

.btn-cta {
    background-color: #28a745;
    border-color: white;
    color: white;
}

.btn-cta:hover {
    background-color: #1e7e34;
    border-color: white;
    color: white;
}

.btn-buy:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Outros estilos existentes */
.footer {
    background-color: #404041;
    padding: 3rem 1rem;
    color: #fff;
}

.footer-logo img {
    display: block;
    max-height: 80px;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

/* Ícone Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
}

.whatsapp-float i {
    margin-top: 16px;
}

/* Estilos específicos para mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }

    .search-button {
        display: none !important;
    }

    .search-form {
        display: none !important;
    }
}

/* Estilos para o menu lateral */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* Oculto por padrão */
    width: 100%; /* Ocupa toda a largura da tela no mobile */
    height: 100%;
    background-color: #fff;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0; /* Mostra a sidebar */
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.search-form-sidebar {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza o conteúdo */
    width: 100%;
}

.search-form-sidebar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem 0 0 0.25rem;
}

.search-form-sidebar button {
    padding: 0.75rem;
    border: 1px solid #ddd;
    background-color: #28a745;
    color: #fff;
    border-radius: 0 0.25rem 0.25rem 0;
}

/* Redes Sociais */
.sidebar-social {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.sidebar-social a {
    color: #333;
    margin: 0 0.5rem;
    font-size: 1.5rem;
}

.sidebar-social a:hover {
    color: #28a745;
}

.submenu {
    list-style: none;
    padding-left: 1.5rem;
    display: none;
    flex-direction: column;
}

.submenu li {
    padding: 0.5rem 0;
}

.submenu li a {
    color: #333;
    text-decoration: none;
}

.submenu li a:hover {
    color: #28a745;
}

.search-form-sidebar {
    display: flex;
    padding: 1rem;
}

.search-form-sidebar input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem 0 0 0.25rem;
}

.search-form-sidebar button {
    padding: 0.5rem;
    border: 1px solid #ddd;
    background-color: #28a745;
    color: #fff;
    border-radius: 0 0.25rem 0.25rem 0;
}


.sidebar-social {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.sidebar-social a {
    color: #333;
    margin: 0 0.5rem;
    font-size: 1.5rem;
}

.sidebar-social a:hover {
    color: #28a745;
}

/* Overlay Styles */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

#overlay.active {
    display: block;
}