/* ============================================ */
/* ========== فونت‌ها و متغیرهای全局 ========== */
/* ============================================ */

@font-face {
  font-family: "Vazir";
  src: url("../content/font/Yekan.woff");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazir", sans-serif;
  outline: none;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -moz-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

:root {
  --primary-blue: #1a237e;
  --dark-blue: #0d1b3e;
  --light-blue: #283593;
  --orange: #ffffff;
  --light-orange: #021c74;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --gray: #e0e0e0;
  --dark-gray: #616161;
  --shadow: rgba(0, 0, 0, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.25);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  color: var(--white);
  line-height: 1.7;
  background-color: #01262c;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================ */
/* ========== افکت‌های شیشه‌ای ========== */
/* ============================================ */

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.2);
}

.glass-dark {
  background-color: #01191d;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.squircle-border {
  border-radius: 80px;
  corner-shape: squircle;
  -webkit-border-radius: 80px;
  -moz-border-radius: 80px;
}

/* ============================================ */
/* ========== هدر و ناوبری ========== */
/* ============================================ */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 0.8rem 0;
  background-color: #01262c4f;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 3rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../content/logo/mainlogo.png') no-repeat center center/cover;
  color: var(--white);
  font-weight: bold;
  font-size: 1.3rem;
}

.restaurant-name {
  font-size: 1.9rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--white), var(--gray));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  transition: var(--transition);
  position: relative;
  border-radius: 80px;
  corner-shape: squircle;
  -webkit-border-radius: 80px;
  -moz-border-radius: 80px;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--orange);
  transform: translateY(-2px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, #ffffff);
  bottom: -5px;
  right: 50%;
  transform: translateX(50%);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 70%;
}

/* دراپ‌داون دسکتاپ */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgb(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1rem 0;
  margin-top: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.dropdown-item:hover {
  background-color: rgb(2, 71, 83);
  color: var(--orange);
  padding-right: 2rem;
}

.dropdown-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* دکمه منوی موبایل */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.hamburger {
  display: block;
  position: relative;
  width: 30px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
  margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--white);
  right: 0;
  transition: var(--transition);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.mobile-menu-btn.active .hamburger {
  background-color: transparent;
}

.mobile-menu-btn.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  background-color: var(--orange);
}

.mobile-menu-btn.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
  background-color: var(--orange);
}

/* منوی موبایل */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background-color: #01191d;
  z-index: 1000;
  padding: 1rem 2rem 2rem;
  transition: right 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.mobile-nav-logo .logo-placeholder {
  margin: 0 auto;
}

.mobile-nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid transparent;
}

.mobile-nav-link:hover {
  background-color: rgba(0, 0, 0, 0.15);
  color: var(--orange);
  border-color: rgba(13, 27, 62, 0.95);
  transform: translateX(-10px);
}

.mobile-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* استایل SVG */
.svg-icon {
  width: 100%;
  height: 100%;
  fill: currentColor;
  transition: var(--transition);
}

/* ============================================ */
/* ========== محتوای اصلی ========== */
/* ============================================ */

main {
  margin-top: 140px;
  padding: 0 2rem 6rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 5rem;
  padding: 9rem 2rem;
  border-radius: 35px;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 200px;
  border: 1px solid #e0e0e0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0.322)),
    url('../content/logo/mainpic2.jpg') no-repeat center center/cover;
  z-index: -1;
  filter: blur(3px);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.logo-hero {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-family: 'Noto Nastaliq Urdu', 'IranNastaliq', 'Traditional Arabic', 'Urdu Typesetting', serif !important;
  font-size: 2.4rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  animation: fadeInUpWithShake 1.5s ease-out 1s forwards;
  opacity: 0;
  border-radius: 80px;
  corner-shape: squircle;
  background-color: rgb(0, 0, 0);
}

@keyframes fadeInUpWithShake {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  70% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    transform: translateY(-5px);
  }

  90% {
    transform: translateY(3px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.btn-primary {
  background: linear-gradient(135deg, #01262c);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* بخش‌های منو */
.menu-section {
  margin-bottom: 5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.3rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--white);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 4px;
  background: linear-gradient(to right, var(--orange), transparent);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 600px;
}

.menu-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* کارت‌های منو */
.menu-card {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  overflow: hidden;
  transition: var(--transition);
  border-radius: 10px;
  position: relative;
}

.card-image {
  height: 300px;
  background-color: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 50%;
  height: 50%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.menu-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 1.8rem;
}

.card-header {
  display: contents;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.item-name {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--white);
  line-height: 1.3;
}

.item-price {
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: bold;
  direction: rtl;
}

.item-price del {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-left: 0.5rem;
}

.item-description {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  height: 4.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.card-actions {
  display: flex;
  justify-content: center;
  /* وسط چین کردن دکمه‌ها */
  gap: 0.5rem;
  width: 100%;
  /* اطمینان از پهنای کامل */
}

.order-btn {
  flex: 2;
  /* دکمه سفارش دو برابر فضا بگیرد */
  background-color: black;
  color: var(--white);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.details-btn {
  flex: 1;
  /* دکمه جزئیات یک سوم فضا */
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.order-btn:hover {
  background-color: rgba(13, 27, 62, 0.95);
  transform: translateY(-3px);
}

.details-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.details-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.order-icon,
.details-icon {
  width: 30px;
  height: 30px;
}

/* ============================================ */
/* ========== مودال‌ها ========== */
/* ============================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.food-modal {
  background: rgb(0, 19, 20);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .food-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 20px;
  background: rgb(0, 0, 0);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 1.5rem;
  transition: var(--transition);
  z-index: 10;

}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;

}

.modal-image {
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
}

.modal-title {
  font-size: 2rem;
  color: var(--white);
  font-weight: bold;
  margin-top: 30px;
}

.modal-price {
  font-size: 2rem;
  color: var(--orange);
  font-weight: bold;
  margin-top: 30px;
}

.modal-description {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.1rem;
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gray);
}

.detail-icon {
  width: 20px;
  height: 20px;
  fill: var(--orange);
}

.detail-label {
  font-weight: bold;
  min-width: 100px;
  color: var(--white);
}

.detail-value {
  color: var(--gray);
}

.modal-ingredients {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ingredients-title {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: bold;
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
}

.ingredient {
  background-color: rgba(255, 109, 0, 0.15);
  color: var(--orange);
  padding: 0.5rem 1rem;
  border-radius: 80px;
  corner-shape: squircle;
  font-size: 0.9rem;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

/* شمارنده تعداد در مودال */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 80px;
  corner-shape: squircle;
  -webkit-border-radius: 80px;
  padding: 0.2rem;
  margin-left: 1rem;
}

.quantity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.6rem;
  font-weight: 400;
  border-radius: 80px;
  corner-shape: squircle;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0;
}

.quantity-btn:hover {
  background: var(--orange);
  color: black;
  transform: scale(1.05);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 80px;
  padding: 0.2rem 0.5rem;
  margin: 0 0.2rem;
}

/* مودال جزئیات (نسخه تک‌ستونه) */
#foodModal .modal-content {
  display: block !important;
  padding: 1.8rem;
}

#foodModal .modal-info {
  width: 100% !important;
}

#foodModal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

#foodModal .modal-title {
  font-size: 1.6rem;
  margin-top: 0;
}

#foodModal .modal-price {
  font-size: 1.6rem;
  margin-top: 0;
}

#foodModal .modal-category {
  color: var(--orange);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

#foodModal .modal-ingredients {
  margin: 1.2rem 0;
  padding: 1.2rem;
}

#foodModal .modal-footer {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#foodModal .modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

#foodModal .quantity-selector {
  margin-left: 0;
}

/* مودال لیست منوها */
#menuListModal.modal-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.849);
  z-index: 2100;
}

.menu-list-modal {
  background: rgb(0, 30, 32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

#menuListModal.active .menu-list-modal {
  transform: scale(1);
  opacity: 1;
}

.menu-list-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: 40px;
}

.menu-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 80px;
  corner-shape: squircle;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-list-item:hover {
  background: rgba(2, 83, 79, 0.596);
  border-color: var(--orange);
  transform: translateY(-3px);
  color: var(--orange);
}

.menu-list-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================ */
/* ========== فوتر ========== */
/* ============================================ */

footer {
  background-color: rgba(0, 0, 0, 0.322);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../content/logo/mainlogo.png') no-repeat center center/cover;
  color: var(--white);
  font-weight: bold;
  font-size: 1.4rem;
  border-radius: 80px;
  corner-shape: squircle;
}

.footer-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  background: linear-gradient(to right, var(--white), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-description {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1rem;
  max-width: 400px;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--orange), transparent);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.footer-link:hover {
  color: var(--orange);
  transform: translateX(-5px);
}

.footer-link-icon {
  width: 20px;
  height: 20px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gray);
}

.contact-icon {
  width: 22px;
  height: 22px;
  fill: var(--orange);
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 80px;
  corner-shape: squircle;
  -webkit-border-radius: 80px;
  transition: var(--transition);
}

.social-link:hover {
  background-color: black;
  transform: translateY(-5px);
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--dark-gray);
  font-size: 0.95rem;
  text-align: center;
}

.copyright {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-align: center;
}

.copyright-icon {
  width: 18px;
  height: 18px;
  fill: var(--dark-gray);
}

/* ===== دکمه بازگشت به بالا ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;         /* تغییر از right به left */
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background-color: #007688;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #000000;
  /* نارنجی روشن‌تر */
  transform: scale(1.1);
}

.scroll-to-top svg {
  width: 100px;
  height: 100px;
  fill: rgb(255, 255, 255);
}

/* تنظیم برای موبایل */
@media (max-width: 576px) {
  .scroll-to-top {
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    margin-bottom: 40PX;
  }

  .scroll-to-top svg {
    width: 50px;
    height: 50px;
  }
}

/* ============================================ */
/* ========== انیمیشن‌ها ========== */
/* ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* ============================================ */
/* ========== رسپانسیو ========== */
/* ============================================ */

@media (max-width: 1200px) {
  .menu-items {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .modal-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .modal-image {
    height: 300px;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }

  .nav-dropdown {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-center {
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .order-btn,
  .details-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .menu-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  main {
    padding: 0 1.5rem 4rem;
    margin-top: 120px;
  }

  .header-container {
    padding: 0 1.5rem;
  }

  .food-modal {
    max-height: 95vh;
  }

  .menu-items {
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 2rem 1rem;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .mobile-nav {
    width: 280px;
  }

  footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .card-actions {
    flex-direction: row;
    gap: 0.8rem;
  }

  .order-btn,
  .details-btn {
    padding: 0.7rem 1.2rem;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }

  .modal-actions {
    flex-direction: column;
  }

  .menu-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .card-image {
    height: 150px;
  }

  .item-name {
    font-size: 1.1rem;
  }

  .item-price {
    font-size: 1.1rem;
  }

  .quantity-btn {
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
  }

  .quantity-number {
    min-width: 40px;
    font-size: 1.2rem;
  }

  #foodModal .modal-content {
    padding: 1.5rem;
  }

  #foodModal .modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #foodModal .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #foodModal .quantity-selector {
    justify-content: center;
  }

  .menu-list-modal {
    width: 95%;
    padding: 2rem 1.2rem;
    border-radius: 30px;
    max-height: 85vh;
  }

  .menu-list-content {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .menu-list-item {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .menu-list-modal {
    padding: 1.8rem 1rem;
    width: 92%;
  }

  .menu-list-item {
    padding: 0.9rem 1rem;
  }
}

@media (max-width: 400px) {
  .menu-items {
    grid-template-columns: repeat(2, 1fr);
    /* قبلاً 1fr بود */
    gap: 0.8rem;
  }

  .card-image {
    height: 130px;
    /* کمی کوچکتر */
  }

  .item-name {
    font-size: 1rem;
  }

  .item-price {
    font-size: 1rem;
  }

  .card-content {
    padding: 1rem;
  }

  .order-btn,
  .details-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}




/* ===== دراپ‌داون موبایل ===== */
.mobile-dropdown {
  width: 100%;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  padding: 1rem 1.5rem;
}

.mobile-dropdown-toggle .dropdown-arrow {
  transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  padding: 0;
  border: 1px solid transparent;
}

.mobile-dropdown-menu.active {
  max-height: 400px;
  /* با توجه به تعداد آیتم‌ها تنظیم کنید */
  padding: 0.5rem 0;
  border-color: rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-item {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 80px;
  font-size: 1rem;
  margin: 0.2rem 0.5rem;
}

.mobile-dropdown-item:hover {
  background: rgba(255, 109, 0, 0.15);
  color: var(--orange);
  transform: translateX(-5px);
}