/* ==================== ALL PRODUCTS BROWSE PAGE ==================== */
/* Grid + pagination shell; the product cards reuse .result-card styling
   from results.css (premium shadow + gradient, theme-aware). */

.products-page {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 40px;
}

.products-head {
    margin-bottom: 22px;
}

.products-title {
    margin: 0 0 4px;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-dark, #101a33);
}

.products-sub {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted, #66758d);
}

.products-grid-wrap,
.results-grid {
    margin-bottom: 8px;
}

.products-empty {
    margin: 30px 0;
    font-size: 15px;
    font-weight: 650;
    color: var(--text-muted, #66758d);
    text-align: center;
}

/* Browse cards carry less content than results cards - no fixed height. */
.products-page .result-card {
    height: auto;
    min-height: 0;
}

@media (max-width: 900px) {
    .products-page .result-card {
        height: auto !important;
        min-height: 0 !important;
    }
}

.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 22px 0 10px;
}

.products-page-btn {
    padding: 10px 20px;
    border: 1px solid var(--border, #e2e8f2);
    border-radius: 12px;
    background: var(--bg-white, #ffffff);
    color: var(--text-dark, #101a33);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 750;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.products-page-btn:hover:not(:disabled) {
    border-color: var(--primary, #1358ff);
    color: var(--primary, #1358ff);
}

.products-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.products-page-status {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted, #66758d);
}

@media (max-width: 640px) {
    .products-page {
        width: calc(100% - 32px);
        padding: 18px 0 30px;
    }

    .products-pagination {
        gap: 12px;
    }

    .products-page-btn {
        padding: 9px 14px;
        font-size: 12.5px;
    }
}
