* {
  font-family: var(--e-global-typography-primary-font-family), Sans-serif;
}

#lang-switcher .language-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

#lang-switcher .lang-trigger {
  padding: 6px 12px;
  font-weight: 500;
  white-space: nowrap;
}

#lang-switcher .lang-list {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 999;
}

#lang-switcher .lang-list li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

#lang-switcher .lang-list li:last-child {
  border-bottom: none;
}

#lang-switcher .language-dropdown:hover .lang-list {
  display: block;
}

/* Đặt header ở trên slider và trong suốt */
/* .transparent-header {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: transparent !important;
    z-index: 999;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  } */

/* Khi hover hoặc scroll → hiện nền trắng */
/* .transparent-header.scrolled,
  .transparent-header:hover {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  } */

/* Ẩn icon dropdown submenu trong menu UAE */
@media (min-width: 768px) {

  .elementor-nav-menu .sub-arrow,
  .elementor-nav-menu--dropdown .elementor-icon {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  .hfe-nav-menu__layout-horizontal .hfe-nav-menu .sub-arrow {
    display: none !important;
  }
}

.food-tab-menu {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  /* scroll ngang nếu nhiều tab */
  scroll-behavior: smooth;
  /* cuộn ngang mượt */
  white-space: nowrap;
}

.food-tab-menu a {
  font-weight: 500;
  /* font-family: 'Bricolage', serif !important; */
  text-decoration: none;
  padding: 8px 14px;
  color: #444;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

.food-tab-menu a.active {
  border-bottom: 2px solid #125740;
  color: #125740;
  font-weight: 600;
}

/* Ẩn thanh scroll ngang trên tất cả trình duyệt */
.food-tab-menu {
  -ms-overflow-style: none;
  /* IE, Edge */
  scrollbar-width: none;
  /* Firefox */
}

.food-tab-menu::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.fly-to-cart {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 9999;
  transition: transform 0.8s ease-in-out, opacity 0.8s;
  pointer-events: none;
}

#cart-floating-btn {
  position: fixed;
  bottom: 16px;
  left: 30px;
  background: #125740;
  color: white;
  display: none;
  align-items: center;
  justify-content: space-around;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  padding: 0 11px;
  /* font-family: 'Bricolage', serif; */
  font-size: 15px;
  z-index: 9999;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  gap: 0;
}

#cart-floating-btn button {
  background: white;
  color: #125740;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  /* font-family: 'Bricolage', serif; */
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

#cart-floating-btn .cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  width: 24px;
}

#cart-floating-btn button:hover {
  background: #f2f2f2;
}

#cart-floating-btn {
  display: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#cart-floating-btn.show {
  display: inline;
  transform: translateY(0);
  display: flex !important;
  pointer-events: auto;
}

@media (min-width: 768px) {
  #cart-floating-btn:hover {
    width: 340px;
    height: auto;
    padding: 10px 20px;
    border-radius: 999px;
    gap: 16px;
  }

  #cart-floating-btn:hover span#cart-total-text,
  #cart-floating-btn:hover button {
    display: inline;
    pointer-events: auto;
  }

  #cart-floating-btn span#cart-total-text,
  #cart-floating-btn button {
    display: none;
    transition: opacity 0.3s ease;
  }

  #cart-floating-btn .cart-icon {
    opacity: 1;
    pointer-events: auto;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #cart-floating-btn {
    background: white !important;
    /* nền trắng */
    color: #125740 !important;
    /* icon xanh */
  }

  #cart-floating-btn .cart-icon i {
    color: #125740 !important;
    /* màu biểu tượng icon font-awesome */
  }

  #cart-floating-btn:hover button {
    /* font-family: 'Bricolage', serif; */
    background: #125740 !important;
    /* nền xanh */
    color: white !important;
    /* chữ trắng */
  }

  #cart-floating-btn:hover button:hover {
    background: #0d4030 !important;
    /* đậm hơn khi hover */
  }

  #cart-floating-btn button {
    transition: background 0.3s ease, color 0.3s ease;
  }
}

@media (max-width: 767px) {
  #cart-floating-btn {
    width: calc(100% - 60px);
    left: 30px;
    right: 30px;
    justify-content: space-between;
    padding: 10px 12px;
  }

  #cart-floating-btn span,
  #cart-floating-btn button {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #cart-floating-btn {
    border-radius: 999px;
  }

  #cart-floating-btn .cart-icon {
    margin-right: 8px;
  }

  #cart-floating-btn .loading-icon {
    margin-right: 8px;
  }

}

@keyframes shake-cart {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(10deg);
  }

  75% {
    transform: rotate(-6deg);
  }

  100% {
    transform: rotate(0);
  }
}

.cart-shake {
  animation: shake-cart 0.6s ease-in-out;
}

.cart-icon {
  animation: shake-cart 1s ease-in-out infinite;
}

#cart-floating-btn.loading .cart-icon,
#cart-floating-btn .loading-icon {
  display: none;
}

#cart-floating-btn.loading .loading-icon {
  display: flex;
  justify-content: center;
  font-size: 20px;
  width: 24px;
}

/**
  CUSTOM CSS FROM CUSTOMIZE MENU
  **/
/* Hiệu ứng mờ nền */
.elementor-121 :is(.elementor-element-08e94f7,
  .elementor-element-4d8898e,
  .elementor-element-6108415,
  .elementor-element-f5d347f,
  .elementor-element-e129a40,
  .elementor-element-b82573b,
  .elementor-element-3424428,
  .elementor-element-0773c2a,
  .elementor-element-5504dfd,
  .elementor-element-5caf9e0,
  .elementor-element-6cc0c50,
  .elementor-element-aef3e9c,
  .elementor-element-2bc3838,
  .elementor-element-1fccb1e,
  .elementor-element-90c2043,
  .elementor-element-4f74b02,
  .elementor-element-bd9d4ad,
  .elementor-element-628ec67,
  .elementor-element-65d7e89,
  .elementor-element-7ae7ff4,
  .elementor-element-e592bb8,
  .elementor-element-14412da,
  .elementor-element-c7f2b19,
  .elementor-element-4fa0257,
  .elementor-element-8578e14,
  .elementor-element-937f089,
  .elementor-element-8f51f22,
  .elementor-element-c099bc9,
  .elementor-element-3df0873) {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #000;
}

html {
  margin-top: 0px !important;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.popup-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

#cancel-popup {
  background: white;
  color: #125740;
  border: 1px solid #125740;
}

#custom-submit {
  background: #125740;
  color: white;
}

#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#popup-form {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  font-size: 17px;
}

#popup-form h3 {
  margin-bottom: 16px;
  font-size: 20px;
  color: #125740;
}

#popup-content-scroll {
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: 16px;
  padding-right: 6px;
}

/* Các trường input/textarea */
#popup-form input,
#popup-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 17px;
}

#cart-items {
  margin-bottom: 16px;
  font-size: 17px;
  line-height: 1.6;
}

#cart-items div {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

#cart-items img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 8px;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.popup-buttons button {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-weight: bold;
}

.popup-buttons button#cancel-popup {
  background-color: #fff;
  color: #125740;
  border: 1px solid #125740;
}

.popup-buttons button#submit-popup {
  background-color: #125740;
  color: white;
  border: none;
}

/* Nút hành động đẹp */
.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.popup-buttons button {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

#custom-submit {
  background-color: #125740;
  color: #fff;
  border: none;
}

#custom-submit:hover {
  background-color: #0f4e34;
}

#close-popup-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}

#close-popup-btn:hover {
  color: #000;
}

a.added_to_cart.wc-forward {
  display: none !important;
}

body.logged-in.admin-bar {
  margin-top: 0 !important;
}

.frm_button_submit,
#custom-submit {
  background: #125740 !important;
  color: white !important;
  padding: 16px 24px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  border: none !important;
  cursor: pointer !important;
  width: 100%;
  margin-top: 12px;
}

.frm_submit {
  display: flex;
  justify-content: center;
}

/* Đảm bảo container cha là relative để lớp overlay có thể định vị đúng */
.elementor-element-1413429 {
  position: relative;
  overflow: hidden;
  /* tránh lớp con tràn ra ngoài */
}

/* Lớp overlay chứa tiêu đề như "Món khai vị" hoặc "Đặc sản gà hồ" */
.elementor-element-f5d347f {
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  padding: 20px;
  color: white;
  z-index: 2;
}

/* Đảm bảo nội dung bên trong overlay không bị cắt */
.elementor-element-953a10f .elementor-heading-title {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

/* Ẩn ::before và ::after phá layout */
ul.products::before,
ul.products::after {
  display: none !important;
  content: none !important;
}

/* Grid danh mục 4 cột desktop */
.category-listing ul.products,
ul.products.product-categories {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

/* Giao diện từng item category */
ul.products li.product-category {
  height: 374px !important;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin: 0 auto !important;
  padding: 0 !important;
  background: #fff;
  border: none;
  list-style: none;
}

/* Ảnh danh mục chiếm full khung */
ul.products li.product-category a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tiêu đề overlay dưới ảnh */
ul.products li.product-category h2 {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  margin: 0;
  text-align: center;
  z-index: 2;
  line-height: 1.2;
  font-family: 'Albra', serif !important;
  font-size: 18px;
}

/* Ẩn số lượng sản phẩm (mark.count) */
ul.products li.product-category h2 mark.count {
  display: none;
}

/* Responsive mobile 2 cột */
@media screen and (max-width: 768px) {

  .category-listing ul.products,
  ul.products.product-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  ul.products li.product-category {
    height: auto !important;
    aspect-ratio: 265 / 374;
  }
}

/* Hiệu ứng nút đặt bàn (nếu có dùng) */
.btn-datban {
  animation: pulseZoom 1.8s infinite;
  transform-origin: center;
  transition: all 0.3s ease;
  color: #fff;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
}

/* Pulse effect keyframes */
@keyframes pulseZoom {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}


@keyframes pulseZoom {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* Zalo and Hotline */
#hotline-zalo-fixed .hotline-btn {
  background-color: #fff;
  border-radius: 50%;
  padding: 10px;
  width: 39px;
  height: 39px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: ring 2s infinite;
  color: #125740;
}

#hotline-zalo-fixed .hotline-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

#hotline-zalo-fixed {
  position: fixed;
  right: 15px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
}

#hotline-zalo-fixed a {
  width: 50px;
  height: 50px;
  color: white;
  font-size: 24px;
  text-align: center;
  line-height: 50px;
  transition: all 0.3s ease;
  border-radius: 50%;
  animation: ring 2s infinite;
  background-color: transparent;
  border: none;
  padding: 0;
}

#hotline-zalo-fixed a:hover {
  transform: scale(1.1);
}

#hotline-zalo-fixed .zalo-btn img,
#hotline-zalo-fixed .hotline-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Ring animation */
@keyframes ring {
  0% {
    transform: rotate(0);
  }

  10% {
    transform: rotate(15deg);
  }

  20% {
    transform: rotate(-15deg);
  }

  30% {
    transform: rotate(10deg);
  }

  40% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(5deg);
  }

  60% {
    transform: rotate(-5deg);
  }

  70%,
  100% {
    transform: rotate(0);
  }
}

.category-detail-wrapper .custom-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  /* Khoảng cách giữa các món */
  justify-content: space-between;
}

.category-detail-wrapper .custom-product-grid>li.product {
  list-style: none;
  width: 100%;
  padding: 6px !important;
  margin-top: 0 !important;
  border-radius: 14px;
  background-color: #fff;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #1257404a;
}

/* Tablet: 2 cột */
@media (min-width: 576px) {
  .category-detail-wrapper .custom-product-grid>li.product {
    width: calc(50% - 8px);
  }
}

/* Desktop: 3 cột */
@media (min-width: 992px) {
  .category-detail-wrapper .custom-product-grid>li.product {
    width: calc(33.333% - 10.6px);
  }
}

/* Mobile siêu nhỏ: tuỳ chỉnh tiêu đề và nút */
.category-detail-wrapper .woocommerce-loop-product__title {
  color: #000 !important;
  font-weight: 500 !important;
  /* font-family: 'Bricolage', serif !important; */
  font-size: 20px
}

@media (max-width: 372px) {
  .category-detail-wrapper li.product .button.add_to_cart_button {
    margin: 0 !important;
    padding: 11px 16px 10px 16px !important;
    font-size: 12px !important;
    height: 22px !important;
    min-width: 95px !important;
    font-weight: 300;
    border-radius: 8px;
  }
}

.category-detail-wrapper .product-action-wrapper {
  display: none !important;
}

@media (max-width: 767px) {
  .category-detail-wrapper .product-action-wrapper {
    display: none !important;
  }
}

.category-detail-wrapper .product-action-wrapper {
  display: none !important;
}

.category-detail-wrapper .custom-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.category-detail-wrapper .custom-product-grid>li.product {
  list-style: none;
  width: 100%;
  padding: 6px !important;
  margin-top: 0 !important;
  border-radius: 14px;
  background-color: #fff;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #1257404a;
  display: flex;
}

/* Tablet: 2 cột */
@media (min-width: 576px) {
  .category-detail-wrapper .custom-product-grid>li.product {
    width: calc((100% - 16px) / 2);
    /* gap = 16px */
  }
}

/* Desktop: 3 cột */
@media (min-width: 992px) {
  .category-detail-wrapper .custom-product-grid>li.product {
    width: calc((100% - 32px) / 3);
    /* 2 gaps = 32px */
  }
}


/**
  ------------------------------
  ADD TO CART COMPONENT CSS
  ------------------------------
  **/
.qib-button-wrapper button.qib-button {
  height: 24px;
  width: 26px;
  padding: 0;
  border-radius: 8px;
  margin: 0 !important;
}

.qib-button-wrapper .plus.qib-button {
  background: #125740;
  color: #fff;
  border: none;
}

.qib-button-wrapper .minus.qib-button {
  background: #fff;
  color: #125740 !important;
  border: 1px solid #125740 !important;
}

.qib-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: auto;
  gap: 0.25rem;
}

.qib-button-wrapper .hidden {
  display: none;
}

.qib-button-wrapper .quantity .qty,
.woocommerce .qib-button-wrapper .input-text.qty {
  border: none;
  -moz-appearance: textfield;
  padding: 0;
  width: 2rem;
  font-size: .9rem;
  line-height: 2rem;
  height: 2rem;
  display: block;
  text-align: center;
}

@media(max-width: 384px) {
  .qib-button-wrapper .quantity .qty,
  .woocommerce .qib-button-wrapper .input-text.qty {
    width: 1.2rem;
  }
}

.qib-button-wrapper .quantity .qty::-webkit-outer-spin-button,
.qib-button-wrapper .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.elementor-widget-woocommerce-product-add-to-cart a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
  padding: 6px 12px;
  border-radius: 8px;
  background: #125740;
  color: #fff;
  font-weight: 400;
  font-size: .85rem;
  margin-left: 0 !important;
}

.elementor-widget-woocommerce-product-add-to-cart form.cart.e-loop-add-to-cart-form {
  width: 100%;
}

.elementor-widget-woocommerce-product-add-to-cart a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.loading {
  padding-right: 25px;
}

.elementor-widget-woocommerce-product-add-to-cart .e-atc-qty-button-holder {
  width: 100%;
  gap: 5px;
  flex-wrap: wrap !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.loading::after,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.loading::after,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.loading::after,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.loading::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.loading::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.loading::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.loading::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.loading::after {
  top: 24%;
  right: .5rem;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.loading::after,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.loading::after,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.loading::after,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.loading::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.loading::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.loading::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.loading::after,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.loading::after {
  top: 24%;
  right: .5rem;
}

.qib-button-wrapper a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart.loading {
  padding-right: 25px;
}