/* Add custom CSS styles below */ 
/* ====== إصلاح وتحسين الكود ====== */

/* متغيرات الألوان */
:root {
  --color-primary: #1e3a8a;
  --color-secondary: #f97316;
  --color-accent: #e4f18f;
  --shadow-light: 0px 0px 12px 0px rgba(66, 66, 66, 0.24);
  --border-radius: 30px;
}

/* ====== بطاقات المنتجات ====== */
.s-product-card-entry {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 1px 5px 0 rgba(0,0,0,0.3) !important;
  transition: transform 0.3s ease;
}

.s-product-card-entry:hover {
  transform: translateY(-5px);
}

.s-product-card-entry img {
  transition: transform 0.3s ease;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.s-product-card-entry:hover img {
  transform: scale(1.05);
}

.product-entry {
  border-radius: var(--border-radius);
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-light);
  position: relative;
}

/* ====== الأزرار ====== */
button.undefined.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-light);
  border: none;
  transition: all 0.3s ease;
}

button.undefined.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.product-entry button.s-button-element {
  background: linear-gradient(227deg, var(--color-primary), var(--color-secondary));
  border: 0;
  position: absolute;
  width: 75%;
  margin: auto;
  left: 0;
  right: 0;
  color: white;
  padding: 12px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-entry button.s-button-element:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.s-button-primary-outline {
  color: #000000;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.s-button-primary-outline:hover {
  background: var(--color-primary);
  color: white !important;
}

body.dark-theme .s-button-primary-outline:hover {
  color: #000000 !important;
}

.s-button-icon .s-button-text {
  color: #000;
}

/* ====== محتوى المنتج ====== */
.s-product-card-content-title a {
  font-size: 1.0rem;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.s-product-card-content-title a:hover {
  color: var(--color-secondary);
}

.s-product-card-content-subtitle {
  display: none;
}

.s-product-card-promotion-title, .promotion-title {
  background-color: var(--color-secondary);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-weight: 400;
  font-size: 0.8rem;
}

.s-products-slider-card {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

/* ====== الشريط العلوي ====== */
.main-nav-container.fixed-pinned .navbar-brand img {
  max-height: 55px;
  transition: max-height 0.3s ease;
}

/* ====== العناوين ====== */
.s-block__title h2, .s-slider-block__title h2 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* ====== قسم الشهادات ====== */
.s-block.s-block--testimonials h1 {
  display: none;
}

[dir=rtl] .testimonials-slider .swiper {
  padding: 15px 5px !important;
}

.testimonials-slider .testimonial__icon,
.testimonial__avatar {
  display: none;
}

.testimonials-slider .swiper-slide.active {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.s-block.s-block--testimonials h2 {
  font-size: 1rem;
  margin-top: 10px;
  color: var(--color-primary);
}

.allReviews-custom {
  margin: 1rem 0 1.5rem;
  text-align: center;
}

a.display-all-btn {
  background: var(--color-accent);
  margin: 0.3rem auto 1rem;
  border-radius: 25px;
  font-size: 14px;
  padding: 14px 20px 10px !important;
  animation: animate-pulse 3s linear infinite;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

a.display-all-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonials-slider .testimonial {
  background-color: rgba(229, 231, 235, 0.3) !important;
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-light);
}

/* ====== الإعلانات ====== */
.s-advertisement {
  background-color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.s-advertisement-content-main {
  background: linear-gradient(45deg, #ff6f61, #4a0b5f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientAnimation 3s infinite;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}

/* ====== الحركات ====== */
@keyframes animate-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* ===== خط Tajawal ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

.new-footer {
  background: #f9f9f9;
  padding: 50px 20px 30px;
  font-family: "Tajawal", sans-serif;
  color: #222;
}

.new-footer .footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 45px;
  max-width: 1200px;
  margin: auto;
}

/* ===== اللوجو ===== */
.new-footer .footer-logo {
  max-width: 180px;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}
.new-footer .footer-logo:hover {
  transform: scale(1.05);
}

/* ===== عناوين الأعمدة ===== */
.new-footer h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111;
  border-bottom: 2px solid #0078d7;
  display: inline-block;
  padding-bottom: 5px;
}

/* ===== النصوص والروابط ===== */
.new-footer p,
.new-footer li {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  line-height: 1.8;
  margin: 6px 0;
}

.new-footer a {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.new-footer a:hover {
  color: #005bb5;
  text-decoration: underline;
}

/* قائمة الروابط */
.new-footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== بيانات التواصل ===== */
.new-footer .footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.new-footer .footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: all 0.3s ease;
}

/* hover */
.new-footer .footer-contact p:hover svg {
  transform: scale(1.2);
  filter: brightness(1.2);
}

/* رقم الهاتف والإيميل */
.new-footer .footer-contact a[href^="tel"],
.new-footer .footer-contact a[href^="mailto"] {
  direction: ltr;
  unicode-bidi: bidi-override;
  font-weight: 600;
  display: inline-block;
}

/* ===== شريك مايكروسوفت ===== */
.new-footer .partner-logo {
  max-width: 200px;
  margin-top: 12px;
  transition: transform 0.3s ease;
}
.new-footer .partner-logo:hover {
  transform: scale(1.05);
}

/* ===== أسفل الفوتر ===== */
.new-footer .footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: var(--bg-section, #f7f8f9);
}

/* === تنسيق جميع الأعمدة في وسط الشاشة على الموبايل === */
@media (max-width: 768px) {
  .new-footer .footer-container > div {
    text-align: center;
  }

  /* الوسائط (قائمة الروابط) */
  .new-footer .footer-links ul {
    text-align: center;
    display: grid;
  }

  .new-footer .footer-links li {
    display: inline-block;
    margin: 5px 10px;
  }

  /* بيانات التواصل */
  .new-footer .footer-contact p {
    justify-content: center;
  }

  .new-footer .footer-contact a {
    text-align: center;
  }

  /* الشعارات */
  .new-footer .footer-logo,
  .new-footer .partner-logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* استهداف الروابط داخل وصف المنتج فقط */
.product__description a {
  color: #166866;               /* لون واضح */
  text-decoration: underline;   /* خط سفلي دائم */
  font-weight: 500;
  transition: all 0.2s ease;
}

/* الروابط الخارجية (target="_blank") */
.product__description a[target="_blank"]::after {
  content: " 🡕";                /* أيقونة الرابط الخارجي */
  font-size: 0.9em;
}

/* تحسين تجربة التنقل بالماوس والكيبورد */
.product__description a:hover,
.product__description a:focus {
  color: #004240;
  background-color: #e2ffff;
  outline: 2px dashed #004240;  /* خط محيط عند التركيز */
  outline-offset: 3px;
}