@font-face {
    font-family: vaz;
    src: url(/frontend/assets/fonts/BYekanBold.ttf);
}

@font-face {
    font-family: rub;
    src: url(/frontend/assets/fonts/BYekan.ttf);
}



html {
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    overflow-x: hidden;
}




body {
    min-width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    overflow-x: hidden;
    justify-content: flex-start;
    flex-direction: column;
    scroll-behavior: smooth;
}

main {
    direction: ltr;
    width: 100%;
    min-height: 100vh;
    z-index: 0;
    animation: fadeIn 500ms ease;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 300ms ease;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch !important; 
    background: var(--bg);
    will-change: transform;
    
}

.c-scrollbar {
    display: none !important;
}

*::-webkit-scrollbar {
    width: 8px !important;
}

*::-webkit-scrollbar-track {
    background: var(--bg) !important;
}

*::-webkit-scrollbar-thumb {
    background: var(--mirror) !important;
    border: 4px solid var(--mirror) !important;
    border-radius: 150px !important;
}

.id {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 150px;
    z-index: 1;
    strong:nth-of-type(1) {
        position: absolute;
        text-align: center;
        font-family: vaz;
        font-size: 3em;
        color: var(--p-s);
        z-index: 1;
        
    }
    strong:nth-of-type(2) {
        position: absolute;
        text-align: center;
        font-family: rub;
        font-size: 2.5em;
        opacity: 0.1;
        z-index: 0;
        color: var(--text-1);
        text-transform: uppercase;
        transform: rotateY(180deg);
    }
    hr {
        background: var(--item-2);
        border:none;
        width: 200px;
        height: 2px;
        border-radius: 150px;
        bottom: -40px;
        position: relative;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}
@keyframes fadeOut {
    from {
        opacity: 1;
    } to {
        opacity: 0;
    }
}
:root {
    --bg: #ffffff;
    --bg-a:#dbd8d8cb;

    --p-color: #bd5000;
    --s-color: #4798a6;
    --p-color-d: #bd5000;
    --s-color-d: #4798a6;
    --p-s: #bd5000;
    --s-p: #4798a6;

    --header: #000000;
    --text-1:#252525;
    --text-2:white;
    --text-1-s:#252525;
    --text-2-s:white;

    --item-1:rgb(255, 255, 255);
    --item-1-a:rgba(255, 255, 255,0.9);
    --item-1-s:rgb(255, 255, 255);
    --item-1-a-s:rgba(255, 255, 255,0.9);
    --item-2:rgb(55, 55, 55);
    --item-2-a:rgba(45, 45, 45,0.9);
    --item-2-s:rgb(45, 45, 45);
    --item-2-a-s:rgba(45, 45, 45,0.9);

    --img:linear-gradient(to right,#ffffff,#c4c4c4);

    --btn-1:rgb(31, 31, 31);
    --btn-1-a:rgba(31, 31, 31, 0.9);
    --btn-1-s:rgb(31, 31, 31);
    --btn-1-a-s:rgba(31, 31, 31, 0.9);
    --btn-2:rgb(255, 255, 255);
    --btn-2-a:rgba(255, 255, 255,0.9);
    --btn-2-s:rgb(255, 255, 255);
    --btn-2-a-s:rgba(255, 255, 255,0.9);

    --succ: #28A745;
    --err: #DC3545;
    --warn: #FFC107;
    --info: #f3f3f3;
    
    --black-static:black;
    --white-static:white;

    --mirror:rgba(189, 188, 188, 0.75);
    --gray:rgb(224, 224, 224);
    --link:rgb(82, 82, 245);
}

[data-theme="dark"] {

        --bg: #242424;
        --bg-a:#424242a8;
    
        --p-color: #d85a00;
        --s-color: #4798a6;
        --p-color-d: #d85a00;
        --s-color-d: #4798a6;
        --p-s: #d85a00;
        --s-p: #4798a6;

        --header: #ffffff;
        --text-1:#d4d4d4;
        --text-2:#000000;
        --text-1-s:#000000;
        --text-2-s:white;
    
        --item-1:rgb(36, 36, 36);
        --item-1-a:rgba(36, 36, 36, 0.9);
        --item-1-s:rgb(255, 255, 255);
        --item-1-a-s:rgba(255, 255, 255,0.9);
        --item-2:rgb(255, 255, 255);
        --item-2-a:rgba(255, 255, 255,0.9);
        --item-2-s:rgb(19, 19, 19);
        --item-2-a-s:rgba(19, 19, 19,0.9);
    
        --img:linear-gradient(to right,#ffffff,#7c7c7c);
    
        --btn-1:rgb(255, 255, 255);
        --btn-1-a:rgba(255, 255, 255, 0.9);
        --btn-2:rgb(0, 0, 0);
        --btn-2-a:rgba(0, 0, 0, 0.9);
        --btn-1-s:rgb(0, 0, 0);
        --btn-1-a-s:rgba(0, 0, 0, 0.9);
        --btn-2-s:rgb(255, 255, 255);
        --btn-2-a-s:rgba(255, 255, 255,0.9);

        --succ: #4CAF50;
        --err: #F44336;
        --warn: #FFEB3B;
        --info: #f8f8ff;


        --black-static:black;
        --white-static:white;

        --mirror:#414141a2;
        --gray:rgb(224, 224, 224);
        --link:rgb(0, 195, 255);
}
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-user-drag: none;
}


*::selection {
    color:var(--text-2);
    background:var(--item-2-a);
}



* {
    user-select: none;
    outline: none;
}

ul {
    padding: 0;
}

#img-box {
    background: linear-gradient(to right,#ffffff,#c4c4c4,#ffffff);
    background-size: 400% 100%;
    animation:img 3s ease infinite;
}

.grecaptcha-badge { 
    display: none !important;
}

#back,#prev_page {
    position: absolute;
    cursor: pointer;
    top:25px;
    left:25px;
    color:var(--item-2);
    font-size: 2em;
    z-index:1000;
}


.blogs {
    display: flex;
    align-items: center;
    justify-content:center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 50px 0;
}
.blogs aside {
    display: flex;
    max-width:1340px;
    flex-direction: row;
    align-items: center;
    justify-content:center;
    flex-wrap: wrap;
}
.blogs li {
    position: relative;
    width: 220px;
    height: 330px;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: left;
    font-size: 10px;
    margin:70px;
    box-shadow: 10px 10px 50px rgba(0, 0, 0, 0.4);
    transition: box-shadow 300ms ease;
}

@media screen and (max-width:900px) {
    .blogs li strong {
        transform: translate(0,0) !important;
        font-size: 1em;
    }
    
    .blogs li:hover strong {
        transform: unset !important;
    }

    .blogs li p {
        transform: translate(0,20%) !important;
    }

    .blogs li:hover p {
        transform:unset !important;
    }
}

.blogs li:hover {
    box-shadow: none;
}

.blogs li:hover strong {
    transform: translateX(0);
}

.blogs li:hover p {
    transform: translate(0,23%);
}


.blogs li strong {
    transition: transform 300ms ease;
    position: absolute;
    top: 5px;
    font-size: 3em;
    white-space: nowrap;
    font-family: vaz;
    color:var(--text-1);
    padding-bottom: 5px;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
}
.blogs li p {
    transition: transform 300ms ease;
    font-size: 1.5em;
    font-family: rub;
    margin:0;
    width:70%;
    height: 250px;
    position: absolute;
    transform: translate(50%,50%);
    overflow-y: hidden;
    text-overflow: ellipsis;
    z-index: 2;
    color:var(--text-1);

}

.blogs div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top:0;
    left:0;
    overflow: hidden;
    z-index: 0;
}

.blogs div img {
    height: 120%;
    object-fit: contain;
}


.blogs li section {
    width: 100%;
    height: 100%;
    background:rgba(255, 255, 255, 0.3);
    position: absolute;
    top:0;
    right:0;
    margin:0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] {
    .blogs li section {
        background:rgba(0, 0, 0, 0.3);
    }
}

.blogs li a {
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

.blog {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    box-sizing: border-box;
    ul {
        width: 1500px;
        display: flex;
        align-items: flex-start;
        justify-content: space-around;
        flex-direction: row;
        flex-wrap: wrap;
        list-style:none;
        gap: 50px;
        -webkit-gap:50px;
        @media screen and (max-width:1500px) {
            width: 90%;
        }
        li {
            width: 420px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            flex-direction: column;
            position: relative;
            a {
                width: 100%;
                aspect-ratio: 16 / 9;
                border-radius: 20px;
                overflow: hidden;
                padding: 0;
                margin: 0 0 20px 0 !important;
                box-shadow: 0 30px 150px rgba(0,0,0,.3);
                div {
                    width: 100%;
                    height: 100%;
                    border-radius: 20px;
                    overflow: hidden;
                    background: var(--bg-a);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    position: relative;
                    cursor: pointer;
                    img {
                        width: 120%;
                        transition: transform 500ms ease;
                    }
                    span {
                        width: 100%;
                        height: 100%;
                        position: absolute;
                        top: 0;
                        right: 0;
                        opacity: 0;
                        background: rgba(0, 0, 0, 0.4);
                        transition: opacity 300ms ease;
                        display: grid;
                        place-items: center;
                        i {
                            font-size: 2em;
                            color: var(--p-s);
                            width: 60px;
                            height: 60px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            border-radius: 150px;
                            background: var(--item-1);
                        }
                    }
                }
                div:hover span {
                    opacity: 1;
                }
                div:hover img {
                    transform: scale(1.2);
                }
            }
            h2 {
                color: var(--p-s);
                font-family: rub;
                font-size: 1em;
                margin: 5px 15px;
                padding: 0;
            }
            h1 {
                color: var(--header);
                font-family: vaz;
                font-size: 1.5em;
                margin: 2px 15px;
                padding: 0;
            }
            p {
                width: 90%;
                font-family: rub;
                color: var(--text-1);
                margin:15px;
            }
            a:has(button) {
                width: unset;
                aspect-ratio: unset;
                text-decoration: none;
                margin: 0 15px !important;
                cursor: pointer;
                button {
                    background: none;
                    font-size: 1em;
                    text-align: right;
                    font-family: vaz;
                    border: none;
                    position: relative;
                    color: var(--s-p);
                    padding: 0;
                    cursor: pointer;
                    transition: color 300ms ease;
                }
                button::after {
                    content: '';
                    position: absolute;
                    bottom: -5px;
                    right: 0;
                    width: 100%;
                    height: 1px;
                    border-radius: 150px;
                    background: var(--item-2);
                }
                button:hover {
                    color: var(--p-s);
                }
            }
        }
    }
}

@keyframes img {
    50% {
        background-position: 100% ;
    }

    0%,100% {
        background-position:200%;
    }
}

.product-field {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    article {
        max-width:100%;
        width:100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        span:hover > #controls {
            opacity: 1;
        }
        span:first-child strong {
            margin: 20px 0 10px 0;
        }
        span {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            position: relative;
            strong {
                width: 95%;
                margin: 10px 0;
                font-family: vaz;
                font-size: 1.3em;
                color: var(--text-1);
            }
            ul::-webkit-scrollbar {
                display: none;
            }
            
            ul {
                margin: 0;
                width: 97%;
                overflow: hidden;
                padding: 15px 0;
                display: flex;
                align-items: center;
                flex-direction: row;
                flex-wrap: nowrap;
                position: relative;
                overflow-x: auto;
                scroll-behavior: smooth;
                li {
                    min-width: 300px;
                    max-width: 300px;
                    height: 420px;
                    background: var(--bg);
                    margin: 0 7px;
                    list-style: none;
                    a {
                        width: initial;
                        height: initial;
                        text-decoration: none;
                        color: initial;
                        margin: 0;
                        padding: 0;
                        display: flex;
                        align-items: center;
                        flex-direction: column;
                        justify-content: center;
                        box-sizing: border-box;
                        padding: 8px;
                        position: relative;
                        #product_img {
                            width: 270px;
                            min-height: 270px;
                            max-height: 270px;
                            border-radius: 15px;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            overflow: hidden;
                            img {
                                width: 100%;
                            }
                        }
                        h2 {
                            font-family: vaz;
                            font-size: 1.3m;
                            margin: 0;
                            margin-top: 20px;
                            font-weight: lighter;
                            text-align: center;
                            width: 90%;
                            overflow: hidden;
                            display: -webkit-box;
                            -webkit-line-clamp: 2;
                            -webkit-box-orient: vertical;
                            text-overflow: ellipsis;
                            color: var(--text-1);
                        }
                        #product_details {
                            width: 100%;
                            height: 55px;
                            display: flex;
                            align-items: center;
                            justify-content: flex-end;
                            flex-direction: column;
                            h3 {
                                font-family: rub;
                                font-size: 1em;
                                margin: 0;
                                color: var(--text-1);
                            }
                            #discount {
                                width: 90%;
                                height: 20px;
                                display: flex;
                                align-items: center;
                                justify-content: space-between;
                                flex-wrap: nowrap;
                                flex-direction: row;
                                margin-top: 10px;
                                margin-bottom: -30px;
                                h3 {
                                    text-decoration: line-through;
                                    opacity: 0.7;
                                }
                                sub {
                                    font-family: vaz;
                                    background: var(--succ);
                                    padding: 5px;
                                    border-radius: 7px;
                                    font-size: .8em;
                                    margin-bottom: 15px;
                                    color: var(--text-2-s);
                                }
                            }
                            #product_price {
                                width: 100%;
                                text-align: left;
                            }
                            #product_price::after {
                                content: "تومان";
                                font-size: 0.8em;
                                margin:0 3px;
                            }
                        }
                    }
                }
            }
            #controls {
                position: absolute;
                bottom: -80px;
                margin: 20px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-direction: row;
                flex-wrap: nowrap;
                opacity: 0;
                transition: opacity 150ms ease;
                i {
                    font-size: 1em;
                    color: var(--item-2-s);
                    background: var(--gray);
                    width: 45px;
                    height: 45px;
                    border-radius: 150px;
                    place-items: center;
                    display: grid;
                    cursor: pointer;
                    margin: 0 5px;
                }
            }
        }
    }
    @media screen and (max-width:900px) {
        #controls {
            display: none !important;
        }
        ul {
            justify-content: flex-start !important;
        }
    }
}

