/* ===================================
   العروض والتخفيضات - Offers & Discounts Styles
   =================================== */

/* Offers swiper custom styling */
.swiper-slide.auto {
    flex-shrink: 1!important;
    min-width: -moz-fit-content;
    min-width: fit-content
}

/* ===================================
   شريط الخصم - Discount Ribbon
   =================================== */
.offer-card-container .offer-ribbon {
    width: 200px;
    height: 20px;
    position: absolute;
    top: 18px;
    left: -70px;
    z-index: 3;
    overflow: visible;          /* يظهر النص بعد التدوير */
    transform: rotate(-45deg);
    background: #f4b62d;
    text-align: center;
    pointer-events: none;
    border: none;
    box-shadow:
        0 6px 14px -4px rgba(0,0,0,0.35),
        0 2px 6px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.35),
        inset 0 8px 12px rgba(255,255,255,0.12),
        inset 0 -6px 10px rgba(0,0,0,0.18);
    background:
        linear-gradient(to bottom,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0.00) 35%,
            rgba(0,0,0,0.00) 65%,
            rgba(0,0,0,0.18) 100%),
        linear-gradient(135deg,
            color-mix(in srgb, #f4b62d 85%, #ffffff 15%) 0%,
            #f4b62d 48%,
            color-mix(in srgb, #f4b62d 75%, #000000 25%) 100%);
}

/* نص الشريط - محاذاة وسط مع رفع 1px */
.offer-card-container .offer-ribbon .ribbon-text {
    position: absolute;
    top: 50%;                
    left: 50%;               
    transform: translate(-50%, -51%); /* رفع النص 1px لأعلى + محاذاة منتصف */
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.3px;
    color: #000;
    line-height: 1;          
    text-shadow:
        0 1px 0 rgba(255,255,255,0.55),
        0 -1px 0 rgba(0,0,0,0.25),
        0 0 10px rgba(255,255,255,0.15);
}

/* تأثير الإضاءة المتحركة على الشريط */
.offer-card-container .offer-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60px;
    width: 40px;
    height: 100%;
    z-index: 5;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.22) 15%,
        rgba(255,255,255,0.60) 50%,
        rgba(255,255,255,0.22) 85%,
        rgba(255,255,255,0) 100%);
    transform: skew(20deg);
    pointer-events: none;
    mix-blend-mode: screen;
    animation: flow 3s linear infinite;
}

/* حركة الإضاءة */
@keyframes flow {
    0% { left: -60px; opacity: 0; }
    10% { opacity: 0.38; }
    100% { left: 240px; opacity: 0.38; }
}

/* ===================================
   دعم اللغة العربية RTL
   =================================== */

/* موضع الشريط في RTL */
html[dir="rtl"] .offer-card-container .offer-ribbon {
    left: auto;
    right: -70px;
    transform: rotate(45deg);
}

/* حركة الإضاءة في RTL */
html[dir="rtl"] .offer-card-container .offer-ribbon::after {
    left: auto;
    right: -60px;
    transform: skew(-20deg);
    animation: flowRTL 3s linear infinite;
}

        @keyframes flowRTL {
            0% { right: -60px; opacity: 0; }
            10% { opacity: 0.38; }
            100% { right: 240px; opacity: 0.38; }
        }

