/* =========================================
   HEADER MAX WIDTH
   ========================================= */

.header-main .container,
.header-bottom .container {
  width: 100% !important;
  max-width: 1300px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.header-main .header-inner,
.header-bottom .header-inner {
  width: 100% !important;
  max-width: 100% !important;
}

.header-bottom .flex-col.hide-for-medium.flex-center {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  margin: 0 !important;
}

/*.header-bottom-nav {*/
/*  width: 100% !important;*/
/*  display: flex !important;*/
/*}*/

/*.header-bottom-nav > li {*/
/*  flex: 1 1 auto !important;*/
/*  margin: 0 !important;*/
/*}*/
.header-bottom-nav {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
}

.header-bottom-nav > li {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.header-bottom-nav > li > a {
  width: auto !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  white-space: nowrap !important;

  /*padding-left: 1rem !important;*/
  /*padding-right: 1rem !important;*/
}

/* =========================================
   MAIN MENU LÀM MỐC
   ========================================= */

.header-bottom-nav {
  position: relative !important;
}

/* WHEN STYLES... không làm mốc cho submenu */
.header-bottom-nav > .when-styles-menu {
  position: static !important;
}

/* =========================================
   THANH SUBMENU = 100% WIDTH MAIN MENU
   ========================================= */

.header-bottom-nav > .when-styles-menu > .sub-menu {
  position: absolute !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;

  left: 0 !important;
  right: 0 !important;
  width: auto !important;

  min-width: 0 !important;
  max-width: none !important;

  top: 100% !important;

  transform: none !important;

  margin: 0 !important;
  padding: 0 !important;

  background-color: #f1e8e3 !important;

  border: none !important;
  box-shadow: none !important;

  box-sizing: border-box !important;

  overflow: visible;

  z-index: 9999 !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Hover WHEN STYLES... thì hiện submenu */
.header-bottom-nav > .when-styles-menu:hover > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* =========================================
   ẨN TOÀN BỘ MŨI TÊN MẶC ĐỊNH CỦA FLATSOME
   ========================================= */

.header-bottom-nav > .when-styles-menu.has-dropdown::before,
.header-bottom-nav > .when-styles-menu.has-dropdown::after,
.header-bottom-nav > .when-styles-menu > .nav-dropdown::before,
.header-bottom-nav > .when-styles-menu > .nav-dropdown::after,
.header-bottom-nav > .when-styles-menu > .sub-menu::after {
  content: none !important;
  display: none !important;

  width: 0 !important;
  height: 0 !important;

  border: none !important;
}

/* =========================================
   HOVER BRIDGE - NỐI MAIN MENU VỚI SUBMENU
   ========================================= */

.header-bottom-nav > .when-styles-menu > .sub-menu::before {
  content: "" !important;
  display: block !important;

  position: absolute !important;

  /* phủ toàn bộ chiều ngang submenu */
  left: 0 !important;
  right: 0 !important;

  /* tạo vùng bắt chuột phía trên submenu */
  top: -2.5rem !important;
  height: 2.5rem !important;

  width: 100% !important;

  background: transparent !important;

  border: 0 !important;

  pointer-events: auto !important;

  z-index: 1 !important;
}

/* =========================================
   6 SUBMENU CHIA ĐỀU
   ========================================= */

/* =========================================
   SUBMENU RỘNG THEO ĐỘ DÀI NỘI DUNG
   ========================================= */

.header-bottom-nav > .when-styles-menu > .sub-menu > li {
  position: relative !important;

  display: flex !important;

  /* item dài sẽ rộng hơn item ngắn */
  flex: 1 1 auto !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  border: none !important;

  background: transparent !important;

  box-sizing: border-box !important;
}

/* =========================================
   LINK SUBMENU
   ========================================= */

.header-bottom-nav > .when-styles-menu > .sub-menu > li > a {
  display: flex !important;

  width: 100% !important;
  min-height: 4rem;

  align-items: center !important;
  justify-content: center !important;

  padding: 0.5rem 1rem !important;
  margin: 0 !important;

  font-family: "Zalando Sans", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal !important;

  font-size: 1.5rem !important;
  line-height: 1.2;

  white-space: nowrap;

  text-align: center !important;

  color: #050036 !important;
  background: transparent !important;

  border: none !important;

  box-sizing: border-box !important;
}

.header-bottom-nav .sub-menu > li.current-menu-item > a {
    color: #FF4200 !important;
}

/* =========================================
   VẠCH TRẮNG NGẮN GIỮA SUBMENU
   ========================================= */

.header-bottom-nav
  > .when-styles-menu
  > .sub-menu
  > li:not(:last-child)::after {
  content: "";

  position: absolute;

  right: 0;
  top: 50%;

  transform: translateY(-50%);

  width: 0.2rem;
  height: 56%;

  background-color: #ffffff;

  z-index: 2;
}

/* =========================================
   HOVER SUBMENU
   ========================================= */

.header-bottom-nav > .when-styles-menu > .sub-menu > li > a:hover {
  color: #ff4200 !important;

  background: transparent !important;
}

/* =========================================
   TAM GIÁC RIÊNG DƯỚI WHEN STYLES...
   ========================================= */

/* chính link WHEN STYLES... làm mốc */
.header-bottom-nav > .when-styles-menu > a.nav-top-link {
  position: relative !important;

  z-index: 10002 !important;

  overflow: visible !important;
}

/* tam giác mới */
.header-bottom-nav > .when-styles-menu > a.nav-top-link::before {
  content: "" !important;

  position: absolute !important;

  left: 50% !important;

  /* quan trọng: kéo tam giác lên trên mép submenu */
  top: calc(100% - 1.04rem) !important;

  transform: translateX(-50%) !important;

  width: 0 !important;
  height: 0 !important;

  border-left: 0.64rem solid transparent !important;
  border-right: 0.64rem solid transparent !important;
  border-bottom: 1.2rem solid #f1e8e3 !important;
  border-top: 0 !important;

  opacity: 0 !important;
  visibility: hidden !important;

  z-index: 10003 !important;

  pointer-events: none !important;
}

/* Hover WHEN STYLES... thì hiện tam giác */
.header-bottom-nav > .when-styles-menu:hover > a.nav-top-link::before {
  opacity: 1 !important;
  visibility: visible !important;
}

/* =========================================
   HEADER CHÍNH
   ========================================= */

.header-bottom {
  position: relative;
  min-height: 4rem !important;
  background-color: rgba(255, 255, 255, 0.1) !important;

  border: none !important;

  z-index: 20;
}

/* =========================================
   KHOẢNG CÁCH MENU CHÍNH
   ========================================= */

.header-bottom-nav > li {
  /*margin-left: 2.25rem !important;*/
  margin-right: 0rem !important;
}

/* =========================================
   MÀU MENU CHÍNH
   ========================================= */

.header-bottom-nav > li > a {
  font-family: "Zalando Sans", sans-serif !important;
  font-weight: 600 !important;
  font-style: normal !important;
  font-size: 1.5rem !important;
}

/* MỤC ĐẦU VÀ CUỐI NGANG MÉP SUBMENU */
/*.header-bottom-nav > li:first-child > a {*/
/*  justify-content: flex-start !important;*/
/*}*/

/*.header-bottom-nav > li:last-child > a {*/
/*  justify-content: flex-end !important;*/
/*}*/

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 849px) {
  /* Không ép submenu ngang trên mobile */
  .header-bottom-nav > .when-styles-menu > .sub-menu {
    position: static !important;

    display: block !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    left: auto !important;
    right: auto !important;

    transform: none !important;

    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    background: transparent !important;
  }

  .header-bottom-nav > .when-styles-menu > .sub-menu > li {
    display: block !important;

    flex: none !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  .header-bottom-nav > .when-styles-menu > .sub-menu > li > a {
    justify-content: flex-start !important;

    white-space: normal;

    padding: 1em 1.6rem !important;
  }

  /* Bỏ vạch trắng trên mobile */
  .header-bottom-nav > .when-styles-menu > .sub-menu > li::after {
    display: none;
  }

  /* Bỏ tam giác custom trên mobile */
  .header-bottom-nav > .when-styles-menu > a.nav-top-link::before {
    display: none !important;
  }
}

/* =========================================
   TABLET + MOBILE: <= 768px
   ========================================= */

@media (max-width: 768px) {
  .header .nav-icon > a {
    width: 4.8rem !important;
    height: 4.8rem !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
  }

  .header .nav-icon .icon-menu,
  .header .nav-icon .icon-menu::before {
    font-size: 3rem !important;
  }

  /* =========================
       SEARCH SIDEBAR
       ========================= */

  /* Khối chứa search */
  .mobile-sidebar .header-search-form {
    padding: 0 1.5rem 1.5rem !important;
    margin: 0 !important;
  }

  /* Form search */
  .mobile-sidebar .header-search-form .searchform {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Ô input */
  .mobile-sidebar .header-search-form .search-field {
    height: 4.5rem !important;

    padding: 0 1.5rem !important;
    margin: 0 !important;

    font-family: "Zalando Sans", sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 400 !important;

    color: #050036 !important;

    background: #ffffff !important;

    border: 1px solid #dddddd !important;
    border-radius: 0 !important;

    box-shadow: none !important;
  }

  /* Placeholder */
  .mobile-sidebar .header-search-form .search-field::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
  }

  /* Khi click vào input */
  .mobile-sidebar .header-search-form .search-field:focus {
    border-color: #ff4200 !important;
    box-shadow: none !important;
    outline: none !important;
  }

  /* Nút search bên phải */
  .mobile-sidebar .header-search-form button,
  .mobile-sidebar .header-search-form .submit-button {
    width: 4.5rem !important;
    height: 4.5rem !important;

    min-width: 4.5rem !important;

    padding: 0 !important;

    background: #ff4200 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;
  }

  /* Icon kính lúp */
  .mobile-sidebar .header-search-form button i,
  .mobile-sidebar .header-search-form .submit-button i {
    font-size: 1.8rem !important;
  }

  /* Menu chính */
  .mobile-sidebar .nav-sidebar > li > a {
    font-family: "Zalando Sans", sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;

    color: #050036 !important;

    padding: 1.5rem !important;
  }

  /* Menu con */
  .mobile-sidebar .nav-sidebar .sub-menu > li > a {
    font-family: "Zalando Sans", sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;

    color: #050036 !important;

    padding: 1.3rem 2rem !important;
  }

  .mobile-sidebar .nav:not(.nav-slide) .active > .children {
    padding-bottom: 0 !important;
  }
}

/* =========================================
   MOBILE NHỎ: <= 480px
   ========================================= */

/* =========================================
   MOBILE NHỎ: <= 480px
   ========================================= */

@media (max-width: 480px) {
  /* =========================
       NAV ICON
       ========================= */

  .header .nav-icon > a {
    width: 4.2rem !important;
    height: 4.2rem !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
  }

  .header .nav-icon .icon-menu,
  .header .nav-icon .icon-menu::before {
    font-size: 2.6rem !important;
  }

  /* =========================
       SEARCH SIDEBAR
       ========================= */

  .mobile-sidebar .header-search-form {
    padding: 0 1.2rem 1.2rem !important;
    margin: 0 !important;
  }

  .mobile-sidebar .header-search-form .searchform {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Input */
  .mobile-sidebar .header-search-form .search-field {
    height: 4rem !important;

    padding: 0 1.2rem !important;
    margin: 0 !important;

    font-family: "Zalando Sans", sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;

    color: #050036 !important;
    background: #ffffff !important;

    border: 1px solid #dddddd !important;
    border-radius: 0 !important;

    box-shadow: none !important;
  }

  .mobile-sidebar .header-search-form .search-field::placeholder {
    color: #777777 !important;
    opacity: 1 !important;
  }

  .mobile-sidebar .header-search-form .search-field:focus {
    border-color: #ff4200 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* =========================
       SEARCH BUTTON
       ========================= */

  .mobile-sidebar .header-search-form button,
  .mobile-sidebar .header-search-form .submit-button {
    width: 4rem !important;
    height: 4rem !important;
    min-width: 4rem !important;

    padding: 0 !important;

    background: #ff4200 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;
  }

  .mobile-sidebar .header-search-form button i,
  .mobile-sidebar .header-search-form .submit-button i {
    font-size: 1.6rem !important;
  }

  /* =========================
       MENU CHÍNH
       ========================= */

  .mobile-sidebar .nav-sidebar > li > a {
    font-family: "Zalando Sans", sans-serif !important;

    font-size: 1.3rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;

    color: #050036 !important;

    padding: 1.3rem 1.2rem !important;
  }

  /* =========================
       MENU CON
       ========================= */

  .mobile-sidebar .nav-sidebar .sub-menu > li > a {
    font-family: "Zalando Sans", sans-serif !important;

    font-size: 1.3rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;

    color: #050036 !important;

    padding: 1.2rem 1.8rem !important;
  }

  /* Bỏ khoảng trống dưới submenu */
  .mobile-sidebar .nav:not(.nav-slide) .active > .children {
    padding-bottom: 0 !important;
  }
}

/* =========================================
   HOME INTRO LOGO
   ========================================= */

.home-logo-intro {
  position: fixed;

  left: 50%;
  top: 50%;

  width: 22rem;
  height: 22rem;

  transform: translate(-50%, -50%);

  z-index: 999999;

  pointer-events: none;
}

.home-logo-intro img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

html.home-logo-animating,
body.home-logo-animating {
  overflow: hidden !important;
}

/* =========================================
   STICKY HEADER - GIỮ NGUYÊN SIZE LOGO
   ========================================= */
   
/* LOGO HEADER DESKTOP */
@media (min-width: 850px) {
  #logo img {
    max-height: 8rem !important;
  }
}

/* STICKY HEADER */
@media (min-width: 850px) {
  #header .header-wrapper.stuck #logo img {
    max-height: 8rem !important;
  }
}

@media (min-width: 769px) {
  #header .header-wrapper.stuck #logo img {
    max-height: 8rem !important;
  }
}
