/* أنماط قسم السلايدر والعروض - Caza Souq */

/* القسم الرئيسي */
.slider-promo-section {
    padding: 20px 0;
    background-color: #f8f8f8;
    direction: rtl;
}

.slider-promo-container {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* تنسيق السلايدر (الجانب الأيسر في RTL) */
.main-slider {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f9f9f9 url('../images/pattern-bg.png') repeat;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 767px) {
    body {
        overflow-x: hidden !important;
    }
    .slider-promo-section,
    .slider-promo-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }
    .main-slider {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        min-height: 180px !important;
        max-height: 220px !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .slider-promo-container {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    .slider-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        height: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        background: #fff !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }
    .slider-slide {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
        height: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .slider-full-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }
    .promo-full-image {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: contain !important;
        display: block;
        margin: 0;
        background: #f7f7f7 !important;
        border-radius: 8px;
        box-shadow: none;
        overflow: hidden;
    }
}



.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.slider-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    overflow: hidden;
    justify-content: center; /* لتوسيط الصورة أفقياً */
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-content {
    max-width: 60%;
}

.slider-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.slider-description {
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

.slider-button {
    display: inline-block;
    background-color: #ffcc00;
    color: #000;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.slider-button:hover {
    background-color: #f2b200;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    object-fit: cover;
    border-bottom-right-radius: 100px;
}

/* قواعد للصور التي تأخذ المساحة الكاملة بدون نصوص */
.slider-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: transparent;
    display: block;
}

.main-slider, .slider-wrapper, .slider-slide {
    overflow: hidden !important;
    background: transparent !important;
}

@media (max-width: 767px) {
    .slider-full-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
}

/* أزرار التنقل للسلايدر */
.slider-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.09);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    opacity: 0.92;
}

.slider-nav-button:active,
.slider-nav-button:focus {
    outline: none;
    background: #ffcc00;
    color: #fff;
}

.slider-nav-prev {
    right: 16px;
    left: auto;
}

.slider-nav-next {
    left: 16px;
    right: auto;
}

@media (max-width: 767.98px) {
    .slider-nav-button {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }
    .slider-nav-prev {
        right: 7px;
    }
    .slider-nav-next {
        left: 7px;
    }
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #ffcc00;
    transform: scale(1.2);
}

/* تنسيق صناديق العروض (الجانب الأيمن في RTL) */
.promo-boxes {
    width: calc(25% - 10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 450px; /* تقليل الارتفاع ليتناسب مع ارتفاع الصور */
}

.promo-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    flex: 1; /* توزيع المساحة بالتساوي بين المربعين */
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.promo-box-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row-reverse;
}

.promo-image-container {
    width: 40%;
    height: 100%;
    overflow: hidden;
}

.promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

/* صورة تملأ مساحة صندوق العروض بالكامل */
.promo-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: all 0.5s ease;
    background: transparent;
}

.promo-box {
    overflow: hidden !important;
    background: transparent !important;
}

.promo-box:hover .promo-full-image {
    transform: scale(1.05);
}

.promo-box:hover .promo-image {
    transform: scale(1.05);
}

.promo-text {
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 70%, rgba(255, 255, 255, 0.9) 100%);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.promo-text::before {
    content: '';
    position: absolute;
    right: -30px;
    top: 0;
    width: 60px;
    height: 100%;
    background: #ffffff;
    transform: skewX(-10deg);
    z-index: 1;
}

.promo-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffcc00;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.promo-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.promo-button {
    display: inline-block;
    background-color: #ffffff;
    color: #000;
    border: 2px solid #ffcc00;
    padding: 5px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.promo-button:hover {
    background-color: #ffcc00;
}

/* تعديلات تصميم متجاوب */
@media (max-width: 992px) {
    .slider-promo-container {
        flex-direction: column;
    }
    
    .main-slider,
    .promo-boxes {
        width: 100%;
    }
    
    .main-slider {
        margin-bottom: 20px;
    }
    
    .promo-boxes {
        flex-direction: row;
    }
    
    .promo-box {
        width: calc(50% - 10px);
        height: 150px;
    }
}

@media (max-width: 768px) {
    /* ... القواعد السابقة ... */
}

@media (max-width: 767.98px) {
    .slider-promo-section,
    .slider-promo-section .container {
        width: 100vw !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
}
    .slider-promo-container {
        gap: 16px !important;
    }
    /* هذه القواعد خاصة فقط بالموبايل */
@media (max-width: 767.98px) {
    .promo-boxes {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
        margin-top: 12px !important;
        margin-bottom: 16px !important;
        padding-bottom: 0 !important;
        height: auto !important;
        justify-content: center !important;
        align-items: stretch !important;
    }
    .promo-box {
        width: 48% !important;
        max-width: 48% !important;
        min-width: 48% !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .promo-box:last-child {
        margin-bottom: 0 !important;
    }
}




    .slider-slide {
        padding: 0 30px;
    }
    
    .slider-content {
        max-width: 100%;
        text-align: center;
    }
    
    .slider-image {
        display: none;
    }
    
    .slider-title {
        font-size: 24px;
    }
    

}
