:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .columns-container.container { width: var(--rtg-shell-width); max-width: none; }
/* The column gutters carry the inner spacing, so filters and products reach the site edges. */
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .columns-container.container { padding-inline: 0; }
#category .subcategory { display: none; }
/* Category navigation already supplies these links. Keep only useful facets,
   including after native AJAX filtering replaces their markup. */
#category #search-filters [data-type="category"],
#category #search-filters:not(:has(.accordion-item:not([data-type="category"]))),
#category:not(:has(#search-filters .accordion-item:not([data-type="category"]))) #search_filter_toggler { display: none; }
/* PS8 parent-category navigation: centered image tiles, products at the next level. */
#category:has(.rtg-subcategory-browser) #left-column { display: none; }
#category:has(.rtg-subcategory-browser) #center-column { flex: 0 0 100%; width: 100%; max-width: 100%; }
.rtg-subcategory-browser > h1 { text-align: center; }
.rtg-subcategories { display: flex; flex-wrap: wrap; justify-content: center; margin: 60px -15px; padding: 0; list-style: none; }
.rtg-subcategories__item { flex: 0 0 25%; min-width: 0; padding: 0 15px; }
.rtg-subcategories__link { display: block; margin-bottom: 10px; color: var(--rtg-900); text-align: center; text-decoration: none; }
.rtg-subcategories__link:hover { color: var(--rtg-600); }
.rtg-subcategories__link:focus-visible { outline: 2px solid var(--rtg-600); outline-offset: 4px; border-radius: 15px; }
.rtg-subcategories__image { padding: 45px 45px 10px; }
.rtg-subcategories__image img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 15px; }
.rtg-subcategories__title { margin: 10px 0 12px; font-size: 24px; font-weight: 700; line-height: 1.2; text-transform: uppercase; overflow-wrap: break-word; }
@media (max-width: 991.98px) {
  .rtg-subcategories__item { flex-basis: 33.333333%; }
}
@media (max-width: 575.98px) {
  .rtg-subcategories__item { flex-basis: 50%; }
  .rtg-subcategories__title { font-size: 16px; }
  .rtg-subcategories__image { padding-inline: 30px; }
}
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

/* The native accordion remains intact; the three text levels carry the hierarchy. */
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree { padding: 0 0 18px; border-bottom: 1px solid #e4e9ec; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .left-block__title { margin: 0 0 10px; font-size: 12px; font-weight: 500; line-height: 1.45; letter-spacing: .01em; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .left-block__title-link { color: #667783; text-decoration: none; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .left-block__title-link:hover,
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .left-block__title-link:focus-visible,
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .left-block__title-link[aria-current="page"] { color: #087f97; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list { row-gap: 1px; margin-bottom: 0; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__item-header { align-items: center; gap: 2px; min-height: 38px; padding: 0; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__item-link { display: flex; align-items: center; min-width: 0; min-height: 38px; padding: 7px 2px; color: #34414a; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-decoration: none; transition: color .15s ease; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__item-link:hover,
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__item-link:focus-visible,
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__item-link[aria-current="page"] { color: #087f97; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__item-link[aria-current="page"] { font-weight: 600; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__item-header.split .accordion-button { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; min-height: 38px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 8px; color: #81909a; box-shadow: none; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .accordion-button::after { width: 7px; height: 7px; margin: -4px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; background: none; transform: rotate(45deg); }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .accordion-button:not(.collapsed)::after { margin: 4px 0 0; transform: rotate(225deg); }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .accordion-button:hover { background: transparent; color: #087f97; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .accordion-button:focus-visible { outline: 2px solid #087f97; outline-offset: 1px; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .accordion--category .accordion-body { padding: 0; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list[data-depth="1"],
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list[data-depth="2"],
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list[data-depth="3"],
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list[data-depth="4"] { margin: 1px 0 7px 3px; padding-left: 11px; border-left: 1px solid #e7ecef; row-gap: 0; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list:not([data-depth="0"]) .category-tree__item-header { min-height: 32px; padding-left: 5px; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list:not([data-depth="0"]) .category-tree__item-link { min-height: 32px; padding: 5px 0; color: #697883; font-size: 13px; font-weight: 400; line-height: 1.45; letter-spacing: 0; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list:not([data-depth="0"]) .category-tree__item-link:hover,
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list:not([data-depth="0"]) .category-tree__item-link:focus-visible,
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list:not([data-depth="0"]) .category-tree__item-link[aria-current="page"] { color: #087f97; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list:not([data-depth="0"]) .category-tree__item-link[aria-current="page"] { font-weight: 600; }
:is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__list:not([data-depth="0"]) .category-tree__item-header.split .accordion-button { flex-basis: 38px; width: 38px; height: 38px; min-height: 38px; }

@media (min-width: 768px) and (max-width: 1199px) {
  :is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .ps-categorytree .category-tree__item-link { font-size: 13.5px; }
}

@media (min-width: 1200px) {
  :is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) #left-column { flex: 0 0 270px; width: 270px; max-width: 270px; }
  :is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) #center-column { flex: 1 1 0; width: calc(100% - 270px); max-width: none; min-width: 0; }
}

@media (max-width: 1359px) {
  :is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
  :is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 767px) {
  :is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) #left-column { display: none; }
  :is(#category, #best-sales, #prices-drop, #new-products, #manufacturer) #center-column { flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0; }
  #category .subcategory { display: block; margin: 12px 0 14px; }
  #category .subcategory__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
  #category .subcategory__link { display: flex; align-items: center; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #dce7eb; border-radius: 10px; background: #fff; color: #303b45; text-decoration: none; transition: border-color .2s; -webkit-tap-highlight-color: transparent; }
  #category .subcategory__link:hover { border-color: #1693a5; }
  #category .subcategory__link:focus-visible { outline: 3px solid #168fa3; outline-offset: 2px; }
  #category .subcategory__name { min-width: 0; color: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; white-space: normal; overflow-wrap: break-word; }
}

@media (prefers-reduced-motion: reduce) {
  #category .subcategory__link { transition: none; }
}

/* Brand list (/marcas): logo or name wordmark, two per row on phones. */
#manufacturer .brand__list { gap: 12px; }
#manufacturer .brand__image { display: grid; place-items: center; height: 80px; }
#manufacturer .brand__img { width: 100%; max-width: 130px; height: 64px; object-fit: contain; }
#manufacturer .brand__wordmark { color: #37535e; font-size: 17px; font-weight: 700; line-height: 1.2; text-align: center; letter-spacing: .01em; overflow-wrap: break-word; }
@media (max-width: 575.98px) {
  #manufacturer .brand__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #manufacturer .brand { padding: .5rem; }
  #manufacturer .brand__wordmark { font-size: 14px; }
}
@media (max-width: 359px) {
  #category .subcategory__link { padding: 8px 9px; }
  #category .subcategory__name { font-size: 13px; }
}

/* Desktop category menu. */
@media (min-width: 768px) {
  #category .ps-categorytree.rtg-catalog-menu { padding: 18px 12px 12px; border: 1px solid #e4e9ec; border-radius: var(--rtg-radius); background: #fff; }
  #category .rtg-catalog-menu .left-block__title { padding-inline: 10px; margin-bottom: 12px; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
  #category .rtg-catalog-menu .category-tree__item-link { padding-inline: 10px; border-radius: 8px; }
  #category .rtg-catalog-menu .category-tree__item-link[aria-current="page"] { background: var(--rtg-50); color: var(--rtg-700); }
}
