/* Reset & Base */
body, html {
  padding: 0;
  margin: 0;
  font-family: 'Philosopher', Arial, sans-serif;
  background: #f7f7f7;
  color: #3e443e;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; }

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  background-color: #ffffff;
  width: 100%;
  position: sticky;
  z-index: 1000;
  top: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
}


.logo {
  font-family: "Pacifico", serif;
  font-size: 1.8rem;
  color: #4a7c59;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.imglogo {
  width: 50px;
  height: 50px;
  margin-right: 0.5rem;
  border-radius: 100%;
}

.nav {
  display: flex;
  list-style: none;
}

.nav.show-menu {
    display: flex; /* Khi có class show-menu, thì hiện menu ra */
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
.nav-item {
  margin: 0 1rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: #4a7c59;
}

.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #4a7c59;
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

.nav-link:hover:after {
  width: 100%;
}

.search-cart {
  display: flex;
  align-items: center;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 1rem;
}

.search-input {
  border: none;
  padding: 0.5rem;
  outline: none;
  width: 180px;
}

.search-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  margin-right: 1rem;
}

.user-account {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* Nền mờ toàn màn hình */
.popup-form {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* Nội dung popup */
.popup-content {
  display: flex;
  width: 700px;
  background: #fff;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  border-radius: 8px;
  overflow: hidden;
}

/* Bên trái - đăng ký */
.popup-left {
  width: 50%;
  background: #7c8ca1;
  color: white;
  padding: 30px;
  text-align: center;
}

.popup-left h2 {
  margin-bottom: 10px;
}
.popup-left p {
  margin-bottom: 20px;
}
.btn-register {
  padding: 10px 20px;
  border: 1px solid white;
  background: transparent;
  color: white;
  cursor: pointer;
}

/* Bên phải - login */
.popup-right {
  width: 50%;
  padding: 30px;
}

.popup-right form {
  display: flex;
  flex-direction: column;
}

.popup-right input[type="text"],
.popup-right input[type="password"] {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
}

.checkbox {
  margin-bottom: 15px;
}

.btn-login {
  padding: 10px;
  background-color: #153d2e;
  color: white;
  border: none;
  cursor: pointer;
}

/* Info Cards */
.info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 50px auto 16px auto;
}
.info-card {
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 265px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px #e8e7d9;
  padding: 28px 16px 20px 16px;
  text-align: center;
  margin: 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}
.info-card .icon {
  margin-bottom: 14px;
}
.info-label {
  font-family: 'Amatic SC', cursive;
  font-size: 1.19em;
  color: #92a090;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
}
.info-content {
  font-size: 1em;
  color: #393949;
  word-break: break-word;
}

/* Contact section and logo stamp */
.contact-section {
  text-align: center;
  margin-top: 30px;
}
.logo-stamp {
  margin: 0 auto 12px auto;
}
.logo-stamp img {
  width: 120px;
  opacity: 0.85;
}
.contact-title {
  font-family: 'Amatic SC', cursive;
  font-size: 2.8em;
  font-weight: 700;
  color: #92a090;
  margin-bottom: 19px;
  margin-top: 5px;
  letter-spacing: 2px;
}
.contact-form {
  max-width: 700px;
  margin: 0 auto 38px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
}
.contact-form input,
.contact-form textarea {
  font-size: 1em;
  font-family: inherit;
  border: 1px solid #e0e0d7;
  background: #fafaf7;
  border-radius: 6px;
  padding: 13px 15px;
  resize: none;
  outline: none;
  transition: border 0.18s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #92a090;
}
.contact-form button {
  background: #92a090;
  color: #fff;
  font-family: 'Amatic SC', cursive;
  font-size: 1.4em;
  padding: 6px 35px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1.5px;
  transition: background 0.18s;
}
.contact-form button:hover {
  background: #77977b;
}

/* Map */
.map-section {
  margin-top: 14px;
  margin-bottom: 45px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px -3px #92a09033;
}

/* Footer */
.footer {
  background-color: #4a7c59;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 1.5rem;
  justify-items: center;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: white;
  bottom: 0;
  left: 0;
}

.footer-logo {
  font-family: "Pacifico", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 16px;
  margin: 0 27px ;

}

.signup-form {
  display: flex;
  margin-bottom: 1rem;
}

.signup-input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.signup-btn {
  padding: 0.5rem 1rem;
  background-color: #5cb85c;
  border: none;
  border-radius: 0 4px 4px 0;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

.signup-btn:hover {
  background-color: #4cae4c;
}

.contact-info {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.contact-info i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}
.social-icons{
        text-align: center;
        padding: 0;
    }
    .social-icons li{
        display: inline-block;
        text-align: center;
        padding: 5px;
    }
    .social-icons i{
        color: white;
        font-size: 25px;
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .nav {
        display: none; /* Ẩn menu trên màn hình nhỏ */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Đặt vị trí menu */
        left: 0;
        background-color: white;
        width: 100%;
        z-index: 1000;
    }
    .nav.active {
        display: flex; /* Hiện menu khi có class active */
    }
    .logo{
      display: none;
    }
    .search-input{
      width: 80px;
    }
    .hamburger {
      position: absolute;
      left: 0px;
      width: 50px;
      height: 50px;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;    }
    .nav-item {
        padding: 10px 20px; /* Thêm khoảng cách cho các mục menu */
    }
    .nav-link {
        text-decoration: none;
        color: #333;
        font-weight: 500;
    }
  .navbar, .footer-content {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .info-cards, .footer-content {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .navbar nav {
    font-size: 0.95em;
  }
  .info-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .footer-content {
    flex-direction: column;
    gap: 10px;
    padding: 18px 8px 10px 8px;
  }
}
@media (max-width: 600px) {
  .navbar, .footer-content {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .info-card {
    min-width: 85vw;
    max-width: 98vw;
  }
  .quick-sidebar {
    top: unset;
    bottom: 22px;
    right: 3px;
    flex-direction: row;
    gap: 7px;
  }
  .contact-form {
    padding-left: 2vw;
    padding-right: 2vw;
  }
}
