/* --- Giao diện khung tra cứu sản phẩm --- */
.product-container {
  max-width: 600px;
  margin: 60px auto;
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.product-container:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.product-container h2 {
  text-align: center;
  color: #b8860b;
  margin-bottom: 25px;
  font-size: 1.6rem;
}

/* --- Form tra cứu --- */
.lookup-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.lookup-form input[type="text"] {
  flex: 1 1 70%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px 0 0 8px;
  outline: none;
  font-size: 16px;
  transition: 0.3s;
  min-width: 200px;
}

.lookup-form input[type="text"]:focus {
  border-color: #d4af37;
  box-shadow: 0 0 6px rgba(212, 175, 55, 0.3);
}

.lookup-form button {
  padding: 12px 20px;
  border: none;
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lookup-form button:hover {
  background: linear-gradient(135deg, #e0b94a, #c49a08);
  transform: translateY(-1px);
}

/* --- Kết quả và thông báo --- */
.result-box,
.error-box {
  text-align: center;
  margin-top: 25px;
  border-radius: 10px;
  padding: 20px;
  background: #fffaf0;
  border: 1px solid #f1e2b1;
}

.error-box {
  background: #ffecec;
  border-color: #ffbcbc;
  color: #d9534f;
  font-weight: 500;
}

.result-box h3 {
  color: #b8860b;
  margin-bottom: 15px;
}

.result-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.result-box td {
  padding: 10px;
  border-bottom: 1px solid #f2f2f2;
  text-align: left;
}

.result-box .price {
  color: #c49a08;
  font-weight: bold;
  font-size: 1.1rem;
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .product-container {
    margin: 30px 15px;
    padding: 20px;
  }

  .lookup-form input[type="text"] {
    border-radius: 8px;
    margin-bottom: 10px;
    flex: 1 1 100%;
  }

  .lookup-form button {
    border-radius: 8px;
    width: 100%;
  }
}
