/* Add custom CSS styles below */ 
/* SIP — إصلاح التباين */
:root{
  --color-primary-reverse:#594e42 !important;
  --color-text:#5c6064 !important;
}

/* أزرار البيج: نص بني داكن */
.s-button-primary,.btn-primary,.btn-outline-primary:hover{color:#4a3f35 !important;}
.btn-outline-primary{color:#4a3f35 !important;border-color:#4a3f35 !important;}

/* زر «اشترِ الآن» */
salla-mini-checkout-widget,.s-add-product-button-mini-checkout{--color-primary:#4a3f35 !important;}
.s-add-product-button-mini-checkout-content{color:#4a3f35 !important;}
.s-add-product-button-mini-checkout-content svg{fill:currentColor !important;}
salla-mini-checkout-widget:hover .s-add-product-button-mini-checkout-content,
salla-mini-checkout-widget:hover .s-add-product-button-mini-checkout-content svg{color:#fff !important;fill:#fff !important;}

/* روابط ووسوم */
.s-block__display-all,.text-primary,
.f_quick-links a,.f_quick-links a span{color:#4a3f35 !important;}

/* أيقونات الكمية */
.s-quantity-input-button svg,.s-quantity-input-button svg path{fill:#4a3f35 !important;}

/* السلة والأسعار */
.item-total,.f_item-total{color:#4a3f35 !important;}
.text-red-400{color:#dc2626 !important;}

/* نص الإرشاد داخل الحقول */
textarea::placeholder,input::placeholder{color:#6b6b6b !important;}
/* مسار التنقل */
.s-breadcrumb-item a,
.s-breadcrumb-item a:visited{color:#4a3f35 !important;}
.s-breadcrumb-item a:hover{color:#000 !important;}

/* أزرار «أضف للسلة» في منتجات السلة المتعلقة */
.s-basket-gap-card-actions .s-basket-gap-card-btn salla-button .s-button-btn{
  color:#4a3f35 !important;
  border-color:#4a3f35 !important;
}
.s-basket-gap-card-actions .s-basket-gap-card-btn salla-button .s-button-btn:hover{
  background:#4a3f35 !important;
  color:#fff !important;
}


/* ===== SIP – آراء العملاء v2 ===== */
.s-block--testimonials .s-reviews-container{max-width:1200px!important;margin:0 auto!important;padding:0!important}
.s-block--testimonials .s-reviews-header-wrapper{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.s-block--testimonials .s-slider-block__title{display:none!important}
.s-block--testimonials .swiper{overflow:visible!important;opacity:1!important;visibility:visible!important;padding:0!important}
.s-block--testimonials .swiper-wrapper{transform:none!important;display:flex!important;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:4px 2px 18px;justify-content:flex-start}
.s-block--testimonials .swiper-wrapper::-webkit-scrollbar{display:none}
.s-block--testimonials .swiper-slide{flex:0 0 85%!important;width:85%!important;max-width:380px;margin:0!important;padding:0!important;height:auto!important;scroll-snap-align:start;opacity:1!important;transform:none!important}
.s-block--testimonials .swiper-slide.sip-empty{display:none!important}
@media(min-width:768px){
  .s-block--testimonials .swiper-wrapper{justify-content:center;overflow-x:visible;flex-wrap:wrap}
  .s-block--testimonials .swiper-slide{flex:0 0 360px!important;width:360px!important}
}
.s-block--testimonials .s-reviews-testimonial{background:#fff!important;border:1px solid #f1e4d8!important;border-radius:20px!important;padding:20px!important;box-shadow:0 6px 18px rgba(140,70,40,.07)!important;height:100%!important;min-height:0!important;display:flex!important;align-items:stretch!important;justify-content:flex-start!important;transform:none!important;margin:0!important}
.s-block--testimonials .s-reviews-testimonial__inner{width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;text-align:right!important;transform:none!important;margin:0!important}
.s-block--testimonials .s-reviews-testimonial__avatar{display:none!important}
.s-block--testimonials .s-reviews-testimonial__text{display:flex!important;flex-direction:column-reverse!important;justify-content:flex-end;width:100%!important;height:100%!important;opacity:1!important;margin:0!important}
.s-block--testimonials .s-reviews-testimonial__text p{display:-webkit-box!important;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:10px 0 0!important;font-size:15px!important;line-height:1.85!important;color:#3b2a24!important;opacity:1!important;flex:1}
.s-block--testimonials .s-reviews-testimonial__text p::before{content:"“";display:block;font-size:40px;line-height:.55;color:#e2533b;margin-bottom:4px;font-family:Georgia,serif}
.s-block--testimonials .s-reviews-testimonial__name_wrapper{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;flex-wrap:wrap;width:100%;gap:8px;padding-bottom:12px;border-bottom:1px dashed #f1e4d8}
.s-block--testimonials .s-reviews-testimonial__info{display:flex;align-items:center;gap:6px}
.s-block--testimonials .s-reviews-testimonial__info h2{font-size:14px!important;font-weight:700!important;color:#3b2a24!important;margin:0!important}
.s-block--testimonials .s-reviews-testimonial__info::after{content:"✓ مشتري موثّق";font-size:11px;color:#2f8f6a;background:#e8f5ef;padding:2px 8px;border-radius:20px;white-space:nowrap}
.s-block--testimonials .s-reviews-testimonial__rating{display:block!important;margin:0!important;order:-1;flex-basis:100%}
.s-block--testimonials .s-rating-stars-btn-star{color:#f5a524!important}
div:has(> .product-sku){display:none !important;}

/* ===== Sip – آراء العملاء v3 (بطاقة طوبية فاخرة) ===== */
html body section.s-block--testimonials .swiper-slide{height:auto!important;display:flex!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial{background-color:#B8361C!important;background-image:linear-gradient(145deg,#A92F17 0%,#D4482A 100%)!important;opacity:1!important;border:0!important;border-radius:24px!important;box-shadow:0 18px 40px -18px rgba(140,40,20,.6)!important;position:relative!important;width:100%!important;padding:24px 24px 26px!important;display:flex!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial *{color:#FFF6EC!important;border-color:rgba(255,246,236,.28)!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__inner,html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__text{width:100%!important;height:100%!important;justify-content:flex-end!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__rating{display:flex!important;justify-content:flex-start!important;margin-bottom:10px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-rating-stars-wrapper{gap:4px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-rating-stars-btn-star svg{width:26px!important;height:26px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-rating-stars-selected svg,html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-rating-stars-selected path{fill:#FFD98A!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__info{display:flex!important;align-items:center!important;gap:10px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__info::after{background:rgba(255,246,236,.16)!important;color:#FFF6EC!important;border:1px solid rgba(255,246,236,.4)!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__name_wrapper{padding-bottom:16px!important;margin-bottom:16px!important;border-bottom:1px solid rgba(255,246,236,.22)!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__name_wrapper h2{font-size:0!important;display:inline-flex!important;align-items:center;gap:6px}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__name_wrapper h2::before{content:"";order:2;width:18px;height:18px;background:#FFD98A;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6.2' r='4.6'/%3E%3Ccircle cx='17.5' cy='10.2' r='4.6'/%3E%3Ccircle cx='15.4' cy='16.7' r='4.6'/%3E%3Ccircle cx='8.6' cy='16.7' r='4.6'/%3E%3Ccircle cx='6.5' cy='10.2' r='4.6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='6.2' r='4.6'/%3E%3Ccircle cx='17.5' cy='10.2' r='4.6'/%3E%3Ccircle cx='15.4' cy='16.7' r='4.6'/%3E%3Ccircle cx='8.6' cy='16.7' r='4.6'/%3E%3Ccircle cx='6.5' cy='10.2' r='4.6'/%3E%3C/svg%3E") center/contain no-repeat}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__name_wrapper h2::after{content:"عميل Sip";font-size:1rem;font-weight:700;color:#FFF6EC}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__text p{margin:0!important;text-align:right!important;font-size:1rem!important;line-height:1.6!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__text p::before{content:"”"!important;position:absolute!important;left:22px!important;top:10px!important;width:auto!important;font-size:64px!important;line-height:1!important;font-family:Georgia,serif!important;color:rgba(255,217,138,.45)!important}

/* الجوال: أصغر 30% */
@media (max-width:767px){
html body section.s-block--testimonials.s-block--testimonials .s-reviews-container{padding:0!important}
html body section.s-block--testimonials.s-block--testimonials .s-reviews-header-wrapper{padding:0 24px!important}
html body section.s-block--testimonials.s-block--testimonials div.swiper.s-slider-container{padding:0!important}
html body section.s-block--testimonials.s-block--testimonials .swiper-wrapper{padding:4px 24px 18px 0!important;scroll-padding-right:24px;box-sizing:border-box!important;width:100%!important}
html body section.s-block--testimonials .s-reviews-header{margin:0!important}
html body section.s-block--testimonials .swiper-slide:not(.sip-empty){flex:0 0 62%!important;width:62%!important;max-width:266px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial{padding:14px 14px 16px!important;border-radius:18px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-rating-stars-btn-star svg{width:16px!important;height:16px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-rating-stars-wrapper{gap:2px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__rating{margin-bottom:6px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__name_wrapper{padding-bottom:10px!important;margin-bottom:10px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__name_wrapper h2::before{width:13px;height:13px}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__name_wrapper h2::after{font-size:.75rem}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__info{gap:6px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__info::after{font-size:.6rem!important;padding:2px 6px!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__text p{font-size:.75rem!important;line-height:1.6!important}
html body section.s-block--testimonials .swiper-slide .s-reviews-testimonial .s-reviews-testimonial__text p::before{font-size:44px!important;left:14px!important;top:6px!important}
}

/* ===== Sip – منتجات مشابهة (صفحة المنتج) ===== */
.s-block--bundle-similar-products .product-entry__image{aspect-ratio:1/1!important;height:auto!important;max-height:none!important;overflow:hidden!important;border-radius:16px!important}
.s-block--bundle-similar-products .product-entry__image a,.s-block--bundle-similar-products .product-entry__image img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.s-block--bundle-similar-products .product-entry{height:auto!important}
@media (max-width:767px){
.s-block--bundle-similar-products .s-products-slider-card.swiper-slide{width:calc(50vw - 26px)!important;max-width:200px!important}
.s-block--bundle-similar-products .product-entry{padding:8px!important}
.s-block--bundle-similar-products .product-entry__title{font-size:.8rem!important;line-height:1.4!important}
.s-block--bundle-similar-products .f_btn-container{gap:6px!important;padding:0!important}
.s-block--bundle-similar-products .btn--add-to-cart{flex:1 1 auto!important;min-width:0!important}
.s-block--bundle-similar-products .btn--add-to-cart .s-button-text{font-size:.75rem!important}
.s-block--bundle-similar-products .btn--wishlist,.s-block--bundle-similar-products salla-button.btn--wishlist button{width:36px!important;height:36px!important;flex:0 0 36px!important}
}

/* «عرض الكل» في سلايدرات المنتجات: نص بني داكن */
html body .s-slider-block__display-all,html body .s-slider-block__display-all *{color:#4a3f35!important;fill:#4a3f35!important}