.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:800}.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:650}
.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:800;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:58px minmax(0,1fr) 22px;align-items:center;gap:13px;color:#171717}.tpa-brand-directory-logo{width:58px;height:58px;border:1px solid #eee4cf;border-radius:14px;background:#fbf8f0;display:grid;place-items:center;overflow:hidden;color:#9c6a08}.tpa-brand-directory-logo img{display:block;max-width:48px;max-height:44px;width:auto;height:auto;object-fit:contain}.tpa-brand-directory-logo .tpa-icon{width:25px;height:25px}.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:50px minmax(0,1fr) 18px;gap:11px}.tpa-brand-directory-logo{width:50px;height:50px;border-radius:12px}.tpa-brand-directory-logo img{max-width:41px;max-height:37px}.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:800}
.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:760;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:750}
.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:680;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:820;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:850;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:850;
  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:850;
  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}}
