/* تخصيص Owl Carousel لموقع عصائر الفصول الأربعة */

/* تنسيقات أساسية للكاروسل */
.owl-carousel {
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.owl-carousel .owl-item {
    opacity: 1;
    transition: transform 0.3s ease;
    will-change: transform;
}

.owl-carousel .owl-stage {
    touch-action: pan-y;
    transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1.0) !important;
}

/* تنسيق أزرار التنقل - مخفية */
.owl-carousel .owl-nav {
    display: none;
}

/* تنسيق نقاط التنقل - تظهر فقط 3 نقاط */
.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.owl-carousel .owl-dots .owl-dot {
    width: 12px;
    height: 12px;
    margin: 0;
    background: var(--gray-300);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dots .owl-dot:hover,
.owl-carousel .owl-dots .owl-dot:focus {
    outline: none !important;
}

.owl-carousel .owl-dots .owl-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 12px;
}

/* إخفاء النقاط الزائدة عن 3 */
.owl-carousel .owl-dots .owl-dot:nth-child(n+4) {
    display: none;
}

/* تنسيق عناصر العمل */
.work {
    width: 100%;
    font-family: 'Tajawal', sans-serif;
}

.work .img {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 0;
    background-color: #fff;
}

.product-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    background-color: #fff;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work .img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.work .img:after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    z-index: -1;
    background: linear-gradient(to bottom, rgba(255, 93, 177, 0) 0%, rgba(148, 54, 103, 0) 42%, black 100%);
    opacity: .6;
}

.work .text {
    padding: 20px;
    text-align: center;
}

.work .text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Tajawal', sans-serif;
}

.work .text h3 a {
    color: var(--gray-900);
    text-decoration: none;
}

.work .text .cat {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 5px;
    font-family: 'Tajawal', sans-serif;
}

/* تعديل حالة عدم وجود منتجات */
.empty-gallery {
    padding: 50px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--gray-500);
    text-align: center;
    font-family: 'Tajawal', sans-serif;
}

/* مربع العرض المكبر للصور */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* تنسيقات إضافية للتوافق مع التصميم الأصلي */
.featured-carousel .owl-stage {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* تنسيق خاص للصور داخل الكاروسل */
/* تم تعديل object-fit إلى cover لملء المساحة بالكامل */
.featured-carousel .work .img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}