/*
Theme Name: Bricks Child
Theme URI: https://bricksbuilder.io/
Template: bricks
Author: Bricks
Author URI: https://bricksbuilder.io/
Description: Visual website builder for WordPress.
Version: 2.3.7.1789873650
Updated: 2026-09-20 03:07:30

*/





/* =========================================================
   TRẠM NGUYÊN LIỆU — PREMIUM DESKTOP MENU
   Desktop-only / WooCommerce + Bricks Builder
   Giữ nguyên selector và portal JavaScript hiện tại.
   ========================================================= */

.tnl-product-menu {
  --tnl-menu-width: 365px;
  --tnl-menu-height: 680px;
  --tnl-row-height: 46px;
  --tnl-submenu-width: 330px;
  --tnl-navy: #142b67;
  --tnl-navy-deep: #0c1e4c;
  --tnl-text: #1d315d;
  --tnl-muted: #7d8aa5;
  --tnl-orange: #f47a20;
  --tnl-orange-dark: #d85d0b;
  --tnl-hover: #edf4ff;
  --tnl-border: #e2e9f3;
  --tnl-fade: rgba(255,255,255,.96);

  position: relative;
  isolation: isolate;
  z-index: 20;
  display: block;
  width: var(--tnl-menu-width) !important;
  min-width: var(--tnl-menu-width) !important;
  max-width: var(--tnl-menu-width) !important;
  flex: 0 0 var(--tnl-menu-width) !important;
  align-self: flex-start;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--tnl-border);
  border-radius: 11px;
  box-shadow: 0 12px 32px rgba(12,30,76,.10);
  overflow: visible !important;
}

.tnl-product-menu *,
.tnl-product-menu *::before,
.tnl-product-menu *::after { box-sizing: border-box; }

.tnl-product-menu ul,
.tnl-product-menu li { margin: 0; padding: 0; list-style: none; }

/* Cấp 1: chiều rộng thực luôn đủ 365px, không xuống dòng */
.tnl-product-menu__scroll {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  max-height: var(--tnl-menu-height);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: inherit;
}

.tnl-product-menu__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tnl-product-menu__list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100% !important;
  min-width: 0;
  padding: 8px 7px;
}

.tnl-product-menu__list > li {
  position: relative;
  display: block;
  width: 100% !important;
  min-width: 0;
}

.tnl-product-menu__list > li > .sub-menu { display: none !important; }

.tnl-product-menu__list > li > a {
  position: relative;
  display: flex;
  align-items: center;
  width: 100% !important;
  min-width: 0;
  min-height: var(--tnl-row-height);
  padding: 10px 40px 10px 17px;
  color: var(--tnl-text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.1px;
  text-decoration: none;
  white-space: nowrap !important;
  transition: color .22s ease, background-color .22s ease,
              padding-left .22s ease, box-shadow .22s ease;
}

.tnl-product-menu__list > li > a::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 0;
  width: 3px;
  height: 60%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--tnl-orange), var(--tnl-orange-dark));
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity .22s ease, transform .22s ease;
}

.tnl-product-menu__list > li:hover > a,
.tnl-product-menu__list > li.is-active > a,
.tnl-product-menu__list > li:focus-within > a {
  padding-left: 23px;
  color: var(--tnl-navy);
  background: var(--tnl-hover);
  box-shadow: inset 0 0 0 1px rgba(20,43,103,.04);
}

.tnl-product-menu__list > li:hover > a::before,
.tnl-product-menu__list > li.is-active > a::before,
.tnl-product-menu__list > li:focus-within > a::before {
  opacity: 1;
  transform: scaleY(1);
}

.tnl-product-menu__list > li.menu-item-has-children > a::after,
.tnl-product-menu__flyout > li.menu-item-has-children > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 7px;
  height: 7px;
  border-top: 1.7px solid currentColor;
  border-right: 1.7px solid currentColor;
  color: var(--tnl-muted);
  transform: translateY(-50%) rotate(45deg);
  transition: color .22s ease, transform .22s ease;
}

.tnl-product-menu__list > li.menu-item-has-children:hover > a::after,
.tnl-product-menu__list > li.menu-item-has-children.is-active > a::after,
.tnl-product-menu__flyout > li.menu-item-has-children:hover > a::after {
  color: var(--tnl-orange);
  transform: translate(3px,-50%) rotate(45deg);
}

/* Portal cấp 2 */
.tnl-product-menu__portal {
  position: absolute;
  top: 0;
  left: 100%;
  display: none;
  width: var(--tnl-submenu-width);
  min-width: var(--tnl-submenu-width);
  overflow: visible !important;
  z-index: 99999;
}

.tnl-product-menu__portal.is-visible { display: block; }

.tnl-product-menu__flyout {
  position: relative;
  display: block;
  width: var(--tnl-submenu-width) !important;
  min-width: var(--tnl-submenu-width) !important;
  max-width: var(--tnl-submenu-width) !important;
  max-height: none !important;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--tnl-border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(12,30,76,.15), 0 3px 10px rgba(12,30,76,.05);
  overflow: visible !important;
  z-index: 1;
}

.tnl-product-menu__flyout > li { position: relative; width: 100%; }

.tnl-product-menu__flyout > li > a,
.tnl-product-menu__flyout > li > .sub-menu > li > a {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 16px;
  color: var(--tnl-text);
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease,
              padding-left .2s ease, box-shadow .2s ease;
}

.tnl-product-menu__flyout > li:hover > a,
.tnl-product-menu__flyout > li:focus-within > a,
.tnl-product-menu__flyout > li > .sub-menu > li:hover > a,
.tnl-product-menu__flyout > li > .sub-menu > li > a:focus-visible {
  padding-left: 20px;
  color: var(--tnl-navy);
  background: var(--tnl-hover);
  box-shadow: inset 3px 0 0 var(--tnl-orange);
}

/* Cấp 3 */
.tnl-product-menu__flyout > li > .sub-menu {
  position: absolute !important;
  top: 0;
  left: 100%;
  display: block;
  width: var(--tnl-submenu-width) !important;
  min-width: var(--tnl-submenu-width) !important;
  max-height: var(--tnl-menu-height);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--tnl-border);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(12,30,76,.15);
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(7px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  scrollbar-width: thin;
  scrollbar-color: #c5d0e3 transparent;
  z-index: 10;
}

.tnl-product-menu__flyout > li:hover > .sub-menu,
.tnl-product-menu__flyout > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.tnl-product-menu__flyout > li > .sub-menu::-webkit-scrollbar { width: 5px; }
.tnl-product-menu__flyout > li > .sub-menu::-webkit-scrollbar-thumb {
  background: #c5d0e3;
  border-radius: 20px;
}

/* Tự mở toàn bộ flyout sang trái khi portal JS gắn class này */
.tnl-product-menu.open-left .tnl-product-menu__portal {
  right: 100%;
  left: auto;
}

.tnl-product-menu.open-left .tnl-product-menu__flyout > li > .sub-menu {
  right: 100%;
  left: auto;
  transform: translateX(-7px);
}

.tnl-product-menu.open-left .tnl-product-menu__flyout > li:hover > .sub-menu,
.tnl-product-menu.open-left .tnl-product-menu__flyout > li:focus-within > .sub-menu {
  transform: translateX(0);
}

/* Scrolling fade: chỉ là lớp thị giác, không cản pointer/hover */
.tnl-product-menu__scroll::before,
.tnl-product-menu__scroll::after {
  content: "";
  position: sticky;
  left: 0;
  display: block;
  width: 100%;
  height: 18px;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity .25s ease;
}

.tnl-product-menu__scroll::before {
  top: 0;
  margin-bottom: -18px;
  background: linear-gradient(to bottom, var(--tnl-fade), rgba(255,255,255,0));
}

.tnl-product-menu__scroll::after {
  bottom: 0;
  height: 42px;
  margin-top: -42px;
  padding-top: 19px;
  color: var(--tnl-navy);
  background:
    linear-gradient(to top, var(--tnl-fade) 42%, rgba(255,255,255,0));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15px;
  line-height: 20px;
  text-align: center;
  text-transform: uppercase;
}

/* Khi đã kéo tới cuối: ẩn bóng mờ và nhãn chỉ dẫn */
.tnl-product-menu__scroll.is-at-bottom::before,
.tnl-product-menu__scroll.is-at-bottom::after {
  opacity: 0;
}

.tnl-product-menu__scroll::after {
  content: "Kéo xuống xem thêm";
}

.tnl-product-menu a:focus-visible {
  outline: 2px solid var(--tnl-orange);
  outline-offset: -2px;
}

.tnl-product-menu__toggle { display: none !important; }
