/* استایل‌های منوی موبایل */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo img {
  max-width: 120px;
}

#close-mobile-menu {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  padding: 20px;
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--gold);
}

#mobile-menu-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  z-index: 1000;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  #mobile-menu-button {
    display: flex;
  }

  /* مخفی کردن منوی اصلی در موبایل */
  #main {
    display: none;
  }

  /* مخفی کردن دکمه‌های بالای صفحه در موبایل */
  #shop-button,
  #signup-button {
    display: none;
  }
}

/* بهبود اسکرول در موبایل */
.smooth-scroll {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* بهبود دکمه‌های لمسی در موبایل */
.touch-target {
  min-width: 44px;
  min-height: 44px;
}

/* بهبود فاصله‌گذاری برای موبایل */
@media (max-width: 768px) {
  .section-spacing {
    margin-bottom: 40px;
  }

  .content-padding {
    padding: 15px;
  }
}

/* بهبود خوانایی متن در موبایل */
@media (max-width: 768px) {
  body {
    font-size: 95%;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.2em;
  }
}

/* بهبود فرم‌ها در موبایل */
@media (max-width: 768px) {
  input,
  select,
  textarea,
  button {
    font-size: 16px; /* جلوگیری از زوم خودکار در iOS */
  }

  .form-row {
    margin-bottom: 15px;
  }
}

/* بهبود گالری در موبایل */
@media (max-width: 768px) {
  #gallery img {
    height: auto;
    width: 85vw;
    max-height: 70vh;
  }
}

/* بهبود پاپ‌آپ‌ها در موبایل */
@media (max-width: 768px) {
  .popup .frame-wrapper {
    padding: 15px;
  }

  .popup .close {
    top: 10px;
    right: 15px;
  }
}
