.catalog-card .topline.has-image {
    display: block;
    position: relative;
}

.catalog-card .topline.has-image .product-thumb {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #d8e4f1;
    border-radius: 13px;
    background: #eef4ff;
}

.catalog-card .topline.has-image .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(216, 228, 241, .9);
    box-shadow: 0 5px 14px rgba(16, 42, 76, .12);
    backdrop-filter: blur(8px);
}

.mg-catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 34px 0 8px;
    direction: rtl;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

.mg-catalog-pagination .mg-page-numbers {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mg-catalog-pagination a,
.mg-catalog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #cdddf1;
    border-radius: 11px;
    background: #fff;
    color: #1769d5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(24, 74, 130, .07);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.mg-catalog-pagination a:hover {
    border-color: #1769d5;
    background: #edf5ff;
    transform: translateY(-1px);
}

.mg-catalog-pagination .mg-page-current {
    border-color: #1769d5;
    background: #1769d5;
    color: #fff;
    box-shadow: 0 8px 20px rgba(23, 105, 213, .22);
}

.mg-catalog-pagination .mg-page-disabled {
    background: #f4f7fb;
    color: #9aa9bc;
    cursor: not-allowed;
    box-shadow: none;
}

.mg-catalog-pagination .mg-page-dots {
    min-width: 28px;
    padding: 0 4px;
    border-color: transparent;
    background: transparent;
    color: #788aa2;
    box-shadow: none;
}

.mg-catalog-pagination .mg-page-nav {
    min-width: 92px;
}

@media (max-width: 560px) {
    .catalog-card .topline.has-image .product-thumb {
        border-radius: 11px;
    }

    .mg-catalog-pagination {
        gap: 6px;
        margin-top: 26px;
    }

    .mg-catalog-pagination a,
    .mg-catalog-pagination span {
        min-width: 36px;
        height: 38px;
        padding: 0 9px;
        border-radius: 9px;
        font-size: 12px;
    }

    .mg-catalog-pagination .mg-page-nav {
        min-width: 68px;
    }
}
