/* تعديل حجم الأيقونات */ 
.slide--cat-entry img {
  width: 115px !important;
  height: 115px !important;
}
/***********تعديل العناوين الرئيسية***********/

/* تعديل خط المتجر *//* 1) إخفاء الصورة وإلغاء عمودها */
section.s-block--testimonials .s-reviews-testimonial__avatar{
  display: none !important;
}
section.s-block--testimonials .s-reviews-testimonial__inner{
  display: block !important;            /* خليه عمود واحد */
}

/* 2) توسيط نصّ الرأي وكل المحتوى داخل البطاقة */
section.s-block--testimonials .s-reviews-testimonial__text{
  text-align: center !important;
}

/* 3) تكبير وتغليظ اسم العميل وتوسيطة */
section.s-block--testimonials .s-reviews-testimonial__info h2{
  font-size: 1.05rem !important;        /* أكبر حبة بسيطة */
  font-weight: 800 !important;          /* أتقل */
  margin-top: .35rem;
  text-align: center !important;
}

/* 4) توسيط النجوم (لو خرجت يمين/يسار) */
section.s-block--testimonials .s-reviews-testimonial__rating{
  display: flex !important;
  justify-content: center !important;
}

* {
  font-family: 'Tajawal', sans-serif !important;
}

/**************تعديل كارت المنتج**************/

/* 1) رجّع الحاوية الأساسية لشكلها الطبيعي (بدون Grid) */
.s-products-list-vertical-cards .s-product-card-content {
  display: block !important;         /* كان Grid — نرجّعه Block */
}

/* 2) وسّط العنوان */
.s-products-list-vertical-cards .s-product-card-content-main,
.s-products-list-vertical-cards .s-product-card-content-title,
.s-products-list-vertical-cards .s-product-card-content-title a {
  text-align: center;
}

/* 3) كتلة السعر/التقييم تحت العنوان وفي المنتصف */
.s-products-list-vertical-cards .s-product-card-content-sub {
  margin-top: .35rem;
  display: block;                     /* صفّهم تحت بعض */
  text-align: center;
}

/* لو المنتج عليه خصم: h4 = السعر بعد الخصم، span = السعر قبل الخصم */
.s-products-list-vertical-cards .s-product-card-sale-price {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  justify-content: center;
}

.s-products-list-vertical-cards .s-product-card-sale-price h4 {
  background-color: #dc2626;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 3px 8px;
  border-radius: 5px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: pulseSale 2s infinite ease-in-out;
}

@keyframes pulseSale {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(220,38,38,0); }
  50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(220,38,38,0.4); }
}

/* السعر قبل الخصم = أصغر + مشطوب + لون رمادي باهت */
.s-products-list-vertical-cards .s-product-card-sale-price span {
  color: #9ca3af;
  font-weight: 600;
  text-decoration: line-through;
  font-size: .95rem;
}

/* 6)السعر العادي (بدون خصم) */
.s-products-list-vertical-cards .s-product-card-content-sub .s-product-card-price {
  font-size: 1.05rem !important;      /* تكبير بسيط */
  font-weight: 700 !important;
  color: #222 !important;            /* لون غامق وواضح */
  line-height: 1.3 !important;
  text-align: center;                /* يفضل يبقى في النص زي الأسعار المخفضة */
}

/* أيقونة العملة حجم لطيف */
.s-products-list-vertical-cards .s-product-card-sale-price i.sicon-sar,
.s-products-list-vertical-cards .s-product-card-price i.sicon-sar {
  font-size: .85em;
  margin-inline-start: .15em;
}

/* 4) التقييم يظهر سطر مستقل تحت السعر وفي المنتصف */
.s-products-list-vertical-cards .s-product-card-rating {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: .25rem;
  justify-content: center;
  font-size: .95rem;
}

/* 5) سيب الفوتر/الزرار بحاله (بعرض الكارت) */
.s-products-list-vertical-cards .s-product-card-content-footer {
  margin-top: .5rem;
}

/* 8) تكبير بسيط لاسم المنتج */
.s-products-list-vertical-cards .s-product-card-content-title a {
  font-size: 1.05rem !important;   /* زيادة بسيطة عن الافتراضي */
  font-weight: 700 !important;     /* يخليه أوضح */
  line-height: 1.4 !important;
  color: #222 !important;          /* لون غامق واضح */
  text-align: center;
  display: inline-block;
}

/* 7) زر إضافة للسلة بلون بني داكن ونص أبيض */
.s-products-list-vertical-cards .s-product-card-content-footer .s-button-element {
  background-color: #4b2e23 !important;   /* البني الغامق */
  color: #ffffff !important;              /* الخط الأبيض */
  border: none !important;                /* بدون حدود */
  font-weight: 700;
  border-radius: 50px;                    /* أطراف دائرية مثل الصورة */
  transition: all 0.3s ease;              /* حركة ناعمة عند المرور */
}

/* تأثير hover */
.s-products-list-vertical-cards .s-product-card-content-footer .s-button-element:hover {
  background-color: #3d251c !important;   /* بني أغمق عند المرور */
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/***************تعديل عناوين الأقسام**************/

/* ✅ الأقسام العادية (زي الأكثر مبيعاً، منتجات مختارة) */
.s-block__title {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.s-block__title h2 {
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  color: #2b2b2b !important;
  margin: 0 auto .5rem !important;
  letter-spacing: 0.5px;
}

.s-block__title h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #a87b4f;
  margin: 10px auto 0;
  border-radius: 3px;
}

.s-block__title .right-side,
.s-block__title .left-side {
  order: 2;
  margin-top: .5rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* فقط لقسم آراء العملاء */
section.s-block--testimonials .s-reviews-header-wrapper {
  display: flex !important;
  flex-direction: column !important;   /* العنوان فوق، الزر تحت */
  align-items: center !important;
  text-align: center !important;
  gap: .4rem;
}

section.s-block--testimonials .s-reviews-header {
  margin: 0 !important;
  font-size: 1.8rem !important;        /* تكبير مضبوط */
  font-weight: 700 !important;
  color: #2b2b2b !important;
}

section.s-block--testimonials .s-reviews-display-all {
  order: 2;                             /* تحته */
  display: inline-flex !important;
  align-items: center;
  gap: .35rem;
  margin-top: .25rem !important;
  justify-content: center !important;
}

/*************تحسينات آراء العملاء**************/

/* آراء العملاء — إخفاء الصورة وتوسيط كل شيء */
section.s-block--testimonials .s-reviews-testimonial__avatar{
  display: none !important;
}

/* خلي الكارت نفسه في النص */
section.s-block--testimonials .s-reviews-testimonial,
section.s-block--testimonials .s-reviews-testimonial__inner{
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* نص الرأي */
section.s-block--testimonials .s-reviews-testimonial__text p{
  margin: 0 auto .5rem !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

/* اسم العميل أكبر وأتقل ومُوسّط */
section.s-block--testimonials .s-reviews-testimonial__name_wrapper{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: .35rem;
}
section.s-block--testimonials .s-reviews-testimonial__info h2{
  font-weight: 800 !important;
  font-size: 1rem !important;   /* موبايل */
}

/* النجوم في النص (تعزيز للتوسيط) */
section.s-block--testimonials .s-reviews-testimonial__rating,
section.s-block--testimonials .s-reviews-testimonial__rating .s-rating-stars-wrapper{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: .25rem auto 0 !important;
}

/* تحسينات شاشة كبيرة */
@media (min-width: 992px){
  /* ضيق عرض الفقرة عشان ما تتمدد بعرض السلايد */
  section.s-block--testimonials .s-reviews-testimonial__text p{
    max-width: 46ch;            /* readable width */
    padding-inline: 1rem;
  }
  section.s-block--testimonials .s-reviews-testimonial__info h2{
    font-size: 1.125rem !important;
  }
}

/*************كارت آراء العملاء****************/

/* كارت آراء العملاء — أبيض بخلفية ظل دائم */
section.s-block--testimonials .s-reviews-testimonial {
  margin-top: 10px;
  background-color: #FDF9F9 !important;   /* أبيض نقي */
  border-radius: 12px !important;         /* زوايا ناعمة */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important; /* ظل ظاهر دائم */
  padding: 1.5rem 1.25rem !important;     /* مسافة داخلية مريحة */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* تأثير عند المرور */
section.s-block--testimonials .s-reviews-testimonial:hover {
  transform: translateY(-5px);  /* ارتفاع بسيط */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* ظل أعمق */
}

/* إخفاء أيقونة علامة الاقتباس داخل كروت آراء العملاء */
section.s-block--testimonials .s-reviews-testimonial__icon {
  display: none !important;
}

.custom-review-name {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  color: #222;
  margin-top: .3rem;
}

/*******استايل كارت المنتج في صفحة المنتج*******/
/* == تفعيل الخط داخل كروت السلايدر فقط في صفحة المنتج == */
body.pdp-scope .swiper.s-slider-container custom-salla-product-card.s-product-card-entry{
  font-family:'Tajawal',sans-serif;
}

/* ترتيب عمودي + توسيط العنوان */
body.pdp-scope .swiper.s-slider-container .s-product-card-content{display:block!important;}
body.pdp-scope .swiper.s-slider-container .s-product-card-content-main,
body.pdp-scope .swiper.s-slider-container .s-product-card-content-title,
body.pdp-scope .swiper.s-slider-container .s-product-card-content-title a{ text-align:center!important; }

/* السعر/التقييم في المنتصف */
body.pdp-scope .swiper.s-slider-container .s-product-card-content-sub{
  margin-top:.35rem; display:block; text-align:center!important;
}

/* السعر العادي */
body.pdp-scope .swiper.s-slider-container .s-product-card-price{
  font-size:1.05rem!important; font-weight:700!important; color:#222!important;
  line-height:1.3!important; text-align:center!important;
}
body.pdp-scope .swiper.s-slider-container .s-product-card-price i.sicon-sar{
  font-size:.85em; margin-inline-start:.15em;
}

/* لو فيه خصم */
body.pdp-scope .swiper.s-slider-container .s-product-card-sale-price{
  display:inline-flex; align-items:baseline; gap:.5rem; justify-content:center;
}
body.pdp-scope .swiper.s-slider-container .s-product-card-sale-price h4{
  background:#dc2626; color:#fff!important; font-weight:700; font-size:1.05rem;
  padding:3px 8px; border-radius:5px; line-height:1; display:inline-flex; align-items:center; justify-content:center;
  animation:pdpSliderPulse 2s infinite ease-in-out;
}
body.pdp-scope .swiper.s-slider-container .s-product-card-sale-price span{
  color:#9ca3af; font-weight:600; text-decoration:line-through; font-size:.95rem;
}
@keyframes pdpSliderPulse{
  0%,100%{transform:scale(1); box-shadow:0 0 0 rgba(220,38,38,0)}
  50%{transform:scale(1.08); box-shadow:0 0 10px rgba(220,38,38,.4)}
}

/* التقييم في المنتصف */
body.pdp-scope .swiper.s-slider-container .s-product-card-rating{
  display:inline-flex; align-items:center; gap:.25rem; margin-top:.25rem; justify-content:center; font-size:.95rem;
}

/* زر “إضافة للسلة” بنفس ستايل البني */
body.pdp-scope .swiper.s-slider-container .s-product-card-content-footer .s-button-element{
  background:#4b2e25!important; border-color:#4b2e25!important; color:#fff!important;
  border-radius:50px!important; font-weight:700!important; transition:all .3s ease;
}
body.pdp-scope .swiper.s-slider-container .s-product-card-content-footer .s-button-element:hover{
  background:#3d251c!important; border-color:#3d251c!important; transform:translateY(-1px); box-shadow:0 2px 6px rgba(0,0,0,.2);
}

/* في حال كان الزر خارج من الثيم كـ outline، حوّله لنفس اللون */
body.pdp-scope .swiper.s-slider-container .s-product-card-content-footer .s-button-element.s-button-primary-outline{
  background:#4b2e25!important; color:#fff!important; border-color:#4b2e25!important;
}