:root {
  --primary-color: #28a745;
  --primary-color-dark: #218838;
  --input-border-color: #ccc;
  --input-focus-border-color: var(--primary-color);
  --background-color: #f9f9f9;
  --text-color: #333;
  --label-color: #555;
  --button-text-color: #fff;
}

.edit-product-container {
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-title {
  text-align: center;
  margin-bottom: 25px;
  color: var(--text-color);
}

.edit-product-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-label {
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--label-color);
}

.form-input {
  padding: 10px 15px;
  border: 1px solid var(--input-border-color);
  border-radius: 4px;
  font-size: 16px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.form-input:focus {
  border-color: var(--input-focus-border-color);
  outline: none;
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

.submit-button {
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: var(--button-text-color);
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.submit-button:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

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

@media (max-width: 600px) {
  .edit-product-container {
    padding: 20px;
    margin: 20px;
  }

  .form-input {
    font-size: 14px;
  }

  .submit-button {
    font-size: 14px;
    padding: 10px 15px;
  }
}

.form-input:focus {
  border-color: var(--input-focus-border-color);
  box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

.submit-button:focus {
  outline: 2px dashed var(--primary-color-dark);
  outline-offset: 2px;
}
