/* صورة الهيرو لخدمة شراء الأثاث */
.hero-image-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.28);
  margin-bottom: 12px;
  background: radial-gradient(circle at top right, #fed7aa 0, #fff7ed 35%, #ffffff 100%);
}

.hero-image-main {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
 /* object-fit: contain; */
}

/* البادج فوق الصورة */
.hero-image-badge {
  position: absolute;
  inset-inline-start: 14px; /* في RTL هتطلع على اليمين */
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 12px;
 /* background: rgba(15, 23, 42, 0.92);
  color: #f9fafb; */
  background: #fff7ed;
  color: #9a3412;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 75%;
}

.hero-image-badge span {
  opacity: 0.9;
}

.hero-image-badge strong {
  font-size: 12px;
}

/* تحسين بسيط في الموبايل */
@media (max-width: 960px) {
  .hero-image-main {
    height: 210px;
  }

  .hero-image-wrapper {
    max-width: 380px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .hero-image-main {
    height: 190px;
  }

  .hero-image-badge {
    max-width: 90%;
    inset-inline-start: 10px;
    bottom: 10px;
  }
}

/* ===============================
   خدمات وأنواع شراء المستعمل بالكويت
   =============================== */
.used-services-section {
  direction: rtl;
  text-align: right;
  background: #f9fafb;
  border-radius: 22px;
  padding: 20px 18px 24px;
  margin-top: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* رأس السيكشن */
.used-services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.used-services-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f97316;
}

.used-services-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.used-services-desc {
  margin: 0;
  max-width: 520px;
  font-size: 13px;
  line-height: 1.8;
  color: #4b5563;
}

/* شبكة الكروت */
.used-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* كرت الخدمة */
.used-service-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 10px 10px 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.used-service-card:hover {
  transform: translateY(-4px);
  border-color: #f97316;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

/* صورة الكرت */
.used-service-thumb {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 16 / 9;
}

.used-service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* جسم الكرت */
.used-service-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.used-service-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  padding-top: 10px;
}

.used-service-tag {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.used-service-desc {
  margin: 4px 0 8px;
  font-size: 13px;
  
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
  max-height: calc(1.7em * 3);
}

/* زر الـ CTA */
.used-service-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #111827;
  color: #ffffff;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.used-service-cta:hover {
  background: #f97316;
  border-color: #ea580c;
}

/* ذيل السيكشن */
.used-services-footer {
  margin-top: 16px;
  font-size: 12px;
  color: #6b7280;
}

.used-services-footer-link {
  font-weight: 600;
  text-decoration: none;
  color: #f97316;
}

.used-services-footer-link:hover {
  text-decoration: underline;
}

/* رسبونسيف */
@media (max-width: 1024px) {
  .used-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .used-services-section {
    padding: 16px 12px 18px;
    border-radius: 18px;
  }

  .used-services-head {
    flex-direction: column;
  }

  .used-services-title {
    font-size: 18px;
  }

  .used-services-desc {
    max-width: 100%;
  }

  .used-services-grid {
    grid-template-columns: 1fr;
  }
}

.brand-dalile3lank {
    font-size: 10px;
  color: #f58936;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
}
.data-cat {
    padding-top: 10px;
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
    margin-top: 12px;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
   
}
.data-cat a {
  color: #f58936;
}
.cat-service-card-link {
  display: grid;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

@media (max-width: 768px) {
  .mini-stat-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.35;
}
}

/* ===== Used Services Grid V2 (2 mobile / 4 desktop) ===== */
.used-services-grid-v2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 992px){
  .used-services-grid-v2{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.used-service-card-v2{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.used-service-card-v2:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  border-color: var(--primary, #f58936);
}

.used-service-card-link-v2{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 12px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.used-service-thumb-v2{
  
  border-radius: 14px;
  overflow: hidden;
  background: #e5e7eb;
  display: block;
}

@media (min-width: 992px){
  .used-service-thumb-v2{ height: 92px; }
}

.used-service-img-v2{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.used-service-thumb-placeholder-v2{
    
  width: 100%;
  height: 100%;
  display: block;
  text-align: center;
  margin-top: 40px !important;
  font-size: 14px;
  line-height: 1.35;
  
  background: #e5e7eb;
}

.used-service-title-v2{
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  color: #111827;
}

@media (min-width: 992px){
  .used-service-title-v2{ font-size: 15px; }
}

.used-service-text-v2{
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted, #6b7280);

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Tight spacing داخل كارت التصنيفات (بدون تغيير التصميم) */
.used-service-card-link-v2{
  padding: 8px 8px 10px;   /* كان أكبر */
  gap: 6px;                /* كان 8px */
}

.used-service-thumb-v2{
  height: 72px;            /* كان 78px */
  border-radius: 12px;     /* كان 14px */
}

/* العنوان أقرب للصورة وأقرب للنص */
.used-service-title-v2{
  margin: 0;
  line-height: 1.25;       /* كان 1.35 */
}

/* الوصف أقل فراغات + سطرين فقط للموبايل */
.used-service-text-v2{
  margin: 0;
  line-height: 1.45;       /* كان 1.6 */
  -webkit-line-clamp: 2;   /* كان 3 */
}

/* على الديسكتوب نخليه 3 سطور عشان مايبقاش مضغوط زيادة */
@media (min-width: 992px){
  .used-service-card-link-v2{
    padding: 10px 10px 12px;
    gap: 7px;
  }
  .used-service-thumb-v2{
    height: 86px;          /* كان 92px */
  }
  .used-service-text-v2{
    -webkit-line-clamp: 3;
  }
}
/* ========== FINAL (مثل الصورة بالضبط) ========== */
.used-service-card-v2{
  border-radius: 26px;
}

/* ضغط المسافات داخل الكارت */
.used-service-card-v2 .used-service-card-link-v2{
  padding: 6px 6px 12px !important;
  gap: 6px !important;
}

/* صندوق الصورة/البلس هولدر */
.used-service-card-v2 .used-service-thumb-v2{
  height: 118px;          /* نفس ارتفاع البوكس في الصورة */
  border-radius: 18px;
}

/* العنوان: أكبر + أقل فراغ تحته */
.used-service-card-v2 .used-service-title-v2{
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.35;
}

/* الوصف: قريب من العنوان + سطرين فقط (زي الصورة) */
.used-service-card-v2 .used-service-text-v2{
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}
