/* بطاقات العلامات التجارية */
.s-slider-block__item,
.s-brands-slider .swiper-slide a,
.s-brands-slider .swiper-slide,
.brand-item{
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: transform .35s ease, box-shadow .35s ease;
}

/* التكبير والظل */
.s-slider-block__item:hover,
.s-brands-slider .swiper-slide:hover,
.s-brands-slider .swiper-slide a:hover,
.brand-item:hover{
    transform: translateY(-6px) scale(1.05);
    box-shadow:
        0 12px 35px rgba(0,0,0,.15),
        0 0 25px rgba(210,210,210,.85);
}

/* اللمعة الفضية */
.s-slider-block__item::before,
.s-brands-slider .swiper-slide::before,
.s-brands-slider .swiper-slide a::before,
.brand-item::before{
    content:"";
    position:absolute;
    top:-50%;
    left:-100%;
    width:45%;
    height:220%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(235,235,235,.95),
        rgba(255,255,255,.75),
        rgba(210,210,210,.95),
        transparent
    );
    transform:rotate(25deg);
    transition:left .7s ease;
    pointer-events:none;
}

.s-slider-block__item:hover::before,
.s-brands-slider .swiper-slide:hover::before,
.s-brands-slider .swiper-slide a:hover::before,
.brand-item:hover::before{
    left:160%;
}

/* ============================== */
/* انيميشن ظهور العناصر عند التمرير للأسفل - كود مضاف فوق الكود الأصلي */
/* ============================== */

@keyframes salla-scroll-fade-up {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports (animation-timeline: view()) {
  main .s-block,
  .s-block-slider,
  .s-brands-slider,
  .s-product-card,
  .s-block-header,
  .s-block-banner,
  .s-block-collection,
  .s-block-footer,
  .swiper-slide {
    animation: salla-scroll-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  main .s-block,
  .s-block-slider,
  .s-brands-slider,
  .s-product-card,
  .s-block-header,
  .s-block-banner,
  .s-block-collection,
  .s-block-footer,
  .swiper-slide {
    animation: none !important;
  }
}

/* ============================== */
/* تصحيح: تمديد أنيميشن الظهور للعناصر الحقيقية في القالب (بطاقات المنتجات والعلامات التجارية) */
/* ============================== */
@supports (animation-timeline: view()) {
  .s-product-card-entry,
  .brand-item {
    animation: salla-scroll-fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-product-card-entry,
  .brand-item {
    animation: none !important;
  }
}

/* ============================== */
/* الوضع الأبيض والأسود بالكامل - بدون أي درجات رمادية */
/* ============================== */
:root {
  --color-primary: #000000 !important;
  --color-primary-d: #000000 !important;
  --color-primary-dark: #000000 !important;
  --color-primary-l: #ffffff !important;
  --color-primary-light: #ffffff !important;
  --color-primary-reverse: #ffffff !important;
  --color-grey: #ffffff !important;
  --color-light-grey: #ffffff !important;
  --color-text: #000000 !important;
  --bg-gray: transparent !important;
}

html,
body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* تحويل كل خلفيات ونصوص وحدود تيلويند الرمادية داخل المحتوى الرئيسي إلى أبيض/أسود فقط */
main [class*="bg-gray-"] {
  background-color: #ffffff !important;
}
main [class*="text-gray-"] {
  color: #000000 !important;
}
main [class*="border-gray-"],
main [class*="divide-gray-"] {
  border-color: #000000 !important;
}

/* الصور: إزالة الألوان وتحويلها لأبيض وأسود بأعلى تباين ممكن */
img {
  filter: grayscale(1) contrast(1.3);
}

/* ========== قسم بطاقات المنتجات: أسود وأبيض فقط، مع حواف وأزرار سوداء ========== */
.s-product-card-entry {
  background-color: #ffffff !important;
  border: 1px solid #000000 !important;
}
.s-product-card-entry,
.s-product-card-entry * {
  color: #000000 !important;
}
.s-product-card-image {
  background-color: #ffffff !important;
  border-color: #000000 !important;
}
.s-product-card-wishlist-btn {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}
.s-product-card-entry .s-button-element {
  border-color: #000000 !important;
  color: #000000 !important;
  background-color: transparent !important;
}

/* الفوتر: أسود خالص مع نص أبيض بدل الرمادي الداكن */
footer {
  background-color: #000000 !important;
}
footer,
footer * {
  color: #ffffff !important;
}

/* ============================== */
/* استثناء الصور من التحويل للأسود والأبيض - إبقاء صور المنتجات وشعارات الماركات بألوانها الطبيعية */
/* ============================== */
img,
.s-product-card-image img,
.brand-item img,
.s-block--logos-slider img {
  filter: none !important;
}


/* ============================== */
/* إزالة الحدود السوداء عن بطاقات المنتجات */
/* ============================== */
.s-product-card-entry,
.s-product-card-image {
  border: none !important;
}


/* ============================== */
/* القسم الأخير في نهاية الصفحة (أعلى الفوتر) كان أبيض/رمادي فاتح - تحويله لأسود */
/* ============================== */
.store-footer__inner {
  background-color: #000000 !important;
}
.store-footer__inner,
.store-footer__inner * {
  color: #ffffff !important;
}
.s-product-card-image {
    aspect-ratio: 1 / 1 !important;
}

.s-product-card-image img {
    max-width: 85% !important;
    max-height: 85% !important;
    object-fit: contain !important;
    margin: auto;
}

/* تحويل لون أيقونة "اكتشف مجموعاتنا" الى الأسود */
.s-block--bundle-quick-categories {
    --brand-primary: #000000;
}
/* الشريط العلوي الثابت (يظهر عند السكرول) - خلفية زجاجية شفافة blur */
.main-nav-container.fixed-pinned .inner,
.main-nav-container.fixed-header .inner {
  background-color: transparent !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}
/* حواف مدورة لأعلى الفوتر (ذيل الصفحة) */
.store-footer__inner {
  border-radius: 32px 32px 0 0 !important;
  overflow: hidden !important;
}

/* ===== Custom edits: center name/price, invert cart button, remove topbar ===== */

.s-product-card-content-main,
.s-product-card-content-sub{
  text-align:center !important;
}
.s-product-card-sale-price{
  justify-content:center !important;
}
.s-product-card-content-sub{
   justify-content:center !important;
}

.s-product-card-content-footer salla-add-product-button .s-button-element.s-button-primary-outline{
  background-color:#000 !important;
  border-color:#000 !important;
  color:#fff !important;
}
.s-product-card-content-footer salla-add-product-button .s-button-element.s-button-primary-outline:hover{
  background-color:#000 !important;
  color:#fff !important;
}
.s-product-card-content-footer salla-add-product-button .s-button-text,
.s-product-card-content-footer salla-add-product-button .s-button-text *,
.s-product-card-content-footer salla-add-product-button i{
   color:#fff !important;
}

.top-navbar{
  background:transparent !important;
    display:none !important;
  border:none !important;
}
.top-navbar salla-menu,
.top-navbar .header-buttons,
.top-navbar salla-contacts{
  display:none !important;
}
.top-navbar .container{
  padding:0 !important;
  min-height:0 !important;
}
.relocated-search{
  display:flex !important;
  align-items:center;
  margin-inline-end:10px;
  position:relative;
}
.relocated-search,
.relocated-search .s-search-modal,
.relocated-search .s-search-container,
.relocated-search .s-search-input-wrapper{
  width:40px !important;
  min-width:40px !important;
  overflow:hidden !important;
}
.relocated-search.search-open,
.relocated-search.search-open .s-search-modal,
.relocated-search.search-open .s-search-container,
.relocated-search.search-open .s-search-input-wrapper{
  width:220px !important;
  min-width:220px !important;
  overflow:visible !important;
}
.relocated-search .s-search-input{
  width:0;
  padding:0;
  border:none;
  opacity:0;
  transition:width .25s ease, opacity .25s ease;
}
.relocated-search.search-open .s-search-input{
  width:160px !important;
  opacity:1;
  padding:0 8px;
  border-bottom:1px solid #000;
}
.relocated-search .s-search-results{
  position:absolute;
  top:120%;
  inset-inline-end:0;
  background:#fff;
  z-index:50;
  min-width:200px;
}

/* Feature icons (شحن سريع/خدمة العملاء/تسوق آمن): white bg, black icon+border */
.feature-icon{
    background:#fff !important;
    border:2px solid #000 !important;
}
.feature-icon i{
    color:#000 !important;
}
/* عرض العلامات التجارية في صف أفقي واحد */
.s-brands-slider .swiper-wrapper{
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
}
.s-brands-slider .swiper-slide{
    height: auto !important;
}


/* عرض شعارات العلامات التجارية في صفوف منتظمة بدون تداخل */
.brand-item{
    grid-row: auto !important;
}

/* ===== قسم الماركات: صف أفقي واحد كامل على الويب/اللابتوب فقط ===== */
@media (min-width: 768px) {
  .s-block--logos-slider .grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    gap: 16px !important;
  }
  .s-block--logos-slider .grid > .brand-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    grid-row: auto !important;
    grid-column: auto !important;
    height: 150px !important;
    padding: 12px !important;
  }
  .s-block--logos-slider .grid > .brand-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto !important;
  }
}

/* ===== زر القائمة (٣ شرط) بجانب الشعار + قائمة جانبية على الويب/اللابتوب ===== */
@media (min-width: 1024px) {
  .store-header a.mburger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
  .store-header a.mburger i.sicon-menu {
    font-size: 26px !important;
    line-height: 1;
    color: #000 !important;
  }
}
/* تصميم القائمة الجانبية المنسدلة (تظهر على الويب فقط) */
.mm-ocd__content .cdm { background:#fff; height:100%; }
.mm-ocd__content .cdm-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 20px; background:#f7f7f7; border-bottom:1px solid #eee;
}
.mm-ocd__content .cdm-title { font-size:17px; font-weight:700; color:#8a8a8a; }
.mm-ocd__content .cdm-close {
  width:34px; height:34px; border:none; cursor:pointer;
  border-radius:8px; background:#e02424; color:#fff;
  font-size:18px; line-height:1; display:flex; align-items:center; justify-content:center;
}
.mm-ocd__content .cdm-close:hover { background:#b91c1c; }
.mm-ocd__content .cdm-list { list-style:none; margin:0; padding:0; }
.mm-ocd__content .cdm-list li { border-bottom:1px solid #eee; }
.mm-ocd__content .cdm-list a {
  display:block; padding:16px 20px; color:#111 !important;
  font-size:15px; font-weight:600; text-decoration:none;
}
.mm-ocd__content .cdm-list a:hover { background:#f7f7f7; }
/* إخفاء روابط القائمة الأفقية من الهيدر على الويب (الاعتماد على زر الـ٣ شرط) */
@media (min-width: 1024px) {
  .store-header nav#mobile-menu { display: none !important; }
}
/* منع تكرار القائمة داخل اللوحة الجانبية على الويب */
@media (min-width: 1024px) {
  .mm-ocd__content .cdm-hidden { display: none !important; }
}

/* ############################## */
/* الصور المربعة (الأقسام): مظهر مربع بالكامل - سطح المكتب فقط */
/* ############################## */
@media (min-width: 768px) {
  .s-block--banners .grid.two-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    align-items: stretch !important;
  }
  .s-block--banners .grid.two-row > .banner-entry {
    grid-row: auto !important;
    grid-column: auto !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
  }
  .s-block--banners .grid.two-row > .banner-entry .lazy__bg {
    background-size: cover !important;
    background-position: center center !important;
  }
}
@media (min-width: 1024px) {
  .s-block--banners .grid.two-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ===== اضافة عبارة يبدا من قبل السعر ===== */
/* بطاقات المنتجات: الرئيسية، التصنيفات، البحث، المقترحة، السلايدرات */
.s-product-card-sale-price::before, h4.s-product-card-price::before, .s-product-card-price::before{content:"يبدأ من";font-size:.8em;font-weight:500;color:inherit;opacity:.85;white-space:nowrap;align-self:center;margin-inline-end:4px;}

/* صفحة تفاصيل المنتج */
.price-wrapper .price_is_on_sale::before, .price-wrapper .starting-or-normal-price::before{content:"يبدأ من";font-size:.75em;font-weight:500;color:inherit;opacity:.85;white-space:nowrap;margin-inline-end:6px;}

/* بلوك السعر المخصص في صفحة المنتج */
.container--product-details .main-content > div.flex.items-center.whitespace-nowrap:not(.price-wrapper) > div::before{content:"يبدأ من";font-size:.75em;font-weight:500;color:inherit;opacity:.85;white-space:nowrap;margin-inline-end:6px;}