/* Estilização adicional para o menu */
.navbar {
    background-color: rgba(29, 53, 87, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

/* Configuração para os logos */
.navbar-brand {
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo-img {
    transition: all 0.4s ease;
}

.logo-default {
    display: block;
    opacity: 1;
}

.logo-scrolled {
    display: none;
    opacity: 0;
}

/* Logo quando o menu está rolado */
.navbar.scrolled .logo-default {
    display: none;
    opacity: 0;
}

.navbar.scrolled .logo-scrolled {
    display: block;
    opacity: 1;
}

.navbar-toggler {
    border: none;
    outline: none;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler i {
    color: #ffffff;
    font-size: 24px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    padding: 10px 15px !important;
    position: relative;
}

.nav-link:hover, 
.nav-link.active {
    color: #ffffff !important;
}

.nav-link::before {
    background-color: #ffffff !important;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 8px 20px;
    color: #333;
    font-weight: 500;
}

.dropdown-item:hover, 
.dropdown-item.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

/* Menu quando rolado */
.navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    padding-bottom: 10px;
}

.navbar.scrolled .nav-link {
    color: #333 !important;
    text-shadow: none;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar.scrolled .nav-link::before {
    background-color: var(--primary-color) !important;
}

.navbar.scrolled .navbar-toggler {
    background-color: rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Botões do header */
.header-buttons .btn-outline-primary {
    color: #fff;
    border-color: #fff;
}

.header-buttons .btn-outline-primary:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.navbar.scrolled .header-buttons .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.navbar.scrolled .header-buttons .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.header-action-link {
    color: var(--light-color);
    font-size: 18px;
    margin-left: 15px;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .header-action-link {
    color: var(--dark-color);
}

.header-action-link:hover {
    color: var(--secondary-color);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

/* Modal de pesquisa personalizado */
#searchModal .modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

#searchModal .modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

#searchModal .modal-title {
    font-weight: 600;
}

#searchModal .form-control {
    height: 50px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 1px solid #e9ecef;
}

/* Ajustes responsivos */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(29, 53, 87, 0.98);
        padding: 20px;
        border-radius: 8px;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar.scrolled .navbar-collapse {
        background-color: #fff;
    }
    
    .header-buttons {
        margin-top: 15px;
        display: flex;
        justify-content: center;
    }
}

.footer-bottom-links {
        display: flex;
        gap: 15px;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .footer-bottom-links a {
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        transition: var(--transition);
        text-decoration: none;
    }

    .footer-bottom-links a:hover {
        color: #fff;
        text-decoration: underline;
    }

    .footer-links li {
        display: flex;
        align-items: flex-start;
    }

    .footer-links li i {
        color: var(--primary-color);
        margin-right: 10px;
        margin-top: 4px;
        font-size: 16px;
    }

    .footer-links li p {
        margin: 0;
        color: rgba(255, 255, 255, 0.8);
    }

    @media (max-width: 767px) {
        .footer-bottom-links {
            justify-content: center;
            margin-top: 10px;
        }
    }
    
    @media (max-width: 991px) {
        .footer {
            padding-bottom: 70px;
        }
    }

    .whatsapp-widget {
        position: fixed;
        right: 30px;
        bottom: 30px;
        z-index: 998;
    }

    .whatsapp-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        background: #25d366;
        color: #fff;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .whatsapp-button:hover {
        transform: scale(1.1);
        color: #fff;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    }

    .whatsapp-button i {
        font-size: 28px;
    }