body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff8ef;
}

/* Màu vàng đồng */
:root {
  --gold: #bfa75c;
  --light-gold: #f5e6c2;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--gold);
  color: white;
  padding: 10px 20px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.banner {
  background: url('img/banner.jpg') center/cover no-repeat;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold);
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px 10px;
  background-color: var(--light-gold);
}

.product {
  flex: 0 0 calc(100% / 6 - 50px);
  margin: 10px;
  background-color: white;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product img {
  width: 100%;
  height: auto;
}

.price {
  color: #cc0000;
  font-weight: bold;
}

.discount {
  color: #007f00;
}

button,
.btn {
  background-color: var(--gold);
  color: white;
  border: none;
  padding: 8px 12px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none !important;
}

footer {
  background-color: var(--gold);
  color: white;
  text-align: center;
  padding: 20px 10px;
}

@media (max-width: 1024px) {
  .product {
    flex: 0 0 calc(100% / 3 - 50px);
  }
}

@media (max-width: 768px) {
  .product {
    flex: 0 0 calc(100% / 2 - 50px);
  }

  nav ul {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .banner {
    font-size: 2em;
    height: 180px;
    text-align: center;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .product {
    flex: 0 0 100%;
  }

  header,
  footer {
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .banner {
    font-size: 1.5em;
    height: 150px;
  }
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  background-color: #f5e6c2;
}

.product-left {
  flex: 1;
  min-width: 300px;
  text-align: center;
  padding-right: 20px;
}

.zoom-container {
  overflow: hidden;
}

.product-image {
  width: 100%;
  transition: transform 0.4s ease;
}

.product-image:hover {
  transform: scale(1.2);
}

.product-right {
  flex: 1;
  min-width: 300px;
  background-color: white;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.booked-dates ul {
  padding-left: 20px;
  margin-top: 5px;
}

input[type="date"] {
  width: calc(100% - 18px);
  margin: 5px 0 15px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.short-desc {
  margin-top: 15px;
  font-style: italic;
  color: #555;
}

/* Phần sản phẩm liên quan giống homepage */
.related-products {
  padding: 20px;
  background-color: #fff8ef;
}

.related-products h3 {
  color: #bfa75c;
  text-align: center;
  margin-bottom: 20px;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.cart-container {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  background-color: #fff8ef;
}

.cart-left {
  flex: 2;
  min-width: 400px;
  margin-right: 20px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cart-table th,
.cart-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-info img {
  width: 60px;
  height: auto;
  border-radius: 4px;
}

.cart-right {
  flex: 1;
  min-width: 280px;
  background-color: white;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rental-form input {
  width: calc(100% - 18px);
  margin-bottom: 15px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.rental-form button {
  background-color: #bfa75c;
  color: white;
  font-weight: bold;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

main {
  min-height: calc(100vh - 74px - 141px - 60px);
}

a {
  color: #bfa75c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.login-container {
  background-color: #fff8ef;
  padding: 50px 20px;
  max-width: 400px;
  margin: 40px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
}

.login-container h2 {
  color: #bfa75c;
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
}

.login-form input {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-form button {
  background-color: #bfa75c;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.register-container {
  background-color: #fff8ef;
  padding: 50px 20px;
  max-width: 400px;
  margin: 40px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
}

.register-container h2 {
  color: #bfa75c;
  margin-bottom: 30px;
}

.register-form {
  display: flex;
  flex-direction: column;
}

.register-form label {
  text-align: left;
  margin-bottom: 5px;
  font-weight: bold;
}

.register-form input {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.register-form button {
  background-color: #bfa75c;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.success-container {
  background-color: #fff8ef;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.success-message {
  max-width: 600px;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.success-message h2 {
  color: #bfa75c;
  margin-bottom: 20px;
}

.success-message p {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}

.view-contract {
  display: inline-block;
  background-color: #bfa75c;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.success-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.back-home {
  display: inline-block;
  background-color: transparent;
  color: #bfa75c;
  border: 2px solid #bfa75c;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.back-home:hover {
  background-color: #bfa75c;
  color: white;
}

.account-container {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff8ef;
  padding: 30px;
}

.account-sidebar {
  flex: 0 0 250px;
  background-color: #bfa75c;
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-right: 30px;
}

.account-sidebar h3 {
  margin-bottom: 20px;
}

.account-sidebar ul {
  list-style: none;
  padding: 0;
}

.account-sidebar li {
  margin-bottom: 15px;
}

.account-sidebar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.account-content {
  flex: 1;
  background-color: white;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.account-content h2 {
  color: #bfa75c;
  margin-bottom: 25px;
}

.info-form {
  display: flex;
  flex-direction: column;
}

.info-form label {
  margin-bottom: 5px;
  font-weight: bold;
}

.info-form input {
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.info-form button {
  background-color: #bfa75c;
  color: white;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.account-sidebar a.active {
  background-color: white;
  color: #bfa75c;
  padding: 8px 12px;
  border-radius: 6px;
}

.account-sidebar a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.account-sidebar a:hover {
  background-color: white;
  color: #bfa75c;
}

.password-form {
  display: flex;
  flex-direction: column;
}

.password-form label {
  margin-bottom: 5px;
  font-weight: bold;
}

.password-form input {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.password-form button {
  background-color: #bfa75c;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.contract-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.contract-table th,
.contract-table td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.contract-table th {
  background-color: #f5e6c2;
  color: #bfa75c;
  font-weight: bold;
}

.cancel-btn {
  margin-left: 10px;
  background-color: transparent;
  color: #cc0000;
  border: 1px solid #cc0000;
  padding: 6px 10px;
  font-size: 0.9em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cancel-btn:hover {
  background-color: #cc0000;
  color: white;
}

.status {
  font-weight: bold;
  color: #8a6e2f;
}

/* Nút Sửa và Ẩn/Hiện */
.action-btn {
  padding: 6px 10px;
  margin: 2px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.edit {
  background-color: #8a6e2f;
  color: white;
  border: none;
}

.toggle {
  background-color: transparent;
  color: #007f00;
  border: 1px solid #007f00;
}

.toggle:hover {
  background-color: #007f00;
  color: white;
}