/* Search Page Styles */

.search-section {
    padding: 4rem 0;
    min-height: 70vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.search-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.search-container h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.search-bar-wrapper {
    margin-bottom: 3rem;
}

.search-bar {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.15);
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1.1rem;
    border-radius: 50px;
    outline: none;
    color: #333;
}

.search-bar input::placeholder {
    color: #adb5bd;
}

.search-bar button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-bar button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.search-bar button svg {
    width: 20px;
    height: 20px;
}

/* Search Results */
.search-results {
    margin-top: 3rem;
}

.search-results-header {
    margin-bottom: 2rem;
}

.search-results-header h2 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.search-results-count {
    color: var(--gray);
    font-size: 1rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Product Card Styles */
.product-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.25);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.product-description {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.product-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: #e6f2ff;
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: flex-start;
}

.btn-get-quote {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease;
    margin: 0;
    width: 100%;
}

.btn-get-quote:hover {
    background-color: var(--dark-blue);
}

/* Highlight matching text */
mark {
    background-color: #ffeb3b;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.no-results h3 {
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-container h1 {
        font-size: 2rem;
    }

    .search-bar {
        flex-direction: column;
        gap: 0.75rem;
        border-radius: 10px;
    }

    .search-bar input {
        border-radius: 10px;
    }

    .search-bar button {
        border-radius: 10px;
        justify-content: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .search-container h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }

    .search-bar input {
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }

    .search-bar button {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
}
