/* Search Page Styles */
.search-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #fff8f5 0%, #fff 100%);
    border-radius: 12px;
}

.search-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
}

.search-query {
    color: #ee4d2d;
    font-weight: 700;
}

.search-results-count {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Main Search Form */
.search-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.main-search-form {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
}

.main-search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.main-search-input:focus {
    border-color: #ee4d2d;
    box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.1);
}

.main-search-button {
    padding: 1rem 2rem;
    background: #ee4d2d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.main-search-button:hover {
    background: #d73211;
    transform: translateY(-1px);
}

.search-icon {
    font-size: 1.2rem;
}

/* Popular Searches */
.popular-searches {
    text-align: center;
}

.popular-label {
    color: #666;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.popular-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.popular-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid #e9ecef;
}

.popular-tag:hover {
    background: #ee4d2d;
    color: white;
    border-color: #ee4d2d;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h2 {
    color: #333;
    margin-bottom: 1rem;
}

.no-results ul {
    text-align: left;
    max-width: 300px;
    margin: 1rem auto 2rem;
    color: #666;
}

.suggested-categories {
    margin-top: 2rem;
}

.suggested-categories h3 {
    color: #333;
    margin-bottom: 1rem;
}

.category-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-suggestion {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #ee4d2d;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.2s;
}

.category-suggestion:hover {
    background: #d73211;
    color: white;
    transform: translateY(-2px);
}

/* Search Results */
.search-results {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Products Grid for Search */
.search-results .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Enhanced Product Card for Search */
.search-results .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.search-results .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.search-results .product-category {
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

/* Search Highlight */
.search-highlight {
    background: #fff3cd;
    color: #856404;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Pagination for Search */
.search-results .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 0.8rem 1.2rem;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: all 0.2s ease;
    min-width: 44px;
    text-align: center;
    font-weight: 500;
}

.pagination-link:hover {
    background: #ee4d2d;
    color: white;
    border-color: #ee4d2d;
    transform: translateY(-1px);
}

.pagination-link.current {
    background: #ee4d2d;
    color: white;
    border-color: #ee4d2d;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 0.8rem 0.5rem;
    color: #666;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-header {
        padding: 1.5rem 1rem;
    }

    .search-header h1 {
        font-size: 1.5rem;
    }

    .search-form-container {
        padding: 1.5rem;
    }

    .search-input-wrapper {
        flex-direction: column;
        max-width: 100%;
    }

    .main-search-button {
        justify-content: center;
        padding: 1rem;
    }

    .popular-tags {
        flex-direction: column;
        align-items: center;
    }

    .search-results .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .search-results {
        padding: 1.5rem;
    }

    .category-suggestions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .search-results .products-grid {
        grid-template-columns: 1fr;
    }

    .pagination-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        min-width: 36px;
    }

    .popular-searches {
        text-align: left;
    }

    .popular-label {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .popular-tags {
        justify-content: flex-start;
    }
}