/* =========================================================
   NAJD SECRET — CSS مخصص شامل
   يحل محل كل الـ CSS الموجود حاليًا. الصقيه كاملًا مكانه.
   ========================================================= */


/* =========================================================
   1. المتغيّرات (الهوية)
   ========================================================= */

:root {
  --ns-ink: #19332F;          /* النص الأساسي — 13.5:1 */
  --ns-ink-2: #3F5955;        /* النص الثانوي — 7.6:1 */
  --ns-ink-3: #56635F;        /* التسميات الصغيرة — 6.3:1 */
  --ns-ivory: #F8F5F1;        /* العاجي: خلفيات دافئة + النص فوق الأخضر */

  --price-after-discount-color: #C93C3C !important;  /* كان #F67070 (2.8:1) */
  --price-before-discount-color: #56635F !important;
  --subtitle-color: #71717A !important;              /* كان #A1A1AA (2.6:1) */
  --color-primary-reverse: #F8F5F1 !important;       /* لون واحد للنص فوق الأخضر */

  --ns-radius-sm: 4px;
  --ns-radius-card: 16px;
  --ns-radius-pill: 9999px;

  --ns-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ns-fast: 0.2s;
  --ns-base: 0.3s;
  --ns-slow: 0.5s;
}


/* =========================================================
   2. التخطيط العام
   ========================================================= */

salla-slider {
  --swiper-slide-overlay: rgba(25, 51, 47, 0.6);
}

.app-inner.flex.flex-col .s-block.s-block--bundle-hero-section,
section,
.section-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.hero-content {
  position: relative;
  z-index: 10;
  flex-shrink: unset !important;
  width: 92% !important;
  min-width: 92% !important;
}

.reviews-grid,
.reviews-grid .review-card {
  width: 50% !important;
  min-width: 50% !important;
  flex-shrink: unset !important;
}

.reviews-grid {
  padding: 8px !important;
  margin: auto !important;
}

@media (max-width: 767px) {
  section .cards-grid {
    margin: auto !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* مسافات الأقسام على مقياس 4px (كانت 81.92px) */
salla-cases-section-66lp4b,
salla-testimonials-prestige-tas1bc {
  padding-block: 80px !important;
}


/* =========================================================
   3. الألوان وإمكانية الوصول
   ========================================================= */

.price-after-discount,
.s-product-card-sale-price,
.s-product-card-sale-price * {
  color: var(--price-after-discount-color) !important;
}

.before-price {
  color: var(--price-before-discount-color) !important;
}

/* رماديات Tailwind الزرقاء ← رماديات مشتقة من الأخضر */
.text-slate-900, .text-gray-900, .text-zinc-900 { color: var(--ns-ink) !important; }
.text-slate-800, .text-gray-800, .text-zinc-800,
.text-slate-700, .text-gray-700, .text-zinc-700,
.text-gray-600, .text-slate-600, .text-zinc-600 { color: var(--ns-ink-2) !important; }
.text-gray-500, .text-slate-500, .text-zinc-500 { color: var(--ns-ink-3) !important; }

/* نصوص لونها مكتوب مباشرة #4b5563 */
[style*="#4b5563"], [style*="#4B5563"], [style*="#4b5563"] * {
  color: var(--ns-ink-2) !important;
}


/* =========================================================
   4. الخطوط: 12 · 14 · 16 · 20 · 30 · 36
   ========================================================= */

body {
  font-size: 16px;
  line-height: 28px;
}

.text-\[15px\] {
  font-size: 14px !important;
  line-height: 24px !important;
}

@media (min-width: 768px) {
  html body .md\:text-\[17px\],
  html body .md\:text-lg {
    font-size: 16px !important;
    line-height: 28px !important;
  }
}


/* =========================================================
   5. الأزرار: شكل واحد (حبّة)، لون نص واحد، مقاسان
   ========================================================= */

html body .s-button-primary,
html body a.px-8.py-4.rounded-xl {
  border-radius: var(--ns-radius-pill) !important;
  color: var(--ns-ivory) !important;
  font-weight: 700 !important;
}

html body .s-button-primary .s-button-text,
html body .s-button-primary .s-button-text i {
  color: var(--ns-ivory) !important;
}

/* كبير — أزرار الواجهة */
html body a.px-8.py-4.rounded-xl {
  font-size: 16px !important;
  padding: 16px 32px !important;
}

/* عادي — أزرار المنتجات */
html body .s-button-primary:not(.s-product-card-quick-view-btn) {
  font-size: 14px !important;
  padding: 8px 24px !important;
}

/* المعاينة السريعة (العين) */
html body .s-product-card-quick-view-btn {
  padding: 8px 12px !important;
}

html body .s-product-card-quick-view-btn,
html body .s-product-card-quick-view-btn * {
  color: var(--ns-ivory) !important;
}


/* =========================================================
   6. بطاقات «برنامج… لما الجلسة ما تكفي»
   ========================================================= */

.products-prestige .s-products-list-wrapper.s-products-list-vertical-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}

.products-prestige .prestige-card {
  background-color: var(--ns-ivory);
  border-radius: var(--ns-radius-card);
  padding: 16px;
}

.products-prestige .prestige-card .img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--ns-radius-sm);
}

.products-prestige .prestige-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ns-radius-sm);
}

.products-prestige .prestige-card .s-product-card-quick-view-btn {
  bottom: 4px !important;
  right: 4px !important;
  transform: none !important;
  opacity: 1 !important;
}


/* =========================================================
   7. التصنيفات — بطاقات شفافة بإطار قوسي
      4 بطاقات على الجوال + سحب أفقي
   ========================================================= */

.prestige-categories-slider {
  width: 100%;
  max-width: 1280px;
  margin: 4px auto !important;
  padding: 4px 24px 8px !important;
  background: transparent !important;
  box-sizing: border-box;
}

.prestige-categories-slider .s-slider-wrapper {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.prestige-categories-slider .s-slider-container {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.prestige-categories-slider .s-slider-container::-webkit-scrollbar {
  display: none !important;
}

.prestige-categories-slider .swiper-wrapper {
  display: flex !important;
  width: max-content !important;
  height: auto !important;
  gap: 16px;
  padding: 0 0 4px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* سطح المكتب: بطاقة 184px */
.prestige-categories-slider .swiper-slide {
  width: 184px !important;
  min-width: 184px !important;
  max-width: 184px !important;
  flex: 0 0 184px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* إزالة شكل بطاقة سلة: بلا خلفية ولا حدود ولا ظل */
.prestige-categories-slider .swiper-slide,
.prestige-categories-slider .swiper-slide > div,
.prestige-categories-slider .swiper-slide > div > a,
.prestige-categories-slider .swiper-slide > div > a > div:first-child,
.prestige-categories-slider .swiper-slide a div[style*="background-image"],
.prestige-categories-slider .swiper-slide .text {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.prestige-categories-slider .swiper-slide > div {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

.prestige-categories-slider .swiper-slide > div > a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 0 4px !important;
  color: var(--ns-ink);
  text-decoration: none;
  overflow: hidden;
}

/* الإطار القوسي */
.prestige-categories-slider .swiper-slide > div > a > div:first-child {
  position: relative !important;
  width: calc(100% - 8px) !important;
  aspect-ratio: 0.74 / 1 !important;
  margin: 0 auto 4px !important;
  box-sizing: border-box !important;
  border-radius: 50% 50% 0 0 !important;
}

/* طبقة صورة سلة — تبقى ظاهرة، وفي المنتصف */
.prestige-categories-slider .swiper-slide a div[style*="background-image"] {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  margin: auto !important;
  width: 85% !important;
  height: 85% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-color: transparent !important;
  transform: scale(1) !important;
}

.prestige-categories-slider .swiper-slide a div[style*="background-image"] > div {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.prestige-categories-slider .swiper-slide .text {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 4px !important;
  background: transparent !important;
  box-sizing: border-box;
  text-align: center;
}

.prestige-categories-slider .swiper-slide h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ns-ink) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  text-align: center;
}

/* الجوال: 4 بطاقات ظاهرة (حشوة 8+8 + 3 فراغات × 8 = 40px) */
@media (max-width: 767px) {
  .prestige-categories-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 !important;
    padding: 8px !important;
  }

  .prestige-categories-slider .s-slider-container {
    touch-action: pan-x !important;
  }

  .prestige-categories-slider .swiper-wrapper {
    max-width: none !important;
    gap: 8px !important;
  }

  .prestige-categories-slider .swiper-slide {
    width: calc((100vw - 40px) / 4) !important;
    min-width: calc((100vw - 40px) / 4) !important;
    max-width: calc((100vw - 40px) / 4) !important;
    flex: 0 0 calc((100vw - 40px) / 4) !important;
  }

  .prestige-categories-slider .swiper-slide > div > a > div:first-child {
    width: calc(100% - 4px) !important;
    aspect-ratio: 0.72 / 1 !important;
    flex-shrink: 0 !important;
  }

  .prestige-categories-slider .swiper-slide .text {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 32px !important;
    padding: 0 !important;
  }

  /* 12px أصغر حجم مقروء (كان 10px) */
  .prestige-categories-slider .swiper-slide h3 {
    display: -webkit-box !important;
    width: 100% !important;
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere !important;
  }
}

/* الشاشات الصغيرة جدًا 320–330px (حشوة 4+4 + 3 × 4 = 20px) */
@media (max-width: 330px) {
  .prestige-categories-slider {
    padding: 4px !important;
  }

  .prestige-categories-slider .swiper-wrapper {
    gap: 4px !important;
  }

  .prestige-categories-slider .swiper-slide {
    width: calc((100vw - 20px) / 4) !important;
    min-width: calc((100vw - 20px) / 4) !important;
    max-width: calc((100vw - 20px) / 4) !important;
    flex-basis: calc((100vw - 20px) / 4) !important;
  }

  .prestige-categories-slider .swiper-slide > div > a > div:first-child {
    width: 100% !important;
    aspect-ratio: 0.70 / 1 !important;
  }
}


/* =========================================================
   8. الحركة: منحنى واحد وثلاثة توقيتات
   ========================================================= */

a, button, .s-button-element, salla-button, .header-btn, .mburger {
  transition-duration: var(--ns-fast) !important;
  transition-timing-function: var(--ns-ease) !important;
}

.prestige-contentBox, [class*="sicon-keyboard_arrow"], .s-cart-summary-wrapper {
  transition-duration: var(--ns-base) !important;
  transition-timing-function: var(--ns-ease) !important;
}

img, .duration-700, .duration-500 {
  transition-duration: var(--ns-slow) !important;
  transition-timing-function: var(--ns-ease) !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* =========================================================
   9. التركيز بلوحة المفاتيح
   ========================================================= */

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ns-ink) !important;
  outline-offset: 3px !important;
}


/* =========================================================
   10. تعديلات أقسام محددة
   ========================================================= */

section[component-id="1227599948"] {
  margin-top: -32px !important;
  padding-top: 0 !important;
}

salla-text-content-u850bf {
  margin-top: 0 !important;
  padding-top: 0 !important;
}