/* لاديرا - هوية قاعة المساء: عنابي داكن، عاجي، ذهبي. تنطبق على كل صفحات المتجر */
:root,html:root{--ld-bg:#170A0E;--ld-band:#591215;--ld-well:#221016;--ld-plate:#F1E8DD;--ld-ink:#F4ECE2;--ld-mute:#BFA99F;--ld-line:rgba(244,236,226,.16);--ld-gold:#D1B07A;--ld-gold2:#E3C893;--ld-rose:#EDBDB1;--ld-night:#0F0608;--color-primary:#D1B07A!important;--color-primary-dark:#B8945A!important;--color-primary-light:#E3C893!important;--color-primary-reverse:#0F0608!important}
html,body{background:#170A0E!important}
body{color:#F4ECE2}
::selection{background:#D1B07A;color:#0F0608}
:where(h1,h2,h3,h4,h5,h6){color:#F4ECE2}

/* الهيدر والفوتر */
.kayan-header{background:#170A0E!important;box-shadow:none!important;border-bottom:1px solid rgba(209,176,122,.32)!important}
.kayan-header .container{background:transparent!important}
.kayan-header a,.kayan-header nav{text-shadow:none!important}
img.ld-lite{filter:grayscale(1) invert(1) brightness(1.08) sepia(.16)!important;mix-blend-mode:screen}
footer{background:#0F0608!important;color:#F4ECE2;border-top:1px solid rgba(209,176,122,.28)}

/* أسطح وألوان الثيم */
.bg-white,.bg-gray-50,.bg-gray-100,.bg-slate-50,.bg-neutral-50,.bg-stone-50,.bg-light{background-color:#221016!important}
.bg-gray-200,.bg-slate-100,.bg-neutral-100{background-color:#2C151D!important}
.text-black,.text-dark,.text-gray-900,.text-gray-800,.text-gray-700,.text-slate-900,.text-slate-800,.text-neutral-900,.text-neutral-800{color:#F4ECE2!important}
.text-gray-600,.text-gray-500,.text-gray-400,.text-slate-600,.text-slate-500,.text-neutral-600,.text-neutral-500{color:#BFA99F!important}
.border-gray-100,.border-gray-200,.border-gray-300,.border-slate-200,.border-neutral-200,.border-light{border-color:rgba(244,236,226,.16)!important}
.divide-gray-100>*+*,.divide-gray-200>*+*{border-color:rgba(244,236,226,.16)!important}
.bg-primary .text-white,.bg-primary.text-white{color:#0F0608!important}

/* الحقول */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea,.s-form-control{background-color:rgba(244,236,226,.05)!important;color:#F4ECE2!important;border-color:rgba(244,236,226,.26)!important}
input::placeholder,textarea::placeholder{color:rgba(244,236,226,.5)!important}
select option{background:#221016;color:#F4ECE2}

/* الأزرار: الذهبي للشراء */
.s-button-primary,.s-button-solid.s-button-primary,.btn--primary,.s-add-product-button-main .s-button-element{background:#D1B07A!important;border-color:#D1B07A!important;color:#0F0608!important;font-weight:700!important}
.s-button-primary:hover,.btn--primary:hover,.s-add-product-button-main .s-button-element:hover{background:#E3C893!important;border-color:#E3C893!important}
.s-button-primary-outline,.s-button-outline,.btn--outline{background:transparent!important;color:#F4ECE2!important;border-color:rgba(244,236,226,.45)!important}
.s-button-primary-outline:hover,.s-button-outline:hover,.btn--outline:hover{border-color:#D1B07A!important;color:#E3C893!important}

/* بطاقات المنتجات */
.s-product-card-entry{background:transparent!important;border-color:transparent!important;box-shadow:none!important;border-radius:0!important}
.s-product-card-image{background:#F1E8DD!important;border-radius:0!important;isolation:isolate}
.s-product-card-image img{mix-blend-mode:multiply}
.s-product-card-content-title,.s-product-card-content-title a{color:#F4ECE2!important}
.s-product-card-content-subtitle{color:#BFA99F!important}
.s-product-card-price,.s-product-card-sale-price h4,.s-product-card-sale-price .s-product-card-price-value{color:#F4ECE2!important;font-weight:700!important}
.s-product-card-sale-price span{color:#BFA99F!important}
.s-product-card-promotion-title{background:#D1B07A!important;color:#0F0608!important;border-radius:0!important}
.s-product-card-out-badge{background:rgba(15,6,8,.84)!important;color:#F4ECE2!important}
.s-slider-block__title-right h2{color:#F4ECE2!important}
.s-slider-block__display-all{color:#D1B07A!important;white-space:nowrap!important}

/* صفحة المنتج */
.s-breadcrumb-wrapper,.s-breadcrumb-item,.s-breadcrumb-item a{color:#BFA99F!important}
.s-product-options-option-label,.s-product-options-option-label *{color:#F4ECE2!important}
.s-product-options-wrapper,.s-product-options-option-container{border-color:rgba(244,236,226,.16)!important}
.s-product-options-grid-mode-span{background:transparent!important;color:#F4ECE2!important;border-color:rgba(244,236,226,.32)!important}
.s-product-options-grid-mode input:checked+.s-product-options-grid-mode-span{background:#D1B07A!important;color:#0F0608!important;border-color:#D1B07A!important}
.s-product-options-disabled{opacity:.45}
.s-quantity-input-container{background:transparent!important;border-color:rgba(244,236,226,.3)!important}
.s-quantity-input-button,.s-quantity-input-input{background:transparent!important;color:#F4ECE2!important}

/* عناصر ثيم كيان (من الكود السابق بعد تعديلها للهوية الجديدة) */
.kayan-sticky{background:#170A0E!important}
.navbar{background:transparent!important;box-shadow:none!important}
.navbar a{color:#F4ECE2}
.kayan-card{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.kayan-card h4,.kayan-card h4 a{color:#F4ECE2!important}
.kayan-card-button{background:#170A0E!important;color:#D1B07A!important;border:1px solid rgba(209,176,122,.55)!important}
.kayan-card-button:hover{background:#D1B07A!important;color:#0F0608!important}
.s-product-card-price{color:#F4ECE2!important}
.s-block--fixed-banner{padding-top:0!important}
.s-block--fixed-banner .container{max-width:100%!important;padding-right:0!important;padding-left:0!important}
.banner--fixed img{border-radius:0!important}
body::after{display:none!important}
@media (max-width:649px){.kayan-video{height:300px!important}}
@media (max-width:399px){.kayan-card h4{font-size:1rem!important;line-height:2em!important;max-height:4em!important;overflow:hidden!important}.s-product-card-price{font-size:.75rem!important}}

/* حركة وفخامة: هيدر زجاجي، خط ذهبي تحت روابط القائمة، تكبير هادئ لصور المنتجات */
.kayan-header,.kayan-sticky{transition:background-color .35s ease}
html.ld-scrolled .kayan-header,html.ld-scrolled .kayan-sticky{background:rgba(23,10,14,.8)!important;-webkit-backdrop-filter:saturate(1.3) blur(16px);backdrop-filter:saturate(1.3) blur(16px)}
.navbar a{position:relative;transition:color .25s}
.navbar a::after{content:"";position:absolute;inset-inline:0;bottom:-6px;height:1px;background:#D1B07A;transform:scaleX(0);transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.navbar a:hover{color:#E3C893!important}
.navbar a:hover::after{transform:scaleX(1)}
.s-product-card-image img,.kayan-card img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.s-product-card-entry:hover .s-product-card-image img{transform:scale(1.05)}
.kayan-card:hover img{transform:scale(1.04)}
html.ld-anim .ld-rise{opacity:0;transform:translateY(22px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
html.ld-anim .ld-rise.is-in{opacity:1;transform:none}

/* صفحة المنتج: سطر الثقة تحت زر السلة، وشريط شراء ثابت بالجوال */
.ld-pdp-trust{list-style:none;margin:16px 0 0;padding:14px 0 0;border-top:1px solid rgba(244,236,226,.16);display:grid;gap:10px;font-size:14.5px;line-height:1.5;color:#F4ECE2}
.ld-pdp-trust li{display:flex;align-items:center;gap:10px}
.ld-pdp-trust svg{flex:none;color:#D1B07A}
.ld-pdp-trust a{color:#E3C893;border-bottom:1px solid currentColor}
.ld-sticky-atc{position:fixed;inset-inline:0;bottom:0;z-index:60;display:none;align-items:center;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(15,6,8,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid rgba(209,176,122,.35);transform:translateY(110%);transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.ld-sticky-atc.is-on{transform:none}
.ld-sticky-atc__n{flex:1;min-width:0;font-size:14px;color:#F4ECE2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ld-sticky-atc button{flex:none;min-height:46px;padding:0 22px;border:0;border-radius:2px;background:#D1B07A;color:#0F0608;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
@media (max-width:767px){.ld-sticky-atc{display:flex}}
@media (prefers-reduced-motion:reduce){html.ld-anim .ld-rise{opacity:1;transform:none}.ld-sticky-atc{transition:none}}
/* السلة: خيارات المقاس على خلفية داكنة حتى تظهر المقاسات */
salla-product-options.s-product-options-wrapper,.cart-item salla-product-options{background:transparent!important}
/* أزرار بطاقات المنتجات: الغلاف بلا تعبئة، والزر الداخلي بإطار ذهبي */
.s-button-element.s-button-fill-none{background:transparent!important;border-color:transparent!important;box-shadow:none!important;padding:0!important;height:auto!important;min-height:0!important}
.kayan-card-button.add-to-cart-button{background:transparent!important;border:1px solid rgba(209,176,122,.6)!important;color:#F4ECE2!important;transition:background .25s,color .25s,border-color .25s}
.kayan-card-button.add-to-cart-button:hover{background:#D1B07A!important;border-color:#D1B07A!important;color:#0F0608!important}
/* ===== تبسيط المتجر (minimal) ===== */
/* بانر تحميل التطبيق ومفتاح الوضع الفاتح */
salla-app-install-alert{display:none!important}
.kayan-header a:has(> .sicon-brightness-low),.kayan-header .sicon-brightness-low{display:none!important}
/* بدون ظهور تدريجي للعناصر أثناء التمرير */
[data-aos]{opacity:1!important;transform:none!important;transition-property:none!important}
html.ld-anim .ld-rise{opacity:1!important;transform:none!important;animation:none!important;transition:none!important}
/* بطاقات المنتجات: صورة واسم وسعر فقط */
custom-salla-product-card salla-add-product-button,custom-salla-product-card .btn--wishlist,.s-product-card-rating,.s-product-card-wishlist-btn{display:none!important}
custom-salla-product-card .product-name{font-weight:400!important;font-size:14.5px!important;line-height:1.6!important}
custom-salla-product-card .px-6{padding-inline:4px!important}
custom-salla-product-card .s-product-card-sale-price{display:flex!important;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:2px 8px}
custom-salla-product-card .s-product-card-sale-price h4{font-size:15px!important}
/* صفحات الأقسام */
.s-block--testimonials{display:none!important}
body.product-index h1{font-weight:400!important;font-size:22px!important}
/* صفحة المنتج */
salla-gifting,salla-installment{display:none!important}
body.product-single a[href*="/tag-"]{display:none!important}
body.product-single div:has(> div > .sicon-barcode){display:none!important}
body.product-single h1{font-weight:400!important;font-size:clamp(20px,2vw,28px)!important;line-height:1.5!important}
body.product-single .swiper-pagination-bullet{width:6px!important;height:6px!important;border-radius:50%!important;background:rgba(244,236,226,.35)!important;opacity:1!important}
body.product-single .swiper-pagination-bullet-active{background:#F4ECE2!important}
/* واتساب العائم وزر الرجوع للأعلى */
a[href*="/whatsapp/send"].fixed{background:#170A0E!important;border:1px solid rgba(244,236,226,.32)!important;width:46px!important;height:46px!important;filter:none!important;box-shadow:none!important}
.scroll-top{background:rgba(23,10,14,.78)!important;border:1px solid rgba(244,236,226,.3);width:40px!important;height:40px!important;box-shadow:none!important}
/* الفوتر */
footer.kayan-footer h5{font-size:15px!important;font-weight:500!important;margin-bottom:14px!important}
footer.kayan-footer a.text-xl{font-size:15px!important}
footer.kayan-footer ul.flex-col{gap:12px!important}
footer.kayan-footer .s-contacts-item{font-size:14px!important}
footer.kayan-footer a.s-contacts-item[href^="tel:"]{display:none!important}
@media (max-width:767px){
nav.breadcrumbs{display:none!important}
body.product-single .details-slider .s-slider-thumbs{display:none!important}
.scroll-top{display:none!important}
}
@media (min-width:768px){
body.product-single .swiper-pagination{display:none!important}
nav.breadcrumbs{font-size:13px!important;opacity:.75}
}
/* الفوتر: مسافات أقل وأيقونات أصغر */
footer.kayan-footer .container > div > div{margin-bottom:18px!important;padding-bottom:18px!important}
footer.kayan-footer .s-social-icon svg{width:18px!important;height:18px!important}
footer.kayan-footer .kayan-copyright{font-size:13px!important;opacity:.7}
/* صفحة المنتج: بدون شريط المشاركة والسعر المكرر */
body.product-single .custom-bar{display:none!important}
body.product-single section.flex:has(> .center-between > .form-label):not(.sticky-product-bar){display:none!important}
/* ===== تبسيط أعمق: نفس الهيدر والفوتر في كل الصفحات ===== */
.kayan-header .w-24{width:150px}
.kayan-header .w-24 img{max-height:62px;object-fit:contain}
footer,footer.kayan-footer{background:#0F0608!important;border-top:1px solid rgba(244,236,226,.08)!important}
footer.kayan-footer .s-payments-list img{filter:grayscale(1)!important;opacity:.8}
/* عداد السلة يختفي والسلة فاضية */
.s-cart-summary-count.ld-zero{display:none!important}
/* اسم المنتج سطرين كاملين والأسعار على خط واحد */
custom-salla-product-card .product-name{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden!important;height:auto!important;max-height:none!important;min-height:3.2em}
/* صفوف المنتجات تعرض المتوفر فقط */
.s-products-slider-card.swiper-slide:has(> custom-salla-product-card.s-product-card-out-of-stock){display:none!important}
/* صفحة المنتج: بدون فراغات من أقسام فاضية */
body.product-single salla-product-options.s-product-options-wrapper{margin-bottom:0!important;padding-bottom:0!important}
body.product-single .s-comments-product:not(:has(salla-comment-form > *)):not(:has(salla-reviews-summary > *)):not(:has(.s-comments-header > *)):not(:has(.s-comments-container > div:not(.s-comments-header) > *)){display:none!important}
body.product-single .s-block--bundle-similar-products:not(:has([component-name] > *)){display:none!important}
/* الفوتر بالجوال: كل شيء على محور واحد في الوسط */
@media (max-width:767px){
footer.kayan-footer{padding-inline:10px!important;padding-bottom:96px!important}
footer.kayan-footer div.flex.justify-center.items-center{text-align:center}
footer.kayan-footer salla-trust-badges{justify-content:center!important}
footer.kayan-footer salla-contacts{display:block!important}
footer.kayan-footer .s-contacts-list{align-items:center!important}
footer.kayan-footer .s-contacts-item{justify-content:center!important}
a[href*="/whatsapp/send"].fixed{transition:bottom .3s ease}
html:has(.ld-sticky-atc.is-on) a[href*="/whatsapp/send"].fixed{bottom:calc(86px + env(safe-area-inset-bottom,0px))!important}
}