html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
}

 .row, .col, [class*="col-"] {
    max-width: 100%;
    overflow-x: visible;
}

img, video, iframe, table {
    max-width: 100%;
    height: auto;
}


.container-header{
    background-color: transparent;
}

.container-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease;
}

.container-header.scrolled {
    /*background: rgba(0,0,0,0.7);*/
    background: rgba(81, 81, 81, 0.8);

    transition: 2s;
}

.container-header.scrolled::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
    width: 100%;
    max-width: 1100px;
    border-radius: 9999px;
}


















.category-img{
    width: 160px;
    height: 160px;
    border-radius: 50%;
    /*padding: 5px;*/

}
/*@media (max-width: 576px) {*/

/*    .category-img{*/
/*        width: 110px;*/
/*        height: 110px;*/
/*    }*/
/*}*/
.category-section h2 {
    color: white;
    font-weight: 700;
}
.category-section .container {
    background-image: linear-gradient(to right top, #ffffff, #ced6e3, #8fb3c3, #4f9296, #1e6f5c);
}

.container-fluid {
    background-image: linear-gradient(to right top, #ffffff, #ced6e3, #8fb3c3, #4f9296, #1e6f5c);

}
.article-section{
    background-image: none;
    background-color: transparent;
}
.category {
    text-align: center;
    border-radius: 1rem;
    background: #E8F5F1FF;
}

.category a {
    display: block;
    text-decoration: none;
}

.category a p {
    color: #333;
    margin-top: 0.8rem;
    font-weight: 500;
}
.poster a img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    aspect-ratio: 16 / 9;
    padding: 4px;
    border: 2px solid #1E6F5C;
}










.article-card {
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.article-card p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* حداکثر 3 خط */
    -webkit-box-orient: vertical;
}



/*اسکرول*/
.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;
}


.brand-item{
    flex: 0 0 auto;
}
.category {
    flex: 0 0 auto;
    /*width: 100px; !* یا هر عدد دلخواه *!*/
}



.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: transparent;
    color: #1E6F5C;
    border: none;
    /*padding: 0.5rem 1rem;*/
    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;
    }
}
/*slider*/
body{
    overflow-x: hidden;
}

.slider{
    position: relative;
    margin: 15px auto;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    /*overflow: hidden;*/
}
.item-slider{
    position: absolute;
    inset: 0 0 0 0;
    /*overflow: hidden;*/
    opacity: 0;
    transition: 0.5s;
}
.item-slider img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    object-position: center;

}


.item-slider.active{
    opacity: 1;
    /*z-index: 10;*/
}





.thumbnail {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    display: flex;
    gap: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}
.thumbnail::-webkit-scrollbar{
    width: 0;
}
/*.thumbnail-item{*/
/*    width: 150px;*/
/*    height: 150px;*/
/*    filter: brightness(0.5);*/
/*    transition: .5s;*/
/*    flex-shrink: 0;*/
/*    transform-style: preserve-3d;*/

/*}*/
.thumbnail-item {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}
/*.thumbnail {*/
/*    perspective: 1000px;*/
/*    !*overflow: visible;*!*/
/*}*/
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*.thumbnail-item.active {*/
/*    opacity: 1;*/
/*    border-color: white;*/
/*    transform: scale(1.1);*/
/*}*/

/*.thumbnail-item img{*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    border-radius: 10px;*/
/*}*/
.thumbnail-item.active{
    filter: brightness(1.5);
    transform: scale(1.1) translateZ(20px)  ;

    z-index: 10;
    /*box-shadow: 0 10px 20px rgba(0,0,0,0.5);*/

}
.thumbnail-item:not(.active) {
    transform: scale(0.8) translateZ(0);
}



@media (max-width: 1100px){
    .slider{
        margin: 5px;
        margin-bottom: 90px;
    }

    .thumbnail {
        width: 80%;
        bottom: -80px;
        gap: 8px;
        padding: 8px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .thumbnail-item {
        width: 70px;
        height: 55px;
    }
}

@media (max-width: 576px){
    .slider{
        max-height: 55vh;
    }

    .thumbnail {
        width: 90%;
        justify-content: center;
        flex-wrap: wrap;
        bottom: -70px;
    }

    .thumbnail-item {
        width: 50px;
        height: 40px;
    }
}
@media (max-width: 576px) {
    .category-img{
        width: 100px;
        height: 100px;
    }
}
















/*brand*/
.container-brand{
    position: relative;
    background-color: #1E6F5C;
    height: 130px;
    margin-bottom: 100px;
    border-radius: 15px;

}

.brand-item {
    width: 120px;       /* اندازه دایو اصلی */
    height: 120px;
    /*transform: rotate(45deg); !* دایو میچرخد *!*/
    transform: rotate(0deg); /* شروع زاویه */
    transition: transform 2.5s ease-out; /* چرخش نرم */
    margin-right: 30px;
    margin-left: 30px;
    margin-top: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background-color:  #E8F5F1FF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);

}


.img-wrapper {
    position: absolute;
    /*top: -25%;*/
    /*left: -25%;*/
    /*width: 200%;   !* بزرگتر از دایو برای پوشش کامل بعد از چرخش *!*/
    /*height: 200%;*/
    /*transform: rotate(-45deg); !* عکس صاف می‌شود *!*/
    transform: rotate(0deg); /* شروع زاویه */
    transition: transform 1s ease-out; /* چرخش نرم */
    /*display: flex;*/
    /*align-items: center;*/
    /*justify-content: center;*/
    object-fit: contain;
    /*width: 120px;       !* اندازه دایو اصلی *!*/
    /*height: 120px;*/

}
.img-wrapper img{
    object-fit: contain;
    width: 100px;       /* اندازه دایو اصلی */
    height: 100px;
}






@media (max-width: 576px) {
    .brand-item {
        width: 100px;
        height: 100px;
        margin-right: 15px;
        margin-left: 15px;
    }
}





.section-poster {
    position: relative;
    /*padding: 40px 10px;*/
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* خیلی مهم برای محدود کردن بلور داخل بخش */

}

/*.section-poster::before {*/
/*    content: "";*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background-image: url("../img/header.png"); !* همان تصویر *!*/
/*    background-size: cover;*/
/*    background-position: center;*/
/*    filter: blur(70px); !* میزان بلور *!*/
/*    z-index: 1; !* پشت تصویر اصلی *!*/
/*    aspect-ratio: 16 / 9;*/

/*}*/

.section-poster img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    position: relative;
    z-index: 2; /* روی بک‌گراند بلور */
    /*box-shadow: 8px 8px rgba(0, 0, 0, 0.8);*/
}

.item-slider{
    position : absolute;
    inset : 0;
    opacity : 0;
    transition : 0.5s;
    pointer-events : none ;
    
}
.item-slider.active{
    opacity : 1;
    pointer-events : auto ;
    z-index: 10;
}
