/* Add custom CSS styles below */
/* Atelier Soie — Raed Twig «تنسيق رائد رقم (1)» (1111114045). Source: config/design_system.json */

/* Brand colour: burgundy for prices and add-to-cart (store identity is also #6e1f2f) */
:root,html{--color-primary:#6E1F2F;--color-primary-reverse:#FFFFFF;}

/* Pure white page, header and product cards; silk tone for the top bar only */
body{background-color:#FFFFFF !important;color:#231f1e;}
.main-nav-container,.main-nav-container.fixed-pinned,.store-header{background-color:#FFFFFF !important;}
.top-navbar{background-color:#FDF6F8 !important;color:#6E1F2F !important;}

/* Section titles and footer in burgundy */
.s-block__title h2,.s-block__title .title,h2.section-title,.s-block__title h3{color:#6E1F2F !important;}
.store-footer,.store-footer__inner,footer.store-footer>div{background-color:#6E1F2F !important;color:#FFFFFF !important;}
.store-footer a,.store-footer h3,.store-footer h4,.store-footer p,.store-footer span,.store-footer i{color:#FFFFFF !important;}
.s-product-card-promotion-title,.s-product-card-promotion,.s-product-card-sale-price-badge{background-color:#6E1F2F !important;color:#FFFFFF !important;}

/* Add-to-cart toast: checkout button is shown again (the old rule hid #toast-submit).
   Free-shipping line uses the approved wording from config/store_rules.json */
salla-add-product-toast .s-add-product-toast__actions::before{content:"الشحن مجاني للطلبات من 120 ر.س بعد الخصم";display:block;width:100%;text-align:center;font-size:13px;font-weight:700;color:#6E1F2F;margin-bottom:6px;}
salla-add-product-toast .s-add-product-toast__actions{flex-wrap:wrap !important;}
salla-add-product-toast .s-add-product-toast__actions salla-button{flex:1 1 100% !important;width:100% !important;}

/* Speed: reserve space for the top announcement bar until it loads */
salla-advertisement:not(.hydrated){display:block;min-height:46px;}
@media (max-width:767px){salla-advertisement:not(.hydrated){min-height:60px;}}

/* Show full 'add to cart' text on mobile product cards */
@media (max-width:767px){.s-product-card-entry salla-add-product-button .s-button-btn{padding-inline:8px !important;}}

/* Prices in burgundy: product card price, sale price on discounted cards (struck-through price keeps theme grey) */
.s-product-card-price,.s-product-card-sale-price h4{color:#6E1F2F !important;}
/* Product page price (applies only if the product page body has the product-single class) */
body.product-single .gap-4.flex>p.font-bold.text-xl{color:#6E1F2F !important;}
/* Add-to-cart toast: price was touching the left edge (RTL end), give it room and the brand colour */
salla-add-product-toast .s-add-product-toast__price{padding-inline-end:10px;color:#6E1F2F !important;}

/* Quiet luxury (2026-12-02): top promo bar in footer burgundy, three phrases fading slowly in turn */
salla-advertisement .s-advertisement{background-color:#6E1F2F !important;color:#FFFFFF !important;}
salla-advertisement .s-advertisement-content{position:relative;min-height:46px;}
salla-advertisement .s-advertisement-content-main{font-size:0 !important;visibility:hidden;}
salla-advertisement .s-advertisement-content::before,
salla-advertisement .s-advertisement-content-main::before,
salla-advertisement .s-advertisement-content-main::after{visibility:visible;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-inline:44px;text-align:center;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:.2px;color:#FFFFFF;opacity:0;animation:soie-phrase 15s ease-in-out infinite;pointer-events:none;}
salla-advertisement .s-advertisement-content::before{content:"اجعل يومك أجمل... بلمسة عطرية هادئة";animation-delay:0s;}
salla-advertisement .s-advertisement-content-main::before{content:"استخدمي كود SOIE10 واحصلي على خصم 10% على أول طلب من 134 ر.س";animation-delay:5s;}
salla-advertisement .s-advertisement-content-main::after{content:"شحن مجاني للطلبات من 120 ر.س بعد الخصم";animation-delay:10s;}
@keyframes soie-phrase{0%{opacity:0;transform:translateY(3px);}5%,29%{opacity:1;transform:none;}34%,100%{opacity:0;transform:translateY(-3px);}}
@media (max-width:767px){salla-advertisement .s-advertisement-content{min-height:60px;}}
@media (prefers-reduced-motion:reduce){salla-advertisement .s-advertisement-content::before{animation:none;opacity:1;}salla-advertisement .s-advertisement-content-main::before,salla-advertisement .s-advertisement-content-main::after{animation:none;opacity:0;}}

/* Account icon: single dark line icon, no extra ring */
.s-user-menu-login-btn{border:0 !important;background:transparent !important;}
.s-user-menu-login-btn svg{fill:#231F1E !important;width:22px !important;height:22px !important;}

/* Product cards: hide the repeated «مختار بعناية» promotion label; keep add-to-cart buttons on one line */
.s-product-card-promotion-title{display:none !important;}
.s-product-card-entry{display:flex;flex-direction:column;}
/* 2026-12-02c: content no longer stretches (flex:0 0 auto) so the image takes the spare height (theme fit-height) instead of a 140px gap above add-to-cart. Backup: theme/raed_custom_backup_2026-12-02c.css */
.s-product-card-entry .s-product-card-content{display:flex;flex-direction:column;flex:0 0 auto;}
.s-product-card-entry .s-product-card-content-footer{margin-top:12px;}

/* Divider banner (1595323692): keep the real image ratio, the theme slot assumes 728x90 */
[component-id="1595323692"] img{aspect-ratio:1440/326;width:100%;height:auto !important;}

/* 2026-12-02 Discovery upgrade. Backup: theme/raed_custom_backup_2026-12-02b.css */
/* Quick-links bar (native «روابط سريعة» 47110679): slim text pills, swipeable on mobile */
[component-id="47110679"]{margin-top:12px !important;margin-bottom:4px !important;}
[component-id="47110679"] .s-slider-block__title{display:none !important;}
[component-id="47110679"] .swiper-slide{width:auto !important;padding-inline-end:8px;}
[component-id="47110679"] .slide--cat-entry{display:flex !important;flex-direction:row !important;align-items:center;justify-content:center;height:44px !important;min-height:44px;padding:0 18px !important;background:#FDF6F8 !important;border:1px solid rgba(110,31,47,.16) !important;border-radius:22px !important;box-shadow:none !important;transition:background-color .2s ease;}
[component-id="47110679"] .slide--cat-entry i{display:none !important;}
[component-id="47110679"] .slide--cat-entry h2{margin:0 !important;font-size:14px !important;font-weight:400 !important;color:#6E1F2F !important;white-space:nowrap;line-height:1;transition:color .2s ease;}
[component-id="47110679"] .slide--cat-entry:hover,[component-id="47110679"] .slide--cat-entry:focus-visible{background:#6E1F2F !important;}
[component-id="47110679"] .slide--cat-entry:hover h2,[component-id="47110679"] .slide--cat-entry:focus-visible h2{color:#FFFFFF !important;}
[component-id="47110679"] .slide--cat-entry:focus-visible{outline:2px solid #6E1F2F;outline-offset:2px;}

/* Native «عرض الكل» (category sections): move under the grid as a burgundy button */
section.s-block:has(> .s-block__title .s-block__display-all){display:flex;flex-direction:column;}
section.s-block:has(> .s-block__title .s-block__display-all) > .s-block__title{display:contents;}
section.s-block:has(> .s-block__title .s-block__display-all) .s-block__title .right-side{margin-bottom:16px;}
section.s-block:has(> .s-block__title .s-block__display-all) > salla-products-list{order:1;}
.s-block__title .s-block__display-all{order:2;align-self:center;display:inline-flex !important;align-items:center;gap:8px;min-height:44px;margin-top:20px;padding:10px 28px;background:#6E1F2F !important;color:#FFFFFF !important;border-radius:4px;font-size:14px !important;font-weight:700;opacity:1 !important;transition:opacity .2s ease;}
.s-block__title .s-block__display-all i{color:#FFFFFF !important;font-size:12px;}
.s-block__title .s-block__display-all:hover{opacity:.9 !important;}

/* Final CTA (1007301776, latest_products): show only its link to /latest-products, relabelled */
[component-id="1007301776"]{margin-top:24px !important;padding-top:32px;border-top:1px solid rgba(110,31,47,.12);}
[component-id="1007301776"] salla-products-list,[component-id="1007301776"] .s-block__title .right-side{display:none !important;}
[component-id="1007301776"] .s-block__display-all{font-size:0 !important;margin-top:0;padding:12px 32px;min-height:48px;}
[component-id="1007301776"] .s-block__display-all::before{content:"تصفح كامل تشكيلة المتجر";font-size:15px;}
[component-id="1007301776"] .s-block__display-all i{font-size:13px !important;}

/* Category pages on mobile: 44px touch targets for sort and filter */
@media (max-width:767px){#product-filter{min-height:44px;}.filters-trigger{min-width:44px;min-height:44px;display:inline-flex !important;align-items:center;justify-content:center;}}

/* 2026-12-03 Stock status (owner decision): «متوفر» when in stock, «نفد من المخزون» when out,
   «قريباً» for a bundle at zero while its missing item is being swapped. Raed has no setting for this.
   Bundles are detected by the «البكجات» breadcrumb (product page) and a name starting with «بكج» (cards).
   Backup: theme/raed_custom_backup_2026-12-03.css */
body.product-single .product-form .out-of-stock{display:block !important;opacity:1 !important;font-size:0 !important;min-height:28px;}
body.product-single .product-form .out-of-stock::before{font-size:15px;font-weight:700;line-height:28px;color:#6E1F2F;}
body.product-single .product-form:has(salla-add-product-button[product-status="sale"]) .out-of-stock::before{content:"متوفر";}
body.product-single .product-form:has(salla-add-product-button[product-status^="out"]) .out-of-stock::before{content:"نفد من المخزون";color:#231F1E;}
body.product-single:has(.container--breadcrumbs a[href*="c132147306"]) .product-form:has(salla-add-product-button[product-status^="out"]) .out-of-stock::before{content:"قريباً";color:#6E1F2F;}
/* 2026-12-03b: some bundles show another category in the breadcrumb (e.g. Majlis → «أناقة الإهداء»), so also detect a bundle by its main gallery image alt containing «بكج» */
body.product-single:has(.details-slider img[alt*="بكج"]) .product-form:has(salla-add-product-button[product-status^="out"]) .out-of-stock::before{content:"قريباً";color:#6E1F2F;}
.s-product-card-entry .s-product-card-content-sub{flex-wrap:wrap;}
.s-product-card-entry .s-product-card-content-sub::after{content:"متوفر";flex:1 0 100%;font-size:13px;font-weight:700;line-height:1.6;color:#6E1F2F;}
.s-product-card-entry.s-product-card-out-of-stock .s-product-card-content-sub::after{content:"نفد من المخزون";color:#231F1E;}
.s-product-card-entry.s-product-card-out-of-stock:has(img[alt^="بكج"]) .s-product-card-content-sub::after{content:"قريباً";color:#6E1F2F;}