/* =========================================
   1. الخطوط الأساسية
========================================= */
@font-face {
    font-family: "F29LT Bukra Regular";
    src: url("https://db.onlinewebfonts.com/t/739571e5b3270dd49b19f413b1ef148e.eot");
    src: url("https://db.onlinewebfonts.com/t/739571e5b3270dd49b19f413b1ef148e.eot?#iefix") format("embedded-opentype"),
         url("https://db.onlinewebfonts.com/t/739571e5b3270dd49b19f413b1ef148e.woff2") format("woff2"),
         url("https://db.onlinewebfonts.com/t/739571e5b3270dd49b19f413b1ef148e.woff") format("woff"),
         url("https://db.onlinewebfonts.com/t/739571e5b3270dd49b19f413b1ef148e.ttf") format("truetype"),
         url("https://db.onlinewebfonts.com/t/739571e5b3270dd49b19f413b1ef148e.svg#F29LT Bukra Regular") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*,
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
div,
button,
input,
select,
textarea {
    font-family: "F29LT Bukra Regular", sans-serif !important;
}

/* =========================================
   2. شريط الإعلانات
========================================= */
.custom-marquee-bar {
    background-color: #3a4b43 !important;
    color: #ffffff !important;

    position: relative !important;
    width: 100% !important;

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

    overflow: hidden !important;

    z-index: 9999 !important;

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

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

    clear: both !important;
    flex-shrink: 0 !important;
}

.custom-marquee-bar span {
    display: inline-flex;
    align-items: center;

    white-space: nowrap;

    position: absolute;

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

    top: 50%;

    transform: translateY(-50%);

    will-change: transform;
}

html[dir="rtl"] .custom-marquee-bar span {
    animation: marquee-rtl 60s linear infinite;
    right: 0;
}

html[dir="ltr"] .custom-marquee-bar span {
    animation: marquee-ltr 60s linear infinite;
    left: 0;
}

@keyframes marquee-rtl {
    0% {
        transform: translate(-100vw, -50%);
    }

    100% {
        transform: translate(100%, -50%);
    }
}

@keyframes marquee-ltr {
    0% {
        transform: translate(100vw, -50%);
    }

    100% {
        transform: translate(-100%, -50%);
    }
}

/* =========================================
   3. إصلاح الهيدر والفراغات
========================================= */

html,
body {
    overflow-x: hidden !important;
}

body {
    margin: 0 !important;
    padding: 0 !important;
}

.app-inner {
    padding-top: 0 !important;
    margin-top: 0 !important;

    transform: none !important;

    position: relative !important;
}

.store-header {
    position: relative !important;

    top: auto !important;

    transform: none !important;

    margin-top: 0 !important;
}

.store-header~.container,
body.product-index .app-inner>.container,
body.index .app-inner>.container {
    margin-top: 28px !important;
    padding-top: 0 !important;
}

body.product-index .breadcrumbs {
    padding-top: 20px !important;
    padding-bottom: 10px !important;
}

body.product-index .main-content,
body.product-index salla-products-list,
body.product-index .flex.min-h-screen {
    margin-top: 0 !important;

    transform: none !important;

    position: relative !important;

    top: auto !important;
}

/* =========================================
   4. لوجو الهيدر والفوتر
========================================= */
.store-header .navbar-brand img {
    width: 160px !important;
    max-height: 85px !important;
}

footer .store-info a img {
    width: 250px !important;
    height: auto !important;

    transform: scale(1.2) !important;
}

/* =========================================
   5. زر اختر الوزن
========================================= */
.v-navigate-btn button .s-button-text {
    display: flex;
    align-items: center;
    gap: .5rem;

    font-size: .875rem;
}

/* =========================================
   6. إزالة الخط الأخضر للعناوين
========================================= */
.s-block__title {
    border-bottom: none !important;
}

/* =========================================
   7. اسم المنتج سطرين فقط
========================================= */
custom-salla-product-card .truncate {
    white-space: normal !important;

    display: -webkit-box !important;

    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;

    line-height: 1.45 !important;
}

/* =========================================
   8. إخفاء اطلبها مجددًا
========================================= */
#reorder-section {
    display: none !important;
}

/* =========================================
   9. عرض البنرات كاملة بدون قص
========================================= */
.s-block--fixed-banner,
.s-block--fixed-banner .banner,
.s-block--fixed-banner a,
.s-block--photos-slider,
.s-block--photos-slider salla-slider,
.s-block--photos-slider .swiper,
.s-block--photos-slider .swiper-wrapper,
.s-block--photos-slider .swiper-slide {
    height: auto !important;

    max-height: none !important;

    overflow: visible !important;
}

.s-block--fixed-banner img,
.s-block--photos-slider img,
.banner img {
    width: 100% !important;

    height: auto !important;

    max-height: none !important;

    object-fit: contain !important;

    object-position: center center !important;

    display: block !important;
}

.s-block--fixed-banner img.max-h-\[520px\],
img.max-h-\[520px\] {
    max-height: none !important;
}

/* =========================================
   10. توافق الجوال
========================================= */
@media (max-width: 768px) {

    .custom-marquee-bar {
        height: 45px !important;
        min-height: 45px !important;
    }

    .custom-marquee-bar span {
        font-size: 14px !important;

        animation-duration: 60s !important;
    }

    footer .store-info a img {
        width: 180px !important;

        transform: scale(1) !important;
    }

    custom-salla-product-card .truncate {
        font-size: 13px !important;

        line-height: 1.4 !important;
    }

    body.product-index .app-inner>.container,
    .store-header~.container {
        margin-top: 24px !important;
    }

    body.product-index .breadcrumbs {
        padding-top: 18px !important;
        padding-bottom: 14px !important;
    }
}

/* =========================================
   ضبط المسافة النهائية تحت الهيدر
========================================= */

.main-nav-container {
    margin-bottom: 18px !important;
}

body.product-index .container {
    padding-top: 12px !important;
}

body.product-index .main-content {
    padding-top: 10px !important;
}

/* موبايل */
@media (max-width: 768px) {

    .main-nav-container {
        margin-bottom: 14px !important;
    }

    body.product-index .container {
        padding-top: 10px !important;
    }

    body.product-index .main-content {
        padding-top: 8px !important;
    }
}