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

/* =========================
   METRO PLAN FINAL VERSION
========================= */

/* Advertisement */

.s-advertisement-content {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  direction: ltr;
}

.s-advertisement-content-main {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  animation: metroTicker 35s linear infinite;
}

.s-advertisement-content-main::before,
.s-advertisement-content-main::after {
  content: "كود خصم اول طلب ME1 • كود خصم اول طلب ME1 • كود خصم اول طلب ME1 • كود خصم اول طلب ME1";
  display: inline-block;
  margin: 0 80px;
  color: inherit;
}

@keyframes metroTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* =========================
   PRODUCT CARDS
========================= */

.s-product-card-entry {
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  position: relative !important;
}

/* صور المنتجات */

.s-product-card-image {
  background: #fff !important;
  aspect-ratio: 1 / 1.15 !important;
  min-height: 210px !important;
  overflow: hidden !important;
}

.s-product-card-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.s-product-card-image-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
  padding: 0 !important;
}

/* زر المفضلة */

.s-product-card-wishlist-btn {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 5 !important;
}

.s-product-card-wishlist-btn .s-button-element {
  background: rgba(255,255,255,0.96) !important;
  border: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

/* المحتوى */

.s-product-card-content {
  padding: 12px 8px 0 !important;
  text-align: center !important;
  background: #fff !important;
}

.s-product-card-content-title {
  min-height: 42px !important;
  margin-bottom: 8px !important;
}

.s-product-card-content-title a {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #111 !important;
  text-decoration: none !important;
}

/* السعر */

.s-product-card-sale-price {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}

.s-product-card-sale-price h4 {
  color: #d60000 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.s-product-card-sale-price span {
  color: #777 !important;
  text-decoration: line-through !important;
}

/* زر السلة */

.s-product-card-content-footer {
  margin-top: 10px !important;
}

.s-product-card-content-footer .s-button-element {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
}

.s-product-card-content-footer .s-button-text,
.s-product-card-content-footer span,
.s-product-card-content-footer i {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* =========================
   SLIDER PERFORMANCE
========================= */

.s-slider-container,
.swiper,
.s-products-slider-slider {
  overflow: hidden !important;
  touch-action: pan-y !important;
}

.s-slider-swiper-wrapper,
.swiper-wrapper {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.swiper-slide,
.s-products-slider-card {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
  padding-inline: 5px !important;
}

.s-products-slider-slider,
.s-products-slider-card,
.s-product-card-entry {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .s-product-card-image {
    aspect-ratio: 1 / 1.1 !important;
    min-height: 190px !important;
  }

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

  .s-product-card-sale-price h4 {
    font-size: 16px !important;
  }
}
/* تثبيت ارتفاع أول بانر / سلايدر لتقليل CLS */
.s-block--photos-slider,
.s-block--photos-slider .swiper,
.s-block--photos-slider .swiper-wrapper,
.s-block--photos-slider .swiper-slide,
.main-slider,
.main-slider .swiper-slide {
  min-height: 180px !important;
  overflow: hidden !important;
}

/* تثبيت صور البانر */
.s-block--photos-slider img,
.main-slider img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 7 !important;
  object-fit: cover !important;
  display: block !important;
}

/* تثبيت سكشن المنتجات */
.s-products-slider-wrapper,
.s-products-slider-slider,
.s-slider-container {
  min-height: 390px !important;
  overflow: hidden !important;
}
/* إصلاح الفاصل بين كروت المنتجات في الجوال */
@media (max-width: 768px) {
  .s-products-slider-card,
  .swiper-slide {
    padding-inline: 0 !important;
    margin-inline: 0 !important;
  }

  .s-product-card-entry {
    margin-inline: 0 !important;
    width: 100% !important;
  }

  .s-slider-swiper-wrapper,
  .swiper-wrapper {
    gap: 0 !important;
  }

  .s-product-card-image,
  .s-product-card-content {
    margin-inline: 0 !important;
  }
}
/* تغيير خلفية المتجر بالكامل إلى أبيض ناصع */

body,
main,
#main-content,
.site-wrapper,
.s-theme,
.s-theme main,
.s-block,
.s-section,
.container,
.s-products-slider-wrapper,
.section,
.page-wrapper {
  background: #fff !important;
}

/* إزالة الخلفية الرمادية من السكاشن */
.s-block,
.s-section,
.s-products-slider-section {
  background-color: #fff !important;
}

/* الهيدر */
header,
.s-header,
.s-header-container {
  background: #fff !important;
}

/* الفوتر */
footer,
.s-footer {
  background: #fff !important;
}

/* السلايدر */
.s-slider-container,
.swiper,
.swiper-wrapper {
  background: #fff !important;
}