@font-face {
    font-family: 'dana';
    src: url(../css/fonts/dana/dana-regular.ttf);
}
@font-face {
    font-family: 'dana-bold';
    src: url(../css/fonts/dana/Dana-FaNum-ExtraBold.ttf);
}
@font-face {
    font-family: 'dana-for-number';
    src: url(../css/fonts/dana/Dana-FaNum-Regular.ttf);
}
@font-face {
    font-family: 'dana-for-foodname';
    src: url(../css/fonts/dana/DanaFaNum-Medium.ttf);
}
@font-face {
    font-family: 'dana-24';
    src: url(../css/fonts/pinar/Pinar-FD-Bold.ttf);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;  
    user-select: none;
    overflow-x: hidden;
    scrollbar-width: none;
}
body{
    overflow-y: hidden;
}
p{
    font-family: 'dana24';
}

.body-page-one {
    margin: 0;
    font-family: 'dana', ;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('../img/Bar table Photos - Download Free High-Quality Pictures _ Freepik (1).jfif') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.overlay-page-one {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 420px;
    height: 360px;
}

.container{
    display: flex;
    flex-direction: column;
    height: 235px;
}
.header {
    background:linear-gradient(130deg, rgb(24, 13, 0), rgba(76, 41, 0, 0.89));
    padding:60px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 67%;
    position: relative;
    border-radius: 0 0 58px 58px;
    height:230px;
    margin: 0 auto -90px auto;
    overflow-y: hidden;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/Asset 2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.13;
    border-radius: 0 0 58px 58px;
    z-index: 1;
}

.header>* {
    position: relative;
    z-index: 2;
}

.body-home{
    overflow-y: hidden;
    scrollbar-width: none;
}
.h1-home{
    font-family: 'dana-24';
    font-size: 36px;
    color: #c9a036;
}
.h2-home{
    font-family: 'dana-bold';
    font-size: 36px;
    color: #c9a036;
    margin: auto;
}

.header-p {
    color: white;
    font-family: 'dana';
    margin: 0 0 10px 0;
}

.categories {
    display: flex;
    justify-content: flex-start;
    /* flex-wrap: wrap; */
    gap: 5px;
    border-radius: 10px;
    padding-top: 24px;
    padding-left: 24px;
    padding-bottom: 24px;
    width: 95%;
    margin: 0 auto;
    overflow-x: scroll;
}

.chip {
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 13px 13px 0 0;
    cursor: pointer;
    font-family: 'dana';
    transition: all 0.3s ease;
    width: auto; /* تغییر از عرض ثابت به خودکار */
    min-width: 114px; /* حداقل عرض برای یکدست شدن نسبی */
    border: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 8px black;
    flex-shrink: 0; /* جلوگیری از کوچک شدن دکمه‌ها */
    text-align: center;
    white-space: nowrap; /* جلوگیری از شکستن متن */
}

.chip.active {
    background: rgb(24, 13, 0);
    color: white;
}

.chip:hover {
    background: rgb(24, 13, 0)  ;
    color: white;
}

.footer {
    background:linear-gradient(130deg, rgb(29, 17, 2), rgb(90, 61, 26));
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 67%;
    border-radius: 58px 58px 0 0;
    height: 76.66666666px;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    align-content: center;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/Untitled-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    border-radius: 0 0 58px 58px;
    z-index: 1;
}

.footer>* {
    position: relative;
    z-index: 2;
}
.food-card {
    background: rgb(221, 207, 192);
    background-image: none;
    background-image: none;
    border-radius: 15px;
    background-image: url(../img//Asset\ 3.png);
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 270px;
    margin: 10px 0 10px 25px ;
    flex: 1 1 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 270px;
    min-height: 391px;
    max-height: auto;
    box-shadow: 1px 0px 10px #0000007a;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    max-width: 1200px;
    margin: 10px auto 0 auto;
    height: 62vh;
    scrollbar-width: none;
}


.food-card:hover {
    transform: translateY(-5px);
}

.food-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px 0 0 0;
    margin-bottom: 10px;
    mask-image: linear-gradient(to top, 
      rgba(0,0,0,0) 0%,     /* کاملاً شفاف در بالاترین نقطه */
      rgba(0,0,0,0.2) 20%,  /* ۱۵٪ ارتفاع: ۲۰٪ opacity */
      rgba(0,0,0,0.7) 40%,  /* ۴۰٪ ارتفاع: ۷۰٪ opacity */
      rgba(0,0,0,1) 70%     /* از ۷۰٪ ارتفاع به پایین: کاملاً مشخص */
    );
}


.night {
    background-color: #d4af37;
    margin: 0 183px 0 -290px;
    border-radius: 23px;
    width: 70px;
    padding: 10px 10px;
    border: 1px solid cornflowerblue;
}

.night:hover {
    cursor: pointer;
    transition: 0.2s ease-out;
    transform: scale(1.02);
    box-shadow: 0px 0px 11px 1px #d4af37;
}

.food-name {
    color: #333;
    margin: 10px 0px 11px 0;
    font-size: 1.3rem;
    height: 43px;
    font-family: 'dana-for-foodname';
}

.food-comment {
    color: #666;
    font-size: 1.0rem;
    margin: 10px 0;
    min-height: 55px;
    overflow: hidden;
    height: 49px;
    font-family: 'dana24';
}

.food-price {
    background: linear-gradient(135deg, rgb(32, 19, 3), rgba(89, 60, 26, 0.75));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1.1rem;
    margin: 10px 0 0px 0;
    width: 90%;
    overflow-y: hidden;
    margin: 0 auto 10px auto;
    font-family: 'dana-for-number';
}
.main{
    width: 100%;
    height: 502px;
}
#searchInput{
    display: none;
}

.body-create {
        background: #f4f4f4;
        font-family: 'Vazirmatn', sans-serif;
    }

.newproduct{
    margin:50px auto 10px auto;
    font-family: "Lalezar", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #221b60;

}
.newproduct-create {
        font-family: 'Lalezar';
        text-align: center;
        color: #b48a00;
        margin-top: 40px;
        font-size: 32px;
    }

    table{
    margin: 0 auto;
}
td{
    border: 1px solid black;
    text-align: center;
}
input{
    width: 260px;
    text-align: center;
    background-color: #f4f4f4;
    color: black;
    height: 31px;
    border-radius: 7px;
    margin: 26px auto 0px auto;
    align-items: center;
    display: flex;
    justify-content: center;
    border: 2px solid black;
    font-family: lalezar;
}
input, select {
        width: 90%;
        height: 42px;
        border-radius: 12px;
        border: 2px solid #d0b24c;
        background: #fff7db;
        margin: 13px auto;
        padding: 0 10px;
        text-align: center;
        font-family: 'Vazirmatn';
        font-size: 15px;
    }
    input:focus, select:focus {
        outline: none;
        border-color: #b48a00;
        box-shadow: 0 0 5px #b48a00;
    } 

.btn-danger{
    margin: 25px auto 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.button-page-one-enter-menue{
    display: inline-block;
    padding: 15px 40px;
    background: #d4b043;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    border-radius: 50px;
    transition: 0.3s;
    cursor: pointer;
    font-family: 'Lalezar';
    }
.button-page-one-enter-menue:hover { 
        background: #866d28; 
    }


.categories-response{
    display: none;
}

    @media (max-width: 600px) {
    .container{
        height: 17vh;
    }
    .header{
        overflow-y: hidden;
        width: 80%;
        height: 12vh;
        padding-top: 20px;
        align-content: center;
        border-radius: 0 0 50px 50px;
        align-items: center;
    }
    .h1-home{
        font-size: 20px;
    }
    .header-p{
        font-size: 14px;
    }
    .main-responsive{
        display: flex;
        margin: -20px 0 0 0;
        height: 68vh;
    }
    .food-card{
        width:100px;
    min-height: 351px;
    max-height: 351px;
    margin:0 0 -23px 25px ;
        transform: scale(0.9);
    }
    .categories-response{
        display: block;
        width: 100%;
        height:70vh;
    }
    .grid{
        padding-top: 10px;
        height:73vh ;
        margin: -20px 0 -10px  0;
        gap: 5px;
    }
    .categories{
        display: none;
    }
    .chip{
        border-radius: 10px 0 0 10px;
        margin-top: 12px;
        box-shadow: 0px 0px 4px black;
    }
    .footer{
        width: 80%;
        border-radius: 29px 29px 0 0;
    }
    .div-footer{
        height: 11vh;
        align-items: center;
        align-content: center;
    }
}


