/* ============================================================
   PRODUCT CAROUSEL STYLES - برای نمایش چند عکس در دراور
   ============================================================ */

/* کانتینر اصلی کاروسل */
.drawer-carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95) 0%, rgba(240, 231, 220, 0.95) 70%, rgba(226, 211, 194, 0.9) 100%);
    box-shadow: 0 15px 40px rgba(31, 26, 23, 0.08);
}

.drawer-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    width: 100%;
}

.drawer-carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 20px;
}

.drawer-carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.12));
    cursor: pointer;
    transition: transform 0.25s ease;
}

.drawer-carousel-slide img:hover {
    transform: scale(1.04);
}

/* دکمه‌های ناوبری کاروسل */
.drawer-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 26, 23, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1f1a17;
    z-index: 10;
    transition: all 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

.drawer-carousel-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    color: #9d7746;
}

.drawer-carousel-btn:active {
    transform: translateY(-50%) scale(0.94);
}

.drawer-carousel-btn-prev {
    left: 12px;
}

.drawer-carousel-btn-next {
    right: 12px;
}

.drawer-carousel-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
}

/* نشانگرهای دات (نقاط پایین) */
.drawer-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 999px;
}

.drawer-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.drawer-carousel-dot.active {
    background: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.drawer-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* آیکون بزرگ‌نمایی روی تصویر */
.drawer-carousel-expand {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 26, 23, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f1a17;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    pointer-events: none;
    z-index: 5;
    font-size: 16px;
}

/* شمارنده عکس‌ها */
.drawer-carousel-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    z-index: 10;
    letter-spacing: 0.5px;
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .drawer-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .drawer-carousel-btn-prev {
        left: 8px;
    }
    
    .drawer-carousel-btn-next {
        right: 8px;
    }
    
    .drawer-carousel-dots {
        padding: 4px 12px;
        gap: 6px;
    }
    
    .drawer-carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .drawer-carousel-expand {
        width: 30px;
        height: 30px;
        font-size: 13px;
        bottom: 14px;
        right: 14px;
    }
}

/* RTL پشتیبانی */
html[dir="rtl"] .drawer-carousel-btn-prev {
    left: auto;
    right: 12px;
}

html[dir="rtl"] .drawer-carousel-btn-next {
    right: auto;
    left: 12px;
}

html[dir="rtl"] .drawer-carousel-expand {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .drawer-carousel-counter {
    right: auto;
    left: 16px;
}

@media (max-width: 600px) {
    html[dir="rtl"] .drawer-carousel-btn-prev {
        right: 8px;
    }
    
    html[dir="rtl"] .drawer-carousel-btn-next {
        left: 8px;
    }
    
    html[dir="rtl"] .drawer-carousel-expand {
        left: 14px;
    }
}