/* مبخرة الأصالة - لمسة عصرية بنفس الهوية (بني / ذهبي / كريمي) */
:root{
  --asala-brown:#3a2417;
  --asala-brown-2:#534941;
  --asala-gold:#c9a24a;
  --asala-gold-soft:#f2e3bd;
  --asala-cream:#f7f1e6;
  --asala-shadow:0 10px 30px rgba(58,36,23,.10);
  --asala-shadow-h:0 18px 40px rgba(58,36,23,.18);
}
html{scroll-behavior:smooth}
::selection{background:var(--asala-gold);color:#fff}

/* الخلفية: كريمي دافي بدل الرمادي */
.app-inner{
  background:
    radial-gradient(1200px 500px at 100% 0%,rgba(201,162,74,.10),transparent 60%),
    radial-gradient(900px 500px at 0% 100%,rgba(58,36,23,.06),transparent 60%),
    var(--asala-cream) !important;
}

/* الهيدر: زجاجي شفاف مع خط ذهبي */
.store-header .main-nav-container,
.store-header .main-nav-container.fixed-pinned{
  background:rgba(247,241,230,.82) !important;
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid rgba(201,162,74,.35);
  box-shadow:0 4px 20px rgba(58,36,23,.06);
}
.store-header a{transition:color .2s}
.store-header a:hover{color:var(--asala-gold) !important}

/* بطاقات المنتجات */
.s-product-card-entry{
  border-radius:20px !important;
  overflow:hidden;
  border:1px solid rgba(201,162,74,.18);
  box-shadow:var(--asala-shadow);
  transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s,border-color .35s;
}
.s-product-card-entry:hover{
  transform:translateY(-6px);
  box-shadow:var(--asala-shadow-h);
  border-color:rgba(201,162,74,.55);
}
.s-product-card-entry img.s-product-card-image-cover{transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.s-product-card-entry:hover img.s-product-card-image-cover{transform:scale(1.06)}
.s-product-card-content-title a{color:var(--asala-brown) !important;font-weight:700}
.s-product-card-content-subtitle{color:#8a7a6a !important}
.s-product-card-price{color:var(--asala-brown) !important;font-weight:800 !important}
.s-product-card-promotion-title{
  border-radius:0 0 0 14px !important;
  background:linear-gradient(135deg,#8b1e1e,#b23a2a) !important;
  font-weight:700;letter-spacing:.2px;
}

/* الأزرار */
.s-button-primary,.s-button-solid,
.s-product-card-entry .s-button-element{
  border-radius:999px !important;
  background:var(--asala-brown) !important;
  color:var(--asala-gold-soft) !important;
  border:0 !important;
  transition:transform .2s,box-shadow .2s,background .2s;
}
.s-button-primary:hover,.s-button-solid:hover,
.s-product-card-entry .s-button-element:hover{
  background:#2a190f !important;
  box-shadow:0 8px 18px rgba(58,36,23,.25);
  transform:translateY(-1px);
}

/* عناوين الأقسام: بني مع زخرفة ذهبية */
section h2,.s-block__title h2,.personalized-shoppers-who-bought__title{
  color:var(--asala-brown) !important;
  font-weight:800 !important;
  position:relative;
}
.s-block--bundle-faq h2::after,
.personalized-shoppers-who-bought__title::after{
  content:"";display:block;width:64px;height:3px;margin:10px auto 0;border-radius:3px;
  background:linear-gradient(90deg,transparent,var(--asala-gold),transparent);
}

/* الأسئلة الشائعة */
.s-block--bundle-faq [class*="border"],
.s-block--bundle-faq details{
  border-radius:16px !important;
  border-color:rgba(201,162,74,.35) !important;
  background:#fffdf8 !important;
  transition:box-shadow .25s,border-color .25s;
}
.s-block--bundle-faq [class*="border"]:hover,
.s-block--bundle-faq details:hover{
  border-color:var(--asala-gold) !important;
  box-shadow:0 8px 20px rgba(58,36,23,.08);
}

/* حقل البحث */
.store-header input[type="search"],.store-header input[type="text"]{
  border-radius:999px !important;
  border:1px solid rgba(201,162,74,.35) !important;
  background:#fff !important;
}

/* الفوتر */
footer.store-footer{border-top:3px solid var(--asala-gold)}

/* شريط التمرير */
::-webkit-scrollbar{width:10px}
::-webkit-scrollbar-track{background:var(--asala-cream)}
::-webkit-scrollbar-thumb{background:var(--asala-brown-2);border-radius:10px;border:2px solid var(--asala-cream)}

/* حركة ظهور ناعمة للأقسام (تشتغل مع كود JS) */
.asala-reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.asala-reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .asala-reveal{opacity:1;transform:none;transition:none}
  .s-product-card-entry,.s-product-card-entry img{transition:none}
}

/* ===================== الفوتر ===================== */
footer.store-footer,
footer.store-footer .store-footer__inner,
footer.store-footer > div{
  background:linear-gradient(180deg,#3a2417 0%,#26180f 100%) !important;
  color:#e8dcc4 !important;
}
footer.store-footer h3{color:var(--asala-gold) !important;font-weight:800 !important;margin-bottom:14px}
footer.store-footer p,footer.store-footer span,footer.store-footer a,
footer.store-footer li,footer.store-footer .s-contacts-item,footer.store-footer salla-menu a{color:#e8dcc4 !important}
footer.store-footer a:hover{color:var(--asala-gold) !important}
footer.store-footer i,footer.store-footer .sicon-phone,footer.store-footer [class*="sicon-"]{color:var(--asala-gold) !important}
footer.store-footer .s-contacts-icon,
footer.store-footer .s-social-link{
  border:1px solid rgba(201,162,74,.5) !important;
  border-radius:50% !important;
  background:rgba(255,255,255,.04) !important;
  transition:transform .2s,background .2s;
}
footer.store-footer .s-social-link:hover,footer.store-footer .s-contacts-icon:hover{
  background:var(--asala-gold) !important;transform:translateY(-2px)
}
footer.store-footer .s-social-link:hover i{color:#3a2417 !important}
footer.store-footer > div:last-child{
  border-top:1px solid rgba(201,162,74,.25);
}
footer.store-footer salla-payments,footer.store-footer .s-payments-list,
footer.store-footer [class*="payment"]{
  background:#f7f1e6;border-radius:12px;padding:6px 10px
}
footer.store-footer img{filter:none}

/* ===================== صفحة المنتج ===================== */
.product-single h1{color:var(--asala-brown) !important;font-weight:800 !important;line-height:1.5}
.product-single .main-content .total-price{
  color:var(--asala-brown) !important;font-size:30px !important;font-weight:900 !important
}
.product-single .main-content .before-price{color:#a08f7d !important}
.product-single salla-slider.details-slider img,
.product-single .details-slider .swiper-slide{border-radius:18px !important;overflow:hidden}
.product-single .details-slider .swiper-slide-thumb-active,
.product-single .details-slider .thumbs-slider .swiper-slide-thumb-active img{
  outline:2px solid var(--asala-gold);outline-offset:2px;border-radius:14px
}
.product-single section.sticky-product-bar{
  background:#fffdf8 !important;border:1px solid rgba(201,162,74,.3);
  border-radius:20px !important;box-shadow:var(--asala-shadow)
}
.product-single salla-quantity-input{border-radius:999px !important;overflow:hidden;border-color:rgba(201,162,74,.4) !important}
.product-single .sticky-product-bar .s-button-element{border-radius:999px !important;min-height:48px;font-weight:800}
.product-single .sticky-product-bar .s-button-solid{background:var(--asala-brown) !important;color:var(--asala-gold-soft) !important}
.product-single .sticky-product-bar .s-button-outline{border-color:var(--asala-brown) !important;color:var(--asala-brown) !important}
.product-single .s-loyalty-points-banner-container{border-radius:14px !important;border:1px dashed var(--asala-gold) !important;background:#fdf7e8 !important}
.product-single salla-tabs .s-tabs-header{border-bottom:1px solid rgba(201,162,74,.35)}
.product-single salla-tabs .s-tabs-header > *{border-radius:14px 14px 0 0 !important}
.product-single salla-tabs .s-tabs-content,.product-single .product__description{line-height:2;font-size:15px;color:#3d3128}

.asala-coupon{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 20px 0;
  padding:10px 14px;border:1.5px dashed var(--asala-gold);border-radius:14px;
  background:linear-gradient(135deg,#fdf7e8,#f7efdb);color:var(--asala-brown);font-size:14px;font-weight:600
}
.asala-coupon-tag{background:var(--asala-brown);color:var(--asala-gold-soft);border-radius:8px;padding:3px 10px;font-weight:800;direction:ltr;letter-spacing:.5px}
.asala-coupon-copy{margin-inline-start:auto;background:none;border:1px solid var(--asala-brown);color:var(--asala-brown);border-radius:999px;padding:3px 14px;font-weight:700;cursor:pointer;font-family:inherit}
.asala-coupon-copy:hover{background:var(--asala-brown);color:var(--asala-gold-soft)}

.asala-wa-ask{
  display:flex;align-items:center;justify-content:center;gap:8px;margin-top:10px;
  padding:10px;border-radius:999px;border:1.5px solid #1fa855;color:#1a8a46 !important;
  font-weight:700;font-size:14px;transition:background .2s,color .2s
}
.asala-wa-ask:hover{background:#1fa855;color:#fff !important}

/* ===================== قائمة المنتجات ===================== */
.s-product-card-entry{display:flex !important;flex-direction:column}
.s-product-card-entry .s-product-card-content{flex:1;display:flex;flex-direction:column}
.s-product-card-entry .s-product-card-content-sub{margin-top:auto}
.s-product-card-content-subtitle{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.s-product-card-entry .s-product-card-content-footer salla-add-product-button,
.s-product-card-entry .s-product-card-content-footer .s-button-element{display:flex !important;width:100%}
.s-product-card-entry .s-product-card-content-footer .s-button-element{
  border-radius:999px !important;background:var(--asala-brown) !important;color:var(--asala-gold-soft) !important;font-weight:700;min-height:40px
}
salla-filters .s-filters-widget,salla-filters details{border-radius:14px !important;border-color:rgba(201,162,74,.3) !important;background:#fffdf8 !important}
select,.s-select{border-radius:999px !important}
@media (max-width:640px){
  .product-single .main-content .total-price{font-size:24px !important}
  /* زر أضف للسلة بعرض كامل في الجوال */
  .product-single .sticky-product-bar salla-add-product-button{flex:1 1 auto !important;width:100% !important;min-width:0;display:block !important}
  .product-single .sticky-product-bar salla-add-product-button salla-button,
  .product-single .sticky-product-bar salla-add-product-button .s-button-element,
  .product-single .sticky-product-bar salla-add-product-button button{width:100% !important;display:flex !important;justify-content:center}
}
footer.store-footer *{color:inherit}
footer.store-footer .text-gray-400,footer.store-footer .text-gray-500,footer.store-footer [class*="text-gray"]{color:#cdbfa6 !important}
footer.store-footer .s-social-link i,footer.store-footer .s-social-link svg,footer.store-footer .s-contacts-icon svg{color:var(--asala-gold) !important;fill:var(--asala-gold) !important;opacity:1 !important}
footer.store-footer .s-social-link img{filter:brightness(0) saturate(100%) invert(72%) sepia(42%) saturate(500%) hue-rotate(5deg)}

/* شريط الشحن المجاني في السلة: إظهار المسار الفاضي عشان النسبة تبان صح */
.bg-border-color{background:#e8dcc4 !important}
.progress-bg{background:linear-gradient(90deg,var(--asala-gold),var(--asala-brown)) !important}
salla-apple-pay-button,[class*="apple-pay"]{display:none !important}

/* الاسم التجاري للمؤسسة تحت رقم السجل التجاري في الفوتر */
salla-trust-badges:has(img[alt="السجل التجاري"]) .s-trust-badges-content::after{content:"مؤسسة مبخرة الاصاله التجارية";display:block;font-size:13px;font-weight:600;margin-top:4px;}

/* البنر الرئيسي: الارتفاع يتبع نسبة الصورة بدل ارتفاع الشاشة حتى لا تُقص */
@media (max-width:768px){.slider-banner-main-0{height:auto!important;aspect-ratio:856/830;}}
@media (min-width:769px){.slider-banner-main-0{height:auto!important;aspect-ratio:1600/724;}}