/* SC-SB UI-012C, nested SEO-Pro categories under /katalog/.
 * Root catalog /katalog, product detail, cart/checkout, stock indicators and
 * product images remain outside these selectors. */
body.scsb12c-nested-category {
  --scsb12c-blue: var(--sb-blue);
  --scsb12c-blue-hover: var(--sb-blue-hover);
  --scsb12c-soft: var(--sb-soft-blue);
  --scsb12c-border: #cddfee;
}

/* Navigation and assistance links above nested category products. Exclude
 * product cards and pagination to retain their separately approved styles. */
body.scsb12c-nested-category main #content a:not(.product-thumb a):not(.product-layout a):not(.pagination a):not(.sb-btn),
body.scsb12c-nested-category main #content .compare-block :is(a, i, span),
body.scsb12c-nested-category main #content :is(.category-info, .category-intro, .category-description, .category-links, .category-list) a {
  color: var(--scsb12c-blue) !important;
  text-decoration-color: currentColor;
}
body.scsb12c-nested-category main #content a:not(.product-thumb a):not(.product-layout a):not(.pagination a):not(.sb-btn):hover {
  color: var(--scsb12c-blue-hover) !important;
}
body.scsb12c-nested-category main #content :is(.category-list, .category-links) a:is(.btn, .button),
body.scsb12c-nested-category main #content .category-list a {
  background: #fff !important;
  border-color: var(--scsb12c-border) !important;
}
body.scsb12c-nested-category main #content :is(.category-list, .category-links) a:is(.btn, .button):hover,
body.scsb12c-nested-category main #content .category-list a:hover {
  background: var(--scsb12c-soft) !important;
  border-color: #a7c8eb !important;
}

/* All three grid/list/compact view icons, not just the active button. */
body.scsb12c-nested-category main #content :is(#grid-view, #grid2-view, #list-view, #compact-view) {
  color: #416b91 !important;
  background: #fff !important;
  border-color: var(--scsb12c-border) !important;
}
body.scsb12c-nested-category main #content :is(#grid-view, #grid2-view, #list-view, #compact-view) :is(i, span, svg) {
  color: inherit !important;
  fill: currentColor;
}
body.scsb12c-nested-category main #content :is(#grid-view, #grid2-view, #list-view, #compact-view):is(.active, .selected) {
  color: #fff !important;
  background: var(--scsb12c-blue) !important;
  border-color: var(--scsb12c-blue) !important;
}
body.scsb12c-nested-category main #content :is(#grid-view, #grid2-view, #list-view, #compact-view):hover:not(.active):not(.selected) {
  color: var(--scsb12c-blue-hover) !important;
  background: var(--scsb12c-soft) !important;
}

/* Pagination and show-more, including AJAX-loaded product lists. */
body.scsb12c-nested-category main #content .pagination :is(li.active, li.selected) > :is(a, span),
body.scsb12c-nested-category main #content .pagination > .active > :is(a, span) {
  color: #fff !important;
  background: var(--scsb12c-blue) !important;
  border-color: var(--scsb12c-blue) !important;
}
body.scsb12c-nested-category main #content :is(.scsb12b-more, a.showmore, button.showmore, .btn-more) {
  color: var(--scsb12c-blue) !important;
  background: var(--scsb12c-soft) !important;
  border-color: var(--scsb12c-border) !important;
}
body.scsb12c-nested-category main #content :is(.scsb12b-more, a.showmore, button.showmore, .btn-more) :is(i, span, svg) {
  color: inherit !important;
  fill: currentColor;
}
body.scsb12c-nested-category main #content :is(.scsb12b-more, a.showmore, button.showmore, .btn-more):hover {
  color: #fff !important;
  background: var(--scsb12c-blue) !important;
  border-color: var(--scsb12c-blue) !important;
}

/* Old orange hover on 'Купить' / purchase controls; leave navy at rest. */
body.scsb12c-nested-category main #content .product-thumb .cart :is(button, a.btn):is(:hover, :focus-visible, :active),
body.scsb12c-nested-category main #content .product-thumb .scsb12b-cart-buy:is(:hover, :focus-visible, :active) {
  color: #fff !important;
  background: var(--scsb12c-blue) !important;
  border-color: var(--scsb12c-blue) !important;
}
/* Quantity controls, without recoloring inventory bars. */
body.scsb12c-nested-category main #content .product-thumb .quantity :is(button, .btn, .fa-plus, .fa-minus) {
  color: var(--scsb12c-blue) !important;
  border-color: var(--scsb12c-border) !important;
}
body.scsb12c-nested-category main #content .product-thumb .quantity :is(button, .btn):hover {
  color: var(--scsb12c-blue-hover) !important;
  background: var(--scsb12c-soft) !important;
}
