* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

.header-block {
  top: 0 !important;
}

body {
  overflow-x: hidden;
  background: #fff;
}

.menu-section .col-lg-6 {
  padding-left: 0;
}

.menu-main {
  display: block;
}

.menu-section {
  padding: 0 20px;
  background: #fff;
  position: relative;
  z-index: 10;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.menu-section .content {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu-section img {
  width: 68px;
  height: 68px;
}

.menu-section .content .content-elm {
  max-width: 382px;
  padding: 12px 0;
  line-height: 17px;
}

.menu-section h2 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  color: #4e5c71;
  margin-bottom: 0;
}

.menu-section span {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  color: #102031;
}

.header-menu {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-menu .content {
  display: flex;
  gap: 12px;
  align-items: center;

  position: relative;
}

.header-menu .content .content-elm {
  line-height: 20px;
}

.header-menu img {
  width: 48px;
  height: 48px;
}

.header-menu h2 {
  font-size: 14px;
  font-weight: 500;
  color: #4e5c71;
  margin-bottom: 0;
}

.header-menu span {
  font-size: 16px;
  font-weight: 600;
  color: #102031;
}

.header-menu .content a .content-elm {
  max-width: 204px;
}

.wm-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ICON MENU */
.box-menu {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.box-menu span {
  display: block;
  height: 2px;
  background: #102031;
  border-radius: 2px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
  overflow: hidden;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
}

html.menu-open,
body.menu-open {
  overflow: hidden;
  height: 100vh;
  position: relative;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background-color: #F7F4F2;
  background-image: url("../../bg-menu.webp");
  background-repeat: no-repeat;

  /* background-size: 50% auto; */
  background-position: right bottom;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  z-index: 9999;
  overflow-y: hidden;
  overflow-x: hidden;
}

.menu.active {
  transform: translateX(0);
}

.menu .close-btn {
  margin: 0;
  padding: 0;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  color: #102031;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu .close-btn:hover {
  transform: rotate(90deg);
  color: #d13f2d;
}

.menu-main {
  display: block;
}

.menu-main.slide-out {
  transform: translateX(-100%);
}

.menu-main ul {
  list-style: none;
  padding: 0 20px;
}

.menu-main ul li {
  background: #fff;
  margin: 12px 0;
  padding: 16px;
  opacity: 0;
  transform: translateX(50px);
}

.menu.active .menu-main ul li {
  animation: slideIn 0.4s ease forwards;
}

.menu.active .menu-main ul li:nth-child(1) {
  animation-delay: 0.1s;
}

.menu.active .menu-main ul li:nth-child(2) {
  animation-delay: 0.2s;
}

.menu.active .menu-main ul li:nth-child(3) {
  animation-delay: 0.3s;
}

.menu.active .menu-main ul li:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-main ul li a {
  color: #102031;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-main ul li a:hover {
  color: #d13f2d;
}

/* SUBMENU */
.submenu {
  position: absolute;
  top: 126px;
  left: 0;
  right: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  display: flex;
  background-color: #F7F4F2;
  background-image: url("../../bg-menu.webp");
  background-repeat: no-repeat;

  /* background-size: 50% auto; */
  background-position: right bottom;
  transform: translateX(100%);
  transition: transform 0.5s ease;
  flex-direction: column;
  height: calc(100% - 80px - 60px);
  overflow-y: auto;
  padding: 0 20px 80px;
}

.submenu.active {
  transform: translateX(0);
}

.submenu .back-btn {
  margin-top: 10px;
  display: flex;
  gap: 17px;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  background: #E9814A;
  border: none;
  color: #fff;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  cursor: pointer;
}

.submenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.submenu ul li {
  background: #fff;
  padding: 16px;
  opacity: 0;
  transform: translateX(50px);
  margin-bottom: 10px;
}

.submenu.active ul li {
  animation: slideIn 0.4s ease forwards;
}

.submenu.active ul li:nth-child(1) {
  animation-delay: 0.1s;
}

.submenu.active ul li:nth-child(2) {
  animation-delay: 0.2s;
}

.submenu.active ul li:nth-child(3) {
  animation-delay: 0.3s;
}

.submenu ul li a {
  color: #102031;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  display: block;
}

.submenu ul li a:hover {
  color: #d13f2d;
}

.search-box-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.search-box-mobile .search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.search-box-mobile .search input[type="text"] {
  width: 140px;
  height: 36px;
  padding-left: 32px;
  margin-bottom: 0;
  border: none !important;
  margin-left: 8px;
  outline: none;
  background-color: transparent !important;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}


.search-box-mobile .search input[type="text"]:focus {
  width: 180px;
  border-color: #E9814A;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(183, 106, 82, 0.1);
}

.search-box-mobile .search-icon {}

.search-box-mobile.language {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-box-mobile.language span {
  font-size: 14px;
  font-weight: 400;
}

.search-box-mobile.language img {
  width: 30px;
  height: 20px;
  border-radius: 8px;
}

.search-box-mobile .dropdown-content {
  display: none;
  position: absolute;
  top: -99px;
  left: 0;
  background-color: var(--white-color);
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 160px;
  z-index: 999;
  padding: 6px 0;
}

.search-box-mobile .dropdown-content a {
  color: #333;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.search-box-mobile .dropdown-content a img {
  width: 20px;
  height: 14px;
}

.search-box-mobile .dropdown-content a:hover {
  background-color: #f2f2f2;
}

.search-box-mobile .language:hover .dropdown-content {
  display: block;
}

.search-box-desktop {
  position: relative;
  display: none;
  align-items: center;
  justify-content: space-between;
  left: 0;
  right: 0;
  gap: 16px;
  padding: 12px 0;
  background: transparent;
}

.search-box-desktop .search {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box-desktop .search input[type="text"] {
  width: 140px;
  height: 36px;
  padding-left: 32px;
  box-shadow: none !important;
  margin-bottom: 0;
  border: none;
  margin-left: 8px;
  outline: none;
  background-color: transparent;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-box-desktop .search input[type="text"]:focus {
  width: 500px;

  border-color: #E9814A;
  background-color: #fff !important;
  border: 1px solid var(--placeholder-content, rgba(216, 216, 217, 1)) !important;
  box-shadow: 0 0 0 2px rgba(183, 106, 82, 0.1);
}

.search-box-desktop button {
  min-width: 100px;
  display: none;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--white-color);
  font-weight: 400;
  border-radius: 8px;
  background-color: var(--primary-color);
  height: 48px;
}

.search-box-desktop .search-icon {
  position: absolute;
  display: flex;
  align-items: center;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  fill: #333;
  z-index: 2;
  pointer-events: none;
}

.search-box-desktop .language {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-box-desktop .language span {
  font-size: 14px;
  font-weight: 400;
  text-transform: capitalize;
}

.search-box-desktop .language img {
  width: 30px;
  height: 20px;
}



.menu .search-box-mobile {
  position: absolute;
  display: flex;
  bottom: 10px;
  align-items: center;
  justify-content: space-between;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid #eee;
}

.menu .search-box .search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.menu .search-box input {
  max-width: 125px;
  width: 100%;
  border: 1px solid #ddd;
  outline: none;
  background: #f7f7f7;
  padding: 8px 12px 8px 32px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu .search-box input:focus {
  border-color: #E9814A;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(183, 106, 82, 0.1);
}

.menu .search-box .search-icon {
  position: absolute;
  left: 10px;
  z-index: 2;
  pointer-events: none;
}

.menu .search-box .language {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu .search-box .language img {
  width: 30px;
  height: 20px;
  border-radius: 8px;
}

body.menu-open {
  overflow: hidden;
}

.menu-bar {
  background-color: rgba(247, 244, 242, 1);
  display: none;
}

.row {
  --bs-gutter-x: 0 !important;
}

@media (min-width: 768px) {
  .header-menu .content a .content-elm {
    max-width: 300px;
  }

  .menu-section {
    padding: 0 20px;
  }
}

.layout-search-fixed {
  padding: 12px 20px;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  background: rgba(247, 244, 242, 1);
  /* overlay nền */
  display: none;
  /* Ẩn mặc định */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.layout-search-fixed.active {
  opacity: 1;
  display: block;
}

.layout-search-fixed .content {
  display: flex;
  gap: 12px;
  align-items: center;
}

.layout-search-fixed img {
  width: 68px;
  height: 68px;
}

.layout-search-fixed .content .content-elm {
  max-width: 204px;
  padding: 12px 0;
}

.layout-search-fixed h2 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  color: #4e5c71;
  margin-bottom: 0;
}

.layout-search-fixed span {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 600;
  color: #102031;
}

.layout-search-fixed .icon-search::before {
  content: none;
}

/* Nội dung search bên trong layout */
.layout-search-fixed .search-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--white-color);
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
}

.box-search-menu {
  margin-top: 16px;
  position: relative;
  width: 100%;
}

.box-search-menu input {
  width: 100% !important;
  padding: 12px 48px !important;
  border: 1px solid var(--placeholder-content, rgba(216, 216, 217, 1));
  border-radius: 8px !important;
  outline: none !important;
  min-height: 48px !important;
  font-size: 14px !important;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.box-search-menu .icon-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* Không thể click vào icon */
}

.box-search-menu .icon-delete {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.box-search-menu input {
  padding-left: 54px !important;
}

.box-search-menu .icon-delete:hover {
  opacity: 0.7;
}

/* Ẩn icon delete khi input trống */
.box-search-menu input:placeholder-shown~.icon-delete {
  opacity: 0;
  pointer-events: none;
}

.box-search-menu input:not(:placeholder-shown)~.icon-delete {
  opacity: 1;
  pointer-events: auto;
}

/* Ngăn scroll body khi search mở */
body.search-open {
  overflow: hidden;
}

@media (min-width: 991px) {
  .layout-search-fixed {
    display: none !important;
  }

  .menu-bar {
    display: block;
  }

  .box-menu {
    display: none;
  }

  .menu-section {
    background-image: url("../../bg-trong-dong-header.png");
    height: 92px;
    display: flex;
    margin: 0 auto;
    padding: 0 20px;
  }

  .menu-section .content-elm {
    width: 100%;
    max-width: 382px;
  }

  .search-box-desktop {
    display: flex;
  }

  .menactiveu-bar {
    display: block;
    background: #f7f4f2;
    width: 100%;
  }

  .menu-bar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
  }

  .menu-bar ul li:first-child {
    padding: 10px 16px;
    margin: 0;
  }

  .menu-bar ul .active {
    background-color: var(--primary-color);
  }

  .menu-bar ul .active a {
    color: var(--white-color);
  }

  .active {
    color: white !important;
  }

  .menu-bar ul li a {
    text-align: left;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: rgba(16, 32, 49, 1);
  }
}

.header,
.header-wrapper {
  z-index: 10;
}

/* === DESKTOP DROPDOWN MENU === */
.menu-bar ul li {
  position: relative;
}

.menu-bar ul li.dropdown:hover>a svg {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.menu-bar ul li .dropdown-menu {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 100% !important;
  left: 0;
  min-width: 265px;
  background: #fff;
  border-radius: 0px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 998;
  list-style: none;
}

.menu-bar ul li:hover {
  background-color: var(--primary-color);
}

.menu-bar ul li:hover>a {
  color: var(--white-color);
}

.menu-bar ul li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-bar ul li .dropdown-menu li {
  padding: 0;
}

.menu-bar ul li .dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #102031;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-bar ul li .dropdown-menu li.active a {
  color: white !important;
}

.menu-bar ul li .dropdown-menu li a:hover {
  background: linear-gradient(0deg,
      var(--neutral, #f7f4f2),
      var(--neutral, #f7f4f2)),
    linear-gradient(0deg, rgba(255, 169, 134, 0.1), rgba(255, 169, 134, 0.1));

  color: rgba(233, 129, 74, 1);
}

.search-box-desktop {
  display: none;
}

.row.align-items-center>[class*="col-"] {
  padding-right: 0;
  padding-left: 0;
}

.search-box-desktop::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 100% 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent 20%, black 80%, black 100%);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}

.search-box-desktop .search input {
  padding: 6px 10px;
  border: none !important;
  border-radius: 6px;
  outline: none;
  margin: 0;
  background-color: transparent !important;
}

.language {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.language:hover {
  cursor: pointer;
}

.language img {
  width: 20px;
  height: 14px;
  object-fit: cover;
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 85%;
  left: 0;
  background-color: var(--white-color);
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  z-index: 11;
  padding: 6px 0;
}

.dropdown-content a {
  color: #333;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dropdown-content a img {
  width: 20px;
  height: 14px;
}

.dropdown-content a:hover {
  background-color: #f2f2f2;
}

/* Hiện dropdown khi hover */
.language:hover .dropdown-content {
  display: block;
}

.search-suggestions {
  display: block;
  /* position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 8px;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto; */
}

.suggestions-header span {
  display: block;
  width: 100%;
  padding: 16px 0 12px 8px;
  font-weight: 500;
  color: rgba(157, 157, 157, 1);
  font-size: 14px;
}

.suggestion-item {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  padding: 8px;
  cursor: pointer;

  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--placeholder-content, rgba(216, 216, 217, 1));
  gap: 12px;
}

.suggestion-item span {
  font-size: 14px;
  font-weight: 400;
  color: rgba(16, 32, 49, 1);
  text-transform: capitalize;
}

.suggestion-item:hover {
  background: #f8f9fa;
}

.suggestion-item svg {
  flex-shrink: 0;
}


.loading,
.no-results {
  padding: 20px;
  text-align: center;
  color: #6c757d;
  font-size: 14px;
}

/* Đảm bảo box-search-menu có position relative */
.box-search-menu {
  position: relative;
  width: 100%;
}

@media (min-width: 991px) {
  .search-box-desktop {
    display: flex;
  }

  .menu-bar {
    padding: 0 20px;
  }

  .menu-bar ul li {
    padding: 12px 10px;
    margin: 0;
  }
}

@media (min-width: 1200px) {
  .menu-bar {
    padding: 0 20px;
  }
}

@media (min-width: 1400px) {
  .menu-bar {
    padding: 0 26px;
  }

  .menu-section {
    max-width: 1276px;
    margin: 0 auto;
    padding: 0;
  }

  .menu-bar ul {
    gap: 0px;
    max-width: 1276px;
    margin: 0 auto;
  }

  .menu-bar ul li {
    padding: 12px 30px;
    margin: 0;
  }
}