﻿html {
    height: 84vh;
}

body {
    height: 100%;
}

@font-face {
    font-family: 'dirooz';
    src: url('font/dirooz-fd.ttf') format('truetype');
}

.logo {
    height: 5rem;
}

.f_d {
    font-family: dirooz;
}

.main-body {
    background-image: url('../image/backgrund/pattern.png');
    background-repeat: repeat-y;
    background-size: cover;
    height: 100%;
    padding:1rem;
}

.nav {
    height: 10vh;
    background-color: darkslategrey;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.catgory_list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    gap: 1rem;
    overflow-y: scroll;
    height: 100%;
}

.catgory_item {
    background-color: white;
    opacity: 0.9;
    border: 0.3rem solid #e7c600;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 8rem;
    height: 9rem;
}

.Menu_list {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 1rem;
}

.Menu_item {
    width: 100%;
    background-color: white;
    opacity: 0.9;
    border-radius: 1rem 0;
    box-shadow: 0 0 1rem black;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .Menu_item img {
        width: 7rem;
        height: 7rem;
        border-radius: 1rem 0;
    }

.Menu_item_info {
    padding: .5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-right {
    text-align: right;
}

.AddToCard {
    border-radius: .5rem 0;
    border: none;
    background-color: #FFB655;
    box-shadow: 0 0 .2rem black;
    width: 8rem;
    height: 1.8rem;
    margin-left: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ChangeCartItem {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    border-radius: .5rem 0;
    border: none;
    background-color: #FFB655;
    box-shadow: 0 0 .2rem black;
    width: 8rem;
    height: 1.8rem;
    margin-left: 1rem
}

.indicator {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    right: 1px;
    top: 4px;
    font-size: 1rem;
}



/* استایل دکمه */
button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* پاپ‌آپ به صورت مخفی با opacity و scale صفر */
.popup {
    display: none; /* پاپ‌آپ مخفی است */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease; /* انیمیشن تغییر شفافیت */
}

/* محتوای پاپ‌آپ */
.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 20px 0;
    width: 300px;
    text-align: center;
    transform: scale(0); /* پاپ‌آپ از ابتدا کوچک است */
    opacity: 0; /* شفافیت صفر */
    transition: transform 0.3s ease, opacity 0.3s ease; /* انیمیشن تغییر مقیاس و شفافیت */
}

/* دکمه بستن */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* وقتی پاپ‌آپ فعال است */
.popup.show {
    display: flex; /* پاپ‌آپ نمایش داده می‌شود */
    opacity: 1; /* شفافیت کامل */
}

.popup-content.show {
    transform: scale(1); /* مقیاس به حالت عادی برمی‌گردد */
    opacity: 1; /* شفافیت کامل */
}

#Pimage {
    width: 100%;
    margin-top: 2rem;
    border-radius: 20px 0;
}

.form {
    background-color: #ffbe58;
    /*margin: 1rem;*/
    border-radius: 0.7rem 0;
    box-shadow: 0 0 1rem;
    padding: 1rem;
    transition:0.2s all;
}

.input {
    margin: 1rem;
    background-color: #393939;
    padding: .5rem .5rem .5rem 2rem;
    border-radius: 1rem 0;
    display: flex;
}
.input button {
    border: none;
    border-radius: 1rem 0;
    background: #ffbe58;
}

.input input {
    width: 100%;
    border: none;
    background-color: transparent;
    color: #ffbe58;
    direction:ltr;

}

.input input:focus{
    outline:none;
}

.input textarea {
    width: 100%;
    border: none;
    background-color: transparent;
    color: #ffbe58;
    direction: rtl;
    
}

.input textarea:focus {
    outline: none;
}


.Input_panel {
    transition: 0.3s all;

}


.Input_open {
    transform: scale(1);
}

.Input_close{
    transform: scale(0);
}

.t-color {
    color: #ffbe58;
}