/* Category Slider Styles */

.common-category-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Default to full screen, can be adjusted via container */
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
    font-family: 'Outfit', sans-serif;
    /* Ensure font is available or inherit */
}

/* Background Slider */
.common-category-slider-wrapper .bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.common-category-slider-wrapper .swiper-bg {
    width: 100%;
    height: 100%;
}

.common-category-slider-wrapper .swiper-bg .swiper-slide {
    background-size: cover;
    background-position: center;
}

.common-category-slider-wrapper .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

/* Content Wrapper */
.common-category-slider-wrapper .content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
}

.common-category-slider-wrapper .content-wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.common-category-slider-wrapper .content-wrapper:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
    z-index: 1;
    pointer-events: none;
}

.common-category-slider-wrapper .container-grid {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Left Side: Text & Nav */
.common-category-slider-wrapper .left-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 0 0 45%;
    padding-left: 5%;
    z-index: 20;
}

@media (max-width: 1440px) {
    .common-category-slider-wrapper .left-content {
        flex: 0 0 35%;
    }
}

@media (max-width: 1024px) {
    .common-category-slider-wrapper .left-content {
        flex: 0 0 30%;
    }
}

/* Vertical Nav (Line + Dots) */
.common-category-slider-wrapper .vertical-nav {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 250px;
    justify-content: space-between;
}

.common-category-slider-wrapper .nav-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
    z-index: 0;
}

.common-category-slider-wrapper .nav-dots {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    z-index: 1;
}

.common-category-slider-wrapper .nav-dot {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.common-category-slider-wrapper .nav-dot.active {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    background-color: transparent;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

/* Text Content */
.common-category-slider-wrapper .text-content {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.common-category-slider-wrapper .info-block {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.common-category-slider-wrapper .info-block.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

.common-category-slider-wrapper .info-block h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #fff;
}

.common-category-slider-wrapper .info-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 450px;
    color: rgba(255, 255, 255, 0.9);
}

.common-category-slider-wrapper .btn-product {
    display: inline-block;
    padding: 15px 35px;
    background-color: #fff;
    color: #000;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-top: 20px;
}

.common-category-slider-wrapper .btn-product:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}


/* Right Side: Foreground Slider - Full Bleed */
.common-category-slider-wrapper .right-content {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 60%;
    height: 600px;
    padding-left: 0;
    overflow: visible;
    z-index: 15;
    display: flex;
    align-items: center;
}

@media (max-width: 1440px) {
    .common-category-slider-wrapper .right-content {
        width: 65%;
    }
}

@media (max-width: 1024px) {
    .common-category-slider-wrapper .right-content {
        width: 60%;
    }
}

.common-category-slider-wrapper .swiper-fg {
    width: 100%;
    height: 100%;
    padding: 20px 0 20px 10px;
    position: relative;
}

.common-category-slider-wrapper .swiper-fg:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 90px;
    height: 340px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.9));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.common-category-slider-wrapper .swiper-fg.scrolled::before {
    opacity: 1;
}

.common-category-slider-wrapper .swiper-fg .swiper-slide {
    width: 320px;
    height: 480px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Inactive slides styling */
.common-category-slider-wrapper .swiper-fg .swiper-slide:not(.swiper-slide-active) {
    transform: scale(0.85);
    opacity: 0.8;
}

.common-category-slider-wrapper .card-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.common-category-slider-wrapper .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.common-category-slider-wrapper .card-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    z-index: 2;
}


/* Responsive */
@media (max-width: 1024px) {
    .common-category-slider-wrapper .container-grid {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 5% 0;
        justify-content: flex-start;
    }

    /* Left Side: Text on Top */
    .common-category-slider-wrapper .left-content {
        flex: none;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        order: 1;
        padding-left: 0;
        text-align: left;
    }

    /* Hide Vertical Nav on Mobile */
    .common-category-slider-wrapper .vertical-nav {
        display: none;
    }

    .common-category-slider-wrapper .text-content {
        min-height: auto;
        margin-top: 60px;
    }

    .common-category-slider-wrapper .info-block {
        position: relative;
        top: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .common-category-slider-wrapper .info-block.active {
        display: block;
        transform: none;
    }

    .common-category-slider-wrapper .info-block h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .common-category-slider-wrapper .info-block p {
        font-size: 1rem;
        margin-bottom: 20px;
        max-width: 100%;
    }

    .common-category-slider-wrapper .btn-product {
        padding: 12px 30px;
        font-size: 0.9rem;
        margin-top: 10px;
    }

    /* Right Side: Slider at Bottom */
    .common-category-slider-wrapper .right-content {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        height: 400px;
        order: 2;
        padding-left: 0;
        margin-top: auto;
    }

    .common-category-slider-wrapper .swiper-fg {
        padding: 20px 0 20px 0;
    }

    .common-category-slider-wrapper .swiper-fg .swiper-slide {
        width: 220px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .common-category-slider-wrapper .info-block h1 {
        font-size: 2rem;
    }

    .common-category-slider-wrapper .right-content {
        height: 350px;
        margin-bottom: 20px;
    }

    .common-category-slider-wrapper .swiper-fg .swiper-slide {
        width: 180px;
        height: 260px;
    }
}

/* Pagination Styles */
.common-category-slider-wrapper .swiper-pagination {
    bottom: 0px !important;
    text-align: center;
    width: 100%;
    z-index: 20;
}

.common-category-slider-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1 !important;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.common-category-slider-wrapper .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .common-category-slider-wrapper .swiper-pagination {
        bottom: 10px !important;
    }
}