.tpa-woo-main{padding-top:var(--tpa-main-top);padding-bottom:var(--tpa-main-bottom)}.tpa-shop-head{max-width:none}.woocommerce .woocommerce-result-count{color:var(--tpa-muted);font-size:13px}.woocommerce .woocommerce-ordering select{height:44px;border:1px solid var(--tpa-line);border-radius:9px;padding:0 32px 0 12px;background:#fff}.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:var(--tpa-section-head-gap) 0 0!important;padding:0!important}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}.woocommerce ul.products li.product.tpa-loop-product{width:auto!important;margin:0!important;float:none!important}.woocommerce ul.products li.product .tpa-product-card{height:100%}.woocommerce nav.woocommerce-pagination{margin:var(--tpa-block-gap) 0 0}.woocommerce nav.woocommerce-pagination ul{border:0!important;display:flex;gap:8px}.woocommerce nav.woocommerce-pagination ul li{border:0!important}.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{min-width:42px;height:42px;padding:0 10px!important;border:1px solid var(--tpa-line)!important;border-radius:9px;display:grid;place-items:center}.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--tpa-black-950)!important;color:#fff!important}
@media (max-width:1100px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:780px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.woocommerce .woocommerce-ordering{float:none;margin:12px 0}.woocommerce .woocommerce-result-count{float:none}}
@media (max-width:350px){.woocommerce ul.products{grid-template-columns:1fr}}
.tpa-shop-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start}.tpa-shop-filter{position:sticky;top:18px;padding:16px;border:1px solid var(--tpa-line);border-radius:14px;background:#fff}.tpa-shop-filter h2{margin:0 0 10px;font-size:16px}.tpa-shop-filter>a{min-height:42px;padding:8px 9px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700}.tpa-shop-filter>a span{font-size:11px;color:var(--tpa-muted)}.tpa-shop-filter>a:hover,.tpa-shop-filter>a.is-active{background:var(--tpa-surface-soft);color:#6f4b08}.tpa-shop-filter-mobile{display:none;border:1px solid var(--tpa-line);border-radius:11px;background:#fff;margin-bottom:18px}.tpa-shop-filter-mobile summary{padding:11px 13px;font-weight:700}.tpa-shop-filter-mobile>div{padding:0 8px 8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.tpa-shop-filter-mobile a{padding:8px;border-radius:8px;background:var(--tpa-surface-soft);font-size:12px}.tpa-shop-filter-mobile a.is-active{background:var(--tpa-black-950);color:#fff}.tpa-shop-results{min-width:0}.tpa-shop-results .woocommerce-notices-wrapper:empty{display:none}
@media(max-width:900px){.tpa-shop-layout{grid-template-columns:1fr}.tpa-shop-filter{display:none}.tpa-shop-filter-mobile{display:block}}

/* v0.2.5: category + existing vehicle Brands taxonomy filter groups. */
.tpa-shop-filter{display:grid;gap:18px}
.tpa-shop-filter-group{display:grid;gap:3px}
.tpa-shop-filter-group+.tpa-shop-filter-group{padding-top:16px;border-top:1px solid var(--tpa-line)}
.tpa-shop-filter-group h2{margin:0 0 7px;font-size:15px;letter-spacing:-.01em}
.tpa-shop-filter-group>a{min-height:40px;padding:7px 9px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:700}
.tpa-shop-filter-group>a small{font-size:10.5px;color:var(--tpa-muted);font-weight:600}
.tpa-shop-filter-group>a:hover,.tpa-shop-filter-group>a.is-active{background:var(--tpa-surface-soft);color:#6f4b08}
.tpa-shop-filter-mobile>div.tpa-shop-filter-mobile-groups{display:grid;grid-template-columns:1fr;gap:12px;padding:0 8px 10px}
.tpa-shop-filter-mobile-group{display:grid;gap:7px}
.tpa-shop-filter-mobile-group>strong{padding:0 3px;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--tpa-muted)}
.tpa-shop-filter-mobile-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tpa-shop-filter-mobile-group a{padding:8px;border-radius:8px;background:var(--tpa-surface-soft);font-size:12px;font-weight:700}
.tpa-shop-filter-mobile-group a.is-active{background:var(--tpa-black-950);color:#fff}


/* v0.2.12 — `/hang-xe/` virtual Brands taxonomy index. */
.tpa-brand-index-main{padding:var(--tpa-main-top) 0 var(--tpa-main-bottom);background:linear-gradient(180deg,#fbfaf7 0%,#fff 34%,#f8f5ee 100%)}
.tpa-brand-index-head{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:var(--tpa-section-head-gap);padding:32px 34px;border:1px solid #e7dfcf;border-radius:22px;background:linear-gradient(135deg,#0c0c0c 0%,#15130f 72%,#30220d 100%);color:#fff;box-shadow:0 24px 60px rgba(15,12,7,.10)}
.tpa-brand-index-head>div:first-child{max-width:780px}.tpa-brand-index-kicker{margin:0 0 9px;color:#e5bd53;font-size:12px;font-weight:700;letter-spacing:.15em}.tpa-brand-index-head h1{margin:0;font-size:clamp(38px,5vw,62px);line-height:1;letter-spacing:-.045em}.tpa-brand-index-head p:not(.tpa-brand-index-kicker){margin:16px 0 0;color:#d5d1c9;font-size:16px;line-height:1.65}.tpa-brand-index-head p strong{color:#f0cf70}.tpa-brand-index-stat{flex:0 0 auto;min-width:120px;padding:14px 18px;border:1px solid rgba(229,189,83,.32);border-radius:16px;background:rgba(255,255,255,.045);text-align:right}.tpa-brand-index-stat strong{display:block;color:#f0cf70;font-size:30px;line-height:1}.tpa-brand-index-stat span{display:block;margin-top:6px;color:#bdb8ae;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.tpa-brand-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tpa-brand-directory-card{min-width:0;padding:18px;border:1px solid #e6dece;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(18,15,10,.055);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.tpa-brand-directory-card:hover{transform:translateY(-2px);border-color:#d8ba68;box-shadow:0 18px 42px rgba(18,15,10,.09)}
.tpa-brand-directory-top{display:grid;grid-template-columns:64px minmax(0,1fr) 22px;align-items:center;gap:13px;color:#171717}.tpa-brand-directory-logo{box-sizing:border-box;width:64px;height:58px;padding:7px 8px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;display:grid;place-items:center;overflow:hidden;color:#9c6a08}.tpa-brand-directory-logo img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center}.tpa-brand-directory-name{min-width:0}.tpa-brand-directory-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:18px;line-height:1.25}.tpa-brand-directory-name small{display:block;margin-top:4px;color:#77736c;font-size:12px}.tpa-brand-directory-top>.tpa-icon{width:18px;height:18px;color:#b17b13;transition:transform .18s ease}.tpa-brand-directory-card:hover .tpa-brand-directory-top>.tpa-icon{transform:translateX(3px)}
.tpa-brand-model-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px;padding-top:14px;border-top:1px solid #eee8dd}.tpa-brand-model-links a{max-width:100%;padding:7px 10px;border:1px solid #ece3d2;border-radius:999px;background:#fcfaf5;color:#4e493f;font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tpa-brand-model-links a:hover{border-color:#d5ae4c;color:#6f4b08;background:#fff9e9}.tpa-brand-model-links a.is-more{color:#8b5f0b;border-style:dashed}
.tpa-brand-index-empty{max-width:720px;margin:24px auto 0;padding:50px 26px;border:1px dashed #d8cba9;border-radius:20px;background:#fff;text-align:center}.tpa-brand-index-empty>span{width:58px;height:58px;margin:0 auto 14px;border-radius:18px;background:#fff7df;color:#9c6a08;display:grid;place-items:center}.tpa-brand-index-empty .tpa-icon{width:28px;height:28px}.tpa-brand-index-empty h2{margin:0;font-size:24px}.tpa-brand-index-empty p{margin:10px auto 0;max-width:540px;color:#6f6a61;line-height:1.65}
@media(max-width:1024px){.tpa-brand-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.tpa-brand-index-head{align-items:flex-start}}
@media(max-width:700px){.tpa-brand-index-main{padding:28px 0 52px}.tpa-brand-index-head{display:block;margin-bottom:18px;padding:24px 20px;border-radius:17px}.tpa-brand-index-head p:not(.tpa-brand-index-kicker){font-size:14px}.tpa-brand-index-stat{display:inline-flex;align-items:baseline;gap:7px;min-width:0;margin-top:18px;padding:10px 12px;text-align:left}.tpa-brand-index-stat strong{font-size:24px}.tpa-brand-index-stat span{margin:0}.tpa-brand-directory{grid-template-columns:1fr;gap:12px}.tpa-brand-directory-card{padding:15px;border-radius:15px}.tpa-brand-directory-top{grid-template-columns:56px minmax(0,1fr) 18px;gap:11px}.tpa-brand-directory-logo{width:56px;height:50px;padding:6px 7px;border-radius:10px}.tpa-brand-directory-logo img{width:100%;height:100%;max-width:none;max-height:none}.tpa-brand-directory-name strong{font-size:16px}.tpa-brand-model-links{margin-top:13px;padding-top:12px;gap:6px}.tpa-brand-model-links a{padding:6px 9px;font-size:11.5px}}
@media(prefers-reduced-motion:reduce){.tpa-brand-directory-card,.tpa-brand-directory-top>.tpa-icon{transition:none}.tpa-brand-directory-card:hover{transform:none}}

/* =========================================================
 * Theme 0.2.29 — Compact hierarchical catalog filter
 * Parent product categories and vehicle Brands become accordions.
 * ======================================================= */
.tpa-shop-layout{grid-template-columns:238px minmax(0,1fr);gap:26px}
.tpa-shop-filter{gap:14px;padding:14px;border-radius:16px;box-shadow:0 10px 30px rgba(35,29,19,.045)}
.tpa-shop-filter-group{gap:6px}
.tpa-shop-filter-group+.tpa-shop-filter-group{padding-top:12px}
.tpa-shop-filter-group h2{margin:0 0 4px;font-size:14px;letter-spacing:-.012em}
.tpa-filter-all{min-height:38px;padding:8px 10px;border-radius:9px;display:flex;align-items:center;font-size:12.5px;font-weight:700}
.tpa-filter-all:hover,.tpa-filter-all.is-active{background:#f3eee4;color:#75500a}
.tpa-filter-tree{display:grid;gap:4px;min-width:0}
.tpa-filter-node{min-width:0;border-radius:10px}
.tpa-filter-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:stretch;gap:2px;min-width:0;border-radius:10px}
.tpa-filter-node:not(:has(.tpa-filter-toggle)) .tpa-filter-row{grid-template-columns:minmax(0,1fr)}
.tpa-filter-term-link{min-width:0;min-height:38px;padding:7px 8px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;border-radius:9px;color:#201e1a;font-size:12.5px;font-weight:700;line-height:1.25}
.tpa-filter-term-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpa-filter-term-link small,.tpa-filter-child-link small{color:#8b857d;font-size:10px;font-weight:700}
.tpa-filter-term-link:hover,.tpa-filter-term-link.is-active,.tpa-filter-node.is-open>.tpa-filter-row .tpa-filter-term-link{background:#f4f0e8;color:#75500a}
.tpa-filter-toggle{width:30px;min-width:30px;height:30px;margin:auto 0;padding:0;border:0;border-radius:8px;background:transparent;color:#8a8174;display:grid;place-items:center;cursor:pointer;transition:background-color .18s ease,color .18s ease,transform .18s ease}
.tpa-filter-toggle:hover,.tpa-filter-toggle:focus-visible{background:#f1ebdf;color:#8b5f0b;outline:none}
.tpa-filter-toggle svg{width:16px;height:16px;transition:transform .18s ease}
.tpa-filter-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.tpa-filter-children{display:grid;gap:2px;margin:3px 0 5px 10px;padding:5px 0 4px 10px;border-left:1px solid #eadfc9}
.tpa-filter-children[hidden]{display:none!important}
.tpa-filter-child-link{min-width:0;min-height:32px;padding:6px 7px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;border-radius:7px;color:#5e584f;font-size:11.5px;font-weight:600;line-height:1.25}
.tpa-filter-child-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpa-filter-child-link:hover,.tpa-filter-child-link.is-active{background:#fff7e4;color:#7b5205}
.tpa-filter-child-link.is-active{font-weight:700;box-shadow:inset 2px 0 0 #d89c24}

.tpa-filter-group-toggle{width:100%;min-height:40px;padding:7px 9px;border:0;border-radius:9px;background:#fbfaf7;color:#211f1b;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:700;text-align:left;cursor:pointer;transition:background-color .18s ease,color .18s ease}
.tpa-filter-group-toggle:hover,.tpa-filter-group-toggle:focus-visible,.tpa-shop-filter-group--brands.is-open .tpa-filter-group-toggle{background:#f3eee4;color:#75500a;outline:none}
.tpa-filter-group-toggle svg{width:17px;height:17px;flex:0 0 auto;transition:transform .18s ease}
.tpa-filter-group-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.tpa-filter-brand-panel{padding-top:5px}
.tpa-filter-brand-panel[hidden]{display:none!important}
.tpa-filter-brand-scroll{display:grid;gap:3px;max-height:356px;padding-right:5px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9a04e #f3eee5}
.tpa-filter-brand-scroll::-webkit-scrollbar{width:5px}
.tpa-filter-brand-scroll::-webkit-scrollbar-track{background:#f3eee5;border-radius:999px}
.tpa-filter-brand-scroll::-webkit-scrollbar-thumb{background:#c9a04e;border-radius:999px}

.tpa-shop-filter-mobile{overflow:hidden;border-radius:14px;box-shadow:0 8px 24px rgba(35,29,19,.04)}
.tpa-shop-filter-mobile summary{min-height:46px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer}
.tpa-shop-filter-mobile summary::-webkit-details-marker{display:none}
.tpa-shop-filter-mobile-summary-icon{width:24px;height:24px;border-radius:7px;background:#f3eee4;color:#7a5208;display:grid;place-items:center;font-size:17px;line-height:1;transition:transform .18s ease}
.tpa-shop-filter-mobile[open] .tpa-shop-filter-mobile-summary-icon{transform:rotate(45deg)}
.tpa-shop-filter-mobile>div.tpa-shop-filter-mobile-groups{display:grid;grid-template-columns:1fr;gap:10px;padding:0 10px 12px}
.tpa-shop-filter-mobile .tpa-shop-filter-group{padding:10px;border:1px solid #ebe3d7;border-radius:11px;background:#fff}
.tpa-shop-filter-mobile .tpa-shop-filter-group+.tpa-shop-filter-group{padding-top:10px;border-top:1px solid #ebe3d7}
.tpa-shop-filter-mobile .tpa-filter-brand-scroll{max-height:320px}

@media(max-width:1100px) and (min-width:901px){
  .tpa-shop-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}
}
@media(max-width:900px){
  .tpa-shop-layout{grid-template-columns:1fr}
  .tpa-shop-filter{display:none}
  .tpa-shop-filter-mobile{display:block}
}
@media(max-width:560px){
  .tpa-shop-filter-mobile{margin-bottom:14px}
  .tpa-shop-filter-mobile .tpa-filter-term-link{min-height:40px;font-size:13px}
  .tpa-shop-filter-mobile .tpa-filter-child-link{min-height:35px;font-size:12px}
  .tpa-filter-brand-scroll{max-height:300px}
}
@media(prefers-reduced-motion:reduce){
  .tpa-filter-toggle,.tpa-filter-toggle svg,.tpa-filter-group-toggle,.tpa-filter-group-toggle svg,.tpa-shop-filter-mobile-summary-icon{transition:none}
}
/* Mobile specificity reset for the legacy flat-filter rules above. */
.tpa-shop-filter-mobile .tpa-filter-all,
.tpa-shop-filter-mobile .tpa-filter-term-link,
.tpa-shop-filter-mobile .tpa-filter-child-link{
  background:transparent;
  color:inherit;
}
.tpa-shop-filter-mobile .tpa-filter-all:hover,
.tpa-shop-filter-mobile .tpa-filter-all.is-active,
.tpa-shop-filter-mobile .tpa-filter-term-link:hover,
.tpa-shop-filter-mobile .tpa-filter-term-link.is-active,
.tpa-shop-filter-mobile .tpa-filter-node.is-open>.tpa-filter-row .tpa-filter-term-link{
  background:#f4f0e8;
  color:#75500a;
}
.tpa-shop-filter-mobile .tpa-filter-child-link:hover,
.tpa-shop-filter-mobile .tpa-filter-child-link.is-active{
  background:#fff7e4;
  color:#7b5205;
}

/* =========================================================
 * Theme 0.2.31 — Product category content architecture
 * Keep the catalog first; move long taxonomy editorial content below products.
 * ======================================================= */
.tpa-shop-head{
  display:grid;
  gap:10px;
  margin-bottom:18px;
}
.tpa-shop-head h1{margin-bottom:0}
.tpa-shop-category-intro{
  max-width:900px;
  margin:0;
  color:#676159;
  font-size:14.5px;
  line-height:1.72;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

.tpa-category-content-shell{
  --tpa-category-collapse-height:430px;
  position:relative;
  margin-top:28px;
  padding:26px clamp(20px,3vw,34px) 22px;
  border:1px solid #e7ddcc;
  border-radius:24px;
  background:linear-gradient(180deg,#fffdf9 0%,#fbf8f1 100%);
  box-shadow:0 18px 48px rgba(34,28,18,.065),0 2px 8px rgba(34,28,18,.035);
  overflow:hidden;
}
.tpa-category-content-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,420px);
  align-items:end;
  gap:28px;
  margin-bottom:20px;
  padding-bottom:18px;
  border-bottom:1px solid #ece3d5;
}
.tpa-category-content-overline{
  display:block;
  margin-bottom:7px;
  color:#8a5d08;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.tpa-category-content-head h2{
  margin:0;
  color:#181715;
  font-size:clamp(26px,3vw,38px);
  line-height:1.08;
  letter-spacing:-.035em;
}
.tpa-category-content-head>p{
  margin:0;
  color:#746d64;
  font-size:13px;
  line-height:1.65;
}
.tpa-category-content-viewport{
  position:relative;
  max-height:var(--tpa-category-collapse-height);
  overflow:hidden;
  transition:max-height .34s cubic-bezier(.2,.7,.2,1);
}
.tpa-category-content-shell:not(.is-expanded):not(.is-static) .tpa-category-content-viewport::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:118px;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(251,248,241,0) 0%,rgba(251,248,241,.88) 62%,#fbf8f1 100%);
}
.tpa-category-content-body{
  width:min(100%,980px);
  margin:0 auto;
  color:#4f4a43;
  font-size:15px;
  line-height:1.76;
}
.tpa-category-content-body .term-description{margin:0}
.tpa-category-content-body .term-description>:first-child{margin-top:0!important}
.tpa-category-content-body .term-description>:last-child{margin-bottom:0!important}
.tpa-category-content-body p{margin:0 0 16px}
.tpa-category-content-body h2,
.tpa-category-content-body h3{
  color:#1b1916;
  letter-spacing:-.025em;
}
.tpa-category-content-body h2{
  margin:30px 0 12px;
  font-size:clamp(22px,2.5vw,30px);
  line-height:1.18;
}
.tpa-category-content-body h3{
  margin:24px 0 10px;
  font-size:20px;
  line-height:1.25;
}
.tpa-category-content-body ul,
.tpa-category-content-body ol{
  margin:12px 0 20px;
  padding-left:22px;
}
.tpa-category-content-body li{margin:6px 0}
.tpa-category-content-body img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:18px auto 22px;
  border-radius:16px;
  box-shadow:0 12px 34px rgba(27,22,15,.08);
}
.tpa-category-content-body iframe{
  display:block;
  width:min(100%,900px)!important;
  max-width:100%!important;
  height:auto!important;
  aspect-ratio:16/9;
  margin:20px auto 24px;
  border:0;
  border-radius:16px;
  background:#111;
  box-shadow:0 14px 38px rgba(20,17,12,.10);
}
.tpa-category-content-body table{width:100%;border-collapse:collapse}
.tpa-category-content-body blockquote{
  margin:20px 0;
  padding:14px 18px;
  border-left:3px solid #d7a338;
  background:#fffaf0;
  border-radius:0 12px 12px 0;
}
.tpa-category-content-actions{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:center;
  margin-top:12px;
}
.tpa-category-content-toggle{
  min-height:42px;
  padding:9px 16px 9px 18px;
  border:1px solid #d8c7a7;
  border-radius:999px;
  background:#fffdf9;
  color:#76500a;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font:inherit;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(66,48,19,.055);
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;
}
.tpa-category-content-toggle:hover,
.tpa-category-content-toggle:focus-visible{
  border-color:#c79a42;
  background:#fff8e8;
  box-shadow:0 8px 22px rgba(66,48,19,.08);
  outline:none;
}
.tpa-category-content-toggle svg{
  width:17px;
  height:17px;
  transition:transform .22s ease;
}
.tpa-category-content-shell.is-expanded .tpa-category-content-toggle svg{transform:rotate(180deg)}
.tpa-category-content-shell.is-static .tpa-category-content-viewport{max-height:none}
.tpa-category-content-shell.is-static .tpa-category-content-actions{display:none}

@media(max-width:780px){
  .tpa-shop-head{margin-bottom:14px}
  .tpa-shop-category-intro{font-size:13.5px;line-height:1.68;-webkit-line-clamp:4}
  .tpa-category-content-shell{
    --tpa-category-collapse-height:520px;
    margin-top:22px;
    padding:20px 16px 17px;
    border-radius:18px;
  }
  .tpa-category-content-head{
    grid-template-columns:1fr;
    gap:8px;
    margin-bottom:17px;
    padding-bottom:15px;
  }
  .tpa-category-content-head>p{font-size:12.5px}
  .tpa-category-content-body{font-size:14px;line-height:1.72}
  .tpa-category-content-body h2{margin-top:24px}
  .tpa-category-content-body img,
  .tpa-category-content-body iframe{border-radius:12px}
}
@media(prefers-reduced-motion:reduce){
  .tpa-category-content-viewport,
  .tpa-category-content-toggle,
  .tpa-category-content-toggle svg{transition:none}
}

/* =========================================================
 * Theme 0.2.32 — Category editorial split + right filter rail
 * Intro paragraph stays above products. Editor-authored H2/content lives below.
 * Desktop catalog is left; category/vehicle filters move to the right rail.
 * ======================================================= */
@media(min-width:901px){
  .tpa-shop-layout{
    grid-template-columns:minmax(0,1fr) 238px;
    gap:26px;
  }
  .tpa-shop-results{grid-column:1}
  .tpa-shop-filter{grid-column:2;grid-row:1}
}
@media(max-width:1100px) and (min-width:901px){
  .tpa-shop-layout{grid-template-columns:minmax(0,1fr) 220px;gap:22px}
}
.tpa-shop-category-intro{
  width:min(100%,980px);
  max-width:none;
  color:#5f5a53;
  font-size:14.5px;
  line-height:1.75;
  display:block;
  overflow:visible;
}
.tpa-shop-category-intro p{margin:0}
.tpa-category-content-shell{
  padding-top:24px;
}
.tpa-category-content-body>h2:first-child,
.tpa-category-content-body>.term-description>h2:first-child{
  margin-top:0;
}
@media(max-width:780px){
  .tpa-shop-category-intro{font-size:13.5px;line-height:1.7}
  .tpa-category-content-shell{padding-top:19px}
}

/* =========================================================
 * Theme 0.2.33 — Category editor-order split + native YouTube
 * Everything before the first H2 stays above the catalog.
 * The first H2 starts the expandable editorial block below products.
 * ======================================================= */
.tpa-shop-category-intro{
  width:min(100%,980px);
  max-width:none;
  color:#57524b;
  font-size:14.5px;
  line-height:1.75;
}
.tpa-shop-category-intro>:first-child{margin-top:0!important}
.tpa-shop-category-intro>:last-child{margin-bottom:0!important}
.tpa-shop-category-intro p{margin:0 0 16px}
.tpa-shop-category-intro img{
  display:block;
  width:auto;
  max-width:100%;
  height:auto;
  margin:18px auto 20px;
  border-radius:15px;
}
.tpa-shop-category-intro iframe,
.tpa-shop-category-intro .tpa-category-youtube iframe{
  display:block;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  aspect-ratio:16/9;
  margin:0;
  border:0;
  border-radius:16px;
  background:#111;
  box-shadow:0 12px 32px rgba(20,17,12,.09);
}
.tpa-shop-category-intro .tpa-category-youtube{
  width:min(100%,900px);
  margin:20px auto 4px;
}

/* The editorial block should feel like part of the page, not a second cream panel. */
.tpa-category-content-shell{
  background:#fff;
  border-color:#e8e1d6;
  box-shadow:0 12px 34px rgba(34,28,18,.045),0 2px 7px rgba(34,28,18,.025);
}
.tpa-category-content-shell:not(.is-expanded):not(.is-static) .tpa-category-content-viewport::after{
  background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.9) 62%,#fff 100%);
}
.tpa-category-content-body .tpa-category-youtube{
  width:min(100%,900px);
  margin:20px auto 24px;
}
.tpa-category-content-body .tpa-category-youtube iframe{
  margin:0;
}

@media(max-width:780px){
  .tpa-shop-category-intro{font-size:13.5px;line-height:1.7}
  .tpa-shop-category-intro .tpa-category-youtube{margin-top:16px}
  .tpa-shop-category-intro iframe,
  .tpa-shop-category-intro .tpa-category-youtube iframe{border-radius:12px}
}

/* =========================================================
 * Theme 0.2.34 — Category editorial block follows catalog column
 * The lower editorial content now shares the exact product-column width.
 * Desktop category/vehicle filters remain isolated in the right rail.
 * ======================================================= */
.tpa-shop-results>.tpa-category-content-shell{
  width:100%;
  max-width:none;
  margin:28px 0 0;
}
@media(max-width:780px){
  .tpa-shop-results>.tpa-category-content-shell{margin-top:22px}
}

/* =========================================================
 * Theme 0.2.35 — Product-first category archives
 * Product category archives no longer render editorial copy above the catalog.
 * The complete category description stays below the product grid in the left
 * catalog column; the category/vehicle filter rail remains on the right.
 * ======================================================= */
.tax-product_cat .tpa-shop-head{
  margin-bottom:14px;
}
.tax-product_cat .tpa-shop-head h1{
  margin:0;
}

/* Theme 0.2.36 — archive sidebar also carries new products/posts. */
.tpa-shop-sidebar{min-width:0;display:grid;gap:14px;align-self:start}
.tpa-shop-sidebar .tpa-shop-filter{position:static;top:auto}
@media(min-width:901px){
  .tpa-shop-sidebar{grid-column:2;grid-row:1}
  .tpa-shop-sidebar .tpa-shop-filter{grid-column:auto;grid-row:auto}
}
@media(max-width:900px){.tpa-shop-sidebar{display:none}}

/* =========================================================
 * Theme 0.3.4 — Real vehicle-brand logos in directory,
 * brand archives and WooCommerce vehicle filters.
 * ======================================================= */
.tpa-brand-directory-top.no-logo{grid-template-columns:minmax(0,1fr) 22px}
.tpa-brand-directory-logo img{filter:none!important;mix-blend-mode:normal!important}
.tpa-filter-term-link.has-brand-logo{grid-template-columns:38px minmax(0,1fr) auto;gap:9px}
.tpa-filter-brand-logo{box-sizing:border-box;width:38px;height:30px;padding:3px 4px;display:grid;place-items:center;overflow:hidden;border:1px solid #e5e7eb;border-radius:7px;background:#fff}
.tpa-filter-brand-logo-img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;filter:none!important;mix-blend-mode:normal!important}
.tpa-filter-term-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tpa-shop-title-row{display:flex;align-items:center;gap:16px;min-width:0}
.tpa-shop-brand-logo{box-sizing:border-box;flex:0 0 auto;width:88px;height:62px;padding:7px 9px;display:grid;place-items:center;overflow:hidden;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.tpa-shop-brand-logo-img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;filter:none!important;mix-blend-mode:normal!important}
@media(max-width:700px){
  .tpa-shop-title-row{gap:11px}
  .tpa-shop-brand-logo{width:68px;height:50px;padding:6px 7px;border-radius:10px}
  .tpa-filter-term-link.has-brand-logo{grid-template-columns:36px minmax(0,1fr) auto}
  .tpa-filter-brand-logo{width:36px;height:28px}
}

/* =========================================================
 * Theme 0.3.5 — Contextual vehicle archive filters
 * A make archive shows product categories + only that make's models.
 * ======================================================= */
.tpa-vehicle-context{
  display:grid;
  gap:12px;
  margin:-2px 0 20px;
  padding:14px 16px;
  border:1px solid #ebe3d7;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 28px rgba(35,29,19,.045);
}
.tpa-vehicle-context-row{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  align-items:start;
  gap:12px;
}
.tpa-vehicle-context-row+.tpa-vehicle-context-row{
  padding-top:12px;
  border-top:1px solid #eee7dc;
}
.tpa-vehicle-context-label{
  padding:7px 0;
  color:#26221b;
  font-size:13px;
  font-weight:700;
  line-height:1.25;
}
.tpa-vehicle-context-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}
.tpa-vehicle-context-chip{
  min-height:34px;
  padding:7px 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e4e7eb;
  border-radius:9px;
  background:#f7f8fa;
  color:#272b30;
  font-size:12.5px;
  font-weight:700;
  line-height:1.15;
  text-decoration:none;
  transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.tpa-vehicle-context-chip:hover,
.tpa-vehicle-context-chip:focus-visible{
  border-color:#d7a337;
  background:#fff9ec;
  color:#7b5205;
  outline:none;
}
.tpa-vehicle-context-chip.is-active{
  border-color:#eb101b;
  background:#eb101b;
  color:#fff;
  box-shadow:0 5px 14px rgba(235,16,27,.16);
}
.tax-tpa_vehicle_brand .tpa-shop-filter-group--brands .tpa-filter-brand-scroll{max-height:none}
@media(max-width:760px){
  .tpa-vehicle-context{margin-bottom:14px;padding:12px;border-radius:14px}
  .tpa-vehicle-context-row{grid-template-columns:1fr;gap:7px}
  .tpa-vehicle-context-label{padding:0;font-size:12px}
  .tpa-vehicle-context-chips{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:4px;scrollbar-width:thin}
  .tpa-vehicle-context-chip{flex:0 0 auto;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.tpa-vehicle-context-chip{transition:none}}


/* =========================================================
 * Theme 0.3.6 — Vehicle archive cleanup
 * Categories stay in the filter; model chips sit directly under the make title.
 * Third-party horizontal make/category strips are bypassed on vehicle archives.
 * ======================================================= */
.tpa-vehicle-models{
  margin:-2px 0 18px;
  padding:14px 16px 15px;
  border:1px solid #ebe3d7;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 28px rgba(35,29,19,.04);
}
.tpa-vehicle-models-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.tpa-vehicle-models-head strong{
  color:#22201c;
  font-size:14px;
  font-weight:700;
  letter-spacing:-.01em;
}
.tpa-vehicle-models-head span{
  color:#8a8174;
  font-size:11.5px;
  font-weight:700;
}
.tpa-vehicle-models-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.tpa-vehicle-model-chip{
  min-height:34px;
  padding:7px 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e3e6ea;
  border-radius:9px;
  background:#f7f8fa;
  color:#272b30;
  font-size:12.5px;
  font-weight:700;
  line-height:1.15;
  text-decoration:none;
  transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.tpa-vehicle-model-chip:hover,
.tpa-vehicle-model-chip:focus-visible{
  border-color:#d7a337;
  background:#fff9ec;
  color:#7b5205;
  outline:none;
}
.tpa-vehicle-model-chip.is-active{
  border-color:#eb101b;
  background:#eb101b;
  color:#fff;
  box-shadow:0 5px 14px rgba(235,16,27,.16);
}
.tpa-vehicle-shop-toolbar{
  min-height:50px;
  margin:0 0 14px;
  padding:4px 0 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid #ece7df;
}
.tpa-vehicle-shop-toolbar .woocommerce-result-count,
.tpa-vehicle-shop-toolbar .woocommerce-ordering{margin:0!important;float:none!important}
.tax-tpa_vehicle_brand .tpa-vehicle-context{display:none!important}
@media(max-width:760px){
  .tpa-vehicle-models{margin-bottom:14px;padding:12px;border-radius:14px}
  .tpa-vehicle-models-head{margin-bottom:8px}
  .tpa-vehicle-models-head span{display:none}
  .tpa-vehicle-models-chips{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:4px;scrollbar-width:thin}
  .tpa-vehicle-model-chip{flex:0 0 auto;white-space:nowrap}
  .tpa-vehicle-shop-toolbar{align-items:flex-start;flex-direction:column;gap:8px}
  .tpa-vehicle-shop-toolbar .woocommerce-ordering{width:100%}
  .tpa-vehicle-shop-toolbar .woocommerce-ordering select{width:100%}
}
@media(prefers-reduced-motion:reduce){.tpa-vehicle-model-chip{transition:none}}

/* =========================================================
 * Theme 0.3.7 — Square brand-logo viewports + combined filter
 * All make logos use a square viewport; original artwork remains untouched.
 * On make/model archives, vehicle models and product categories live together
 * in the existing sidebar/mobile filter instead of a separate model strip.
 * ======================================================= */
.tpa-brand-directory-top{grid-template-columns:64px minmax(0,1fr) 22px}
.tpa-brand-directory-logo{width:64px;height:64px;padding:7px}
.tpa-filter-term-link.has-brand-logo{grid-template-columns:38px minmax(0,1fr) auto}
.tpa-filter-brand-logo{width:38px;height:38px;padding:4px}
.tpa-shop-brand-logo{width:76px;height:76px;padding:8px;border-radius:12px}
.tpa-shop-filter-group--models .tpa-filter-model-list{display:grid;gap:3px}
.tpa-shop-filter-group--models .tpa-filter-child-link{padding-left:11px}
.tpa-shop-filter-group--models+.tpa-shop-filter-group--categories{padding-top:16px;border-top:1px solid #ece6dc}
.tax-tpa_vehicle_brand .tpa-vehicle-models{display:none!important}
@media(max-width:700px){
  .tpa-brand-directory-top{grid-template-columns:56px minmax(0,1fr) 18px}
  .tpa-brand-directory-logo{width:56px;height:56px;padding:6px}
  .tpa-shop-brand-logo{width:60px;height:60px;padding:6px;border-radius:10px}
  .tpa-filter-term-link.has-brand-logo{grid-template-columns:36px minmax(0,1fr) auto}
  .tpa-filter-brand-logo{width:36px;height:36px;padding:4px}
}

/* =========================================================
 * Theme 0.3.8 — Inline contextual vehicle filters
 * Make/model archives use one shared page background. Product-category chips
 * and model chips sit directly below the filter toolbar, with no section labels
 * or duplicate right-rail filter cards. Only facets that actually have products
 * in the current context are rendered by PHP.
 * ======================================================= */
.tpa-shop-layout.is-vehicle-archive{
  grid-template-columns:minmax(0,1fr);
  gap:0;
}
.tpa-shop-layout.is-vehicle-archive .tpa-shop-results{grid-column:1;min-width:0}
.tpa-shop-layout.is-vehicle-archive .tpa-shop-sidebar{display:none!important}

.tpa-vehicle-shop-toolbar{
  min-height:46px;
  margin:0 0 10px;
  padding:0;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  border:0;
}
.tpa-vehicle-filter-toggle{
  min-height:38px;
  padding:7px 12px;
  border:1px solid #1683ff;
  border-radius:7px;
  background:#fff;
  color:#1678dc;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font:inherit;
  font-size:13px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:background-color .16s ease,color .16s ease,border-color .16s ease;
}
.tpa-vehicle-filter-toggle svg{width:17px;height:17px;flex:0 0 auto}
.tpa-vehicle-filter-toggle:hover,
.tpa-vehicle-filter-toggle:focus-visible{background:#f3f8ff;outline:none}
.tpa-vehicle-filter-toggle[aria-expanded="false"]{background:#f7f8fa;color:#34383d;border-color:#dfe3e8}
.tpa-vehicle-shop-toolbar-count{min-width:0}
.tpa-vehicle-shop-toolbar-count .woocommerce-result-count{margin:0!important;float:none!important}
.tpa-vehicle-shop-toolbar-order{justify-self:end}
.tpa-vehicle-shop-toolbar-order .woocommerce-ordering{margin:0!important;float:none!important}

.tpa-vehicle-inline-filters{
  display:grid;
  gap:9px;
  margin:0 0 18px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.tpa-vehicle-inline-filters[hidden]{display:none!important}
.tpa-vehicle-filter-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
.tpa-vehicle-filter-chip{
  min-height:34px;
  padding:7px 12px;
  border:1px solid #e1e5ea;
  border-radius:8px;
  background:#f5f6f8;
  color:#25292e;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12.5px;
  font-weight:700;
  line-height:1.15;
  text-decoration:none;
  white-space:nowrap;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.tpa-vehicle-filter-chip:hover,
.tpa-vehicle-filter-chip:focus-visible{
  border-color:#d8dde3;
  background:#fff;
  color:#111418;
  outline:none;
}
.tpa-vehicle-filter-chip.is-active{
  border-color:#ef1722;
  background:#ef1722;
  color:#fff;
  box-shadow:0 4px 12px rgba(239,23,34,.14);
}

@media(max-width:760px){
  .tpa-vehicle-shop-toolbar{
    grid-template-columns:auto minmax(0,1fr);
    gap:8px 10px;
    align-items:center;
  }
  .tpa-vehicle-shop-toolbar-order{
    grid-column:1/-1;
    width:100%;
    justify-self:stretch;
  }
  .tpa-vehicle-shop-toolbar-order .woocommerce-ordering,
  .tpa-vehicle-shop-toolbar-order .woocommerce-ordering select{width:100%}
  .tpa-vehicle-inline-filters{gap:7px;margin-bottom:14px}
  .tpa-vehicle-filter-row{
    flex-wrap:nowrap;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    padding-bottom:3px;
    scrollbar-width:thin;
  }
  .tpa-vehicle-filter-chip{flex:0 0 auto;min-height:33px;padding:7px 11px}
}
@media(prefers-reduced-motion:reduce){
  .tpa-vehicle-filter-toggle,.tpa-vehicle-filter-chip{transition:none}
}


/* =========================================================
 * Theme 0.3.9 — Stable compact 4-column filtered product grid
 * Filtered Shop/category results must never fall back to a one-column Woo loop.
 * Desktop keeps four equal cards; tablet/mobile step down responsively.
 * ======================================================= */
@media (min-width:1180px){
  .woocommerce .tpa-shop-results ul.products,
  .woocommerce-page .tpa-shop-results ul.products{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:18px!important;
    align-items:stretch;
  }
}
@media (min-width:901px) and (max-width:1179px){
  .woocommerce .tpa-shop-results ul.products,
  .woocommerce-page .tpa-shop-results ul.products{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:16px!important;
  }
}
.woocommerce .tpa-shop-results ul.products>li.product,
.woocommerce-page .tpa-shop-results ul.products>li.product{
  box-sizing:border-box!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:none!important;
}
.woocommerce .tpa-shop-results ul.products>li.product .tpa-product-card,
.woocommerce-page .tpa-shop-results ul.products>li.product .tpa-product-card{
  width:100%;
  min-width:0;
  height:100%;
}
.woocommerce .tpa-shop-results .tpa-product-media{
  width:100%;
  aspect-ratio:1/1;
}
.woocommerce .tpa-shop-results .tpa-product-body{
  padding:14px 14px 16px;
}
.woocommerce .tpa-shop-results .tpa-card-title{
  font-size:16px;
  line-height:1.35;
  -webkit-line-clamp:3;
}
.woocommerce .tpa-shop-results .tpa-product-price{
  font-size:18px;
}
@media (max-width:900px){
  .woocommerce .tpa-shop-results ul.products,
  .woocommerce-page .tpa-shop-results ul.products{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px!important;
  }
}
@media (max-width:520px){
  .woocommerce .tpa-shop-results ul.products,
  .woocommerce-page .tpa-shop-results ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .woocommerce .tpa-shop-results .tpa-product-body{padding:11px 10px 13px}
  .woocommerce .tpa-shop-results .tpa-card-title{font-size:14px}
  .woocommerce .tpa-shop-results .tpa-product-price{font-size:16px}
}
@media (max-width:350px){
  .woocommerce .tpa-shop-results ul.products,
  .woocommerce-page .tpa-shop-results ul.products{
    grid-template-columns:1fr!important;
  }
}


/* =========================================================
 * Theme 0.3.10 — Filter-count independent 4 / 3 / 2 grid
 * One, two or three active filters must never alter card columns.
 * Desktop >1024: 4 | Tablet 768-1024: 3 | Mobile <768: 2
 * ======================================================= */
.woocommerce .tpa-shop-results ul.products,
.woocommerce-page .tpa-shop-results ul.products,
.woocommerce .tpa-shop-results ul.products.columns-1,
.woocommerce .tpa-shop-results ul.products.columns-2,
.woocommerce .tpa-shop-results ul.products.columns-3,
.woocommerce .tpa-shop-results ul.products.columns-4,
.woocommerce-page .tpa-shop-results ul.products.columns-1,
.woocommerce-page .tpa-shop-results ul.products.columns-2,
.woocommerce-page .tpa-shop-results ul.products.columns-3,
.woocommerce-page .tpa-shop-results ul.products.columns-4{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
}
.woocommerce .tpa-shop-results ul.products>li.product,
.woocommerce-page .tpa-shop-results ul.products>li.product,
.woocommerce .tpa-shop-results ul.products[class*="columns-"]>li.product,
.woocommerce-page .tpa-shop-results ul.products[class*="columns-"]>li.product{
  box-sizing:border-box!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:none!important;
}
@media (min-width:768px) and (max-width:1024px){
  .woocommerce .tpa-shop-results ul.products,
  .woocommerce-page .tpa-shop-results ul.products,
  .woocommerce .tpa-shop-results ul.products[class*="columns-"],
  .woocommerce-page .tpa-shop-results ul.products[class*="columns-"]{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
  }
}
@media (max-width:767px){
  .woocommerce .tpa-shop-results ul.products,
  .woocommerce-page .tpa-shop-results ul.products,
  .woocommerce .tpa-shop-results ul.products[class*="columns-"],
  .woocommerce-page .tpa-shop-results ul.products[class*="columns-"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .woocommerce .tpa-shop-results .tpa-product-body,
  .woocommerce-page .tpa-shop-results .tpa-product-body{padding:10px 9px 12px}
  .woocommerce .tpa-shop-results .tpa-card-title,
  .woocommerce-page .tpa-shop-results .tpa-card-title{font-size:14px;line-height:1.32}
  .woocommerce .tpa-shop-results .tpa-product-price,
  .woocommerce-page .tpa-shop-results .tpa-product-price{font-size:16px}
}
@media (max-width:380px){
  .woocommerce .tpa-shop-results ul.products,
  .woocommerce-page .tpa-shop-results ul.products,
  .woocommerce .tpa-shop-results ul.products[class*="columns-"],
  .woocommerce-page .tpa-shop-results ul.products[class*="columns-"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .woocommerce .tpa-shop-results .tpa-product-body,
  .woocommerce-page .tpa-shop-results .tpa-product-body{padding:9px 8px 11px}
  .woocommerce .tpa-shop-results .tpa-card-title,
  .woocommerce-page .tpa-shop-results .tpa-card-title{font-size:13px}
  .woocommerce .tpa-shop-results .tpa-product-price,
  .woocommerce-page .tpa-shop-results .tpa-product-price{font-size:15px}
}

/* =========================================================
 * Theme 0.3.11 — Unbreakable 4 / 3 / 2 product grid + 16:9 media
 * The grid no longer depends on WooCommerce body classes. This
 * also fixes filtered/AJAX responses where those wrapper classes
 * are absent and WooCommerce would otherwise stretch one card
 * across the full results column.
 * Desktop >=1025: 4 | Tablet 768-1024: 3 | Mobile <=767: 2
 * ======================================================= */
.tpa-shop-results ul.products,
.tpa-shop-results ul.products[class*="columns-"]{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:none!important;
  margin:18px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
.tpa-shop-results ul.products::before,
.tpa-shop-results ul.products::after{
  content:none!important;
  display:none!important;
}
.tpa-shop-results ul.products>li,
.tpa-shop-results ul.products>li.product,
.tpa-shop-results ul.products[class*="columns-"]>li,
.tpa-shop-results ul.products[class*="columns-"]>li.product{
  box-sizing:border-box!important;
  display:block!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  clear:none!important;
  list-style:none!important;
}
.tpa-shop-results ul.products>li::marker{content:""!important}

.tpa-shop-results .tpa-product-card{
  box-sizing:border-box;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:100%;
}

/* All catalogue card images use the same 16:9 viewport.
 * Any source ratio fills the viewport with object-fit:cover, so
 * portraits/squares do not leave blank bars. */
.tpa-shop-results .tpa-product-media{
  display:block;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  background:#f3f1eb;
}
.tpa-shop-results .tpa-product-media img,
.tpa-shop-results .tpa-product-media picture,
.tpa-shop-results .tpa-product-media picture img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
}
.tpa-shop-results .tpa-product-media img,
.tpa-shop-results .tpa-product-media picture img{
  object-fit:cover!important;
  object-position:center!important;
}

/* Keep cards compact now that the media is wider. */
.tpa-shop-results .tpa-product-body{padding:13px 13px 15px}
.tpa-shop-results .tpa-card-title{font-size:15px;line-height:1.34}
.tpa-shop-results .tpa-product-price{font-size:17px}

@media (min-width:768px) and (max-width:1024px){
  .tpa-shop-results ul.products,
  .tpa-shop-results ul.products[class*="columns-"]{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:14px!important;
  }
}
@media (max-width:767px){
  .tpa-shop-results ul.products,
  .tpa-shop-results ul.products[class*="columns-"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .tpa-shop-results .tpa-product-body{padding:9px 8px 11px}
  .tpa-shop-results .tpa-card-title{font-size:13px;line-height:1.3}
  .tpa-shop-results .tpa-product-price{font-size:15px}
}


/* =========================================================
 * Theme 0.3.14 — native DOCHOIXEHOI catalogue grid
 * The archive loop no longer depends on WooCommerce ul.products/columns-X.
 * Filter count therefore cannot change the number of visual columns.
 * Desktop 4 | Tablet 3 | Mobile 2.
 * ======================================================= */
.dxh-product-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  margin:18px 0 0!important;
  padding:0!important;
}
.dxh-product-grid-item{
  box-sizing:border-box!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
.dxh-product-grid-item>.tpa-product-card{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:100%!important;
  margin:0!important;
}
.dxh-product-grid .tpa-product-media{
  display:block!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  background:#f3f1eb!important;
}
.dxh-product-grid .tpa-product-media picture,
.dxh-product-grid .tpa-product-media img,
.dxh-product-grid .tpa-product-media picture img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
}
.dxh-product-grid .tpa-product-media img,
.dxh-product-grid .tpa-product-media picture img{
  object-fit:cover!important;
  object-position:center!important;
}
.dxh-product-grid .tpa-product-body{padding:13px 13px 15px}
.dxh-product-grid .tpa-card-title{font-size:15px;line-height:1.34}
.dxh-product-grid .tpa-product-price{font-size:17px}
@media (min-width:768px) and (max-width:1024px){
  .dxh-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
}
@media (max-width:767px){
  .dxh-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .dxh-product-grid .tpa-product-body{padding:9px 8px 11px}
  .dxh-product-grid .tpa-card-title{font-size:13px;line-height:1.3}
  .dxh-product-grid .tpa-product-price{font-size:15px}
}

/* =========================================================
 * Theme 0.3.16 — isolated /cua-hang/ catalogue
 * One source of truth for filter state + query + layout.
 * No WooCommerce ul.products and no third-party before-loop strip.
 * ======================================================= */
.dxh-shop-head{margin-bottom:12px}
.dxh-shop-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.dxh-filter-button,.dxh-active-filter{min-height:30px;padding:5px 10px;border:1px solid #0d6efd;border-radius:5px;background:#fff;color:#0d6efd;font-size:12px;font-weight:700;line-height:1.2}
.dxh-filter-button{cursor:default}.dxh-active-filter span{margin-left:5px}
.dxh-shop-chip-row{display:flex;flex-wrap:wrap;gap:7px;padding:8px 0;border-bottom:1px solid #e5e7eb}
.dxh-shop-chip{min-height:30px;padding:6px 10px;border:1px solid #d7dce2;border-radius:6px;background:#fff;color:#1f2937;display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1;text-decoration:none}
.dxh-shop-chip:hover,.dxh-shop-chip.is-active{border-color:#0d6efd;color:#0d6efd;background:#f8fbff}
.dxh-brand-chip-media{width:18px;height:18px;display:grid;place-items:center;overflow:hidden}.dxh-shop-brand-chip-logo{width:100%!important;height:100%!important;object-fit:contain!important}
.dxh-shop-sort-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0 13px;border-bottom:1px solid #eceff2;font-size:12px}.dxh-shop-sort-row strong{font-size:13px}.dxh-shop-sort-row a{color:#454b54}.dxh-shop-sort-row a+a:before{content:'·';margin-right:10px;color:#c5c8cc}.dxh-shop-sort-row a.is-active{color:#0d6efd;font-weight:700}
.dxh-shop-layout{grid-template-columns:minmax(0,1fr) 238px!important;gap:26px!important;align-items:start!important}.dxh-shop-results{min-width:0!important}.dxh-shop-result-bar{min-height:34px;display:flex;align-items:center;justify-content:space-between;color:#6b7280;font-size:12px}
.dxh-shop-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;align-items:stretch!important;width:100%!important;min-width:0!important;margin:8px 0 0!important;padding:0!important}.dxh-shop-grid-item{min-width:0!important;width:auto!important;margin:0!important;padding:0!important}.dxh-shop-grid-item>.tpa-product-card{width:100%!important;height:100%!important;margin:0!important;min-width:0!important;max-width:none!important}
.dxh-shop-grid .tpa-product-media{display:block!important;width:100%!important;aspect-ratio:16/9!important;overflow:hidden!important;background:#f3f4f6!important}.dxh-shop-grid .tpa-product-media img,.dxh-shop-grid .tpa-product-media picture,.dxh-shop-grid .tpa-product-media picture img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}.dxh-shop-grid .tpa-product-media img,.dxh-shop-grid .tpa-product-media picture img{object-fit:cover!important;object-position:center!important}
.dxh-shop-pagination{margin-top:24px}.dxh-shop-pagination ul{display:flex;gap:7px;flex-wrap:wrap;list-style:none;margin:0;padding:0}.dxh-shop-pagination a,.dxh-shop-pagination span{min-width:36px;height:36px;padding:0 10px;display:grid;place-items:center;border:1px solid #e2e5e9;border-radius:7px;background:#fff;color:#27272a}.dxh-shop-pagination .current{border-color:#ef233c;background:#ef233c;color:#fff}
.dxh-shop-empty{padding:34px 22px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;text-align:center}.dxh-shop-empty p{margin:6px 0 0;color:#6b7280}
@media (max-width:1100px){.dxh-shop-layout{grid-template-columns:minmax(0,1fr) 210px!important;gap:18px!important}.dxh-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}}
@media (max-width:820px){.dxh-shop-layout{grid-template-columns:1fr!important}.dxh-shop-sidebar{display:none!important}.dxh-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}

/* =========================================================
 * Theme 0.3.18 — /cua-hang/ filter UI cleanup
 * - no duplicated 32-brand strip above products
 * - model chips only appear after a make is selected
 * - categories stay visible in sidebar
 * - make selector is compact/collapsible in sidebar
 * - mobile gets a single collapsible filter panel
 * Product query/grid markup is untouched from 0.3.17.
 * ======================================================= */
.dxh-shop-model-row{margin-top:2px}

.dxh-brand-filter{border-top:1px solid #ece6dc;padding-top:12px}
.dxh-brand-filter>summary{min-height:42px;padding:8px 10px;border-radius:9px;background:#f8f7f4;display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer;font-size:14px;font-weight:700;color:#20242b}
.dxh-brand-filter>summary::-webkit-details-marker{display:none}
.dxh-brand-filter>summary:hover,.dxh-brand-filter[open]>summary{background:#f3eee4;color:#75500a}
.dxh-brand-filter-arrow{font-size:16px;line-height:1;transition:transform .18s ease}
.dxh-brand-filter[open] .dxh-brand-filter-arrow{transform:rotate(180deg)}
.dxh-brand-filter-body{padding-top:8px;display:grid;gap:5px}
.dxh-brand-filter-body>.tpa-filter-all{min-height:38px;padding:7px 9px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:700}
.dxh-brand-filter-body>.tpa-filter-all:hover,.dxh-brand-filter-body>.tpa-filter-all.is-active{background:var(--tpa-surface-soft);color:#6f4b08}
.dxh-brand-filter-list{max-height:330px;overflow:auto;padding-right:2px;overscroll-behavior:contain}

.dxh-shop-mobile-filter{display:none;margin:8px 0 2px;border:1px solid #e3e7ec;border-radius:10px;background:#fff;overflow:hidden}
.dxh-shop-mobile-filter>summary{min-height:42px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;font-size:13px;font-weight:700;cursor:pointer}
.dxh-shop-mobile-filter>summary::-webkit-details-marker{display:none}
.dxh-shop-mobile-filter[open]>summary{border-bottom:1px solid #e8ebef}
.dxh-shop-mobile-filter-body{padding:10px;display:grid;gap:12px}
.dxh-mobile-filter-group{display:grid;gap:7px}
.dxh-mobile-filter-group>strong{font-size:12px}
.dxh-mobile-filter-list{display:flex;flex-wrap:wrap;gap:6px}
.dxh-mobile-filter-list a{min-height:30px;padding:6px 9px;border:1px solid #d7dce2;border-radius:6px;background:#fff;color:#20242b;font-size:12px;line-height:1.1;text-decoration:none}
.dxh-mobile-filter-list a.is-active{border-color:#0d6efd;color:#0d6efd;background:#f8fbff;font-weight:700}

@media (max-width:820px){
  .dxh-shop-mobile-filter{display:block}
  .dxh-shop-model-row{overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px;scrollbar-width:thin}
  .dxh-shop-model-row .dxh-shop-chip{flex:0 0 auto}
}

/* =========================================================
 * Theme 0.3.19 — working /cua-hang/ filter trigger
 * The top "Lọc" control is now a real native details panel.
 * It changes only query parameters; product grid markup stays untouched.
 * ======================================================= */
.dxh-filter-control{position:relative;display:inline-block}
.dxh-filter-control>summary{list-style:none}
.dxh-filter-control>summary::-webkit-details-marker{display:none}
.dxh-filter-control[open]>.dxh-filter-button{background:#0d6efd;color:#fff;border-color:#0d6efd}
.dxh-filter-panel{position:absolute;z-index:60;top:calc(100% + 8px);left:0;width:min(860px,calc(100vw - 48px));max-height:min(70vh,640px);overflow:auto;padding:16px;border:1px solid #dfe4ea;border-radius:12px;background:#fff;box-shadow:0 16px 42px rgba(15,23,42,.16);display:grid;gap:14px}
.dxh-filter-panel-group{display:grid;gap:8px}
.dxh-filter-panel-group+ .dxh-filter-panel-group{padding-top:12px;border-top:1px solid #edf0f3}
.dxh-filter-panel-group>strong{font-size:13px;color:#20242b}
.dxh-filter-panel-list{display:flex;flex-wrap:wrap;gap:7px}
.dxh-filter-panel-list a{min-height:31px;padding:6px 10px;border:1px solid #d8dde4;border-radius:6px;background:#fff;color:#20242b;font-size:12px;line-height:1.2;text-decoration:none;display:inline-flex;align-items:center}
.dxh-filter-panel-list a:hover,.dxh-filter-panel-list a.is-active{border-color:#0d6efd;background:#f7fbff;color:#0d6efd;font-weight:700}
.dxh-filter-brand-list{max-height:190px;overflow:auto;padding-right:2px}
.dxh-filter-button{cursor:pointer!important;display:inline-flex;align-items:center;justify-content:center}
@media (max-width:820px){
  .dxh-filter-control{position:static}
  .dxh-filter-panel{position:fixed;z-index:9999;left:12px;right:12px;top:84px;width:auto;max-height:calc(100vh - 110px);border-radius:12px}
}
