:root {
  --color-primary: #463f3a;       /* جایگزین رنگ تیره‌تر برای تمرکز و متن */
  --color-background: #f4f3ee;    /* رنگ پس‌زمینه روشن‌تر */
  --color-gray: #bcb8b1;          /* رنگ خاکستری طبیعی و ملایم */
  --color-text: #8a817c;           /* رنگ قابل خواندن و ملایم */
}

/* Font face remains unchanged */
@font-face {
  font-family: vazir;
  src: url('/themes/donya/font/vazir/Vazir-Bold.woff');
}

.container{
    border: 0!important;
}

.ads{
    text-decoration: none;
    color: var(--color-gray);
    font-size: 12px;
    display: block;
    background-color: var(--color-background);

}

body {
  font-family: vazir;
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-background);
  margin: 0; /* Optional reset */
}

/* Logo container */
.logo-container {
  position: sticky;
  top: 0;
  background: var(--color-background);
  cursor: pointer;
}

/* Logo image */
.logo {
  width: 80px;
}

.brand-name{
  font-size: 16px;
  user-select: none;
}

.ads{
  text-decoration: none;
  font-size: 12px;
}

/* Main layout */
main {
  position: relative;
}

.food-cat-group{
    margin-top: 28px;
    user-select: none;
}

/* Aside menu */
aside {
  border-left: 1px solid var(--color-gray);
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  overflow-y: auto; /* better for scroll */
  background-color: var(--color-background);
}

.food-cat-group{
    color: var(--color-text);
}

/* Category items */
.cat-item {
  list-style: none;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-gray);
  width: 100%;
  cursor: pointer;
  transition: all ease 0.3s;
  padding: 10px; /* optional padding for better spacing */
  user-select: none;
}

/* Paragraph inside category item */
.cat-item p {
  margin-top: 5px;
  margin-bottom: 0;
}

/* Active category */
.active-cat {
  color: var(--color-background);
  background-color: var(--color-primary);
}

/* Category image */
.cat-image {
  width: 60px;
  height: 60px;
}

/* Food container */
.food-container {
  border: 0;
  position: relative;
  min-height: 100vh;
  background-color: var(--color-background); /* keeping as is for contrast, optional to switch to --color-background */
}

/* Location icon */
.location {
  width: 30px;
  height: 30px;
}

/* Headings */
h1 {
  font-size: 20px;
}

/* Food item */
.food-item {
  border-radius: 10px;
  position: relative;
  padding: 10px; /* optional padding */
  margin-bottom: 10px; /* spacing between items */
  background-color: #ffffff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

/* Food image */
.food-image {
  width: 100px;
  border-radius: 10px;
}

/* Food title */
.food-title {
  font-size: 15px;
  margin:  0;
  padding: 0;
  width: 90%;
  line-height: 24px;
}

/* Food price */
.food-price {
  font-size: 12px;
  position: absolute;
  bottom: -10px;
  right: 9px; /* added for better placement */
}

/* ----------------------overlay------------------------ */
/* استایل Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
}

.overlay-content {
    direction: rtl;
}

.navy{
    border-radius: 10px;
    text-decoration: none;
    width: 100%;
    display: block;
    color: var(--color-text);
}

.social-icon{
    width: 25px;
}

.restaurant-image{
  max-width: 80px;
  border-radius: 10px;
}






/* -------------------------menu-item-overlay-------------------------- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.menu-overlay-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    top: 40%;
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* مخصوص overlay منو آیتم‌ها */
#menuItemOverlay .menu-overlay-content {
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.menu-item-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.menu-close-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.menu-item-description {
    margin-top: 15px;
    text-align: center;
    line-height: 1.6;
    padding: 0 10px;
    user-select: none;
}
.menu-item-title,
.menu-item-price{
  user-select: none;
}
