.s-product-options-wrapper {
    background-color: #faf5ef;
}
.product-card__content {
    padding: 3px 0;
}
.product-card__addToCart__btn salla-button button {
    background: #ffffffad;
    color: #000000;
}
.s-button-btn {
    border-radius: 0rem;
    font-size: .775rem;
      font-weight: 500;
    padding: 0.5rem 0.5rem 0.625rem;
  }
/* تجميع كل العناصر عند بداية صفحة المنتج وتوسيطها */
h1.text-xl,
salla-rating-stars,
.product-price-top {
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.product-card__addToCart__btn salla-button {
    height: 30px;
}
/* إخفاء أداة التقسيط (تمارا / تابي) نهائياً */
salla-installment,
salla-installment *,
.tamara-product-widget {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
}
/* قلب ترتيب خيارات المقاسات */
.s-product-options-grid-mode {
    direction: ltr !important;
}

.s-product-options-grid-mode label {
    direction: rtl !important; /* عشان يبقى النص مرتب */
}

/* توسيط النجوم */
salla-rating-stars .s-rating-stars-wrapper {
    justify-content: center !important;
    display: flex !important;
}

.product-price.product-price-top .starting-or-normal-price {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* توسيط قسم المخزون + عدد المبيعات بالكامل */
.flex.flex-col.space-y-5.mb-5 {
    align-items: center !important;
    text-align: center !important;
}

/* توسيط عنصر "متوفر" */
#variant-inventory {
    width: 100%;
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* توسيط قسم "تم شراءه 271 مرة" */
.flex.text-[#f11e1e].flex-grow.shrink-0 {
    justify-content: center !important;
    text-align: center !important;
    width: 100%;
}




.s-block--best-offers .s-slider-block__title-left .s-slider-block__display-all, salla-products-slider .s-slider-block__title-left .s-slider-block__display-all {
    border-radius: 4px;
}
@media (max-width: 768px) {
  .fit-slider-products .s-slider-swiper-wrapper .swiper-slide {
    max-width: 33vw !important;
    min-width: unset !important;
  }
}
@media (max-width: 991px) {
    .product-card.product-card--enhanced-btn:not(.product-card--simplified) .product-card__content {
        padding: 0px 0 0 !important;
    }
}
@media (max-width: 991px) {
    .product-card__title a {
        font-size: 12px;
    }
}
@media (max-width: 767px) {
    .product-card__price .total-price {
        font-size: 12px;
    }
}
.footer-badges {
    display: none !important;
}

.product-card__enhanced-mini-cart-divider {
    margin: 0px 0px 0;
}
/* عرض 3 منتجات في صف واحد */
.s-products-list-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important; /* تقدر تزيد أو تنقص */
}

.product-card__title a {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}
.product-card__image,
.product-card__image a,
.product-card__image img {
    aspect-ratio: 9 / 16 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    overflow: hidden !important;
}
/* تصميم أنيق لعداد الزوار */
.custom-live-counter {
  direction: rtl;
  position: fixed;
  bottom: 120px; /* مرتفع قليلاً عن الأسفل */
  left: 20px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.custom-live-counter.show {
  opacity: 1;
  pointer-events: auto;
}

.custom-live-counter .circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #21c97a;
  box-shadow: 0 0 0 6px rgba(33, 201, 122, 0.3);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.custom-live-counter p {
  margin: 0;
  font-size: 15px;
  color: #222;
  white-space: nowrap;
}

/* إخفاء الـ Breadcrumbs */
.breadcrumbs {
    display: none !important;
}

/* إخفاء قسم المشاركة بالكامل */
s-social-share-wrapper,
salla-social-share,
.flex.items-center.justify-between.mb-5 {
    display: none !important;
}

/* إخفاء حالة المخزون (متوفر) */
#variant-inventory {
    display: none !important;
}



/* =============================
   📦 Accordion (Apple-style)
   ============================= */
.accordion-group {
  border: 1px solid #eee;
  margin: 8px 0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.accordion-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px; 
  cursor: pointer;
  font-size: 14px;
  color: #000;
  transition: background-color 0.2s ease;
  position: relative;
}

.accordion-title:hover {
  background-color: #fafafa;
}

.accordion-title::before {
  font-family: "sallaicons"; 
  font-size: 15px;
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.accordion-title::after {
  content: "+";
  font-size: 14px;
  margin-right: auto;
  transition: transform 0.2s ease, color 0.2s ease;
}

.accordion-group.open .accordion-title::after {
  content: "-";
}

.accordion-group.open .accordion-title::before {
  transform: rotate(25deg);
}

/* =============================
   📄 محتوى الأكوردين
   ============================= */
.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 14px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  background: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-group.open .accordion-content {
  max-height: 600px;
  opacity: 1;
  padding: 12px 14px;
}

/* =============================
   📏 جدول المقاسات (Apple style)
   ============================= */
.accordion-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
  color: #1d1d1f;
  margin: 0px auto;
}

.accordion-content thead tr {
  border-bottom: 1px solid rgba(0,0,0,0.0);
}

.accordion-content th {
  padding: 6px 6px;
  font-weight: 400;
  font-size: 12px;
  color: #fff;
  background: #000;
  letter-spacing: 0.2px;
}

.accordion-content td {
  padding: 6px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 12px;
}

/* =============================
   🎨 الأيقونات
   ============================= */

/* أيقونة جدول المقاسات */
.icon-size::before {
  content: "\ee27";
}