/* Estilos para o navbar do site público */
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    font-family: 'Poppins', sans-serif !important;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-family: 'Poppins', sans-serif !important;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-green);
}

.brand-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-info h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.2;
}

.brand-info p {
    font-size: 0.75rem;
    color: var(--gray-text);
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid var(--gray-border);
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.search-bar .search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-text);
    font-size: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-text);
    transition: color 0.3s;
    text-decoration: none;
    position: relative;
}

.header-btn:hover {
    color: var(--primary-green);
}

.header-btn i {
    font-size: 1.5rem;
}

.header-btn span {
    font-size: 0.75rem;
    font-weight: 500;
}

.header-btn.login-btn {
    color: var(--primary-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
    position: relative;
}

.header-btn.login-btn:hover {
    color: var(--primary-green);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.header-btn-logout {
    color: #e53e3e !important;
}

.header-btn-logout:hover {
    color: #c53030 !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0; /* Reduced padding */
    }

    .header-container {
        flex-wrap: wrap;
        gap: 0.5rem; /* Further reduced gap */
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 0; /* Removed margin-top */
    }

    .header-actions {
        flex-wrap: wrap;
        width: 100%;
    }

        .header-btn {

            flex: 1;

            justify-content: center;

            /* Ensure column stacking is preserved and centered */

            display: flex;

            flex-direction: column;

            align-items: center;

        }

    

        .header-btn span {

            white-space: nowrap; /* Prevent "Sacola vazia" from wrapping */

            font-size: 0.7rem; /* Slightly smaller to fit */

        }

    }

    