/* تصميم الكاروسيل الرئيسي */
.discounts-section {
    position: relative;
    max-width: 100%;
    margin: 40px auto;
    background: linear-gradient(135deg, var(--color6) 0%, var(--color7) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* حاوي البطاقات */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

/* البطاقات */
.discount-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 450px;
    background: var(--card-color-bg);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
}

/* البطاقة النشطة */
.discount-card.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
}

/* البطاقة التالية */
.discount-card.next {
    opacity: 0.4;
    transform: translate(-30%, -50%) scale(0.8);
    z-index: 2;
}

/* البطاقة السابقة */
.discount-card.prev {
    opacity: 0.4;
    transform: translate(-70%, -50%) scale(0.8);
    z-index: 2;
}

/* تصميم الصورة */
.discount-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.discount-card.active img {
    transform: scale(1.05);
}

/* تصميم العنوان */
.discount-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-title-head);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* تصميم الوصف */
.discount-card p {
    color: var(--main-color);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

/* تصميم السعر */
.discount-card .price {
    /*font-size: 1.8rem;*/
    /*font-weight: 800;*/
    color: #e53e3e;
    background: linear-gradient(135deg, #e53e3e, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

/* أزرار التنقل */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.carousel-nav:hover {
    background: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* المؤشرات السفلية */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    width: 20%;
    left: 30%;
    margin-right: 30%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* تأثير التحميل */
.carousel-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .discounts-section {
        margin: 20px;
        max-width: none;
    }
    
    .carousel-container {
        height: 400px;
    }
    
    .discount-card {
        width: 280px;
        height: 350px;
        padding: 20px;
    }
    
    .discount-card img {
        height: 150px;
    }
    
    .discount-card h3 {
        font-size: 1.3rem;
    }
    
    .discount-card .price {
        font-size: 1.5rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}