/* Search Page Unique Styles */
:root {
    --sp-primary: #F05E27;
    --sp-bg-light: #fdfaf5;
    --sp-text-dark: #1a1a1a;
    --sp-text-gray: #666;
    --sp-border-radius: 15px;
}

.sp-results-wrapper {
    padding: 60px 0;
    background: #fff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sp-search-bar {
    margin-bottom: 48px;
}

.sp-search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
    align-items: center;
}

.sp-search-input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    border: 1.5px solid #e5e5e5;
    border-radius: 50px;
    font-size: 15px;
    font-family: var(--font-family, 'Poppins', sans-serif);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-search-input:focus {
    border-color: var(--sp-primary);
    box-shadow: 0 0 0 4px rgba(240, 94, 39, 0.08);
}

.sp-search-btn {
    flex-shrink: 0;
    background: var(--sp-primary);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: var(--font-family, 'Poppins', sans-serif);
    transition: background 0.2s, transform 0.15s;
}

.sp-search-btn:hover {
    background: #d44d1d;
}

.sp-empty-hint {
    text-align: center;
    color: var(--sp-text-gray);
    font-size: 16px;
    padding: 20px 16px 40px;
    max-width: 560px;
    margin: 0 auto;
}

.sp-empty-inline {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--sp-text-gray);
    padding: 24px;
    margin: 0;
}

.sp-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sp-pagination-wrap {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.sp-pagination-wrap .pagination {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.sp-pagination-wrap .page-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-section-container {
    margin-bottom: 80px;
}

.sp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.sp-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--sp-text-dark);
    margin: 0;
}

.sp-section-title span.sp-highlight {
    color: var(--sp-primary);
}

.sp-found-badge {
    background: #fff4e5;
    color: #333;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
}

/* Category & Product Cards */
.sp-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sp-product-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.sp-product-card:hover {
    transform: translateY(-5px);
}

.sp-card-img-box {
    background: #fff;
    border-radius: 20px;
    padding: 0px;
    aspect-ratio: 1.3 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #f0e6e0;
    transition: all 0.3s ease;
}

.sp-product-card:hover .sp-card-img-box {
    border-color: var(--sp-primary);
    box-shadow: 0 10px 25px rgba(240, 94, 39, 0.1);
}

.sp-card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sp-text-dark);
    margin: 0;
    text-transform: capitalize;
}

/* Blog Cards */
.sp-blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sp-blog-img-box {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.sp-blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-blog-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.sp-blog-meta span {
    display: flex;
    align-items: center;
}

.sp-blog-meta span:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: #ddd;
}

.sp-blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--sp-text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.sp-blog-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .sp-grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .sp-section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .sp-grid-layout {
        grid-template-columns: 1fr;
    }
}
