/* Tổng quan */
body {
  width: 100%;
  font-family: Arial, sans-serif;
  margin: 0; /* Thêm padding xung quanh body */
  background-color: #f4f4f4;
}

#top {
  color: #fff;
  background-color: #417505;
  width: 100%;
  height: 48px;
}

#top-content {
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  line-height: 48px;
}

#top-left span {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
}

#top-left img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

#top-right a {
  color: white;
  text-decoration: none;
  margin-left: 10px;
}

/* ------------------ Banner ------------------ */
#banner {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#banner-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo img {
  height: 90px;
  cursor: pointer;
}

.search-box {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  height: 40px;
  flex: 1;
  margin: 0 30px;
}

.search-box input {
  flex: 1;
  padding: 0 10px;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-box button {
  background-color: black;
  color: white;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  font-weight: bold;
}

#cart a {
  background-color: orange;
  padding: 8px 16px;
  border-radius: 14px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.cart-icon {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

/* ------------------ Menu ------------------ */
#menu {
  width: 100%;
  height: 48px;
  background-color: #7f886a;
}

#menu-content {
  width: 80%;
  margin: auto;
  height: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul li {
  float: left;
  line-height: 48px;
  position: relative;
}

ul li a {
  color: white;
  text-decoration: none;
  padding: 0 15px;
  display: block;
  line-height: 48px;
}

ul li ul {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  background-color: white;
  width: 180px;
  z-index: 999;
}

ul li:hover ul {
  display: block;
}

ul li ul li {
  float: none;
}

ul li ul li a {
  color: #000;
  border: 1px solid #ccc;
}

ul li a:hover {
  background-color: rgb(161, 158, 153);
  color: white;
}

h3,
h4,
h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
}

/* Thông tin liên hệ */
#container {
  width: 80%; /* Đảm bảo container không rộng hơn 1200px */
  margin: 0 auto; /* Căn giữa container */
}
/* Bản đồ Google Maps */
.map-container {
  width: 100%;
  height: 400px;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Thông tin liên hệ */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  margin-top: 40px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 10px;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
}

.contact-form {
  flex: 2;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-form p {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin: 0 px 0 5px;
}

.contact-form input,
.contact-form textarea {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.contact-form button {
  padding: 12px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

/* Vùng top: Đăng ký email */
.footer-top {
  background-color: #f7941e;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer-top h3 {
  margin: 0;
  font-size: 20px;
}

.footer-top p {
  margin: 5px 0 15px;
}

.subscribe {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe input {
  width: 300px;
  padding: 8px;
  border: none;
  border-radius: 4px;
}

.subscribe button {
  background-color: white;
  color: #f7941e;
  font-weight: bold;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}
/* Toàn bộ vùng footer */
#footer {
  background-color: white; /* màu be trắng */
  font-family: "Montserrat", sans-serif;
  color: #333;
  font-size: 14px;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  margin-top: 40px;
}
/* Container giữa để căn giữa nội dung footer */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
}

/* Footer middle: các cột */
.footer-middle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 30px 0;
}

.footer-col {
  flex: 1;
  min-width: 160px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: black;
}

.footer-col p {
  margin: 5px 0;
  color: #666;
  cursor: pointer;
}

.footer-col img {
  height: 30px;
  margin: 5px 5px 0 0;
  vertical-align: middle;
}

/* Bottom: các từ khóa tìm kiếm */
.footer-bottom {
  padding-top: 20px;
  line-height: 1.8;
}

.footer-bottom h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #666;
}
/* Responsive Styles */
@media screen and (max-width: 768px) {
  #top-content,
  #banner-content,
  #menu-content {
    flex-direction: column;
  }

  #top-content {
    height: auto;
    line-height: 1.6;
  }

  .search-box {
    flex-direction: column;
    height: auto;
    margin: 10px 0;
  }

  .search-box input,
  .search-box button {
    width: 100%;
    margin-top: 5px;
  }

  #cart a {
    justify-content: center;
  }

  #menu-content ul {
    flex-direction: column;
  }

  .footer-middle {
    flex-direction: column;
  }

  .footer-col {
    width: 100%;
  }

  .subscribe {
    flex-direction: column;
    align-items: center;
  }

  .subscribe input {
    width: 90%;
  }

  .subscribe button {
    width: 90%;
  }
}

@media (max-width: 1023px) {
  #top-left {
    display: none;
  }

  #top-content {
    justify-content: flex-end;
    padding: 0 10px;
  }

  .search-box {
    display: none;
  }

  #banner-content {
    justify-content: space-between;
  }

  #logo img {
    height: 70px;
  }

  .map-container {
    height: 300px;
  }

  .contact-container {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .contact-info,
  .contact-form {
    min-width: 100%;
    flex: none;
  }

  .contact-info h3 {
    font-size: 20px;
  }

  .contact-info p {
    font-size: 14px;
  }

  .contact-form p {
    font-size: 16px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 14px;
  }

  .contact-form button {
    width: 100%;
    padding: 10px;
  }
}
