/* Search Page Styles */
.search-page {
    padding: 2rem 1rem;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-header h1 {
    color: var(--boost-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.search-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--boost-orange);
}

.search-header p {
    color: #666;
    font-size: 1.1rem;
}

.search-box {
    display: flex;
    max-width: 800px;
    margin: 0 auto 2rem;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background: white;
    padding: 0 1.5rem;
}

.search-input i {
    color: #999;
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

.search-input input {
    flex-grow: 1;
    border: none;
    padding: 1rem 0;
    font-size: 1rem;
    outline: none;
}

.search-box .btn {
    border-radius: 0;
    padding: 0 2.5rem;
    white-space: nowrap;
    font-weight: 600;
}

.filter-section {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-header h2 {
    color: var(--boost-blue);
    font-size: 1.2rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    background: white;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-group h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--boost-blue);
    display: flex;
    align-items: center;
}

.filter-group h3 i {
    margin-right: 0.5rem;
    color: var(--boost-orange);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.filter-option {
    display: flex;
    align-items: center;
}

.filter-option input {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
}

.filter-option label {
    cursor: pointer;
}

.results-section {
    margin-top: 2rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 1.1rem;
    color: #555;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sort-options label {
    font-size: 0.9rem;
    color: #555;
}

.sort-options select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
}

.phones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--boost-blue);
    color: white;
    border-color: var(--boost-blue);
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--boost-orange);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-results {
    text-align: center;
    padding: 3rem;
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    color: var(--boost-blue);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        border-radius: 8px;
    }

    .search-input {
        padding: 1rem;
    }

    .search-box .btn {
        width: 100%;
        padding: 1rem;
        border-radius: 0 0 8px 8px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }
}