@charset "UTF-8";
.overlaygay {
  position: fixed;
  z-index: 9;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none; }

.activefilterz .overlaygay {
  display: block; }

.section-filter-collection {
  --filter-primary-color: #599BFC;
  --filter-secondary-color: #c1d0f6;
  --filter-btn--primary-color: #fff;
  --filter-border-color: #e0e0e0;
  --filter-border-hover: #599BFC;
  --filter-background-color: #fff;
  --border-radius-size: 8px; }
  .section-filter-collection .card-filter {
    display: flex;
    position: relative; }
  .section-filter-collection .item-filter-main {
    position: relative;
    z-index: 8;
    background-color: white;
    cursor: pointer;
    min-width: 90px;
    padding: 6px 12px;
    border: 1px solid var(--filter-primary-color);
    border-radius: var(--border-radius-size);
    margin-right: 8px; }
    @media (max-width: 768px) {
      .section-filter-collection .item-filter-main {
        padding: 6px; } }
  .section-filter-collection .show-total {
    display: block;
    position: absolute;
    max-height: 65vh;
    max-width: 900px;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--filter-background-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius-size);
    z-index: 9999;
    overflow-y: auto;
    scrollbar-width: thin; }
  .section-filter-collection .show-total-main {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    padding: 30px 0 10px; }
  .section-filter-collection .close-popup-total {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px 10px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center; }
  .section-filter-collection .list-horizontal {
    white-space: nowrap;
    overflow-x: scroll;
    scrollbar-width: none;
    padding-bottom: 8px; }
    .section-filter-collection .list-horizontal img {
      width: auto;
      height: 100%; }
      @media (max-width: 768px) {
        .section-filter-collection .list-horizontal img {
          width: 60px; } }
  .section-filter-collection .item-quick-filter {
    display: inline-block;
    border-radius: 8px;
    margin-right: 8px;
    height: 36px;
    padding: 6px 6px;
    background-color: #f2f4f7;
    border: 1px solid #f2f4f7;
    cursor: pointer; }
    @media (max-width: 768px) {
      .section-filter-collection .item-quick-filter {
        margin-right: 4px; } }
  .section-filter-collection .item-quick-filter.vendor {
    background-color: #ffffff; }
  .section-filter-collection .item-quick-filter.check, .section-filter-collection .item-quick-filter:hover {
    border: 1px solid #2a83e9;
    color: #2a83e9; }
  .section-filter-collection .show-total-txt {
    font-size: 14px;
    font-weight: bold;
    line-height: 18px;
    margin-bottom: 5px; }
  .section-filter-collection .show-total-item {
    padding: 10px 20px;
    width: auto;
    float: left; }
  .section-filter-collection .show-total-item.warpper-manu-inside {
    width: 100%;
    clear: both;
    max-width: unset; }
  .section-filter-collection .filter-list {
    display: flex;
    flex-wrap: wrap; }
  .section-filter-collection .filter-list--hang .c-btnbox {
    height: 36px;
    margin: 0 4px 10px;
    padding: 0;
    width: 99px; }
    @media (max-width: 768px) {
      .section-filter-collection .filter-list--hang .c-btnbox {
        width: 22%; } }
  .section-filter-collection .c-btnbox {
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    display: flex;
    font-size: 14px;
    justify-content: center;
    line-height: 17px;
    margin-bottom: 10px;
    margin-right: 10px;
    padding: 8px 9px;
    font-weight: 400;
    flex-direction: column;
    gap: 5px; }
  .section-filter-collection .c-btnbox img {
    display: flex;
    width: 100%;
    max-height: 25px;
    max-width: 98%;
    object-fit: contain;
    justify-content: center; }
  .section-filter-collection .filter-border {
    border-top: 1px solid #e0e0e0;
    width: 100%; }
    @media (max-width: 768px) {
      .section-filter-collection .filter-border {
        border-top: 0px; } }
  .section-filter-collection form.range-price::before {
    content: "";
    position: absolute;
    border-top: .5px solid #ddd;
    display: block;
    width: 100%;
    top: 50%;
    z-index: 0; }
  .section-filter-collection .show-total-item .range-price {
    padding: 10px 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    position: relative; }
  .section-filter-collection .range-price span {
    padding: 7px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    z-index: 1;
    position: relative;
    background: #fff; }
  .section-filter-collection label.place-holder {
    color: #bdbdbd;
    font-size: 15px;
    float: left;
    margin-bottom: 0; }
    @media (max-width: 768px) {
      .section-filter-collection label.place-holder {
        font-size: 14px; } }
  .section-filter-collection .range-price input {
    border: 0;
    max-width: 65px;
    text-align: right;
    font-size: 14px;
    float: left;
    background-color: #fff;
    line-height: 1.45; }
  .section-filter-collection .show-total .filter-button {
    bottom: 0;
    margin: 0;
    position: sticky;
    width: 100%;
    z-index: 2; }
  .section-filter-collection .card-sortby {
    width: auto;
    padding-bottom: 10px; }
    .section-filter-collection .card-sortby .box-sort {
      display: flex;
      align-items: center;
      font-size: 14px;
      margin: 10px 0 0; }
      .section-filter-collection .card-sortby .box-sort .title-sort {
        color: #475467;
        padding-right: 15px; }
      .section-filter-collection .card-sortby .box-sort .sort-select {
        float: left;
        position: relative;
        margin-bottom: unset;
        display: flex;
        align-items: center; }
        .section-filter-collection .card-sortby .box-sort .sort-select p {
          margin: 0; }
        .section-filter-collection .card-sortby .box-sort .sort-select a {
          color: #667085;
          font-weight: 500;
          line-height: 18px;
          text-align: left;
          cursor: pointer;
          font-size: 14px; }
          @media (max-width: 768px) {
            .section-filter-collection .card-sortby .box-sort .sort-select a {
              font-size: 13px; } }
        .section-filter-collection .card-sortby .box-sort .sort-select a.check, .section-filter-collection .card-sortby .box-sort .sort-select a:hover, .section-filter-collection .card-sortby .box-sort .sort-select .sort-show:hover {
          color: #2a83e9; }
        .section-filter-collection .card-sortby .box-sort .sort-select i.ellipse {
          content: "";
          width: 4px;
          height: 4px;
          background: #eaecf0;
          margin: 10px;
          border-radius: 2px; }
          @media (max-width: 768px) {
            .section-filter-collection .card-sortby .box-sort .sort-select i.ellipse {
              margin-left: 5px;
              margin-right: 5px; } }
        .section-filter-collection .card-sortby .box-sort .sort-select ~ .sort-show {
          margin-left: 5px;
          color: #667085;
          padding-right: 12px;
          position: relative;
          font-size: 14px; }
          @media (max-width: 14px) {
            .section-filter-collection .card-sortby .box-sort .sort-select ~ .sort-show {
              font-size: 13px; } }
        .section-filter-collection .card-sortby .box-sort .sort-select .sort-select-main {
          background-color: #fff;
          border-radius: 8px;
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
          display: none;
          position: absolute;
          padding: 8px;
          top: 100%;
          right: 0;
          width: 130px;
          z-index: 8; }
        .section-filter-collection .card-sortby .box-sort .sort-select .click-sort {
          border: none;
          position: relative;
          font-size: 14px;
          padding: 6px 6px 6px 0; }
        .section-filter-collection .card-sortby .box-sort .sort-select .click-sort:has(a.check) {
          color: #2a83e9; }
        .section-filter-collection .card-sortby .box-sort .sort-select .click-sort:hover .sort-select-main {
          display: block; }
  .section-filter-collection .itemClear {
    padding: 18px 13px;
    margin-right: 7px;
    color: #333;
    border: 1px solid #f2f4f7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-height: 30px;
    background: #f2f4f7;
    border-radius: 8px;
    cursor: pointer; }
  .section-filter-collection .itemClear:hover {
    opacity: 0.6; }
  .section-filter-collection .item-clear-all {
    color: #4a90e2;
    cursor: pointer; }
  .section-filter-collection .item-clear-all:hover {
    opacity: 0.6; }
  .section-filter-collection .itemClear span {
    margin-right: 7px;
    font-size: 13px; }
  .section-filter-collection .cate-new-close-btn {
    background: url(//cdnv2.tgdd.vn/webmwg/2024/ContentMwg/images/category_v2/Icon-close.png) no-repeat -3px -3px;
    width: 7px;
    height: 7px;
    background-size: 14px 14px; }
  @media (max-width: 768px) {
    .section-filter-collection .show-total {
      position: fixed;
      top: 0;
      bottom: 0;
      max-height: 100%; }
    .section-filter-collection .show-total .show-total-item, .section-filter-collection .show-total-item .range-price {
      width: 100%;
      max-width: 100%; }
    .section-filter-collection .title-sort {
      display: none; } }

.slider-container {
  width: 100%;
  position: relative;
  margin: auto;
  height: 60px; }

.slider {
  -webkit-appearance: none;
  position: absolute;
  top: 20px;
  width: 100%;
  pointer-events: none;
  background: none;
  z-index: 1; }

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: white;
  border: 1px solid #4a90e2;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  top: -7px;
  z-index: 20;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3); }

.min-slider::-webkit-slider-thumb {
  left: -2px; }

.max-slider::-webkit-slider-thumb {
  right: -2px; }

.slider::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent; }

.track {
  position: absolute;
  top: 27px;
  width: 100%;
  height: 5px;
  background: #ddd;
  z-index: 0; }

.range-values {
  display: none;
  justify-content: space-between;
  font-weight: bold; }

.collection-filter-fixed {
  position: fixed;
  top: 59px;
  z-index: 8;
  background-color: #fff;
  right: 0;
  left: 0;
  padding-top: 12px; }
  @media (max-width: 768px) {
    .collection-filter-fixed {
      top: 0; } }

.trevi-cate-header {
  background-color: #e9ecef;
  padding: 0; }

.mega-main-cate .mega-main-cate-child {
  display: grid;
  grid-template-columns: 250px 1fr; }

.mega-main-cate .mega-main-cate-child .mega-main-cate-child-left:hover, .mega-main-cate .mega-main-cate-child.current .mega-main-cate-child-left {
  background: #fff;
  color: #1e88e5;
  border-left-color: #1e88e5; }

.mega-main-cate .mega-main-cate-child .mega-main-cate-child-left {
  display: flex;
  color: #333;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #dddddd; }

.mega-main-cate .mega-main-cate-child .mega-sub-mega-menu {
  display: none; }

.mega-main-cate .mega-main-cate-child.current .mega-sub-mega-menu {
  display: block;
  position: absolute;
  left: 272px;
  top: 16px; }

/* Desktop/Mobile toggle visibility */
.mobile-toggle {
  display: none; }

.mega-menu.desktop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 900px; }

.mega-menu.desktop-menu.active {
  display: block; }

.menu-content {
  display: flex; }

/* Cấp 1: Danh mục bên trái */
.menu-categories {
  width: 240px;
  background: #f5f5f5;
  border-right: 1px solid #e5e7eb;
  padding: 0 0;
  max-height: 500px;
  overflow-y: scroll; }

.menu-category-item {
  display: flex;
  color: #333;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #dddddd; }
  .menu-category-item:last-child {
    border-bottom: 0px; }

.menu-category-item:hover,
.menu-category-item.active {
  background: #fff;
  color: #1e88e5;
  border-left-color: #1e88e5; }

.menu-category-item .category-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain; }

.menu-category-item .category-title {
  flex: 1;
  font-size: 14px; }

.menu-category-item .arrow-icon {
  font-size: 10px;
  color: #999; }

/* Submenu panels bên phải */
.submenu-panels {
  flex: 1;
  padding: 8px 16px;
  max-height: 500px;
  overflow-y: auto; }

.submenu-panel {
  display: none; }

/* Cấp 2: Nhóm submenu */
.submenu-group {
  margin-bottom: 20px; }

.submenu-group:last-child {
  margin-bottom: 0; }

.submenu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee; }

.submenu-title {
  font-weight: 700;
  font-size: 14px;
  color: #333; }

.view-all {
  font-size: 12px;
  color: #2196f3;
  text-decoration: none; }

.view-all:hover {
  text-decoration: underline; }

/* Cấp 3: Grid item con */
.submenu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px; }

.submenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #333;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s; }

#header-actionmenu:hover {
  background-color: #1e88e5; }

.submenu-item:hover {
  background: #f5f5f5;
  color: #1e88e5; }

.submenu-item-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 8px; }

.submenu-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; }

.submenu-item-title {
  font-size: 12px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; }

.no-items {
  color: #999;
  font-size: 14px;
  padding: 20px;
  text-align: center; }

/* ========== MOBILE MENU STYLES ========== */
.mega-menu-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9999;
  flex-direction: column; }

.mega-menu-mobile.active {
  display: flex; }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff; }

.mobile-menu-title {
  font-size: 16px;
  font-weight: bold;
  color: #333333; }

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  color: #666; }

.mobile-menu-content {
  display: flex;
  flex: 1;
  overflow: hidden; }

/* Mobile Categories - Bên trái */
.mobile-categories {
  width: 120px;
  background: #f8f8f8;
  overflow-y: auto;
  flex-shrink: 0;
  border-right: 1px solid #eee; }

.mobile-category-item {
  padding: 12px 10px;
  color: #333333;
  font-size: 13px;
  cursor: pointer;
  border-left: 3px solid transparent;
  line-height: 1.4; }

.mobile-category-item.active {
  background: #fff;
  border-left-color: #2196f3;
  color: #2196f3;
  font-weight: 500; }

/* Mobile Submenu - Bên phải */
.mobile-submenu-panels {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #fff; }

.mobile-submenu-panel {
  display: none; }

.mobile-submenu-group {
  margin-bottom: 16px; }

.mobile-submenu-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee; }

.mobile-submenu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px; }

.mobile-submenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #333;
  padding: 8px 4px; }

.mobile-item-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 6px; }

.mobile-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; }

.mobile-item-title {
  font-size: 11px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998; }

.mobile-menu-overlay.active {
  display: block; }

/* Responsive */
@media (max-width: 768px) {
  .desktop-toggle {
    display: none; }
  .mobile-toggle {
    display: flex;
    background: #ffffff;
    padding: 5px 10px; }
  .mega-menu.desktop-menu {
    display: none !important; } }

.filter-button.filter-button--total {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  gap: 8px;
  background-color: #fafafa;
  padding: 8px; }

.filter-button.filter-button--total a {
  padding: 8px 12px;
  color: red; }

.filter-button.filter-button--total .btn-filter-readmore {
  border-radius: 8px;
  background-color: var(--filter-primary-color);
  color: white; }

.price-slider {
  max-width: 400px; }

.c-btnbox.check {
  border: 1px solid var(--filter-primary-color); }

.c-btnbox:hover {
  border: 1px solid var(--filter-primary-color); }

.header-action-category:hover .desktop-menu {
  display: block; }
