/* ================= گالری دسکتاپ ================= */
.rshin-gallery-pro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important;
}

/* باکس اصلی تصویر - مربع 1:1 */
.rshin-main-container-pro {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    aspect-ratio: 1/1;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.rshin-main-wrapper-pro {
    position: relative;
    width: 100%;
    height: 100%;
}

.rshin-main-slide-pro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.rshin-main-slide-pro.active {
    opacity: 1;
    z-index: 1;
}

.rshin-main-image-pro {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
    transition: transform 0.5s ease;
}

/* اسلایدر افقی تامبنیل‌ها زیر گالری */
.rshin-horizontal-thumbs-pro {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 15px 10px;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
    width: 100%;
    max-width: 100%;
    background: transparent;
    border-radius: 12px;
    margin-top: 10px;
}

.rshin-horizontal-thumbs-pro::-webkit-scrollbar {
    height: 6px;
}

.rshin-horizontal-thumbs-pro::-webkit-scrollbar-thumb {
    background-color: #3498db;
    border-radius: 10px;
}

.rshin-horizontal-thumb-pro {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.7;
    background: transparent;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.rshin-horizontal-thumb-pro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.03);
    z-index: 1;
    transition: background 0.3s;
}

.rshin-horizontal-thumb-pro.rshin-active-thumb-pro {
    border: 2px solid #3498db;
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.rshin-horizontal-thumb-pro.rshin-active-thumb-pro::after {
    background: transparent;
}

.rshin-horizontal-thumb-pro:hover {
    opacity: 1;
    transform: scale(1.05);
}

.rshin-thumb-img-pro {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
}

/* ناوبری دسکتاپ */
.rshin-navigation-pro {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.rshin-nav-btn-pro {
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: all;
}

.rshin-nav-btn-pro:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.rshin-nav-btn-pro svg {
    width: 24px;
    height: 24px;
    stroke: #2c3e50;
    stroke-width: 2;
}

/* جهت‌دهی فلش‌ها */
.rshin-prev-pro svg {
    transform: rotate(180deg);
}

.rshin-next-pro svg {
    transform: rotate(180deg);
}

/* ================= گالری موبایل ================= */
.rshin-mobile-swiper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    aspect-ratio: 1/1;
}

.rshin-mobile-swiper .swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    position: relative;
}

.rshin-mobile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* پاگینیشن */
.swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    transform: scale(1.3);
}

/* ================= ریسپانسیو ================= */
@media (max-width: 992px) {
    /* مخفی کردن گالری دسکتاپ در موبایل */
    .rshin-main-container-pro,
    .rshin-horizontal-thumbs-pro {
        display: none;
    }
    
    /* نمایش گالری موبایل */
    .rshin-mobile-swiper {
        display: block;
    }
}

@media (min-width: 993px) {
    /* مخفی کردن گالری موبایل در دسکتاپ */
    .rshin-mobile-swiper {
        display: none;
    }
    
    /* تنظیمات اسکرول افقی برای دسکتاپ */
    .rshin-horizontal-thumbs-pro {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* بهبود نمایش در صفحه‌های کوچک */
@media (max-width: 768px) {
    .rshin-horizontal-thumbs-pro {
        padding: 10px 5px;
        gap: 8px;
    }
    
    .rshin-horizontal-thumb-pro {
        width: 65px;
        height: 65px;
    }
}

@media (max-width: 480px) {
    .rshin-horizontal-thumb-pro {
        width: 55px;
        height: 55px;
    }
}