/* Add custom CSS styles below */ 
/* ====== متغيرات الألوان والشعار ====== */
:root { 
  --color-primary: #2b89ca; 
  --color-primary-dark: #000; 
  --color-primary-light: #454545; 
  --color-primary-reverse: #095990; 
  --logo: url(https://ibb.co/Xk3NgmSn); 
}
/* ====== القوائم ====== */
.main-menu { margin-right: 10rem !important; } 
.main-menu li.root-level > a { font-weight: 700; font-size: 18px; color: var(--color-primary); } 
.main-menu span { font-size: 17px; } 
ul.hidden.lg\\:flex.items-center.rtl\\:pl-4.ltr\\:pr-4.whitespace-nowrap,
.hidden.lg\\:flex.items-center { display: flex !important; }

/* ====== الخلفيات ====== */
.bg-gray-50, .s-product-card-image { background-color: #fff !important; } 
body {
  max-width: 2000px;
  margin: auto;
  background-color: #fdfbfb; /* تم تصحيح اللون */
  background-size: cover;
  background-repeat: repeat;
  background-image: none; /* تم إزالة الرابط الفارغ */
}

div#mainnav.bg-white { background: transparent; }

/* ====== فواصل وإخفاء العنوان الفرعي ====== */
.s-product-card-content-subtitle { display: none !important; }

/* إخفاء اسم المنتج إذا تجاوز سطرين */
.s-product-card-vertical h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  line-height: 1.2em;
  max-height: 2.4em;
}

/* ====== شريط الخصم أعلى الصفحة ====== */


/* إزالة الحواف السفلية لبطاقة المنتج */
.s-product-card-vertical,
.s-product-card {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ====== الفوتر ====== */

/* ====== الفوتر مع الموجة ====== */
footer.store-footer { 
  position: relative; 
  overflow: visible; 
  border-radius: 0 !important; 
  margin: 0 !important; 
  padding: 40px 0 120px; 
  width: 100% !important; 
  left: 0; 
  bottom: 0; 
  color: white; 
  text-align: center; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  box-sizing: border-box;
  }
/* تغيير لون عنوان الفوتر */
.s-contacts-title {
    color: #002D72; /* أزرق غامق */
    text-align: center;
}

/* إصلاح الأيقونات داخل دائرتها الصغيرة */
.s-contacts-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* محاذاة محتوى الفوتر للمنتصف */
.s-contacts-item,
.s-contacts-item .unicode {
    display: block;
    text-align: center;
    margin: 0 auto;
}

/* جعل قائمة التواصل الاجتماعي في المنتصف */
.s-social-list {
    display: flex;
    justify-content: center;
    gap: 15px; /* مسافة بين أيقونات السوشيال */
    padding: 0;
    margin: 20px 0;
}

/* ضبط كل عنصر من عناصر السوشيال */
.s-social-link {
    list-style: none;
    text-align: center;
}

/* التأكد من أن أيقونة السوشيال داخل الدائرة الخاصة بها */
.s-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto;
}

/* ===== عنوان السلايدر ===== */
/* ===== تثبيت الحاوية كصندوق واحد ===== */
.s-slider-block__title {
  display: flex;
  flex-direction: column;   /* عمودي */
  align-items: center;      /* توسيط المحتوى */
  text-align: center;
  position: relative;
  margin-top: 5px;
  margin-bottom: 15px;      /* المسافة بين الصندوق والمنتجات */
}

/* ===== العنوان ===== */
.s-slider-block__title-right h2 {
  font-size: 22px !important;
  font-weight: 1000;
  padding: 3px 45px;
  border-radius: 8px;
 /* background: #F8F5F0;*/
  color: #000 !important;
  margin: 0;
  display: inline-block;
  position: relative; /* مهم للخط والدائرة */
  z-index: 2;
}

/* ===== خط تحت العنوان مع دائرة في الوسط ===== */
.s-slider-block__title-right h2::after {
  content: "";
  position: absolute;
  bottom: -10px;  /* المسافة بين العنوان والخط */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;    /* طول الخط يساوي طول العنوان */
  height: 2px;    /* سماكة الخط */
  background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.4));
}

.s-slider-block__title-right h2::before {
  content: "";
  position: absolute;
  bottom: -14.5px;  /* ضبط الدائرة فوق الخط قليلًا */
  left: 50%;
  transform: translateX(-50%);
  width: 10px;   /* قطر الدائرة */
  height: 10px;
  background: #000; /* لون الدائرة */
  border-radius: 50%;
  z-index: 3;
}

/* ===== تعديل حاوية العنوان ===== */
.s-slider-block__title-right {
  position: relative;
  left: -15px;
  transform: none;
}
/* ===== عرض الكل تحت العنوان مباشرة ===== */
.s-slider-block__title-left {
  margin-top: 25px; /* زيادة المسافة لتجنب تداخل الخط مع "عرض الكل" */
}

.s-slider-block__display-all {
  padding: 6px 14px;
  border: 1px solid rgba(0, 0, 0, 0.2); /* باهت جدًا */
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5) !important; /* نص باهت جدًا */
  text-decoration: none !important;
  white-space: nowrap;
  display: inline-block;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.12s ease;
}

/* ✨ عند الضغط أو التركيز */
.s-slider-block__display-all:active,
.s-slider-block__display-all:focus,
.s-slider-block__display-all:focus-visible {
  transform: scale(0.96);
  background-color: rgba(173, 216, 230, 0.3); /* أزرق فاتح شفاف */
  border-color: #7ec8e3; /* لون مناسب للحدود */
  color: #007acc !important; /* نص أزرق واضح عند الضغط */
  outline: none;
}



/* ====== شريط التمرير ====== */
::-webkit-scrollbar { width: 10px; height: 10px; } 
::-webkit-scrollbar-track-piece { background-color: rgba(0, 0, 0, 0.2); } 
::-webkit-scrollbar-thumb:vertical { height: 200px; background-color: var(--color-primary-reverse); } 
::-webkit-scrollbar-thumb:vertical:hover { background-color: red; } 
::-webkit-scrollbar-thumb:horizontal { width: 200px; background-color: rgba(125, 125, 125, 0.7); }

/* ====== المنتجات والخانات ====== */
.product__description, .product__description * { color: #000 !important; opacity: 1 !important; }
.quick-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px;
  width: 95%;
  max-width: 1200px;
  height: auto;
  margin: 20px auto;
  background-color: transparent;
  box-sizing: border-box;
}
.quick-link {
  background: linear-gradient(#d3e61, #2b5b80); /* تصحيح التدرج اللوني */
  border-radius: 0px 15px 0px 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quick-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}
.quick-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* 📱 في الشاشات الصغيرة (الجوال) */
@media (max-width: 600px) {
  .quick-links-container { grid-template-columns: repeat(2, 1fr); }
  .quick-link { height: 50px; }
}
.s-product-card-vertical { border: 1px solid #000 !important; }

/* خانة البحث */
input[type="search"], .search-bar, .search-container {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  color: #000 !important;
  border-radius: 8px !important;
  padding: 10px !important;
}
/* الصفحة الرئيسية: 3 منتجات في الصف */
.home-page .s-product-card-vertical {
  width: calc(33.333% - 12px) !important;
  max-width: calc(33.333% - 12px) !important;
  flex: 0 0 calc(33.333% - 12px) !important;
  height: 100px !important;
  padding: 2px !important;
  margin: 2px !important;
  box-sizing: border-box !important;
}
/* ====== شارات الخصم ====== */
/* زر المفضلة داخل البطاقة */
.discount-badge-test {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #c62828;
  color: #fff;
  padding: 0px 1px;
  font-size: 10px;
  font-weight: bold;
  border-top-right-radius: 2px;
  z-index: 10;
  display: inline-block;
  white-space: nowrap;
}
/* زر أضف للسلة */
.s-product-card-vertical .s-button-wide {
  position: absolute;
  bottom: 0;
  margin-bottom: var(--button-margin-bottom, 0px);
  margin-top: var(--button-margin-top, 0px);
  left: 0;
  width: 100%;
  padding: var(--button-padding-vertical, 3px) 0;
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  /* background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary)); */
  background: #1f3a5f;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.3s ease, transform 0.12s ease, box-shadow 0.12s ease;
  z-index: 5;
}

/* ✨ اللمسة عند الضغط فقط */
/*.s-product-card-vertical .s-button-wide:active {
  transform: scale(0.97);
  box-shadow: 0 0 0 3px rgba(203, 180, 122, 0.35);
  background: #bfa35f;
}


/* Hover */
.salla-add-to-cart:hover,
.add-to-cart-btn:hover,
button[type="submit"]:hover {
  background-color: #274b78 !important;
}

/* Active */
.salla-add-to-cart:active,
.add-to-cart-btn:active,
button[type="submit"]:active {
  background-color: #162c48 !important;
}



/* إخفاء trust badges */
.s-trust-badges-content,
.s-trust-badges-image,
.s-trust-badges-number,
.s-trust-badges-content * {
  display: none !important;
}
.s-product-card-promotion-title {
  top: -5px !important; /* عدّل القيمة حسب ارتفاعك المفضل */
}
/* خلفية الأيقونات باللون الذهبي */
.feature-icon {
  background-color: #fff;
  color: #fff;
  width: 90px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.s-block--features__item h2 {
  color: #d4af37 !important;
}
/* حجم ولون الأيقونة داخل الدائرة */
.feature-icon i {
  font-size: 20px;
  width: 90px;
  height: 65px;
  background-color:#fff;
  color: #000000; /* سكري */
}
/* لون العنوان */
.s-block--features__item h2 {
  color: #d4af37 !important;
}
/* تلوين جميع عناوين الفوتر باللون الذهبي */
footer h2,
footer h3,
footer .footer-title,
footer .widget-title {
color:#2b89ca !important;  /* الذهبي */
 font-weight: bold;
} 
/* النص السفلي */
.s-block--features__item p {
  font-size: 12px;
  opacity: 0.85;
}
.grid > .s-block--features__item:nth-child(1),
.grid > .s-block--features__item:nth-child(2),
.grid > .s-block--features__item:nth-child(3) {
  width: 33.333% !important;
}
/* تحويل الحاوية إلى Flex ولكن فقط إذا كانت تحتوي على هذه العناصر الثلاثة */
.grid:has(> .s-block--features__item:nth-child(3)) {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between;
}
/* تلوين عناوين المميزات باللون الذهبي */
.s-block--features__item h2 {
  color:#d4af37 !important; /* الذهبي */
font-weight: bold;
  font-size: 19px; /* نفس الحجم السابق */
  margin-top: 0;
}
/* لون العنوان */
.s-block--features__item h2 {
  color: #d4af37 ;
}

.navbar {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
/* نجعل الشعار في المنتصف تماماً */
.navbar-brand {
    position: absolute;
    left: 55%;
    transform: translateX(-50%);
    margin: 0 auto !important;
}
.s-cart-summary-wrapper,
.s-user-menu-trigger {
    transform: scale(0.75);
    transform-origin: center;
}
/* =========================
   زر واتساب
========================= */
#whatsapp-button {
  position: fixed;
  right: 15px;
  bottom: 80px;
  background: #25d366;
  color: #fff;
  padding: 2px 4px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  font-weight: bold;
}

/* أيقونة واتساب */
#whatsapp-button img {
  width: 30px;
  height: 30px;
}

/* =========================
   فقاعة الترحيب
========================= */
.whatsapp-bubble {
  position: fixed;
  right: 20px;
  bottom: 120px;
  background: #fff;
  color: #000;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.5s ease;
}

/* إخفاء الفقاعة */
.whatsapp-bubble.hide {
  opacity: 0;
  pointer-events: none;
}

.save-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 10px;
  margin-top: 6px;
  background: linear-gradient(135deg, #2b89ca, #095990);
  color: #fff;
  padding: 2px 2px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.save-box .fire {
  font-size: 16px;
}

.save-box strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== خلفية للمتجر كامل ===== */
body {
  /* رابط الصورة */
 /* background-image: url('https://cdn.salla.sa/dPjKmo/67efebd2-fa49-4d99-9023-724972f2e1e1-1000x1000-3PArWWCOhMl3pSsLw1qEpJ0f9KXtjhrU2gUdF84j.jpg"');

  /* طريقة عرض الصورة */
  /*background-repeat: no-repeat;     /* عدم التكرار */
/*  background-size: cover;           /* تغطي كامل الشاشة */
  /*background-position: center;      /* توسيط الصورة */
/*  background-attachment: fixed;     /* تثبيت الخلفية عند التمرير */

  /* لون احتياطي إذا لم تحمل الصورة */
  background-color: #F8F5F0;
}


/* استبدال نص شعار الفوتر بصورة + تعطيل الضغط */
.store-footer__inner a.flex.items-center {
  pointer-events: none;        /* تعطيل النقر نهائيًا */
  cursor: default;
  justify-content: center;     /* توسيط أفقي */
  width: 100%;
}

.store-footer__inner a.flex.items-center h3 {
  /* إخفاء النص */
  text-indent: -9999px;
  overflow: hidden;

  /* وضع الصورة بدل النص */
  background-image: url('https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/dPjKmo/oRPBrzMRZiPNdJlm7ro7O0ry7ljKCooO0CdmySMb.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;

  /* أبعاد الشعار */
  width: 190px;
  height: 100px;

  display: block;
  margin: 0 auto;              /* توسيط داخل الفوتر */
}

.rating-header p {
    color: #fff;
}
.rating-header h2,
.rating-header p {
    color: #ffffff !important;
}

/* تحويل النموذج إلى شبكة عمودين */
#national_address_form .form-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* عمودين متساويين */
  gap: 15px; /* المسافة بين الحقول */
  margin-top: 10px;
}

/* كل الحقول تغطي كامل العمود */
#national_address_form .form-group,
#national_address_form .ui.selection.dropdown,
#national_address_form input.form-control {
  width: 100% !important;
  box-sizing: border-box;
}

/* الحقول التي تريد أن تمتد على كامل السطر */
#national_address_form .form-group.full-width {
  grid-column: 1 / -1; /* يغطي العمودين */
}

/* تحسين المسافات بين التسميات والحقل */
#national_address_form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

/* تحسين طول الحقول Dropdown */
#national_address_form .ui.selection.dropdown {
  min-height: 40px;
}

/* تمرير داخلي للـ dropdown إذا زاد المحتوى */
#national_address_form .ui.selection.dropdown .menu {
  max-height: 180px;
  overflow-y: auto;
}

/* مسافة بين الصفوف للعرض العمودي على الموبايل */
@media screen and (max-width: 768px) {
  #national_address_form .form-fields-grid {
    grid-template-columns: 1fr; /* عمود واحد على الموبايل */
  }
}

.sticky-product-bar {
    bottom: 45px !important;
}

.product-page .sticky-product-bar {
    bottom: 0 !important;
}
/* نجمات */