/* Carousel Styles - استایل‌های کروسل */

/* ============================================================
   INFINITE LOOP - حلقه بی‌نهایت (محصولات)
============================================================ */
.hpb-carousel--infinite-loop {
    width: 100%;
    position: relative;
}

.hpb-carousel--infinite-loop .swiper-wrapper {
    transition-timing-function: linear;
}

.hpb-carousel--infinite-loop .swiper-slide {
    transition-duration: 0.3s;
}

.hpb-carousel--infinite-loop .swiper-slide:hover {
    transform: translateY(-8px);
}

.hpb-carousel--infinite-loop .swiper-button-next,
.hpb-carousel--infinite-loop .swiper-button-prev {
    color: #667eea;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hpb-carousel--infinite-loop .swiper-button-next:hover,
.hpb-carousel--infinite-loop .swiper-button-prev:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hpb-carousel--infinite-loop .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hpb-carousel--infinite-loop .swiper-pagination-bullet-active {
    background: #667eea;
    width: 30px;
    border-radius: 5px;
}

/* ============================================================
   FADE TRANSITION - محو
============================================================ */
.hpb-carousel--fade-transition {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hpb-carousel--fade-transition .swiper-slide {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hpb-carousel--fade-transition .swiper-slide-active {
    opacity: 1;
}

.hpb-carousel--fade-transition .swiper-pagination {
    bottom: 20px;
    z-index: 10;
}

.hpb-carousel--fade-transition .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.hpb-carousel--fade-transition .swiper-pagination-bullet-active {
    background: #fff;
    width: 32px;
    border-radius: 6px;
}

/* ============================================================
   3D COVERFLOW - سه‌بعدی
============================================================ */
.hpb-carousel--3d-coverflow {
    width: 100%;
    perspective: 1000px;
}

.hpb-carousel--3d-coverflow .swiper-slide {
    transform-style: preserve-3d;
    opacity: 0.5;
    transition: all 0.5s ease;
}

.hpb-carousel--3d-coverflow .swiper-slide-active {
    opacity: 1;
    transform: translateZ(0);
}

.hpb-carousel--3d-coverflow .swiper-button-next,
.hpb-carousel--3d-coverflow .swiper-button-prev {
    color: #764ba2;
    width: 50px;
    height: 50px;
    background: rgba(118, 75, 162, 0.1);
    border: 2px solid #764ba2;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.hpb-carousel--3d-coverflow .swiper-button-next:hover,
.hpb-carousel--3d-coverflow .swiper-button-prev:hover {
    background: #764ba2;
    color: #fff;
}

.hpb-carousel--3d-coverflow .swiper-pagination-fraction {
    color: #764ba2;
    font-weight: 600;
}

/* ============================================================
   VERTICAL SCROLL - عمودی
============================================================ */
.hpb-carousel--vertical-scroll {
    width: 100%;
    height: auto;
}

.hpb-carousel--vertical-scroll.swiper {
    height: 500px;
}

.hpb-carousel--vertical-scroll .swiper-slide {
    height: auto;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9e9e9;
    transition: all 0.3s ease;
}

.hpb-carousel--vertical-scroll .swiper-slide:hover {
    background: #f5f5f5;
    padding-left: 20px;
}

.hpb-carousel--vertical-scroll .swiper-button-next,
.hpb-carousel--vertical-scroll .swiper-button-prev {
    width: 40px;
    height: 40px;
    color: #667eea;
    background: #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hpb-carousel--vertical-scroll .swiper-button-next:hover,
.hpb-carousel--vertical-scroll .swiper-button-prev:hover {
    background: #667eea;
    color: #fff;
}

.hpb-carousel--vertical-scroll .swiper-scrollbar {
    background: #e9e9e9;
    border-radius: 8px;
}

.hpb-carousel--vertical-scroll .swiper-scrollbar-drag {
    background: #667eea;
    border-radius: 8px;
}

/* ============================================================
   HIGHLIGHT CENTER - تاکید مرکز
============================================================ */
.hpb-carousel--highlight-center {
    width: 100%;
}

.hpb-carousel--highlight-center .swiper-slide {
    opacity: 0.6;
    scale: 0.9;
    transition: all 0.4s ease;
}

.hpb-carousel--highlight-center .swiper-slide-active {
    opacity: 1;
    scale: 1;
    z-index: 10;
}

.hpb-carousel--highlight-center .swiper-slide-next,
.hpb-carousel--highlight-center .swiper-slide-prev {
    opacity: 0.7;
    scale: 0.95;
}

.hpb-carousel--highlight-center .swiper-pagination-dot {
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hpb-carousel--highlight-center .swiper-pagination-dot-active {
    width: 28px;
    height: 8px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.hpb-carousel--highlight-center .swiper-button-next,
.hpb-carousel--highlight-center .swiper-button-prev {
    color: #667eea;
    width: 48px;
    height: 48px;
    background: #f0f0f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hpb-carousel--highlight-center .swiper-button-next:hover,
.hpb-carousel--highlight-center .swiper-button-prev:hover {
    background: #667eea;
    color: #fff;
    transform: scale(1.1);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
    .hpb-carousel--infinite-loop .swiper-button-next,
    .hpb-carousel--infinite-loop .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .hpb-carousel--3d-coverflow .swiper-button-next,
    .hpb-carousel--3d-coverflow .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .hpb-carousel--vertical-scroll.swiper {
        height: 400px;
    }

    .hpb-carousel--highlight-center .swiper-button-next,
    .hpb-carousel--highlight-center .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}
