/* ========================= */
/* خلفية الموقع */
/* ========================= */

#app {
    background: 
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
        url('https://cdn.salla.sa/GaXPa/f500e8fe-9d8e-45ab-90d5-ea4b7e85eef5-1000x562.5-tEmdC46iNmmVqHlcd4nfm0cZ1q5WDgPkTk4inX3t.png')
        center center / cover no-repeat fixed !important;
}

#app div,
#app section {
    background-color: transparent !important;
}


/* ========================= */
/* كرت المنتج الصحيح */
/* ========================= */

custom-salla-product-card {
    position: relative;
    display: block;
}

/* المربع الداخلي الحقيقي */
custom-salla-product-card .product-card {
    background: #ffffff !important;   /* صلب بالكامل */
    border-radius: 22px !important;
    padding: 18px !important;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45) !important;
    transition: all 0.35s ease;
    overflow: visible;
}

/* ========================= */
/* إزالة أي Glow خلف الكرت */
/* ========================= */

custom-salla-product-card .product-card::before{
    display:none !important;
    content:none !important;
}

/* تنظيف الظلال */
.product-card{
    box-shadow:0 15px 40px rgba(0,0,0,.25) !important;
}

/* ظل احترافي ناعم جداً ومندمج */
@media (max-width:768px){

.s-products-list-vertical-cards .product-card{
    box-shadow:
        0 8px 20px rgba(0,0,0,.25) !important;
}

}


/* حركة عند المرور */
custom-salla-product-card .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 80px rgba(0,0,0,0.55) !important;
}

custom-salla-product-card .product-card:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

/* عنوان المنتج */
custom-salla-product-card h3 {
    font-weight: 800 !important;
    font-size: 18px;
    color: #111 !important;
}

/* السعر */
custom-salla-product-card .price {
    font-weight: 700 !important;
    font-size: 16px;
    color: #000 !important;
}

/* زر السلة */
custom-salla-product-card button {
    border-radius: 14px !important;
    font-weight: 700;
    transition: 0.3s ease;
}

custom-salla-product-card button:hover {
    transform: scale(1.05);
}
/* تحسين للجوال */
@media (max-width: 768px) {

    custom-salla-product-card .product-card {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    custom-salla-product-card .product-card:hover {
        transform: none; /* نشيل الحركة بالموبايل */
    }

    custom-salla-product-card h3 {
        font-size: 15px !important;
    }

}
custom-salla-product-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =============================== */
/* جعل منطقة صورة المنتج شفافة */
/* =============================== */

.product-details .swiper,
.product-details .swiper-wrapper,
.product-details .swiper-slide,
.product-details .rounded-xl,
.product-details .bg-\[var\(--bg-primary\)\] {

    background: transparent !important;
    box-shadow: none !important;
}


/* إزالة أي ظل خلف الصورة */
.product-details img {
    background: transparent !important;
}


/* ================================= */
/* ستايل مودرن نظيف لصفحة المنتج */
/* ================================= */

/* صندوق التفاصيل (ستايل Eldorado خفيف) */
.product-details {
    background: rgba(20,20,20,0.92) !important;
    backdrop-filter: blur(10px);
    padding: 35px !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(0,0,0,0.55);
    gap: 40px !important;
}

/* ----------------------------- */
/* جهة الصورة شفافة فقط */
/* ----------------------------- */

.product-details > div:first-child,
.product-details .swiper,
.product-details .swiper-wrapper,
.product-details .swiper-slide {
    background: transparent !important;
    box-shadow: none !important;
}

.product-details img {
    background: transparent !important;
}

/* ----------------------------- */
/* العنوان */
/* ----------------------------- */

.product-details h1 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

/* ----------------------------- */
/* السعر */
/* ----------------------------- */

.product-details .price,
.product-details .text-price {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #d4af37 !important;
}

/* ----------------------------- */
/* زر الشراء */
/* ----------------------------- */

.product-details button {
    background: linear-gradient(135deg, #d4af37, #e6c65c) !important;
    color: #000 !important;
    font-weight: 800 !important;
    border-radius: 14px !important;
    padding: 16px 28px !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(212,175,55,0.35);
    transition: 0.25s ease;
}

.product-details button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(212,175,55,0.5);
}

/* ----------------------------- */
/* الوصف */
/* ----------------------------- */

.product-details p {
    color: #ccc;
    line-height: 1.8;
}

/* ================================= */
/* تحسين صفحة السلة / الفاتورة */
/* ================================= */

/* صندوق ملخص الطلب */
.cart-summary,
.summary,
.cart-totals {

    background: linear-gradient(
        145deg,
        rgba(18,18,18,0.98),
        rgba(25,25,25,0.98)
    ) !important;

    border-radius: 20px !important;
    padding: 30px !important;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.65),
        0 0 0 1px rgba(212,175,55,0.08);

    border: 1px solid rgba(255,255,255,0.05);
}


/* ================================= */
/* تصميم احترافي لصفحة السلة */
/* ================================= */

/* الخلفية العامة */
.cart-page,
.s-cart {

    padding: 40px 20px !important;
}


/* كروت المنتجات داخل السلة */
.cart-item,
.cart-product {

    background: rgba(18,18,18,0.78) !important;
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px !important;

    padding: 22px !important;
    margin-bottom: 25px;

    box-shadow: 0 25px 70px rgba(0,0,0,0.55);

    transition: 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 90px rgba(0,0,0,0.65);
}


/* عنوان المنتج */
.cart-item h3 {
    color: #ffffff !important;
    font-weight: 700;
}


/* السعر */
.cart-item .price {
    color: #d4af37 !important;
    font-weight: 800;
    font-size: 18px;
}


/* الحقول */
.cart-item input,
.cart-item select {

    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    padding: 10px !important;
    color: #fff !important;
}


/* صندوق ملخص الطلب */
.cart-summary,
.summary,
.cart-totals {

    background: linear-gradient(
        145deg,
        rgba(18,18,18,0.95),
        rgba(25,25,25,0.95)
    ) !important;

    border-radius: 24px !important;
    padding: 35px !important;

    border: 1px solid rgba(255,255,255,0.05);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.65),
        0 0 0 1px rgba(212,175,55,0.08);
}


/* زر إتمام الطلب */
.cart-summary button,
.cart-summary .btn {

    background: linear-gradient(135deg, #d4af37, #f0c55a) !important;
    color: #000 !important;
    font-weight: 900 !important;
    font-size: 16px !important;

    border-radius: 14px !important;
    padding: 16px 24px !important;

    box-shadow: 0 15px 35px rgba(212,175,55,0.4);
    transition: 0.25s ease;
}

.cart-summary button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(212,175,55,0.6);
}


/* الجوال */
@media (max-width: 768px) {

    .cart-summary {
        margin-top: 30px;
    }

    .cart-summary button {
        width: 100%;
    }
}
/* ================================= */
/* إصلاح صندوق الخيارات داخل السلة */
/* ================================= */

.cart-item div[class*="bg-"],
.cart-item .rounded-xl,
.cart-item .bg-primary,
.cart-item .bg-\[var\(--bg-primary\)\] {

    background: rgba(20,20,20,0.85) !important;
    backdrop-filter: blur(12px) !important;

    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 18px !important;

    box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}
/* ================================= */
/* زر شفاف بإطار ذهبي + نص أبيض + Glow واضح */
/* ================================= */

button,
.btn,
a.btn,
input[type="submit"] {

    background: transparent !important;
    border: 2px solid #6b5e3b !important;
    color: #ffffff !important;   /* النص أبيض */
    border-radius: 14px !important;

    box-shadow:
        0 0 15px rgba(107,94,59,0.6),
        0 0 35px rgba(107,94,59,0.25) !important;

    transition: all 0.25s ease;
}

/* الأيقونات داخل الزر */
button svg,
.btn svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* عند المرور */
button:hover,
.btn:hover,
a.btn:hover,
input[type="submit"]:hover {

    background: #6b5e3b !important;
    color: #ffffff !important;

    box-shadow:
        0 0 25px rgba(107,94,59,0.9),
        0 0 50px rgba(107,94,59,0.5) !important;

    transform: translateY(-2px);
}

/* ================================= */
/* Ribbon واضح جدًا مع خلفية داعمة */
/* ================================= */

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card-content-media-promotional-title {

    position: absolute !important;
    top: 18px;
    right: -45px;

    background: linear-gradient(135deg, #6b5e3b, #8a7a4d) !important;
    color: #ffffff !important;

    padding: 8px 55px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;

    transform: rotate(35deg);

    box-shadow:
        0 0 25px rgba(212,175,55,0.8),
        0 0 50px rgba(212,175,55,0.4);

    border: none !important;
}

/* طبقة داكنة خفيفة خلف الشريط */
.product-card-content-media-promotional-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: -1;
}

/* السعر */
.product-card .price {
    order: 2;
}

/* التقييم */
.product-card .rating,
.product-card .product-rating {
    order: 3;
    margin-top: 6px !important;
    margin-bottom: 4px !important;

    font-size: 12px !important;
    display: flex;
    gap: 4px;
    align-items: center;
}

/* النجوم */
.product-card .rating svg,
.product-card .product-rating svg {
    width: 14px !important;
    height: 14px !important;
    fill: #d4af37 !important;
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.5));
}
/* ================================= */
/* ترتيب عناصر الكرت */
/* ================================= */

.product-card-content {
    display: flex !important;
    flex-direction: column !important;
}

/* السعر */
.product-card .price {
    order: 2;
}

/* التقييم */
.product-card .rating,
.product-card .product-rating {
    order: 3;
    margin-top: 6px !important;
    margin-bottom: 4px !important;

    font-size: 12px !important;
    display: flex;
    gap: 4px;
    align-items: center;
}

/* النجوم */
.product-card .rating svg,
.product-card .product-rating svg {
    width: 14px !important;
    height: 14px !important;
    fill: #d4af37 !important;
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.5));
}



/* ================================= */
/* تثبيت الأزرار داخل الصفحة بدون Sticky تخريب */
/* ================================= */

@media (max-width: 768px) {

    /* نخلي الشريط طبيعي بدل ما يكون fixed */
    section.sticky-product-bar {
        position: relative !important;
        bottom: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        box-shadow: none !important;
        margin-top: 15px !important;
    }

    /* نخلي العناصر داخل الشريط عمودية */
    section.sticky-product-bar .flex,
    section.sticky-product-bar .justify-between {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }

    /* الأزرار عرض كامل */
    section.sticky-product-bar button,
    section.sticky-product-bar .salla-express-checkout,
    section.sticky-product-bar iframe {
        width: 100% !important;
    }

}
/* =============================== */
/* MOBILE CLEAN PREMIUM SLIDER */
/* =============================== */

@media (max-width:768px){

/* الحاوية */
.s-products-list-vertical-cards{
    display:flex !important;
    gap:18px !important;

    overflow-x:auto !important;
    overflow-y:hidden !important;

    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;

    padding:0 18px 25px 18px !important;
}

/* اخفاء السكرول */
.s-products-list-vertical-cards::-webkit-scrollbar{
    display:none;
}

/* كل منتج */
.s-products-list-vertical-cards custom-salla-product-card{
    flex:0 0 80% !important;
    scroll-snap-align:start;
}

/* الكرت */
.s-products-list-vertical-cards .product-card{
    border-radius:22px !important;
    overflow:hidden;
    transition:transform .35s ease, box-shadow .35s ease;
    box-shadow:
        0 12px 30px rgba(0,0,0,.25),
        0 0 30px rgba(212,175,55,.15);
}

/* تكبير خفيف سموذ */
.s-products-list-vertical-cards custom-salla-product-card:active .product-card{
    transform:scale(.97);
}

}

/* ========================= */
/* أزرار قوية وجذابة */
/* ========================= */

.product-card button{
    background:linear-gradient(135deg,#d4af37,#f0c55a) !important;
    color:#000 !important;
    font-weight:800 !important;
    border-radius:14px !important;

    box-shadow:
        0 10px 25px rgba(212,175,55,.4);

    transition:.25s ease;
}

.product-card button:active{
    transform:scale(.95);
}
/* ================================= */
/* السلايدر يشتغل فقط في الصفحة الرئيسية */
/* ================================= */

@media (max-width:768px){

/* أي صفحة ليست الرئيسية */
body:not(.index) .s-products-list-vertical-cards{

    display:grid !important;
    grid-template-columns:repeat(2,1fr) !important;
    gap:14px !important;

    overflow:visible !important;
    scroll-snap-type:none !important;
    padding:0 14px !important;
}

/* المنتج يرجع طبيعي */
body:not(.index) .s-products-list-vertical-cards custom-salla-product-card{
    flex:unset !important;
    width:100% !important;
}

}
/* =============================== */
/* Smart Offer Bar - Mobile Friendly */
/* =============================== */

.offer-bar {

    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);

    width: 92%;
    max-width: 500px;

    background: linear-gradient(135deg,#d4af37,#f0c55a);
    color: #111;

    padding: 14px 16px;
    border-radius: 16px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);

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

    z-index: 9999;
}

.offer-bar-text{
    font-size:14px;
    font-weight:700;
}

.offer-bar button{

    background:#111 !important;
    color:#fff !important;

    border:none !important;
    border-radius:10px !important;

    padding:8px 14px !important;
    font-size:13px;
    font-weight:700;
}

.offer-close{
    background:transparent !important;
    color:#111 !important;
    font-size:18px;
    font-weight:bold;
    padding:0 6px !important;
}

@media (min-width:768px){
    .offer-bar{
        bottom:25px;
    }
}