/* Salamati — Mobile
   Draft version: 823755969
*/

@media (max-width: 767px) {

  /* البحث: أيقونة مع الاحتفاظ بمشغّل نافذة سلة */
  .store-header .header-search {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px;
    margin-inline-start: auto;
  }

  .store-header .header-search salla-search {
    display: block;
    width: 44px;
  }

  .store-header .header-search .s-search-placeholder-wrapper {
    width: 44px !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .store-header .header-search
  .s-search-placeholder-wrapper .s-search-input-wrapper {
    position: relative;
    width: 44px !important;
    height: 44px !important;
    background: #171717 !important;
    border-radius: 8px;
  }

  /* يبقى الحقل قابلًا للنقر والتركيز */
  .store-header .header-search .s-search-placeholder-trigger {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 44px !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: transparent !important;
    caret-color: transparent;
    cursor: pointer;
    box-shadow: none !important;
  }

  .store-header .header-search
  .s-search-placeholder-trigger::placeholder {
    color: transparent !important;
    opacity: 0 !important;
  }

  .store-header .header-search
  .s-search-placeholder-wrapper .s-search-icon-wrap {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    transform: none !important;
    color: #E9B82F !important;
    pointer-events: none;
  }

  .store-header .header-search
  .s-search-placeholder-wrapper .s-search-icon svg {
    width: 21px !important;
    height: 21px !important;
    fill: currentColor !important;
  }

  .store-header .header-search
  .s-search-placeholder-trigger:focus-visible {
    outline: 2px solid #E9B82F !important;
    outline-offset: 2px;
  }

  /* عناوين الأقسام */
  .s-block__title h2,
  .s-block__title h3 {
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  /* محتوى بطاقات المنتجات */
  .s-product-card-content {
    padding: 10px !important;
    min-width: 0;
  }

  .s-product-card-content-title,
  .s-product-card-content-title a {
    font-size: 13px !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    overflow-wrap: anywhere;
  }

  .s-product-card-price,
  .s-product-card-sale-price {
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .s-product-card-image img {
    object-fit: contain !important;
  }

  .s-product-card-content-footer {
    padding-top: 6px !important;
  }

  /* الزر الأساسي فقط، مع السماح بتمدد النص */
  .s-product-card-content-footer button.s-button-primary {
    box-sizing: border-box;
    min-height: 44px !important;
    height: auto !important;
    padding: 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  .s-product-card-content-footer
  button.s-button-primary:not(:disabled) {
    background-color: #E9B82F !important;
    color: #171717 !important;
    border: 1px solid #D3A21B !important;
  }

  .s-product-card-content-footer
  button.s-button-primary:not(:disabled):active {
    background-color: #D3A21B !important;
  }

  .s-product-card-content-footer button.s-button-primary svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
  }

  .s-product-card-content-footer
  button.s-button-primary:not(:disabled) :is(svg, i) {
    color: #171717 !important;
  }

  /* المسافات بين أقسام الصفحة */
  .s-block {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  /* التصنيفات */
  .s-block--categories .swiper-slide {
    height: auto;
  }

  .s-block--categories .swiper-slide > a {
    padding: 12px 8px !important;
    min-height: 88px;
    border-radius: 10px;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .s-block--categories .swiper-slide img {
    max-width: 42px !important;
    max-height: 42px !important;
    object-fit: contain;
  }

  /* روابط رائد السريعة */
  .main-links .swiper-slide > a {
    min-height: 70px !important;
    height: auto !important;
    padding: 8px 6px !important;
    border-radius: 10px !important;
  }

  .main-links .swiper-slide i,
  .main-links .swiper-slide .sicon {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .main-links .swiper-slide span,
  .main-links .swiper-slide h3 {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* قائمة الجوال */
  .mm-spn li > a,
  .mm-spn li > span {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 1.5 !important;

  }
}

/* استعادة لون أزرار بطاقات المنتجات على الجوال */
@media (max-width: 767px) {
  .s-product-card-content-footer button:not(:disabled) {
    background-color: #E9B82F !important;
    color: #171717 !important;
    border: 1px solid #D3A21B !important;
  }

  .s-product-card-content-footer button:not(:disabled) svg,
  .s-product-card-content-footer button:not(:disabled) i {
    color: #171717 !important;
  }

  .s-product-card-content-footer button:not(:disabled):active {
    background-color: #D3A21B !important;
  }
}

/* Salamati draft 823755969 — professional palette and header */
:root, body {
  --color-primary: #e9b82f;
  --color-primary-dark: #c4981d;
  --color-primary-light: #fff6d9;
  --color-primary-reverse: #171717;
}
.store-header .navbar-brand img {
  width: 68px !important; height: 68px !important;
  max-height: 68px !important; object-fit: contain;
}
.s-block--categories .slide--cat-entry {
  border: 1px solid #e6e6e6; border-radius: 10px;
  box-shadow: none;
}
.s-block--categories .slide--cat-entry i { color: #9b7410; }
.s-block--categories .slide--cat-entry:hover { border-color: #e9b82f; }
.s-product-card-content-footer button:not(:disabled) {
  background-color: #e9b82f !important; color: #171717 !important;
  border: 1px solid #d3a21b !important; min-height: 44px;
}
@media (max-width: 767px) {
  .store-header .navbar-brand img {
    width: 60px !important; height: 60px !important; max-height: 60px !important;
  }
}

/* Salamati draft 823755969 — approved realistic category artwork */
#main-links-1 .slide--cat-entry {height:auto!important;min-height:174px; padding:12px 8px!important;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;background:#fff;}
#main-links-1 .slide--cat-entry i {display:block!important;width:112px!important;height:112px!important;flex:0 0 112px;max-width:100%;margin:0 auto 8px!important;background-size:contain;background-position:center;background-repeat:no-repeat;font-size:0!important;line-height:0!important;}
#main-links-1 .slide--cat-entry i::before {content:none!important;}
#main-links-1 .slide--cat-entry h2 {font-size:14px!important;line-height:1.6!important;color:#171717;white-space:normal;text-align:center;margin:0!important;}
#main-links-1 a[href$="/c457331379"] i {background-image:url("https://cdn.files.salla.network/other/297844552/edbabf91-9ac3-4c38-8e25-780ccba9779b-original.webp");}
#main-links-1 a[href$="/c479672161"] i {background-image:url("https://cdn.files.salla.network/other/297844552/ae314e0f-09fd-453c-aece-356413be05ea-original.webp");}
#main-links-1 a[href$="/c893800306"] i {background-image:url("https://cdn.files.salla.network/other/297844552/2c61be19-2826-4d91-9870-78130b91d1cd-original.webp");}
#main-links-1 a[href$="/c1231369138"] i {background-image:url("https://cdn.files.salla.network/other/297844552/9fe54bbf-d98b-4772-9a04-0f3b64642bff-original.webp");}
#main-links-1 a[href$="/c2140673201"] i {background-image:url("https://cdn.files.salla.network/other/297844552/6083cd10-d961-40fc-8fcc-19969a757aec-original.webp");}
@media(max-width:767px){#main-links-1 .slide--cat-entry {min-height:158px;padding:8px 6px!important;}#main-links-1 .slide--cat-entry i {width:102px!important;height:102px!important;flex-basis:102px;}#main-links-1 .slide--cat-entry h2 {font-size:13px!important;}}
@media(min-width:768px){#main-links-1 .swiper-slide {width:calc((100% - 80px)/5)!important;}#main-links-1 .slide--cat-entry {min-height:190px;}#main-links-1 .slide--cat-entry h2 {min-height:45px;display:flex;align-items:center;justify-content:center;}}

/* Salamati draft 823755969 — merchant requested category grid */
#main-links-1 .swiper {overflow:visible!important;}
#main-links-1 .swiper-wrapper {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px!important;transform:none!important;height:auto!important;touch-action:pan-y;}
#main-links-1 .swiper-slide {width:auto!important;min-width:0!important;height:auto!important;margin:0!important;transform:none!important;}
#main-links-1 .slide--cat-entry {height:100%!important;min-height:190px;box-sizing:border-box;}
#main-links-1 .s-slider-block__title-nav,#main-links-1 .swiper-pagination {display:none!important;}
@media(max-width:767px){#main-links-1 .swiper-wrapper {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important;}#main-links-1 .swiper-slide:last-child:nth-child(odd) {grid-column:1/-1;width:calc(50% - 6px)!important;justify-self:center;}#main-links-1 .slide--cat-entry {min-height:162px;}#main-links-1 .slide--cat-entry h2 {min-height:42px;display:flex;align-items:center;justify-content:center;}}

#main-links-1 .swiper {padding:0!important;margin:0!important;width:100%!important;}
#main-links-1 .swiper-slide {padding:0!important;}

/* Salamati draft 823755969 — approved StoryBrand section palette, 2026-10-25 */
[component-name="about-store"][bundle-id="297844552/1156007794"] {
  --brand-primary: #242729;
  --brand-primary-light: #eee8d7;
  --brand-primary-pale: #f7f2e7;
  --brand-accent: #765b20;
  --brand-text: #242729;
  --brand-text-light: #626b70;
  --brand-bg: #ffffff;
  --brand-border: #e9e4d8;
}

/* Salamati draft 823755969 — clear cart removal, 2026-10-26 */
.cart-item:has(button[data-testid="store-cart-delete-item"]) { padding-block-start: 72px !important; }
.cart-item button[data-testid="store-cart-delete-item"] { min-width: 76px !important; width: auto !important; height: 44px !important; min-height: 44px !important; padding: 0 12px !important; border-radius: 8px !important; background: #fff5f4 !important; border: 1px solid #ebc9c5 !important; color: #8a3028 !important; }
.cart-item button[data-testid="store-cart-delete-item"] .s-button-text { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; }
.cart-item button[data-testid="store-cart-delete-item"] .s-button-text::after { content: "حذف"; font-family: inherit; }
html[lang="en"] .cart-item button[data-testid="store-cart-delete-item"] .s-button-text::after { content: "Remove"; }
.cart-item button[data-testid="store-cart-delete-item"]:focus-visible { outline: 2px solid #8a3028; outline-offset: 3px; }