/*
 * Modern Search Page Design
 * Last updated: 2025-09-13
 * Author: Assistant  
 * Summary: Comprehensive modern design for product search pages with improved UX
 */

/* Main search results container */
#advSearchResultsDefault {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 20px 0;
}

/* Search page header */
#advSearchResultsDefault header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e74c3c;
}

#advSearchResultsDefault header h1 {
    color: #2c3e50 !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    text-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

#advSearchResultsDefault header h1::before {
    content: "🔍";
    font-size: 24px;
}

/* Search summary section */
.search-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 25px;
    border-radius: 10px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-summary .results-count {
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-summary .results-count strong {
    font-weight: 700;
}

.search-summary .results-count em {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-style: normal;
    font-weight: 600;
}

/* No results section */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    color: #495057;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-results p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Search suggestions */
.search-suggestions {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.search-suggestions h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 8px 0;
    color: #6c757d;
    font-size: 15px;
    position: relative;
    padding-left: 25px;
}

.search-suggestions li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Search results grid */
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Product listing improvements */
.productListing-data {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.productListing-data:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.productListing-data .listingProductImage {
    text-align: center;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.productListing-data .listingProductImage img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.productListing-data:hover .listingProductImage img {
    transform: scale(1.05);
}

.productListing-data .product_name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.productListing-data .product_name a {
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.productListing-data .product_name a:hover {
    color: #007bff !important;
}

.productListing-data .short-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.productListing-data .productlisting_price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #e74c3c !important;
    margin-bottom: 15px !important;
}

.productListing-data .productlisting_btn {
    text-align: center;
}

.productListing-data .productlisting_btn a,
.productListing-data .productlisting_btn input {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
}

.productListing-data .productlisting_btn a:hover,
.productListing-data .productlisting_btn input:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4) !important;
}

/* Pagination styling */
.navSplitPagesResult {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
    border: 1px solid #e9ecef;
}

.navSplitPagesLinks {
    margin-top: 15px;
}

.navSplitPagesLinks a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    font-weight: 500;
    transition: all 0.2s ease;
}

.navSplitPagesLinks a:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.navSplitPagesLinks .current {
    background: #007bff;
    color: white;
    padding: 8px 12px;
    margin: 0 4px;
    border-radius: 6px;
    font-weight: 600;
}

/* Advanced search form improvements */
#advSearchDefault {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 20px 0;
}

#advSearchDefault .content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

#advSearchDefault .form-group {
    margin-bottom: 20px;
}

#advSearchDefault label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

#advSearchDefault input[type="text"],
#advSearchDefault select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s ease;
}

#advSearchDefault input[type="text"]:focus,
#advSearchDefault select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

#advSearchDefault .search-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

#advSearchDefault .search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    #advSearchResultsDefault {
        padding: 20px;
        margin: 10px;
        border-radius: 8px;
    }
    
    #advSearchResultsDefault header h1 {
        font-size: 22px !important;
    }
    
    .search-results {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .productListing-data {
        padding: 15px;
    }
    
    .search-summary {
        padding: 15px 20px;
    }
    
    .no-results {
        padding: 40px 15px;
    }
    
    .no-results-icon {
        font-size: 48px;
    }
}

@media screen and (max-width: 576px) {
    .search-summary .results-count {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .productListing-data .productlisting_btn a,
    .productListing-data .productlisting_btn input {
        width: 100%;
        padding: 12px !important;
    }
}