/* ============================
   DIGICODE STORE - CUSTOM CSS
   النسخة النظيفة والمُصلحة
   ============================ */


/* ══════════════════════════════
   الهيدر والنافبار
   ══════════════════════════════ */
.main-nav-container {
    background-color: transparent;
    color: var(--header-text-color);
}

.sicon-search:before { content: "\ef09"; color: #f2620a; }
.sicon-menu:before   { content: "\ed7f"; color: #f2620a; }
.sicon-cart:before   { content: "\e96b"; color: #f2620a; }
.sicon-user:before   { content: "\f078"; color: #f2620a; }

.s-user-menu-dropdown-header-content span {
    color: #ffffff;
}

/* روابط breadcrumb */
a.fix-align.text-primary,
nav.breadcrumbs a,
ol.flex a {
    color: #ffffff !important;
}

/* الشريط العلوي */
div.top-navbar {
    background-color: transparent !important;
}

/* عنوان البلوك */
div.s-block__title,
div.s-block__title * {
    color: #ffffff !important;
}

/* الإشعارات */
a.notification-item {
    background-color: transparent !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
}

a.notification-item *,
a.notification-item span,
a.notification-item div {
    color: #ffffff !important;
}

/* عنوان الاشعارات واسم العميل */
h1.truncate.text-2xl.font-bold.text-store-text-primary,
h1.font-bold.text-lg.text-store-text-primary {
    color: #f2620a !important;
}

/* إطار الصورة الشخصية */
img.rounded-full.ring-4.ring-white {
    ring-color: #f2620a !important;
    outline: 3px solid #f2620a !important;
    box-shadow: 0 0 0 3px #f2620a !important;
}


/* ══════════════════════════════
   اللوغو
   ══════════════════════════════ */
img.logo-normal {
    content: url('https://lh3.googleusercontent.com/pw/AP1GczNDonFsQn2WIAsWgPrX9pLcIz276qt4MRi7MvTk7UkEefNUoKZCeABa04Nu1hYkqWs8QNAUG8_lhiSg0a1q26okdvER7ZeaTE34HuQq_ENnOhXPYyi_gfwx0v59z46-Xshevi_rYQfH6T6BiRULriaR=w945-h945-s-no-gm?authuser=0') !important;
    opacity: 1 !important;
    height: 350px !important;
}


/* ══════════════════════════════
   الفوتر
   ══════════════════════════════ */
.footer-is-custom .store-footer .store-footer__curve {
    color: #0B1E3A;
}

.footer-is-custom .store-footer .store-footer__contacts-row,
.footer-is-custom .store-footer .store-footer__inner,
.footer-is-custom .store-footer .store-footer__newsletter {
    background-color: #0A192F;
    border-bottom-color: rgba(229, 231, 235, 1);
}


/* ══════════════════════════════
   بطاقة المنتج
   ══════════════════════════════ */
.product-card__image {
    background-color: #ECECEE;
    flex-shrink: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.product-card__title a {
    color: black;
    display: block;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.25rem;
}

.product-card__price .total-price {
    color: #f87171;
    font-size: 13px;
}

.product-card__price .before-price,
.product-card__price .starting-or-normal-price {
    font-size: 13px;
    color: #9ca3af !important;
}

.product-entry__sub-title {
    color: #F2620A;
}

/* إخفاء زر المفضلة */
.product-card__buttons {
    display: none;
}

/* زر السلة */
.product-card__normal-cart {
    margin-top: 10px;
    background: transparent !important;
    background-color: transparent !important;
}

.product-card--primary-buttons button,
.product-card--primary-buttons salla-button {
    border: none !important;
    color: white !important;
}

.product-card--primary-buttons button i,
.product-card--primary-buttons salla-button i {
    color: white !important;
}

.product-card__actions div button {
    align-items: center;
    background: #F2620A !important;
    border: 0;
    border-radius: 50%;
    color: #111;
    display: flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

/* زر إضافة للسلة */
salla-add-product-button {
    display: block !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
}

salla-add-product-button,
salla-add-product-button salla-button,
salla-add-product-button .s-button-wrap {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 8px !important;
}

salla-add-product-button button.s-button-element.s-button-outline {
    background-color: #ffffff !important;
    color: #F2620A !important;
    border: 1.5px solid #F2620A !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

salla-add-product-button button.s-button-element.s-button-outline span,
salla-add-product-button button.s-button-element.s-button-outline i {
    color: #F2620A !important;
    transition: all 0.3s ease !important;
}

salla-add-product-button button.s-button-element.s-button-outline:hover {
    background-color: #FFF4EE !important;
    border-color: #F2620A !important;
    color: #F2620A !important;
    transform: translateY(-2px);
}

salla-add-product-button button.s-button-element.s-button-outline:hover span,
salla-add-product-button button.s-button-element.s-button-outline:hover i {
    color: #F2620A !important;
}

/* المنتجات القريبة قريباً */
a[href*="قريبا"] {
    pointer-events: none !important;
    cursor: default !important;
}

a[href*="قريبا"] .overflow-hidden {
    position: relative;
}

a[href*="قريبا"] .overflow-hidden img {
    position: relative;
    z-index: 1;
}

a[href*="قريبا"] .overflow-hidden::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('https://lh3.googleusercontent.com/pw/AP1GczOwCbnTIvU585ECgH_G5RW3mPvt5YreOqWGKEggIEJkNr322pSC_oyGZfGXyeYW0OO8O7qF45zrTEmHiE2wZMqwfO3mBC1mdGIyqKJx3F5hv8sZrOcbJEYAnctsTUMK260tSY0fhMzafyoHvNVgGkvt=w947-h947-s-no-gm?authuser=0');
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

/* صورة المنتج */
custom-salla-product-card .s-product-card-image,
custom-salla-product-card .product-card__image {
    display: block !important;
    margin-top: 14px !important;
    width: calc(100% - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

custom-salla-product-card img.main-image {
    border-radius: 8px !important;
    object-fit: cover !important;
}


/* ══════════════════════════════
   الأزرار العامة
   ══════════════════════════════ */

/* زر الطباعة */
button.s-button-primary-outline {
    background-color: transparent !important;
    color: #f2620a !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
button.s-button-primary-outline:hover {
    background-color: #f2620a !important;
    color: #ffffff !important;
}
button.s-button-primary-outline:active {
    transform: scale(0.95) !important;
    background-color: #c94e08 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(242, 98, 10, 0.5) !important;
}

/* زر إعادة الطلب */
button.s-button-primary-link {
    background-color: transparent !important;
    color: #f2620a !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
button.s-button-primary-link:hover {
    background-color: #f2620a !important;
    color: #ffffff !important;
}
button.s-button-primary-link:active {
    transform: scale(0.95) !important;
    box-shadow: 0 0 10px rgba(242, 98, 10, 0.5) !important;
}

/* زر تقييم - مميز */
button.btn--rounded-full.s-button-light {
    background-color: #f2620a !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    transition: all 0.3s ease !important;
}
button.btn--rounded-full.s-button-light:hover {
    background-color: #c94e08 !important;
    transform: scale(1.05) !important;
}
button.btn--rounded-full.s-button-light:active {
    transform: scale(0.95) !important;
    box-shadow: 0 0 10px rgba(242, 98, 10, 0.6) !important;
}

/* زر موافق */
button.s-button-element.s-button-btn.s-button-solid {
    background-color: #f2620a !important;
    color: #ffffff !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
button.s-button-element.s-button-btn.s-button-solid:hover {
    background-color: #c94e08 !important;
}
button.s-button-element.s-button-btn.s-button-solid:active {
    transform: scale(0.95) !important;
    box-shadow: 0 0 10px rgba(242, 98, 10, 0.5) !important;
}

/* زر إلغاء */
button.s-button-light-outline {
    background-color: transparent !important;
    color: #f2620a !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
button.s-button-light-outline:hover {
    background-color: rgba(242, 98, 10, 0.1) !important;
}
button.s-button-light-outline:active {
    transform: scale(0.95) !important;
}

/* زر رقم الطلب */
button.s-button-dark-link {
    background-color: transparent !important;
    color: #f2620a !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
button.s-button-dark-link:hover {
    background-color: #f2620a !important;
    color: #ffffff !important;
}
button.s-button-dark-link:active {
    transform: scale(0.95) !important;
}

/* أزرار collapse وoutline */
.btn--collapse {
    align-items: center;
    border-radius: .375rem;
    border-width: 1px;
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: #F2620A;
    border: none;
    color: var(--store-text-primary);
    font-size: .875rem;
    line-height: 1.25rem;
    padding-bottom: .625rem;
    padding-top: .625rem;
}

.btn--outline-primary {
    color: #f2620a !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    transition: all 0.3s ease !important;
}
.btn--outline-primary:hover {
    background-color: #f2620a !important;
    color: #ffffff !important;
}


/* ══════════════════════════════
   صناديق تفاصيل الطلب
   ══════════════════════════════ */

/* الصندوق الأول - تفاصيل الطلب (tr) */
tbody > tr.bg-store-bg-secondary.overflow-hidden {
    background-color: #0a192f !important;
    outline: 2px solid #f2620a !important;
    outline-offset: -2px !important;
}

/* إطار على الـ table */
table.min-w-full {
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
}

/* الصندوق العلوي لعناصر الطلب */
div.bg-store-bg-secondary.rounded-t-md {
    background-color: #0a192f !important;
    border: 2px solid #f2620a !important;
    border-bottom: none !important;
}

/* الصندوق السفلي لعناصر الطلب */
div.order-item.bg-store-bg-secondary {
    background-color: #0a192f !important;
    border: 2px solid #f2620a !important;
}

/* صندوق الملخص */
div.bg-store-bg-secondary.rounded-md.px-6 {
    background-color: #0a192f !important;
    border: 2px solid #f2620a !important;
}

/* صندوق التفاصيل */
div.bg-store-bg-secondary.rounded-md.p-5.divide-y {
    background-color: #0a192f !important;
    border: 2px solid #f2620a !important;
}

/* صفوف جدول الطلبات */
tr.s-table__tr {
    background-color: transparent !important;
    border-top: 2px solid #f2620a !important;
    border-bottom: 2px solid #f2620a !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}


/* ══════════════════════════════
   نافذة التقييم
   ══════════════════════════════ */
.s-rating-modal-rounded-icon {
    border-color: #f2620a !important;
    border-width: 3px !important;
    box-shadow: 0 0 10px rgba(242, 98, 10, 0.4) !important;
}

textarea.s-rating-modal-comment {
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
    outline: none !important;
}
textarea.s-rating-modal-comment:focus {
    box-shadow: 0 0 8px rgba(242, 98, 10, 0.4) !important;
}


/* ══════════════════════════════
   سلايدر القائمة العلوية
   ══════════════════════════════ */
ul.s-user-menu-inline {
    scrollbar-width: thin !important;
    scrollbar-color: #f2620a rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 8px !important;
    overflow-x: scroll !important;
    position: relative !important;
    -ms-overflow-style: auto !important;
}

ul.s-user-menu-inline::-webkit-scrollbar {
    display: block !important;
    height: 4px !important;
}

ul.s-user-menu-inline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
}

ul.s-user-menu-inline::-webkit-scrollbar-thumb {
    background: #f2620a !important;
    border-radius: 10px !important;
}

ul.s-user-menu-inline::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px !important;
}

ul.s-user-menu-inline .s-user-menu-dropdown-item a {
    color: #ffffff !important;
    border-bottom: 2px solid transparent !important;
    padding-bottom: 4px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

ul.s-user-menu-inline .s-user-menu-dropdown-item a:hover {
    color: #f2620a !important;
    border-bottom: 2px solid #f2620a !important;
}

ul.s-user-menu-inline .s-user-menu-dropdown-item a.active {
    color: #f2620a !important;
    border-bottom: 2px solid #f2620a !important;
}


/* ══════════════════════════════
   إعدادات الحساب
   ══════════════════════════════ */
salla-user-settings {
    background: #0a192f !important;
    border: 2px solid #f2620a !important;
}

salla-user-settings * {
    color: #ffffff !important;
}

salla-user-settings a.s-list-tile-item {
    background-color: #0a192f !important;
}

salla-user-settings button.s-button-danger-outline {
    background-color: transparent !important;
    color: #f2620a !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}
salla-user-settings button.s-button-danger-outline:hover {
    background-color: #f2620a !important;
    color: #ffffff !important;
}
salla-user-settings button.s-button-danger-outline:active {
    transform: scale(0.95) !important;
    box-shadow: 0 0 10px rgba(242, 98, 10, 0.5) !important;
}


/* ══════════════════════════════
   صفحة الملف الشخصي
   ══════════════════════════════ */
main.profile div.mx-auto {
    background-color: #0a192f !important;
    color: #ffffff !important;
}

main.profile label,
main.profile span,
main.profile p {
    color: #ffffff !important;
}

/* حقول الإدخال - شفافة مع إطار برتقالي */
.form-input {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #f2620a !important;
    border-radius: 8px !important;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* إصلاح تضارب RTL */
.rtl .form-select,
.rtl select,
[dir=rtl] .form-select,
[dir=rtl] .form-input,
[dir=rtl] select {
    background-color: transparent !important;
    color: #ffffff !important;
}

salla-user-profile input,
salla-user-profile select {
    background-color: transparent !important;
    color: #ffffff !important;
}

salla-user-profile select option {
    background-color: #0a192f !important;
    color: #ffffff !important;
}


/* ══════════════════════════════
   خيارات المنتج
   ══════════════════════════════ */
.s-product-options-option-content .s-form-control,
.s-product-options-option-content input,
.s-product-options-option-content select {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 8px !important;
}

.s-product-options-option-content .s-form-control:focus,
.s-product-options-option-content input:focus,
.s-product-options-option-content select:focus {
    border-color: #F2620A !important;
    box-shadow: none !important;
}

.s-product-options-option-content select option {
    background-color: #0a192f !important;
    color: #ffffff !important;
}


/* ══════════════════════════════
   التعليقات والتقييمات
   ══════════════════════════════ */
.s-comments-count-label {
    color: #ffffff;
}

.s-comments-item-timestamp {
    color: #ffffff;
}

.s-comments-item-content {
    color: #a4acba;
}

.s-comments-item-user-info-name-with-margin {
    color: white;
}

.s-comments-sort-input {
    background-color: var(--bg-secondary);
    border-color: var(--bg-secondary);
    color: black !important;
}

.s-reviews-summary-recommendation-percentage {
    color: #fbbf24;
}

.s-reviews-summary-header-section.s-reviews-summary-recommendation-only p {
    color: #fbbf24;
}


/* ══════════════════════════════
   نافذة تسجيل الدخول
   ══════════════════════════════ */
.s-login-modal-title {
    color: white !important;
}

.s-login-modal-label {
    color: white !important;
}


/* ══════════════════════════════
   الكاتالوج والفئات
   ══════════════════════════════ */
.categories img.lazy.loaded {
    opacity: 1;
    transform: scale(1);
    border: 8px solid;
    border-color: #F2620A !important;
}

.categories img.lazy.loaded:hover {
    scale: 1.4;
    transition: 0.8s;
}


/* ══════════════════════════════
   صفحة المنتج الفردي
   ══════════════════════════════ */
.product-single .product-single__info button.btn--wishlist,
.product-single .product-single__info button.s-social-share-btn {
    background-color: #F2620A;
    border-width: 0;
    color: var(--store-text-primary);
}

.product-single .sticky-product-bar salla-add-product-button salla-button .s-button-btn {
    max-height: 40px;
    background: #F2620A;
}

.s-add-product-button-main .s-add-product-button-mini-checkout {
    --salla-fast-checkout-button-border-radius: 0;
    --salla-fast-checkout-button-height: 100%;
    background: white;
}

.inventory-content>#variant-inventory {
    color: #15b44c;
    position: relative;
}

.product-more-info.vertical .content-ul-tab li .more-info-tabs__nav-link:before {
    background: #f2620a;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    content: "";
    display: inline-block;
    height: 100%;
    opacity: 0;
    position: absolute;
    right: -3px;
    top: 0;
    visibility: hidden;
    width: 3px;
}


/* ══════════════════════════════
   صورة غلاف البروفايل
   ══════════════════════════════ */
.profile__cover--placeholder:before {
    background: hsl(228.65deg 55.22% 13.14%);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}


/* ══════════════════════════════
   الهيرو سلايدر
   ══════════════════════════════ */
.heading h2.advanced-slider__caption__inner__content__heading {
    color: white !important;
}

.heading p {
    color: white;
}

.heading .advanced-slider::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}


/* ══════════════════════════════
   شعار الماركات
   ══════════════════════════════ */
.logosecond .s-block--animated-brands--marquee .marquee__group {
    align-items: center;
    animation: scroll-x 17s linear infinite;
    display: flex;
    flex-shrink: 0;
    gap: calc(clamp(10rem, 1rem + 40vmin, 30rem) / 14);
    animation-direction: reverse;
}

section.s-block.s-block--animated-brands.logosecond {
    margin-top: 0px;
}

.s-block--animated-brands--marquee .marquee__group {
    align-items: center;
    animation: scroll-x 17s linear infinite;
    display: flex;
    flex-shrink: 0;
    gap: calc(clamp(10rem, 1rem + 40vmin, 30rem) / 14);
}


/* ══════════════════════════════
   ديكور العناوين
   ══════════════════════════════ */
.enhanced-title-border:after,
.enhanced-title-border:before {
    background: white;
    content: " ";
    height: 2px;
    position: absolute;
    top: 45%;
    width: 110px;
}

.enhanced-title-border {
    border: 2px solid white;
    border-radius: 100%;
    display: block;
    height: 14px;
    margin: 15px auto;
    position: relative;
    width: 14px;
}


/* ══════════════════════════════
   نصوص متنوعة
   ══════════════════════════════ */
.text-store-text-secondary {
    color: #9ca3af !important;
}

p.total-price {
    color: #f87171;
}


/* زر اشتر الآن */
button.buy-now-btn,
.buy-now-btn {
    width: 100% !important;
    background: #F2620A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: .2s !important;
}

button.buy-now-btn:hover,
.buy-now-btn:hover {
    background: #c94e08 !important;
}


/* ══════════════════════════════
   الموبايل
   ══════════════════════════════ */
@media (max-width: 768px) {
    .product-card__content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    /* إخفاء زر السلة العلوي وإظهار السفلي */
    .product-card__enhanced-mini-cart {
        display: none !important;
    }

    .product-card__content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: 100% !important;
    }

    /* تحديد ارتفاع ثابت للعنوان */
    .product-card__title {
        min-height: 60px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .product-card__content-wrapper {
        flex: 1 !important;
        min-height: 0 !important;
    }

    .product-card__normal-cart {
        display: block !important;
        width: 100% !important;
        padding: 0 4px !important;
        margin-top: auto !important;
        flex-shrink: 0 !important;
    }

    .product-card__normal-cart salla-add-product-button,
    .product-card__normal-cart .w-full,
    .product-card__normal-cart .s-button-wrap,
    .product-card__normal-cart button {
        width: 100% !important;
        display: block !important;
    }

    div.custom-buy-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 4px !important;
        flex-shrink: 0 !important;
    }

    div.custom-buy-wrapper button {
        width: 100% !important;
    }

    .custom-buy-wrapper {
        width: 100%;
        margin-top: 8px;
    }

    .product-card .buy-now-btn,
    .buy-now-btn {
        width: 100%;
        background: #F2620A;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 12px;
        font-weight: 700;
        font-size: 15px;
    }

    .product-card__normal-cart button {
        background: #ffffff !important;
        color: #222 !important;
        border: 1px solid #e5e5e5 !important;
        border-radius: 8px !important;
        width: 100% !important;
        font-weight: 600 !important;
        padding: 12px !important;
    }
}


/* ══════════════════════════════
   ديسكتوب
   ══════════════════════════════ */
@media (min-width: 991px) {
    .product-card.hover_style_4:not(.product-card--horizontal):not(.product-card--entry--horizontal).product-card--fit-height .product-card__content,
    .fit-slider-products .s-slider-swiper-wrapper .swiper-slide .product-card--vertical.product-card--fit-height .product-card__content {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: space-between;
        background: #ECECEE;
    }
}