/* =====================================================================
   متجر التقسيط - الإصدار الثاني (نفس لغة صفحة المنتج installment-product.css)
   ---------------------------------------------------------------------
   محصور تحت .ins-shop.ins-v2 ويُحمَّل بعد installment-shop-pro.css فيتغلّب
   عليه بنفس الأسماء دون تعديل أي قاعدة قديمة (سهولة الرجوع: احذف ins-v2).
   المبادئ: أسطح رمادية بلا ظلال، البنفسجي للأفعال والقسط الشهري فقط،
   والقسط الشهري هو الرقم الأبرز في كل بطاقة.
   ===================================================================== */

.ins-shop.ins-v2 {
    --brand: #670756;
    --brand-ink: #4f0442;
    --brand-tint: #f6eef4;
    --ink: #1c1720;
    --ink-soft: #57505c;
    --ink-faint: #8a838e;
    --surface: #f5f4f6;
    --v2-line: #e7e4e9;
    --ok: #0e7a45;
    --danger: #b42318;

    font-family: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
    color: var(--ink);
    font-feature-settings: "tnum" 1;
}

.ins-shop.ins-v2 :where(h1, h2, h3, p) {
    font-family: inherit;
}

.ins-shop.ins-v2 .sicon-sar {
    font-size: .85em;
}

/* ===== البانر ===== */
.ins-shop.ins-v2 .installment-hero-image {
    border-radius: 28px;
    box-shadow: none;
    overflow: hidden;
}

.ins-shop.ins-v2 .installment-hero-image__img {
    border-radius: 28px;
}

/* ===== الهيدر: بسيط وهادئ =====
   سطح رمادي فاتح، صورة الجهاز نظيفة، والقسط الشهري بالبنفسجي هو العنصر الوحيد البارز.
   بلا تدرجات ولا عناصر عائمة ولا حركة مستمرة. */
.ins-shop.ins-v2 .v3-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 48px 64px;
    border-radius: 28px;
    background: var(--surface);
    color: var(--ink);
}

.ins-shop.ins-v2 .v3-hero--text {
    grid-template-columns: 1fr;
}

.ins-shop.ins-v2 .v3-hero__title {
    margin: 0;
    font-weight: 700;
    color: var(--ink);
}

.ins-shop.ins-v2 .v3-hero__product {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-soft);
}

.ins-shop.ins-v2 .v3-hero__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
}

.ins-shop.ins-v2 .v3-hero__price b {
    font-size: clamp(46px, 4.6vw, 64px);
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--brand);
}

.ins-shop.ins-v2 .v3-hero__price .sicon-sar {
    font-size: 1.1em;
    color: var(--brand);
}

.ins-shop.ins-v2 .v3-hero--text .v3-hero__title {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.35;
}

.ins-shop.ins-v2 .v3-hero__lead {
    max-width: 42ch;
    margin: 14px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
}

.ins-shop.ins-v2 .v3-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 28px;
}

.ins-shop.ins-v2 .v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 600;
}

.ins-shop.ins-v2 .v3-btn--primary {
    min-height: 52px;
    padding: 0 30px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    transition: background .15s ease;
}

.ins-shop.ins-v2 .v3-btn--primary:hover {
    background: var(--brand-ink);
    color: #fff;
}

.ins-shop.ins-v2 .v3-btn--link {
    color: var(--ink);
}

.ins-shop.ins-v2 .v3-btn--link:hover {
    color: var(--brand);
}

.ins-shop.ins-v2 .v3-hero__providers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 32px 0 0;
    padding: 20px 0 0;
    list-style: none;
    border-top: 1px solid var(--v2-line);
}

.ins-shop.ins-v2 .v3-hero__providers li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.ins-shop.ins-v2 .v3-hero__providers-logo {
    display: grid;
    place-items: center;
    width: 64px;
    height: 30px;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.ins-shop.ins-v2 .v3-hero__providers-logo img {
    max-width: 50px;
    max-height: 18px;
    object-fit: contain;
}

.ins-shop.ins-v2 .v3-hero__providers-logo img[src*="Tabbylogo"] {
    transform: scale(1.7);
}

.ins-shop.ins-v2 .v3-hero__stage {
    display: grid;
    place-items: center;
    height: 380px;
}

.ins-shop.ins-v2 .v3-hero__device {
    max-width: 80%;
    max-height: 360px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

@media (max-width: 1199.98px) {
    .ins-shop.ins-v2 .v3-hero {
        padding: 40px;
    }
}

@media (max-width: 767.98px) {
    .ins-shop.ins-v2 .v3-hero {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 20px 28px;
        border-radius: 22px;
    }

    .ins-shop.ins-v2 .v3-hero__stage {
        order: -1;
        height: 230px;
    }

    .ins-shop.ins-v2 .v3-hero__device {
        max-height: 220px;
    }

    .ins-shop.ins-v2 .v3-hero__product {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .ins-shop.ins-v2 .v3-hero__price {
        font-size: 20px;
    }

    .ins-shop.ins-v2 .v3-hero__price b {
        font-size: 42px;
    }

    .ins-shop.ins-v2 .v3-hero__lead {
        font-size: 14.5px;
        margin-top: 10px;
    }

    .ins-shop.ins-v2 .v3-hero__actions {
        margin-top: 20px;
    }

    .ins-shop.ins-v2 .v3-btn--primary {
        flex: 1 1 100%;
        min-height: 50px;
    }

    .ins-shop.ins-v2 .v3-btn--link {
        flex: 1 1 100%;
        min-height: 40px;
    }

    .ins-shop.ins-v2 .v3-hero__providers {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding-top: 18px;
    }
}

/* ===== شريط المزايا ===== */
.ins-shop.ins-v2 .v2-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 20px 0 8px;
    padding: 18px 0;
    list-style: none;
    border-bottom: 1px solid var(--v2-line);
}

.ins-shop.ins-v2 .v2-trust li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.ins-shop.ins-v2 .v2-trust li:first-child {
    padding-inline-start: 0;
}

.ins-shop.ins-v2 .v2-trust li + li {
    border-inline-start: 1px solid var(--v2-line);
}

.ins-shop.ins-v2 .v2-trust i {
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 19px;
}

.ins-shop.ins-v2 .v2-trust span {
    display: flex;
    flex-direction: column;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ink-faint);
}

.ins-shop.ins-v2 .v2-trust b {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* ===== البحث والأقسام: شريط ثابت أعلى الصفحة عند التمرير ===== */
.ins-shop.ins-v2 .ins-toolbar {
    position: sticky;
    top: var(--ub-h, 70px);
    z-index: 20;
    margin: 0 -12px 24px;
    padding: 14px 12px 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0;
    border-bottom: 1px solid var(--v2-line);
    border-radius: 0;
    box-shadow: none;
}

.ins-shop.ins-v2 .ins-search {
    height: 52px;
    padding: 0 6px 0 0;
    border-radius: 16px;
    background: var(--surface);
    border: 1.5px solid transparent;
    box-shadow: none;
    transition: border-color .15s ease, background .15s ease;
}

.ins-shop.ins-v2 .ins-search:focus-within {
    background: #fff;
    border-color: var(--brand);
    box-shadow: none;
}

.ins-shop.ins-v2 .ins-search input.ins-search__input[type="search"] {
    height: 50px;
    font-size: 15px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ins-shop.ins-v2 .ins-search__btn {
    height: 40px;
    margin-inline-end: 6px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--brand);
    box-shadow: none;
    font-weight: 600;
}

.ins-shop.ins-v2 .ins-search__btn:hover {
    background: var(--brand-ink);
}

/* الأقسام كتبويبات بخط سفلي بدل الكبسولات */
.ins-shop.ins-v2 .installment-categories-wrap {
    margin-top: 6px;
    padding: 0;
    border: 0;
    background: none;
}

.ins-shop.ins-v2 .installment-categories {
    gap: 4px;
    align-items: stretch;
}

.ins-shop.ins-v2 .installment-categories__scroll {
    gap: 4px;
    padding: 0;
}

.ins-shop.ins-v2 .installment-categories__item {
    position: relative;
    height: auto;
    padding: 12px 14px 14px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
}

.ins-shop.ins-v2 .installment-categories__item::after {
    content: "";
    position: absolute;
    inset: auto 10px -1px 10px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
    transition: background .15s ease;
}

.ins-shop.ins-v2 .installment-categories__item:hover {
    background: none;
    color: var(--ink);
}

.ins-shop.ins-v2 .installment-categories__item.is-active {
    background: none;
    color: var(--brand) !important;
    font-weight: 600;
    box-shadow: none;
}

.ins-shop.ins-v2 .installment-categories__item.is-active::after {
    background: var(--brand);
}

.ins-shop.ins-v2 .installment-categories__item--pinned {
    color: var(--brand);
    font-weight: 600;
    border: 0;
    border-inline-end: 1px solid var(--v2-line);
    border-radius: 0;
    margin-inline-end: 6px;
    padding-inline-end: 18px;
}

.ins-shop.ins-v2 .installment-categories__item--pinned::after {
    display: none;
}

/* الأقسام الفرعية: رقائق صغيرة على سطح رمادي */
.ins-shop.ins-v2 .installment-categories + .installment-categories,
.ins-shop.ins-v2 .installment-categories--sub {
    margin: 0;
    padding: 12px 0 14px;
    border-top: 1px solid var(--v2-line);
}

.ins-shop.ins-v2 .installment-categories__sub-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-faint);
    background: none;
    padding-inline-end: 8px;
}

.ins-shop.ins-v2 .installment-categories--sub .installment-categories__item {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--surface);
    font-size: 13px;
}

.ins-shop.ins-v2 .installment-categories--sub .installment-categories__item::after {
    display: none;
}

.ins-shop.ins-v2 .installment-categories--sub .installment-categories__item.is-active {
    background: var(--ink);
    color: #fff !important;
}

/* ===== رأس النتائج ===== */
.ins-shop.ins-v2 .installment-results-head {
    align-items: center;
    margin-bottom: 20px;
    padding: 0;
    border: 0;
}

.ins-shop.ins-v2 .installment-results-head__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
}

.ins-shop.ins-v2 .installment-results-head__count {
    padding: 0;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-faint);
}

.ins-shop.ins-v2 .ins-sort {
    padding: 4px;
    border-radius: 12px;
    background: var(--surface);
    border: 0;
}

.ins-shop.ins-v2 .ins-sort__item {
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-soft);
    background: none;
    box-shadow: none;
}

.ins-shop.ins-v2 .ins-sort__item.is-active {
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(28, 23, 32, .08), 0 2px 6px rgba(28, 23, 32, .05);
}

/* ===== شبكة المنتجات ===== */
.ins-shop.ins-v2 .installment-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px 20px;
}

.ins-shop.ins-v2 .installment-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    animation: none;
    transform: none;
}

.ins-shop.ins-v2 .installment-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.ins-shop.ins-v2 .installment-card__image {
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    background: var(--surface);
    overflow: hidden;
}

.ins-shop.ins-v2 .installment-card__image img {
    width: 76%;
    height: 76%;
    margin: 12%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform .35s ease, opacity .2s ease;
}

.ins-shop.ins-v2 .installment-card:hover .installment-card__image img {
    transform: scale(1.04);
}

.ins-shop.ins-v2 .installment-card.is-out .installment-card__image img {
    opacity: .45;
    filter: grayscale(1);
}

/* شارة "متوفر" على كل بطاقة ضجيج بصري - تظهر فقط عند عدم التوفر */
.ins-shop.ins-v2 .installment-card__badge {
    display: none;
}

.ins-shop.ins-v2 .installment-card__badge.installment-card__badge--out {
    display: inline-flex;
    top: 12px;
    inset-inline-start: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--danger);
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}

.ins-shop.ins-v2 .installment-card__body {
    padding: 14px 2px 0;
    gap: 0;
}

.ins-shop.ins-v2 .installment-card__brand {
    min-height: 18px;
    margin-bottom: 2px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-faint);
    letter-spacing: 0;
    text-transform: none;
}

.ins-shop.ins-v2 .installment-card__name {
    min-height: 3.2em;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--ink);
}

.ins-shop.ins-v2 .installment-card__name a:hover {
    color: var(--brand);
}

/* خيارات السعة */
.ins-shop.ins-v2 .installment-variants {
    gap: 6px;
    margin-bottom: 12px;
}

.ins-shop.ins-v2 .installment-variant-pill {
    padding: 5px 11px;
    border-radius: 9px;
    border: 1.5px solid var(--v2-line);
    background: #fff;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-soft);
    box-shadow: none;
}

.ins-shop.ins-v2 .installment-variant-pill:hover {
    border-color: var(--ink-faint);
}

.ins-shop.ins-v2 .installment-variant-pill.is-active {
    border-color: var(--ink);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
}

/* السعر: القسط الشهري أولًا */
.ins-shop.ins-v2 .installment-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
}

.ins-shop.ins-v2 .ins-price__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-faint);
}

.ins-shop.ins-v2 .v2-monthly {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 2px;
    color: var(--brand);
    line-height: 1.25;
}

.ins-shop.ins-v2 .v2-monthly b {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.ins-shop.ins-v2 .v2-monthly .sicon-sar {
    font-size: 18px;
}

.ins-shop.ins-v2 .v2-total {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--ink-soft);
}

.ins-shop.ins-v2 .installment-prices__plan {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* الألوان + زر الإضافة */
.ins-shop.ins-v2 .installment-add {
    margin-top: auto;
    gap: 10px;
}

.ins-shop.ins-v2 .installment-colors__item {
    width: 22px;
    height: 22px;
}

.ins-shop.ins-v2 .installment-add .ins-add-btn {
    height: 46px;
    min-height: 46px;
    border-radius: 14px;
    border: 1.5px solid var(--v2-line);
    background: #fff;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ins-shop.ins-v2 .installment-add .ins-add-btn i {
    color: inherit;
}

.ins-shop.ins-v2 .installment-card:hover .installment-add .ins-add-btn:not(:disabled),
.ins-shop.ins-v2 .installment-add .ins-add-btn:not(:disabled):hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.ins-shop.ins-v2 .installment-add .ins-add-btn.is-added,
.ins-shop.ins-v2 .installment-add .ins-add-btn.is-added:disabled {
    background: var(--ok);
    border-color: var(--ok);
    color: #fff;
}

.ins-shop.ins-v2 .installment-add .ins-add-btn:disabled {
    background: var(--surface);
    border-color: var(--surface);
    color: var(--ink-faint);
}

/* ===== السلة الجانبية ===== */
.ins-shop.ins-v2 .installment-cart {
    top: calc(var(--ub-h, 70px) + var(--tb-h, 120px) + 12px);
    border: 1px solid var(--v2-line);
    border-radius: 24px;
    box-shadow: none;
}

.ins-shop.ins-v2 .installment-cart__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.ins-shop.ins-v2 .installment-cart__title i {
    color: var(--brand);
}

.ins-shop.ins-v2 .ins-checkout-btn {
    border-radius: 14px;
    background: var(--brand);
    box-shadow: none;
    font-weight: 600;
}

.ins-shop.ins-v2 .ins-checkout-btn:hover {
    background: var(--brand-ink);
}

/* ===== الترقيم ===== */
.ins-shop.ins-v2 .installment-pagination {
    margin-top: 48px;
}

.ins-shop.ins-v2 .installment-pagination .page-link {
    min-width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px !important;
    background: none;
    color: var(--ink-soft);
    font-weight: 500;
    box-shadow: none;
}

.ins-shop.ins-v2 .installment-pagination .page-link:hover {
    background: var(--surface);
    color: var(--ink);
}

.ins-shop.ins-v2 .installment-pagination .page-item.active .page-link {
    background: var(--ink);
    color: #fff;
}

/* ===== استجابة ===== */
@media (max-width: 1199.98px) {
    .ins-shop.ins-v2 .v2-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 16px;
    }

    .ins-shop.ins-v2 .v2-trust li:nth-child(3) {
        padding-inline-start: 0;
        border-inline-start: 0;
    }
}

@media (max-width: 767.98px) {
    .ins-shop.ins-v2 .installment-hero-image,
    .ins-shop.ins-v2 .installment-hero-image__img {
        border-radius: 20px;
    }

    .ins-shop.ins-v2 .v2-trust {
        display: flex;
        gap: 0;
        margin: 14px -12px 4px;
        padding: 14px 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .ins-shop.ins-v2 .v2-trust::-webkit-scrollbar {
        display: none;
    }

    .ins-shop.ins-v2 .v2-trust li {
        flex: 0 0 auto;
        padding: 0 16px;
    }

    .ins-shop.ins-v2 .v2-trust li:nth-child(3) {
        padding-inline-start: 16px;
        border-inline-start: 1px solid var(--v2-line);
    }

    .ins-shop.ins-v2 .v2-trust i {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .ins-shop.ins-v2 .ins-toolbar {
        margin-bottom: 18px;
        padding-top: 10px;
    }

    .ins-shop.ins-v2 .ins-search {
        height: 46px;
    }

    .ins-shop.ins-v2 .ins-search input.ins-search__input[type="search"] {
        height: 44px;
        font-size: 14px;
    }

    .ins-shop.ins-v2 .ins-search__btn {
        height: 36px;
        padding: 0 14px;
    }

    .ins-shop.ins-v2 .installment-categories__item {
        padding: 10px 10px 12px;
        font-size: 14px;
    }

    .ins-shop.ins-v2 .installment-results-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ins-shop.ins-v2 .installment-results-head__title {
        font-size: 21px;
    }

    .ins-shop.ins-v2 .installment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .ins-shop.ins-v2 .installment-card__image {
        border-radius: 18px;
    }

    .ins-shop.ins-v2 .installment-card__name {
        font-size: 13.5px;
    }

    .ins-shop.ins-v2 .v2-monthly b {
        font-size: 19px;
    }

    .ins-shop.ins-v2 .v2-monthly .sicon-sar {
        font-size: 15px;
    }

    .ins-shop.ins-v2 .v2-total,
    .ins-shop.ins-v2 .installment-prices__plan {
        font-size: 12px;
    }

    .ins-shop.ins-v2 .installment-add .ins-add-btn {
        height: 42px;
        min-height: 42px;
        font-size: 13.5px;
        border-radius: 12px;
    }

    /* على الجوال لا يوجد hover: الزر مملوء دائمًا ليكون الفعل واضحًا */
    .ins-shop.ins-v2 .installment-add .ins-add-btn:not(:disabled) {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }
}

/* زر "تصفّح الأجهزة" ينزل للمنتجات تحت شريط البحث الثابت لا خلفه */
.ins-shop.ins-v2 #installment-products {
    scroll-margin-top: calc(var(--ub-h, 70px) + var(--tb-h, 120px) + 16px);
}

/* =====================================================================
   v2.1 - تنظيم منطقة التصفّح
   شريط واحد: تبويبات الأقسام + بحث مدمج في نفس السطر، أقسام فرعية كروابط هادئة،
   ترتيب كنص بسيط، والسلة شريط عائم أسفل الشاشة بدل العمود الجانبي.
   ===================================================================== */
.ins-shop.ins-v2 .ins-toolbar {
    padding-top: 0;
}

.ins-shop.ins-v2 .v2-toolbar-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ins-shop.ins-v2 .v2-toolbar-row > .installment-categories {
    flex: 1 1 auto;
    min-width: 0;
}

.ins-shop.ins-v2 .installment-categories-wrap {
    margin-top: 0;
}

.ins-shop.ins-v2 .installment-categories__item {
    padding: 18px 12px 18px;
}

.ins-shop.ins-v2 .v2-search {
    flex: 0 0 300px;
    margin: 0;
}

.ins-shop.ins-v2 .v2-search .ins-search {
    height: 42px;
    padding: 0;
    border-radius: 12px;
}

.ins-shop.ins-v2 .v2-search .ins-search input.ins-search__input[type="search"] {
    height: 40px;
    font-size: 14px;
}

.ins-shop.ins-v2 .v2-search .ins-search__btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin-inline-end: 5px;
    padding: 0;
    border-radius: 9px;
}

.ins-shop.ins-v2 .v2-search .ins-search__btn-text,
.ins-shop.ins-v2 .v2-search .ins-search__icon {
    display: none;
}

.ins-shop.ins-v2 .v2-search .ins-search input.ins-search__input[type="search"] {
    padding-inline-start: 14px;
}

/* الأقسام الفرعية: روابط هادئة، المختار بخلفية بنفسجية فاتحة (بدل الأسود) */
.ins-shop.ins-v2 .installment-categories--sub {
    padding: 10px 0 12px;
    gap: 4px;
}

.ins-shop.ins-v2 .installment-categories__sub-label {
    display: none;
}

.ins-shop.ins-v2 .installment-categories--sub .installment-categories__item {
    padding: 6px 14px;
    background: none;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.ins-shop.ins-v2 .installment-categories--sub .installment-categories__item:hover {
    background: var(--surface);
    color: var(--ink);
}

.ins-shop.ins-v2 .installment-categories--sub .installment-categories__item.is-active {
    background: var(--brand-tint);
    color: var(--brand) !important;
    font-weight: 600;
}

/* الترتيب: نص بسيط بجانب عدد النتائج */
.ins-shop.ins-v2 .installment-results-head {
    margin-bottom: 24px;
}

.ins-shop.ins-v2 .ins-sort {
    gap: 2px;
    padding: 0;
    background: none;
}

.ins-shop.ins-v2 .ins-sort__item {
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--ink-faint);
}

.ins-shop.ins-v2 .ins-sort__item:hover {
    color: var(--ink);
}

.ins-shop.ins-v2 .ins-sort__item.is-active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: none;
}

/* المنتجات بالعرض الكامل */
.ins-shop.ins-v2 .installment-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 24px;
}

.ins-shop.ins-v2 {
    padding-bottom: 120px !important;
}

/* ===== شريط السلة العائم (كل المقاسات) ===== */
/* السلة الفارغة لا تحتاج شريطًا يذكّر بها؛ أيقونة السلة أعلى الصفحة تكفي */
.ins-shop.ins-v2 .installment-cart-bar:has(.is-empty) {
    display: none !important;
}

@keyframes v2-bar-pulse {
    0% { transform: translateX(50%) scale(1); }
    40% { transform: translateX(50%) scale(1.04); }
    100% { transform: translateX(50%) scale(1); }
}

@media (min-width: 768px) {
    .ins-shop.ins-v2 .installment-cart-bar {
        position: fixed;
        bottom: 24px;
        right: 50%;
        z-index: 1040;
        display: flex;
        align-items: center;
        gap: 16px;
        width: min(620px, calc(100% - 220px));
        padding: 10px 10px 10px 14px;
        border-radius: 20px;
        border: 1px solid var(--v2-line);
        background: rgba(255, 255, 255, .97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 20px 50px -20px rgba(28, 23, 32, .35);
        transform: translateX(50%);
    }

    .ins-shop.ins-v2 .installment-cart-bar.is-pulse {
        animation: v2-bar-pulse .45s ease;
    }

    .ins-shop.ins-v2 .installment-cart-bar__content {
        display: contents;
    }

    .ins-shop.ins-v2 .installment-cart-bar__info {
        display: flex;
        align-items: center;
        gap: 12px;
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        margin: 0;
        padding: 4px;
        border: 0;
        background: none;
        text-align: start;
        cursor: pointer;
    }

    .ins-shop.ins-v2 .installment-cart-bar__thumbs {
        display: flex;
    }

    .ins-shop.ins-v2 .installment-cart-bar__thumb {
        width: 42px;
        height: 42px;
        padding: 4px;
        border-radius: 12px;
        border: 2px solid #fff;
        background: var(--surface);
        object-fit: contain;
    }

    .ins-shop.ins-v2 .installment-cart-bar__thumbs .installment-cart-bar__thumb:not(:first-child) {
        margin-inline-start: -12px;
    }

    .ins-shop.ins-v2 .installment-cart-bar__thumb--more {
        display: grid;
        place-items: center;
        background: var(--ink);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
    }

    .ins-shop.ins-v2 .installment-cart-bar__text {
        display: flex;
        flex-direction: column;
        line-height: 1.35;
    }

    .ins-shop.ins-v2 .installment-cart-bar__total {
        font-size: 17px;
        font-weight: 700;
        color: var(--ink);
    }

    .ins-shop.ins-v2 .installment-cart-bar__label {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12.5px;
        color: var(--ink-faint);
    }

    .ins-shop.ins-v2 .ins-bar-next {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 48px;
        padding: 0 24px;
        border-radius: 14px;
        background: var(--brand);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
    }

    .ins-shop.ins-v2 .ins-bar-next:hover {
        background: var(--brand-ink);
        color: #fff;
    }
}

@media (max-width: 1199.98px) {
    .ins-shop.ins-v2 .installment-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ins-shop.ins-v2 .v2-search {
        flex-basis: 240px;
    }
}

@media (max-width: 991.98px) {
    .ins-shop.ins-v2 .v2-toolbar-row {
        flex-wrap: wrap;
        gap: 0;
    }

    .ins-shop.ins-v2 .v2-search {
        order: -1;
        flex: 1 1 100%;
        padding-top: 10px;
    }
}

@media (max-width: 767.98px) {
    .ins-shop.ins-v2 .installment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
    }

    .ins-shop.ins-v2 .installment-categories__item {
        padding: 14px 10px;
    }

    .ins-shop.ins-v2 .installment-cart-bar.is-pulse {
        animation: none;
    }

    .ins-shop.ins-v2 .ins-bar-next {
        background: var(--brand);
        box-shadow: none;
    }
}

/* أيقونة السلة + عدد المنتجات في بداية الشريط العائم */
.ins-shop.ins-v2 .installment-cart-bar__icon {
    position: relative;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-tint);
    color: var(--brand);
}

.ins-shop.ins-v2 .installment-cart-bar__icon .si {
    font-size: 24px;
    line-height: 1;
}

.ins-shop.ins-v2 .installment-cart-bar__count {
    position: absolute;
    top: -6px;
    inset-inline-end: -6px;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    border: 2px solid #fff;
    background: var(--brand);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 767.98px) {
    .ins-shop.ins-v2 .installment-cart-bar__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .ins-shop.ins-v2 .installment-cart-bar__icon .si {
        font-size: 21px;
    }

    /* على الجوال: الأيقونة + العدد تكفي، والصور المصغّرة تزاحم الإجمالي وزر "التالي" */
    .ins-shop.ins-v2 .installment-cart-bar__thumbs {
        display: none;
    }
}

/* =====================================================================
   مزوّدو التقسيط في الهيدر: شريط أبيض واحد بثلاث خانات متساوية
   (الشعار بإطار موحّد + الرقم كبير + الوحدة صغيرة)، أفقي في كل المقاسات.
   ===================================================================== */
.ins-shop.ins-v2 .v3-hero__providers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-direction: row;
    gap: 0;
    margin-top: 28px;
    padding: 0;
    border: 1px solid var(--v2-line);
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.ins-shop.ins-v2 .v3-prov {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 10px 14px;
    text-align: center;
    font-size: inherit;
    color: var(--ink);
}

.ins-shop.ins-v2 .v3-prov + .v3-prov {
    border-inline-start: 1px solid var(--v2-line);
}

.ins-shop.ins-v2 .v3-prov__logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 28px;
}

.ins-shop.ins-v2 .v3-prov__logo img {
    max-width: 78px;
    max-height: 26px;
    object-fit: contain;
}

.ins-shop.ins-v2 .v3-prov--tabby .v3-prov__logo img {
    max-height: 24px;
    border-radius: 6px;
}

.ins-shop.ins-v2 .v3-prov__term {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.ins-shop.ins-v2 .v3-prov__term b {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--brand);
}

.ins-shop.ins-v2 .v3-prov__term small {
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--ink-soft);
}

@media (max-width: 767.98px) {
    .ins-shop.ins-v2 .v3-hero__providers {
        display: grid;
        flex-direction: row;
        margin-top: 22px;
        padding: 0;
        border-top: 1px solid var(--v2-line);
    }

    .ins-shop.ins-v2 .v3-prov {
        flex: initial;
        padding: 14px 6px 12px;
        gap: 8px;
    }

    .ins-shop.ins-v2 .v3-prov__logo {
        height: 22px;
    }

    .ins-shop.ins-v2 .v3-prov__logo img {
        max-width: 58px;
        max-height: 20px;
    }

    .ins-shop.ins-v2 .v3-prov__term b {
        font-size: 18px;
    }

    .ins-shop.ins-v2 .v3-prov__term small {
        font-size: 11px;
    }
}

.ins-shop.ins-v2 .v3-prov--tabby .v3-prov__logo img {
    transform: scale(1.3);
}

/* =====================================================================
   الهيدر التسويقي (mk-hero): وعد + 6 مزايا + جهاز بسعر تقريبي + المزوّدون
   ===================================================================== */
.ins-shop.ins-v2 .mk-hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
        "copy stage"
        "prov prov";
    gap: 32px 40px;
    padding: 52px 56px 36px;
    border-radius: 32px;
    background:
        radial-gradient(520px 360px at 8% 30%, rgba(255, 255, 255, .9), transparent 70%),
        linear-gradient(135deg, #fbf5fa 0%, #f1e3ee 100%);
    color: var(--ink);
}

.ins-shop.ins-v2 .mk-hero--text {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "prov";
}

.ins-shop.ins-v2 .mk-hero__copy {
    grid-area: copy;
    align-self: center;
}

.ins-shop.ins-v2 .mk-hero__title {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: var(--ink);
}

.ins-shop.ins-v2 .mk-hero__lead {
    max-width: 46ch;
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-soft);
}

.ins-shop.ins-v2 .mk-hero__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 16px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.ins-shop.ins-v2 .mk-hero__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ins-shop.ins-v2 .mk-hero__benefit-icon {
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    color: var(--brand);
    font-size: 20px;
    box-shadow: 0 1px 2px rgba(103, 7, 86, .08), 0 6px 16px -8px rgba(103, 7, 86, .25);
}

.ins-shop.ins-v2 .mk-hero__benefit-text {
    display: flex;
    flex-direction: column;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ink-faint);
}

.ins-shop.ins-v2 .mk-hero__benefit-text b {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
}

.ins-shop.ins-v2 .mk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    margin-top: 32px;
}

.ins-shop.ins-v2 .mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 600;
}

.ins-shop.ins-v2 .mk-btn--primary {
    min-height: 54px;
    padding: 0 30px;
    border-radius: 16px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 30px -14px rgba(103, 7, 86, .7);
    transition: background .15s ease, transform .15s ease;
}

.ins-shop.ins-v2 .mk-btn--primary:hover {
    background: var(--brand-ink);
    color: #fff;
    transform: translateY(-1px);
}

.ins-shop.ins-v2 .mk-btn--link {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: rgba(28, 23, 32, .25);
}

.ins-shop.ins-v2 .mk-btn--link:hover {
    color: var(--brand);
    text-decoration-color: var(--brand);
}

/* الجهاز + بطاقة السعر */
.ins-shop.ins-v2 .mk-hero__stage {
    grid-area: stage;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 420px;
    color: var(--ink);
}

.ins-shop.ins-v2 .mk-hero__glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .6) 45%, transparent 70%);
}

.ins-shop.ins-v2 .mk-hero__device {
    position: relative;
    max-width: 82%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(79, 4, 66, .25));
    transition: transform .4s ease;
}

.ins-shop.ins-v2 .mk-hero__stage:hover .mk-hero__device {
    transform: translateY(-4px);
}

.ins-shop.ins-v2 .mk-tag {
    position: absolute;
    bottom: 18px;
    inset-inline-end: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 40px -18px rgba(28, 23, 32, .35);
}

.ins-shop.ins-v2 .mk-tag__name {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.ins-shop.ins-v2 .mk-tag__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.ins-shop.ins-v2 .mk-tag__price b {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--brand);
}

.ins-shop.ins-v2 .mk-tag__price .sicon-sar {
    color: var(--brand);
}

.ins-shop.ins-v2 .mk-tag__note {
    font-size: 11px;
    color: var(--ink-faint);
}

.ins-shop.ins-v2 .mk-hero__providers {
    grid-area: prov;
    margin: 0;
}

@media (max-width: 1199.98px) {
    .ins-shop.ins-v2 .mk-hero {
        padding: 44px 40px 32px;
    }

    .ins-shop.ins-v2 .mk-hero__benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .ins-shop.ins-v2 .mk-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "stage"
            "copy"
            "prov";
        gap: 20px;
    }

    .ins-shop.ins-v2 .mk-hero__stage {
        min-height: 320px;
    }

    .ins-shop.ins-v2 .mk-hero__device {
        max-height: 300px;
    }

    .ins-shop.ins-v2 .mk-hero__glow {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .ins-shop.ins-v2 .mk-hero {
        padding: 22px 18px 20px;
        border-radius: 24px;
        gap: 16px;
    }

    .ins-shop.ins-v2 .mk-hero__stage {
        min-height: 260px;
    }

    .ins-shop.ins-v2 .mk-hero__device {
        max-width: 62%;
        max-height: 240px;
    }

    .ins-shop.ins-v2 .mk-tag {
        bottom: 6px;
        padding: 10px 14px;
        border-radius: 14px;
    }

    .ins-shop.ins-v2 .mk-tag__price b {
        font-size: 21px;
    }

    .ins-shop.ins-v2 .mk-hero__title {
        font-size: 26px;
    }

    .ins-shop.ins-v2 .mk-hero__lead {
        font-size: 15px;
        margin-top: 10px;
    }

    .ins-shop.ins-v2 .mk-hero__benefits {
        gap: 14px 10px;
        margin-top: 22px;
    }

    .ins-shop.ins-v2 .mk-hero__benefits li {
        gap: 9px;
    }

    .ins-shop.ins-v2 .mk-hero__benefit-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 17px;
    }

    .ins-shop.ins-v2 .mk-hero__benefit-text {
        font-size: 11.5px;
    }

    .ins-shop.ins-v2 .mk-hero__benefit-text b {
        font-size: 13px;
    }

    .ins-shop.ins-v2 .mk-hero__actions {
        margin-top: 22px;
    }

    .ins-shop.ins-v2 .mk-btn--primary {
        flex: 1 1 100%;
        min-height: 50px;
    }

    .ins-shop.ins-v2 .mk-btn--link {
        flex: 1 1 100%;
        font-size: 14px;
    }
}

/* بطاقة المنتج: القسط الشهري لتمام فقط (3000 ﷼ فأكثر). تحت ذلك: سعر التقسيط وحده كسعر رئيسي */
.ins-shop.ins-v2 .installment-prices .v2-plain-label {
    display: none;
}

.ins-shop.ins-v2 .installment-prices.is-no-monthly .v2-monthly-label,
.ins-shop.ins-v2 .installment-prices.is-no-monthly .v2-monthly,
.ins-shop.ins-v2 .installment-prices.is-no-monthly .v2-total__label {
    display: none;
}

.ins-shop.ins-v2 .installment-prices.is-no-monthly .v2-plain-label {
    display: inline;
}

.ins-shop.ins-v2 .installment-prices.is-no-monthly .v2-total {
    margin-top: 2px;
    gap: 5px;
    color: var(--ink);
    line-height: 1.25;
}

.ins-shop.ins-v2 .installment-prices.is-no-monthly .installment-prices__plan {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.ins-shop.ins-v2 .installment-prices.is-no-monthly .v2-total .sicon-sar {
    font-size: 18px;
}

@media (max-width: 767.98px) {
    .ins-shop.ins-v2 .installment-prices.is-no-monthly .installment-prices__plan {
        font-size: 19px;
    }

    .ins-shop.ins-v2 .installment-prices.is-no-monthly .v2-total .sicon-sar {
        font-size: 15px;
    }
}

/* صور المنتجات بخلفية بيضاء (مثل صورة الآيباد) تذوب في خلفية الهيرو بدل ظهور مربع أبيض */
.ins-shop.ins-v2 .mk-hero__device {
    mix-blend-mode: multiply;
}
