.barcode-search-container * {
  font-family: Vazirmatn !important;  
}
.barcode-search-container {
  max-width: 100%;
  margin: 20px 0;
  font-family: Vazirmatn !important;
}
.barcode-search-form {
  margin-bottom: 20px;
}

.barcode-search-form .form-group {
  display: flex;
  gap: 0px;
}

#barcode-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}



.barcode-loading {
  text-align: center;
  padding: 20px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.barcode-results {
  overflow-x: auto;
}

.barcode-results table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.barcode-results th,
.barcode-results td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: right;
}

.barcode-results th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.barcode-results tr:nth-child(even) {
  background-color: #f9f9f9;
}

.barcode-results tr:hover {
  background-color: #f1f1f1;
}

.barcode-error {
  color: #d9534f;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .barcode-search-form .form-group {
    flex-direction: column;
  }

  .barcode-results {
    font-size: 14px;
  }

  .barcode-results th,
  .barcode-results td {
    padding: 6px;
  }
}
.barcode-product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 20px auto;
  overflow: hidden;
  font-family: Vazirmatn !important;
}

.barcode-card-header {
  background: #27ae60;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.barcode-card-body {
  padding: 25px;
}

.barcode-info-grid {
   display: grid;
    grid-template-columns: repeat(2, 1fr); /* سه ستون با عرض یکسان */
    gap: 20px; /* فاصله بین آیتم‌ها */
}

.barcode-info-item {
  margin-bottom: 15px;
}

.barcode-info-label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.barcode-info-label i {
  margin-left: 8px;
  color: #7f8c8d;
}

.barcode-info-value {
  font-size: 16px;
  font-weight: 500;
  color: #2c3e50;
  padding: 10px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-right: 3px solid #3498db;
}

.barcode-info-description {
  font-size: 12px;
  color: #7f8c8d;
  margin-top: 5px;
  padding: 0 5px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .barcode-info-grid {
    grid-template-columns: 1fr;
  }

  .barcode-card-body {
    padding: 15px;
  }
}

/* استایل‌های فرم جستجو */
.barcode-search-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.barcode-search-form {
  display: flex;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  width: 100%;
}

#barcode-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
}

#barcode-search-btn {
  padding: 12px 20px;
  background: #000;
  color: white;
  border: none;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  font-size: 16px;
}

#barcode-search-btn:hover {
  background: #27ae60;
}

.barcode-loading {
  text-align: center;
  padding: 20px;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.barcode-error {
  color: #e74c3c;
  padding: 15px;
  background: #fdf2f2;
  border: 1px solid #e74c3c;
  border-radius: 4px;
  margin-top: 20px;
}

/* ------------------------------------------------------ */
.form-group input {
	font-family: Vazirmatn;
}

