
/* ✅ Full width + ثابت 500px + توسيط bg عاموديا/افقيا */
.sc-banner{
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;

  height: 400px !important;
  min-height: 400px !important;
  margin-bottom: -320px;
  overflow: hidden !important;
  border-radius: 0 !important;
  margin-top: -24px;
  background-repeat: no-repeat !important;
  background-position: center center !important; /* ✅ توسيط عامودي/افقي */
  background-size: cover !important;
}

.sc-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.10), rgba(0,0,0,.45));
  pointer-events:none;
}

/* Hero Bottom Grid RTL Customization */
.hero-bottom-grid .sub-item {
    direction: rtl;
}

/* Icon on Right */
.hero-bottom-grid .sub-item .hover-icon {
    left: auto !important;
    right: 0 !important;
    border-radius: 6px 0 0 6px !important;
    width: 5px;
    z-index: 2;
    text-indent: 0 !important; /* Reset main.css animation */
}
.hero-bottom-grid .sub-item .hover-icon i {
    transform: scaleX(-1) translateX(-50px); /* Start from Visual Right */
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}

/* Text on Left (aligned right) */
.hero-bottom-grid .sub-item .details {
    margin-left: 0 !important;
    margin-right: 25px !important;
    text-align: right !important;
    right: 0;
    left: auto;
    align-items: flex-start !important; /* Ensure text aligns right in flex column */
}

/* Font Fix */
.hero-bottom-grid .sub-item .details .title,
.hero-bottom-grid .sub-item .details .subTitle {
    font-family: var(--main-font-family), 'Rubik', sans-serif !important;
}

/* Hover Effects */
.hero-bottom-grid .sub-item:hover .hover-icon {
    width: 45px !important;
}
.hero-bottom-grid .sub-item:hover .hover-icon i {
    transform: scaleX(-1) translateX(0); /* Move to Center */
}

.hero-bottom-grid .sub-item:hover .details {
    margin-left: 0 !important;
    margin-right: 60px !important; /* Move text to left */
}

/* Discount Animation (Right to Left) */
.hero-bottom-grid .sub-item .discount {
    left: auto !important;
    right: 24px !important;
    transition: all 0.3s ease-in-out;
}
.hero-bottom-grid .sub-item:hover .discount {
    right: 60px !important; /* Move Left */
}


/* ✅ العناصر بالأعلى + desktop ترتيب: زر يسار / عنوان وسط / ثمب يمين */
.sc-banner__top{
  position: relative;
  z-index: 2;
  height: 100%;

  max-width: 1180px;  /* مو بعرض الشاشة على الديسكتوب */
  margin: 0 auto;
  padding: 18px 18px;

  display: flex;
  align-items: flex-start;     /* بالأعلى */
  justify-content: space-between;
  gap: 14px;
}

/* Button (يسار) بدون ظل */
.sc-banner__btn{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(120, 12, 12, 0.92);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none !important; /* ✅ بدون ظل */
  transition: transform .18s ease, filter .18s ease, background .18s ease;
  margin-top: 2px;
  white-space: nowrap;
}
.sc-banner__btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  background: rgba(150, 18, 18, 0.95);
}
.sc-banner__btn:active{ transform: translateY(0); }
.sc-banner__arrow{ font-size: 16px; line-height: 1; }

/* Title (وسط) */
.sc-banner__title{
  flex: 1 1 auto;
  text-align: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 22px;
  line-height: 1.15;
  padding-top: 4px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thumbnail (يمين) */
.sc-banner__thumb{
  flex: 0 0 auto;
  width: 70px;
  height: auto;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  border: none;
}
.sc-banner__thumb img{
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display:block;
}

/* ✅ Mobile: العنوان يمين + الزر يسار + إخفاء الثمب */
@media (max-width: 576px){
  .sc-banner{
    height: 190px !important;
            min-height: 270px !important;
      margin-bottom: -165px;
  }

  .sc-banner__top{
    max-width: 100%;
    padding: 17px 12px;
    gap: 10px;
    margin-top: 20px;

    /* نعمل سطر واحد: (زر يسار) (عنوان يمين) */
    justify-content: space-between;
  }

  .sc-banner__thumb{
    display: none !important; /* ✅ اخفاء الصورة المصغرة */
  }

  .sc-banner__title{
    text-align: right !important;  /* ✅ يمين */
    font-size: 14px !important;    /* ✅ تنسيق خط العنوان للموبايل */
    font-weight: 600 !important;   /* ✅ تقليل سماكة الخط */
    line-height: 1.3 !important;
    padding-top: 0;
    
    width: 100px;                  /* ✅ عرض محدد للنص */
    min-width: 100px;
    max-width: 200px;

    white-space: normal;           /* يسمح بسطرين */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .sc-banner__btn{
    padding: 5px 12px;
    font-size: 12px;
    gap: 8px;
    margin-top: 0;
  }
}

body{ overflow-x: hidden !important; }
