@font-face {
    font-family: yekanbakh;
    font-style: normal;
    font-weight: 900;
    src: url("../fonts/yekan/Yekan Bakh FaNum 07 Heavy.eot");
    src: url("../fonts/yekan/Yekan Bakh FaNum 07 Heavy.ttf");
    src: url("../fonts/yekan/Yekan Bakh FaNum 07 Heavy.woff");
}

@font-face {
    font-family: yekanbakh;
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/yekan/Yekan Bakh FaNum 06 Bold.eot");
    src: url("../fonts/yekan/Yekan Bakh FaNum 06 Bold.ttf");
    src: url("../fonts/yekan/Yekan Bakh FaNum 06 Bold.woff");
}

@font-face {
    font-family: yekanbakh;
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/yekan/Yekan Bakh FaNum 05 Medium.eot");
    src: url("../fonts/yekan/Yekan Bakh FaNum 05 Medium.ttf");
    src: url("../fonts/yekan/Yekan Bakh FaNum 05 Medium.woff");
}

@font-face {
    font-family: yekanbakh;
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/yekan/Yekan Bakh FaNum 04 Regular.eot");
    src: url("../fonts/yekan/Yekan Bakh FaNum 04 Regular.ttf");
    src: url("../fonts/yekan/Yekan Bakh FaNum 04 Regular.woff");
}

@font-face {
    font-family: yekanbakh;
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/yekan/Yekan Bakh FaNum 03 Light.eot");
    src: url("../fonts/yekan/Yekan Bakh FaNum 03 Light.ttf");
    src: url("../fonts/yekan/Yekan Bakh FaNum 03 Light.woff");
}

body {
    direction: rtl;
    font: 14px yekanbakh;
    font-size: 15px;
    background: #f2f6fc;
    color: #141d26;
}

article p {
    margin-bottom: .5rem !important;
}

article h3, article h4 , article h2 , article h1 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
}

#app {
    height: 100%;
}

:focus {
    outline: none !important;
}

.clearfix:after, .clearfix:before {
    content: "";
    display: table
}

.clearfix:after {
    clear: both
}

.rtl {
    direction: rtl;
}

nav .categorys > ul > li {
    display: none;
    transition: .3s ease-in-out;
}

nav .categorys > ul > li.active {
    display: block;
}


.submenu .content li:hover a::before {
    background: #0681eb;
}

.submenu .content li a::before {
    content: "";
    float: right;
    width: 10px;
    position: relative;
    height: 5px;
    opacity: 1;
    background: #e4ebf5;
    margin-top: 8px;
    margin-left: 8px;
    border-radius: 80px;
}

.text-preview {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* فقط 3 خط نمایش داده شود */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    max-height: 5.5rem; /* تقریباً ارتفاع ۳ خط */
}

.text-expanded {
    -webkit-line-clamp: unset;
    max-height: 1000px; /* ارتفاع زیاد برای نمایش کل متن */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
    animation: fadeIn 0.4s ease-in-out;
}

.advantage li:last-child {
    display: none !important;
}


.list-green li::marker {
    color: #16a34a; /* سبز Tailwind → green-600 */
}


.filter_price_ul{
    display: inline-flex;
    width: 100%;
}

.filter_price_ul li{
    width: 50%;
    text-align: center;
    font-size: 16px;
}
.filter_price_ul li:first-child{
    border-left: 1px solid #dedede;
}
.filter_price_ul li .price{
    width: 50%;
    border-bottom: 1px dashed #d0d0d0;
    margin: 10px auto;
}
.price_rang_slider {
    width: 90% !important;
    margin: 30px auto !important;
    height: 7px !important;
}
.noUi-connect {
    background: #377dff !important;
}

.noUi-target {
    border: none !important;
    background: #f9f9fa !important;

}

.noUi-handle {
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    box-shadow: none !important;
    border: 1px solid #D9D9D9;
    border-radius: 53%;
    background: #FFF;
    cursor: pointer;
}


.noUi-handle::after, .noUi-handle::before {
    background: none;
}

.noUi-handle-upper::before , .noUi-handle-upper::after {
    font-family: "Font Awesome\ 5 Pro";
    content: "\F105" !important;
    font-size: 20px;
    top: 1px !important;
    left: 13px !important;
    background: none !important;
}


.noUi-horizontal .noUi-handle {
    top: -10px !important;
}
.noUi-handle-lower::before , .noUi-handle-lower::after {
    font-family: "Font Awesome\ 5 Pro";
    content: "\F104" !important;
    font-size: 20px;
    top: 1px !important;
    left: 12px !important;
    background: none !important;
}

.range_slider_div {
    padding-right: 10px;
    padding-left: 10px;
    direction: ltr;
}

#price_filter_btn{
    border: 1px solid #377dff;
    padding: 8px;
    font-size: 14px;
    display: block;
    margin: 20px;
    border-radius: 8px;
    text-align: center;
    color: #377dff;
    cursor: pointer;
    font-weight: 800;
}


.paginate_div ul li.active a, .paginate_div ul li.active span {
    color: #fff;
}

.paginate_div ul li.active a:hover, .paginate_div ul li.active span:hover {
    background: #006fff;
}

.paginate_div ul li.active a, .paginate_div ul li.active span {
    background: #006fff;
}

.paginate_div ul li a:hover, .paginate_div ul li span:hover {
    background: #dbe4ec;
}

.paginate_div ul li a, .paginate_div ul li span {
    padding: 5px 16px;
    font-size: 20px;
    background: #fff;
    align-items: center;
    border-radius: 8px;
    transition: all .3s;
    cursor: pointer;
}

.paginate_div nav {
    background: none;
    box-shadow: none;
    height: auto;
}

.paginate_div ul li {
    float: right;
    margin: 6px;
    transition: all .3s;
}

.paginate_div .pagination {
    margin: 1rem auto 0 auto;
    clear: both;
    content: "";
    display: table;
}

.paginate_div {
    width: 100%;
    display: block;
    padding-bottom: 15px;
    clear: both;
}


.block-container {
    position: relative;
    width: 120px;
    height: 120px;
    transition: 250ms;
    perspective: 500px;
}
.block-container .btn-back {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: inherit;
    height: inherit;
    border-radius: 32px;
    transition: 250ms;
    transform-style: preserve-3d;
    transform-origin: bottom right;
    transform: rotateZ(15deg);
    will-change: transform;
    box-shadow: 16px 0 40px #e4e4e4;
}
.block-container .btn-back-1 {
    background: linear-gradient(135deg, #4682eb -20%, #01beff 120%);
}
.block-container .btn-back-2 {
    background: linear-gradient(135deg, #394eff -20%, #013fff 120%);
}
.block-container .btn-back-3 {
    background: linear-gradient(135deg, #ebe046 -20%, #ffac01 120%);
}
.block-container .btn-front {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: inherit;
    height: inherit;
    border-radius: 32px;
    background-color: #ffffff33;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: 250ms;
    transform-style: preserve-3d;
    transform-origin: top left;
    overflow: hidden;
}


body .block-container .btn-front svg.frame {
    width: inherit;
    height: inherit;
}
body .block-container .btn-front svg.frame rect {
    width: inherit;
    height: inherit;
    fill: none;
    stroke-width: 4;
}
body .block-container .btn-front svg.icon {
    position: absolute;
    inset: 50% 0 0 50%;
    transform: translate(-50%, -50%);
}
body .block-container:hover > .btn-back {
    transform: translateZ(20px) rotateZ(15deg) rotateX(-20deg) rotateY(-20deg);
}
body .block-container:hover > .btn-front {
    transform: translateZ(80px) translateY(-5px) rotateX(15deg) rotateY(15deg);
}


@media (max-width: 640px) {
    .filter_search {
        transition: transform .3s ease;
        transform: translateX(100%);
        position: fixed !important;
        right: 0;
        top: 0;
        background: white;
        width: 85%;
        height: 100vh;
        overflow-y: auto;
    }

    .filter_search.active {
        transform: translateX(0);
    }

    #filter_overlay {
        display: none;
    }

    #filter_overlay.active {
        display: block;
        background: rgba(0,0,0,.4);
        position: fixed;
        inset: 0;
        z-index: 40;
    }
}


.shine-effect {
    position: absolute;
    top: -150%;
    left: -150%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.25) 46%,
        rgba(255,255,255,0.6) 50%,
        rgba(255,255,255,0.25) 54%,
        rgba(255,255,255,0) 100%
    );
    transform: translate(-100%, -100%) rotate(0deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.group:hover .shine-effect {
    animation: shineMove 1.4s forwards ease-out; /* سرعت کمتر */
    opacity: 1;
}

@keyframes shineMove {
    0% {
        transform: translate(-100%, -100%);
    }
    100% {
        transform: translate(100%, 100%);
    }
}
