/*poster*/
.header-img{
    position: relative;
    margin-top: 100px;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 20px;
    object-position: center;
    box-shadow: 8px 8px 10px rgba(0, 0, 0, 0.7);
}
@media (max-width: 991px) {
    .header-img{
        margin-top: 70px;
    }
}
@media (max-width: 768px) {
    .header-img{
        margin-top: 70px;
    }
}
/*category*/
.category{
    text-decoration: none;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.category .category-img{
    width: 160px;
    height: 160px;
    border-radius: 15px;

}
@media (max-width: 576px) {
    .category .category-img{
        width: 130px;
        height: 130px;
    }
}
.shelf-wrapper {
    position: relative;
    margin-top: 40px;
}

.shelf {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    /*padding-bottom: 30px;*/
}

.shelf::-webkit-scrollbar {
    display: none;
}

.shelf > div {
    flex: 0 0 auto;
    width: 180px;
}

.category-img {
    box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

/* قفسه چوبی */

.wood {
    width: 100%;
    height: 25px;
    margin-top: -16px;
    background: linear-gradient(to bottom, #c28b4e, #a06a2c);
    border-radius: 8px;
    box-shadow: 0 8px 10px rgba(0,0,0,0.2);
}
/*scroll*/

.scroll-container {
    position: relative;
}

.box-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding-bottom: 1rem;
}

.box-scroll::-webkit-scrollbar {
    display: none;
}


.product{
    flex: 0 0 auto;
}
.box{
    flex: 0 0 auto;
}




.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: transparent;
    color: #34699a;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.left-btn { left: 0; }
.right-btn { right: 0; }

.scroll-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}
.scroll-container:hover .scroll-btn {
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 768px) {
    .scroll-btn {
        display: none;
    }
}
.box-header{
    position: absolute;
    top: 0;
    /*left: 50%;*/
    right: 0;
    /*transform: translateX(-50%);*/
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    width: auto;
    height: 60px;
    border-radius: 0 15px 0 15px;
    /*border-bottom: 2px solid white;*/
    font-size : clamp(11px , 1.3vw , 30px);

}

@media (max-width: 576px) {
    .box-header{
        width: 130px;
        height: 50px;
    }
}
.book-showcase{
    background:#0f172a;
    padding:100px 8%;
    text-align:center;
    color:#f59e0b;
}

.showcase-text h2{
    font-size:28px;
    margin-bottom:60px;
}



.book-cards{
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
}

.book-card{
    position:relative;
    width:220px;
    height:320px;
    border-radius:18px;
    overflow:hidden;
    transform:rotate(-3deg);
    transition:.4s ease;
    box-shadow:0 20px 40px rgba(0,0,0,.4);
}

.book-card:nth-child(2){
    transform:rotate(2deg);
}

.book-card:hover{
    transform:rotate(0) scale(1.08);
}

.book-card img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.book-info{
    position:absolute;
    bottom:0;
    width:100%;
    background:linear-gradient(to top, rgba(0,0,0,.8), transparent);
    padding:20px;
}

.book-info h3{
    font-size:16px;
    margin-bottom:10px;
}

.book-info a{
    padding:8px 16px;
    border:none;
    background:#f59e0b;
    color:#fff;
    border-radius:20px;
    cursor:pointer;
    font-size:13px;
}

@media(max-width:768px){

    .showcase-text h2{
        font-size:20px;
        margin-bottom:40px;
    }

    .book-card{
        width:160px;
        height:240px;
    }

}