/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* فونت‌های سفارشی */
@font-face {
    font-family: 'MyFont';
    src: url('MyFont.ttf') format('truetype');
}
@font-face {
    font-family: 'BTitr';
    src: url('BTitr.ttf') format('truetype');
}
@font-face {
    font-family: 'MyFont1';
    src: url('MyFont1.ttf') format('truetype');
}
@font-face {
    font-family: 'Yekan';
    src: url('Yekan.ttf') format('truetype');
}
@font-face {
    font-family: 'Dasteha';
    src: url('Dasteha.ttf') format('truetype');
}

/* تنظیمات کلی بدنه */
body {
    font-family: 'Tahoma', sans-serif;
    
    color: #333;
	background-image: url('images/0.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: repeat;
	margin: 0;
	height: 100vh;
	@media (max-width: 768px) {
		body {
			background-size: cover;
		}
	
}

/* استایل هدر */
.header {
    position: relative;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

/* تصویر پس‌زمینه‌ی هدر */
.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('header-image.jpg') center/cover no-repeat;
    filter: blur(2px);
    z-index: -1;
}

/* لوگوی رستوران */
.restaurant-logo {
    width: 75px;
    height: auto;
    position: absolute;
    right: 15px;
    top: 20%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    padding: 5px;
    border-radius: 10px;
}

/* نام رستوران */
.header-content h1 {
    margin: 0 auto;
    font-size: 28px;
    font-family: MyFont1;
    color: white;
    filter: drop-shadow(3px 3px 2px #000000);
}

/* دکمه‌های تغییر زبان */
.language-buttons {
    display: flex;
    gap: 5px;
    position: relative;
    bottom: -20px;
}

/* استایل دکمه‌های زبان */
.lang-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
}

.lang-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004094);
}

/* آیکون پرچم در دکمه‌های زبان */
.flag {
    font-size: 18px;
    margin-left: 5px;
}

/* استایل لیست منوی افقی */
.category-list {
    display: flex; /* نمایش به صورت افقی */
    align-items: center;
    justify-content: center; /* وسط‌چین کردن منو */
    overflow-x: auto; /* فعال کردن اسکرول افقی */
    white-space: nowrap; /* جلوگیری از شکستن خط‌ها */
    padding: 10px 0;
}

/* استایل هر آیتم در منوی افقی */
.category-list li {
    display: inline-flex; /* نمایش به صورت افقی */
    align-items: center;
    justify-content: center; /* قرار دادن آیتم‌ها وسط */
    font-family: MyFont1;
	font-weight: bold;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 5px; /* فاصله بین آیتم‌ها */
    border-radius: 5px;
}

/* افکت هاور روی آیتم‌ها */
.category-list li:hover {
    background-color: #f0f0f0;
}

/* استایل آیکن‌های دسته‌بندی */
.category-list img {
    width: 15px; /* اندازه آیکن‌ها */
    height: 15px;
    margin-left: 2px; /* فاصله بیشتر برای قرار گرفتن آیکن سمت راست متن */
}

/* تنظیمات کلی کادر غذا */
.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
	font-family: Yekan;
    width: 95%;
    font-size: 15px;
    border-radius: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    transition: 0.3s;
}

/* تصویر غذا (ترکیبی از دو غذا) */
.menu-item img {
    width: 100px; /* همان اندازه قبلی */
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* بخش نمایش نام و قیمت‌ها */
.food-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 5px;
}

/* نیمه‌های غذا (نام و قیمت) */
.food-half {
	width: 50%;
    text-align: center;
    padding: 5px;
    border-left: 1px solid #ddd; /* خط جداکننده */
}

/* حذف خط جداکننده برای اولین نیمه */
.food-half:first-child {
    border-left: none;
}

/* نام غذا */
.food-half h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

/* قیمت غذا */
.food-half .price {
    color: #ff4500;
    font-size: 14px;
    font-weight: bold;
}


/* افکت هاور روی آیتم‌های منو */
.menu-item:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

/* متن وای‌فای و قیمت */
.instagram-link,
.price {
    text-align: center;
	font-family: Yekan;
}

/* استایل تصاویر غذا */
.food-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* استایل پیام وای‌فای */
.wifi-message {
    background-color: #e7f9fe;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #00aaff;
}

/* تنظیمات اصلی صفحه */
.main-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* بخش منو */
.menu {
    text-align: right;
	padding-left: 35px;
	padding-right:35px;
    width: 100%;
}

.menu-section {
    text-align: right;
    margin-bottom: 15px;
	padding-left: 5px;
    padding-right: 5px;
}

.menu-section h2 {
    font-family: BTitr;
	font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
}

/* نمایش منو در دو ستون */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* برداشتن فاصله میان ستون‌ها */
    width: 100%; /* اختصاص عرض کامل به گرید */
}

/* نام غذاها */
.menu-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
/* قیمت غذاها */
.price {
   	color: #ff4500;
	direction: rtl;
    font-size: 15px;
    font-weight: bold;
}

/* استایل تصاویر غذا */
.menu-image {
    width: 100px; /* عرض ثابت */
    height: 100px; /* ارتفاع ثابت */
    object-fit: cover; /* حفظ نسبت ابعاد تصویر و پر کردن فضای مشخص‌شده */
    border-radius: 10px; /* گوشه‌های گرد */
    max-width: 100%; /* جلوگیری از بزرگ شدن بیش از حد */
    max-height: 100%; /* جلوگیری از بزرگ شدن بیش از حد */
}
/* فوتر */
footer {
    background-color: #fff;
	font-family: MyFont1;
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #ccc;
}
.menu-item .dish-icon {
	width: 45px;
	height: 45px;
	border-radius: 32px;
	object-fit: cover;
	margin-left: 8px;
	vertical-align: middle;
	cursor: pointer;
}

.location,
.phone {
    font-size: 13px;
}
/* پاپ‌آپ تصویر */
.popup {
  display: none; 
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* تصویر در پاپ‌آپ */
.popup-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
}

/* دکمه بستن */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* استایل برای دستورات موبایل */
@media (max-width: 768px) {
    .category-list {
        padding: 5px 5px;
    }

    /* کاهش اندازه آیکن‌ها در موبایل */
    .category-list img {
        width: 18px;
        height: 18px;
    }

    /* کاهش فاصله بین آیتم‌ها در موبایل */
    .category-list li {
        padding: 8px 10px;
        margin-right: -15px;
    }

    /* منوی افقی در موبایل */
    .category-list {
        justify-content: space-evenly;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
}
