@charset "UTF-8";
/* =============================================
   COLLECTION PAGE
   Cấu trúc phẳng — tối đa 3 cấp lồng nhau
   ============================================= */
/* ---------- 1. Breadcrumb ---------- */
@media (max-width: 767px) {
  .collection-page .breadcrumb-shop .breadcrumb {
    margin-bottom: 10px; } }

/* ---------- 2. Bộ lọc đang chọn (#filter_result) ---------- */
.collection-page #filter_result .filter-item__dropdown {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 10px; }

.collection-page #filter_result .render-value-active {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.8rem; }
  @media (max-width: 767px) {
    .collection-page #filter_result .render-value-active {
      font-size: 0.7rem; } }
  .collection-page #filter_result .render-value-active svg {
    width: 16px;
    height: 16px; }
  .collection-page #filter_result .render-value-active:not(.reload) {
    display: inline-flex;
    gap: 0.5rem;
    padding: 2.5px 10px;
    border: 1px solid #dbdbdb;
    border-radius: 999px;
    white-space: nowrap; }
  .collection-page #filter_result .render-value-active.reload {
    padding: 2.5px 10px;
    color: #f30;
    font-size: 120%; }

/* ---------- 3. Layout 2 cột ---------- */
.collection-page .cusCol-wrap {
  display: grid;
  align-items: flex-start;
  gap: 1rem; }
  .collection-page .cusCol-wrap > * {
    min-width: 0; }
  .collection-page .cusCol-wrap .container {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important; }

/* ---------- 4. Sidebar lọc — off-canvas trên mobile/tablet ---------- */
@media (max-width: 1024px) {
  .collection-page .cusCol-left {
    position: fixed;
    inset: 0;
    z-index: 999999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s; }
  .collection-page .cusCol-left.active {
    opacity: 1;
    visibility: visible; }
  .collection-page .cusCol-left .cusCol-left-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5); }
  .collection-page .cusCol-left .collection-page__top {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 2;
    width: 100%;
    max-width: 300px;
    max-height: 100vh;
    overflow: auto;
    background: #fff;
    transform: translateX(100%);
    transition: all 0.5s; }
  .collection-page .cusCol-left.active .collection-page__top {
    transform: none; } }

/* ---------- 5. Danh sách nhóm lọc (sidebar) ---------- */
.collection-page .coll-filter .filter-overlay {
  display: none; }

@media (max-width: 1024px) {
  .collection-page .coll-filter .coll-filter__list {
    flex-direction: column;
    background: #fff;
    padding: 0 5px;
    margin: 0 !important; } }

@media (max-width: 1024px) {
  .collection-page .coll-filter .filter-item {
    border-bottom: 1px solid #ccc;
    z-index: inherit;
    margin-right: 0; } }

.collection-page .coll-filter .filter-item:first-child {
  display: none !important; }

.collection-page .coll-filter .filter-item:last-child {
  border: none; }

@media (max-width: 1024px) {
  .collection-page .coll-filter .filter-item__title {
    padding-bottom: 5px; } }

@media (max-width: 1024px) {
  .collection-page .coll-filter .btn-toggle__filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    border: none;
    font-weight: bold;
    font-size: 1.15rem; } }

.collection-page .coll-filter .btn-toggle__filter i {
  transform: rotate(0); }

.collection-page .coll-filter .filter-item.active .btn-toggle__filter i {
  transform: rotate(-180deg); }

/* Dropdown của từng nhóm lọc: chuyển popup thành accordion */
.collection-page .coll-filter .filter-item__dropdown {
  position: relative;
  top: inherit;
  left: inherit;
  right: inherit;
  z-index: inherit;
  width: auto;
  min-width: auto;
  height: 0;
  opacity: 0;
  visibility: hidden;
  box-shadow: none; }
  @media (min-width: 1100px) {
    .collection-page .coll-filter .filter-item__dropdown {
      position: absolute; } }
  .collection-page .coll-filter .filter-item__dropdown::before {
    display: none; }
  .collection-page .coll-filter .filter-item__dropdown [hidden] {
    display: none !important; }

.collection-page .coll-filter .filter-item.active .filter-item__dropdown {
  height: inherit;
  opacity: 1;
  visibility: visible; }
  @media (min-width: 1024px) {
    .collection-page .coll-filter .filter-item.active .filter-item__dropdown {
      box-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.2), 0 0 10px 0 rgba(0, 0, 0, 0.1); } }

/* ---------- 6. Lọc theo khoảng giá ---------- */
.collection-page .coll-filter .filter-dropdown__top-range {
  padding: 10px;
  min-width: 290px; }

.collection-page .coll-filter .priceRange-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 20px; }
  .collection-page .coll-filter .priceRange-input > * {
    min-width: 0; }
  .collection-page .coll-filter .priceRange-input input {
    padding: 5px 10px;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    font-size: 14px;
    pointer-events: none; }

/* Thanh kéo giá (noUiSlider) */
.collection-page #priceRange {
  height: 5px;
  border: none;
  margin: 15px 0; }
  .collection-page #priceRange .noUi-base {
    background: transparent;
    border: none;
    border-radius: 15px;
    cursor: pointer; }
  .collection-page #priceRange .noUi-connects {
    background: transparent; }
  .collection-page #priceRange .noUi-connect {
    background: #e02027; }
  .collection-page #priceRange .noUi-tooltip {
    bottom: -35px;
    border: none;
    outline: none;
    color: #e02027;
    font-weight: bold; }

.collection-page #priceRange .noUi-handle {
  top: -5px;
  right: -10px;
  width: 15px;
  height: 15px;
  background: #e02027;
  border-radius: 20px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(40, 40, 40, 0.2);
  transition: all 0.3s ease-in-out; }
  .collection-page #priceRange .noUi-handle.noUi-handle-upper {
    right: 0; }
  .collection-page #priceRange .noUi-handle.noUi-active {
    transform: scale(1.2); }
  .collection-page #priceRange .noUi-handle::before, .collection-page #priceRange .noUi-handle::after {
    display: none; }
  .collection-page #priceRange .noUi-handle .noUi-touch-area {
    width: 15px;
    height: 15px;
    margin-top: -1px;
    margin-left: -1px;
    background: #fff;
    border-radius: 999px;
    transform: scale(0.6); }

/* ---------- 7. Danh sách lựa chọn trong dropdown ---------- */
.collection-page .coll-filter .filter-dropdown__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  padding-bottom: 10px;
  z-index: inherit; }
  @media (min-width: 1024px) {
    .collection-page .coll-filter .filter-dropdown__top {
      grid-template-columns: repeat(3, 1fr); } }

.collection-page .coll-filter .filter-list__item a {
  font-size: 80%; }
  @media (min-width: 1024px) {
    .collection-page .coll-filter .filter-list__item a {
      white-space: nowrap; } }
  .collection-page .coll-filter .filter-list__item a .active {
    background: #eff5ff;
    box-shadow: 0 0 0 1px #2570eb;
    color: #2570eb;
    border: 1px;
    font-weight: 600; }

/* Trạng thái đã chọn */
.collection-page .coll-filter .filter-dropdown__bottom {
  display: none; }

/* ---------- 8. Cột phải: tiêu đề trang ---------- */
@media (max-width: 767px) {
  .collection-page .cusCol-right .collection-page__head {
    margin-top: 10px; } }

.collection-page .cusCol-right .collection-page__head .container {
  flex-wrap: wrap; }

.collection-page .page_head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem; }
  @media (max-width: 767px) {
    .collection-page .page_head {
      flex-direction: column;
      align-items: flex-start; } }
  .collection-page .page_head * {
    font-size: 24px;
    font-weight: bold; }
  .collection-page .page_head h1 {
    display: block !important;
    margin: 0;
    color: #000; }
  .collection-page .page_head .count-pd::before {
    content: "("; }
  .collection-page .page_head .count-pd::after {
    content: ")"; }

/* ---------- 9. Khối "thường tìm kiếm" ---------- */
.collection-page .coll-often {
  width: 100%;
  margin-bottom: 0; }
  @media (max-width: 767px) {
    .collection-page .coll-often {
      margin-top: 0;
      margin-bottom: 0; } }
  .collection-page .coll-often h5 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #000; }
  .collection-page .coll-often a {
    border-radius: 5px; }

/* ---------- 10. Thanh sắp xếp / browse tags ---------- */
.filter-sticky {
  position: sticky;
  top: 140px;
  z-index: 20;
  background: #f4f8fa;
  padding: 8px 0 0; }
  @media (max-width: 1023px) {
    .filter-sticky {
      top: 114px; } }

.collection-page .browse-tags {
  display: flex !important;
  align-items: center;
  gap: 1rem;
  width: 100%; }
  @media (max-width: 767px) {
    .collection-page .browse-tags {
      background: #fff;
      padding: 5px; } }

.collection-page .browse-tags > span {
  font-weight: bold;
  font-size: 1rem;
  color: #000; }
  @media (max-width: 767px) {
    .collection-page .browse-tags > span:not(.custom-dropdown) {
      display: none; } }

@media (max-width: 767px) {
  .collection-page .browse-tags > span.custom-dropdown {
    font-weight: normal;
    font-size: 13px; } }

.collection-page .browse-tags > span.custom-dropdown select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 30px;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 2.5px; }

/* Sort dạng nút trên desktop */
.collection-page .browse-tags .sort-fake {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0; }
  @media (max-width: 1024px) {
    .collection-page .browse-tags .sort-fake {
      display: none; } }
  .collection-page .browse-tags .sort-fake li {
    padding: 5px 10px;
    border: 1px solid #dbdbdb;
    border-radius: 50px;
    background: #fff;
    display: flex;
    text-wrap: nowrap;
    align-items: center;
    gap: 5px;
    cursor: pointer; }
    .collection-page .browse-tags .sort-fake li svg {
      width: 20px;
      margin-bottom: 2px; }
    .collection-page .browse-tags .sort-fake li.active {
      border-color: #e02027; }

/* Sort dạng dropdown trên mobile/tablet */
@media (min-width: 1024px) {
  .collection-page .browse-tags .custom-dropdown {
    display: none; } }

.collection-page .browse-tags .custom-dropdown select {
  background: transparent; }

/* Nút mở bộ lọc trên mobile */
@media (min-width: 1024px) {
  .collection-page #filter-mobile-btn {
    display: none; } }

@media (max-width: 767px) {
  .collection-page #filter-mobile-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding-left: 10px;
    border-left: 1px solid #dbdbdb;
    font-size: 13px; }
    .collection-page #filter-mobile-btn svg {
      width: 18px;
      height: 18px;
      fill: #000;
      color: #000; }
      .collection-page #filter-mobile-btn svg * {
        fill: #000;
        color: #000; }
    .collection-page #filter-mobile-btn img {
      max-width: 18px;
      filter: brightness(0); } }

/* ---------- 11. Lưới sản phẩm ---------- */
@media (max-width: 767px) {
  .collection-page .cusCol-right .collection-page__product {
    margin-top: 5px !important; } }
