/* ==========================================
1. المتغيرات والأساسيات
   ========================================== */
:root {
    --bg-dark: #090909;
    --card-dark: #121212;
    --primary-pink: #fa0060;
    --primary-pink-hover: #fa0060;
    --text-main: #ffffff;
    --text-sub: #9ca3af;
    --border-sub: rgba(255, 255, 255, 0.08);
    --color-background: #090909 !important;
    --header-main-color: #090909 !important;
    --header-menu-color: #090909 !important;
    --header-sidemenu-color: #090909 !important;
}

html,
body,
body#app,
.app-inner,
main {
    background-color: var(--bg-dark) !important;
    color: var(--text-main) !important;
}

/* ==========================================
2. الهيدر والقوائم (عائم في البي سي وثابت بالأعلى في الجوال)
   ========================================== */
.kayan-header {
    background: rgba(18, 18, 18, 0.95) !important;
    border-radius: 20px !important;
    max-width: 94% !important;
    margin: 8px auto !important;
    border: 1px solid var(--border-sub) !important;
    position: sticky !important;
    top: 8px !important;
    z-index: 40 !important;
}

.kayan-header .container > div { 
    min-height: 48px !important; 
    padding: 4px 0 !important; 
    display: flex !important; 
    flex-direction: row !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    flex-wrap: nowrap !important; 
}

.kayan-header .w-24 { 
    width: 60px !important; 
    height: auto !important; 
}

.kayan-header i, 
.kayan-header svg, 
.kayan-header a, 
.kayan-header span { 
    color: #f3f3f1 !important; 
    fill: #f3f3f1 !important; 
}

.kayan-header input { 
    background: rgba(255, 255, 255, 0.05) !important; 
    color: var(--text-main) !important; 
    border: 1px solid rgba(255, 255, 255, 0.12) !important; 
}

@media (max-width: 1023px) {
    /* إبقاء الهيدر ثابتاً في أعلى الصفحة بالجوال */
    .kayan-header {
        position: relative !important;
        top: auto !important;
    }

    body > .app-inner > div.navbar,
    div.navbar.fixed {
        z-index: 99999 !important;
        background: radial-gradient(circle at top center, rgba(250, 0, 96, 0.14) 0%, #0d0d0d 45%, #090909 100%) !important;
        background-color: #090909 !important;
        color: var(--text-main) !important;
        padding: 14px 16px calc(24px + env(safe-area-inset-bottom)) !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow-y: auto !important;
    }

    body > .app-inner > div.navbar > .container {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    div.navbar .kayan-menu-close {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.14) !important;
        color: #ffffff !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 0 !important;
    }

    div.navbar .refat-mobile-menu-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        position: relative !important;
        padding: 2px 0 8px !important;
    }

    div.navbar .refat-mobile-menu-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        height: 44px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    div.navbar .search {
        background: transparent !important;
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }

    div.navbar .search > div,
    div.navbar .search > div > div,
    div.navbar .kayan-search,
    div.navbar .s-search-container,
    div.navbar .s-search-input-wrapper {
        width: 100% !important;
        display: block !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    div.navbar .s-search-input-wrapper input.s-search-input {
        width: 100% !important;
        height: 44px !important;
        background-color: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(250, 0, 96, 0.45) !important;
        border-radius: 999px !important;
        padding: 0 44px 0 16px !important;
        color: #ffffff !important;
        font-size: 0.92rem !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    }

    div.navbar .s-search-icon-wrap {
        position: absolute !important;
        right: 16px !important;
        left: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
        pointer-events: none !important;
        display: flex !important;
        align-items: center !important;
    }

    div.navbar .s-search-icon i {
        color: var(--primary-pink) !important;
        font-size: 1.05rem !important;
    }

    div.navbar ul.kayan-navbar-dropdown {
        background: transparent !important;
        width: 100% !important;
        margin-top: 6px !important;
        margin-bottom: 8px !important;
        padding: 0 !important;
    }

    div.navbar ul.kayan-navbar-dropdown > li {
        padding: 10px 6px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100% !important;
    }

    div.navbar ul.kayan-navbar-dropdown > li > a {
        color: #ffffff !important;
        font-size: 0.96rem !important;
        font-weight: 700 !important;
        flex: 1 !important;
        padding: 0 !important;
        border: none !important;
    }

    div.navbar ul.kayan-navbar-dropdown > li:active > a,
    div.navbar ul.kayan-navbar-dropdown > li:hover > a {
        color: var(--primary-pink) !important;
    }

    div.navbar ul.kayan-navbar-dropdown > li > img {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        padding: 8px !important;
        border-radius: 50% !important;
        background-color: rgba(250, 0, 96, 0.08) !important;
        border: 1px solid rgba(250, 0, 96, 0.38) !important;
        object-fit: contain !important;
        filter: brightness(0) invert(1) !important;
    }

    .refat-cat-badge {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        padding: 3px 9px !important;
        border-radius: 999px !important;
        margin-right: auto !important;
        white-space: nowrap !important;
    }
    .refat-cat-badge--offline {
        background: rgba(250, 0, 96, 0.14) !important;
        border: 1px solid rgba(250, 0, 96, 0.4) !important;
        color: #fa0060 !important;
    }
    .refat-cat-badge--online {
        background: rgba(56, 189, 248, 0.14) !important;
        border: 1px solid rgba(56, 189, 248, 0.4) !important;
        color: #38bdf8 !important;
    }

    .refat-mobile-menu-footer {
        margin-top: auto !important;
        padding-top: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .refat-mobile-quick-title {
        color: #9ca3af !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        padding: 0 4px !important;
    }

    .refat-mobile-quick-link {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        color: #f3f4f6 !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        padding: 4px !important;
        text-decoration: none !important;
    }

    .refat-mobile-quick-link i {
        color: var(--primary-pink) !important;
        font-size: 1.05rem !important;
    }

    .refat-mobile-whatsapp-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        height: 44px !important;
        margin-top: 4px !important;
        border-radius: 14px !important;
        background: linear-gradient(90deg, #86efac 0%, #6ee7b7 100%) !important;
        color: #064e3b !important;
        font-size: 0.95rem !important;
        font-weight: 800 !important;
        text-decoration: none !important;
        box-shadow: 0 6px 20px rgba(110, 231, 183, 0.25) !important;
    }

    .refat-mobile-whatsapp-btn span,
    .refat-mobile-whatsapp-btn i {
        color: #064e3b !important;
    }
}

@media (min-width: 1024px) {
    .navbar { 
        background: transparent !important; 
        box-shadow: none !important; 
        padding: 0 !important; 
    }
    .kayan-full-navbar a { 
        font-size: 0.85rem !important; 
        font-weight: 600 !important; 
        color: #d1d5db !important; 
        padding: 2px 10px !important; 
    }
    .kayan-full-navbar a:hover { 
        color: var(--primary-pink) !important; 
    }
    .refat-mobile-menu-logo,
    .refat-mobile-menu-footer,
    .refat-cat-badge {
        display: none !important;
    }
}

/* ==========================================
3. ضبط صور البطاقات وإلغاء الفراغ (تسريع العرض)
   ========================================== */
.s-product-slider, 
.product-slider, 
salla-slider, 
.s-product-card-image, 
.product-details-image, 
.product-images-wrapper,
.swiper-slide,
.magnify-wrapper,
[data-fancybox],
.swiper-wrapper,
.s-slider-container {
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    margin: 0 auto !important; 
    width: 100% !important;
}

custom-salla-product-card a:first-child,
.kayan-card > a:first-child,
.s-product-card-image,
.game-image-wrapper {
    aspect-ratio: auto !important; 
    height: auto !important; 
    flex: 0 0 auto !important; 
    display: block !important; 
    overflow: hidden !important; 
    border-radius: 14px !important; 
    margin-bottom: 0 !important; 
    transform: translateZ(0);
}

custom-salla-product-card img,
.kayan-card img,
.s-product-card-image img,
img.game-image,
img.group-hover\:scale-110 {
    width: 100% !important; 
    max-height: 125px !important; 
    height: 125px !important; 
    object-fit: cover !important; 
    border-radius: 14px !important; 
    display: block !important; 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
}

/* ==========================================
4. تباين الأزرار والألوان + عبارة أضف للسلة في الجوال
   ========================================== */
.btn-primary,
.add-to-cart-btn {
    background-color: var(--primary-pink) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

.btn-primary:hover,
.add-to-cart-btn:hover {
    background-color: var(--primary-pink-hover) !important;
}

@media (max-width: 767px) {
    custom-salla-product-card salla-add-product-button .s-button-element,
    .kayan-card salla-add-product-button .s-button-element,
    .s-product-card-entry salla-add-product-button .s-button-element {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        padding: 8px 10px !important;
    }

    custom-salla-product-card salla-add-product-button .s-button-text,
    .kayan-card salla-add-product-button .s-button-text,
    .s-product-card-entry salla-add-product-button .s-button-text {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        clip: auto !important;
        overflow: visible !important;
        position: static !important;
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        white-space: nowrap !important;
    }
}

.discount-badge {
    background-color: #180a12 !important;
    color: #fa0060 !important;
    border: 1px solid rgba(250, 0, 96, 0.5) !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
}

.product-status,
.product-status__item,
.product-status__item--sold,
div[class*="product-status"] {
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
    margin: 6px 0 !important; 
    color: var(--primary-pink) !important; 
    font-size: 0.85rem !important; 
    font-weight: 600 !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 6px !important;
}

.product-status__item,
.product-status__item--sold {
    color: var(--primary-pink) !important;
}

/* ==========================================
5. الحقول والقوائم المنسدلة وخيارات المنتجات
   ========================================== */
select, select.form-control, [dir="rtl"] select.form-select {
    background-color: var(--card-dark) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fa0060' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important; 
    background-position: left 0.75rem center !important; 
    background-size: 14px 10px !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    color: var(--text-main) !important; 
    border-radius: 10px !important; 
    padding: 10px 14px !important; 
    width: 100% !important; 
    outline: none !important; 
    appearance: none !important;
}
select option { background-color: var(--card-dark) !important; color: var(--text-main) !important; }

input[type="text"], input[type="number"], input[type="tel"], input[type="email"], textarea {
    background-color: var(--card-dark) !important; 
    background-image: none !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    color: var(--text-main) !important; 
    border-radius: 10px !important; 
    padding: 10px 14px !important; 
    width: 100% !important; 
    outline: none !important; 
}
input:focus, textarea:focus, select:focus { 
    border-color: var(--primary-pink) !important; 
    box-shadow: 0 0 8px rgba(250, 0, 96, 0.25) !important; 
}

.product-option-item, .s-product-options-wrapper, .s-product-options-option-content { 
    background-color: transparent !important; 
    color: var(--text-main) !important; 
}
.s-product-options-title, .product-option-item label, .s-product-options-wrapper label { 
    color: #f3f3f1 !important; 
    margin-bottom: 6px !important; 
    display: inline-block !important; 
}
.s-product-option-nav label, .s-product-options-single-choice label, .product-option-selector, .s-checkbox {
    background-color: var(--card-dark) !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    color: #f3f3f1 !important; 
    border-radius: 8px !important;
}
.s-product-option-nav input:checked + label, .s-product-options-single-choice input:checked + label, .product-option-selector.active {
    background-color: rgba(250, 0, 96, 0.18) !important; 
    border-color: var(--primary-pink) !important; 
    color: var(--primary-pink) !important; 
}

/* ==========================================
6. الكاش باك وصندوق الإهداء (توضيح النص والرقم)
   ========================================== */
salla-cashback-banner:empty, .s-cashback-banner-container:empty { display: none !important; }
salla-cashback-banner { background: transparent !important; border: none !important; padding: 0 !important; display: block !important; }
.s-cashback-banner-container, salla-loyalty-customer-prize {
    background: rgba(250, 0, 96, 0.08) !important; 
    border: 1px solid var(--primary-pink) !important; 
    border-radius: 12px !important; 
    padding: 10px 16px !important; 
    margin: 10px 0 !important; 
    color: #ffffff !important;
}
.s-cashback-banner-container * {
    color: #ffffff !important;
}
.s-cashback-banner-container i,
.s-cashback-banner-container svg,
.s-cashback-banner-container span,
.s-cashback-banner-container b,
.s-cashback-banner-container strong,
.s-cashback-banner-container [class*="price"],
.s-cashback-banner-container [class*="amount"] { 
    color: #ff4d8d !important; 
    fill: #ff4d8d !important; 
    font-weight: 800 !important; 
}

/* ==========================================
7. بطاقات صفحات الحساب والطلبات
   ========================================== */
.s-cart-summary-card-sheet, div[class*="shadow-default"].bg-white,
nav.shrink-0, salla-user-menu, .s-notifications-item, div[class*="order-item"], salla-wallet {
    background-color: var(--card-dark) !important; 
    border: 1px solid var(--border-sub) !important; 
    border-radius: 14px !important; 
    color: var(--text-main) !important; 
}
.profile-header, .gradient-bg, div:has(> .breadcrumbs) { background: transparent !important; box-shadow: none !important; }
.breadcrumbs, .breadcrumbs a { color: var(--text-sub) !important; }
.s-user-menu-dropdown-item-link, [class*="s-user-menu"] span { color: #d1d5db !important; background: transparent !important; }
.s-user-menu-dropdown-item-link:hover, .s-user-menu-dropdown-item-link.is-active { 
    background-color: rgba(250, 0, 96, 0.12) !important; 
    color: var(--primary-pink) !important; 
}
salla-user-menu i, salla-user-menu svg { color: var(--primary-pink) !important; fill: var(--primary-pink) !important; }

table.s-orders-table, table.s-wallet-table { background: transparent !important; border-collapse: separate !important; border-spacing: 0 8px !important; }
table th { background: #0d0d0d !important; color: var(--text-sub) !important; padding: 10px 14px !important; }
table td { background: var(--card-dark) !important; color: var(--text-main) !important; padding: 12px 14px !important; }
table td:first-child { border-radius: 0 10px 10px 0 !important; }
table td:last-child { border-radius: 10px 0 0 10px !important; }

/* ==========================================
8. حل مشكلة انزياح العناصر (CLS) والشعار والذيل
   ========================================== */
.s-block, section:not(footer), .app-inner > section:not(footer), .app-inner > div:not(footer) { 
    margin-top: 0 !important; 
    margin-bottom: 8px !important; 
    padding: 2px 0 !important; 
}
.app-inner { gap: 0 !important; }
div.custom-bar { display: none !important; }

@media (min-width: 1024px) {
    section.s-block--bundle-trending-games-slider,
    [component-id="161596645"] {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    section.s-block--bundle-trending-games-slider,
    [component-id="161596645"] {
        position: relative !important;
        z-index: 1 !important;
        min-height: 310px !important;
        contain: layout paint !important;
        display: block !important;
        overflow: hidden !important; 
    }
}

section.s-block--bundle-gaming-hub,
[component-id="2036861418"] {
    min-height: 420px !important;
    contain: layout paint !important;
    display: block !important; 
}

section.s-block--bundle-coverflow-carousel-v2, 
salla-coverflow-carousel-v2 {
    min-height: 240px !important; 
    height: auto !important; 
    overflow: hidden !important; 
    margin-bottom: 10px !important; 
}

.row-section { min-height: 260px !important; }

.kayan-header img,
.kayan-header img[alt*="ReFat Store logo"] {
    content: url("https://cdn.files.salla.network/other/1334737755/d9f31da9-8c39-49a9-84bd-44717d871066-original.webp") !important;
    aspect-ratio: 600 / 200 !important; 
    max-height: 46px !important; 
    width: auto !important; 
}

img.s-trust-badges-image {
    width: 80px !important; 
    height: auto !important; 
    aspect-ratio: 160 / 72 !important; 
    object-fit: contain !important; 
    display: inline-block;
}

footer, footer.kayan-footer, .s-footer {
    background-color: #0e0e0e !important; 
    border-radius: 24px 24px 0 0 !important; 
    margin-top: 24px !important; 
    padding: 26px 24px 16px !important; 
    border-top: 1px solid var(--border-sub) !important; 
    color: #e5e7eb !important; 
}
footer a, .s-footer a { color: #e5e7eb !important; }
footer a:hover { color: var(--primary-pink) !important; }
footer hr { border-color: rgba(255, 255, 255, 0.06) !important; }

footer.kayan-footer h5 {
    font-size: 1.05rem !important;
    margin-bottom: 12px !important;
    color: #ffffff !important;
}

footer.kayan-footer ul.flex-col {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 24px !important;
    width: 100% !important;
}

footer.kayan-footer ul.flex-col li a {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
}

footer.kayan-footer salla-payments .s-payments-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    align-items: center !important;
}

footer.kayan-footer salla-payments .s-payments-list-item img,
footer.kayan-footer salla-payments img {
    max-height: 24px !important;
    width: auto !important;
}

footer.kayan-footer .kayan-copyright {
    position: static !important;
    transform: none !important;
    text-align: center !important;
    margin-top: 18px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
}

footer.kayan-footer .kayan-copyright p {
    font-size: 0.85rem !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    footer.kayan-footer .container {
        max-width: 1360px !important;
        width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    footer.kayan-footer .container > div:first-child {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 40px !important;
        width: 100% !important;
    }
    footer.kayan-footer .container > div:first-child > div:first-child {
        max-width: 440px !important;
        flex: 1 1 36% !important;
        gap: 10px !important;
    }
    footer.kayan-footer .container > div:first-child > div:nth-child(2) {
        flex: 1 1 36% !important;
    }
    footer.kayan-footer .container > div:first-child > div:nth-child(3) {
        flex: 0 1 auto !important;
    }
    footer.kayan-footer ul.flex-col {
        text-align: right !important;
    }
    footer.kayan-footer .container > div:first-child > div:first-child > div.flex.flex-col.gap-4 {
        gap: 8px !important;
    }
}

@media (max-width: 767px) {
    footer.kayan-footer {
        padding: 18px 16px 14px !important;
    }
    footer.kayan-footer .border-b-\[1px\] {
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    footer.kayan-footer .container > div:first-child > div:first-child {
        gap: 10px !important;
    }
    footer.kayan-footer .container > div:first-child > div:first-child > div.flex.flex-col.gap-4 {
        gap: 8px !important;
    }
    footer.kayan-footer p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        text-align: center !important;
    }
    footer.kayan-footer ul.flex-col {
        gap: 8px 12px !important;
        text-align: center !important;
    }
    footer.kayan-footer ul.flex-col li a {
        font-size: 0.92rem !important;
    }
    footer.kayan-footer salla-payments .s-payments-list {
        justify-content: center !important;
    }
}

salla-slider:has(img[src*="s-empty"]),
salla-slider:has(img[data-src*="s-empty"]),
.s-block--categories-banner-slider:has(img[src*="s-empty"]) {
    display: none !important; 
    height: 0 !important; 
    margin: 0 !important; 
    padding: 0 !important; 
}

.container > div.flex.items-start {
    margin-top: 10px !important; 
    padding-top: 0 !important; 
}

.s-product-card-title,
.s-product-card-title a,
custom-salla-product-card h3,
div.s-product-card-content > h3 {
    display: -webkit-box !important; 
    visibility: visible !important; 
    opacity: 1 !important; 
}

/* ==========================================
9. صفحات المقالات والشروط
   ========================================== */
body.bg-light main,
main .container > div,
.s-block--static-page,
.s-block--blog-single,
article,
article.bg-white,
.article-content,
.blog-category-wrapper,
div:has(> .article-content),
div:has(> article),
.container .bg-white {
    background-color: var(--card-dark) !important; 
    border: 1px solid var(--border-sub) !important; 
    border-radius: 16px !important; 
    box-shadow: none !important; 
}

article,
.article-content,
.s-block--static-page,
.s-block--blog-single {
    color: #ffffff !important;
}

article h1, article h2, article h3, article h4,
.article-content h1, .article-content h2, .article-content h3 {
    color: #ffffff !important; 
    font-weight: bold !important; 
}

article p, article span, article div,
.article-content p, .article-content span {
    color: #e2e8f0 !important; 
    line-height: 1.9 !important; 
}

article a, .article-content a { color: var(--primary-pink) !important; }

article img, .article-content img {
    border-radius: 12px !important; 
    margin: 15px auto !important; 
    max-width: 100%; 
    height: auto; 
}

/* ==========================================
10. محاذاة الكرت والبيانات أسفل الصورة
   ========================================== */
custom-salla-product-card { display: block !important; height: 100% !important; }
.kayan-card { display: flex !important; flex-direction: column !important; height: 100% !important; }
.kayan-card > div.px-6.py-2.text-center {
    display: flex !important; 
    flex-direction: column !important; 
    flex: 1 1 auto !important; 
    min-height: auto !important; 
    padding-top: 8px !important; 
    padding-bottom: 8px !important; 
}
.kayan-card div.s-product-card-rating {
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    height: 20px !important; 
    min-height: 20px !important; 
    margin: 4px 0 !important; 
}
.kayan-card > div.px-6.py-2.text-center:not(:has(.s-product-card-rating))::before {
    content: ""; 
    display: block; 
    height: 20px; 
    min-height: 20px; 
    margin: 4px 0; 
    order: 2; 
}
.kayan-card > div.px-6.py-2.text-center > a { order: 1; }
.kayan-card > div.px-6.py-2.text-center > div.s-product-card-rating { order: 2; }
.kayan-card > div.px-6.py-2.text-center > span.text-sm { order: 3; margin-top: 4px !important; display: block !important; }
.kayan-card > salla-add-product-button { margin-top: auto !important; width: 100% !important; }

/* ==========================================
11. إظهار نصوص التقييمات باللون الأبيض
   ========================================== */
salla-rating-stars,
salla-rating-stars span,
.s-product-card-rating span,
span[class*="text-gray-400"] {
    color: #ffffff !important; 
}
salla-comments,
.s-comments-item,
.s-comments-item-content p,
.s-comments-item-content span,
.s-comment-author,
.s-comment-date {
    color: #f3f3f1 !important; 
}
.s-rating-summary {
    color: #ffffff !important; 
}

/* ==========================================
12. إظهار عدد مرات الشراء وتلوينه
   ========================================== */
[class*="total-sold"],
.s-product-card-sold,
.product-sold-count,
.s-sold-item {
    display: inline-flex !important; 
    color: var(--primary-pink) !important; 
    font-size: 0.85rem !important; 
    font-weight: 600 !important; 
    visibility: visible !important; 
    opacity: 1 !important; 
}

/* ==========================================
13. ضبط صندوق (كمّل طلبك)
   ========================================== */
salla-bought-together,
.s-bought-together,
.s-bought-together-wrapper {
    background-color: var(--card-dark) !important; 
    border: 1px solid var(--border-sub) !important; 
    border-radius: 14px !important; 
    color: var(--text-main) !important; 
    padding: 16px !important; 
    margin: 15px 0 !important; 
}
salla-bought-together h3,
salla-bought-together h4,
.s-bought-together-header-title,
.s-bought-together-item-title {
    color: #ffffff !important; 
    font-weight: 700 !important; 
}
salla-bought-together [class*="price"],
.s-bought-together-total-price {
    color: var(--primary-pink) !important; 
    font-weight: bold !important; 
}
salla-bought-together input[type="checkbox"] { accent-color: var(--primary-pink) !important; }
salla-bought-together salla-button,
salla-bought-together button,
.s-bought-together-btn {
    background-color: var(--primary-pink) !important; 
    border-color: var(--primary-pink) !important; 
    color: #ffffff !important; 
    border-radius: 10px !important; 
    font-weight: 700 !important; 
}
salla-bought-together salla-button:hover,
salla-bought-together button:hover {
    background-color: var(--primary-pink-hover) !important; 
}
salla-bought-together img {
    border-radius: 8px !important; 
    border: 1px solid var(--border-sub) !important; 
}

/* ==========================================
14. ضبط صفحة نظام الولاء بالكامل
   ========================================== */
body.loyalty,
body.loyalty.bg-\[\#f7f5ef\],
body.loyalty main,
body.loyalty .app-inner {
    background-color: var(--bg-dark) !important; 
    background: var(--bg-dark) !important; 
    color: var(--text-main) !important; 
}
salla-loyalty-program :where(section, div, ul, li) {
    background-color: transparent !important; 
    background-image: none !important; 
    box-shadow: none !important; 
    border-color: var(--border-sub) !important; 
}
salla-loyalty-program [class*="banner"] :where(h1, h2, h3),
salla-loyalty-program [class*="banner"] :where(h1, h2, h3) + p,
salla-loyalty-program [class*="banner"] > div:not(:has(button, salla-button, a)) {
    display: none !important; 
}
salla-loyalty-program [class*="banner"] div:has(> button, > salla-button, > a),
salla-loyalty-program div:has(> button, > salla-button):not(:has(div:has(> button, > salla-button))):not(:has(img, svg, i)) {
    background: linear-gradient(135deg, #1a0b12 0%, #121212 100%) !important; 
    border: 1px solid rgba(250, 0, 96, 0.4) !important; 
    border-radius: 16px !important; 
    padding: 18px 24px !important; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important; 
    margin-top: 10px !important; 
}
salla-loyalty-program [class*="grid"] > div,
salla-loyalty-program div:has(> div:nth-child(1) :is(button, salla-button, a)):has(> div:nth-child(2) :is(button, salla-button, a)) > div {
    background-color: var(--card-dark) !important; 
    border: 1px solid var(--border-sub) !important; 
    border-radius: 16px !important; 
    padding: 22px 18px !important; 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important; 
}
salla-loyalty-program div:has(> i:only-child),
salla-loyalty-program div:has(> svg:only-child) {
    background-color: rgba(250, 0, 96, 0.12) !important; 
    border: 1px solid rgba(250, 0, 96, 0.3) !important; 
    border-radius: 50% !important; 
    width: 48px !important; 
    height: 48px !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    margin-bottom: 8px !important; 
}
salla-loyalty-program div:has(img):has(button, salla-button):not(:has(h2)):not(:has(div:has(img):has(button, salla-button))) {
    background-color: var(--card-dark) !important; 
    border: 1px solid var(--border-sub) !important; 
    border-radius: 16px !important; 
    padding-bottom: 16px !important; 
    overflow: hidden !important; 
}
salla-loyalty-program :where(h1, h2, h3, h4, h5, h6, strong, div) { color: #ffffff !important; }
salla-loyalty-program :where(p, span) { color: var(--text-sub) !important; }
salla-loyalty-program [class*="step-number"],
salla-loyalty-program .text-gray-100,
salla-loyalty-program .text-gray-200 { color: rgba(255, 255, 255, 0.06) !important; }
salla-loyalty-program svg,
salla-loyalty-program i,
salla-loyalty-program :has(> i, > svg):not(div:has(button, salla-button)) {
    color: var(--primary-pink) !important; 
    fill: var(--primary-pink) !important; 
}
salla-loyalty-program :where(button[disabled], [disabled], [class*="complete"], [class*="success"], [class*="green"]) {
    background-color: #10b981 !important; 
    border: 1px solid #10b981 !important; 
    color: #ffffff !important; 
    border-radius: 10px !important; 
    font-weight: 700 !important; 
}
salla-loyalty-program .btn-primary:not([disabled]),
salla-loyalty-program button[class*="primary"]:not([disabled]),
salla-loyalty-program salla-button:not([disabled]),
salla-loyalty-program a[href] {
    background-color: var(--primary-pink) !important; 
    border: 1px solid var(--primary-pink) !important; 
    color: #ffffff !important; 
    border-radius: 10px !important; 
    font-weight: 700 !important; 
    box-shadow: 0 4px 12px rgba(250, 0, 96, 0.25) !important; 
}
salla-loyalty-program > div > div > button:not([class*="primary"]),
salla-loyalty-program section > div > button:not([class*="primary"]) {
    background-color: rgba(250, 0, 96, 0.12) !important; 
    border: 1px solid var(--primary-pink) !important; 
    color: #ffffff !important; 
    border-radius: 10px !important; 
    padding: 8px 24px !important; 
}

/* ==========================================
15. تخصيص صفحة المنتج + حركة السحب في الجوال + السعر المخفض
   ========================================== */
@media (max-width: 767px) {
    body.product-single nav.breadcrumbs { display: none !important; }
    body.product-single .container,
    body.product-single .container > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    body.product-single .sidebar {
        padding-bottom: 0 !important;
        margin: 0 !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1 !important;
        max-height: 330px !important;
        overflow: hidden !important;
        will-change: transform, opacity;
    }
    body.product-single .details-slider,
    body.product-single .details-slider .swiper-slide,
    body.product-single .details-slider img {
        border-radius: 0 !important;
        max-height: 330px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
}

body.product-single .main-content {
    background-color: var(--card-dark) !important;
    border: 1px solid var(--border-sub) !important;
    border-radius: 26px !important;
    padding: 50px 18px 28px !important;
    margin-top: -24px !important;
    position: relative !important;
    z-index: 15 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.75) !important;
}

body.product-single .main-content::before {
    content: "⚡ تسليم فوري وتلقائي";
    position: absolute;
    top: 0; right: 0; left: 0;
    background: linear-gradient(90deg, #fa0060 0%, #ff3b5c 100%);
    color: #ffffff;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 12px;
}

body.product-single .main-content > * { order: 20; }
body.product-single .main-content h1 { order: 1; font-size: 1.2rem !important; line-height: 1.6 !important; margin-bottom: 8px !important; color: #ffffff !important; }
body.product-single .refat-badges-row { order: 2; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
body.product-single .main-content > salla-rating-stars { order: 3; }

/* تثبيت موقع السعر (عادي أو مخفض مع السعر القديم) */
body.product-single .main-content > div:has(h4):not(.product__description):not(.refat-badges-row) {
    order: 4 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 4px 0 8px !important;
}

body.product-single .main-content > .product-status { order: 5; }
body.product-single .main-content > form.product-form { order: 6; }
body.product-single .main-content > salla-quick-order { order: 7; }
body.product-single .main-content > .product__description { order: 8; margin-top: 18px !important; padding: 0 !important; }

/* شريط الكاش باك ونقاط الولاء أسفل الأزرار والوصف */
body.product-single .main-content > salla-cashback-banner { order: 9 !important; }
body.product-single .main-content > salla-loyalty-customer-prize { order: 10 !important; }

body.product-single .main-content > div.mb-2:has(a[href*="/tag-"]) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    order: 15 !important;
    margin-top: 14px !important;
}
body.product-single .main-content > div.mb-2 a[href*="/tag-"] {
    font-size: 0.75rem !important;
    padding: 3px 10px !important;
    color: #9ca3af !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    margin: 0 !important;
}
body.product-single .main-content > div.mb-2 a[href*="/tag-"]:hover {
    color: var(--primary-pink) !important;
    border-color: var(--primary-pink) !important;
}

body.product-single .product-form > section:first-of-type,
body.product-single .sticky-product-bar__quantity {
    display: none !important;
}

.refat-badges-row { display: flex; flex-wrap: wrap; gap: 6px; }
.refat-badge-pill {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-sub);
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.refat-badge-pill--pink {
    background-color: rgba(250, 0, 96, 0.14);
    border-color: rgba(250, 0, 96, 0.4);
    color: var(--primary-pink);
}

body.product-single .main-content > div:has(h4) h4 {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--primary-pink) !important;
    margin: 0 !important;
}
body.product-single .main-content > div:has(h4) :where(span, del, s, p):not(:has(*)) {
    color: #9ca3af !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
}

body.product-single .sticky-product-bar {
    background: transparent !important;
    padding: 8px 0 4px !important;
    box-shadow: none !important;
    border: none !important;
}
body.product-single salla-add-product-button .s-button-element,
body.product-single .sticky-product-bar__btn button {
    border-radius: 999px !important;
    height: 48px !important;
    font-weight: 700 !important;
}

salla-bought-together:empty,
salla-bought-together:not(:has(*)) { display: none !important; }

body.product-single .kayan-desc-section {
    background: rgba(18, 18, 18, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    margin-bottom: 10px !important;
    padding: 0 14px !important;
    overflow: hidden !important;
    transition: border-color 0.25s ease, background-color 0.25s ease !important;
}
body.product-single .kayan-desc-header {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    padding: 14px 4px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
}
body.product-single .kayan-desc-icon {
    font-size: 0 !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease !important;
}
body.product-single .kayan-desc-icon::before {
    content: "" !important;
    width: 8px;
    height: 8px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: rotate(45deg);
    margin-top: -4px;
}
body.product-single .kayan-desc-section:has(.sicon-hr) {
    border-color: rgba(250, 0, 96, 0.4) !important;
    background: linear-gradient(180deg, rgba(250, 0, 96, 0.06) 0%, rgba(9, 9, 9, 0.95) 100%) !important;
}
body.product-single .kayan-desc-section:has(.sicon-hr) .kayan-desc-content {
    max-height: 6000px !important;
    overflow: visible !important;
}
body.product-single .kayan-desc-section:has(.sicon-hr) .kayan-desc-icon { transform: rotate(180deg) !important; }
body.product-single .kayan-desc-section:has(.sicon-hr) .kayan-desc-icon::before { border-color: var(--primary-pink) !important; }

body.product-single .kayan-desc-content-inner {
    color: #e5e7eb !important;
    background: rgba(9, 9, 9, 0.8) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    line-height: 1.85 !important;
}
body.product-single .kayan-desc-content-inner img {
    border-radius: 12px !important;
    margin: 12px auto !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: auto !important;
}

/* ==========================================
16. ضبط أزرار الشراء في الجوال
   ========================================== */
@media (max-width: 767px) {
    body.product-single .sticky-product-bar {
        position: relative !important;
        background: transparent !important;
        padding: 8px 0 4px !important;
        box-shadow: none !important;
        border: none !important;
    }
    body.product-single salla-add-product-button,
    body.product-single salla-add-product-button > div {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }
    body.product-single salla-add-product-button salla-button:first-of-type,
    body.product-single salla-add-product-button > div > *:nth-child(1) {
        flex: 1 1 56% !important;
        min-width: 0 !important;
    }
    body.product-single salla-add-product-button salla-button:first-of-type .s-button-text,
    body.product-single salla-add-product-button salla-button:first-of-type span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        font-size: 0.92rem !important;
        white-space: nowrap !important;
    }
    body.product-single salla-add-product-button salla-quick-buy,
    body.product-single salla-add-product-button > div > *:nth-child(2) {
        flex: 1 1 38% !important;
        min-width: 0 !important;
    }
    body.product-single salla-add-product-button salla-apple-pay,
    body.product-single salla-add-product-button apple-pay-button,
    body.product-single salla-add-product-button [class*="apple-pay"],
    body.product-single salla-add-product-button > div > *:nth-child(3) {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 2px !important;
    }
    body.product-single salla-add-product-button apple-pay-button,
    body.product-single salla-add-product-button [class*="apple-pay"] button {
        width: 100% !important;
        height: 48px !important;
        border-radius: 999px !important;
    }
}

/* ==========================================
17. تخصيص صفحة السلة - النسخة النهائية المعتمدة
   ========================================== */
.kayan-header .container > div {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}

@media (max-width: 1023px) {
    body.cart footer,
    body.cart .kayan-footer,
    body.cart .s-footer {
        display: none !important;
    }
    body.cart {
        min-height: 100vh !important;
        padding-bottom: 110px !important;
    }
    body.cart nav.breadcrumbs {
        display: none !important;
    }
}

body.cart .container:not(.kayan-header .container) {
    max-width: 900px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

body.cart div.pt-5.flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    padding-top: 6px !important;
}

body.cart .main-content {
    width: 100% !important;
    max-width: 100% !important;
    background-color: var(--card-dark) !important;
    border: 1px solid var(--border-sub) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

body.cart .main-content > form {
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.cart .sticky.top-24,
body.cart div[class*="lg:w-96"],
body.cart .main-content + div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.refat-cart-store-header {
    background: transparent !important;
    border: none !important;
    padding: 14px 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
}

.refat-store-badge {
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.refat-cart-store-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

.refat-coupon-pill-btn,
.refat-loyalty-pill-btn {
    white-space: nowrap !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    padding: 4px 12px !important;
    font-size: 0.82rem !important;
    gap: 4px !important;
}

.refat-coupon-pill-btn {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #10b981 !important;
}

.refat-loyalty-pill-btn {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #f59e0b !important;
}

body.cart .cart-item {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 18px 22px !important;
    margin: 0 !important;
    box-shadow: none !important;
    position: relative !important;
}

body.cart .cart-item .hidden,
body.cart .cart-item .item-regular-price,
body.cart .cart-item .item-original-price,
body.cart .cart-item #original_price,
body.cart .cart-item .item-weight-row,
body.cart .cart-item .old-offers,
body.cart .cart-item .free-ribbon {
    display: none !important;
}

body.cart .cart-item h1,
body.cart .cart-item h1 a,
body.cart .cart-item a.text-base {
    color: #ffffff !important;
    font-weight: 700 !important;
    display: block !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.4 !important;
}

body.cart .cart-item .item-price,
body.cart .cart-item .item-total {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    color: var(--primary-pink) !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    white-space: nowrap !important;
}

body.cart .cart-item img {
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
}

body.cart salla-quantity-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
}

@media (min-width: 768px) {
    body.cart .cart-item {
        padding-left: 60px !important;
    }
    body.cart .cart-item > span.absolute {
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 18px !important;
        right: auto !important;
    }
    body.cart .cart-item > div:first-of-type {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 0 !important;
    }
    body.cart .cart-item > div:first-of-type > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    body.cart .cart-item h1 a,
    body.cart .cart-item a.text-base {
        font-size: 0.96rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 440px !important;
    }
    body.cart .cart-item > div:first-of-type > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 16px !important;
        flex: 0 0 260px !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body.cart .cart-item > div:first-of-type > div:last-child > p {
        min-width: 115px !important;
        text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

@media (max-width: 767px) {
    .refat-cart-store-header { padding: 12px 14px !important; }
    .refat-store-badge { font-size: 0.9rem !important; }
    .refat-coupon-pill-btn,
    .refat-loyalty-pill-btn { padding: 3px 9px !important; font-size: 0.74rem !important; }
    body.cart .cart-item { padding: 14px !important; }
    body.cart .cart-item > span.absolute {
        top: 14px !important;
        left: 14px !important;
        right: auto !important;
    }
    body.cart .cart-item > div:first-of-type {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin: 0 !important;
    }
    body.cart .cart-item > div:first-of-type > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        padding-left: 32px !important;
    }
    body.cart .cart-item h1 a,
    body.cart .cart-item a.text-base {
        font-size: 0.88rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 190px !important;
    }
    body.cart .cart-item > div:first-of-type > div:last-child {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding-top: 10px !important;
        margin: 0 !important;
        border-bottom: none !important;
    }
}

body.cart #cart-gifting,
body.cart salla-gifting,
body.cart div:not(.refat-coupon-modal-box) > salla-loyalty-panel {
    display: none !important;
}

.refat-coupon-overlay {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
}

.refat-coupon-overlay.is-open {
    display: flex !important;
    animation: refatFadeIn 0.2s ease;
}

@keyframes refatFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.refat-coupon-modal-box {
    background: #121212 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;
    width: 94% !important;
    max-width: 460px !important;
    padding: 24px 22px 28px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9) !important;
    position: relative !important;
}

.refat-coupon-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
}

.refat-coupon-modal-title {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    margin: 0 !important;
}

.refat-coupon-close-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: none !important;
    color: #d1d5db !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
}

.refat-coupon-modal-box div:not(.refat-coupon-modal-box):not(.refat-coupon-capsule),
.refat-coupon-modal-box form {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.refat-coupon-modal-box salla-cart-coupons label,
.refat-coupon-modal-box salla-cart-coupons p,
.refat-coupon-modal-box salla-cart-coupons h4 {
    display: none !important;
}

.refat-coupon-modal-box salla-cart-coupons div:has(> input) {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 999px !important;
    padding: 4px 6px !important;
    height: 48px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
}

.refat-coupon-modal-box salla-cart-coupons input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    padding: 0 16px !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    outline: none !important;
}

.refat-coupon-modal-box salla-cart-coupons button,
.refat-coupon-modal-box salla-cart-coupons salla-button,
.refat-coupon-modal-box salla-cart-coupons .s-button-element {
    background: var(--primary-pink) !important;
    background-color: var(--primary-pink) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    height: 38px !important;
    min-width: 85px !important;
    padding: 0 18px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.refat-coupon-modal-box salla-loyalty-panel {
    display: block !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 16px !important;
}
.refat-coupon-modal-box salla-loyalty-panel * { color: #ffffff !important; }
.refat-coupon-modal-box salla-loyalty-panel a,
.refat-coupon-modal-box salla-loyalty-panel button,
.refat-coupon-modal-box salla-loyalty-panel [class*="action"] {
    color: var(--primary-pink) !important;
    font-weight: 700 !important;
}

@media (min-width: 1024px) {
    body.cart salla-cart-summary-card,
    body.cart .s-cart-summary-card {
        position: static !important;
        background-color: var(--card-dark) !important;
        border: 1px solid var(--border-sub) !important;
        border-radius: 20px !important;
        padding: 22px 24px !important;
        display: block !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 1023px) {
    body.cart salla-cart-summary-card,
    body.cart .s-cart-summary-card {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        background: rgba(18, 18, 18, 0.98) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
        border-radius: 22px 22px 0 0 !important;
        padding: 12px 18px 16px !important;
        box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7) !important;
    }
}

body.cart salla-cart-summary-card div:not(:has(button)):not(:has(salla-button)),
body.cart .s-cart-summary-card-sheet,
body.cart .s-cart-summary-card-bar,
body.cart .s-cart-summary-card-content {
    background: transparent !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.cart salla-cart-summary-card :where(span, p, div, h1, h2, h3, h4, b, strong) {
    color: #ffffff !important;
}

body.cart salla-cart-summary-card [class*="price"],
body.cart salla-cart-summary-card [class*="total"],
body.cart salla-cart-summary-card .item-total {
    color: var(--primary-pink) !important;
    font-weight: 800 !important;
}

body.cart salla-cart-summary-card button[type="submit"],
body.cart salla-cart-summary-card salla-button,
body.cart salla-cart-summary-card .s-button-element,
body.cart .s-cart-summary-card-submit {
    background: #fa0060 !important;
    background-color: #fa0060 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 999px !important;
    height: 48px !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 18px rgba(250, 0, 96, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 10px !important;
    cursor: pointer !important;
}

/* إصلاح لون نص القائمة وإخفاء أيقونات الجوال في شاشات الكمبيوتر */
@media (min-width: 1024px) {
    .kayan-navbar-dropdown a,
    .kayan-full-navbar a {
        color: #d1d5db !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        padding: 4px 12px !important;
    }

    .kayan-navbar-dropdown a:hover,
    .kayan-full-navbar a:hover {
        color: var(--primary-pink) !important;
    }

    .kayan-navbar-dropdown > li {
        border-bottom: none !important;
        width: auto !important;
        padding: 4px 6px !important;
    }

    .kayan-navbar-dropdown > li > i,
    .kayan-navbar-dropdown > li > img,
    .refat-pkg-icon {
        display: none !important;
    }
}