/* --- 1. قسم السلايدر (NALO Cinematic Header) --- */

/* حركة الزووم الهادئة والنبض الضوئي المباشر على الصورة */
#default-home-slider-0 .swiper-slide img,
.s-block-default-home-slider .swiper-slide img {
    animation: naloVisualMaster 15s infinite alternate ease-in-out !important;
    transform-origin: center center !important;
    will-change: transform, filter;
}

@keyframes naloVisualMaster {
    0% { transform: scale(1); filter: brightness(1) contrast(1); }
    50% { filter: brightness(1.12) contrast(1.05); } /* لمعة خفيفة للماء */
    100% { transform: scale(1.08); filter: brightness(1.05) contrast(1.02); }
}

/* تنظيف السلايدر تماماً لبروز تصميمك */
#default-home-slider-0 .swiper-button-next, 
#default-home-slider-0 .swiper-button-prev, 
#default-home-slider-0 .swiper-pagination,
#default-home-slider-0 .s-slider-c-content {
    display: none !important;
}

#default-home-slider-0 { background-color: #000 !important; }

/* --- 2. قسم بطاقة المنتج (NALO Product Card) --- */

/* ثبات الصورة وتكبير ناعم عند التمرير */
.product-entry__image img {
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1) !important;
}

/* تأثير "البرواز الزجاجي" الراقي (Glassmorphism) */
.product-entry:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.4s ease !important;
}

.product-entry:hover .product-entry__image img {
    transform: scale(1.06) !important;
}

/* لون السعر (أسود عريض وفخم جداً) */
.product-entry__price {
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 19px !important;
}

/* إخفاء الأيقونات المزعجة (السلة والمفضلة) */
.btn--wishlist, .product-entry__wishlist, .salla-button.btn--add-to-cart, .product-entry__action-btn {
    display: none !important;
}

/* --- 3. تنظيف عام للنظام --- */

.product-entry { border: none !important; background: transparent !important; }

#nprogress .bar, .s-progress-bar { display: none
  !important; height: 0 !important; }



/* --- NALO: Ultra-Premium Gallery Styling (Clean & Under) --- */

/* 1. إخراج أيقونة التبديل من فوق الصور وتنزيلها تحتها بمسافة محترمة */
.s-block-photos-slider .swiper-container {
    padding-bottom: 50px !important; /* خلق مساحة تحت الصور للأيقونات */
    overflow: visible !important; /* السماح للأيقونات بالظهور خارج حدود الصورة */
}

.s-block-photos-slider .swiper-pagination {
    position: absolute !important;
    bottom: -15px !important; /* مكانها الجديد تحت الصورة تماماً */
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
}

/* 2. تغيير الشكل ليكون "خطوط نحيفة" (شغل عالمي) بدل الدوائر */
.s-block-photos-slider .swiper-pagination-bullet {
    width: 25px !important; /* طول الخط */
    height: 2px !important; /* نحافة خرافية لفخامة أكثر */
    background: #e0e0e0 !important; /* لون هادئ للغير نشط */
    border-radius: 0 !important; /* زوايا حادة وأنيقة */
    opacity: 0.6 !important;
    transition: all 0.4s ease !important;
    margin: 0 !important;
}

/* 3. تمييز الخط النشط (يطول ويغمق) */
.s-block-photos-slider .swiper-pagination-bullet-active {
    width: 50px !important; /* يتمدد ليعطي إيحاء بالحركة */
    background: #000 !important; /* أسود ملكي */
    opacity: 1 !important;
}

/* 4. الحفاظ على البريق السينمائي فوق الصور */
.photos-slider .swiper-slide::after {
    content: "" !important;
    position: absolute !important;
    top: 0; left: -150%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 70%) !important;
    transform: skewX(-20deg) !important;
    animation: naloGalleryShine 7s infinite ease-in-out !important;
    z-index: 5 !important;
    pointer-events: none !important;
}

@keyframes naloGalleryShine {
    0% { left: -150%; }
    25% { left: 150%; }
    100% { left: 150%; }
}

/* 5. ثبات مقاس الصور وحوافها الدائرية */
.photos-slider img {
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
}

/* --- NALO: PURE WHITE SEAMLESS BACKGROUND --- */

/* 1. استهداف جميع الحاويات الرمادية وإجبارها على اللون الأبيض الصافي */
body.product-single,
#app.product-single,
.app-inner,
.page-container,
.bg-zinc-100, 
.bg-zinc-50, 
.bg-gray-100, 
.bg-gray-50,
.product-single {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* 2. إزالة أي فواصل، خطوط، أو ظلال تفصل بين الأقسام */
.s-block, 
hr, 
.page-container, 
.product-single__media-wrapper,
.breadcrumbs {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* 3. ضمان شفافية حاوية الصور عشان تندمج مع الأبيض */
.s-slider-container, 
.swiper-container,
.product-single__media {
    background-color: transparent !important;
}




/* --- NALO: THE THEME MAXIMIZER (Space, Buttons, Glass) --- */

/* 1. مساحات التنفس: إعطاء الصورة مساحة ملكية */
.product-single__media-wrapper, 
.s-product-single-image {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-bottom: 20px !important;
}

/* 2. الأزرار اللمسية الفخمة (تأثير النبض والظل) */
.s-button-btn-add-to-cart, 
#product-add-to-cart {
    border-radius: 12px !important; /* انحناء عصري وأنيق */
    height: 55px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(17, 125, 132, 0.2) !important; /* ظل بلون زرّك الحالي */
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

/* حركة الزر عند الضغط (إحساس تفاعلي) */
.s-button-btn-add-to-cart:active, 
#product-add-to-cart:active {
    transform: scale(0.96) !important;
    box-shadow: 0 4px 15px rgba(17, 125, 132, 0.1) !important;
}

/* تنسيق أزرار الكمية لتطابق الفخامة */
.s-quantity-control {
    border-radius: 12px !important;
    border: 1px solid #f0f0f0 !important;
    background: #fafafa !important;
}

/* 3. تأثير الزجاج المغبش (الآيفون) للشريط السفلي في الجوال */
.s-product-single-fixed-footer,
.sticky-product-bar {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.04) !important;
}

/* ========================================= */
/* --- 1. التوسيط الجذري (للبطاقات الخارجية فقط) --- */
/* ========================================= */

/* حصر التوسيط ببطاقات المنتجات الخارجية */
.s-product-card-content {
    text-align: center !important;
}

.s-product-card-content .flex.justify-between.items-center.mt-auto {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important; 
}

.s-product-card-content .s-product-card-content-sub,
.s-product-card-content .price-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* مقاسات السعر للبطاقات الخارجية فقط */
.s-product-card-content h4,
.s-product-card-content .text-theme-red,
.s-product-card-content [class*="text-red"],
.s-product-card-content .s-product-price {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #e53935 !important;
    line-height: 1.2 !important;
}
.s-product-card-content span.line-through,
.s-product-card-content .s-product-price--before {
    font-size: 12px !important;
    color: #999 !important;
}


/* ========================================= */
/* --- 2. الزر الخرافي (للبطاقات الخارجية فقط) --- */
/* ========================================= */

@keyframes premiumPulse {
    0% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
    50% { transform: scale(1.05); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); }
    100% { transform: scale(1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
}

/* السحر هنا: تم تقييد الزر داخل .s-product-card-content فقط */
.s-product-card-content salla-add-product-button {
    position: relative !important;
    display: inline-flex !important;
    width: 130px !important; 
    height: 38px !important; 
    border-radius: 25px !important; 
    margin: 0 auto !important;
    animation: premiumPulse 2.5s infinite ease-in-out !important; 
}

.s-product-card-content salla-add-product-button::part(button) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important; 
    z-index: 5 !important; 
    cursor: pointer !important;
}

.s-product-card-content salla-add-product-button::after {
    content: "أضف للسلة" !important;
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    font-family: inherit !important;
    border-radius: 25px !important;
    z-index: 1 !important;
    pointer-events: none !important; 
    transition: background 0.3s ease !important; 
}

.s-product-card-content salla-add-product-button:hover {
    animation-play-state: paused !important; 
}
.s-product-card-content salla-add-product-button:hover::after {
    background: linear-gradient(135deg, #000000 0%, #2c2c2e 100%) !important;
}/* إخفاء زر Apple Pay (الدفع السريع) من صفحة المنتج الداخلية */
.product-single apple-pay-button,
.product-single salla-fast-checkout,
.product-single #fast-checkout-widget,
.product-single .fast-checkout-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* NALO: compact, legible native product-page header */
body.product-single header.header-components-all .store-header { background: #fff !important; box-shadow: 0 2px 12px rgba(16,60,67,.07); }
body.product-single header .header-components-inner { min-height: 70px; padding-inline: 20px !important; }
body.product-single header [class^="sicon-"], body.product-single header [class*=" sicon-"] { font-family: sallaicons !important; }
body.product-single header .header-icon-button, body.product-single header .search-btn, body.product-single header .s-cart-summary-wrapper { color: #103c43 !important; }
body.product-single .container--product-details > .s-block, body.product-single .container--product-details > .single-product-form-page > .s-block.main-content { margin-top: 20px !important; }
@media (max-width: 767px) { body.product-single .container--product-details > .s-block, body.product-single .container--product-details > .single-product-form-page > .s-block.main-content { margin-top: 12px !important; } }

/* Expand the verified official wordmark only after Salla accepts it. */
body.product-single header .navbar-brand img[src*="cf89e0e6"] { width: 120px !important; height: auto !important; max-width: none !important; }