/* =============================================
 * Product category archive styles — plp-pagination ported from fumot theme.
 * @package vozolde
 * ============================================= */

/* =============================================
 * plp-pagination — server-side WordPress pagination
 * Ported from fumot theme (fumot-vape/einweg listing)
 * Adapted to vozolde purple theme.
 * ============================================= */

.plp-pagination {
    /* Use padding instead of margin to avoid CSS margin collapse with
       .products-grid's margin-bottom. Combined with the wrapper padding,
       this gives a clear visual gap between the last product card and
       the pagination buttons. */
    width: 100%;
    padding: 3rem 0 1rem;
    margin-top: 1rem;
    text-align: center;
}
.plp-pagination > div {
    display: inline-block;
}

.plp-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.plp-pagination .page-numbers li a,
.plp-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.7rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--card));
    font-size: 0.84rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.plp-pagination .page-numbers li a:hover {
    border-color: rgb(var(--primary));
    color: rgb(var(--primary));
}

.plp-pagination .page-numbers li span.current {
    background: rgb(var(--primary));
    border-color: rgb(var(--primary));
    color: #fff;
}

.plp-pagination .page-numbers li a.prev,
.plp-pagination .page-numbers li a.next {
    font-weight: 700;
}

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
    .plp-pagination {
        margin-top: 2rem;
    }
}

/* ---------- Mobile (≤768px) ---------- */
@media (max-width: 768px) {
    .plp-pagination .page-numbers li a,
    .plp-pagination .page-numbers li span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

/* =============================================
 * Empty state — shown when a sub-category has no products
 * ============================================= */
.category-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.category-empty-icon {
    font-size: 56px;
    line-height: 1;
    opacity: 0.35;
}

.category-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0;
    line-height: 1.4;
}

.category-empty-desc {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0;
    max-width: 420px;
}

.category-empty-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.category-empty-links .products-cat-chip {
    cursor: pointer;
}
