/* أنماط الإشعارات */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 25px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 80%;
    direction: rtl;
    font-size: 18px;
}

/* حاوية الإشعارات الثابتة */
.fixed-notification-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* إشعار إضافة منتج للسلة - وسط الشاشة */
.cart-alert {
    background-color: rgba(255, 255, 255, 0.98);
    width: 90%;
    max-width: 500px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    border-right: 5px solid #28a745;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
}

.cart-alert.show {
    opacity: 1;
    transform: scale(1);
}

.cart-alert i {
    font-size: 50px;
    color: #28a745;
    margin-bottom: 10px;
}

.cart-alert .product-name {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    display: block;
    margin: 5px 0;
}

.cart-alert .buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    width: 100%;
}

.cart-alert .btn {
    min-width: 120px;
    font-weight: 600;
    padding: 8px 15px;
}

.notification.show {
    transform: translateX(-50%) translateY(-50%);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.notification-content i {
    margin-left: 12px;
    font-size: 24px;
}

.notification-content span {
    font-size: 18px;
    font-weight: 600;
}

.notification-success {
    border-right: 4px solid #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.notification-success i {
    color: #28a745;
}

.notification-error {
    border-right: 4px solid #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.notification-error i {
    color: #dc3545;
}

/* تأثير تحديث عدد عناصر السلة */
.cart-count {
    display: inline-block;
    transition: transform 0.3s ease;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 3px 8px;
    font-size: 12px;
    position: relative;
    top: -8px;
}

.cart-count-updated {
    animation: cartBadgePulse 0.5s ease;
    background-color: #ff0000 !important;
    font-weight: bold !important;
    color: white !important;
}

/* تأثير تحريك عداد السلة */
@keyframes cartBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* عداد السلة في الهيدر */
.cart-badge {
    transition: all 0.3s ease;
}

/* إضافة نمط سلة التسوق في الهيدر */
.cart-icon {
    position: relative;
    display: inline-block;
}

/* تأثير الطمس خلف الإشعار */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.backdrop.show {
    opacity: 1;
}

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