body {
  background: linear-gradient(to right, #e0f7fa, #e1bee7);
  font-family: "Arial, sans-serif";
  margin: 0;
  padding: 0;
  color: #fff;
}

.container-box {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
}

h2 {
  color: #6a1b9a;
}

.btn-custom {
  background-color: #6a1b9a;
  color: white;
  border-radius: 25px;
}

.btn-custom:hover {
  background-color: #4a148c;
}

.form-image {
  width: 100%;
  border-radius: 15px;
}

.form-section {
  transition: all 0.3s ease-in-out;
}

a {
  color: black;
}

.zoom-img {
  transition: transform 0.3s ease;
}

.zoom-img:hover {
  transform: scale(1.1);
}

.hover-title {
  transition: color 0.3s ease;
}

.hover-title:hover {
  color: #007bff;
  text-decoration: underline;
}

.product-card {
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Floating Chat Icon */
#chatbot-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: blue;
  color: white;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
}

#chatbot-icon:hover {
  background-color: #b71c1c;
  transform: scale(1.1);
}

/* Chatbot Container */
#chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 450px;
  background-color: #1f1f1f;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Hide Chatbot Initially */
.hidden {
  display: none !important;
}

/* Chatbot Header */
#chatbot-header {
  background-color: blue;
  color: white;
  padding: 15px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

#close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Chatbot Body */
#chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

/* Chatbot Messages */
#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 100%;
  /* hoặc đặt height cố định như 300px nếu cần */
}

.message {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  max-width: 85%;
}

.message.user {
  background-color: blue;
  color: white;
  align-self: flex-end;
}

.message.bot {
  background-color: #333;
  color: white;
  align-self: flex-start;
}

/* Input Section */
#chatbot-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #444;
  background-color: #2c2c2c;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 10px;
  background-color: #333;
  color: white;
}

#send-btn {
  margin-left: 10px;
  padding: 10px 15px;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

#send-btn:hover {
  background-color: #b71c1c;
}
/* --- Section sản phẩm API --- */
#api-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* căn giữa */
    gap: 20px;
    margin: 30px 0;
}

/* Card API đồng bộ với card tĩnh */
#api-products .card {
    width: 300px; /* bằng card tĩnh */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.2s ease;
}

/* Ảnh sản phẩm */
#api-products .card img {
    width: 100%;
    height: 220px; /* cùng chiều cao card tĩnh */
    object-fit: cover;
    transition: transform 0.3s ease;
}

#api-products .card img:hover {
    transform: scale(1.05); /* hover zoom ảnh */
}

/* Thông tin sản phẩm */
#api-products .card-body {
    padding: 15px;
}

#api-products .card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

#api-products .card-price {
    font-size: 15px;
    color: #d32f2f; /* giá màu đỏ */
    font-weight: bold;
    margin-bottom: 15px;
}

/* Nút mua */
#api-products .btn-add {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

#api-products .btn-add:hover {
    background: #b71c1c;
}
