body {
  background-color: #633f27;
  margin: 0;
}

#active {
  color: #c40000 !important;
  font-weight: bold;
  border-bottom: 2px solid #8b0000 !important;
  padding-bottom: 4px;
  display: inline-block;
}

/* NAVBAR */
.navbar {
  background-color: rgba(253, 229, 191, 0.95);
  padding: 14px 0;
  position: relative;
  width: 100%;
  z-index: 1000;
  box-shadow: inset 0 10px #8b0000;
}

.navbar::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #641b0e;
}

.nav-container {
  width: 80%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav-container > a > img {
  width: 55px;
  height: auto;
  margin-top: 10px;
  mix-blend-mode: multiply;
  transition: all 0.2s ease;
}

.nav-container > a > img:hover {
  transform: scale(1.1);
}

.nav-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-left: 40px;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-family: "Playfair Display", serif;
  font-weight: bold;
  color: rgb(41, 30, 21);
  text-decoration: none;
  font-size: 14px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-link:hover {
  color: #8b0000;
  transform: translateY(-3px);
  opacity: 0.6;
}

.nav-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-icons button:first-child {
  border-right: 1px solid #ccc;
  padding-right: 12px;
  margin-right: 8px;
}

.nav-icons button {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-icons button:hover {
  transform: translateY(-3px);
  opacity: 0.6;
}

.nav-icons img {
  width: 22px;
  height: 22px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #4d180f;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hinhanh-menu {
  width: 100%;
  height: auto;
  display: flex;
}

.hinhanh-menu img {
  width: 50%;
  height: auto;
  transition: all 0.4s ease;
}

.hinhanh-menu img:hover {
  opacity: 0.8;
}

/* THỰC ĐƠN CHI TIẾT */
.thuc-don {
  background-color: #f0ca98;
  padding: 80px 50px;
  text-align: center;
}

.ten-quan {
  color: #860000;
  font-family: "Playfair Display", serif;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 5px;
  margin-bottom: 5px;
}

.thuc-don h1 {
  color: #4d180f;
  font-family: "Playfair Display", serif;
  font-size: 58px;
  font-weight: bold;
  margin: 0;
}

.duong-ke {
  width: 55px;
  height: 4px;
  background-color: #8b0000;
  margin: 15px auto 30px;
  border-radius: 5px;
}

.danh-muc {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.danh-muc button {
  padding: 10px 22px;
  border: 1px solid #d1b18a;
  background-color: #fffaf1;
  color: #3e2723;
  border-radius: 25px;
  font-family: "Inter", sans-serif;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.danh-muc button:hover {
  background-color: #8b0000;
  color: white;
  transform: translateY(-2px);
}

.danh-muc .danh-muc-chon {
  background-color: #8b0000;
  color: white;
  border-color: #8b0000;
}

.xem-menu {
  color: #8b0000;
  font-weight: bold;
  margin-bottom: 30px;
}

.san-pham {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  text-align: left;
}

.the-san-pham {
  position: relative;
  background-color: #fffaf1;
  border: 1px solid #d49f5d;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.the-san-pham:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 50px rgba(60, 30, 15, 0.25);
}

.the-san-pham > img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
  background-color: #fffaef;
  margin-top: 15px;
}

.nhan {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  background-color: #0a4d2e;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.thong-tin-mon {
  padding: 20px;
}

.thong-tin-mon h2 {
  font-family: "Playfair Display", serif;
  font-size: 23px;
  color: #3e2723;
  margin-bottom: 10px;
}

.thong-tin-mon p {
  color: #6d4a2c;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 70px;
}

.thong-tin-mon strong {
  display: block;
  color: #8b0000;
  font-size: 18px;
  margin-bottom: 15px;
}

.nut-chi-tiet {
  display: inline-block;
  background-color: #8b0000;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.nut-chi-tiet:hover {
  background-color: #5c0000;
  color: white;
  transform: translateX(5px);
  box-shadow: 0 0 12px rgba(139, 0, 0, 0.35);
}

.hinhanh-faema {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding-bottom: 80px;
}

.hinhanh-faema img:first-child {
  width: 470px;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  transform: rotate(6deg);
  transition: transform 0.4s ease;
}

.hinhanh-faema img:last-child {
  width: 420px;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  transform: rotate(-4deg);
  transition: transform 0.4s ease;
}

.hinhanh-chuthich {
  text-align: center;
  padding: 30px 20px;
}

.hinhanh-chuthich img {
  max-width: 90%;
  width: 700px;
  height: auto;
  border-radius: 5px;
  transition: all 0.4s ease;
}

/* AUDIO */
.audio-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  margin-top: 20px;
  text-align: center;
  z-index: 999;
  background-color: rgba(122, 28, 28, 0.85);
  border: 1px solid #fdfdfd;
  padding: 7px 10px;
  border-radius: 12px;
  box-shadow: 0 0px 110px rgba(0, 0, 0, 0.2);
  transform: scale(0.3);
  /* nằm dưới góc bên phải , lưu ý */
  transform-origin: bottom right;
  opacity: 0.4;
  transition: all 0.4s ease;
}

.audio-player:hover {
  transform: scale(1) translateY(-3px);
  opacity: 1;
}

.audio-player p {
  font-family: "Great Vibes", bold;
  font-size: 19px;
  color: white;
  margin-bottom: 8px;
}
/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.664);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2000;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: #faead1;
  width: 90%;
  max-width: 450px;
  padding: 30px;
  position: relative;
  border: 1px solid #8b0000;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-box h2 {
  font-family: "Great Vibes", cursive;
  color: #3e2723;
  font-size: 48px;
  text-align: center;
  margin-bottom: 15px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 25px;
  cursor: pointer;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  font-family: "Playfair Display", serif;
  font-style: italic;
  display: block;
  margin-bottom: 5px;
  color: #3e2723;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  background-color: #f2f2f2;
  border: 1px solid #dcdcdc;
  box-sizing: border-box;
}

.btn-submit {
  font-family: "Ubuntu", sans-serif;
  width: 100%;
  padding: 12px;
  background-color: #8b0000;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.btn-social {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.btn-google {
  background-color: #fcffd8;
  border: 1px solid #f7eb50;
}

.btn-facebook {
  background-color: #eceff1;
  border: 1px solid #e4e7ff;
  color: #3a3096;
}

.hoac {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.hoac::before,
.hoac::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.hoac span {
  padding: 0 10px;
  font-size: 12px;
}

.link-dangky {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}

.link-dangky a {
  color: #8b0000;
  font-weight: bold;
  text-decoration: none;
}

.phone-input-box {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f2f2f2;
}

.country-flag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-right: 1px solid #ccc;
}

.country-flag img {
  width: 20px;
}

/* FOOTER */
.footer-section {
  background-color: #221510;
  color: #fdf5e6;
  padding: 50px 20px 0 20px;
  box-shadow: inset 0 9px #c79452;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  width: 140px;
}

.brand-desc {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: #d1c2b0;
  font-style: italic;
}

.footer-contact h3,
.footer-feedback h3 {
  color: #fdf5e6;
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-contact a {
  color: #e0a96d;
  text-decoration: none;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #725535;
  border-radius: 6px;
  background-color: #4d351b;
  color: #fff;
  box-sizing: border-box;
}

.feedback-form button {
  background-color: #7a1c1c;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding: 15px 0;
  border-top: 1px solid #331f17;
  font-size: 12px;
  color: #8c786a;
}

/* =====================================================
   RESPONSIVE - MOBILE / ĐIỆN THOẠI (<= 768px)
   ===================================================== */
@media screen and (max-width: 768px) {
  /* 1. Nút 3 gạch và hiệu ứng xoay sang dấu X */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #4d180f;
    border-radius: 2px;
    transition: all 0.35s ease-in-out;
    transform-origin: center;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* 2. Lớp phủ làm tối màn hình */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .menu-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .nav-collapse {
    position: absolute;
    top: 120%;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fde5bf;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 15px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.336);
    border-bottom: 3px solid #8b0000;
    margin-left: 0;

    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition:
      max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.35s ease-in-out,
      padding 0.35s ease-in-out,
      visibility 0.45s;
  }

  .nav-collapse.show {
    max-height: 380px;
    opacity: 1;
    visibility: visible;
    padding: 20px 0 25px 0;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .nav-link {
    font-size: 16px;
  }

  .nav-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(139, 0, 0, 0.3);
    width: 100%;
  }

  /* Đặt lại icon kính lúp tĩnh trong menu */
  .nav-icons button:first-child {
    position: static;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }

  .nav-icons button:nth-child(2),
  .nav-icons button:nth-child(3) {
    position: static;
  }

  .hinhanh-menu {
    flex-direction: column;
  }

  .hinhanh-menu img {
    width: 100%;
  }

  .san-pham {
    grid-template-columns: 1fr;
  }

  .hinhanh-faema {
    flex-direction: column;
  }

  .hinhanh-faema img:first-child,
  .hinhanh-faema img:last-child {
    width: 90%;
    transform: rotate(0deg);
  }

  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-col {
    width: 100%;
  }
}
