/* Add custom CSS styles below */ 








/* تحميل خط Cairo */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* متغير للخط الأساسي للنصوص */
:root {
  --text-font: "Cairo", "Tahoma", "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
}

/* 1) طبّق Cairo على العناصر النصيّة الشائعة فقط */
body,
p, span, a, li, ul, ol, dl, dt, dd,
h1, h2, h3, h4, h5, h6,
small, strong, b, em, i, mark,
label, input, select, textarea, button,
.table, .badge, .breadcrumb, .alert, .toast, .modal, .dropdown, .drawer {
  font-family: var(--text-font) !important;
}

/* 2) ثبّت عدم تغيير خط الأيقونات (FA/Salla Icons/أيقونات عامة) */
i,
.icon,
[class*=" icon-"], [class^="icon-"],
[class*=" fa-"], [class^="fa-"], .fa, .fas, .far, .fal, .fab,
[class*=" sicon-"], [class^="sicon-"] {
  font-family: inherit; /* اتركها كما يحددها الثيم/المكتبة */
}

/* 3) احمِ العناصر الزائفة للأيقونات من التأثر بتغيير الخط */
i::before, i::after,
.icon::before, .icon::after,
[class*=" icon-"]::before, [class^="icon-"]::before,
[class*=" fa-"]::before, [class^="fa-"]::before,
[class*=" sicon-"]::before, [class^="sicon-"]::before,
.fa::before, .fas::before, .far::before, .fal::before, .fab::before {
  font-family: inherit !important;
}

/* 4) دعم الاتجاهين بدون المساس بالأيقونات */
html[dir="rtl"] body,
html[dir="ltr"] body {
  font-family: var(--text-font) !important;
}

















/* بوب أب مستك - هوية #005341 */
#mistqsa-discount-popup {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.85);
    z-index: 999999 !important;
    backdrop-filter: blur(5px);
}

#mistqsa-discount-popup.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: popupFadeIn .3s ease-in-out;
}

#mistqsa-popup-content {
    background: #ffffff;
    border: 2px solid #005341;
    border-radius: 20px;
    padding: 35px;
    max-width: 450px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    animation: popupSlideUp .4s ease-out;
    direction: rtl;
    text-align: center;
}

.mistqsa-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #005341;
    cursor: pointer;
    transition: transform .25s ease, color .25s ease;
    width: 35px;
    height: 35px;
    line-height: 1;
    font-weight: 700;
}

.mistqsa-close-btn:hover { color: #023c31; transform: rotate(90deg); }

.mistqsa-popup-header { margin-bottom: 25px; }

.mistqsa-popup-title {
    font-size: 28px;
    font-weight: 800;
    color: #023c31;
    margin: 0 0 12px 0;
    letter-spacing: -.5px;
}

.mistqsa-popup-subtitle {
    font-size: 16px;
    color: #2a2a2a;
    margin: 0;
    line-height: 1.7;
}

/* صندوق الخصم باللون الأساسي */
.mistqsa-discount-box {
    background: #005341;
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 8px 25px rgba(0, 83, 65, 0.35);
    position: relative;
    overflow: hidden;
}

.mistqsa-discount-label {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
    opacity: .95;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mistqsa-discount-code {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 5px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 10px rgba(0,0,0,.2);
}

/* زر النسخ: أبيض على أخضر */
.mistqsa-copy-btn {
    background: #ffffff;
    color: #005341;
    border: 2px solid #ffffff;
    padding: 12px 35px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 15px;
    transition: all .25s ease;
    box-shadow: 0 3px 15px rgba(255,255,255,.2);
}

.mistqsa-copy-btn:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,.25);
}

.mistqsa-copy-btn.copied {
    background: #1fbf75; /* توكن نجاح مقروء على الأخضر */
    color: #ffffff;
    border-color: #1fbf75;
}

/* زر CTA باللون الأساسي */
.mistqsa-cta-btn {
    background: #005341;
    color: #ffffff;
    border: 2px solid #005341;
    padding: 16px 45px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: all .25s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(0, 83, 65, .35);
}

.mistqsa-cta-btn:hover {
    background: #023c31;
    border-color: #023c31;
    transform: translateY(-3px);
}

/* أنيميشن */
@keyframes popupFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popupSlideUp {
    from { transform: translateY(50px) scale(.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* استجابة للجوال */
@media (max-width: 768px) {
    #mistqsa-popup-content { padding: 30px 20px; max-width: 90%; }
    .mistqsa-popup-title { font-size: 24px; }
    .mistqsa-popup-subtitle { font-size: 15px; }
    .mistqsa-discount-code { font-size: 28px; letter-spacing: 3px; }
    .mistqsa-discount-box { padding: 25px 20px; }
}

@media (max-width: 480px) {
    #mistqsa-popup-content { padding: 25px 18px; }
    .mistqsa-popup-title { font-size: 22px; }
    .mistqsa-discount-code { font-size: 26px; }
    .mistqsa-copy-btn { padding: 10px 25px; font-size: 14px; }
}





















































/* تعديل خلفية عنصر Tamara للون الأبيض */
.tamara-summary-widget__container {
    background-color: #ffffff !important;
}

/* تأكد من وضوح النص الأسود على الخلفية البيضاء */
.tamara-summary-widget__container .tamara-summary-widget__inline__text,
.tamara-summary-widget__container .tamara-summary-widget__amount {
    color: #000000 !important;
}

/* تحسين الحواف والمظهر العام */
.tamara-summary-widget__container {
    border: 1px solid #e0e0e0 !important;
    padding: 12px !important;
    border-radius: 8px !important;
}

/* التأكد من رؤية الأيقونات */
.tamara-summary-widget__container svg path {
    fill: #000000 !important;
}

/* تحسين رابط "تعرّف على خياراتك" */
.tamara-inline-learn-more-link {
    color: #000000 !important;
    text-decoration: underline !important;
}

.tamara-inline-learn-more-link:hover {
    opacity: 0.7;
}



























/* تفعيل التفاف وتنظيم القائمة */
.footer-bottom .container > ul {
  display: flex;
  flex-wrap: wrap;            /* يسمح بسطر جديد */
  gap: .5rem;                 /* مسافات بين العناصر */
  justify-content: center;    /* محاذاة وسط */
  align-items: center;
}

/* العناصر العادية (أيقونات الدفع) */
.footer-bottom .container > ul > li {
  width: 3rem;                /* w-12 */
  height: 2rem;               /* h-8 */
  background: #fff;
  border-radius: .25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .25rem;            /* p-1 */
  order: 0;                   /* افتراضي */
}

/* آخر عنصر: سطر مستقل بالأعلى وبحجم كبير */
.footer-bottom .container > ul > li:last-child {
  flex: 0 0 100%;             /* يعادل width:100% في flex */
  order: -1;                  /* يظهر أولاً بصرياً */
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* استبدال الصورة بخلفية الشعار (بدون تعديل HTML) */
.footer-bottom .container > ul > li:last-child a {
  display: block;
  width: 100%;
  max-width: 420px;           /* أقصى عرض للشعار */
  height: 64px;               /* ارتفاع مناسب */
  background-image: url("https://upload.wikimedia.org/wikipedia/ar/thumb/3/3c/%D8%A7%D9%84%D9%85%D8%B1%D9%83%D8%B2_%D8%A7%D9%84%D8%B3%D8%B9%D9%88%D8%AF%D9%8A_%D9%84%D9%84%D8%A3%D8%B9%D9%85%D8%A7%D9%84.svg/2560px-%D8%A7%D9%84%D9%85%D8%B1%D9%83%D8%B2_%D8%A7%D9%84%D8%B3%D8%B9%D9%88%D8%AF%D9%8A_%D9%84%D9%84%D8%A3%D8%B9%D9%85%D8%A7%D9%84.svg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* إخفاء img داخل آخر عنصر بصرياً فقط */
.footer-bottom .container > ul > li:last-child img {
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
  position: absolute;
}

/* تحسينات استجابة */
@media (min-width: 640px) {
  .footer-bottom .container > ul > li:last-child a {
    max-width: 520px;
    height: 72px;
  }
}
@media (max-width: 480px) {
  .footer-bottom .container > ul > li:last-child a {
    max-width: 320px;
    height: 56px;
  }
}


























:root { --brand-green: #005341; }

/* 1) الأساس: اجعل جميع أزرار سلة ممتلئة خضراء */
salla-button .s-button-element,
.addToCart__btn .s-button-element,
.product-card__mini-cart__btn .s-button-element,
.product-card__normal-cart__btn .s-button-element,
.product-card__buttons .s-button-element,
.product-card__actions .s-button-element {
  background-color: var(--brand-green) !important;
  color: #fff !important;
  border: 2px solid var(--brand-green) !important;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: none !important;
  background-image: none !important;
}

/* توحيد أصناف outline الافتراضية داخل سلة */
salla-button .s-button-element.s-button-outline,
salla-button .s-button-element.s-button-primary-outline,
.s-button-element.s-button-outline,
.s-button-element.s-button-primary-outline {
  background-color: var(--brand-green) !important;
  color: #fff !important;
  border-color: var(--brand-green) !important;
}

/* النص والأيقونات داخل الزر */
salla-button .s-button-element .s-button-text,
salla-button .s-button-element i,
.s-button-element .s-button-text,
.s-button-element i {
  color: #fff !important;
}

/* 2) الهوفر/الفوكس: خلفية بيضاء + نص أخضر + إطار أخضر */
salla-button .s-button-element:hover,
salla-button .s-button-element:focus,
.addToCart__btn .s-button-element:hover,
.addToCart__btn .s-button-element:focus,
.product-card__mini-cart__btn .s-button-element:hover,
.product-card__mini-cart__btn .s-button-element:focus,
.product-card__normal-cart__btn .s-button-element:hover,
.product-card__normal-cart__btn .s-button-element:focus,
.product-card__buttons .s-button-element:hover,
.product-card__buttons .s-button-element:focus,
.product-card__actions .s-button-element:hover,
.product-card__actions .s-button-element:focus {
  background-color: #fff !important;
  color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}

salla-button .s-button-element:hover .s-button-text,
salla-button .s-button-element:hover i,
salla-button .s-button-element:focus .s-button-text,
salla-button .s-button-element:focus i,
.s-button-element:hover .s-button-text,
.s-button-element:hover i,
.s-button-element:focus .s-button-text,
.s-button-element:focus i {
  color: var(--brand-green) !important;
}

/* 3) حالات الحجم/العرض */
.s-button-element.s-button-wide,
.s-button-element.s-button-sm {
  background-color: var(--brand-green) !important;
  color: #fff !important;
  border-color: var(--brand-green) !important;
}

/* 4) حالة التعطيل */
.s-button-element[disabled],
.s-button-element.s-button-disabled {
  background-color: var(--brand-green) !important;
  color: #fff !important;
  border-color: var(--brand-green) !important;
  opacity: .65 !important;
  cursor: not-allowed !important;
}

/* 5) زر المفضلة كأيقونة */
.btn--wishlist.s-button-element {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  color: #fff !important;
}
.btn--wishlist.s-button-element i { color: inherit !important; }
.btn--wishlist.s-button-element:hover,
.btn--wishlist.s-button-element:focus {
  background-color: #fff !important;
  color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}

/* 6) معالجة أي طبقة ألوان من الثيم */
.s-button-element.s-button-primary,
.s-button-element.s-button-primary-outline,
.s-button-element[class*="primary"] {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
  color: #fff !important;
}