/* Add custom CSS styles below */ 
.s-product-card-image img.loaded {
    background-color: white;
   
}
/* ✅ بطاقة المنتج */
.s-products-slider-card .s-product-card-entry {
    position: relative;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out;
    transform-style: preserve-3d;
    will-change: transform;
    z-index: 1;
}

/* ✅ الإطار المتدرج المنحني */
.s-products-slider-card .s-product-card-entry::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 4px; /* سمك الإطار */
    background: linear-gradient(45deg, #FFD700, #FF8C00, #FF6347);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
    pointer-events: none;
}

/* ✅ الصورة داخل البطاقة - بدون قص */
.s-products-slider-card .s-product-card-entry img {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    object-fit: contain; /* 👈 الصورة تظهر كاملة بدون قص */
    display: block;
    transition: transform 0.4s ease;
    background-color: #fff; /* 👈 خلفية بيضاء لو الصورة فيها شفافية */
}

/* ✨ لمعان المراية (برتقالي فاتح ولامع) */
.s-products-slider-card .s-product-card-entry::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 180, 80, 0) 0%,       /* بداية شفافة */
        rgba(255, 180, 80, 0.4) 50%,    /* لون اللمعة الفاتح */
        rgba(255, 180, 80, 0) 100%      /* نهاية شفافة */
    );
    transform: skewX(-25deg);
    transition: all 0.8s ease;
    z-index: 3;
    pointer-events: none;
}


/* ✨ تفاعل الهوفر */
.s-products-slider-card .s-product-card-entry:hover {
    transform: perspective(600px) translateZ(15px) scale(0.9); /* 👈 البوكس يبرز للأمام ويصغر شويه */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.s-products-slider-card .s-product-card-entry:hover::after {
    left: 130%;
}

.s-products-slider-card .s-product-card-entry:hover img {
    transform: scale(1.03);
}

/* ✅ شارة الخصم */
.s-product-card-discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee4d5f);
    color: white;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    text-align: center;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ✅ الأسعار */
.s-product-card-sale-price h4 {
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #28a745;
    margin-inline-end: 10px;
}

.s-product-card-sale-price span {
    font-size: 1.1rem !important;
    color: #dc3545 !important;
    text-decoration: line-through;
    opacity: 0.8;
}

/* ✅ الزر */
.s-product-card-content-footer .s-button-element {
    background: linear-gradient(75deg, #E95420, #fae79f) !important;
    color: white !important;
    border: none !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 0;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.s-product-card-content-footer .s-button-element:hover {
    background: linear-gradient(45deg, #E95420, #FF914D) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ✅ العناوين */
.s-product-card-content-title a {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.s-product-card-content-title a:hover {
    color: var(--salla-color-primary, #007bff);
}

.s-product-card-content-subtitle {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* ✅ تصحيح التباعد */
.carousel-slider .swiper-wrapper>div,
salla-slider[type]:not(.hydrated) .swiper>div>div>div,
salla-slider[type]:not(.hydrated)>div>div {
    padding-left: 0;
}