:root {
  --color-primary: #463f3a;       /* جایگزین رنگ تیره‌تر برای تمرکز و متن */
  --color-background: #fafafa;    /* رنگ پس‌زمینه روشن‌تر */
  --color-gray: #bcb8b1;          /* رنگ خاکستری طبیعی و ملایم */
  --color-text: #8a817c;           /* رنگ قابل خواندن و ملایم */
}
html{
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* ارتفاع هدر */

}

/* Font face remains unchanged */
@font-face {
  font-family: vazir;
  src: url('/themes/ava/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;
    scroll-margin-top: 80px;
    padding-top: 20px; /* فضای اضافی */
    user-select: none;
}
.food-cat-group > h3 {
  /* border : 1px solid red; */
  padding-top: 1.5rem;

}
/* Aside menu */
aside {
  /* border-left: 1px solid var(--color-gray); */
  box-shadow: -5px 0 8px #3331;
  height: 100vh;
  /* sticky because of mobile mode only */
  position: sticky;
  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-bottom: 1px solid #3332;
  border-top: 1px solid #3332;

  width: 100%;
  cursor: pointer;
  transition: all ease 0.3s;
  padding: 10px; /* optional padding for better spacing */
  user-select: none;
  /* transition: all .5s ease-in-out; */

}

/* 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;
}

#cat-1, #cat-2, #cat-3, #cat-4 {
    scroll-margin-top: 80px; /* مقدار را بر اساس نیاز تنظیم کنید */
}

/* 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:20px 10px !important; /* optional padding */
  margin-bottom: 10px; /* spacing between items */
  background-color: #ffffff;
  color: var(--color-primary);
  box-shadow: #1115 -5px 1px 8px;
  user-select: none;
  /* border:2px solid red; */
}

/* Food image */
.food-image {
  width: 100px;
  border-radius: 10px;
}

/* Food title */
.food-title {
  font-size: 16px;
  margin:  0;
  padding: 0;
  width: 90%;
  line-height: 24px;
}

/* Food price */
.food-price {
  font-size: 14px;
  position: absolute;
  bottom: 0px;
  right: 20px; /* added for better placement */
  /* border: 1px solid red; */
}

/* ----------------------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: auto;
    right: auto;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    overflow-y: auto;
    width: 100vw;
}

.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: -2px 2px 10px 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;
}




/* for Only Desktop Mode */
html, body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background: #111; /* رنگ پس‌زمینه در اطراف موبایل */
}

body > * {
  width: 390px;
  max-width: 390px;
}




/* for testing grabing screen  */
.container {
  cursor: grab; /* حالت دست */
}

.container:active {
  cursor: grabbing;
}
