/* Font Face */
@font-face {
  font-family: vazir;
  src: url('/themes/donya/font/vazir/Vazir-Bold.woff');
}

/* Base Styles */
body {
  background-color: #f3f6f8;
  font-family: vazir;
  color: #444;
}

a{
  text-decoration: none;
}

/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f3f6f8;
}

/* Hamburger Icon */
.hambergur-icon {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: rotate(90deg);
  text-align: center;
  cursor: pointer;
  user-select: none;
}

/* 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;
}

/* Text Styles */
.color-light {
  color: #999;
  line-height: 28px;
}

/* Location Icon */
.location {
  max-width: 30px;
  cursor: pointer;
  user-select: none;
}

/* Social Links */
.social-link {
  width: 50px;
}

/* Category Container */
.cat-container {
  overflow: auto;
  white-space: nowrap;
  direction: rtl;
  scrollbar-width: 0;
  padding: 0;
  transition: margin-top 0.3s ease;
}

header.hide-intro .cat-container {
  margin-top: 0;
}

/* Hide scrollbar */
::-webkit-scrollbar {
  display: none;
}

/* Category Items */
.cat-item {
  background-color: #fff;
  color: #03c17e;
  display: inline-block;
  border-radius: 10px;
  padding: 0 14px;
  padding-top: 10px;
  list-style: none;
  text-align: center;
  margin-left: 10px;
  width: 100px;
  overflow-x: hidden;
  cursor: pointer;
  user-select: none;
  border: 0;
}

.cat-item.active {
  background-color: #03c17e;
  color: #fff;
}

.cat-item:first-child {
  margin-right: 0;
}

.cat-item p {
  margin-top: 20px;
  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: 200px;
  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: #777;
  margin-top: 30px;
}

/* Food Items */
.food-item {
  background-color: #fff;
}

.food-container {
  border-radius: 10px;
  position: relative;
}

.food-title {
  color: #555;
}

.food-image {
  width: 120px;
  border-radius: 10px;
}

.food-description {
  color: #777;
  font-size: 12px;
  margin-top: 10px;
    text-align: right;
    max-width: 85%;
}

.food-price {
  text-align: start;
  font-size: 16px;
  color: #03c17e;
  position: absolute;
  bottom: 0;
}

/* Overlay Menu */
.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 10000;
  right: 0;
  top: 0;
  background-color: rgba(0,0,0, 0.91);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  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: 60px;
}

/* 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;
  }
}

