/* Swiper Custom Styles for Southteam Theme */

/* Basic Swiper Container */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

/* Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007aff;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #007aff;
    color: #fff;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-family: 'themify';
    font-size: 20px;
    font-weight: bold;
}

.swiper-button-prev:after {
    content: '\e629';
}

.swiper-button-next:after {
    content: '\e628';
}

/* Pagination */
.swiper-pagination {
    position: absolute;
    text-align: center;
    transition: 300ms opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #007aff;
}

.swiper-pagination-bullet:hover {
    opacity: 0.5;
}

/* Horizontal Pagination */
.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 10px;
    left: 0;
    width: 100%;
}

/* Portfolio Carousel Specific */
.portfolios .swiper-slide {
    padding: 10px;
}

.portfolio--item {
    transition: transform 0.3s;
}

.portfolio--item:hover {
    transform: translateY(-5px);
}

/* News Carousel Specific */
.news-carousel .swiper-slide {
    height: auto;
}

/* Product Category Carousel */
.danhmuc-carousel .swiper-slide {
    height: auto;
}

.cat-item-carousel {
    transition: transform 0.3s;
}

.cat-item-carousel:hover {
    transform: translateY(-5px);
}

/* Gallery Carousel */
.gallery-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-carousel-type-1 .swiper-wrapper {
    padding: 20px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {

    .product-carousel-main .swiper-slide {
        max-width: 100% !important;
    }

    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }

    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 16px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Disable default Swiper button styles */
.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Custom carousel navigation for product carousel */
.carousel-navigation {
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-navigation button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-navigation button:hover {
    background: #000;
    color: #fff;
}

/* Style carousel classes compatibility */
.style-carousel-1 .swiper-slide,
.style-carousel-2 .swiper-slide,
.style-carousel-3 .swiper-slide,
.style-carousel-4 .swiper-slide,
.style-carousel-5 .swiper-slide,
.style-carousel-6 .swiper-slide,
.style-carousel-7 .swiper-slide {
    height: auto;
}

/* Fix for centered slides */
.swiper-centered .swiper-slide {
    text-align: center;
}

/* Smooth transitions */
.swiper-slide {
    transition: transform 0.3s ease;
}

.swiper-slide-active {
    z-index: 1;
}