﻿.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* موبایل */
    gap: 12px;
}
.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;
}
@media (min-width: 768px) { /* md */
    .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;
    }

    .sort-item.active {
        background: #8BC34A;
        color: #fff;
        font-weight: bold;
    }

.hidden {
    display: none;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.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; 
}
