/* لود فونت */
@font-face {
  font-family: "IRANSans";
  src: url("../font/IRANSans.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
/* استایل کلی بخش فروشگاه‌ها */
.stores-section {
  background: linear-gradient(135deg, #212529, #343a40);
  padding: 2.5rem 0; /* کاهش پدینگ برای لود سریع‌تر */
}
.stores-section h2 {
  font-family: "IRANSans", Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #e9ecef;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* کانتینر فروشگاه‌ها */
.stores-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); /* چیدمان گرید بهینه */
  gap: 1.2rem;
  padding: 0.8rem;
  justify-items: center;
  scrollbar-width: none; /* حذف اسکرول‌بار */
}
.stores-container::-webkit-scrollbar {
  display: none; /* حذف اسکرول‌بار در وب‌کیت */
}
/* آیتم‌های فروشگاه */
.store-item {
  width: 100%;
  max-width: 180px;
  text-decoration: none;
  background: #2a2f35;
  border-radius: 10px; /* گوشه‌های مستطیلی با انحنای کم */
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* انیمیشن کوتاه‌تر */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}
.store-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 123, 255, 0.3);
}
/* لوگوی فروشگاه */
.store-logo-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%; /* اطمینان از دایره‌ای بودن */
  overflow: hidden;
  border: 2px solid #007bff;
  background: #343a40;
  margin-bottom: 0.8rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  aspect-ratio: 1 / 1; /* نسبت 1:1 برای دایره‌ای ماندن */
}
.store-item:hover .store-logo-wrapper {
  border-color: #00b4ff;
  transform: scale(1.05);
}
.store-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
/* نام فروشگاه */
.store-name {
  font-family: "IRANSans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #e9ecef;
  text-align: center;
  margin: 0 0 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
/* دکمه مشاهده */
.store-view-btn {
  background: linear-gradient(45deg, #007bff, #00b4ff);
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-family: "IRANSans", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}
.store-view-btn:hover {
  background: linear-gradient(45deg, #0056b3, #007bff);
  transform: scale(1.05);
}
/* پیام‌های خطا یا خالی بودن */
.alert-danger,
.text-warning {
  font-family: "IRANSans", Arial, sans-serif;
  font-size: 0.95rem;
  text-align: center;
  margin: 0 auto;
  max-width: 500px;
  padding: 0.7rem;
  border-radius: 8px;
}
/* رسپانسیو */
@media (max-width: 768px) {
  .stores-section {
    padding: 2rem 0;
  }
  .stores-section h2 {
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
  }
  .stores-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  .store-item {
    max-width: 150px;
    padding: 0.8rem;
  }
  .store-logo-wrapper {
    width: 75px;
    height: 75px;
  }
  .store-name {
    font-size: 0.9rem;
  }
  .store-view-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
}
@media (max-width: 576px) {
  .stores-section {
    padding: 1.5rem 0;
  }
  .stores-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }
  .stores-container {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
  }
  .store-item {
    max-width: 130px;
    padding: 0.6rem;
  }
  .store-logo-wrapper {
    width: 65px;
    height: 65px;
  }
  .store-name {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }
  .store-view-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  .alert-danger,
  .text-warning {
    font-size: 0.85rem;
    max-width: 90%;
  }
}
