/* ==================================================
   MURAYR - CUSTOM CSS
   ================================================== */


/* ===== 1. الشريط الإعلاني العلوي ===== */

.s-advertisement-content {
    overflow: hidden;
}

.s-advertisement {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;

    min-height: 38px !important;
    height: 38px !important;

    background-color: #004E5C !important;
}
}

.s-advertisement-content {
    min-height: 38px !important;
    height: 38px !important;

    display: flex;
    align-items: center;
}

.s-advertisement-content-main {
    display: inline-block;
    white-space: nowrap;
    width: max-content;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 38px !important;

    animation: murayr-marquee 12s linear infinite;
}

@keyframes murayr-marquee {
    0% {
        transform: translateX(-55vw);
    }

    100% {
        transform: translateX(55vw);
    }
}

@media (max-width: 600px) {
    .s-advertisement,
    .s-advertisement-content {
        min-height: 36px !important;
        height: 36px !important;
    }

    .s-advertisement-content-main {
        font-size: 13px !important;
        line-height: 36px !important;
    }
}


/* ===== 2. إخفاء زر عرض الكل ===== */

.display-all-url {
    display: none !important;
}


/* ===== 3. محتوى بطاقات المنتجات ===== */

.s-product-card-content {
    padding-top: 14px !important;
}

.s-product-card-content-title {
    margin-bottom: 6px !important;
}

.s-product-card-content-title a {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    color: #231F1E !important;
}

.s-product-card-rating {
    margin-top: 2px !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
}

.s-product-card-content-subtitle {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #6B6B6B !important;
    min-height: 44px;
}


/* ===== 4. أسعار بطاقات المنتجات ===== */

.s-product-card-content .price__is_on_sale {
    align-items: baseline !important;
    gap: 6px !important;
}

.s-product-card-content .total-price {
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.s-product-card-content .before-price {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #777777 !important;
    opacity: 1 !important;

    text-decoration: line-through !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: #777777 !important;
}


/* ===== 5. زر السلة داخل بطاقة المنتج ===== */

.s-product-card-content button.s-button-primary-link {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;

    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #004E5C !important;
    color: #FFFFFF !important;

    border: none !important;
    border-radius: 12px !important;

    box-shadow: 0 3px 10px rgba(0,0,0,.12) !important;

    transition:
        transform .2s ease,
        box-shadow .2s ease !important;
}

.s-product-card-content button.s-button-primary-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,.18) !important;
}

.s-product-card-content button.s-button-primary-link i,
.s-product-card-content button.s-button-primary-link svg {
    color: #FFFFFF !important;
    fill: currentColor !important;
}


/* ===== 6. شارات المنتجات ===== */

.promotion-badge {
    background: #004E5C !important;
    color: #FFFFFF !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    padding: 5px 9px !important;
    border-radius: 999px !important;

    box-shadow: 0 2px 7px rgba(0,0,0,.14) !important;

    white-space: nowrap !important;
}


/* ===== 7. البطاقة كاملة ===== */

custom-salla-product-card.product-entry {
    border-radius: 14px !important;
    overflow: hidden !important;

    background: #FFFFFF !important;

    border: 1px solid rgba(0,78,92,.08) !important;

    box-shadow: 0 3px 12px rgba(0,0,0,.06) !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease !important;
}

@media (min-width: 769px) {
    custom-salla-product-card.product-entry:hover {
        transform: translateY(-4px);

        box-shadow: 0 9px 24px rgba(0,0,0,.11) !important;

        border-color: rgba(0,78,92,.18) !important;
    }
}


/* ===== 8. زر أضف إلى السلة الرئيسي في صفحة المنتج ===== */

salla-add-product-button .s-button-primary,
button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary {
    min-height: 48px !important;

    padding: 11px 28px !important;

    background: #004E5C !important;
    color: #FFFFFF !important;

    border: 1px solid #004E5C !important;
    border-radius: 12px !important;

    font-size: 16px !important;
    font-weight: 700 !important;

    box-shadow: 0 4px 12px rgba(0,78,92,.16) !important;

    transition: all .2s ease !important;
}

salla-add-product-button .s-button-primary:hover,
button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary:hover {
    background: #003D48 !important;
    border-color: #003D48 !important;

    transform: translateY(-1px);

    box-shadow: 0 6px 16px rgba(0,78,92,.22) !important;
}


/* ===== 9. تحسينات الجوال ===== */

@media (max-width: 600px) {

    .s-product-card-content-title a {
        font-size: 14px !important;
    }

    .s-product-card-content-subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .s-product-card-rating {
        font-size: 12px !important;
    }

    .s-product-card-content .total-price {
        font-size: 18px !important;
    }

    .s-product-card-content .before-price {
        font-size: 12px !important;
    }

    .s-product-card-content button.s-button-primary-link {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;

        border-radius: 10px !important;
    }

    .promotion-badge {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    custom-salla-product-card.product-entry {
        border-radius: 12px !important;

        box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
    }

    salla-add-product-button .s-button-primary,
    button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary {
        min-height: 50px !important;
        width: 100% !important;

        font-size: 15px !important;
        border-radius: 10px !important;
    }
}