@font-face {
  font-family: "anjoman";
  src: url("./Anjoman-FaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "anjoman";
  src: url("./Anjoman-FaNum-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: anjoman, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #111827;
}

input, textarea, select, button {
  font-family: anjoman, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.page {
  width: 100%;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.header {
  text-align: center;
  margin-bottom: 16px;
}

.title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.subtitle {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-section {
  background-color: #f9fafb;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-input-group {
  display: flex;
  gap: 8px;
}

.product-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  direction: ltr;
}

.product-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.submit-button {
  padding: 0 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.status-message {
  margin: 6px 0 0;
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.status-message--error {
  color: #b91c1c;
}

.status-message--info {
  color: #4b5563;
}

.status-message--success {
  color: #15803d;
}

.status-message--hidden {
  opacity: 0;
}

.gallery-section {
  flex: 1;
  display: flex;
  align-items: stretch;
  margin: 0 -16px; /* تصویر فول‌عرض (بی‌پدینگ) */
}

.swiper-container-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.3);
}

.swiper {
  width: 100%;
  height: auto; /* ارتفاع متناسب با تصویر */
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  color: #e5e7eb;
}

.swiper-pagination-bullet {
  background: #9ca3af;
}

.swiper-pagination-bullet-active {
  background: #f9fafb;
}

.is-hidden {
  display: none !important;
}

/* Small screens */
@media (max-width: 600px) {
  .page {
    padding: 12px;
  }

  .swiper {
    height: 55vh;
  }

  .form-input-group {
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }
}


