* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  flex-direction: column;
  display: flex;
  font-family: "Roboto", sans-serif;
}

.main {
  flex: 1;
}

.header,
.footer {
  height: 100px;
  width: 100%;
  background-color: #0eba33;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container,
.footer .container {
  height: 100px;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  padding: 0.5rem;
  margin: 0 auto;
}

.main__container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  gap: 1rem;
  padding: 1rem;
}

.formulario,
.cards {
  text-align: center;
}

.formulario h2 {
  margin-bottom: 0.5rem;
}

.cards__header {
  margin-bottom: 1rem;
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.5rem;
}

.out-of-stock {
  opacity: 0.7;
}

.card {
  display: flex;
  border: 1px solid rgb(167, 167, 167);
  border-radius: 5px;
  flex-direction: column;
  justify-content: space-around;
}

.card__image {
  min-height: 150px;
  object-fit: cover;
}

.card__info {
  margin-top: auto;
}

.card__actions {
  margin-bottom: 0.5rem;
}
.form {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  gap: 0.5rem;
}

input {
  height: 30px;
  font-size: 15px;
}
button {
  height: 30px;
  font-size: 15px;
  padding: 5px;
  background-color: #4caf50;
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Специальные стили для кнопок действий */
.btn__edit {
  background-color: #4caf50;
  color: white;
}

.btn__edit:hover {
  background-color: #45a049;
}

.btn__delete {
  background-color: #f44336;
  color: white;
}

.btn__delete:hover {
  background-color: #da190b;
}

.form input::placeholder {
  color: #999;
  font-style: italic;
  opacity: 1;
}
