/* Search Results Styles - Posh Brand */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Match site-main structure from parent theme */
.site-main .posh-search-results {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.posh-search-results .search-header {
    background: linear-gradient(135deg, #E0457B 0%, #0ABAB5 100%);
    color: white;
    padding: 3rem 2rem;
    margin: -2rem -1rem 2rem -1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.posh-search-results .search-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    color: white;
}

.posh-search-results .search-term {
    color: white;
    font-weight: 700;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.posh-search-results .search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: start;
}

.posh-search-results .search-result-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: auto;
}

.posh-search-results .search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Product Results */
.posh-search-results .result-product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.posh-search-results .product-image-link {
    display: block;
    width: 100%;
    background: #f8f9fa;
    text-align: center;
    padding: 1rem;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.posh-search-results .product-image-link:hover {
    background: #f0f0f0;
}

.posh-search-results .product-thumbnail {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

.posh-search-results .product-thumbnail-placeholder {
    color: #999;
    font-size: 0.875rem;
    padding: 2rem;
    font-family: 'Poppins', sans-serif;
}

.posh-search-results .product-info {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.posh-search-results .product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em;
    max-height: 2.6em;
}

.posh-search-results .product-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.posh-search-results .product-title a:hover {
    color: #E0457B;
}

.posh-search-results .product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #E0457B;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.posh-search-results .product-ingredients-match {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #fff0f6;
    border-left: 3px solid #E0457B;
    border-radius: 4px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
}

.posh-search-results .product-ingredients-match strong {
    color: #E0457B;
    font-weight: 600;
}

.posh-search-results .product-ingredients-match mark {
    background: #fff3cd;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
}

.posh-search-results .product-excerpt {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.posh-search-results .product-link-button {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #E0457B;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.posh-search-results .product-link-button:hover {
    background: #C03A68;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 69, 123, 0.3);
    color: #fff;
}

/* Content Results */
.posh-search-results .result-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.posh-search-results .content-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.posh-search-results .content-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.posh-search-results .content-image-link:hover .content-thumbnail {
    transform: scale(1.05);
}

.posh-search-results .content-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.posh-search-results .content-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
}

.posh-search-results .content-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.posh-search-results .content-title a:hover {
    color: #E0457B;
}

.posh-search-results .content-meta {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.posh-search-results .content-type {
    font-weight: 600;
}

.posh-search-results .content-excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    font-family: 'Poppins', sans-serif;
}

.posh-search-results .content-link-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: #E0457B;
    text-decoration: none;
    border: 2px solid #E0457B;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
}

.posh-search-results .content-link-button:hover {
    background: #E0457B;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(224, 69, 123, 0.3);
}

/* No Results */
.posh-search-results .search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.posh-search-results .no-results-message {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.posh-search-results .search-suggestions {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.posh-search-results .search-suggestions h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
    color: #222;
    font-family: 'Poppins', sans-serif;
}

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

.posh-search-results .search-suggestions li {
    padding: 0.625rem 0;
    color: #666;
    padding-left: 1.75rem;
    position: relative;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.posh-search-results .search-suggestions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #E0457B;
    font-weight: bold;
    font-size: 1.125rem;
}

.posh-search-results .search-suggestions a {
    color: #E0457B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.posh-search-results .search-suggestions a:hover {
    color: #C03A68;
    text-decoration: underline;
}

/* Pagination */
.posh-search-results .search-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.posh-search-results .pagination-links {
    display: flex;
    justify-content: center;
}

.posh-search-results .pagination-links ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.posh-search-results .pagination-links li {
    margin: 0;
}

.posh-search-results .pagination-links a,
.posh-search-results .pagination-links span {
    display: block;
    padding: 0.625rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9375rem;
}

.posh-search-results .pagination-links a:hover {
    background: #E0457B;
    color: #fff;
    border-color: #E0457B;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(224, 69, 123, 0.2);
}

.posh-search-results .pagination-links .current {
    background: #E0457B;
    color: #fff;
    border-color: #E0457B;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .site-main .posh-search-results {
        padding: 1rem;
    }
    
    .posh-search-results .search-header {
        padding: 2rem 1.5rem;
        margin: -1rem -1rem 1.5rem -1rem;
    }
    
    .posh-search-results .search-title {
        font-size: 1.75rem;
    }
    
    .posh-search-results .search-results-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .posh-search-results .product-info,
    .posh-search-results .content-info {
        padding: 1.25rem;
    }
    
    .posh-search-results .search-no-results {
        padding: 2.5rem 1.5rem;
    }
    
    .posh-search-results .search-suggestions {
        padding: 1.5rem;
    }
}
