/* =========================================================
   Bep Hong Collection Filter 2026
   PC: Bộ lọc tìm kiếm trái / Sắp xếp phải
   Mobile: [Bộ lọc] [Sắp xếp]
========================================================= */

/* Toolbar chứa filter + sort */
body.bephong-theme-luxury .bph-collection-toolbar-filter-sort {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

/* Nút Bộ lọc */
body.bephong-theme-luxury .bph-collection-filter-toggle {
  height: 40px;
  min-width: 0;
  padding: 0 18px;
  box-sizing: border-box;

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;

  border-radius: 12px;
  border: 1px solid rgba(214, 173, 92, 0.38);
  background: rgba(8, 8, 8, 0.72);
  color: #f8f1e6;

  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);

  cursor: pointer;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

body.bephong-theme-luxury .bph-collection-filter-toggle__icon {
  color: #d6ad5c;
  font-size: 15px;
  line-height: 1;
}

body.bephong-theme-luxury .bph-collection-filter-toggle__text-short {
  display: none;
}

/* Hover PC */
@media (hover: hover) and (pointer: fine) {
  body.bephong-theme-luxury .bph-collection-filter-toggle:hover {
    transform: translateY(-1px);
    border-color: #f0d48a;
    color: #ffffff;
    background: rgba(214, 173, 92, 0.14);
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.3),
      0 0 18px rgba(214, 173, 92, 0.24);
  }
}

/* PC: sort vẫn nằm phải */
body.bephong-theme-luxury .bph-collection-toolbar-filter-sort .bph-collection-sort {
  margin-left: auto !important;
}

/* Mobile: [Bộ lọc] [Sắp xếp] ngang hàng */
@media (max-width: 575px) {
  body.bephong-theme-luxury .bph-collection-toolbar-filter-sort {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    margin: -48px 0 14px !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-toggle {
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 15px;
  }

  body.bephong-theme-luxury .bph-collection-filter-toggle__text-full {
    display: none;
  }

  body.bephong-theme-luxury .bph-collection-filter-toggle__text-short {
    display: inline;
  }

  body.bephong-theme-luxury .bph-collection-toolbar-filter-sort .bph-collection-sort {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
  }

  body.bephong-theme-luxury .bph-collection-toolbar-filter-sort .bph-collection-sort #sort-by {
    width: 100% !important;
    justify-content: stretch !important;
    gap: 8px !important;
  }

  body.bephong-theme-luxury .bph-collection-toolbar-filter-sort .bph-collection-sort #sort-by label {
    display: none !important;
  }

  body.bephong-theme-luxury .bph-collection-toolbar-filter-sort .bph-collection-sort #sort-by select,
  body.bephong-theme-luxury .bph-collection-toolbar-filter-sort .bph-collection-sort #sort-by .selectBox {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }
}
/* =========================================================
   Bep Hong Collection Filter Responsive Position
   PC: filter ở sidebar
   Mobile: filter nằm ngang hàng với sort
========================================================= */

/* Mặc định PC: filter mobile ẩn */
body.bephong-theme-luxury .bph-collection-filter-mobile {
  display: none !important;
}

/* PC: filter desktop hiện */
body.bephong-theme-luxury .bph-collection-filter-desktop {
  display: block !important;
}

/* Mobile */
@media (max-width: 575px) {
  /* Ẩn filter trong sidebar để không bị một hàng riêng phía trên */
  body.bephong-theme-luxury .bph-collection-filter-desktop {
    display: none !important;
  }

  /* Hiện filter trong toolbar mobile */
  body.bephong-theme-luxury .bph-collection-filter-mobile {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Toolbar mobile: [Bộ lọc] [Sắp xếp] */
  body.bephong-theme-luxury .bph-collection-toolbar-mobile-filter-sort {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: center !important;
    width: 100% !important;

    margin: -48px 0 14px !important;
    padding: 0 !important;
  }

  /* Nút Bộ lọc mobile */
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-toggle {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 12px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    border-radius: 14px !important;
    font-size: 15px !important;
  }

  /* Mobile chỉ hiện chữ ngắn: Bộ lọc */
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-toggle__text-full {
    display: none !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-toggle__text-short {
    display: inline !important;
  }

  /* Sort mobile nằm cùng hàng */
  body.bephong-theme-luxury .bph-collection-toolbar-mobile-filter-sort .bph-collection-sort {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.bephong-theme-luxury .bph-collection-toolbar-mobile-filter-sort .bph-collection-sort #sort-by {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: stretch !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  body.bephong-theme-luxury .bph-collection-toolbar-mobile-filter-sort .bph-collection-sort #sort-by label {
    display: none !important;
  }

  body.bephong-theme-luxury .bph-collection-toolbar-mobile-filter-sort .bph-collection-sort #sort-by select,
  body.bephong-theme-luxury .bph-collection-toolbar-mobile-filter-sort .bph-collection-sort #sort-by .selectBox {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }
}
/* PC: ép khối bộ lọc rộng hết cột sidebar */
@media (min-width: 992px) {
  body.bephong-theme-luxury .bph-collection-sidebar {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-desktop {
    display: block !important;
    width: 100% !important;
  }

  body.bephong-theme-luxury .bph-collection-sidebar .bph-collection-filter-toggle {
    width: 100% !important;
    max-width: none !important;
    justify-content: flex-start !important;
  }
}
/* =========================================================
   Bep Hong Collection Filter - Brand Auto List
   Tự hiện thương hiệu từ tag brand_
========================================================= */

body.bephong-theme-luxury .bph-collection-filter-box {
  width: 100%;
}

body.bephong-theme-luxury .bph-collection-sidebar .bph-collection-filter-panel {
  width: 100%;
  margin-top: 12px;
  padding: 14px;

  border-radius: 16px;
  border: 1px solid rgba(214, 173, 92, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(8, 8, 8, 0.68);

  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

body.bephong-theme-luxury .bph-collection-filter-title {
  margin: 0 0 10px;

  color: #d6ad5c;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

body.bephong-theme-luxury .bph-collection-filter-list {
  display: grid;
  gap: 8px;
}

body.bephong-theme-luxury .bph-collection-filter-item {
  min-height: 38px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 12px;
  border: 1px solid rgba(214, 173, 92, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 241, 230, 0.88);

  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;

  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s ease,
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

body.bephong-theme-luxury .bph-collection-filter-item::after {
  content: "›";
  color: rgba(214, 173, 92, 0.72);
  font-size: 18px;
  line-height: 1;
}

body.bephong-theme-luxury .bph-collection-filter-item.is-active {
  border-color: #f0d48a;
  background: linear-gradient(180deg, #d51d2a 0%, #a90f19 100%);
  color: #ffffff;

  box-shadow:
    0 10px 22px rgba(197, 22, 34, 0.26),
    0 0 0 1px rgba(240, 212, 138, 0.38),
    0 0 18px rgba(214, 173, 92, 0.22);
}

body.bephong-theme-luxury .bph-collection-filter-item.is-active::after {
  content: "×";
  color: #ffffff;
  font-size: 15px;
}

body.bephong-theme-luxury .bph-collection-filter-empty {
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(214, 173, 92, 0.26);
  color: rgba(248, 241, 230, 0.62);

  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
  body.bephong-theme-luxury .bph-collection-filter-item:hover {
    transform: translateX(2px);
    border-color: rgba(240, 212, 138, 0.58);
    background: rgba(214, 173, 92, 0.12);
    color: #ffffff;

    box-shadow:
      0 8px 20px rgba(0, 0, 0, 0.24),
      0 0 16px rgba(214, 173, 92, 0.16);
  }

  body.bephong-theme-luxury .bph-collection-filter-item.is-active:hover {
    background: linear-gradient(180deg, #e32634 0%, #b8121d 100%);
  }
}

/* Mobile: tạm thời chỉ hiện nút Bộ lọc, chưa xổ danh sách */
@media (max-width: 575px) {
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-panel {
    display: none !important;
  }
}
/* PC: kéo riêng khung bộ lọc dài thêm vào khoảng trống, không làm co lưới sản phẩm */
@media (min-width: 992px) {
  body.bephong-theme-luxury .bph-collection-filter-desktop {
    width: calc(100% + 20px) !important;
    max-width: calc(100% + 20px) !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-box,
  body.bephong-theme-luxury .bph-collection-sidebar .bph-collection-filter-toggle,
  body.bephong-theme-luxury .bph-collection-sidebar .bph-collection-filter-panel {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}
/* =========================================================
   BẾP HỒNG - BRAND FILTER GRID
   Panel thương hiệu dạng ô 2 cột + đóng/mở + xem thêm
========================================================= */

body.bephong-theme-luxury .bph-brand-filter-panel {
  padding: 0 !important;
  overflow: hidden;
}

body.bephong-theme-luxury .bph-brand-filter-head {
  width: 100%;
  min-height: 46px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid rgba(214, 173, 92, 0.22);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #d6ad5c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

body.bephong-theme-luxury .bph-brand-filter-arrow {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5e6c8;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.22s ease;
}

body.bephong-theme-luxury .bph-brand-filter-panel:not(.is-open) .bph-brand-filter-arrow {
  transform: rotate(180deg);
}

body.bephong-theme-luxury .bph-brand-filter-body {
  padding: 12px 14px 14px;
}

body.bephong-theme-luxury .bph-brand-filter-panel:not(.is-open) .bph-brand-filter-body {
  display: none;
}

body.bephong-theme-luxury .bph-brand-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 10px;
}

body.bephong-theme-luxury .bph-brand-filter-item {
  min-height: 38px;
  padding: 8px 8px;
  border: 1px solid rgba(214, 173, 92, 0.28);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(18, 16, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7efe2;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

body.bephong-theme-luxury .bph-brand-filter-item:hover {
  border-color: rgba(214, 173, 92, 0.65);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(214,173,92,0.18), rgba(214,173,92,0.05)),
    rgba(20, 18, 15, 0.92);
  box-shadow: 0 8px 20px rgba(214, 173, 92, 0.12);
  transform: translateY(-1px);
}

body.bephong-theme-luxury .bph-brand-filter-item.active {
  border-color: rgba(178, 35, 44, 0.9);
  background:
    linear-gradient(180deg, rgba(178,35,44,0.95), rgba(128,21,28,0.96));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(178, 35, 44, 0.22);
}

body.bephong-theme-luxury .bph-brand-filter-extra {
  display: none;
}

body.bephong-theme-luxury .bph-brand-filter-panel.show-more .bph-brand-filter-extra {
  display: flex;
}

body.bephong-theme-luxury .bph-brand-filter-more {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d6ad5c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

body.bephong-theme-luxury .bph-brand-filter-more:hover {
  color: #ffffff;
}
/* =========================================================
   BẾP HỒNG - MOBILE FILTER DROPDOWN
   Bấm Bộ lọc trên mobile để xổ panel Thương hiệu
========================================================= */

@media (max-width: 991px) {
  body.bephong-theme-luxury .bph-collection-filter-mobile {
    position: relative;
    flex: 0 0 auto;
    width: auto;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-box {
    position: static;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-panel {
    display: none !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-box.is-mobile-filter-open .bph-collection-filter-panel {
    display: block !important;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: min(330px, calc(100vw - 24px));
    z-index: 99;
    background:
      radial-gradient(circle at 30% 10%, rgba(214, 173, 92, 0.10), transparent 34%),
      rgba(13, 12, 10, 0.96);
    border: 1px solid rgba(214, 173, 92, 0.38);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46);
    overflow: hidden;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-body {
    padding: 12px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-item {
    min-height: 38px;
    font-size: 12px;
  }
}
/* =========================================================
   BẾP HỒNG - ORIGIN FILTER GRID
   Bộ lọc Xuất xứ dùng logic giống Thương hiệu
========================================================= */

body.bephong-theme-luxury .bph-origin-filter-panel {
  padding: 0 !important;
  overflow: hidden;
  margin-top: 12px;
}

body.bephong-theme-luxury .bph-origin-filter-head {
  width: 100%;
  min-height: 46px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid rgba(214, 173, 92, 0.22);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #d6ad5c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

body.bephong-theme-luxury .bph-origin-filter-arrow {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5e6c8;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.22s ease;
}

body.bephong-theme-luxury .bph-origin-filter-panel:not(.is-open) .bph-origin-filter-arrow {
  transform: rotate(180deg);
}

body.bephong-theme-luxury .bph-origin-filter-body {
  padding: 12px 14px 14px;
}

body.bephong-theme-luxury .bph-origin-filter-panel:not(.is-open) .bph-origin-filter-body {
  display: none;
}

body.bephong-theme-luxury .bph-origin-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 10px;
}

body.bephong-theme-luxury .bph-origin-filter-item {
  min-height: 38px;
  padding: 8px 8px;
  border: 1px solid rgba(214, 173, 92, 0.28);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(18, 16, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7efe2;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

body.bephong-theme-luxury .bph-origin-filter-item:hover {
  border-color: rgba(214, 173, 92, 0.65);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(214,173,92,0.18), rgba(214,173,92,0.05)),
    rgba(20, 18, 15, 0.92);
  box-shadow: 0 8px 20px rgba(214, 173, 92, 0.12);
  transform: translateY(-1px);
}

body.bephong-theme-luxury .bph-origin-filter-item.active {
  border-color: rgba(178, 35, 44, 0.9);
  background:
    linear-gradient(180deg, rgba(178,35,44,0.95), rgba(128,21,28,0.96));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(178, 35, 44, 0.22);
}

body.bephong-theme-luxury .bph-origin-filter-extra {
  display: none;
}

body.bephong-theme-luxury .bph-origin-filter-panel.show-more .bph-origin-filter-extra {
  display: flex !important;
}

body.bephong-theme-luxury .bph-origin-filter-more {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d6ad5c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

body.bephong-theme-luxury .bph-origin-filter-more:hover {
  color: #ffffff;
}

/* Mobile - Xuất xứ nằm trong dropdown Bộ lọc */
@media (max-width: 991px) {
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-body {
    padding: 12px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-item {
    min-height: 38px;
    font-size: 12px;
  }
}
/* =========================================================
   BẾP HỒNG - MOBILE FILTER COLLAPSE FIX
   Mobile: chỉ hiện tiêu đề Thương hiệu / Xuất xứ,
   bấm vào mới xổ, tránh chồng panel lên sản phẩm
========================================================= */

@media (max-width: 991px) {
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-body,
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-body {
    display: none !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-panel.is-mobile-section-open .bph-brand-filter-body,
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-panel.is-mobile-section-open .bph-origin-filter-body {
    display: block !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-panel,
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-panel {
    margin-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-panel {
    border-top: 1px solid rgba(214, 173, 92, 0.22);
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-head,
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-head {
    min-height: 48px;
    padding: 13px 16px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-panel:not(.is-mobile-section-open) .bph-brand-filter-arrow,
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-panel:not(.is-mobile-section-open) .bph-origin-filter-arrow {
    transform: rotate(180deg);
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-panel.is-mobile-section-open .bph-brand-filter-arrow,
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-panel.is-mobile-section-open .bph-origin-filter-arrow {
    transform: rotate(0deg);
  }
}
/* =========================================================
   BẾP HỒNG - MOBILE FILTER PANEL STACK FIX
   Sửa lỗi Thương hiệu và Xuất xứ chồng lên nhau trên mobile
========================================================= */

@media (max-width: 991px) {
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-box.is-mobile-filter-open .bph-collection-filter-panel {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-box.is-mobile-filter-open {
    position: absolute !important;
    left: 0 !important;
    top: calc(100% + 10px) !important;
    width: min(340px, calc(100vw - 24px)) !important;
    z-index: 120 !important;
    background:
      radial-gradient(circle at 30% 10%, rgba(214, 173, 92, 0.10), transparent 34%),
      rgba(13, 12, 10, 0.97) !important;
    border: 1px solid rgba(214, 173, 92, 0.38) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48) !important;
    overflow: hidden !important;
  }


  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-brand-filter-panel {
    border-bottom: 1px solid rgba(214, 173, 92, 0.22) !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-origin-filter-panel {
    border-top: 0 !important;
  }
}
/* =========================================================
   BẾP HỒNG - MOBILE FILTER CLOSE BUTTON FIX
   Cho nút Bộ lọc hiện lại khi menu đang mở để bấm tắt
========================================================= */

@media (max-width: 991px) {
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-collection-filter-box.is-mobile-filter-open .bph-collection-filter-toggle {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(214, 173, 92, 0.24) !important;
    border-radius: 0 !important;
    justify-content: flex-start !important;
  }
}
/* =========================================================
   BẾP HỒNG - PRICE RANGE FILTER
   Mức giá chọn nhanh + thanh trượt min/max
========================================================= */

body.bephong-theme-luxury .bph-price-range-panel {
  padding: 0 !important;
  overflow: hidden;
  margin-top: 12px;
}

body.bephong-theme-luxury .bph-price-range-head {
  width: 100%;
  min-height: 46px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid rgba(214, 173, 92, 0.22);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #d6ad5c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

body.bephong-theme-luxury .bph-price-range-arrow {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5e6c8;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.22s ease;
}

body.bephong-theme-luxury .bph-price-range-panel:not(.is-open) .bph-price-range-arrow {
  transform: rotate(180deg);
}

body.bephong-theme-luxury .bph-price-range-body {
  padding: 12px 14px 14px;
}

body.bephong-theme-luxury .bph-price-range-panel:not(.is-open) .bph-price-range-body {
  display: none;
}

body.bephong-theme-luxury .bph-price-range-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

body.bephong-theme-luxury .bph-price-range-item {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(214, 173, 92, 0.28);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012)),
    rgba(18, 16, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #f7efe2;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

body.bephong-theme-luxury .bph-price-range-item:hover {
  border-color: rgba(214, 173, 92, 0.65);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(214,173,92,0.18), rgba(214,173,92,0.05)),
    rgba(20, 18, 15, 0.92);
  box-shadow: 0 8px 20px rgba(214, 173, 92, 0.12);
  transform: translateY(-1px);
}

body.bephong-theme-luxury .bph-price-range-custom {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(214, 173, 92, 0.18);
}

body.bephong-theme-luxury .bph-price-range-note {
  margin-bottom: 10px;
  color: rgba(248, 241, 230, 0.86);
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

body.bephong-theme-luxury .bph-price-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

body.bephong-theme-luxury .bph-price-range-inputs span {
  color: rgba(248, 241, 230, 0.74);
  font-size: 13px;
  font-weight: 700;
}

body.bephong-theme-luxury .bph-price-range-inputs input {
  width: 100%;
  height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(214, 173, 92, 0.32);
  border-radius: 9px;
  background: rgba(252, 250, 248, 0.96);
  color: #171717;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  outline: none;
  text-align: center;
}

body.bephong-theme-luxury .bph-price-range-inputs input:focus {
  border-color: rgba(214, 173, 92, 0.78);
  box-shadow: 0 0 0 2px rgba(214, 173, 92, 0.14);
}

body.bephong-theme-luxury .bph-price-slider-wrap {
  position: relative;
  height: 28px;
  margin: 4px 0 12px;
}

body.bephong-theme-luxury .bph-price-slider-wrap::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 13px;
  height: 4px;
  border-radius: 999px;
  background: rgba(248, 241, 230, 0.22);
}

body.bephong-theme-luxury .bph-price-slider-wrap input[type="range"] {
  position: absolute;
  left: 0;
  top: 3px;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

body.bephong-theme-luxury .bph-price-slider-wrap input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid #d6ad5c;
  background: #11100d;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.34);
}

body.bephong-theme-luxury .bph-price-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid #d6ad5c;
  background: #11100d;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.34);
}

body.bephong-theme-luxury .bph-price-range-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

body.bephong-theme-luxury .bph-price-range-actions button {
  min-height: 36px;
  border-radius: 999px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

body.bephong-theme-luxury .bph-price-apply-btn {
  border: 1px solid #c51622;
  background: linear-gradient(180deg, #d51d2a 0%, #a90f19 100%);
  color: #ffffff;
}

body.bephong-theme-luxury .bph-price-clear-btn {
  border: 1px solid rgba(214, 173, 92, 0.45);
  background: transparent;
  color: #d6ad5c;
}

/* Mobile: Khoảng giá mặc định thu gọn, bấm mới xổ */
@media (max-width: 991px) {
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-price-range-body {
    display: none !important;
    padding: 12px !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-price-range-panel.is-mobile-section-open .bph-price-range-body {
    display: block !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-price-range-panel {
    margin-top: 0 !important;
    border-top: 1px solid rgba(214, 173, 92, 0.22) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-price-range-head {
    min-height: 48px;
    padding: 13px 16px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-price-range-panel:not(.is-mobile-section-open) .bph-price-range-arrow {
    transform: rotate(180deg);
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-price-range-panel.is-mobile-section-open .bph-price-range-arrow {
    transform: rotate(0deg);
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-price-range-item {
    min-height: 38px;
    font-size: 12.5px;
  }
}
/* =========================================================
   BẾP HỒNG - COLOR FILTER GRID
   Bộ lọc Màu sắc dùng logic giống Xuất xứ
========================================================= */

body.bephong-theme-luxury .bph-color-filter-panel {
  padding: 0 !important;
  overflow: hidden;
  margin-top: 12px;
}

body.bephong-theme-luxury .bph-color-filter-head {
  width: 100%;
  min-height: 46px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid rgba(214, 173, 92, 0.22);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #d6ad5c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

body.bephong-theme-luxury .bph-color-filter-arrow {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5e6c8;
  font-size: 17px;
  line-height: 1;
  transition: transform 0.22s ease;
}

body.bephong-theme-luxury .bph-color-filter-panel:not(.is-open) .bph-color-filter-arrow {
  transform: rotate(180deg);
}

body.bephong-theme-luxury .bph-color-filter-body {
  padding: 12px 14px 14px;
}

body.bephong-theme-luxury .bph-color-filter-panel:not(.is-open) .bph-color-filter-body {
  display: none;
}

body.bephong-theme-luxury .bph-color-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 10px;
}

body.bephong-theme-luxury .bph-color-filter-item {
  min-height: 38px;
  padding: 8px 8px;
  border: 1px solid rgba(214, 173, 92, 0.28);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(18, 16, 13, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7efe2;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

body.bephong-theme-luxury .bph-color-filter-item:hover {
  border-color: rgba(214, 173, 92, 0.65);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(214,173,92,0.18), rgba(214,173,92,0.05)),
    rgba(20, 18, 15, 0.92);
  box-shadow: 0 8px 20px rgba(214, 173, 92, 0.12);
  transform: translateY(-1px);
}

body.bephong-theme-luxury .bph-color-filter-item.active {
  border-color: rgba(178, 35, 44, 0.9);
  background:
    linear-gradient(180deg, rgba(178,35,44,0.95), rgba(128,21,28,0.96));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(178, 35, 44, 0.22);
}

body.bephong-theme-luxury .bph-color-filter-extra {
  display: none;
}

body.bephong-theme-luxury .bph-color-filter-panel.show-more .bph-color-filter-extra {
  display: flex !important;
}

body.bephong-theme-luxury .bph-color-filter-more {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d6ad5c;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

body.bephong-theme-luxury .bph-color-filter-more:hover {
  color: #ffffff;
}

/* Mobile - Màu sắc nằm trong dropdown Bộ lọc */
@media (max-width: 991px) {
  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-color-filter-body {
    display: none !important;
    padding: 12px !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-color-filter-panel.is-mobile-section-open .bph-color-filter-body {
    display: block !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-color-filter-panel {
    margin-top: 0 !important;
    border-top: 1px solid rgba(214, 173, 92, 0.22) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-color-filter-head {
    min-height: 48px;
    padding: 13px 16px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-color-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-color-filter-item {
    min-height: 38px;
    font-size: 12px;
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-color-filter-panel:not(.is-mobile-section-open) .bph-color-filter-arrow {
    transform: rotate(180deg);
  }

  body.bephong-theme-luxury .bph-collection-filter-mobile .bph-color-filter-panel.is-mobile-section-open .bph-color-filter-arrow {
    transform: rotate(0deg);
  }
}
/* =========================================================
   BẾP HỒNG - FILTER CHECKMARK + XEM THÊM FIX
   Chỉ chỉnh 2 điểm:
   1. Chữ Xem thêm màu đỏ ruby
   2. Ô tích cố định bên trái, không làm đổi bố cục khung
========================================================= */

/* Chỉ đổi màu chữ Xem thêm / Thu gọn, không đổi nền, border, display */
body.bephong-theme-luxury .bph-brand-filter-more,
body.bephong-theme-luxury .bph-origin-filter-more,
body.bephong-theme-luxury .bph-color-filter-more {
  color: #c51622 !important;
}

body.bephong-theme-luxury .bph-brand-filter-more:hover,
body.bephong-theme-luxury .bph-origin-filter-more:hover,
body.bephong-theme-luxury .bph-color-filter-more:hover {
  color: #ff4b55 !important;
}

/* Item có dấu tích: giữ bố cục ô cũ, chỉ căn lại nội dung */
body.bephong-theme-luxury .bph-brand-filter-item,
body.bephong-theme-luxury .bph-origin-filter-item,
body.bephong-theme-luxury .bph-color-filter-item {
  position: relative;
  justify-content: center !important;
  padding-left: 30px !important;
  padding-right: 10px !important;
}

/* Riêng khoảng giá đang là 1 cột, vẫn để chữ đi từ trái qua phải */
body.bephong-theme-luxury .bph-price-range-item {
  position: relative;
  justify-content: flex-start !important;
  padding-left: 38px !important;
}

/* Ô dấu tích cố định về bên trái trong mọi item */
body.bephong-theme-luxury .bph-filter-check {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 16px;
  height: 16px;
  border-radius: 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(214, 173, 92, 0.52);
  background: rgba(255, 255, 255, 0.035);
  color: transparent;

  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

/* Khi item active thì ô tích chuyển đỏ ruby */
body.bephong-theme-luxury .bph-brand-filter-item.active .bph-filter-check,
body.bephong-theme-luxury .bph-origin-filter-item.active .bph-filter-check,
body.bephong-theme-luxury .bph-price-range-item.active .bph-filter-check,
body.bephong-theme-luxury .bph-color-filter-item.active .bph-filter-check {
  border-color: rgba(255, 255, 255, 0.78);
  background: #c51622;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(197, 22, 34, 0.32);
}

/* Hover nhẹ cho ô tích, không ảnh hưởng xổ Xem thêm */
body.bephong-theme-luxury .bph-brand-filter-item:hover .bph-filter-check,
body.bephong-theme-luxury .bph-origin-filter-item:hover .bph-filter-check,
body.bephong-theme-luxury .bph-price-range-item:hover .bph-filter-check,
body.bephong-theme-luxury .bph-color-filter-item:hover .bph-filter-check {
  border-color: rgba(214, 173, 92, 0.82);
}