﻿main{
    min-height: 600px;
    margin-bottom: 10px;
}
.items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
}
.notificationFixed {
    top: 89px;
    position: fixed;
    width: 100%;
    z-index: 25;
    transition: all 0.3s ease;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 3px;
    padding-bottom: 3px;    
    font-size: 12px;
}
.notificationFixed svg {
    height: 15px;
    width: 15px;
    position: absolute;
    top: 3px;
    left: 3px;
    cursor: pointer;
}
.slider-margin {
    margin-top: -10px;
}
.top-bar{
    margin-top: 10px;
}
.message-tag {
    background-color: lightgreen;
    color: white;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 3px;
    padding-bottom: 3px;
    position: relative;
    font-size: 12px;
}
    .message-tag img {
        height: 15px;
        width: 15px;
        position: absolute;
        top: 3px;
        left: 3px;
        cursor: pointer;
    }
.message-tag2 {
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 3px;
    padding-bottom: 3px;
    position: relative;
    font-size: 12px;
}

    .message-tag2 svg {
        height: 15px;
        width: 15px;
        position: absolute;
        top: 3px;
        left: 3px;
        cursor: pointer;
    }
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tabFont{
    font-size: 12px;
}
.inmobileHidden{
    display: none;
}
.linkbar{
    top: 46px;
}
.headerHeight{
    height: 90px;
}
@media (min-width: 500px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
    .linkbar {
        top: 80px;
    }
    .headerHeight {
        height: 110px;
    }
}
    @media (min-width: 768px) {
        .pxlg{
            padding-left: 80px;
            padding-right: 80px;
        }
        .notificationFixed {
            position: fixed;
            width: 100%;
            top: 113px;
            z-index: 25;
            transition: all 0.3s ease;
        }

            .notificationFixed svg {
                height: 20px;
                width: 20px;
                position: absolute;
                top: 5px;
                left: 5px;
                cursor: pointer;
            }

        .inmobileHidden {
            display: block;
        }

        .tabFont {
            font-size: 14px;
        }

        .items-grid {
            grid-template-columns: repeat(6, 1fr); /* لپ‌تاپ */
        }

        .slider-margin {
            margin-top: -30px;
        }

        .top-bar {
            margin-top: 0px;
        }

        .message-tag {
            background-color: lightgreen;
            color: white;
            padding-left: 25px;
            padding-right: 25px;
            padding-top: 5px;
            padding-bottom: 5px;
            position: relative;
            font-size: 14px;
        }

            .message-tag img {
                height: 20px;
                width: 20px;
                position: absolute;
                top: 5px;
                left: 5px;
                cursor: pointer;
            }

        .message-tag2 {
            padding-left: 25px;
            padding-right: 25px;
            padding-top: 5px;
            padding-bottom: 5px;
            position: relative;
            font-size: 14px;
        }

            .message-tag2 svg {
                height: 20px;
                width: 20px;
                position: absolute;
                top: 5px;
                left: 5px;
                cursor: pointer;
            }
    }

    .sort-menu {
        position: absolute;
        min-width: 160px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(0,0,0,.15);
        padding: .4rem;
        z-index: 1000;
        animation: fadeDown .2s ease;
    }

    .sort-item {
        padding: .4rem .7rem;
        border-radius: 8px;
        cursor: pointer;
        transition: background .2s;
    }

        .sort-item:hover {
            background: #f1f1f1;
        }

    .dark .sort-item:hover {
        background: #808080;
    }

    .sort-item.active {
        background: #8BC34A;
        color: #fff;
        font-weight: bold;
    }

    .hiddenNew {
        display: none;
    }

    .searchbar {
        top: 0;
        background-color: white;
        height: 50px;
        border-top: 2px solid rgba(0,0,0,.15);
        border-bottom: 2px solid rgba(0,0,0,.15);
        top: 70px;
        z-index: 1000;
    }

    @keyframes fadeDown {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .searchbar {
        top: 0;
        background-color: white;
        height: 50px;
        border-top: 2px solid rgba(0,0,0,.15);
        border-bottom: 2px solid rgba(0,0,0,.15);
        top: 110px;
        z-index: 1000;
    }

    .searchRightBorder {
        border-right: 2px solid rgba(0,0,0,.15);
    }

    .rotate-180 {
        transform: rotate(180deg);
    }

    #SelectCatePanelInSearch {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: all .25s ease;
    }

        #SelectCatePanelInSearch.show {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

    .slc.active {
        background-color: #e5e7eb;
    }

    .dark .slc.active {
        background-color: #808080;
    }
.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
}

.video-box {
    margin-top: 80px;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 16px;
    padding: 10px;
    position: relative;
}

    .video-box video {
        width: 100%;
        max-height: 70vh;
        border-radius: 12px;
    }


.thumb-jump {
    width: 110px;
    border-radius: 12px;
    cursor: pointer;
    opacity: .6;
    transition: all .25s ease;
}

    .thumb-jump:hover {
        opacity: 1;
        transform: scale(1.08);
    }

@media (max-width: 576px) {
    .video-box {
        margin-top: 30px;
    }
}

.overLayModal {
    top: 50%;
    left: 50%;
    height: auto;
    transform: translate(-50%, -50%);
}

@media (max-width: 576px) {
    .overLayModal {
        top: 10%;
        left: 10%;
        height: auto;
        transform: translate(-5%, 30%);
    }
}
.dashboard-cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}


@media (min-width: 768px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}