﻿
@import url('themes/_variables.css');


/* Reset و پایه‌ای */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.site-main-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: grid; /* تغییر از flex به block */
    grid-template-areas:
        "header"
        "slider1"
        "popmenu1"
        "site-main-content"
        "footer";
    grid-template-rows: auto auto auto auto auto;
    min-height: 100vh;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative;
    background-color: var(--bg-primary);
}

body {
    font-family: 'Vazir', Arial, sans-serif;
}

header {
    grid-area: header;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.slider1 {
    grid-area: slider1;
    width: 100%;
    height: auto;
}

.popmenu1 {
    grid-area: popmenu1;
    width: 100%;
    height: auto;
}

.site-main-content {
    grid-area: site-main-content;
    width: 100%;
    height: auto;
    padding: 100px 0 100px;
}

footer {
    grid-area: footer;
    width: 100%;
}

.hidden{
    display:none;
}
.show {
    display:flex;
}

    .base-menu {
        position: fixed;
        bottom: 0;
        width: 100%;
        display: none;
        flex-direction: row;
        background-color: var(--bg-primary);
        z-index: 20000;
        height: 60px;
        border: 1px solid var(--bg-secondary);
    }

    .b-menu-item {
        
        flex: 1;
        min-width: 0;
        text-align: center;
     
    }


        .b-menu-item .menu-link {
            display: flex;
            flex-direction: column-reverse;
            align-content: center;
            align-items: center;
            text-align: center;
            text-decoration:none;
            z-index:20000;
        }

    .menu-link .menu-icon {
        transition: transform 0.3s ease;
        color: var(--text-primary);
        font-size: 1.9rem;
    }

.menu-link .menu-title {
    position: relative;
    transition: transform 0.3s ease;
    color: var(--text-primary);
    font-size: 0.66rem;
    font-weight: bolder;
}


.basket-badge {
    position: absolute;
    display: block;
    top: -5px;
    margin-right: -19px;
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    z-index: 20000;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 100;
    }

    50% {
        transform: scale(1.1);
        opacity: 100;
    }

    100% {
        transform: scale(1);
        opacity: 100;
    }
}
.user-dropdown-menu-sub {
    display:none;
    position: absolute;
    left: 30px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 150px;
    padding:0;
    align-content: center;
    align-items: center;
    text-align:center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100px);
    transition: all 0.3s ease;
    z-index: 1000;
    
}
    .user-dropdown-menu-sub li {
        list-style: none;
       
    }

    .user-dropdown-menu-sub a {
        display: flex;
        text-align: center;
        align-content: center;
        align-items: center;
        padding: 0.75rem 1rem;
        color: var(--text-primary);
        text-decoration: none;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.3s ease;
        width: 100%;
        gap: 10px;
    }

    .user-dropdown-menu-sub a:hover {
        background: var(--accent-color);
        color: white;
    }

    .user-dropdown-menu-sub .logout-item a {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
       
        gap:10px;
    }
.logout-item {
    color: #e53e3e;
    width:100%;
    right:0;
   padding:0rem;
  
}
.user-dropdown-menu-sub .logout-item a:hover {
    background: #e53e3e;
    color: white;
   
    margin: 0;
}
.user-dropdown-menu-sub li:nth-child(1) a{
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.user-dropdown-menu-sub {
  bottom:30px;
}
.b-menu-item:hover .user-dropdown-menu-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}










    .menu-link:hover .menu-icon {
        transform: translateY(-2px);
    }

    .menu-link.active .menu-icon {
        color: var(--accent-color);
    }


.side-menu {
    position: fixed;
    display: none;
    flex-direction: row;
    width: 100%;
    height: 90%;
    z-index: 20000;
    background-color: var(--bg-primary);
    border: 1px solid var(--bg-secondary);
    border-left: 10px solid var(--bg-secondary);
    border-bottom: 10px solid var(--bg-secondary);
    border-top: 10px solid var(--bg-secondary);
   
    margin: 0;
    padding: 0;
}

    .first-drop {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 90px;
        overflow-y: scroll;
        right: 0;
    }

.sub-drop {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  
}

.sidemnu-f-item {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border-color);
    border-left: 10px solid var(--bg-secondary);
    width: 100%;
    height: 80px !important;
    min-width: 0;
    text-align: center;
    align-content: center;
    align-items: center;
    background-color: var(--bg-secondary);
}

    .sidemnu-f-item.active {
        background-color: var(--bg-primary);
        border-left: none;
        border-top: none;
    }

    .menu-img {
        width: 54px;
        height: 42px;
        object-fit: contain;
    }

    .sidemnu-f-item .menu-title {
        font-size: 0.7rem;
        width: 100%;
    }


    .sub-menu-continer.active {
        display:flex;
        flex-wrap: wrap;
        gap: 20px;
        align-items: start;
        height: 100%;
        margin: 0;
        padding: 5px;
        overflow-y: scroll;
        overflow-x:hidden;
    }



        .sub-menu-continer.active a {
            width: 100%;
            height: 50px;
            margin: 0;
            padding: 0;
            text-align: center;
            font-size: 1.3rem;
            background-color: var(--bg-secondary);
          
            
            border-radius: 30px;
        }


    .sub-mnu-item {
        margin: 0 auto;
        width: 50px;
        height: 100px;

    }

        .sub-mnu-item a {
            display: flex;
            flex-direction: column;
            align-content: center;
            align-items: center;
            text-align: center;
            text-decoration: none;

        }

        .sub-mnu-item .menu-icon {
            width: 68px;
            height: 68px;
            background-color: var(--bg-secondary);
            border-radius: 100%;
            align-content: center;
            align-items: center;
            justify-content: center;
        }

            .sub-mnu-item .menu-icon img {
                width: 68px;
                height: 68px;
                transform: rotate(15deg);
               
            }
        .sub-mnu-item .menu-title {
            font-size: 0.6rem;
           
        }
@media (max-width: 779px) {
    .base-menu {
        display: flex;
    }
}

@media (min-width:780px) {
    .base-menu {
        display: none;
    }

    .side-menu {
        display: none;
    }
}



