/* 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 فقط في الصفحة الرئيسية والسلايدرات
========================= */

body.index .s-products-slider-wrapper .s-product-card-entry,
body.index .s-products-list .s-product-card-entry {
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  position: relative !important;
}

body.index .s-products-slider-wrapper .s-product-card-image,
body.index .s-products-list .s-product-card-image {
  background: #fff !important;
  aspect-ratio: 1 / 1.18 !important;
  min-height: 230px !important;
  overflow: hidden !important;
}

body.index .s-products-slider-wrapper .s-product-card-image a,
body.index .s-products-list .s-product-card-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

body.index .s-products-slider-wrapper .s-product-card-image-cover,
body.index .s-products-slider-wrapper .s-product-card-image-contain,
body.index .s-products-list .s-product-card-image-cover,
body.index .s-products-list .s-product-card-image-contain {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff !important;
  padding: 0 !important;
}

/* إخفاء المفضلة في كروت الرئيسية فقط */
body.index .s-products-slider-wrapper .s-product-card-wishlist-btn,
body.index .s-products-list .s-product-card-wishlist-btn {
  display: none !important;
}

/* المحتوى */
body.index .s-products-slider-wrapper .s-product-card-content,
body.index .s-products-list .s-product-card-content {
  padding: 8px 4px 0 !important;
  text-align: center !important;
  background: #fff !important;
}

body.index .s-products-slider-wrapper .s-product-card-content-title,
body.index .s-products-list .s-product-card-content-title {
  min-height: auto !important;
  margin: 0 0 4px !important;
}

body.index .s-products-slider-wrapper .s-product-card-content-title a,
body.index .s-products-list .s-product-card-content-title a {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #111 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* الأسعار */
body.index .s-products-slider-wrapper .s-product-card-price,
body.index .s-products-list .s-product-card-price {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

body.index .s-products-slider-wrapper .s-product-card-sale-price,
body.index .s-products-list .s-product-card-sale-price {
  display: flex !important;
  justify-content: center !important;
  align-items: baseline !important;
  gap: 6px !important;
  margin-top: 2px !important;
}

body.index .s-products-slider-wrapper .s-product-card-sale-price h4,
body.index .s-products-list .s-product-card-sale-price h4 {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

body.index .s-products-slider-wrapper .s-product-card-sale-price span,
body.index .s-products-list .s-product-card-sale-price span {
  color: #8a8a8a !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  text-decoration: line-through !important;
  margin: 0 !important;
}

/* =========================
   زر إضافة للسلة بدون مربع - كروت الرئيسية فقط
========================= */

body.index .s-products-slider-wrapper .s-product-card-content-footer .s-button-element,
body.index .s-products-slider-wrapper .s-product-card-content-footer button,
body.index .s-products-list .s-product-card-content-footer .s-button-element,
body.index .s-products-list .s-product-card-content-footer button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
}

body.index .s-products-slider-wrapper .s-product-card-content-footer .s-button-text,
body.index .s-products-slider-wrapper .s-product-card-content-footer span,
body.index .s-products-slider-wrapper .s-product-card-content-footer i,
body.index .s-products-list .s-product-card-content-footer .s-button-text,
body.index .s-products-list .s-product-card-content-footer span,
body.index .s-products-list .s-product-card-content-footer i {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

body.index .s-products-slider-wrapper .s-product-card-content-footer,
body.index .s-products-list .s-product-card-content-footer {
  margin-top: 8px !important;
  background: transparent !important;
}

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

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

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

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

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

@media (max-width: 768px) {
  body.index .s-products-slider-card,
  body.index .swiper-slide {
    width: 46% !important;
    flex: 0 0 46% !important;
    max-width: 46% !important;
    padding-inline: 4px !important;
    box-sizing: border-box !important;
  }

  body.index .s-products-slider-wrapper .s-product-card-image,
  body.index .s-products-list .s-product-card-image {
    aspect-ratio: 1 / 1.18 !important;
    min-height: 185px !important;
  }

  body.index .s-products-slider-wrapper .s-product-card-content,
  body.index .s-products-list .s-product-card-content {
    padding: 7px 2px 0 !important;
  }

  body.index .s-products-slider-wrapper .s-product-card-content-title a,
  body.index .s-products-list .s-product-card-content-title a {
    font-size: 12.5px !important;
  }

  body.index .s-products-slider-wrapper .s-product-card-price,
  body.index .s-products-slider-wrapper .s-product-card-sale-price h4,
  body.index .s-products-list .s-product-card-price,
  body.index .s-products-list .s-product-card-sale-price h4 {
    font-size: 13px !important;
  }

  body.index .s-products-slider-wrapper .s-product-card-sale-price span,
  body.index .s-products-list .s-product-card-sale-price span {
    font-size: 11.5px !important;
  }
}

/* =========================
   WHITE BACKGROUND
========================= */

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;
}