/* --- تنسيق زر عروض رمضان: ألوان الشروق + نجوم تغطي كامل المساحة --- */

/* 1. التنسيق الأساسي (الخلفية والإطار) */
a[href*="yNVnNl"] {
    position: relative !important;
    
    /* ألوان الشروق الرمضانية */
    background: linear-gradient(180deg, #141E30 0%, #243B55 50%, #c05c75 100%) !important;
    
    border: 1px solid #ffcc00 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    overflow: hidden !important; /* لقص النجوم الزائدة */
    
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    z-index: 1 !important; 
    box-shadow: 0 0 10px rgba(192, 92, 117, 0.4) !important;
}

/* 2. تنسيق النص (أهم طبقة) */
a[href*="yNVnNl"] span,
a[href*="yNVnNl"] i,
a[href*="yNVnNl"] {
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,1) !important;
    position: relative;
    z-index: 10 !important;
}

/* 3. طبقة النجوم (تغطي الزر بالكامل) */
a[href*="yNVnNl"]::before {
    /* قمنا بتطويل النص جداً ليغطي عرض الجوال كاملاً */
    content: '🌙  ✨  ⋆   🌙  ✨  ⋆   🌙  ✨  ⋆   🌙  ✨  ⋆   🌙  ✨  ⋆   🌙  ✨  ⋆ \A ⋆  ✨  🌙   ⋆  ✨  🌙   ⋆  ✨  🌙   ⋆  ✨  🌙   ⋆  ✨  🌙   ⋆  ✨  🌙' !important;
    
    white-space: pre !important; /* يحافظ على الأسطر */
    
    position: absolute !important;
    top: -30px; /* يبدأ من الأعلى قليلاً */
    left: 50%; /* نبدأ من المنتصف */
    transform: translateX(-50%); /* ونقوم بالتوسيط لضمان تغطية الجوانب */
    
    width: 150% !important; /* عرض أكبر من الزر لضمان التغطية */
    height: 200%;
    
    color: rgba(255, 255, 255, 0.25) !important;
    font-size: 18px !important;
    line-height: 45px !important; /* تباعد الأسطر */
    text-align: center !important;
    letter-spacing: 5px !important; /* تباعد بين النجوم لملء الفراغات */
    
    z-index: 0 !important; /* فوق الخلفية وتحت النص */
    
    animation: dawnRise 20s linear infinite, starTwinkle 3s ease-in-out infinite alternate !important;
}

/* 4. إخفاء الفانوس نهائياً */
a[href*="yNVnNl"]::after {
    display: none !important;
}

/* 5. تخصيص الجوال (عرض كامل) */
@media screen and (max-width: 1024px) {
    li.lg\:hidden {
        width: 100% !important;
        display: block !important;
        padding: 5px !important;
    }
    
    a[href*="yNVnNl"] {
        width: 100% !important; /* عرض كامل */
        display: flex !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }
    
    a[href*="yNVnNl"] span {
        font-size: 16px !important;
        width: 100% !important;
        text-align: center !important;
    }
}

/* 6. تخصيص الكمبيوتر */
@media screen and (min-width: 1025px) {
    a[href*="yNVnNl"] {
        padding: 6px 20px !important;
        margin: 2px 5px !important;
        min-width: 120px !important; /* عرض أدنى للزر */
    }
}

/* --- الحركات --- */
@keyframes dawnRise {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-45px); } /* تتحرك للأعلى مع الحفاظ على التوسيط */
}

@keyframes starTwinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; text-shadow: 0 0 5px #ffcc00; }
}

/* تنسيق شارة "سعر استثنائي" مع خلفية متحركة */
.product-card__promotion {
    /* 1. تطبيق الجريدينت (التدرج) الذي اخترته */
    background-image: linear-gradient(to right, #1D2B64 0%, #F8CDDA 51%, #1D2B64 100%) !important;
    
    /* 2. جعل حجم الخلفية 200% لكي نتمكن من تحريكها */
    background-size: 200% auto !important;
    
    /* 3. إعدادات النص والحجم (خط صغير) */
    font-size: 11px !important;
    color: white !important; /* النص أبيض */
    padding: 3px 10px !important;
    border-radius: 4px !important; /* حواف ناعمة */
    font-weight: bold !important;
    
    /* 4. تفعيل الحركة كل 3 ثواني بشكل لا نهائي */
    animation: gradientMove 3s linear infinite !important;
    
    /* إلغاء أي لون خلفية ثابت سابق */
    background-color: transparent !important; 
    box-shadow: 0 0 5px rgba(0,0,0,0.2) !important; /* ظل خفيف */
}

/* تعريف الحركة (تحريك الخلفية من اليمين لليسار) */
@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}