/*
Theme Name: TDA - Roboworld
Template: hello-elementor
*/

/* Ẩn thanh cuộn toàn trang, vẫn cuộn bình thường */
html, body {
  -ms-overflow-style: none;   /* IE, cũ */
  scrollbar-width: none;      /* Firefox */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;              
}

:root { scrollbar-gutter: stable; }


.tda-product-tab .e-n-tabs-heading {
    flex: 0 0 auto !important;
    width: max-content;
    display: inline-flex;
    margin-inline: auto;
    background-color: #28292D;
    padding: 4px;
    border-radius: 100px;
}

.tda-img-lazy-zoom { overflow: hidden; }
.tda-img-lazy-zoom img {
  --zoom-from: 1.2;
  display: block;
  width: 100%;
  height: auto;
  transform: scale(var(--zoom-from));
  transition: transform 0.6s ease;
}
.tda-img-lazy-zoom.is-inview img {
  transform: scale(1);
}
.tda-img-overflow-hidden{
	overflow: hidden;
}

div[aria-label="Off-Canvas-Product"] {
    top: 145px !important;
	max-height: 750px;   
    overflow-y: auto;   
}
div[aria-label="Off-Canvas-Product"].is-scrolled {
  top: 70px !important;
}

body.home .tda-header-main{
  position: absolute !important;
  background: transparent !important;
}

body:not(.home) .tda-header-main{
  position: sticky !important;
  top: var(--tda-adminbar-offset, 0px) !important; /* chừa chỗ cho admin bar nếu có */
  z-index: 9999;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}


@media (min-width: 1024px) {
  .tda-loop-carousel .swiper {
    overflow: hidden;
  }
  .tda-loop-carousel .swiper-slide {
    width: calc(50% - 10px) !important; 
  }
  .tda-loop-carousel .swiper-wrapper {
    margin-left: -25%;
    gap: 0;
  }
}

@media (min-width: 1024px) {
  .tda-class-absotule {
    position: absolute;
  }
}

.tda-tab-pudush1 .e-n-tabs-heading {
    position: absolute;
    z-index: 3;
    bottom: 30%;
    right: 11%;
}

.tda-moving-bg {
    height: 175px !important;
  background-repeat: repeat-x;
  background-position: 0 0;
  background-size: auto 100%;
  animation: moveBgRight 20s linear infinite;
}

@keyframes moveBgRight {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@media (max-width: 757px) {
  .tda-moving-bg {
    height: 100px !important;
  }
}

/* Ẩn icon xanh trừ khi có active */
.icon-trigger.green {
  display: none !important;
}

/* Chỉ hiện icon xanh khi có class active */
.icon-trigger.green.active {
  display: inline-block !important;
}

/* Khi hover icon trắng → ẩn trắng */
.icon-trigger.white:hover {
  display: none !important;
}


/* Ảnh lớn */
.big-image {
  display: none !important;
}
.big-image.active {
  display: block !important;
}



.tda-tag-robo .elementor-post-info__terms-list{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;

  font-size:0 !important;
}

.tda-tag-robo .elementor-post-info__terms-list-item{
  border:1px solid #ddd !important;
  border-radius:6px !important;
  padding:6px 12px !important;
  background:#fff !important;
  line-height:1.4 !important;
  white-space:nowrap !important;
  font-size:14px !important;
}

.tda-tag-robo .elementor-post-info__terms-list > span::after{
  content:"" !important;
  display:none !important;
}


/* ------------popup search------------ */
.search-popup-wrapper {
  position: relative;
  max-width: 600px; 
  margin: 0 auto;
}

.search-bar-container {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#custom-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 8px 12px;
  background: transparent;
  color: #333;
}

#custom-search-icon {
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#custom-search-icon svg {
  width: 18px !important;
  height: 18px!important;
  fill: #b33;
}

#custom-search-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  padding: 16px;
  z-index: 99;
}

#custom-search-popup.hidden {
  display: none;
}

/* ========== POPUP ========== */
.search-popup {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 877px;
  margin: 10px auto 0;
  max-height: 698px;
  overflow-y: auto;
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}
.search-popup::-webkit-scrollbar { display: none; }

.hidden { display: none; }

.popup-section { font-size: 16px; }

.popup-section-title {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #252525;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.popup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 6px;
  transition: background-color .2s;
  cursor: pointer;
}
.search-card:hover { background-color: #efefef; }

.search-card a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  gap: 14px;
  width: 100%;
}

.search-card img {
  width: 100%;
  max-width: 72px !important;
  aspect-ratio: 4 / 5;
  height: auto !important;
  border-radius: 6px !important;
  object-fit: cover;
  flex-shrink: 0;
}

.search-card .title {
  font-size: 15px;
  font-weight: 400;
  color: #252525;
  opacity: .7;
  line-height: 20px;
  display: -webkit-box;
    -webkit-line-clamp: 2;   
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-more-button-wrapper { text-align: center; margin-top: 6px; }
a.search-more-button {
  display: inline-block;
  color: #0B9B5C !important;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #0B9B5C;
  transition: all .3s ease;
  font-size: 15px;
}
a.search-more-button:hover { opacity: .8; }

@media (max-width: 768px) {
  .search-popup {
    max-height: 58vh;
    overflow-y: auto;
    padding: 20px 15px;
    top: 100%;
  }

  .popup-grid { grid-template-columns: 1fr; }

  #custom-search-input { font-size: 16px; }

  .search-card .title { font-size: 15px; }
}

.search-bar-container.focused {
  box-shadow: 0 0 0 3px rgba(11,155,92,.15);
  transition: box-shadow .2s ease;
  border-radius: 50px;
}



/* ------------page search------------ */
.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: #efc3bd !important;
  color: #60AE8C !important;
  border: none !important;
  border-radius: 6px;
  padding: 6px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #fff !important;
}

.tda-tab.active {
  background: #c13d2a !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 !important;
    align-items: center;
    gap: 10px;
    background: none !important;
    border: none !important;
    color: #00863f !important;
    font-size: 17px ! IMPORTANT;
    padding: 25px 0px !important;
    margin-top: 20px;
    width: 100% ! IMPORTANT;
    border-top: 1px solid #E7E7E7;
    border-bottom: 1px solid #E7E7E7;
    font-weight: 600 !IMPORTANT;
}
strong.tda-count-number {
  color: #c13d2a;
}



.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;
  }
}


.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%;
	display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}


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







/* 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;
}






/* ------------chi tiết phụ kiện------------ */
.tda-accessories-single {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 1200px;
    padding: 3rem 1.5rem;
}
/* Trái chiếm 50% */
.tda-accessories-left {
  flex: 0 0 50%;
}

/* Phải chiếm 50% */
.tda-accessories-right {
  flex: 0 0 50%;
}

/* === GALLERY BÊN TRÁI === */
.tda-accessories-gallery-main {
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  background: #fafafa;
  margin-bottom: 15px;
  overflow: hidden;
}

.tda-gallery-slide {
  display: none;
  width: 100%;
  height: 100%;
  text-align: center;
}
.tda-gallery-slide.is-active {
  display: block;
}
.tda-gallery-slide .main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Thumbnail */
.tda-accessories-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.tda-accessories-thumbs .thumb {
  width: 50px;
  height: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  background: #fff;
}
.tda-accessories-thumbs .thumb.active {
  border-color: #0073aa;
}
.tda-accessories-thumbs .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tda-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    padding: 3px 10px;
    margin-bottom: 12px;
    border: 1px solid #444;
}

.tda-title {
  font-size: 28px;
  margin: 0 0 25px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.tda-section {
  margin-bottom: 35px;
}
.tda-section h2 {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 6px;
}
.tda-section .tda-content {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* Compatible products */
.tda-compatible .tda-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.tda-compatible .tda-item {
  text-align: center;
}
.tda-compatible .tda-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}
.tda-compatible .tda-item span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #222;
}
.tda-divider {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 20px 0;
}


@media (max-width: 1200px) {
  .tda-accessories-single {
    gap: 30px;
    padding: 4rem 1rem;
  }
  .tda-title {
    font-size: 24px;
  }
  .tda-section h2 {
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .tda-accessories-single {
    flex-direction: column;
    padding: 3rem 1rem;
  }
  .tda-accessories-left,
  .tda-accessories-right {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .tda-accessories-left {
    margin-bottom: 30px;
  }
  .tda-accessories-gallery-main {
    height: 360px;
  }
  .tda-compatible .tda-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .tda-title {
    font-size: 22px;
  }
  .tda-accessories-gallery-main {
    height: 300px;
  }
  .tda-accessories-thumbs .thumb {
    width: 45px;
    height: 45px;
  }
  .tda-compatible .tda-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

/* Màn hình <= 480px (mobile) */
@media (max-width: 480px) {
  .tda-accessories-single {
    padding: 2rem 1rem;
    gap: 20px;
  }
  .tda-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .tda-accessories-gallery-main {
    height: 240px;
  }
  .tda-accessories-thumbs .thumb {
    width: 40px;
    height: 40px;
  }
  .tda-compatible .tda-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tda-compatible .tda-item span {
    font-size: 13px;
  }
}

.tda-button {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  background: #C13D2A;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tda-button:hover {
  background: #bf4e3f;
}

.tda-form-lien-he {
  margin-top: 20px;
}
.tda-breadcrumb {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}
.tda-breadcrumb a.tda-crumb-root {
  color: #666;
  text-decoration: none;
}

.tda-breadcrumb a.tda-crumb-root:hover {
  color: #0073aa;
  text-decoration: underline;
}

.tda-breadcrumb .tda-crumb-sep {
  margin: 0 6px;
  color: #aaa;
  display: flex;
  align-items: center;
}

.tda-breadcrumb .tda-crumb-current {
  font-weight: 500;
  color: #111;
}


/* ------------Danh mục phụ kiện------------ */

.tda-accessories-filter {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.tda-filter-sidebar {
  width: 270px;
}

.tda-filter-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tda-filter-sidebar li {
  margin-bottom: 8px;
}

.tda-filter-sidebar a {
  color: #444 !important;
  text-decoration: none;
  font-size: 14px;
}

.tda-filter-sidebar a.active {
    color: #C13D2A !important;
    font-weight: 600;
}

.tda-filter-main {
  flex: 1;
}

.tda-filter-categories {
  margin-bottom: 20px;
}

.tda-filter-categories a {
    margin-right: 15px;
    font-size: 14px;
    padding: 10px 20px;
	color: #444 !important;
}

.tda-filter-categories a.active {
    background: #FFE0DD;
    color: #bf3c29 !important;
}

.tda-products-grid .tda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 10px;
}

/* Grid item */
.tda-products-grid .tda-item {
  text-align: left;
  border: 1px solid #eee;
  padding: 15px;
  background: #fafafa;
  overflow: hidden;
  transition: box-shadow .3s ease;
}


/* Thumb ảnh */
.tda-products-grid .tda-thumb {
  width: 100%;
  height: 340px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tda-products-grid .tda-thumb img {
  max-width: 100%;
  max-height: 100%;
  transition: transform .4s ease;
}

.tda-products-grid .tda-item:hover .tda-thumb img {
  transform: scale(1.2);
}

.tda-products-grid .tda-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tda-products-grid .tda-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1; 
}

.tda-products-grid .tda-learn {
  font-size: 14px;
  color: #0073aa;
  text-decoration: none;
  display: none;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0; 
}

.tda-products-grid .tda-item:hover .tda-learn {
  display: flex;
}

.tda-products-grid .tda-learn:hover {
  text-decoration: underline;
}

/* ------------ Responsive danh mục phụ kiện ------------ */

@media (max-width: 1200px) {
  .tda-accessories-filter {
    gap: 20px;
    padding: 1.5rem;
  }

  .tda-filter-sidebar {
    width: 220px;
  }

  .tda-products-grid .tda-thumb {
    height: 280px;
  }
}

@media (max-width: 992px) {
  .tda-accessories-filter {
    flex-direction: column;
  }

  .tda-filter-sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .tda-filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .tda-filter-categories a {
    margin: 0;
    padding: 8px 16px;
    font-size: 13px;
  }

  .tda-products-grid .tda-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .tda-products-grid .tda-thumb {
    height: 260px;
  }
}

@media (max-width: 768px) {
	.tda-products-grid .tda-thumb {
        height: 180px;
    }
  .tda-filter-categories {
    display: flex;
    flex-wrap: nowrap;             
    overflow-x: auto;               
    -webkit-overflow-scrolling: touch; 
    white-space: nowrap;
    gap: 10px;
    padding: 8px 0;
  }
	.tda-products-grid .tda-item {
	  padding: 10px;
	}

  .tda-filter-categories a {
    flex: 0 0 auto;  
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
  }

  .tda-filter-categories::-webkit-scrollbar {
    display: none;
  }
}
/* Mặc định: hiển thị list, ẩn select */
.tda-filter-tags-select {
  display: none;
}

@media (max-width: 767px) {
  .tda-filter-tags-list {
    display: none; 
  }
  .tda-filter-tags-select {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
  }
}


