/* 1. إطار البطاقة ولون الخلفية الأساسي */
[data-product-card] {
  background-color: #ffffff !important;
  border: 1px solid #6d1313!important;
  border-radius: 14px;
  padding: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* توسيط عنوان قسم باقات التدريب */
.section-products h2,
h2.tracking-tight {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
[data-product-card]:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -6px rgba(86, 14, 14, 0.15);
  border-color: #6d1313 !important;
}

/* 2. تحسين عرض الصور */
[data-product-card] img {
  border-radius: 10px;
  transition: transform 0.4s ease;
}

[data-product-card]:hover img {
  transform: scale(1.03);
}

/* 3. الشارات والأوسمة (Badges) */
[data-product-card] .badge-filled {
  background-color: #6d1313 !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(86, 14, 14, 0.15);
}

/* 4. عنوان الجلسة أو الباقة */
[data-product-card] h3,
[data-product-card] h3 a {
  color: #6d1313 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.4;
}

/* 5. السعر وأيقونة الريال */
[data-product-card] .text-foreground.text-sm {
  color: #6d1313 !important;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  margin-top: 2px;
  margin-bottom: 2px;
}

[data-product-card] .riyal-svg {
  fill: #6d1313 !important;
}

/* 6. النص الوصفي للجلسة */
[data-product-card] .text-muted {
  color: #6d1313 !important;
  opacity: 0.85;
  font-size: 0.825rem !important;
  line-height: 1.6 !important;
}

/* 7. زر الإجراء (CTA) ليصبح زر حجز رياضي متناسق */
[data-product-card] .btn-outlined {
  border: 2px solid #6d1313 !important;
  color: #6d1313 !important;
  background-color: transparent !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  transition: all 0.25s ease !important;
}

[data-product-card] .btn-outlined:hover {
  background-color: #6d1313 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(86, 14, 14, 0.2);
}

/* 8. تحسين العرض على أجهزة الجوال (اثنتان في الأعلى وواحدة في المنتصف بالأسفل) */
@media (max-width: 767px) {
  .section-products .grid,
  .section-products [class*="grid"],
  .section-products .theme-container > div {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  [data-product-card] {
    padding: 10px;
    border-radius: 10px;
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    box-sizing: border-box !important;
  }

  /* جعل البطاقة الثالثة (الأخيرة) تأخذ عرض السطر كامل وتتوسط في الأسفل */
  [data-product-card]:nth-child(3) {
    flex: 0 0 100% !important;
    max-width: 75% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  [data-product-card] h3,
  [data-product-card] h3 a {
    font-size: 0.9rem !important;
  }

  [data-product-card] .btn-outlined {
    padding: 8px 12px !important;
  }
}

h2 {
  text-align: center;
}
/* إخفاء خانة الوصف المحددة من بطاقة المنتج */
[data-product-card] .text-muted.text-sm.hidden,
[data-product-card] p.text-muted {
  display: none !important;
}
/* 1. تصميم كرت المراجعة العصري */
.embla__slide article {
  background-color: #ffffff !important;
  border: 1.5px solid rgba(86, 14, 14, 0.15) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 8px 20px -4px rgba(86, 14, 14, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

/* تأثير البروز والتفاعل عند التمرير بالماوس */
.embla__slide article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(86, 14, 14, 0.12);
  border-color: rgba(86, 14, 14, 0.3) !important;
}

/* 2. تغيير ألوان نجوم التقييم لتتناسب مع الهوية */
.embla__slide article .text-warning,
.embla__slide article svg[fill="currentColor"] {
  color: #6d1313 !important;
  fill: #6d1313 !important;
  width: 18px;
  height: 18px;
}

/* 3. تنسيق نص التعليق الرئيسي */
.embla__slide article p {
  color: #6d1313 !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  font-weight: 500;
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}

/* 4. إبراز اسم العميل وفصله بخط خفيف upper-border */
.embla__slide article h3 {
  color: #6d1313 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(86, 14, 14, 0.12);
  display: flex;
  items-center;
  gap: 0.5rem;
}

/* إضافة رمز تحسين بصري بجانب اسم العميل */
.embla__slide article h3::before {
  content: "•";
  color: #6d1313;
  font-size: 1.2rem;
  line-height: 0;
}

/* 5. تحسين أزرار التنقل (السابق/التالي) وشريط التقدم */
.embla-wrapper .embla__prev,
.embla-wrapper .embla__next {
  background-color: #6d1313 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.embla-wrapper .embla__prev:hover:not(:disabled),
.embla-wrapper .embla__next:hover:not(:disabled) {
  transform: scale(1.05);
}

.embla-wrapper .embla__progress {
  background-color: rgba(86, 14, 14, 0.15) !important;
  border-radius: 4px;
}

.embla-wrapper .embla__progress-bar {
  background-color: #6d1313 !important;
}

/* 6. استجابة التصميم لأجهزة الجوال */
@media (max-width: 767px) {
  .embla__slide article {
    padding: 1.25rem !important;
    border-radius: 12px !important;
  }
  
  .embla__slide article p {
    font-size: 0.875rem !important;
  }
}
/* ==========================================
   تنسيق الفوتر ليطابق تصميم بطاقات المنتجات
   الخلفية: #F2DCCC | اللون الرئيسي: #560E0E
   ========================================== */

/* 1. تنسيق خلفية الفوتر بالكامل وألوان النصوص الافتراضية */
#footer {
  background-color: #ffffff !important;
  color: #6d1313 !important;
}

/* 2. تحويل أعمدة الفوتر لتشبه البطاقات وتوسيط محتواها */
#footer .grid > div {
  background-color: #ffffff !important;
  border: 1.5px solid rgba(86, 14, 14, 0.15) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  box-shadow: 0 8px 20px -4px rgba(86, 14, 14, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center !important; /* توسيط العناصر أفقياً */
  text-align: center !important;     /* توسيط النصوص */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* تأثير التمرير الخفيف على بطاقات الفوتر */
#footer .grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(86, 14, 14, 0.12);
  border-color: rgba(86, 14, 14, 0.3) !important;
}

/* 3. توحيد ألوان عناوين الأقسام (تابعنا، سياسات المتجر، تواصل معنا) */
#footer h3 {
  color: #6d1313 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem !important;
  text-align: center !important;
}

/* 4. تنسيق شعار المتجر في الفوتر ليصبح في المنتصف */
#footer img[alt="kontur.sa"] {
  display: block;
  margin: 0 auto 0.5rem auto;
}

/* 5. توسيط وترتيب قوائم الروابط (السياسات وغيرها) */
#footer ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  gap: 0.5rem;
}

#footer ul li {
  text-align: center !important;
  padding: 0.25rem 0 !important;
}

#footer a {
  color: #6d1313 !important;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

#footer a:hover {
  opacity: 0.75;
}

/* 6. تنسيق أيقونات السوشيال ميديا (تابعنا) لتكون متجاورة وفي المنتصف */
#footer .flex.gap-3 {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

#footer .flex.gap-3 a {
  background-color: #6d1313;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#footer .flex.gap-3 a svg {
  width: 18px;
  height: 18px;
  fill: #ffffff !important;
}

/* 7. تنسيق معلومات التواصل (البريد والهاتف) وتوسيعها مع أيقوناتها */
#footer li.flex.items-center {
  display: flex;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.5rem;
  width: 100%;
}

#footer li.flex.items-center svg {
  color: #6d1313 !important;
  stroke: #6d1313 !important;
  fill: #6d1313 !important;
}

/* 8. الجزء السفلي للفوتر (حقوق الطبع، وسائل الدفع، السجل التجاري) */
#footer .border-t {
  border-color: rgba(86, 14, 14, 0.15) !important;
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  text-align: center !important;
}

#footer .border-t .flex {
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 0.75rem;
}
/* ==========================================
   تنسيق عناصر الدفع والتوثيق والسجل التجاري
   ========================================== */

/* 1. الحاوية الرئيسية للعناصر */
#footer .flex.flex-wrap.items-center.gap-x-2 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.25rem !important;
  width: 100% !important;
  margin-top: 1rem !important;
}

/* 2. تجميع وتنسيق أيقونات وسائل الدفع والتوصيل */
#footer .flex.flex-wrap.items-center.gap-x-2 > a[href="/shipping-and-payment"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  background-color: rgba(86, 14, 14, 0.05) !important;
  border: 1px solid rgba(86, 14, 14, 0.12) !important;
  border-radius: 8px !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
}

#footer .flex.flex-wrap.items-center.gap-x-2 > a[href="/shipping-and-payment"]:hover {
  transform: translateY(-2px) !important;
  border-color: #6d1313 !important;
}

/* توحيد أبعاد شعارات الدفع والتوصيل */
#footer .flex.flex-wrap.items-center.gap-x-2 > a[href="/shipping-and-payment"] img {
  height: 22px !important;
  width: auto !important;
  object-fit: contain !important;
}

/* 3. حاوية أسلوب العرض للشعارات (لتكون متجاورة متناسقة) */
#footer .flex.flex-wrap.items-center.gap-x-2 {
  /* تجميع روابط الشحن والدفع في صف واحد مرن */
  flex-flow: row wrap !important;
  justify-content: center !important;
}

/* 4. تنسيق قسم التوثيق (مركز الأعمال والسجل التجاري) */
#footer .flex.flex-wrap.items-center.gap-x-2 > a[href*="saudibusiness.gov.sa"],
#footer .flex.flex-wrap.items-center.gap-x-2 > span.text-muted {
  color: #6d1313 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* تمييز وتنسيق أيقونة ورقم مركز الأعمال */
#footer .flex.flex-wrap.items-center.gap-x-2 > a[href*="saudibusiness.gov.sa"] {
  background-color: #ffffff !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(86, 14, 14, 0.15) !important;
  text-decoration: none !important;
}

#footer .flex.flex-wrap.items-center.gap-x-2 > a[href*="saudibusiness.gov.sa"] .text-foreground {
  color: #6d1313 !important;
  font-weight: 700 !important;
}

/* 5. ضبط النص الخاص برقم السجل التجاري */
#footer .flex.flex-wrap.items-center.gap-x-2 > span.text-muted {
  opacity: 0.85 !important;
}

/* تحسين تجربة الهواتف المحمولة */
@media (max-width: 639px) {
  #footer .flex.flex-wrap.items-center.gap-x-2 {
    gap: 0.85rem !important;
  }
  
  #footer .flex.flex-wrap.items-center.gap-x-2 > a[href="/shipping-and-payment"] {
    padding: 3px 6px !important;
  }
}
/* ضبط حاوية الكمية داخل بطاقة المنتج لتبقى ضمن الحدود وبشكل متناسق */
[data-product-card] .qty-input-full,
[data-product-card] .qty-input {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  gap: 4px !important;
  padding: 4px !important;
  margin-top: 8px !important;
}

/* ضبط أزرار وحقل الكمية لئلا تتجاوز المساحة المتاحة */
[data-product-card] .qty-input-btn {
  flex: 0 0 auto !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

[data-product-card] .qty-input-field {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}