/* ==================================================
   Root Variables
================================================== */
:root {
  --main-color: #b01614;
  --white-color: #ffffff;
  --black-color: #000000;

  --review-main: #b01614;
  --review-light: #fff6f6;
  --review-border: rgba(176, 22, 20, 0.18);
  --review-text: #555555;
  --review-muted: #999999;
}

/* ==================================================
   Global
================================================== */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  background-color: var(--white-color) !important;
}

/* ==================================================
   Top Navbar
================================================== */
.top-navbar,
.bg-inherit {
  background-color: var(--white-color) !important;
  color: var(--main-color) !important;
}

.bg-inherit * {
  color: var(--main-color) !important;
}

.top-navbar .s-search-input {
  background-color: var(--white-color) !important;
}

/* ==================================================
   Main Menu
================================================== */
.main-menu li.root-level > a {
  transition: transform 0.3s ease;
}

.main-menu li.root-level > a:hover {
  transform: translateY(-3px);
}

/* ==================================================
   Section Titles
================================================== */
.s-slider-block__title,
.s-block__title,
.s-reviews-header-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
}

.s-slider-block__title-right,
.s-block__title-right {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
}

.s-slider-block__title-right h2,
.s-slider-block__title h2,
.s-block__title h2,
.s-block__title h3,
.s-reviews-header {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: var(--main-color) !important;
  font-size: 46px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  transform: none !important;
}

/* Hide title arrows / display all */
.s-slider-block__title-left,
.s-slider-block__title-nav,
.s-slider-block__display-all,
.s-slider-block__title a {
  display: none !important;
}

/* ==================================================
   Category Cards
================================================== */
.slide--cat-entry {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #eeeeee !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

.slide--cat-entry img {
  width: 100% !important;
  height: 120px !important;
  object-fit: cover !important;
  border-radius: 6px 6px 0 0 !important;
}

.slide--cat-entry h2 {
  width: 100% !important;
  margin: 8px 0 10px !important;
  padding: 0 8px !important;
  color: var(--main-color) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  text-align: right !important;
  direction: rtl !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
}

.slide--cat-entry h2::after {
  content: "⟵";
  display: inline-block;
  margin-right: 6px;
  color: var(--main-color);
  font-size: 18px;
  font-weight: 400;
  transform: translateY(1px);
}

/* Keep sliders working */
salla-slider:not(.s-reviews-testimonials-slider) .s-slider-swiper-wrapper {
  align-items: stretch !important;
}

/* تصنيفات الديسكتوب في المنتصف فقط */
@media (min-width: 769px) {
  .s-slider-swiper-wrapper:has(.slide--cat-entry) {
    justify-content: center !important;
  }
}

/* ==================================================
   Product Cards
================================================== */
.s-product-card-entry {
  position: relative !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.s-product-card-image {
  position: relative !important;
  height: 220px !important;
  background: #f8f8f8 !important;
  border-radius: 16px 16px 0 0 !important;
  overflow: hidden !important;
}

.s-product-card-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.s-product-card-image img,
.s-product-card-image-contain {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 16px 16px 0 0 !important;
}

/* Wishlist */
.s-product-card-wishlist-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 5 !important;
}

.s-product-card-wishlist-btn .s-button-element,
.s-product-card-wishlist-btn.s-button-element {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  background: rgba(176, 22, 20, 0.22) !important;
  border: none !important;
  color: #ffffff !important;
}

.s-product-card-wishlist-btn i {
  color: #ffffff !important;
  font-size: 18px !important;
}

/* Product Content */
.s-product-card-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 160px !important;
  padding: 12px 14px 14px !important;
  background: #ffffff !important;
}

.s-product-card-content-title {
  margin: 0 !important;
  padding-left: 50px !important;
  min-height: 42px !important;
  text-align: right !important;
  line-height: 1.5 !important;
}

.s-product-card-content-title a {
  display: block !important;
  color: var(--main-color) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: right !important;
}

/* Rating */
.s-product-card-rating {
  order: -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  margin-bottom: 8px !important;
  direction: ltr !important;
}

.s-product-card-rating i {
  color: #f6c5df !important;
  font-size: 14px !important;
}

.s-product-card-rating span {
  display: none !important;
}

/* Price */
.s-product-card-content-sub {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.s-product-card-price {
  color: var(--main-color) !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-align: right !important;
}

.s-product-card-price i {
  color: var(--main-color) !important;
  font-size: 15px !important;
}

/* Add To Cart */
.s-product-card-content-footer {
  position: absolute !important;
  left: 14px !important;
  bottom: 14px !important;
  width: auto !important;
  margin-top: auto !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

.s-product-card-content-footer .s-button-element {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: var(--main-color) !important;
  border: none !important;
  color: #ffffff !important;
}

.s-product-card-content-footer .s-button-text {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.s-product-card-content-footer .s-button-text span {
  display: none !important;
}

.s-product-card-content-footer i {
  color: #ffffff !important;
  font-size: 22px !important;
}

.s-products-slider-card {
  padding: 0 6px !important;
  box-sizing: border-box !important;
}

/* ==================================================
   Full Width Banners
================================================== */
section.s-block.s-block--fixed-banner,
section.s-block.s-block--banners,
section.s-block.s-block--photos-slider {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

section.s-block.s-block--fixed-banner > .container,
section.s-block.s-block--banners.container,
section.s-block.s-block--photos-slider .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 auto !important;
}

.banner-entry,
.banner--fixed,
.banner-entry img,
.banner--fixed img,
section.s-block.s-block--photos-slider img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

section.s-block.s-block--photos-slider salla-slider.photos-slider .swiper,
section.s-block.s-block--photos-slider salla-slider.photos-slider .swiper-slide {
  padding: 0 !important;
  margin: 0 !important;
}

/* ==================================================
   Sections Spacing
================================================== */
main .s-block,
.main-content .s-block,
section.s-block {
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

main .s-block > .container,
.main-content .s-block > .container,
section.s-block > .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ==================================================
   Reviews / Testimonials
================================================== */
.s-reviews-testimonials-slider .s-slider-block__title {
  display: none !important;
}

.s-reviews-testimonials-slider .s-slider-container {
  padding: 10px 0 25px !important;
  overflow: hidden !important;
}

.s-reviews-testimonials-slider .s-reviews-swiper-slide {
  padding: 0 8px !important;
  box-sizing: border-box !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial,
.s-reviews-testimonials-slider .s-reviews-testimonial__inner {
  position: relative !important;
  min-height: 245px !important;
  padding: 34px 28px 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, var(--review-light) 100%) !important;
  border: 1px solid var(--review-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(176, 22, 20, 0.08) !important;
  overflow: hidden !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: var(--review-main);
  opacity: 0.9;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__icon {
  position: absolute !important;
  top: 18px !important;
  left: 22px !important;
  right: auto !important;
  opacity: 0.12 !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__icon svg {
  width: 52px !important;
  height: 52px !important;
  fill: var(--review-main) !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__text {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  text-align: center !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__text p {
  max-width: 520px !important;
  min-height: 70px !important;
  margin: 18px auto 24px !important;
  color: var(--review-text) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 2 !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__text p:empty {
  min-height: 35px !important;
  margin-bottom: 12px !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__name_wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: auto !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(176, 22, 20, 0.12) !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__rating {
  order: -1 !important;
  margin: 0 0 6px !important;
}

.s-reviews-testimonials-slider .s-rating-stars-wrapper {
  justify-content: center !important;
  gap: 4px !important;
  direction: ltr !important;
}

.s-reviews-testimonials-slider .s-rating-stars-btn-star svg {
  width: 17px !important;
  height: 17px !important;
  fill: var(--review-main) !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__info h2 {
  margin: 0 !important;
  color: var(--review-main) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  margin: 0 auto 10px !important;
  padding: 3px !important;
  background: #ffffff !important;
  border: 2px solid rgba(176, 22, 20, 0.18) !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.s-reviews-testimonials-slider .s-reviews-testimonial__avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.s-reviews-testimonials-slider .swiper-slide-active .s-reviews-testimonial__inner {
  border-color: rgba(176, 22, 20, 0.35) !important;
  box-shadow: 0 12px 32px rgba(176, 22, 20, 0.13) !important;
}

.s-reviews-testimonials-slider .s-slider-nav-arrow {
  width: 36px !important;
  height: 36px !important;
  background: var(--review-main) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #ffffff !important;
}

.s-reviews-testimonials-slider .s-slider-nav-arrow svg {
  width: 22px !important;
  height: 22px !important;
  fill: #ffffff !important;
}

/* إخفاء عنوان آراء العملاء */
.s-reviews-header-wrapper {
  display: none !important;
}

/* إخفاء وثيقة العمل الحر */
salla-trust-badges.s-trust-badges-wrapper {
  display: none !important;
}

/* ==================================================
   Mobile
================================================== */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  .container {
    max-width: 100% !important;
  }

  .s-slider-block__title,
  .s-block__title,
  .s-reviews-header-wrapper {
    margin: 0 0 14px !important;
    text-align: center !important;
  }

  .s-slider-block__title-right,
  .s-block__title-right {
    width: 100% !important;
    text-align: center !important;
  }

  .s-slider-block__title-right h2,
  .s-slider-block__title h2,
  .s-block__title h2,
  .s-block__title h3,
  .s-reviews-header {
    width: 100% !important;
    margin: 0 auto !important;
    font-size: 28px !important;
    line-height: 1.3 !important;
    text-align: center !important;
  }

  .swiper,
  .swiper-wrapper,
  .s-slider-container,
  .s-products-slider-wrapper {
    max-width: 100% !important;
  }

  .swiper-slide {
    box-sizing: border-box !important;
  }

  /* إصلاح مشكلة تصنيفات الجوال */
  .s-slider-swiper-wrapper:has(.slide--cat-entry) {
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  .s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-slide {
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  salla-slider:not(.s-reviews-testimonials-slider) .s-slider-swiper-wrapper {
    justify-content: flex-start !important;
  }

  /* Category Cards Mobile */
  .slide--cat-entry {
    width: 100% !important;
  }

  .slide--cat-entry img {
    height: 105px !important;
  }

  .slide--cat-entry h2 {
    padding: 0 6px !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
  }

  .slide--cat-entry h2::after {
    margin-right: 4px !important;
    font-size: 15px !important;
  }

  /* Product Cards */
  .s-products-slider-card {
    padding: 0 5px !important;
  }

  .s-product-card-entry {
    border-radius: 14px !important;
  }

  .s-product-card-image {
    height: 170px !important;
    border-radius: 14px 14px 0 0 !important;
  }

  .s-product-card-image img,
  .s-product-card-image-contain {
    border-radius: 14px 14px 0 0 !important;
  }

  .s-product-card-content {
    min-height: 140px !important;
    padding: 10px 11px 12px !important;
  }

  .s-product-card-content-title {
    min-height: 38px !important;
    padding-left: 45px !important;
  }

  .s-product-card-content-title a {
    font-size: 13px !important;
  }

  .s-product-card-price {
    font-size: 20px !important;
  }

  .s-product-card-price i {
    font-size: 13px !important;
  }

  .s-product-card-content-footer {
    left: 11px !important;
    bottom: 12px !important;
  }

  .s-product-card-content-footer .s-button-element {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 9px !important;
  }

  .s-product-card-content-footer i {
    font-size: 20px !important;
  }

  .s-product-card-wishlist-btn .s-button-element,
  .s-product-card-wishlist-btn.s-button-element {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }

  /* Reviews */
  .s-reviews-testimonials-slider .s-reviews-swiper-slide {
    padding: 0 6px !important;
  }

  .s-reviews-testimonials-slider .s-reviews-testimonial,
  .s-reviews-testimonials-slider .s-reviews-testimonial__inner {
    min-height: 220px !important;
    padding: 28px 18px 20px !important;
    border-radius: 16px !important;
  }

  .s-reviews-testimonials-slider .s-reviews-testimonial__text p {
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
  }

  main .s-block,
  .main-content .s-block,
  section.s-block {
    margin-bottom: 15px !important;
  }
}

/* ==================================================
   Small Mobile
================================================== */
@media (max-width: 480px) {
  .s-slider-block__title-right h2,
  .s-slider-block__title h2,
  .s-block__title h2,
  .s-block__title h3,
  .s-reviews-header {
    font-size: 28px !important;
  }

  .s-product-card-image {
    height: 155px !important;
  }

  .slide--cat-entry img {
    height: 95px !important;
  }
}