/* Add custom CSS styles below */ 
/* Add custom CSS styles below */

/* المسافات العامة */
.s-block {
  margin-top: 1rem;
}

.s-block--fixed-banner {
  margin-top: 0 !important;
}

.text-3xl {
  font-size: 1.4rem;
}

.main-nav-container {
  min-height: 0;
}

.main-nav-container .inner {
  padding-top: 0;
  padding-bottom: 0;
}

.top-navbar {
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* البنر الرئيسي */
.s-block--fixed-banner .container {
  padding-right: 0 !important;
  padding-left: 0 !important;
  max-width: 100% !important;
}

.banner--fixed,
.banner--fixed img,
.s-block--fixed-banner,
.s-block--fixed-banner .container {
  border-radius: 0 !important;
  overflow: hidden;
}

.banner--fixed img {
  width: 100%;
  display: block;
}

/* صور المنتجات */
.product-card__image img {
  object-fit: contain !important;
}

/* زر الإضافة للسلة */
.product-card__enhanced-mini-cart {
  padding: 14px !important;
  padding-top: 0 !important;
}

.product-card__enhanced-mini-cart button,
.product-card__enhanced-mini-cart .s-button-element {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* الديسكتوب */
@media (min-width: 768px) {
  custom-salla-product-card .product-card__content {
    padding-bottom: 18px !important;
  }

  custom-salla-product-card .product-card__enhanced-mini-cart {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    margin: 14px 22px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: auto !important;
  }

  custom-salla-product-card .product-card__enhanced-mini-cart salla-button,
  custom-salla-product-card .product-card__enhanced-mini-cart button,
  custom-salla-product-card .product-card__enhanced-mini-cart .s-button-element {
    display: flex !important;
    width: 100% !important;
    height: 46px !important;
    background: #000 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  .product-card__buttons,
  .product-card__addToCart {
    display: none !important;
  }

  .product-card__price .total-price {
    font-size: 21px !important;
  }
  .product-card__image img {
  object-fit: cover !important;
}
  .product-card--fit-height .product-card__image{
    height: 360px !important;
  }
}

/* الجوال */
@media (max-width: 768px) {
  .product-card__title a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    width: 100% !important;
  }

  .s-products-slider-card {
    transform: scale(.98) !important;
    transform-origin: center top !important;
      padding:0px;
      margin: 0px;
  }

  .product-card__content {
    padding: 8px !important;
  }

  .product-card__title {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .price-wrapper {
    font-size: 14px !important;
  }

  .btn--add-to-cart {
    padding: 8px !important;
    font-size: 13px !important;
  }
  .product-card__image img {
  object-fit: cover !important;
}
}

@media (max-width: 768px) {
  section.s-block--enhanced-features.container > div[class*="grid-cols"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  section.s-block--enhanced-features.container > div[class*="grid-cols"] > div {
    grid-column: auto !important;
    width: auto !important;
    max-width: none !important;
  }
}

/* تحسين شكل مميزات المتجر */

@media (max-width: 768px) {

  /* عنوان الميزة */
  section.s-block--enhanced-features .s-block--enhanced-features__item h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  /* وصف الميزة */
  section.s-block--enhanced-features .s-block--enhanced-features__item p {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  /* الأيقونة */
  section.s-block--enhanced-features .s-block--enhanced-features__item img {
    width: 64px !important;
    height: 64px !important;
  }
  .s-block--enhanced-features__item h2{
    font-size: 15px !important;
  }

  .s-block--enhanced-features__item{
    border-radius: 12px !important;
    padding 0px !important;
    margin 0px !important;
  }
}

/* تحسين شكل اراء العملاء */
@media (max-width:768px){

#reviews-6-slider .swiper-slide{width:50%!important;}

.s-block--custom-reviews .review>div{
height:220px!important;
display:flex!important;
flex-direction:column!important;
align-items:center!important;
justify-content:center!important;
text-align:center!important;
background:transparent!important;
box-shadow:none!important;
padding:12px!important;
gap:6px!important;
}

.s-block--custom-reviews .review p{
font-size:12px!important;
margin:0 0 8px!important;
}

.s-block--custom-reviews .review img{
width:55px!important;
height:55px!important;
margin:0!important;
}

.s-block--custom-reviews .review h4,
.s-block--custom-reviews .review .stars{
margin:0!important;
}

.s-block--custom-reviews .review::before{
display:none!important;
}

}

/* جعل العنوان والزر بنفس السطر */
.lg\:mx-0.text-center.mb-8{
    margin-bottom:20px !important;
}

.flex.items-center.gap-8.mt-5{
    margin:0 !important;
}

@media(max-width:768px){
    .lg\:mx-0.text-center.mb-8{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
    }
}

/* الحاوية الرئيسية */
.lg\:mx-0.text-center.mb-8{
    display:flex !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    flex-wrap:wrap !important;
    width:100% !important;
}

/* العنوان */
.lg\:mx-0.text-center.mb-8 h2{
    order:1;
    margin:0 !important;
    text-align:right !important;
}

/* الخط الأحمر تحت العنوان فقط */
.lg\:mx-0.text-center.mb-8 .border-primary{
    order:3;
    width:112px !important;
    margin:6px 0 0 auto !important;
    flex-basis:100px !important;
}

/* زر عرض الكل */
.lg\:mx-0.text-center.mb-8 .flex.items-center{
    order:2;
    margin:0 !important;
}

/* الحاوية الرئيسية */
.lg\:mx-0.text-center.mb-8{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    direction:rtl !important;
    width:100% !important;
}

/* العنوان */
.lg\:mx-0.text-center.mb-8 h2{
    margin:0 !important;
    text-align:right !important;
}

/* الخط الأحمر تحت العنوان فقط */
.lg\:mx-0.text-center.mb-8 .border-primary{
    position:absolute !important;
    right:0 !important;
    top:100% !important;
    width:100px !important;
    margin-top:6px !important;
}

/* اجعل جهة العنوان مرجعية للخط */
.lg\:mx-0.text-center.mb-8{
    position:relative !important;
    padding-bottom:20px !important;
}

/* زر عرض الكل */
.lg\:mx-0.text-center.mb-8 .flex.items-center{
    margin:0 !important;
}


/* ترتيب عنوان القسم + الزر */
.lg\:mx-0.text-center.mb-8{
    display:grid !important;
    grid-template-columns:1fr auto !important;
    grid-template-areas:
        "button title"
        "button line";
    align-items:center !important;
    column-gap:22px !important;
    row-gap:8px !important;
    margin-bottom:28px !important;
    direction:ltr !important;
}

/* العنوان يمين */
.lg\:mx-0.text-center.mb-8 h2{
    grid-area:title !important;
    margin:0 !important;
    text-align:right !important;
    direction:rtl !important;
}

/* الخط تحت العنوان */
.lg\:mx-0.text-center.mb-8 .border-primary{
    grid-area:line !important;
    width:120px !important;
    margin:0 0 0 auto !important;
}

/* زر عرض الكل يسار العنوان */
.lg\:mx-0.text-center.mb-8 .flex.items-center{
    grid-area:button !important;
    justify-self:start !important;
    margin:0 !important;
}

/* للجوال */
@media(max-width:768px){
    .lg\:mx-0.text-center.mb-8{
        column-gap:14px !important;
        margin-bottom:22px !important;
    }

    .lg\:mx-0.text-center.mb-8 h2{
        font-size:28px !important;
    }

    .lg\:mx-0.text-center.mb-8 .border-primary{
        width:95px !important;
    }
}

/* الأقسام التي تحتوي زر عرض الكل فقط */
.s-block--best-offers .lg\:mx-0.text-center.mb-8{
    display:grid !important;
    grid-template-columns:1fr auto !important;
    grid-template-areas:
        "button title"
        "button line";
    align-items:center !important;
    column-gap:22px !important;
    row-gap:8px !important;
    margin-bottom:28px !important;
    direction:ltr !important;
}

/* العنوان */
.s-block--best-offers .lg\:mx-0.text-center.mb-8 h2{
    grid-area:title !important;
    margin:0 !important;
    text-align:right !important;
    direction:rtl !important;
}

/* الخط */
.s-block--best-offers .border-primary{
    grid-area:line !important;
    width:110px !important;
    margin:0 0 0 auto !important;
}

/* الزر */
.s-block--best-offers .flex.items-center{
    grid-area:button !important;
    margin:0 !important;
    justify-self:start !important;
}

/* الجوال */
@media(max-width:768px){

    .s-block--best-offers .lg\:mx-0.text-center.mb-8{
        column-gap:14px !important;
    }

    .s-block--best-offers .lg\:mx-0.text-center.mb-8 h2{
        font-size:30px !important;
    }

    .s-block--best-offers .border-primary{
        width:90px !important;
    }
}