/* Add custom CSS styles below */ 
/* الترتيب الجديد للفوتر */
/* نقل الصف الى فوق حقوق النشر */
/* 1. تحويل خلفية أسفل الفوتر إلى اللون الأبيض */
/* تقليل المسافات العمودية العامة داخل محتوى البطاقة */
/* تعديلا بطاقات خيارات المنتج */ 
/* 1. إلغاء أي هوامش سفلية من حاويات الخيارات */
.product-card .product-options,
.product-card salla-product-options,
.product-card salla-conditional-fields,
.product-card .s-product-options-option-container,
.product-card .s-product-options-option {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. إلغاء الهامش السفلي لمجموعة الألوان نفسها */
.product-card .s-product-options-colors-wrapper,
.product-card fieldset.s-product-options-colors-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. إلغاء الهامش السفلي لعناصر الراديو والألوان */
.product-card .s-product-options-colors-item {
    margin-bottom: 0 !important;
}

/* 4. إلغاء الهامش العلوي للسعر ورفعه للأعلى */
.product-card .product-card__price {
    margin-top: 2px !important;
    padding-top: 0 !important;
}
/* طرق الدفع بالتقسيط */
salla-installment {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.custom-logos-only-wrapper img {
  max-width: 70px;
  height: auto;
}


/* 1. إزالة المسافة السفليّة لقسم السعر */
.s-products-slider-card .product-card__price {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. إزالة المسافة العلويّة لجميع أنماط أزرار الإضافة إلى السلة */
.s-products-slider-card .product-card__buttons,
.s-products-slider-card .product-card__enhanced-mini-cart,
.s-products-slider-card .product-card__normal-cart {
    margin-top: 2px !important; /* مسافة صغيرة جداً وموحدة */
    padding-top: 0 !important;
}

/* 3. إلغاء التباعد الافتراضي لمنصة سلة على حاوية الأزرار المباشرة */
.s-products-slider-card .product-card__normal-cart.mt-2 {
    margin-top: 2px !important;
}
/* التعديلات السابقة بعد انطلاق المسابقة */
.footer-bottom {
    background-color: #ffffff !important;
}

/* 2. تغيير لون أيقونات التواصل الاجتماعي إلى الأخضر الفاخر */
salla-social .s-social-icon,
salla-social .s-social-icon svg,
salla-social .s-social-icon path {
    fill: #1B4D3E !important;
    color: #1B4D3E !important;
}

/* 3. تغيير لون نص الحقوق محفوظة ورابط المتجر */
.footer-rights,
.footer-rights p,
.footer-rights a {
    color: #1B4D3E !important;
}

/* تأثير تحويم ناعم للرابط (اختياري) */
.footer-rights a:hover {
    opacity: 0.8;
}
/* ضبط المسافة السفلية لأيقونات التواصل الاجتماعي بعد النقل */
salla-social.store-footer__social {
    margin-top: 10px !important;
    margin-bottom: 12px !important; /* مسافة تفصل الأيقونات عن نص الحقوق */
    display: flex !important;
    justify-content: center !important;
}

/* التأكد من تمركز نص الحقوق أسفل الأيقونات */
.footer-rights {
    display: block !important;
    text-align: center !important;
}
/* تواصل معنا و النشرة البريدية */
/* تنسيق الحاوية الرئيسية للصف */
.custom-info-links-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    background-color: transparent !important; /* خلفية شفافة */
    border: 1px solid rgba(212, 175, 55, 0.4); /* إطار باللون الذهبي */
    border-radius: 25px; /* زوايا منحنية بالكامل مثل الصورة */
    margin: 15px 0;
    box-sizing: border-box;
    direction: rtl;
}

/* تنسيق الروابط النصية */
.custom-info-links-row .info-link {
    color: #D4AF37 !important; /* اللون الذهبي */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    text-align: center;
    transition: opacity 0.3s ease;
}

.custom-info-links-row .info-link:hover {
    opacity: 0.8;
}

/* الفاصل الرأسي بين الرابطين */
.custom-info-links-row .info-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(212, 175, 55, 0.4); /* خط فاصل ذهبي شفاف */
    margin: 0 10px;
}
/* الحاوية الرئيسية المحيطة بالقسمين خلفية شفافة */
.custom-footer-newsletter-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: transparent !important; /* خلفية شفافة */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 20px 25px;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

/* 1. قسم النشرة البريدية */
.custom-newsletter-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.newsletter-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-icon svg {
    width: 32px;
    height: 32px;
}

.newsletter-text h3 {
    color: #D4AF37 !important;
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 4px 0;
}

.newsletter-text p {
    color: #D4AF37 !important;
    font-size: 11px;
    opacity: 0.8;
    margin: 0;
}

/* نموذج إدخال البريد */
.newsletter-form {
    display: flex;
    align-items: center;
    background: transparent !important;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    padding: 3px;
    max-width: 350px;
}

.newsletter-form input {
    background: transparent !important;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    flex: 1;
}

.newsletter-form input::placeholder {
    color: rgba(212, 175, 55, 0.5);
}

.newsletter-form button {
    background-color: #e0b268;
    color: #111111; /* لون النص داخل الزر ليصبح واضحاً */
    border: none;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background-color: #D4AF37;
}

/* 2. قسم أزرار التواصل */
selia-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

selia-contacts::before {
    content: "تواصل معنا";
    display: block;
    width: 100%;
    text-align: right;
    font-size: 13px;
    font-weight: bold;
    color: #D4AF37 !important;
    margin-bottom: 10px;
}

selia-contacts .enhanced_rounded_contacts {
    display: flex !important;
    gap: 8px !important;
}

selia-contacts .enhanced-contact-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 8px !important;
    min-width: 65px !important;
    height: 60px !important;
    background: transparent !important;
    text-decoration: none;
}

selia-contacts .enhanced-contact-item i {
    color: #D4AF37 !important;
    font-size: 18px !important;
    margin: 0 0 4px 0 !important;
}

selia-contacts .enhanced-contact-item span {
    color: #D4AF37 !important;
    font-size: 10px !important;
}

/* التجاوب مع شاشات الجوال */
@media (max-width: 768px) {
    .custom-footer-newsletter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form {
        max-width: 100%;
    }
    selia-contacts {
        align-items: center;
        margin-top: 15px;
    }
    selia-contacts::before {
        text-align: center;
    }
}
/* تنسيق الحاوية الرئيسية للصف */
.custom-info-links-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 100%;
    padding: 12px 20px;
    background-color: transparent !important; /* خلفية شفافة */
    border: 1px solid rgba(212, 175, 55, 0.4); /* إطار ذهبي */
    border-radius: 25px; /* زوايا منحنية بالكامل */
    margin-top: 15px; /* مسافة تفصل الصف عن القسم الذي فوقه */
    box-sizing: border-box;
    direction: rtl;
}

/* تنسيق الروابط النصية */
.custom-info-links-row .info-link {
    color: #D4AF37 !important; /* اللون الذهبي */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    text-align: center;
    transition: opacity 0.3s ease;
}

.custom-info-links-row .info-link:hover {
    opacity: 0.8;
}

/* الفاصل الرأسي بين الرابطين */
.custom-info-links-row .info-divider {
    width: 1px;
    height: 20px;
    background-color: rgba(212, 175, 55, 0.4); /* خط فاصل ذهبي */
    margin: 0 10px;
}

/* 1. ضبط الحاوية الرئيسية كشبكة من 3 أعمدة بدون خلفية */
ul.footer-list.store-links-items {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    direction: rtl !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* 2. ضبط الفواصل والحدود بين العناصر */
ul.footer-list.store-links-items > li {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    padding: 10px 5px !important;
}

ul.footer-list.store-links-items > li:not(:nth-child(3n))::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 20% !important;
    height: 60% !important;
    width: 1px !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* 3. تنسيق موحد لجميع الروابط والأيقونات */
ul.footer-list.store-links-items .store-footer__menu-link {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
    color: #ffffff !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

ul.footer-list.store-links-items .store-footer__menu-link::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    background-color: #D4AF37; /* اللون الذهبي للأيقونات */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* 4. تعيين الأيقونات المخصصة لكل رابط */
.store-footer__menu-link[href*="perfume"]::before,
.store-footer__menu-link[href*="فروع-رسيس"]::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/></svg>');
}

.store-footer__menu-link[href*="الاتصال"]::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

.store-footer__menu-link[href*="للشكاوي"]::before,
.store-footer__menu-link[href*="الاستفسارات"]::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 7V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h11c.55 0 1-.45 1-1z"/></svg>');
}

.store-footer__menu-link[href*="الشحن"]::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2.5H17V9.5h2.5zm-1.5 9c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/></svg>');
}

.store-footer__menu-link[href*="الخصوصية"]::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-5.45 9-12V5l-9-4z"/></svg>');
}

.store-footer__menu-link[href*="الاسترجاع"]::before {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/></svg>');
}

/* إلغاء أي أيقونة جافاسكريبت قديمة إن وجدت */
.custom-footer-icon { display: none !important; }
/* تنسيق الحاوية لتجمع جميع العناصر في صف واحد بحجم متساوي */
.store-footer__apps-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important; /* المسافة بين العناصر */
    flex-wrap: nowrap !important;
    width: 100% !important;
}

/* توحيد أحجام العناصر الأربعة داخل الصف */
.store-footer__apps-inner > * {
    flex: 1 1 0% !important; /* توزيع المساحة بالتساوي تماماً */
    width: 25% !important; /* ضمان العرض المتساوي للعناصر الأربعة */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

/* تصغير حجم نص "تحميل تطبيق الجوال" */
.store-footer__apps-inner h3 {
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 12px !important; /* يمكنك تعديل الحجم (مثلاً 11px أو 13px) حسب Rغبتك */
    font-weight: normal !important; /* اختياري: لتقليل سمك الخط إذا لزم الأمر */
}

/* ضبط قائمة أزرار التطبيقات لتبقى متراصفة وموسطة داخل مساحتها */
.store-footer__apps-list {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    width: 100% !important;
}
/* تكبير حجم صور أزرار التطبيقات (App Store & Google Play) */
.store-footer__apps-list .store-footer__app-badge img {
    width: 60px !important;  /* القيمة الأصلية كانت 135px - يمكنك زيادتها حسب الرغبة */
    height: auto !important;   /* الحفاظ على تناسق أبعاد الصورة */
    max-width: none !important;
}

/* ضبط المسافات بين الأزرار عند التكبير */
.store-footer__apps-list {
    gap: 10px !important;
}

/* ضبط زر اللغة ليحافظ على شكله الموسط داخل مساحته */
.store-footer__language-btn {
    margin: 0 !important;
    white-space: nowrap !important;
    width: 100% !important;
}

/* تهيئة حاوية الصورة لضمان دقة التموضع */
#product-1832133765 .product-card__image {
    position: relative !important;
}

/* تنسيق وسم "أوتلت" الدائري الأحمر */
.outlet-badge {
    position: absolute !important;
    top: 6px; /* التصميم المحسن: مرفوع للأعلى */
    right: 12px; /* لتغييره لليسار، استبدله بـ left: 12px; */
    background-color: #8D1B1B; /* اللون الأحمر الفاخر المطابق للهوية */
    color: #ffffff !important;
    font-size: 10px !important; /* حجم خط متناسق لضمان وضوح النص */
    font-weight: bold !important;
    width: 38px !important; /* التصميم المحسن: قطر الدائرة أصغر */
    height: 38px !important; /* التصميم المحسن: قطر الدائرة أصغر */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important; /* لجعلها دائرة مثالية */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* ظل ناعم */
    z-index: 99 !important; /* لضمان ظهورها فوق الصورة والأزرار */
    pointer-events: none; /* لتجنب إعاقة النقر على رابط المنتج */
}
/* ====== HEADER ====== */
/*.main-nav-container .sicon-cart:before {opacity: 0;}
.main-nav-container .sicon-cart {background-image: url(https://nussuq-dev.com/beluar/beluar-2.svg);background-repeat: no-repeat;background-size: contain;background-position: center;height:1.6rem;}
body.trans_header.slider_has_overlay .main-nav-container:not(.fixed-header) .sicon-cart {background-image: url(https://nussuq-dev.com/beluar/beluar-1.svg);}*/
.store-header .sicon-cart:before {content: "\ef36";}

.s-cart-summary-count:where([dir="rtl"], [dir="rtl"] *) {right: -1rem;}
.s-cart-summary-count:where([dir="ltr"], [dir="ltr"] *) {left: -1rem;}

@media (min-width:768px){
.header-btn__icon.icon {margin:0 !important}
}

@media (max-width: 991px) {
.header-btn__icon, .sicon-menu.text-2xl {font-size: 1.3rem;}
}


/* ====== PRODUCTS ====== */
.product-card .s-product-options-thumbnails-wrapper {flex-wrap: nowrap;}
.product-card__normal-cart button {background: #000;color: #fff;border-radius: 0;}
.product-card__normal-cart button i {display:none}
p.product-card__subtitle {min-height: 40px;}

@media (min-width:1024px){
.product-card__buttons {justify-content:flex-start}
.product-card--rounded .product-card__image {position: static;}
.quickview-btn {position: absolute !important;bottom: 6px;transition: 0;z-index: 9;right: 1rem;display:none}
html[lang="en"] .quickview-btn {left: 1rem;}
.quickview-btn button, .wishlist button {background:none !important; box-shadow:none !important}
.quickview-btn button i {color:#fff !important}
.wishlist {display:none}
}

@media (max-width:768px){
.product-card__actions {position: unset;}
.product-card__actions .wishlist {position: absolute; top: 10px; bottom: auto; right:10px; left:auto}
.product-card__actions .quickview-btn {position: absolute;top: auto;bottom: 0;z-index: 1; right:10px; left:auto}
html[lang="en"] .product-card__actions .quickview-btn {left:10px; right:auto}
.product-card__actions .quickview-btn button {color:#fff; background:none; border-radius:0; height: 25px;}
.product-card__image {position: static;}
.product-card__actions .quickview-btn button:hover {background: none;}
}

/* ======== SPECIA PRODUCTS ======= */
@media (max-width: 768px) {
.special-product .product-card__normal-cart button {background-color:var(--product-enhanced-btn-bg)!important}
.product-card--special .product-card__content {padding:0 !important}
.special-product .quickview-btn button {height: 35px;}
}

/* ====== FOOTER ====== */
.custom-footer-column h2 {font-size: 1.25rem;}
.custom-footer-column .footer-list li a {line-height: 1.3;font-size: .95rem;}
#footer-social-icons .rounded_contacts a {opacity:1 !important}
.rounded_contacts a i {font-size:1.1rem}
.custom-footer-column .footer-list li a:hover, .custom-footer-column .footer-list li a:focus {color:#ccc}

@media (max-width:768px){
.custom-footer-column {text-align:right}
html[lang="en"] .custom-footer-column {text-align:left}
.vat-section {justify-content:center; gap:1rem}
}


/* ====== PRODUCT PAGE - RATING ====== */
#custom-mini-rating {background: transparent;border-radius: 0;padding: 0 8px;margin-bottom: 16px;border: none;box-shadow: none;}
#custom-mini-rating > div {justify-content: flex-start; gap:6px}
#custom-mini-rating > div > div {flex-direction: row !important; gap: 0;}
#custom-mini-rating > div span {font-size: 14px; color: #000;}

#custom-detailed-rating {background: transparent;border-radius: 0;padding: 14px;margin-bottom: 0;text-align: center;box-shadow: none;border: none;margin-top: 2rem;}
#custom-detailed-rating > div > div {font-size: 48px;font-weight: 400;color: #000;margin-bottom: 15px;}
#custom-detailed-rating > div > div > div > div {background: #f1c727 !important;}
div#custom-detailed-rating {opacity: 1 !important;}

salla-reviews-summary .s-reviews-summary-header-section.s-reviews-summary-recommendation-only {gap:10px}
.s-reviews-summary-recommendation-percentage, .s-reviews-summary-header-section.s-reviews-summary-recommendation-only p {font-size:1rem;}

@media (max-width:768px){
#custom-detailed-rating {padding:10px !important; margin-bottom:2rem !important}
}

.product-price.product-price-bottom {
    display: none;
}

/* === تفعيل وتعطيل العرض ====== */

#custom-product-recommendation {display:none}


////////////////شات المساعد الذكي 
.ai-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 340px;
    height: 420px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 2147483647;
    overflow: hidden;
    display: none;
    flex-direction: column;
    animation: popIn 0.25s ease;
    /* font-family: 'Tajawal', sans-serif; */
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* الهيدر */
.ai-header {
    background: linear-gradient(135deg,#1E3A2F,#2B4F41);
    color: #fff;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* جسم الشات */
.ai-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f6f7f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* الرسائل */
.msg {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 75%;
    font-size: 14px;
}

.user {
    background: #1E3A2F;
    color: #fff;
    align-self: flex-end;
}

.bot {
    background: #eaeaea;
    color: #333;
    align-self: flex-start;
}

/* الإدخال */
.ai-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.ai-input input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}

.ai-input button {
    background: #1E3A2F;
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
}
/////////الصفحة التعريفية الخاصة بالفروع 

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #1E3A2F;
    --primary-green-light: #2B4F41;
    --accent-gold: #D4AF37;
    --accent-gold-light: #F5D742;
    --bg-card: #FFFFFF;
    --text-dark: #2C3E50;
    --shadow-sm: 0 10px 30px -10px rgba(0,0,0,0.1);
    --shadow-md: 0 20px 40px -15px rgba(0,0,0,0.15);
    --shadow-lg: 0 30px 50px -20px rgba(0,0,0,0.2);
    --shadow-hover: 0 30px 50px -15px rgba(212, 175, 55, 0.25);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* القسم الرئيسي */
.branches-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 30px;
    animation: fadeIn 1s var(--transition-base);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.country-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin: 50px 0 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--accent-gold);
    position: relative;
    animation: titleGlow 1.5s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(212,175,55,0.2); }
    to { text-shadow: 0 0 20px rgba(212,175,55,0.4); }
}

.country-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
}

/* الشبكة */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* الكرت */
.region-card {
    background: var(--bg-card);
    border-radius: 30px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.region-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.region-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    padding-right: 10px;
    border-right: 5px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* القائمة */
.branches-list {
    list-style: none;
    counter-reset: branch-counter;
}

.branches-list li {
    counter-increment: branch-counter;
    margin-bottom: 12px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.branches-list li::before {
    content: counter(branch-counter);
    background: var(--primary-green);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 0.8rem;
}

.branch-link {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.branch-link:hover {
    color: var(--accent-gold);
}

/* زر للأعلى */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-base);
}

.scroll-top.show {
    opacity: 1;
}

/* موبايل */
@media (max-width: 768px) {
    .branches-section {
        padding: 0 15px;
    }

    .country-title {
        font-size: 1.8rem;
    }

    .region-title {
        font-size: 1.4rem;
    }
}
/* فاصل بين تابات المنتج */
#single-product-details .tabs .tab-trigger + .tab-trigger {
    border-right: 1px solid #ccc;
    padding-right: 20px;
    margin-right: 10px;
}
/* إخفاء أيقونة + */
.enhanced-icon {
    display: none !important;
}

/* توسيط الزر مع الأيقونة */
.product-card__enhanced-mini-cart__btn--inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: 100%;
}

.enhanced-label {
    margin: 0 !important;
}

.enhanced-label::after {
    content: '';
    display: inline-block;
    width: 19px;
    height: 19px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M3.668 4.583H17.418c.279 0 .555.064.805.186.251.123.47.3.642.52.171.22.29.477.348.75.057.273.051.556-.017.826L18.28 12.366c-.1.396-.33.747-.652.997-.321.251-.718.387-1.126.387H5.501c-.486 0-.952-.193-1.296-.537-.344-.344-.537-.81-.537-1.296V4.583zm0 0c0-.486-.193-.952-.537-1.296C2.787 2.943 2.321 2.75 1.835 2.75H.918' stroke='%23ffffff' stroke-width='1.5' stroke-linejoin='round'/%3E%3Ccircle cx='15.583' cy='18.343' r='1.833' stroke='%23ffffff' stroke-width='1.5'/%3E%3Ccircle cx='6.419' cy='18.343' r='1.833' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: middle;
    margin-right: 6px;
}
/* إطار خفيف على كرت المنتج */
.product-card {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
/* ترتيب الفوتر */
.ql-align-right {
    text-align: center;
}
/* ترتيب الروابط المهمه */
.store-links-items {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* عمودين متساويين */
    grid-template-rows: repeat(3, auto) !important;   /* 3 صفوف تلقائية الارتفاع */
    gap: 5px 20px; /* تم تقليل المسافة بين الصفوف إلى 5px والمسافة بين الأعمدة 20px */
    direction: rtl !important; 
    padding: 0 !important;
    list-style: none !important; 
}

/* لمنع التداخل أو المسافات الكبيرة المكتوبة مسبقاً في القالب */
.store-links-items li {
    margin: 0 !important;
    padding: 0 !important;
}
.store-links-items li a {
    margin-bottom: 0 !important; 
    display: block !important;
}
/* إخفاء شعار منصة الأعمال من هذا الجزء المحدد فقط */
.mt-2.md\:mt-5 a[href*="eauthenticate.saudibusiness.gov.sa"] {
    display: none !important;
}


/* التحكم المخصص في حجم شعار المتجر */
a[href="https://rasees.eu/ar/"] img.img-fluid {
    width: 200px !important;  /* يمكنك تغيير العرض هنا (مثلاً: 150px أو 300px) */
    height: auto !important;   /* ترك الارتفاع تلقائي يحافظ على تناسق أبعاد الصورة دون تمطيط */
    max-width: none !important;
}
/* التحكم بحجم الصورة وحذف المسافة وتغيير اللون من الأبيض إلى الأخضر الداكن */
img[src*="a3c37e39-a993-4682-8c85-577c9659e348.webp"] {
    width: 100px !important; 
    height: auto !important; 
    max-width: none !important;
    max-height: none !important;
    margin-bottom: 0 !important; /* حذف الهامش السفلي للصورة */
    padding-bottom: 0 !important; /* حذف الفراغ الداخلي السفلي للصورة */
}

/* ================================================================== */
/* 1. الشعار الإنجليزي في جميع الصفحات (الرئيسية والفرعية) */
/* ================================================================== */
.navbar-brand[href*="/en"] .logo-normal {
    display: inline-block;
    box-sizing: border-box;
    width: 150px !important;
    height: 70px !important;
    
    /* إخفاء الصورة الأصلية تماماً مع الحفاظ على المساحة للخلفية */
    object-position: -9999px -9999px; 
    
    /* وضع الصورة الجديدة كخلفية للشعار الإنجليزي */
    background-image: url('https://cdn.files.salla.network/homepage/1999947742/da2f2564-e2e5-4549-9dd4-dc0d7fad5b35.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* ================================================================== */
/* 2. [التعديل الجديد] الشعار العربي/الافتراضي في الصفحات الفرعية فقط */
/* ================================================================== */
body:not(.index) .navbar-brand:not([href*="/en"]) .logo-normal {
    display: inline-block;
    box-sizing: border-box;
    width: 150px !important;
    height: 70px !important;
    
    /* إخفاء الشعار العربي الأصلي للمتجر */
    object-position: -9999px -9999px; 
    
    /* عرض الصورة الجديدة التي اخترتها للفرعي العربي */
    background-image: url('https://cdn.files.salla.network/homepage/1999947742/7c19cf38-1832-48b1-a105-8bbaa95ae718.webp') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    
    /* تحويل لون الشعار العربي الفرعي الجديد إلى الأخضر */
    filter: brightness(0) saturate(100%) invert(20%) sepia(12%) saturate(1000%) hue-rotate(116deg) brightness(120%) contrast(90%) !important;
}

/* ================================================================== */
/* 3. تغيير لون الشعار الإنجليزي في الصفحات الفرعية إلى الأخضر */
/* ================================================================== */
body:not(.index) .navbar-brand[href*="/en"] .logo-normal {
    filter: brightness(0) saturate(100%) invert(20%) sepia(12%) saturate(1000%) hue-rotate(116deg) brightness(120%) contrast(90%) !important;
}

section.s-block--fixed-banner:has(img[src*="da2f2564-e2e5-4549-9dd4-dc0d7fad5b35"]) {
    display: none !important;
}
/* استهداف الشعار داخل الهيدر المثبت عند التمرير في صفحة index بسلة */
.index .header-scrolled img,
.index .scrolled img,
.index header.fixed img,
.index .fixed-header img {
    filter: brightness(0) saturate(100%) invert(20%) sepia(12%) saturate(1000%) hue-rotate(116deg) brightness(120%) contrast(90%) !important;
    transition: filter 0.3s ease !important;
}

/*  اخفاء عنوان النقطة للاصدارات النسائية   */
#best-offers-22-slider .home-block-title {
    display: none !important; 
}
/*  اخفاء عنوان النقطة للاصدارات النسائية   */
#best-offers-24-slider .home-block-title {
    display: none !important;
}
/*  اخفاء عنوان النقطة للأكثر مبيعا   */
#best-offers-4-slider .home-block-title {
    display: none !important;
}
/*  اخفاء عنوان النقطة للأكثر مبيعا   */
#best-offers-5-slider .home-block-title {
    display: none !important;
}
/*  اخفاء عنوان النقطة لعطور النيش   */
#best-offers-8-slider .home-block-title {
    display: none !important;
}
/*اخفاء النقطة لعطور 160 مل */
#best-offers-11-slider .home-block-title {
    display: none !important; 
}
/* إخفاء بطاقات عطر روزس + اهدي من تحب */
div.col-span-2.sm\:col-span-1.md\:col-span-2.h-auto.md\:h-full.flex.flex-col,
div.col-span-2.sm\:col-span-1.md\:col-span-1.h-auto.md\:h-full.flex.flex-col {
    display: none !important;
}

/* تحويل الحاوية الوسطى إلى عمودين */
div.col-span-2.sm\:col-span-1.md\:col-span-2:not(.h-auto) {
    display: flex !important;
    gap: 16px !important;
    align-items: stretch !important;
    transform: scale(1) !important;
    transform-origin: center !important;
}

/* جعل الصورة الكبيرة مربعة */
div.col-span-2.sm\:col-span-1.md\:col-span-2:not(.h-auto) > a {
    flex: 1 !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
}

/* جعل الصور الصغيرة في عمود ومربعة */
div.col-span-2.sm\:col-span-1.md\:col-span-2:not(.h-auto) > div.grid {
    flex: 1 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

div.col-span-2.sm\:col-span-1.md\:col-span-2:not(.h-auto) > div.grid > a {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    overflow: hidden !important;
}

/* ضبط الصور داخل المربعات */
div.col-span-2.sm\:col-span-1.md\:col-span-2:not(.h-auto) img.lazy {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

button.s-button-element.s-button-wide {
    padding: 10px 26px !important;
    font-size: 14px !important;
}
/* رفع النص لأعلى لتصغير المسافة لأقصى حد ممكن */
section.circle-links-1 .swiper-slide h3.text-store-text-primary {
    margin-top: 1px !important; /* كلما زاد الرقم بالسالب، ارتفع النص لأعلى أكثر */
}
/*ضبط الهيدر */
.custom-top-header{

    width:100%;
    height:25px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    background:transparent !important;

    font-family:inherit !important;
    color:inherit !important;

    position:relative;
    z-index:20;

    margin-bottom:-20px;
}
/* زر اللغة يصبح يسار */
.custom-language{

    order:1;

    display:flex;
    align-items:center;

}
/* النصوص في الوسط */
.custom-links{

    order:2;

    display:flex;
    align-items:center;
    gap:10px;

    position:absolute;
    left:50%;
    transform:translateX(-50%);

}
/* الايقونات تصبح يمين */
.custom-contact{

    order:3;

    display:flex;
    gap:12px;
    align-items:center;

}
.custom-top-header,
.custom-top-header * {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
.custom-top-header{

    margin-top:7px;

    border-bottom:1px solid rgba(0,0,0,0.08);

}
/* لون نصوص الشريط العلوي في الصفحات الفرعية */
body:not(.index) .custom-top-header,
body:not(.index) .custom-top-header * {

    color: #1E3A2F !important;

}
/* مسافة داخلية أطراف الشريط العلوي */
.custom-top-header {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
/* كود تعديل العرض في السلة */