/* السماح بظهور الزر داخل الكارد */
custom-salla-product-card,
custom-salla-product-card .s-product-card-vertical,
custom-salla-product-card .s-product-card-content {
    overflow: visible !important;
}

/* ترتيب محتوى الكارد */
custom-salla-product-card .s-product-card-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    padding-bottom: 12px !important;
}

/* إخفاء أول زر وترك آخر زر فقط */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:first-of-type {
    display: none !important;
}

/* إظهار آخر زر */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type {
    display: block !important;
    position: relative !important;
    inset: auto !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 12px 0 0 !important;
    padding: 0 !important;

    align-self: stretch !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;

    box-sizing: border-box !important;
    z-index: 5 !important;
}

/* توسيع غلاف زر سلة */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type
.s-button-wrap {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* الزر الداخلي بعرض الكارد */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type
button {
    display: flex !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 10px 12px !important;

    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    background-color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 12px !important;
    color: #ffffff !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

/* إظهار النص داخل الزر */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type
button span {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;

    opacity: 1 !important;
    visibility: visible !important;

    color: inherit !important;
    font-size: inherit !important;
}

/* لون الأيقونة */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type
button svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: currentColor !important;
}

/* الهوفر */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type
button:hover {
    background-color: transparent !important;
    border-color: #6a0024 !important;
    color: #6a0024 !important;
}
/*---------*/
/*----------*/

/* جعل محتوى الكارد بعرض صورة المنتج */
custom-salla-product-card .s-product-card-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

/* الحفاظ على محاذاة اسم المنتج والسعر */
custom-salla-product-card .s-product-card-content-main,
custom-salla-product-card .s-product-card-content-sub {
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}

/* الزر الأخير بعرض صورة المنتج بالكامل */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
    box-sizing: border-box !important;
}

/* غلاف الزر */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type
.s-button-wrap {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* الزر الداخلي */
custom-salla-product-card
.s-product-card-content
salla-add-product-button.fixed-product-button:last-of-type
button {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 10px 15px !important;

    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    background-color: #000 !important;
    border: 1px solid #000 !important;
    border-radius: 12px !important;
    color: #ffffff !important;

    box-sizing: border-box !important;
}

/* ===== WhatsApp Channel Footer Block ===== */

.footer-whatsapp-channel {
    width: 100%;
    max-width: 360px;
    margin: 0;
    direction: rtl;
    text-align: right;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* عنوان قناة واتساب */
.footer-whatsapp-channel__title {
    width: 100%;
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    text-align: right;
}

/* وصف قناة واتساب */
.footer-whatsapp-channel__description {
    width: 100%;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.8;
    text-align: right;
}

/* زر قناة واتساب */
.footer-whatsapp-channel__button {
    width: fit-content;
    min-width: 200px;
    min-height: 42px;
    padding: 8px 18px;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: #25d366;
    color: #ffffff !important;
    border: 1px solid #25d366;
    border-radius: 30px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Hover */
.footer-whatsapp-channel__button:hover {
    background: #1fbd5a;
    border-color: #1fbd5a;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.22);
}

/* أيقونة واتساب */
.footer-whatsapp-channel__button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: currentColor;
}

/* الملاحظة أسفل الزر */
.footer-whatsapp-channel__note {
    width: 100%;
    margin: 16px 0px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    line-height: 1.7;
    text-align: right;
}

/* إخفاء عناصر النشرة البريدية الأصلية */
.footer-whatsapp-channel input,
.footer-whatsapp-channel button[type="submit"] {
    display: none !important;
}

/* الموبايل */
@media (max-width: 767px) {
    .footer-whatsapp-channel {
        width: 100%;
        max-width: 100%;
        margin: 0;
        align-items: flex-start;
    }

    .footer-whatsapp-channel__title {
        font-size: 16px;
    }

    .footer-whatsapp-channel__description {
        font-size: 12px;
    }

    .footer-whatsapp-channel__button {
        width: fit-content;
        min-width: 200px;
        min-height: 42px;
        padding: 8px 18px;
        margin: 0;
        font-size: 13px;
    }

    .footer-whatsapp-channel__button svg {
        width: 18px;
        height: 18px;
    }

    .footer-whatsapp-channel__note {
        font-size: 10px;
        text-align: right;
    }
}
#app > div.app-inner.flex.flex-col.min-h-full > footer > div > div > div.w-full.md\:w-fit.md\:col-span-12.lg\:col-span-4 > h2 {
  display: none;
}

/* العنصر الأخير ياخد عرض العمودين في الموبايل */
@media (max-width: 767px) {
    .store-features-8 .sf-grid .sf-item:last-child {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}
/*------------------*/
/*------------------*/

/* =========================================
   إلغاء Footer Dropdown في الموبايل
   وإظهار جميع الروابط بشكل دائم
========================================= */

@media (max-width: 767px) {

    /* إظهار حاويات الفوتر بالكامل */
    .store-footer .footer-accordion {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 24px !important;
    }

    /* منع الضغط على عنوان القائمة */
    .store-footer .footer-accordion > h3 {
        pointer-events: none !important;
        cursor: default !important;
        margin-bottom: 12px !important;
    }

    /* إخفاء سهم فتح وإغلاق القائمة */
    .store-footer .footer-accordion > h3::before,
    .store-footer .footer-accordion > h3::after {
        display: none !important;
        content: none !important;
    }

    /* إظهار قائمة سلة دائمًا */
    .store-footer .footer-accordion > salla-menu,
    .store-footer .footer-accordion salla-menu {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        transform: none !important;
    }

    /* إظهار قائمة الروابط */
    .store-footer .footer-accordion .s-menu-footer-list {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 10px !important;
    }

    /* إظهار كل رابط */
    .store-footer .footer-accordion .s-menu-footer-item {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
    }

    /* تنسيق الروابط */
    .store-footer .footer-accordion .s-menu-footer-item a,
    .store-footer .footer-accordion a.s-menu-footer-item {
        display: block !important;
        width: 100% !important;
        padding: 4px 0 !important;
    }
}