/* ==========================================================================
   MASSIMO — Paginare catalog
   ========================================================================== */

.nav-pagination.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    list-style: none;
}

.nav-pagination.page-numbers li {
    list-style: none;
}

/* stil comun tuturor „casetelor" (linkuri, curent, dots) */
.nav-pagination.page-numbers .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #333;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(36, 29, 50, .05);
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease,
                border-color .18s ease, box-shadow .18s ease,
                transform .18s ease;
    box-sizing: border-box;
}

/* hover pe linkuri */
.nav-pagination.page-numbers a.page-number:hover {
    color: #6b3fa0;
    border-color: #b795e0;
    background: #f7f2fc;
    box-shadow: 0 4px 12px rgba(107, 63, 160, .12);
    transform: translateY(-1px);
}

.nav-pagination.page-numbers a.page-number:focus-visible {
    outline: 2px solid #6b3fa0;
    outline-offset: 2px;
}

/* pagina curentă */
.nav-pagination.page-numbers .page-number.current {
    color: #fff;
    background: #6b3fa0;
    border-color: #6b3fa0;
    box-shadow: 0 4px 12px rgba(107, 63, 160, .2);
    cursor: default;
}

/* „…" fără chenar, doar text */
.nav-pagination.page-numbers .page-number.dots {
    min-width: 18px;
    border: none;
    box-shadow: none;
    background: transparent;
    color: #999;
    padding: 0;
}

/* săgeți prev / next */
.nav-pagination.page-numbers .prev.page-number,
.nav-pagination.page-numbers .next.page-number {
    width: 42px;
    padding: 0;
    font-size: 15px;
    color: #6b3fa0;
}

.nav-pagination.page-numbers .prev.page-number:hover,
.nav-pagination.page-numbers .next.page-number:hover {
    color: #fff;
    background: #6b3fa0;
    border-color: #6b3fa0;
}

@media (max-width: 549px) {
    .nav-pagination.page-numbers {
        gap: 4px;
        margin: 24px auto 18px;
        padding: 3px 4px;
    }

    .nav-pagination.page-numbers li {
        margin: 0;
        padding: 0;
    }

    .nav-pagination.page-numbers .page-number {
        min-width: 32px;
        height: 34px;
        padding: 0 4px;
        font-size: 12px;
        border-radius: 6px;
    }

    .nav-pagination.page-numbers .page-number.dots {
        min-width: 12px;
        padding: 0;
    }

    .nav-pagination.page-numbers .prev.page-number,
    .nav-pagination.page-numbers .next.page-number {
        width: 34px;
        min-width: 34px;
        padding: 0;
        font-size: 14px;
    }
}

@media (max-width: 359px) {
    .nav-pagination.page-numbers {
        gap: 3px;
        padding-right: 2px;
        padding-left: 2px;
    }

    .nav-pagination.page-numbers .page-number {
        min-width: 29px;
        height: 32px;
        padding: 0 3px;
        font-size: 11px;
    }

    .nav-pagination.page-numbers .page-number.dots {
        min-width: 10px;
        padding: 0;
    }

    .nav-pagination.page-numbers .prev.page-number,
    .nav-pagination.page-numbers .next.page-number {
        width: 30px;
        min-width: 30px;
    }
}

/* ==========================================================================
   MASSIMO — Antet catalog: breadcrumb, rezultate și sortare
   ========================================================================== */

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .page-title-inner {
    align-items: center;
    gap: 24px;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #f8f5fb;
    border: 1px solid #ece5f3;
    border-radius: 6px;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .page-title-inner > .flex-col {
    min-width: 0;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: #756e7d;
    text-transform: none;
    letter-spacing: 0;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb a {
    color: #5c4d85;
    text-decoration: none;
    transition: color .18s ease;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb a:hover {
    color: #6b3fa0;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb .divider {
    margin: 0 7px;
    color: #c8c1cf;
    opacity: 1;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .page-title-inner > .flex-col:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-result-count {
    float: none;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #837c89;
    white-space: nowrap;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-ordering {
    float: none;
    width: auto;
    margin: 0;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-ordering .orderby {
    width: auto;
    min-width: 285px;
    max-width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 36px 0 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 38px;
    color: #302a38;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #6b3fa0 50%),
                      linear-gradient(135deg, #6b3fa0 50%, transparent 50%);
    background-position: calc(100% - 16px) 16px,
                         calc(100% - 11px) 16px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    border: 1px solid #ddd7e4;
    border-radius: 5px;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color .18s ease, background-color .18s ease,
                box-shadow .18s ease;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-ordering .orderby:hover {
    border-color: #b795e0;
}

body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-ordering .orderby:focus-visible {
    outline: none;
    border-color: #6b3fa0;
    box-shadow: 0 0 0 3px rgba(107, 63, 160, .14);
}

@media (max-width: 849px) {
    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .page-title-inner {
        gap: 10px;
        padding-top: 8px;
        padding-bottom: 12px;
    }

    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .page-title-inner > .flex-col {
        width: 100%;
    }

    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb {
        text-align: center;
    }

    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .page-title-inner > .flex-col:last-child {
        justify-content: center;
        flex-wrap: wrap;
    }

    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-ordering {
        width: min(100%, 340px);
    }

    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-ordering .orderby {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 549px) {
    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .page-title-inner {
        gap: 8px;
        padding-top: 6px;
        padding-bottom: 10px;
    }

    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb {
        font-size: 12px;
    }

    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-breadcrumb .divider {
        margin-right: 4px;
        margin-left: 4px;
    }

    body:is(.woocommerce-shop, .post-type-archive-product, .archive.woocommerce, .tax-product_cat, .tax-product_tag) .woocommerce-ordering .orderby {
        height: 38px;
        padding-right: 36px;
        padding-left: 11px;
        font-size: 12px;
        line-height: 38px;
        background-position: calc(100% - 16px) 16px,
                             calc(100% - 11px) 16px;
    }
}
