@font-face {
    font-family: vazir;
    font-style: normal;
    font-weight: 100;
    src: url("font/Vazir.eot");
    src: url("font/Vazir.woff") format("woff"),
        url("font/Vazir.woff2") format("woff2");
}

@font-face {
    font-family: vazir;
    font-style: normal;
    font-weight: 300;
    src: url("font/Vazir-Bold.eot");
    src: url("font/Vazir-Bold.woff") format("woff"),
        url("font/Vazir-Bold.woff2") format("woff2");
}


.preloader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #402d29;
    z-index: 99999;
    transition: opacity 600ms ease, visibility 600ms ease;
    visibility: visible;
    opacity: 1;
    text-align: center;
}
.preloader img {
    width: 80px;
    text-align: center;
    margin-bottom: 20px;
}

body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .preloader img {
        width: min(70vw, 220px);
        border-radius: 12px;
    }

    .bar {
        width: min(80vw, 260px);
    }
}

.bar {
    margin-top: 12px;
    width: min(60vw, 320px);
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.bar>i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.35));
    border-radius: 999px;
    animation: progress 2.2s linear infinite;
}

@keyframes progress {
    0% {
        width: 0%;
        transform: translateX(-10%);
    }

    50% {
        width: 70%;
        transform: translateX(0);
    }

    100% {
        width: 100%;
        transform: translateX(10%);
    }
}

body {
    background-color: #000;
    color: #fff;
    font-family: vazir;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    font-size: 15px;
}

button {
    font-family: vazir;
}

.app {
    width: 420px;
    background-color: #402d29;
    min-height: 100vh;
    padding-bottom: 50px;
}

.header {
    /* position: relative; */
    text-align: center;
    padding: 20px 10px 10px 10px;
}
.header .logo{
    width: 60px;
}


.nav {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.nav button {
    background-color: #c9bb90;
    color: #170700;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.nav a {
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    border-inline: 1px solid #f8b82d;
}

.nav button.active {
    background-color: #170700;
    
    color: #c9bb90;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.item {
    /* background-color: #c9bb90; */
    background: #402d29;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #c9bb90;
    display: flex;
    flex-direction: column;
}

.item img {
    width: 60%;
    display: block;
    padding: 10px;
    align-self: center;
    border-radius: 32px;
}

.info {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    font-size: 15px;
}

.price {
    color: #ccc;
    text-align: left;
}

.price .unit {
    font-size: 12px;
}

.name {
    color: #ccc;
    font-weight: bold;
    font-size: 16px;
    text-align: right;
}

.menu-items {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.menu-items.active {
    display: flex;
}



/* popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #402d29;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow-y: auto;
    max-height: 550px;
}

.popup-content .close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.popup-content a {
    color: #f8b82d;
}


#scrollTopBtn {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    background: #f8b82d;
    color: #000;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    z-index: 9999;
    transition: background 0.3s;
}