/* Search Bar - Header Style */
.search-container {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    padding: 0;
    width: 100%;
    max-width: 600px;
    height: 40px;
    overflow: hidden;
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 1rem;
    color: var(--text-primary);
    height: 100%;
    background: transparent;
}

.search-container input::placeholder {
    color: #bbb;
}

.search-btn {
    background: var(--bg-card);
    border: none;
    padding: 0 15px;
    height: 100%;
    border-left: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--bg-container);
}

/* ── Mobile ── */
@media (max-width: 768px) {

    /* Stack header vertically */
    .header-content {
        flex-direction: column;
        gap: 8px;
        padding-bottom: 10px;
    }

    /* Logo stays left */
    .logo {
        align-self: flex-start;
    }

    /* Hide filter button entirely on mobile */
    .header-filter-btn {
        display: none !important;
    }

    /* Hide "Mi Cuenta" / "Iniciar Sesión" text — keep only the icon */
    #auth-btn-text {
        display: none !important;
    }

    /* Compact nav */
    nav {
        width: auto;
        gap: 10px !important;
        flex-wrap: wrap;
    }

    /* Search takes full width below logo+nav row */
    .header-center {
        width: 100%;
        margin: 0 !important;
        order: 2;
    }

    /* Taller, readable search bar */
    .search-container {
        max-width: 100%;
        height: 48px;
        border-radius: 10px;
        border: 1.5px solid #ddd;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    /* 16px prevents iOS Safari from auto-zooming on focus */
    .search-container input {
        font-size: 16px;
        padding: 0 12px;
    }

    .search-container input::placeholder {
        font-size: 14px;
        color: #aaa;
    }

    .search-btn {
        padding: 0 14px;
        font-size: 1rem;
    }
}