/* ریست اولیه */
@font-face { font-family:'light';src:url('../Font/IRANSans-I.ttf') format('woff'),url('../Font/IRANSans-I.ttf') format('truetype'); }
@font-face { font-family:'regular';src:url('../Font/IRANSans.ttf') format('woff'),url('../Font/IRANSans.ttf') format('truetype'); }
@font-face { font-family:'bold';src:url('../Font/IRANSans-B.ttf') format('woff'),url('../Font/IRANSans-B.ttf') format('truetype'); }
@font-face { font-family:'black';src:url('../Font/IRANSans-BB.ttf') format('woff'),url('../Font/IRANSans-BB.ttf') format('truetype'); }
@font-face{ font-family:'iransq';src:url('../Font/IranNastaliq.ttf') format('woff'),url('../Font/IranNastaliq.ttf') format('truetype'); }


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* بدنه و پس‌زمینه کلی */
body {
  font-family: 'regular', Tahoma, sans-serif;
  color: #333;
  direction: rtl;
  background: url('../temp/bm_927_1659086698.png') center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#social-card.hidden {
  display: none;
}
/* Hero */
.hero {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
  padding: 20px;
  text-align: center;
  background: transparent;
}
.wave-overlay {
  position: absolute;
  inset: 0;
  background: url('../temp/bm_927_1659086698.png') center/cover no-repeat;
  opacity: 0.3;
  border-radius: 20px;
  z-index: 1;
}
.hero-header,
.hero-description,
.categories-grid,
.social-icons {
  position: relative;
  z-index: 2;
}
.hero-header .logo {
  width: 300px;
  margin: 0 auto;
}
.hero-description p {
  font-family: 'light', Tahoma, sans-serif;
  font-size: 0.9rem;
  color: #444;
  margin: 4px 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}
.categories-grid .category-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.categories-grid .category-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 6px;
}
.categories-grid .category-item span {
  font-family: 'regular', Tahoma, sans-serif;
  font-size: 0.85rem;
  color: white;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 70px;
}
.social-icons img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* Menu Page */
.menu-page {
  display: none;
  width: 100%;
  max-width: 480px;
  margin: 20px auto;
  display: flex;
  flex-direction: row; /* سایدبار چپ */
}
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 90px;
  background: #0300005c;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 10;
}
.back-button {
  background-color: transparent;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'regular', Tahoma, sans-serif;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 20px;
}
.menu-cats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}
.menu-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.menu-cat:hover {
  transform: translateX(4px);
}

.menu-cat.active {
  background: rgba(243, 0, 0, 0.3);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.menu-cat.active img {
  transform: scale(1.1);
}
.menu-cat.active span {
  font-family: 'bold', Tahoma, sans-serif;
  color: #fff;
}
.menu-cat img {
  width: 60px;  /* ایکن بزرگتر */
  height: 60px;
  border-radius: 50%;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.menu-cat span {
  font-family: 'regular', Tahoma, sans-serif;
  font-size: 0.8rem;
  margin-top: 6px;
  color: #fff;
  text-align: center;
}

.menu-content {
  flex: 1;
  margin: 0 10px 0 100px; /* کنار سایدبار */
  padding-top: 20px;
}
.section-title {
  font-family: 'bold', Tahoma, sans-serif;
  width: 100%;
  text-align: center;
  background: #000;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  display: inline-block;
}
.cards {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 20px;    /* فاصله عمودی */
  margin-bottom: 10px;
}
.menu-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 0; /* عرض سایدبار نداشته باشه */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  font-family: 'regular', Tahoma, sans-serif;
}

.menu-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}
.menu-card .details h3 {
  font-family: 'bold', Tahoma, sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
}
.menu-card .details .description {
  font-family: 'light', Tahoma, sans-serif;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}
.menu-card .details .price {
  font-family: 'bold', Tahoma, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  text-align: left;
}
.menu-card.unavailable {
  opacity: 0.4;
  position: relative;
  pointer-events: none;
}

.image-wrapper {
  position: relative;
}

.overlay-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
}

