.bookshelf_2D_container {
    width: 100%;
    margin: 16px 0;
    position: relative;
    font-family: 'Nunito Sans';

}

.bookshelf_2D_header {
    display: block;
    margin-bottom: 15px;
    text-decoration: none;
}

.bookshelf_2D_title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Swiper container */
.bookshelf_2D_wrapper {
    position: relative;
    width: 100%;
    padding: 3% 5%; 
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    overflow: visible;
}

.bookshelf_2D_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1240/585;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.bookshelf_2D_swiper_inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    -webkit-overflow-scrolling: touch;
}

/* Swiper wrapper & slide */
.bookshelf_2D_swiper_wrapper {
    will-change: transform;
    transform: translateZ(0);
}

/* slide = 1 khung background */
.bookshelf_2D_slide {
    width: 100%;
    overflow: hidden;
}

/* card item */
.bookshelf_2D_item {
    height: 100%;
    padding: 9px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ảnh */
.bookshelf_2D_item img {
    width: 100%;
    aspect-ratio: 249/351;
    object-fit: contain;
    /* margin-bottom: 8px; */
    border-radius: 24px;


    /* box-shadow: 0px 0px 12px 0px rgba(27, 136, 233, 0.25); */
    box-shadow: 0 0 6px rgba(27, 136, 233, 1);
    margin-bottom: 10px;
    background-color: white;
}

.bookshelf_2D_name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;

    overflow: hidden;

    font-family: 'Nunito Sans';
    font-weight: 700;
    font-size: 24px;
    text-align: center;

    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #0044ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 6px rgba(0, 68, 255, 0.7)) drop-shadow(0 0 2px rgba(0, 68, 255, 1));
    padding: 5px 0;
}

.book-price-2d-container{

    display: flex;
    align-items: center;
    justify-content: center;
}

.bookshelf_2D_price {
    font-weight: 700;
    font-size: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #ff0033 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 6px rgba(255, 0, 51, 0.6)) drop-shadow(0 0 2px rgba(255, 0, 51, 0.8));
}


.bookshelf_2D_price_org {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    text-decoration: line-through;
    margin-left: 8px;
}

.bookshelf_2D_btn {
    margin-top: auto;
    background: #ff6f00;
    color: #fff;
    text-align: center;
    padding: 8px 0;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}


.background-swiper-next-btn-2d,
.background-swiper-prev-btn-2d {
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.background-swiper-next-btn-2d {
    background-image: url('https://cdn1.fahasa.com/media/hoisach_2026/arrow-right-neon.svg');
    right: -1.5%;
}

.background-swiper-prev-btn-2d {
    background-image: url('https://cdn1.fahasa.com/media/hoisach_2026/arrow-left-neon.svg');
    left: -1.5%;
}



.neon-btn {
    position: relative;
    /* padding: 14px 32px; */
    height: 45px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(90deg, #ff0055, #6a00ff, #00d2ff);
    padding: 2px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(106, 0, 255, 0.5), inset 0 0 5px rgba(255, 0, 85, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 12px 4px 4px

}

.neon-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0.5rem;
    background-color: #0a061c;
    border-radius: 6px;
    text-align: center;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    z-index: 1;
}

.bookshelf_2D_banner {
    /* width: 100%; */
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* .bookshelf_2D_banner_img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
} */

.bookshelf_2D_banner_img {
    display: inline-block;
    max-width: 70%;
    height: auto;
}

.bookshelf_2D_item .discount-badge {
    position: absolute;
    top: 32px;
    left: 9px;
    background: linear-gradient(180deg, #FD3E74 0%, #D10A28 100%);

    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 8px;
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
    z-index: 11;
}


/* Hover desktop */
@media (min-width: 993px) {
    .background-swiper-next-btn-2d:hover,
    .background-swiper-prev-btn-2d:hover {
        transform: translateY(-50%) scale(1.2);
        filter: brightness(1.2);
        opacity: 1;
    }

    .neon-btn:hover {
        filter: brightness(1.5) saturate(2);
        box-shadow: 0 0 20px rgba(106, 0, 255, 0.8), inset 0 0 10px rgba(0, 210, 255, 0.5);
    }
}
/* Hover desktop */
@media (max-width: 1024px) {
    .bookshelf_2D_name{
        font-size: 18px;
    }

    .bookshelf_2D_price{
        font-size: 18px;
    }

    .bookshelf_2D_price_org{
        font-size: 16px;
    }

    .neon-btn{
        font-size: 16px;
        height: 40px;
    }

}

@media (max-width: 992px) {
    .bookshelf_2D_name{
        font-size: 16px;
    }

    .bookshelf_2D_price{
        font-size: 14px;
    }

    .bookshelf_2D_price_org{
        font-size: 12px;
        margin-left: 6px;
    }

    .bookshelf_2D_item img{
        aspect-ratio: 260/340;
    }

    .neon-btn{
        font-size: 14px;
        height: 40px;
    }

    .background-swiper-next-btn-2d {
        right: -3.2%;
    }

    .background-swiper-prev-btn-2d {
        left: -3.2%;
    }

}
@media (max-width: 768px) {
    .bookshelf_2D_wrapper{
        padding: 2% 4%;
    }
    .bookshelf_2D_item img{
        aspect-ratio: 1;
    }

    .bookshelf_2D_price{
        font-size: 13px;
    }

    .bookshelf_2D_price_org{
        font-size: 11px;
        margin-left: 4px;
    }

    .background-swiper-next-btn-2d {
        right: -2.6%;
        width: 60px;
        height: 60px;
    }

    .background-swiper-prev-btn-2d {
        left: -2.6%;
        width: 60px;
        height: 60px;
    }
    .neon-btn{
        font-size: 14px;
        height: 36px;
    }

    .bookshelf_2D_item .discount-badge {
        padding: 2px 6px;
        font-size: 12px;
        top: 20px;
        left: 9px;
    }

    .bookshelf_2D_item img{
        border-radius: 12px;
    }
}
@media (max-width: 600px) {
    .bookshelf_2D_item{
        padding: 6px;
    }
    .bookshelf_2D_name{
        font-size: 14px;
        padding: 2px 0;
    }

    .bookshelf_2D_price{
        font-size: 12px;
    }

    .bookshelf_2D_price_org{
        font-size: 10px;
    }

    .neon-btn{
        font-size: 12px;
        height: 30px;
        border-radius: 8px;
        margin: 0;
    }

    .background-swiper-next-btn-2d {
        display: none;
    }

    .background-swiper-prev-btn-2d {
        display: none;

    }
    .bookshelf_2D_container {
        width: 100%;
        overflow: hidden;
    }

    .bookshelf_2D_wrapper{
        padding: 3%;
        
    }
    .bookshelf_2D_bg {
        aspect-ratio: 1;
        background-position: top center;
    }
    .bookshelf_2D_item img {
        border-radius: 12px;
        /* aspect-ratio: 1; */
        margin-bottom: 0;
    }

    .bookshelf_2D_item .discount-badge{
        left: 6px;
    }
    /* .bookshelf_2D_swiper_inner {
        height: 65%;
        width: 100%;
    } */
}