/* =========================================
   SEARCH PAGE LAYOUT
   ========================================= */

.search-page-container {
    padding-top: 1rem;
    padding-bottom: 4rem;
}

/* --- 1. BREADCRUMBS (Consistent Style) --- */
.breadcrumb-wrapper {
    padding: 0.5rem 0 1.5rem 0;
    font-size: 0.9rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-wrapper a {
    text-decoration: none;
    color: #6B7280;
    transition: color 0.2s;
}
.breadcrumb-wrapper a:hover { color: #111; }

.breadcrumb-separator {
    color: #D1D5DB;
    font-size: 0.8rem;
    font-family: monospace;
}

.breadcrumb-current {
    font-weight: 600;
    color: #111;
}

/* --- 2. HEADER & FILTERS --- */
.search-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #F3F4F6;
    padding-bottom: 1rem;
}

#pageTitle {
    font-size: 2rem;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

/* Filter Pills (Horizontal Scroll) */
.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-pill {
    white-space: nowrap;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #E5E7EB;
    color: #4B5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    background: white;
    transition: all 0.2s;
}

.filter-pill:hover {
    border-color: #000;
    color: #000;
}

.filter-pill.active {
    background: #000;
    color: white;
    border-color: #000;
}

/* --- 3. PRODUCT GRID (The Layout Difference) --- */
/* Home Page uses Flex (Scroll), Search Page uses Grid (Wrap) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns on Mobile */
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 Columns on Desktop */
        gap: 2rem;
    }
}

/* --- 4. PAGINATION BUTTON --- */
.pagination-container {
    text-align: center;
    margin-top: 4rem;
    padding-bottom: 2rem;
}

#btnLoadMore {
    padding: 12px 40px;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 30px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
}

#btnLoadMore:hover {
    border-color: #000;
    color: #000;
}