    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      padding: 2rem;
    }

    .product-card {
      transition: box-shadow 0.3s ease, transform 0.3s ease;

      background: #fffaf4;
      border-radius: 1rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      padding: 1rem;
      text-align: center;
    }

    .product-card img {
      max-width: 100%;
      height: 150px;
      object-fit: cover;
      border-radius: 0.5rem;
    }

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 1rem;
}

.product-card-link:hover .product-card {
  box-shadow: 0 8px 24px rgba(90, 62, 43, 0.3),
              0 2px 8px rgba(255, 221, 153, 0.4);
  transform: translateY(-6px);
  cursor: pointer;
}


.product-card:hover {
  box-shadow: 0 8px 24px rgba(90, 62, 43, 0.3), /* тепла основна тінь */
              0 2px 8px rgba(255, 221, 153, 0.4); /* легка акцентна жовта тінь */
  transform: translateY(-6px);
  cursor: pointer;
}

    .product-card h3 {
      margin: 0.5rem 0;
      color: #5a3e2b;
    }

    .product-card p {
      font-weight: bold;
      color: #5a3e2b;
    }

    .add-product-form {
      background: #fffaf4;
      max-width: 500px;
      margin: 2rem auto;
      padding: 2rem;
      border-radius: 1rem;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .add-product-form h2 {
      text-align: center;
      color: #5a3e2b;
    }

    .add-product-form label {
      display: block;
      margin-top: 1rem;
      color: #5a3e2b;
    }

    .add-product-form input[type="text"],
    .add-product-form input[type="number"],
    .add-product-form input[type="url"],
    .add-product-form input[type="file"] {
      width: 100%;
      padding: 0.6rem;
      margin-top: 0.3rem;
      border: 1px solid #ccc;
      border-radius: 0.5rem;
    }

    .add-product-form button {
      background-color: #ffdd99;
      color: #5a3e2b;
      border: none;
      padding: 0.8rem 1.2rem;
      border-radius: 0.5rem;
      cursor: pointer;
      font-weight: bold;
      transition: background-color 0.3s;
      margin-top: 1rem;
      width: 100%;
    }

    .add-product-form button:hover {
      background-color: #f5c56a;
    }

.success-message {
  background-color: #e6ffe6;
  color: #3c763d;
  border: 1px solid #b2d8b2;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
    animation: fadeInSuccess 0.5s ease forwards;

}


@keyframes fadeInSuccess {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}


.btn-add-product-container {
  text-align: center;
  margin: 2rem 0;
}

.btn-add-product {
  display: inline-block;
  background-color: #ffdd99;
  color: #5a3e2b;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  -webkit-user-select: none;
  user-select: none;
}

.btn-add-product:hover,
.btn-add-product:focus {
  background-color: #f0c86a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  outline: none;
}

.btn-add-product:active {
  background-color: #e6b84e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.add-product-form .delete-button {
  background-color: #d9534f;
  color: #fffaf4;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1rem;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.add-product-form .delete-button:hover {
  background-color: #c9302c;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-edit-product {
  display: inline-block;
  background-color: #ffdd99;
  color: #5a3e2b;
  padding: 0.8rem 1.5rem;
  border-radius: 0.7rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-edit-product:hover {
  background-color: #f0c86a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
