.tda-detail-danh-muc-container {
        max-width: 1806px;
        margin: 0 auto;
        padding: 20px 15px;
    }
.rank-math-breadcrumb{
    font-size: 15px;
}
.rank-math-breadcrumb .separator{
    color: #b5b5b5;
}
.tda-search-wrapper {
  max-width: 1810px;
  margin: 0 auto;
  padding: 60px 15px;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  gap: 30px;
}

.tda-search-left {
  width: 30%;
  max-width: 400px;
  flex-shrink: 0;
}

.tda-search-right {
  width: 78%;
}

.tda-search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  transition: border-bottom 0.25s ease;
  padding-bottom: 4px;
}

.tda-search-form.focused {
  border-bottom: 2px solid #00863f;
}

.tda-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  font-size: 36px;
  padding: 6px 0px !important;
}

.tda-search-input::placeholder {
  opacity: 60%;
}

.tda-search-btn {
  background: none !important;
  border: none !important;
  cursor: pointer;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tda-search-btn svg {
  width: 30px;
  height: 30px;
  fill: #252525;
}

/* tab */

.tda-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  margin-top: 30px;
}

.tda-tab {
  background: #EEF4F1 !important;
  color: #60AE8C !important;
  border: none;
  border-radius: 6px;
  padding: 6px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

.tda-tab.active {
  background: #B0D5C5 !important;
}

.tda-count {
  font-weight: 600;
  font-size: 14px;
}

.tda-count span {
  color: #00863f !important;
}

.tda-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 30px;
  gap: 15px;
}

.tda-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none !important;
  border: none;
  color: #00863f !important;
  font-size: 17px ! IMPORTANT;
  padding: 25px 0px !important;
  margin-top: 20px;
  width: 100%;
  border-top: 1px solid #E7E7E7;
  border-bottom: 1px solid #E7E7E7;
  font-weight: 600 !IMPORTANT;
}

strong.tda-count-number {
  color: #0B9B5C;
}



.tda-filter-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 20px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s ease-in-out, opacity 0.25s ease-in-out;
  pointer-events: none;
}

.tda-filter-popup.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}


.tda-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 16px;
}

.tda-filter-header span {
  font-size: 36px;
  font-weight: 600;
  margin-top: 30px;
}

.tda-filter-close {
  background: none !important;
  border: none;
  font-size: 30px !important;
  cursor: pointer !important;
  color: #252525 !important;
}

.tda-filter-group {
  margin-bottfom: 24px;
}

.tda-filter-group h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #252525;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.tda-filter-checkboxes {
  padding-top: 15px;
}

.tda-filter-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(30, 30, 30, 0.7);
  font-weight: 400;
}

.tda-filter-checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tda-filter-checkboxes input[type="checkbox"]:checked {
  background-color: #00863f;
  border-color: #00863f;
}

.tda-filter-checkboxes input[type="checkbox"]:checked::after {
  content: '✔';
  position: absolute;
  font-size: 12px;
  color: #fff;
  left: 3px;
  top: -2px;
}
.tda-result-card-post img {
    aspect-ratio: 16 / 10 !important;
}
.tda-result-card-product img {
    aspect-ratio: 16 / 9 !important;
}


@media (max-width: 1360px) {
  .tda-results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .tda-search-wrapper {
    justify-content: space-between;
    flex-direction: column;
    gap: 40px;
  }

  .tda-search-left {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
  }

  .tda-search-right {
    width: 100%;
  }

}

@media (max-width: 767px) {
  .tda-results-grid p {
    display: none;
  }

  .tda-result-card h5 {
    font-size: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px !important;
    width: 80%;
  }

  .tda-info {
    gap: 0px;
  }

  .tda-search-wrapper {
    padding: 30px 25px 30px 25px;
  }

  .tda-result-card {
    margin-bottom: 10px !important;
  }

}

@media (min-width: 1025px) {
  .tda-filter-popup {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    height: auto;
    width: 100%;
    box-shadow: none;
    padding: 0;
    display: block !important;
  }

  .tda-filter-popup.hidden,
  .tda-filter-popup.show {
    display: block !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .tda-filter-toggle,
  .tda-filter-close,
  .tda-filter-header {
    display: none !important;
  }

  .tda-filter-content {
    padding: 16px 0;
  }

  .tda-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .tda-filter-group {
    flex: 1 1 100%;
    max-width: 300px;
  }
}





















/* Kết quả bên phải - grid 3 cột */
.tda-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tda-result-card {
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  margin-bottom: 50px;
}

.tda-result-card img {
  width: 100%;
  max-width: 429px;
  aspect-ratio: 429 / 536.25;
  height: auto;
  border-radius: 10px;
}

.tda-result-card h5 {
  padding-top: 10px;
  color: #252525 !important;
  font-size: 16px !important;
  letter-spacing: 0px !important;
  opacity: 80%;
  margin-bottom: 0;
}

.tda-result-card p {
  font-size: 16px ! IMPORTANT;
  color: #666;
  font-weight: 400;
}

.tda-results-grid p,
.tda-filter-checkboxes p {
  font-weight: 400;
  margin-top: 10px;
  font-size: 14px !important;
  color: #252525;
  opacity: 60%;
}

.tda-readmore-btn {
  display: inline-block;
  color: #0B9B5C !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #0B9B5C;
  transition: all 0.3s ease;
  font-size: 15px;
  width: 110px;
}







/* Nhóm danh mục cha */
.tda-term-group {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

span.tda-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #252525;
    padding-bottom: 6px;
}

.tda-toggle-icon img {
  transition: transform 0.3s ease;
}

.tda-term-group.active .tda-toggle-icon img {
  transform: rotate(180deg);
}


.tda-group-content {
  display: none;
}
.tda-filter-group .tda-group-toggle {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}
.tda-filter-group .tda-toggle-icon {
    line-height: 0px;
}

.tda-term-group:not(:last-child) {
  margin-bottom: 10px;
}