/* XGV category presentation — 2026-10-30. All rules belong to category archives. */
body.category,
body.tax-product_cat {
  --xgv-cat-ink: #273a46;
  --xgv-cat-blue: #205f85;
  --xgv-cat-line: #e2e8eb;
  --xgv-cat-muted: #62717a;
}
body.category #main,
body.archive.tax-product_cat #main { background: #f7f9fa; }

/* Article categories: a readable editorial column, with an independent article list. */
body.category #content.blog-archive { padding: 42px 24px 64px; background: transparent; }
body.category #content .archive-page-header { max-width: 1100px; margin: 0 auto 40px; }
body.category #content .archive-page-header > .row { max-width: none; margin: 0; }
body.category #content .archive-page-header > .row > .col { padding: 0; text-align: left; }
body.category #content .archive-page-header .page-title {
  margin: 0 auto 30px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--xgv-cat-line);
  color: var(--xgv-cat-blue);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-align: center;
  text-wrap: balance;
  text-transform: none;
}
body.category #content .taxonomy-description {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 44px;
  border: 1px solid var(--xgv-cat-line);
  border-radius: 16px;
  background: #fff;
  color: var(--xgv-cat-ink);
  font-size: 17px;
  line-height: 1.85;
  text-align: left;
  overflow-wrap: break-word;
}
body.category #content .taxonomy-description p { margin: 0 0 1.2em; text-align: left; }
body.category #content .taxonomy-description p:empty { display: none; }
body.category #content .taxonomy-description :is(h1,h2,h3,h4) {
  color: var(--xgv-cat-blue);
  text-align: left;
  text-transform: none;
  line-height: 1.4;
  letter-spacing: -.015em;
}
body.category #content .taxonomy-description :is(h1,h2) { margin: 1.7em 0 .75em; font-size: 28px; }
body.category #content .taxonomy-description h3 { margin: 1.4em 0 .6em; font-size: 23px; }
body.category #content .taxonomy-description h4 { margin: 1.2em 0 .6em; font-size: 20px; }
/* Older descriptions use a bold line followed by a break instead of heading tags. */
body.category #content .taxonomy-description > :is(b,strong),
body.category #content .taxonomy-description > p > :is(b,strong):first-child:has(+ br) {
  display: block;
  margin: 28px 0 12px;
  color: var(--xgv-cat-blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
}
body.category #content .taxonomy-description > p:first-child > :is(b,strong):first-child { margin-top: 0; }
body.category #content .taxonomy-description :is(b,strong) + br { display: none; }
body.category #content .taxonomy-description ul,
body.category #content .taxonomy-description ol { margin: 0 0 1.4em 1.3em; }
body.category #content .taxonomy-description li { margin: .5em 0; }
body.category #content .taxonomy-description a:not(.gallery a) { text-underline-offset: 3px; }
body.category #content .taxonomy-description img { max-width: 100%; height: auto; border-radius: 10px; }
body.category #content .taxonomy-description .wp-caption {
  max-width: 100%; margin: 26px auto; padding: 0; background: none; border: 0;
}
body.category #content .taxonomy-description .wp-caption img { display: block; margin: 0 auto; }
body.category #content .taxonomy-description .wp-caption-text,
body.category #content .taxonomy-description > em,
body.category #content .taxonomy-description > p > em:only-child {
  display: block; margin: 10px 0 26px; color: var(--xgv-cat-muted); font-size: 14px; line-height: 1.6; text-align: center;
}
body.category #content .taxonomy-description .gallery {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 26px 0 10px; width: 100%;
}
body.category #content .taxonomy-description .gallery-columns-1 { grid-template-columns: 1fr; }
body.category #content .taxonomy-description :is(.gallery-columns-3,.gallery-columns-6,.gallery-columns-9) { grid-template-columns: repeat(3,minmax(0,1fr)); }
body.category #content .taxonomy-description .gallery::after { display: none; }
body.category #content .taxonomy-description .gallery-item { display: block; width: auto; max-width: none; margin: 0; padding: 0; }
body.category #content .taxonomy-description .gallery-icon { border: 1px solid var(--xgv-cat-line); border-radius: 10px; overflow: hidden; background: #fff; }
body.category #content .taxonomy-description .gallery-icon a { display: block; }
body.category #content .taxonomy-description .gallery-icon img { display: block; width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; }
body.category #content .taxonomy-description .gallery + br { display: none; }
body.category #content .taxonomy-description table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
body.category #content .taxonomy-description :is(th,td) { min-width: 130px; padding: 12px 14px; border: 1px solid var(--xgv-cat-line); font-size: 14px; line-height: 1.65; text-align: left; }
body.category #content .taxonomy-description th { background: #eef4f7; color: var(--xgv-cat-blue); }

body.category #content > .row { max-width: 1100px; margin: 0 auto; gap: 0; align-items: flex-start; }
body.category #content > .row > .large-9 { flex: 0 0 100%; max-width: 100%; min-width: 0; padding: 0; }
body.category #content > .row > .post-sidebar { display: none; flex: 0 0 264px; max-width: 264px; padding: 0; border: 0; }
body.category #content > .row > .post-sidebar::before { display: none; }
body.category #content #post-list { display: grid; grid-template-columns: 1fr; gap: 24px; }
body.category #content #post-list > article {
  margin: 0; padding: 0; min-width: 0; background: #fff; border: 1px solid var(--xgv-cat-line); border-radius: 14px; overflow: hidden;
}
body.category #content #post-list .article-inner { display: flex; flex-direction: column; height: 100%; padding: 0; }
body.category #content #post-list .entry-header { display: flex; flex-direction: column; }
body.category #content #post-list .entry-image { order: -1; margin: 0; border-bottom: 1px solid var(--xgv-cat-line); background: #fff; }
body.category #content #post-list .entry-image img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; }
body.category #content #post-list .has-post-thumbnail .article-inner { display: grid; grid-template-columns: 260px minmax(0,1fr); }
body.category #content #post-list .has-post-thumbnail .entry-header { display: contents; }
body.category #content #post-list .has-post-thumbnail .entry-image { grid-column: 1; grid-row: 1/3; align-self: start; padding: 20px 0 0 20px; border: 0; }
body.category #content #post-list .has-post-thumbnail .entry-image img { aspect-ratio: 1; border-radius: 8px; }
body.category #content #post-list .has-post-thumbnail .entry-header-text { grid-column: 2; grid-row: 1; }
body.category #content #post-list .has-post-thumbnail .entry-content { grid-column: 2; grid-row: 2; }
body.category #content #post-list .has-post-thumbnail footer.entry-meta { grid-column: 1/-1; }
body.category #content #post-list .entry-header-text { padding: 22px 22px 0; text-align: left; }
body.category #content #post-list .entry-category { margin-bottom: 10px; line-height: 1.5; }
body.category #content #post-list .entry-category a { color: var(--xgv-cat-blue); }
body.category #content #post-list .entry-title { margin: 0 0 12px; font-size: 24px; line-height: 1.45; text-align: left; text-wrap: balance; }
body.category #content #post-list .entry-title a { color: var(--xgv-cat-ink); }
body.category #content #post-list .entry-title a:hover { color: var(--xgv-cat-blue); }
body.category #content #post-list .entry-divider,
body.category #content #post-list .post-date { display: none; }
body.category #content #post-list .entry-meta { color: var(--xgv-cat-muted); font-size: 12px; line-height: 1.7; text-transform: none; }
body.category #content #post-list .entry-content { padding: 16px 22px 22px; margin: 0; flex: 1; }
body.category #content #post-list .entry-summary { display: flex; flex-direction: column; height: 100%; }
body.category #content #post-list .entry-summary p { margin-bottom: 18px; font-size: 16px; line-height: 1.8; text-align: left; }
body.category #content #post-list .entry-summary > .text-center { margin-top: auto; text-align: left; }
body.category #content #post-list .more-link { margin: 0; border-radius: 7px; border-color: #cedde6; color: var(--xgv-cat-blue); font-size: 12px; }
body.category #content #post-list .more-link:hover { background: var(--xgv-cat-blue); color: #fff; }
body.category #content #post-list footer.entry-meta { margin: 0; padding: 12px 22px; border-top: 1px solid var(--xgv-cat-line); font-size: 11px; }
body.category #content #post-list > :not(article) { grid-column: 1/-1; }
body.category #content .post-sidebar .widget { padding: 22px; margin: 0 0 24px; border: 1px solid var(--xgv-cat-line); border-radius: 14px; background: #fff; }
body.category #content .post-sidebar .widget-title { display: block; color: var(--xgv-cat-blue); font-size: 17px; letter-spacing: 0; line-height: 1.5; }
body.category #content .post-sidebar .is-divider { width: 36px; height: 3px; margin: 14px 0; background: #ec8126; }
body.category #content .post-sidebar li { padding: 13px 0; border-color: var(--xgv-cat-line); font-size: 13px; line-height: 1.65; }
body.category #content .post-sidebar a { color: var(--xgv-cat-ink); }
body.category #content .post-sidebar .post_comments { display: none; }
body.category #content .post-sidebar .badge { display: none; }

/* Product categories: compact navigation and clean, consistent catalogue cards. */
body.tax-product_cat #main .category-page-row { max-width: 1248px; margin: 0 auto; padding: 28px 24px 56px; }
body.tax-product_cat #main .shop-container::before { display: none; }
body.tax-product_cat #main .term-description {
  max-width: none; margin: 0 0 26px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--xgv-cat-line); border-radius: 0; background: none; box-shadow: none; overflow: visible; text-align: left;
  color: var(--xgv-cat-ink); font-size: 16px; line-height: 1.85;
}
body.tax-product_cat #main .term-description::before,
body.tax-product_cat #main .term-description::after { display: none; }
body.tax-product_cat #main .term-description p { margin: 0 0 14px; color: var(--xgv-cat-ink); font-size: 16px; font-weight: 400; line-height: 1.85; }
body.tax-product_cat #main .term-description p:only-child { margin: 0; color: var(--xgv-cat-blue); font-size: 22px; font-weight: 700; line-height: 1.55; }
body.tax-product_cat #main .custom-category-nav-container { padding: 0; margin: 0 0 28px; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
body.tax-product_cat #main ul.custom-category-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; align-items: stretch; }
body.tax-product_cat #main li.category-item { flex: 0 0 148px; width: 148px; max-width: 148px; margin: 0; padding: 0; }
body.tax-product_cat #main li.category-item a { flex-direction: column; height: 100%; min-height: 154px; padding: 14px 12px; gap: 10px; border: 1px solid var(--xgv-cat-line); border-radius: 12px; background: #fff; box-shadow: none; transform: none; }
body.tax-product_cat #main li.category-item.active a { border-color: #2f79a5; background: #eef6fa; box-shadow: inset 0 -3px #2f79a5; }
body.tax-product_cat #main li.category-item a:hover { border-color: #2f79a5; box-shadow: 0 4px 12px #1d465b10; transform: none; }
body.tax-product_cat #main .category-image-wrapper { flex: 0 0 64px; width: 64px; height: 64px; margin: 0; border: 1px solid var(--xgv-cat-line); border-radius: 8px; box-shadow: none; }
body.tax-product_cat #main .category-name { display: block; flex: 0 0 auto; overflow: visible; -webkit-line-clamp: unset; color: var(--xgv-cat-ink); font-size: 13px; font-weight: 600; line-height: 1.5; }
body.tax-product_cat #main .category-item.active .category-name { color: var(--xgv-cat-blue); }
body.tax-product_cat #main .active-indicator { top: 0; right: 0; background: #2f79a5; box-shadow: none; }
body.tax-product_cat #main .shop-container > .products.row { margin-left: -8px !important; margin-right: -8px !important; }
body.tax-product_cat #main .shop-container > .products.row > .product-small.col { padding: 8px !important; }
body.tax-product_cat #main .products .product-small .box { border: 1px solid var(--xgv-cat-line); border-radius: 12px; background: #fff; box-shadow: none; }
body.tax-product_cat #main .products .product-small .box:hover { transform: translateY(-2px); border-color: #9fbfce; box-shadow: 0 6px 18px #1d465b10; }
body.tax-product_cat #main .products .product-small .box-image { background: #fff; padding: 6px !important; }
body.tax-product_cat #main .products .product-small .box-image a { border-radius: 8px; background: #fff; }
body.tax-product_cat #main .products .box-text-products { padding: 14px 16px 18px; background: #fff; }
body.tax-product_cat #main .products .box-text-products::before { display: none; }
body.tax-product_cat #main .shop-container > .products.row .product-title a { -webkit-line-clamp: 3; min-height: 4.65em; font-size: 14px; font-weight: 600; line-height: 1.55; }
body.tax-product_cat #main .qtg-category-content { max-width: 920px; margin-left: auto; margin-right: auto; color: var(--xgv-cat-ink); line-height: 1.85; text-align: left; }
body.tax-product_cat #main .qtg-category-content :is(h2,h3) { color: var(--xgv-cat-blue); line-height: 1.45; }

/* Keep the five desktop navigation items on one row at common laptop widths. */
@media (min-width: 850px) and (max-width: 1350px) {
  body:is(.category,.tax-product_cat) #header .header-nav-main > li { margin-left: 4px; margin-right: 4px; }
  body:is(.category,.tax-product_cat) #header .header-nav-main > li > a { font-size: 14px !important; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 1000px) {
  body.category #content > .row > .post-sidebar { flex-basis: 230px; max-width: 230px; }
  body.category #content > .row { gap: 24px; }
  body.category #content #post-list { grid-template-columns: 1fr; }
  body.category #content #post-list .has-post-thumbnail .article-inner { grid-template-columns: 180px minmax(0,1fr); }
}
@media (max-width: 849px) {
  body.category #content.blog-archive { padding: 30px 20px 44px; }
  body.category #content .taxonomy-description { padding: 28px; }
  body.category #content > .row > .large-9,
  body.category #content > .row > .post-sidebar { flex: 0 0 100%; max-width: 100%; }
  body.category #content #post-list { grid-template-columns: 1fr; }
  body.category #content .post-sidebar { margin-top: 8px; }
}
@media (max-width: 549px) {
  body.category #content.blog-archive { padding: 26px 16px 36px; }
  body.category #content .archive-page-header { margin-bottom: 28px; }
  body.category #content .archive-page-header .page-title { margin-bottom: 22px; padding-bottom: 18px; font-size: 28px; }
  body.category #content .taxonomy-description { padding: 22px 18px; border-radius: 12px; font-size: 16px; line-height: 1.8; }
  body.category #content .taxonomy-description :is(h1,h2) { font-size: 23px; }
  body.category #content .taxonomy-description h3,
  body.category #content .taxonomy-description > :is(b,strong),
  body.category #content .taxonomy-description > p > :is(b,strong):first-child:has(+ br) { font-size: 20px; }
  body.category #content .taxonomy-description .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; }
  body.category #content .taxonomy-description .gallery-columns-1 { grid-template-columns: 1fr; }
  body.category #content #post-list { grid-template-columns: 1fr; gap: 20px; }
  body.category #content #post-list .has-post-thumbnail .article-inner { display: flex; }
  body.category #content #post-list .has-post-thumbnail .entry-header { display: flex; }
  body.category #content #post-list .has-post-thumbnail .entry-image { padding: 0; border-bottom: 1px solid var(--xgv-cat-line); }
  body.category #content #post-list .has-post-thumbnail .entry-image img { aspect-ratio: 4/3; border-radius: 0; }
  body.category #content #post-list .entry-header-text { padding: 20px 20px 0; }
  body.category #content #post-list .entry-content { padding: 14px 20px 20px; }
  body.category #content #post-list .entry-title { font-size: 21px; }
  body.tax-product_cat #main .category-page-row { padding: 24px 16px 36px; }
  body.tax-product_cat #main .term-description { padding-bottom: 20px; margin-bottom: 20px; }
  body.tax-product_cat #main .term-description p:only-child { font-size: 20px; }
  body.tax-product_cat #main .custom-category-nav-container { margin: 0 0 20px; }
  body.tax-product_cat #main ul.custom-category-list { gap: 10px; padding: 2px 0 12px; overflow-x: auto; scroll-padding-left: 0; scrollbar-width: thin; }
  body.tax-product_cat #main ul.custom-category-list::-webkit-scrollbar { display: block; height: 4px; }
  body.tax-product_cat #main ul.custom-category-list::-webkit-scrollbar-thumb { background: #b4c6d0; border-radius: 4px; }
  body.tax-product_cat #main li.category-item { flex: 0 0 128px; width: 128px; max-width: 128px; margin: 0; padding: 0; }
  body.tax-product_cat #main li.category-item a { min-height: 154px; padding: 12px 10px; }
  body.tax-product_cat #main .category-name { font-size: 12px; line-height: 1.55; }
  body.tax-product_cat #main .shop-container > .products.row { margin-left: -5px !important; margin-right: -5px !important; }
  body.tax-product_cat #main .shop-container > .products.row > .product-small.col { padding: 5px !important; }
  body.tax-product_cat #main .products .box-text-products { padding: 10px 10px 14px; }
  body.tax-product_cat #main .shop-container > .products.row .product-title a { font-size: 13px; }
}

/* Refined title hierarchy and wider sidebar-free archives — user request. */
body.category #content .taxonomy-description :is(h1,h2,h3,h4) { text-wrap: balance; }
body.category #content .taxonomy-description > :is(h1,h2):first-child,
body.category #content .taxonomy-description > p:first-child > :is(b,strong):first-child:has(+ br) {
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--xgv-cat-blue);
  font-size: clamp(24px, 2.25vw, 30px);
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
body.category #content .taxonomy-description :is(h2,h3,h4) :is(b,strong) { font-size: inherit; line-height: inherit; }
body.tax-product_cat #main .term-description p:only-child { text-align: center; text-wrap: balance; font-size: clamp(22px, 2.2vw, 28px); }
@media (max-width: 549px) {
  body.category #content .taxonomy-description > :is(h1,h2):first-child,
  body.category #content .taxonomy-description > p:first-child > :is(b,strong):first-child:has(+ br) { font-size: 23px; }
  body.category #content #post-list .entry-title { font-size: 21px; }
  body.category #content #post-list .entry-summary p { font-size: 15px; }
  body.category #content .taxonomy-description h4 { font-size: 18px; }
}

/* Use the editorial H1 in the description as the main category title. */
body.category #content .xgv-description-led .taxonomy-description h1 {
  margin: 0 0 26px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.35;
  text-align: center !important;
  text-wrap: balance;
}
body.category #content .xgv-description-led .taxonomy-description h1 :is(b,strong) { font-size: inherit; line-height: inherit; }
@media (max-width: 549px) {
  body.category #content .xgv-description-led .taxonomy-description h1 { font-size: 26px; margin-bottom: 22px; }
}

/* Product archive: one shared width for introduction, catalogue and details. */
body.tax-product_cat #main .category-page-row { max-width: 1148px; padding: 28px 24px 56px; }
body.tax-product_cat .shop-page-title .page-title-inner { max-width: 1148px; margin: auto; padding-left: 24px; padding-right: 24px; }
body.tax-product_cat .shop-page-title .woocommerce-breadcrumb { margin: 0; font-size: 15px; line-height: 1.6; }
body.tax-product_cat .shop-page-title .woocommerce-ordering select { min-height: 44px; border-radius: 8px; box-shadow: none; }
body.tax-product_cat #main .shop-container > :is(.qtg-category-content,.qtg-category-bottom-shell,.term-description,.custom-category-nav-container) { width: 100%; max-width: none; box-sizing: border-box; }
body.tax-product_cat #main .qtg-category-content { width: 100%; max-width: none; margin-left: 0; margin-right: 0; padding: 30px 34px; border: 1px solid var(--xgv-cat-line); border-radius: 14px; background: #fff; color: var(--xgv-cat-ink); font-size: 16px; line-height: 1.8; }
body.tax-product_cat #main .qtg-category-content-top { margin-bottom: 28px; }
body.tax-product_cat #main .qtg-category-content :is(p,li) { max-width: none; color: var(--xgv-cat-ink); font-size: 16px; line-height: 1.8; text-align: left !important; }
body.tax-product_cat #main .qtg-category-content p { margin: 0 0 16px; }
body.tax-product_cat #main .qtg-category-content > :last-child { margin-bottom: 0; }
body.tax-product_cat #main .qtg-category-content h1 { max-width: 960px; margin: 0 auto 22px !important; color: var(--xgv-cat-blue); font-size: clamp(27px,2.7vw,36px); line-height: 1.35; text-align: center !important; text-wrap: balance; }
body.tax-product_cat #main .qtg-category-content h1 :is(b,strong) { color: inherit; font-size: inherit; line-height: inherit; }
body.tax-product_cat #main .qtg-category-content h2 { margin: 30px 0 16px; color: var(--xgv-cat-blue); font-size: 27px; line-height: 1.45; text-wrap: balance; }
body.tax-product_cat #main .qtg-category-content h3 { margin: 24px 0 12px; color: var(--xgv-cat-blue); font-size: 22px; line-height: 1.45; text-wrap: balance; }
body.tax-product_cat #main .qtg-category-content :is(h2,h3) :is(b,strong) { color: inherit; font-size: inherit; line-height: inherit; }
body.tax-product_cat #main .qtg-category-content .wp-caption { max-width: 100%; margin: 24px auto; padding: 0; }
body.tax-product_cat #main .qtg-category-content .wp-caption img { width: 100%; height: auto; margin: 0; }
body.tax-product_cat #main .qtg-category-content .wp-caption-text { margin: 10px 0 0; color: var(--xgv-cat-muted); font-size: 14px; line-height: 1.6; text-align: center !important; }
body.tax-product_cat #main .qtg-category-content table { display: block; max-width: 100%; overflow-x: auto; margin: 22px 0; }
body.tax-product_cat #main .qtg-category-content :is(th,td) { min-width: 110px; padding: 12px; font-size: 14px; line-height: 1.65; }
body.tax-product_cat #main .shop-container > .products.row { width: 100%; max-width: none; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; margin: 0 !important; }
body.tax-product_cat #main .shop-container > .products.row > .product-small.col { padding: 0 !important; }
body.tax-product_cat #main .shop-container > .products.row > .product-small > .col-inner { border: 0; border-radius: 12px; background: none; box-shadow: none; }
body.tax-product_cat #main .products .product-small .box { border: 1px solid var(--xgv-cat-line); box-shadow: none; }
body.tax-product_cat #main .products .box-text-products { min-height: 0; padding: 14px 15px 18px; justify-content: flex-start; }
body.tax-product_cat #main .shop-container > .products.row .product-title { margin: 0; min-height: 0; }
body.tax-product_cat #main .shop-container > .products.row .product-title a { -webkit-line-clamp: 4; min-height: 6.2em; color: var(--xgv-cat-ink); font-size: 14px; line-height: 1.55; }
body.tax-product_cat #main .shop-container > .products.row .price-wrapper { min-height: 0; margin-top: 0; }
body.tax-product_cat #main .qtg-category-bottom-shell { width: 100%; max-width: none; margin: 32px 0 0; }
body.tax-product_cat #main .qtg-category-content-bottom { margin: 0; }
body.tax-product_cat #main .qtg-category-toggle { min-height: 44px; border-color: #aac5d3; border-radius: 8px; background: #fff; color: var(--xgv-cat-blue); box-shadow: 0 3px 12px #193d5010; }
body.tax-product_cat #main :is(.category-item a,.woocommerce-pagination a,.product-title a,.qtg-category-toggle):focus-visible { outline: 3px solid #ed882c; outline-offset: 3px; }
body.tax-product_cat #main .woocommerce-pagination { margin-top: 28px; }
body.tax-product_cat #main .woocommerce-pagination :is(a,span) { min-width: 42px; min-height: 42px; line-height: 40px; border-radius: 8px; }
@media (max-width: 1023px) and (min-width: 550px) {
  body.tax-product_cat #main .shop-container > .products.row { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
}
@media (max-width: 549px) {
  body.tax-product_cat #main .category-page-row { padding: 20px 16px 36px; }
  body.tax-product_cat .shop-page-title .page-title-inner { padding: 12px 16px; gap: 10px; }
  body.tax-product_cat .shop-page-title .woocommerce-ordering select { min-height: 44px; }
  body.tax-product_cat #main .qtg-category-content { padding: 22px 18px; border-radius: 12px; font-size: 16px; }
  body.tax-product_cat #main .qtg-category-content h1 { font-size: 26px; margin-bottom: 20px !important; }
  body.tax-product_cat #main .qtg-category-content h2 { font-size: 23px; }
  body.tax-product_cat #main .qtg-category-content h3 { font-size: 20px; }
  body.tax-product_cat #main .shop-container > .products.row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 !important; }
  body.tax-product_cat #main .shop-container > .products.row > .product-small.col { padding: 0 !important; }
  body.tax-product_cat #main .products .box-text-products { padding: 10px 10px 14px; }
  body.tax-product_cat #main .shop-container > .products.row .product-title a { font-size: 13px; line-height: 1.55; }
  body.tax-product_cat #main .qtg-category-bottom-shell { margin-top: 24px; }
}
body.tax-product_cat #main .xgv-intro-toggle { display: block; min-height: 44px; margin: -10px auto 24px; padding: 6px 20px; border: 1px solid #aac5d3; border-radius: 8px; background: #fff; color: var(--xgv-cat-blue); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
body.tax-product_cat #main .xgv-intro-toggle[hidden] { display: none; }
@media (max-width: 549px) {
  body.tax-product_cat #main .qtg-category-content-top { scroll-margin-top: 90px; }
  body.tax-product_cat #main .qtg-category-content-top.xgv-intro-collapsible:not(.xgv-intro-expanded) { position: relative; max-height: 360px; overflow: hidden; }
  body.tax-product_cat #main .qtg-category-content-top.xgv-intro-collapsible:not(.xgv-intro-expanded)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent,#fff); pointer-events: none; }
}
/* Keep mobile catalogue controls reachable while retaining the live chat action. */
@media (max-width: 549px) {
  body.tax-product_cat #wpwidget .widget-preview-text-message { display: none !important; }
  body.tax-product_cat #wpwidget .widget-layout:has(.chat-button[aria-expanded="false"]) { width: 56px !important; height: 56px !important; right: 12px !important; bottom: 16px !important; }
  body.tax-product_cat #wpwidget .chat-button[aria-expanded="false"] { display: block !important; width: 56px !important; height: 56px !important; min-height: 56px !important; min-width: 56px !important; padding: 0 !important; margin: 0 !important; border: 2px solid #fff !important; border-radius: 50% !important; background: #205f85 !important; box-shadow: 0 4px 16px #173f5733 !important; }
  body.tax-product_cat #wpwidget .chat-button[aria-expanded="false"] :is(.chat-button--white-bg,.chat-button--img-container) { display: none !important; }
  body.tax-product_cat #wpwidget .chat-button[aria-expanded="false"]::after { content: 'Chat'; display: block; color: #fff; font: 600 14px/52px 'Be Vietnam Pro',sans-serif; text-align: center; }
}

/* Wider product categories; catalogue sorting control removed from the UI. */
body.tax-product_cat #main .category-page-row,
body.tax-product_cat .shop-page-title .page-title-inner { max-width: 1328px; }
body.tax-product_cat .shop-page-title .page-title-inner { min-height: 56px; padding-top: 12px; padding-bottom: 12px; }
body.tax-product_cat .woocommerce-ordering { display: none !important; }
body.tax-product_cat .shop-page-title .woocommerce-result-count { margin: 0; }
