@font-face {
  font-family: 'Vazirmatn';
  src: url('./fonts/Vazir.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('./fonts/Vazir-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background-color: #eeddb6; 
  margin: 0;
  padding: 0;
  direction: rtl;
}

.header {
  background-color: #6b4d3d; 
  color: #fff;
  text-align: center;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.menu {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 15px;
  min-height: 55vh; 
}

.menu-type {
  margin-bottom: 35px;
  border-radius: 15px;
  overflow: visible; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  background-color: #ffffff;
}

.menu-type-header {
  background-color: #d8b884; 
  color: #4a3324;
  padding: 18px 25px;
  text-align: right;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15px; 
}

.menu-type-header:hover {
  background-color: #c9a56e;
}

.menu-type-header::after {
  content: "▼";
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.menu-type-content {
  max-height: 0;
  overflow: hidden;
  background: #fcfaf6;
  padding: 0 20px; 
  transition: max-height 0.6s ease-in-out, padding 0.4s ease;
}

.menu-type-content.active {
  max-height: 8000px;
  padding: 15px 20px;
  border-top: 1px solid #eee;
  overflow: visible;
}

.menu-type:has(.menu-type-content.active) .menu-type-header::after {
  transform: rotate(180deg);
}

.category-title {
  background-color: #f4e4c4; 
  color: #4a3324;
  padding: 10px 15px;
  margin-top: 25px;
  margin-bottom: 15px;
  border-radius: 8px; 
  font-size: 1.2rem;
  font-weight: bold;
  border-right: 4px solid #d8b884;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed #e0e0e0;
}

.item:last-child {
  border-bottom: none;
}

.item-info {
  flex: 1;
  text-align: right;
}

.item-name {
  font-weight: bold;
  font-size: 0.95rem;
  color: #4a3324;
  display: block;
}

.item-desc {
  font-size: 0.8rem; 
  color: #777;
  margin-top: 4px;
}

.item-price {
  font-weight: bold;
  color: #4a3324;
  font-size: 0.95rem; 
  white-space: nowrap;
  margin-right: 15px;
}


.footer {
  background-color: #6b4d3d;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}


.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #fcfaf6; 
    padding: 15px 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 2px solid #d8b884; 
}

.sticky-nav::-webkit-scrollbar {
    display: none;
}
.sticky-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.nav-btn {
    background-color: #d8b884;
    color: #6b4d3d;
    border: 1px solid #6b4d3d;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: bold; 
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; 
}

.nav-btn:hover, .nav-btn:active {
    background-color: #6b4d3d; 
    color: #fff; 
}

.category-group {
    scroll-margin-top: 80px; 
    padding-top: 20px;
}

.menu-section {
  margin: 16px 0;
}

.menu-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  padding: 0 12px;
  color: #333;
}

.menu-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-card {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background-color: #fdf3d9;
    margin-bottom: 8px;
}

.menu-card:not(:has(.menu-card-image)) {
  justify-content: flex-start;
}

.menu-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.menu-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #222;
}

.menu-card-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5c3b1a;
  white-space: nowrap;
}

.menu-card-desc {
  margin: 0;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

.menu-card-image {
    flex: 0 0 64px;       
    width: 64px;
    height: 64px;
    margin-left: 12px; 
    border-radius: 12px;
    overflow: hidden;
    background-color: #eee;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;    
}

@media (max-width: 480px) {
  .menu-card {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .menu-card-image {
    width: 60px;
    height: 60px;
  }

  .menu-card-title {
    font-size: 0.9rem;
    color: #5c3b1a;
  }

  .menu-card-price {
    font-size: 0.85rem;
  }

  .menu-card-desc {
    font-size: 0.75rem;
  }
}
