/* ✅ إخفاء اسم المتجر واستبداله باللوجو */
.flex.items-center.m-0 {
  position: relative;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden;
  min-height: 100px;
  display: flex !important;
  justify-content: flex-end !important; /* ✅ يخلي اللوجو لليمين */
  align-items: center !important;
}

.flex.items-center.m-0::after {
  content: "";
  display: inline-block;
  background-image: url('https://basic-settings.apps.salla.sa/_next/image?url=https%3A%2F%2Fcdn.salla.sa%2FonrBrR%2FeHP2n7tm9gntkeDwIZgZW4u8KHE8AzDJ3i5OCFFY.png&w=128&q=75');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;  /* ✅ يثبت الصورة يمين */
  width: 220px;
  height: 80px;
}

/* ✅ تنسيق مربع وصف المتجر */
.lg\:col-span-2.rtl\:lg\:pl-20.ltr\:lg\:pr-20 {
  background-color: #dddcc6;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  margin-bottom: 30px;
}

/* ✅ تنسيق النص داخل الوصف */
.lg\:col-span-2.rtl\:lg\:pl-20.ltr\:lg\:pr-20 p {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.9;
  margin: 0;
}

/* ✅ إزالة الفقرات الفارغة */
.lg\:col-span-2.rtl\:lg\:pl-20.ltr\:lg\:pr-20 > p:empty {
  display: none;
}


.trusted-business-box {
  text-align: center;
  margin-top: 20px;
}

.trusted-business-box a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.trusted-business-box img {
  max-width: 120px;
  margin-bottom: 8px; /* المسافة بين الصورة والكلمة */
}

.trusted-business-box p {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* ✅ الخط الراقي */
body, h1, h2, h3, h4, h5, h6, p, a, span, button {
  font-family: 'Cairo', sans-serif !important;
}

/* ✅ استايل بطاقة المنتج عند عرض منتج واحد فقط */
.s-products-list-horizontal-cards:has(.s-product-card-entry:nth-child(1):nth-last-child(1)) {
  display: flex !important;
  justify-content: center;
}

.s-product-card-entry:only-child {
  width: 100%;
  max-width: 600px;
  background: linear-gradient(to bottom, #fffaf4, #fefcf9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(153, 123, 74, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  animation: fadeInUp 0.6s ease-in-out;
}

/* ✅ صورة المنتج */
.s-product-card-entry:only-child .s-product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.s-product-card-entry:only-child .s-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.s-product-card-entry:only-child:hover .s-product-card-image img {
  transform: scale(1.05);
}

/* ✅ محتوى المنتج */
.s-product-card-entry:only-child .s-product-card-content {
  padding: 25px 20px;
  text-align: center;
}

.s-product-card-entry:only-child .s-product-card-content-main h3 {
  font-size: 24px;
  font-weight: 700;
  color: #4e3b2b;
  margin-bottom: 10px;
}

.s-product-card-entry:only-child .s-product-card-content-main .price {
  font-size: 20px;
  color: #a67c00;
  font-weight: bold;
  margin-bottom: 10px;
}
.s-product-card-entry:only-child .s-product-card-content-main del {
  font-size: 15px;
  color: #b5a48c;
}

/* ✅ زر السلة الذهبي */
.s-product-card-entry:only-child .s-product-card-content-footer button,
.s-product-card-entry:only-child .s-product-card-content-footer .btn {
  background: linear-gradient(to right, #b78a2e, #e6c57c);
  color: #fff !important;
  font-weight: bold;
  font-size: 16px;
  padding: 12px 30px;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(183, 138, 46, 0.4);
}
.s-product-card-entry:only-child .s-product-card-content-footer button:hover {
  background: linear-gradient(to right, #9c7a28, #e6c57c);
  transform: translateY(-2px);
}

/* ✅ تأثير دخول أنيميشين */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ موبايل */
@media (max-width: 768px) {
  .s-product-card-entry:only-child {
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }

  .s-product-card-entry:only-child .s-product-card-content {
    padding: 15px;
  }

  .s-product-card-entry:only-child .s-product-card-content-footer button {
    width: 100%;
  }
}