body {
  margin: 0;
  padding: 0;
  background: #fafbfa;
  color: #212121;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.13em;
}

.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;
}


.main-content {
  max-width: 850px;
  margin: 38px auto 30px auto;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 0 24px #1f5e210b, 0 1.5px 0 #c8d9ae;
  padding: 36px 24px 32px 24px;
}
.main-title {
  text-align: center;
  color: #1f5e21;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.75em;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
  border-bottom: 3px solid #1f5e21;
  width: 100%;
  padding-bottom: 8px;
}
.desc {
  font-size: 1.08em;
  color: #444;
  line-height: 1.58;
  margin-bottom: 36px;
  text-align: center;
}
.section-title {
  color: #1f5e21;
  font-family: 'Roboto Slab', serif;
  margin: 35px 0 20px 0;
  text-align: center;
  font-size: 1.25em;
  font-weight: bold;
}
.section-title span {
  color: #d15530;
}
.function-block {
  margin-bottom: 32px;
}
.function-block h3 {
  color: #1f5e21;
  font-family: 'Roboto Slab', serif;
  font-size: 1.09em;
  margin: 17px 0 9px 0;
  font-weight: 700;
}
.function-block p {
  color: #363636;
  line-height: 1.65;
  font-size: 0.98em;
  margin: 7px 0 0 0;
}
.image {
  text-align: center;
  margin: 18px 0;
}
.image img {
  border-radius: 8px;
  box-shadow: 0 2px 12px #b3b3b320;
  width: 78%;
  max-width: 560px;
  height: auto;
  margin-top: 8px;
}
.highlight {
  background: #e8ede8;
  color: #1f5e21;
  font-weight: 600;
  margin: 28px 0 0 0;
  padding: 18px 18px;
  border-left: 5px solid #1f5e21;
  border-radius: 0 6px 6px 0;
  font-size: 1.03em;
}
.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: 0.9rem;
  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;
    }


@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-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;
    }
    .main-content {
    padding: 14px 5vw 18px 5vw;
  }
  .main-title {
    font-size: 1.25em;
    padding-bottom: 6px;
  }
  .image img {
    width: 98%;
    max-width: 97vw;
  }
}
