:root{
  --color-1: #03c17e;
  --color-2: #5d737e;
  --color-3: #fcfffd;
}

/* Font Face */
@font-face {
  font-family: vazir;
  src: url('/themes/donya/font/vazir/Vazir-Bold.ttf');
}
*{
  box-sizing: border-box;
}
/* Base Styles */
body {
  background-color: var(--color-3);
  font-family: vazir;
  color: #444;
}
.title{
  /* font-family: vazir; */
  font-size:20px ;
  /* border: 1px solid red; */
  padding:15px;
}
a{
  text-decoration: none;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  left:50%;
  right:50%;
  z-index: 5;
  user-select: none;
  /* padding: 0 !important; */
  /* background-color: unset; */

}



/* Intro Section */
.intro {
  background-color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

header.hide-intro .intro {
  transform: translateY(-100%);
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}

/* Logo */
.logo {
  max-width: 50px;
  border-radius: 10px;
}
.overlay-content .logo{
  max-width: 150px;
}

/* Text Styles */
.color-light {
  color: #999;
  line-height: 28px;
}

/* Location Icon */
.location {
  max-width: 20px;
  cursor: pointer;
  user-select: none;
  padding-bottom: 5px;
}

/* Social Links */
.social-link {
  width: 50px;
}

/* Category Container */
.cat-container {
  overflow: auto;
  white-space: nowrap;
  direction: rtl;
  scrollbar-width: 0;
  padding-bottom: 10px ;
  transition: margin-top 0.3s ease;
  position: relative;
  top: -10px;
  background: rgba(255, 255, 255, 0.3); /* سفید با شفافیت */
  backdrop-filter: blur(10px); /* بلور پس‌زمینه */
  -webkit-backdrop-filter: blur(10px); /* برای مرورگرهای مبتنی بر webkit */
}

header.hide-intro .cat-container {
  margin-top: 0;
    /* z-index: -5; */
}

/* Hide scrollbar */
::-webkit-scrollbar {
  display: none;
}
.navbar{
  background-color: var(--color-3);
  padding-top: 0 !important;
}
.navbar *{
  /* border:2px solid red; */

}
/* Category Items */
.cat-item {
  /* background-color: #fff; */
  color: #5d737e;
  display: inline-block;
  border-radius: 10px;
  font-weight: bold;
  padding: 10px 14px 0 !important;
  list-style: none;
  text-align: center;
  margin-left: 10px;
  width: 100px;
  overflow-x: hidden;
  cursor: pointer;
  user-select: none;
  border: 0;
  box-shadow: 1px 5px 10px #aaa5;
  background: rgba(255, 255, 255, 0.3); /* سفید با شفافیت */
  backdrop-filter: blur(10px); /* بلور پس‌زمینه */
  -webkit-backdrop-filter: blur(10px); /* برای مرورگرهای مبتنی بر webkit */
}
.cat-item > *{
  /* border: 1px solid red; */

}

.cat-item.active {
  background-color: var(--color-1);
  opacity: .8;
  color: black;
  font-weight: bold;
}

.cat-item:first-child {
  margin-right: 0;
}

.cat-item p {
  margin-top: 5px;
  text-align: center;
  text-wrap: wrap;
  font-size: 14px;
  height: 50px;
}

.cat-item img {
  max-width: 60px;
  max-height: 60px;
}

/* Restaurant Image */
.restaurant-img {
  max-width: 300px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #fff;
  margin-bottom: 20px;
}

.cat-food {
  transition: all 0.3s ease;
}

/* Food Category */
.cat-food h3 {
  font-size: 22px;
  color: var(--color-1);
  margin-top: 30px;
}

/* Food Items */
.food-item {
  background-color: black;
  border: 3px solid yellow;
}

.food-container {
  border-radius: 10px;
  position: relative;
  box-shadow:  -1px 1px  4px #aaa4;
  background-color: var(--color-3);
}

.food-items{
  direction: rtl;
  user-select: none;
}
.food-title {
  color: #555;
}

.food-image {
  width: 120px;
  border-radius: 10px;
}

.food-description {
  color: #777;
  font-size: 12px;
  margin-top: 10px;
  display: none;
}

.food-price {
  text-align: start;
  font-size: 16px;
  color: #03c17e;
  position: absolute;
  bottom: 0;
}

/* Overlay Menu */
.overlay {

  width: 100vw;
  /* position: fixed; */
  /* z-index: 5; */
  /* right: 0; */
  /* top: 0; */
  background-color: rgba(0,0,0, 0.91);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  /* position: relative; */
  margin: 0 auto;
  text-align: center;
  margin-top: 30px;

}

.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 35px;
  padding:5px 20px !important;
  z-index: 11;
}

/* Media Queries */
@media only screen and (min-width: 992px) {
  .intro {
    max-width: 50%;
    margin: 0 auto;
  }

  .cat-container {
    max-width: 50%;
    margin: 0 auto;
  }

  .food-container {
    max-width: 50%;
    margin: 0 auto;
  }
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }

  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

/* ----------------------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: 11;
    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: 11;
    display: none;
    overflow-y: auto;
    /* border: 2px solid green; */
    width: 100vw;
}

.menu-overlay-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;

    position: relative;
    top: 40%;
    transform: translateY(-50%);
    box-shadow: -2px 2px 10px rgba(0,0,0,0.5);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;

}

/* مخصوص overlay منو آیتم‌ها */


.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;
}








/* This is for test */
.cat-container {
    overflow: auto;
    white-space: nowrap;
    direction: rtl;
    transition: margin-top 0.3s ease;
    position: relative;
    top: -10px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* برای اسکرول نرم */
    scroll-behavior: smooth;
}

/* استایل اسکرولبار برای مرورگرهای وبکیت */
.cat-container::-webkit-scrollbar {
    height: 6px;
}

.cat-container::-webkit-scrollbar-track {
    background: transparent;
}

.cat-container::-webkit-scrollbar-thumb {
    background-color: var(--color-1);
    border-radius: 3px;
}


