/* TV descendant taxonomy pages only — SEO URLs and WooCommerce product output are untouched. */
body.ap-tv-subcat #main .products_wrap_list{display:flex;flex-wrap:wrap;align-items:flex-start}
body.ap-tv-subcat #main .products_wrap_list>.product-filters{display:none!important}
body.ap-tv-subcat #main .products_wrap_list>.product-list{flex:0 0 100%;max-width:100%;width:100%;min-width:0;padding-left:10px;padding-right:10px}
body.ap-tv-subcat #main .filters-overlay-mobile{display:none!important}
body.ap-tv-subcat #main .filter_mb_wraps_wrap{display:none!important}
body.ap-tv-subcat #main .filter-header-mb{display:none!important}
body.ap-tv-subcat #main .filter-header-pc{display:none!important}
/* Old cross-brand chips (e.g. LG/Sony on Samsung) are unrelated to the selected brand. */
body.ap-tv-subcat #main .cat-dx{display:none!important}
body.ap-tv-subcat .shop-page-title .woocommerce-ordering select.orderby{background:#fff;border:1px solid #dce0e5;border-radius:8px;color:#283341;padding:0 34px 0 12px;height:40px;min-width:200px;opacity:1}
body.ap-tv-subcat #main .list-product-ter{margin:0 0 18px}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(136px,1fr));gap:10px;margin:0 0 24px;padding:0;list-style:none}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_mb{display:none!important}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li{float:none!important;display:block!important;width:auto!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;list-style:none}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li:has(>a.view_more_cat){display:none!important}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li>a:not(.view_more_cat){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:116px;height:100%;border:1px solid #e3e7ed;border-radius:10px;background:#fff;padding:12px 8px;text-decoration:none;color:#263342;font-size:13px;font-weight:600;line-height:1.45;box-shadow:0 1px 5px #20262f06;transition:background .15s,border-color .15s;text-align:center;white-space:normal}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li>a:not(.view_more_cat):hover{background:#fff8f8;border-color:#c90812;color:#b3131b}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li>a:not(.view_more_cat)::before{content:'TV';display:grid;place-items:center;width:60px;height:39px;border:3px solid #566273;border-radius:4px;box-shadow:0 4px 0 -2px #566273;background:#f0f4f8;color:#566273;font-size:11px;font-weight:700;flex-shrink:0}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li>a img,
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li>a noscript{display:none!important}
body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li>a span{font-size:13px!important;font-weight:600;line-height:1.4;display:block;color:inherit}
body.ap-tv-subcat #main .bx-feature-product-row{margin:0 0 14px;padding:12px 14px;background:#fff;border:1px solid #e5e8eb;border-radius:10px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}
body.ap-tv-subcat #main .bx-feature-product-head{font-size:18px;line-height:1.45;color:#bf0b18;margin:0 8px 0 0}
body.ap-tv-subcat #main .namsxs{display:flex;gap:8px;flex-wrap:wrap;margin:0;padding:0}
body.ap-tv-subcat #main .namsxs>.input-group{width:auto!important;min-width:0;margin:0!important}
body.ap-tv-subcat #main .namsxs label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 44px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #e0e4eb;
  border-radius: 8px;
  background: #fafbfc;
  color: #283341;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
body.ap-tv-subcat #main .namsxs label .checkmark { display: none !important; }
body.ap-tv-subcat #main .namsxs label input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
}
body.ap-tv-subcat #main .namsxs label:hover { border-color: #c90812; }
body.ap-tv-subcat #main .namsxs label:has(input:checked) {
  border-color: #c90812;
  background: #fff2f2;
  color: #b3131b;
}
body.ap-tv-subcat #main .namsxs label:has(input:focus-visible) {
  outline: 2px solid #c90812;
  outline-offset: 2px;
}
body.ap-tv-subcat #main .namsxs>.input-group:has(input[value="nam-san-xuat||3298"]),
body.ap-tv-subcat #main .namsxs>.input-group:has(input[value="nam-san-xuat||4591"]),
body.ap-tv-subcat #main .namsxs>.input-group:has(input[value="nam-san-xuat||4607"]),
body.ap-tv-subcat #main .namsxs>.input-group:has(input[value="nam-san-xuat||4634"]){display:none!important}
body.ap-tv-subcat #main .product-list-list{background:transparent}
body.ap-tv-subcat #main .product-list-list .row-small{max-width:100%}
@media(max-width:849px){
 body.ap-tv-subcat #main .products_wrap_list>.product-list{padding:0 8px}
 body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc>li>a:not(.view_more_cat){min-height:105px;font-size:12px;padding:10px 5px}
 body.ap-tv-subcat #main .bx-feature-product-row{padding:12px}
}
@media(max-width:549px){
 body.ap-tv-subcat #main ul.top-parent-term-cat.cat_childs_pc{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.ap-tv-subcat #main .bx-feature-product-head{font-size:16px;width:100%}
 body.ap-tv-subcat .shop-page-title .woocommerce-ordering select.orderby{min-width:0;max-width:100%}
}
