/* ==========================================================================
   رتّب | النسخة النهائية المستقرة 100%
   ========================================================================== */

/* ==========================================================================
   1. تلوين الأسعار والعملات
   ========================================================================== */

.price,
.product-price,
.price-amount,
.current-price,
.price-box,
span.price,
.product-card .price,
[class*="price"] bdi,
[class*="price"] span,
[class*="price"] strong,
.currency,
[class*="currency"],
.total-price,
.subtotal-price,
.cart-total,
.text-primary-color {

    color: #0A4D26 !important;

    font-weight: 700 !important;
}

/* ==========================================================================
   2. حماية الهيدر
   ========================================================================== */

header,
.main-header,
.site-header,
nav,
[class*="header-navigation"] {

    background: #F8F9FA !important;

    opacity: 1 !important;

    visibility: visible !important;
}

/* ==========================================================================
   3. إخفاء الفوتر الأساسي
   ========================================================================== */

footer,
.main-footer,
.footer-section,
.footer-bottom,
[class*="copyright"] {

    display: none !important;

    height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    opacity: 0 !important;

    visibility: hidden !important;
}

/* ==========================================================================
   4. الشريط السفلي الثابت
   ========================================================================== */

.fixed-bottom-bar,
.checkout-sticky-footer,
.add-to-cart-sticky,
.sticky-footer,
.quick-order-footer,
div[class*="sticky"][class*="button"],
div[class*="sticky"][class*="bottom"],
div[class*="fixed"][class*="bottom"],
div[class*="bottom-0"][class*="fixed"] {

    position: fixed !important;

    bottom: 0 !important;

    left: 0 !important;

    right: 0 !important;

    width: 100% !important;

    background: #14532D !important;

    border: none !important;

    border-top: 1px solid rgba(242,145,17,.35) !important;

    box-shadow: 0 -2px 12px rgba(0,0,0,.08) !important;

    padding-bottom: env(safe-area-inset-bottom) !important;

    z-index: 99999 !important;
}

/* ==========================================================================
   النصوص داخل الشريط
   ========================================================================== */

.fixed-bottom-bar *,
.checkout-sticky-footer *,
.add-to-cart-sticky *,
.sticky-footer *,
.quick-order-footer *,
div[class*="bottom-0"][class*="fixed"] * {

    color: #ffffff !important;
}

/* ==========================================================================
   حماية ألوان أزرار الكمية
   ========================================================================== */

div[class*="bottom-0"][class*="fixed"] button.bg-white,
div[class*="bottom-0"][class*="fixed"] button.bg-white *,
div[class*="bottom-0"][class*="fixed"] button[class*="bg-gray"],
div[class*="bottom-0"][class*="fixed"] button[class*="bg-gray"] * {

    color: inherit !important;

    fill: inherit !important;

    stroke: inherit !important;
}

/* ==========================================================================
   زر أضف للسلة الأسود
   ========================================================================== */

div[class*="bottom-0"][class*="fixed"] button.bg-white,
div[class*="bottom-0"][class*="fixed"] button.bg-white * {

    color: #000000 !important;
}

/* ==========================================================================
   زر اطلب الآن
   ========================================================================== */

div[class*="bottom-0"][class*="fixed"] button:not(.bg-white):not([class*="bg-gray"]),
div[class*="bottom-0"][class*="fixed"] button:not(.bg-white):not([class*="bg-gray"]) * {

    color: #ffffff !important;

    fill: #ffffff !important;
}

/* ==========================================================================
   تحسين الأزرار
   ========================================================================== */

.fixed-bottom-bar button,
.checkout-sticky-footer button,
.add-to-cart-sticky button,
.sticky-footer button,
.quick-order-footer button,
div[class*="bottom-0"][class*="fixed"] button {

    border-radius: 10px !important;

    transition: all .3s ease !important;
}

/* ==========================================================================
   Hover
   ========================================================================== */

.fixed-bottom-bar button:hover,
.checkout-sticky-footer button:hover,
.add-to-cart-sticky button:hover,
.sticky-footer button:hover,
.quick-order-footer button:hover {

    transform: translateY(-1px);
}

/* ==========================================================================
   الخط الذهبي المتحرك
   ========================================================================== */

.fixed-bottom-bar::before,
.checkout-sticky-footer::before,
.add-to-cart-sticky::before,
.sticky-footer::before,
.quick-order-footer::before,
div[class*="sticky"][class*="button"]::before,
div[class*="sticky"][class*="bottom"]::before,
div[class*="fixed"][class*="bottom"]::before,
div[class*="bottom-0"][class*="fixed"]::before {

    content: "";

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #F29111,
        transparent
    );

    animation: stickyGlow 3s linear infinite;
}

/* ==========================================================================
   حركة التوهج
   ========================================================================== */

@keyframes stickyGlow {

    0% {

        left: -100%;
    }

    100% {

        left: 100%;
    }
}

/* ==========================================================================
   منع اختفاء المحتوى خلف الشريط
   في صفحة المنتج فقط
   ========================================================================== */

[class*="product"] body,
[class*="product"] #main-app,
[class*="product"] .app_container {

    padding-bottom: 85px !important;
}

/* ==========================================================================
   صفحات المنتجات
   ========================================================================== */

[class*="product"] footer,
[class*="product"] .main-footer,
[class*="product"] .footer-section,
[class*="product"] div[class*="bg-primary-color"] {

    display: none !important;

    height: 0 !important;

    margin: 0 !important;

    padding: 0 !important;

    opacity: 0 !important;

    visibility: hidden !important;
}

/* ==========================================================================
   تحسين الجوال
   ========================================================================== */

@media (max-width:768px) {

    div[class*="bottom-0"][class*="fixed"] div[class*="hidden"].md\:flex,
    div[class*="bottom-0"][class*="fixed"] div[class*="w-full"]:not([class*="justify-end"]) {

        display: none !important;
    }

    div[class*="bottom-0"][class*="fixed"] > div,
    div[class*="bottom-0"][class*="fixed"] div[class*="justify-end"] {

        display: flex !important;

        width: 100% !important;

        max-width: 100% !important;

        min-width: 100% !important;

        padding: 8px 16px !important;

        box-sizing: border-box !important;
    }

    div[class*="bottom-0"][class*="fixed"] button:not(.bg-white):not([class*="bg-gray"]) {

        display: flex !important;

        width: 100% !important;

        max-width: 100% !important;

        height: 48px !important;

        justify-content: center !important;

        align-items: center !important;

        margin: 0 !important;
    }

    div[class*="bottom-0"][class*="fixed"] div[class*="flex-row"] {

        display: flex !important;

        height: 48px !important;
    }
}

/* ==========================================================================
   عناوين الأقسام
   ========================================================================== */

.home_section_top_container {

    display: flex !important;

    justify-content: space-between !important;

    align-items: center !important;

    width: 100% !important;

    padding: 10px 5px !important;

    box-sizing: border-box !important;
}

.home_section_top_container h3.text-heading {

    margin: 0 !important;

    text-align: right !important;
}

/* ==========================================================================
   أزرار عرض الكل
   ========================================================================== */

.home_section_top_container a {

    display: inline-block !important;

    margin: 0 !important;

    padding: 6px 20px !important;

    border: 1px solid #0A4D26 !important;

    border-radius: 4px !important;

    color: #0A4D26 !important;

    background-color: transparent !important;

    font-weight: bold !important;

    font-size: 13px !important;

    text-align: center !important;

    white-space: nowrap !important;

    text-decoration: none !important;

    transition: all .3s ease !important;

    animation: borderShine 2.4s ease-out infinite !important;

    position: relative !important;
}

/* ==========================================================================
   Hover
   ========================================================================== */

.home_section_top_container a:hover {

    background-color: #0A4D26 !important;

    color: #ffffff !important;

    box-shadow: none !important;
}

/* ==========================================================================
   تأثير النبض
   ========================================================================== */

@keyframes borderShine {

    0% {

        box-shadow: 0 0 0 0 rgba(10,77,38,.4);
    }

    70% {

        box-shadow: 0 0 0 8px rgba(10,77,38,0);
    }

    100% {

        box-shadow: 0 0 0 0 rgba(10,77,38,0);
    }
}
