@font-face{
    font-family: "Vazirmatn";
    src: url("font/Vazirmatn.woff2") format("woff2");
}

.farsi{
    font-family: "Vazirmatn";
    direction: rtl;
	text-align: right;
}

*{
	padding: 0;
	margin: 0;
	font-family: "Tahoma";
}

body{
	width: 100%;
	margin: auto;
}

header{
	padding: 30px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.logo1{
    width: 180px !important;
    height: 180px;
    border-radius: 20%;
}

footer{
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 80px;
    margin-top: 0px;
}

#navigator{
    display: flex;
    justify-content: center;
}

#contacts{
	display: flex;
	align-items: center;
}

a{
    color: #24357a;
    text-decoration: none;
    display: inline-block;
}

a:visited{
    color: #24357a;
}

a:hover{
    color: #3f50a0;
    cursor: pointer;
}

main{
    padding: 20px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 40vh;
}

#menu{
    width: 100%;
    max-width: 850px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: auto;
}

.home-page {
    background: url("image/bg.png") no-repeat center center / cover fixed;
}

.menu-page {
    background: url("image/bg1.png") no-repeat center center / cover fixed;
}

::-webkit-scrollbar {
    background: #786368;
}

::-webkit-scrollbar-thumb {
    background: black;
}

@media (max-width: 600px) {
    main {
        padding: 20px;
    }
    .small {
        font-size: 14px;
    }
	.logo1{
		max-width: 100%;
		width: 100%;
	}
	#menu{
		grid-template-columns: 1fr;
	}
}

.social-links{
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.social-links img{ 
	width: 40px; 
	height: 40px; 
	object-fit: contain; 
}

.social-links img[src*="call.png"]{
    filter: drop-shadow(0 0 5px #ffffff);
}

.card {
    background: url("image/cart1.png") no-repeat center / 100% 100%;
    display: grid;
    grid-template-columns: 35% 40% 25%;
    grid-template-rows: 50% 50%;
    width: 330px;
    height: 110px;
    margin: auto;
}

.card img {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 85%;
    height: 85%;
    margin: auto;
    object-fit: cover;
    border-radius: 12px;
}

.item-name {
    background: none;
    border: none;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding: 12px 10px 12px 0;
    color: #b09070;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.item-name[dir="rtl"] {
    direction: rtl;
    text-align: right;
    padding-right: 0;
    padding-left: 10px;
    transform: translateX(0);
    position: relative;
    right: -70px;
}


.recipe {
    grid-column: 2 / 4;
    grid-row: 2;
    align-self: start;
	justify-self: stretch;
	text-align: right;
    padding: 0;
    margin: 0;
    transform: translateY(-20px);
    color: #b09070;
    padding-right: 15px;
    font-size: 17px;
    line-height: 1.2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.item-price {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    text-align: right;
    padding: 5px;
    transform: translate(-10px, -8px);
    color: #b09070;
    white-space: nowrap;
}


.menu-categories{
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1px;
	transform: translateY(90px);
}

.category-btn,
.category-btn:visited{
    background: rgba(45, 30, 25, 0.9);
    color: #d8c7b5;
    border: 1px solid #806b5c;
    padding: 5px 12px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.category-btn:hover{
    background: #d8c7b5;
    color: #2d1e19;
    border-color: #d8c7b5;
    box-shadow: 0 0 12px rgba(216,199,181,0.3);
    transform: translateY(-2px);
}

.menu-header{
    top: 0;
    z-index: 100;
    padding-top: 80px;
    gap: 1px;
}

.home-header{
    padding-top: 100px;
}

.home-menu-btn,
.home-menu-btn:visited{
    background: rgba(45, 30, 25, 0.9);
    color: #d8c7b5;
    border: 1px solid #806b5c;
    padding: 7px 16px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.home-menu-btn{
    font-size: 20px;
    width: fit-content;
    align-self: center;
    position: relative;
    top: 0;
}

.back-arrow{
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200;
}

.back-arrow img{
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

a.admin-help {
    position: fixed !important;
    top: 20px !important;
    right: 50px !important;
    left: auto !important;
    width: 20px !important;
    height: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 99999 !important;
}

a.admin-help img {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
}

body a.admin-help {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 99999 !important;
}

body a.admin-help img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    padding: 24px;
    background: #202020;
    border: 1px solid #b09070;
    border-radius: 12px;
    box-shadow: none;
}

.card .unavailable-label {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    color: #ff3333;
    font-size: 12px;
    font-weight: bold;
    margin-right: 5px;
    margin-bottom: 14px;
    white-space: nowrap;
}

body .home-menu-btn {
    position: relative !important;
    top: 130px !important;
    transform: none !important;
}


.location-map {
    width: 250px;
    height: 250px;
    border: 0;
    border-radius: 20%;
    display: block;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .location-map {
        width: 180px;
        height: 180px;
    }
}

.menu-header {
    position: static;
}

#menu {
    padding-top: 50px;
}

.social-links img[src*="loc.png"] {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    gap: 20;
}

footer .social-links {
    display: flex;
    flex-direction: row;
    direction: ltr;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

footer .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer .social-links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

footer .social-links img[src*="loc.png"] {
    width: 40px;
    height: 40px;
}

@media (max-width: 600px) {
    footer .social-links {
        gap: 20px;
    }

    footer .social-links img {
        width: 35px;
        height: 35px;
    }

    footer .social-links img[src*="loc.png"] {
        width: 35px;
        height: 35px;
    }
}

footer {
    margin-top: 200px !important;
}

.cafe-address {
    width: 100%;
    text-align: center;
    color: #b09070;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 15px;
    margin-top: 15px;
    direction: rtl;
    line-height: 1.8;
}


.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: transparent;
}

.login-overlay.active {
    display: flex;
}

.login-box {
    position: relative;
    width: 380px;
    max-width: 100%;
    height: 450px;
    max-height: 90vh;
    background: transparent;
    border: none;
    border-radius: 12px;
    box-shadow: none;
}

.login-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: transparent;
}
