/* Category page first pass. Scoped here to keep custom.css from growing further. */
body#category #wrapper {
  background: #fff;
}

body#category .deo-wrapper.container-fluid {
  max-width: 1440px;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

body#category #content-wrapper {
  padding-left: 24px;
}

body#category #main {
  color: #1d2733;
}

body#category #js-product-list-header,
body#category #subcategories,
body#category #js-product-list-top.products-selection,
body#category #js-product-list-footer .card,
body#category #left-column .block {
  background: #fff;
  border: 1px solid #e2e8ee;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(20, 32, 43, 0.04);
}

body#category #js-product-list-header {
  padding: 24px 28px;
  margin-bottom: 22px;
}

body#category #js-product-list-header:empty {
  display: none;
}

body#category .category-name {
  margin: 0 0 12px;
  color: #14202b;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

body#category .block-category {
  padding: 14px 16px;
  background: #f7fafc;
  border-left: 4px solid #0878be;
}

body#category #category-description,
body#category #category-description p {
  margin: 0;
  color: #4b5967;
  font-size: 14px;
  line-height: 1.65;
}

body#category #subcategories {
  padding: 22px;
  margin-bottom: 22px;
}

body#category .subcategory-heading {
  margin: 0 0 16px;
  color: #14202b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

body#category .subcategories-list {
  row-gap: 16px;
}

body#category .subcategories-list > div {
  margin-bottom: 16px;
}

body#category .subcategory-block {
  position: relative;
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5ebf0;
  border-radius: 6px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body#category .subcategory-block:hover {
  border-color: #a9cfe9;
  box-shadow: 0 10px 24px rgba(8, 120, 190, 0.1);
  transform: translateY(-1px);
}

body#category .subcategory-image {
  flex: 0 0 76px;
  max-width: 76px;
}

body#category .subcategory-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  background: #f8fafc;
  border-radius: 6px;
}

body#category .subcategory-image img {
  width: auto;
  max-width: 66px;
  max-height: 66px;
  object-fit: contain;
}

body#category .subcategory-meta {
  min-width: 0;
}

body#category .subcategory-name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

body#category .subcategory-name a {
  color: #1d2733;
}

body#category .subcategory-name a::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
}

body#category .subcategory-name a:hover {
  color: #0878be;
}

body#category #js-product-list-top.products-selection {
  padding: 12px 16px;
  margin-bottom: 18px;
}

body#category .products-selection .row {
  align-items: center;
}

body#category .products-selection .display {
  display: none;
}

body#category .products-selection .total-products {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body#category .products-selection .display > div a {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: #f3f7fa;
  border: 1px solid #dce5ec;
  border-radius: 6px;
  color: #516172;
}

body#category .products-selection .display > div.selected a,
body#category .products-selection .display > div a:hover {
  background: #0878be;
  border-color: #0878be;
  color: #fff;
}

body#category .products-selection .sort-by {
  color: #5c6875;
  font-size: 13px;
}

body#category .products-sort-order .select-title-wrapper {
  min-width: 156px;
}

body#category .products-sort-order .select-title {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  padding: 9px 42px 9px 14px;
  border: 1px solid #dce5ec;
  border-radius: 6px;
  color: #2a3541;
  font-size: 14px;
  line-height: 20px;
  box-shadow: none;
}

body#category .products-sort-order .select-title:hover,
body#category .products-sort-order .select-title:focus,
body#category .products-sort-order .select-title[aria-expanded="true"] {
  border-color: #87bddd;
  color: #0878be;
}

body#category .products-sort-order .select-title i {
  right: 13px;
  width: 16px;
  height: 16px;
  color: #0878be;
}

body#category .products-sort-order .select-title i::before {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

body#category .products-sort-order .select-title[aria-expanded="true"] i::before {
  top: 6px;
  transform: rotate(225deg);
}

body#category .products-sort-order .dropdown-menu {
  right: 0;
  left: auto;
  width: max-content;
  min-width: 260px;
  max-width: calc(100vw - 32px);
  margin-top: 6px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #dce5ec;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(25, 44, 61, 0.14);
}

body#category .products-sort-order .select-list {
  padding: 9px 12px;
  border-radius: 4px;
  color: #344252;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

body#category .products-sort-order .select-list.current {
  background: #eef6fb;
  color: #0878be;
  font-weight: 600;
}

body#category .products-sort-order .select-list:hover,
body#category .products-sort-order .select-list:focus {
  background: #0878be;
  color: #fff;
}

body#category .product_list.grid > .row {
  row-gap: 32px;
}

body#category .product_list.grid .ajax_block_product {
  margin-bottom: 8px;
}

body#category .product_list.grid .product-miniature {
  position: relative;
  height: 100%;
  cursor: pointer;
}

body#category .product_list.grid .thumbnail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body#category .product_list.grid .thumbnail-container:hover {
  border: 0;
  box-shadow: none;
  transform: none;
}

body#category .product_list.grid .product-image {
  display: flex;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  margin: 0 0 13px;
  padding: 12px;
  background: #fff;
}

body#category .product_list.grid .product-thumbnail {
  position: relative;
  z-index: 3;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  width: 100%;
}

body#category .product_list.grid .product-thumbnail img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

body#category .product_list.grid .product-miniature:hover .product-thumbnail img {
  transform: scale(1.025);
}

body#category .product_list.grid .product-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
}

body#category .product_list.grid .product-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 46px;
  max-height: 46px;
  margin: 0 0 5px;
  order: 2;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body#category .product_list.grid .product-title a {
  color: #1d2733;
}

body#category .product_list.grid .product-title a::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
}

body#category .product_list.grid .product-title a:hover {
  color: #0878be;
}

body#category .product_list.grid .category-default {
  display: none;
}

body#category .product_list.grid .product-meta > .box-button {
  display: contents;
}

body#category .product_list.grid .product-price-and-shipping {
  order: 3;
  margin: 0;
  padding-top: 3px;
  width: 100%;
  color: #1d2733;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

body#category .product_list.grid .product-price-and-shipping .price {
  color: #333f4a;
}

body#category .product_list.grid .reviStarsContainer {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  max-width: 100%;
  height: 22px;
  align-items: center !important;
  justify-content: flex-start;
  order: 1;
  margin: 0 0 6px;
  text-align: left;
}

body#category .product_list.grid .reviStarsContainer .reviStars {
  flex: 0 0 auto;
  width: 82px;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 18px;
  transform: none !important;
}

body#category .product_list.grid .reviStarsContainer .reviStars::before {
  letter-spacing: -2px;
}

body#category .product_list.grid .reviStarsContainer .reviStarsBlock {
  position: absolute;
  top: 0;
  left: 74px;
  display: flex !important;
  align-items: center;
  height: 22px;
  margin: 0;
  color: #7b8490;
  font-family: inherit;
  font-size: 13px;
  line-height: 22px;
  white-space: nowrap;
}

body#category .product_list.grid .reviStarsContainer:has(.reviStars[style*="--rating: 0"]) .reviStars,
body#category .product_list.grid .reviStarsContainer:has(.reviStars[style*="--rating: 0"]) .reviStarsBlock {
  visibility: hidden;
}

body#category .product_list.grid .highlighted-informations {
  order: 4;
  margin-top: 8px;
}

body#category .product_list.grid .product-description,
body#category .product_list.grid .hook-reviews {
  order: 5;
}

body#category .product_list.grid .product-image .box-button,
body#category .product_list.grid .product-flags,
body#category .product_list.grid .box-label {
  z-index: 4;
}

body#category #left-column .block {
  padding: 16px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  body#category #left-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  body#category #left-column > * {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    order: 3;
  }

  body#category #left-column > #search_filters_wrapper {
    order: 1;
  }

  body#category #left-column > .d-md-block:has([class^="revi-widget-"]) {
    margin: 0 0 20px;
    order: 2;
  }

  body#category #left-column > .d-md-block [class^="revi-widget-"],
  body#category #left-column > .d-md-block .revi-root-layout,
  body#category #left-column > .d-md-block .revi-element-wrapper,
  body#category #left-column > .d-md-block .revi-element-content,
  body#category #left-column > .d-md-block .revi-element-content-area,
  body#category #left-column > .d-md-block .revi-widget-vertical-1,
  body#category #left-column > .d-md-block .revi-vertical__container,
  body#category #left-column > .d-md-block .revi-vertical__layout {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
  }

  body#category #wrapper .deo-wrapper .row #left-column > .d-md-block [class^="revi-widget-"] > div > div > div > div {
    margin-top: 0 !important;
  }

  body#category #left-column > .d-md-block .revi-widget-vertical-1,
  body#category #left-column > .d-md-block .revi-vertical__container {
    overflow: hidden;
    border: 1px solid #e2e8ee;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(20, 32, 43, 0.04);
  }
}

body#category #search_filters .title_block,
body#category #left-column .block .title_block {
  margin: 0 0 12px;
  color: #14202b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

body#category #search_filters .facet {
  padding: 13px 0;
  border-top: 1px solid #edf2f6;
}

body#category #search_filters .facet:first-of-type {
  border-top: 0;
}

body#category #search_filters .facet-title {
  margin-bottom: 10px;
  color: #344150;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0;
}

body#category #search_filters ul {
  margin-bottom: 0;
}

body#category #search_filters li {
  margin-bottom: 7px;
}

body#category #search_filters .facet-label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 0;
  color: #536170;
  font-size: 12px;
  line-height: 1.35;
}

body#category #search_filters .facet-label a {
  color: #536170;
}

body#category #search_filters .facet-label a:hover {
  color: #0878be;
}

body#category #search_filters .magnitude {
  color: #8793a0;
}

body#category #js-product-list-footer .card {
  margin-top: 24px;
  box-shadow: 0 8px 24px rgba(20, 32, 43, 0.04);
}

body#category .category-additional-description {
  max-width: 980px;
  padding: 28px 32px;
  color: #394653;
  font-size: 14px;
  line-height: 1.68;
}

body#category .category-additional-description h2,
body#category .category-additional-description h3,
body#category .category-additional-description h4 {
  margin-top: 22px;
  margin-bottom: 10px;
  color: #14202b;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

body#category .category-additional-description h2:first-child,
body#category .category-additional-description h3:first-child,
body#category .category-additional-description h4:first-child {
  margin-top: 0;
}

body#category .category-additional-description h2 {
  font-size: 22px;
}

body#category .category-additional-description h3 {
  font-size: 17px;
}

body#category .category-additional-description h4 {
  font-size: 15px;
}

body#category .category-additional-description p {
  margin-bottom: 12px;
}

body#category .pagination {
  margin: 20px 0 0;
}

body#category .pagination .page-list {
  justify-content: flex-end;
}

body#category .pagination a,
body#category .pagination .current a {
  border-radius: 6px;
}

@media (min-width: 1200px) {
  body#category .products-selection .products-counter {
    display: block !important;
    margin: 0;
    color: #4b5967;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
  }
}

@media (max-width: 1199px) {
  body#category .deo-wrapper.container-fluid {
    padding-right: 18px;
    padding-left: 18px;
  }

  body#category #content-wrapper {
    padding-left: 18px;
  }

  body#category .product_list.grid .product-image {
    min-height: 176px;
  }

  body#category .product_list.grid .product-thumbnail img {
    max-height: 176px;
  }
}

@media (max-width: 991px) {
  body#category .deo-wrapper.container-fluid {
    padding-right: 14px;
    padding-left: 14px;
  }

  body#category #content-wrapper {
    padding-left: 15px;
  }

  body#category #js-product-list-header,
  body#category #subcategories,
  body#category #js-product-list-top.products-selection,
  body#category .category-additional-description {
    padding: 18px;
  }

  body#category .category-name {
    font-size: 24px;
  }

  body#category .product_list.grid .product-image {
    min-height: 166px;
  }

  body#category .product_list.grid .product-thumbnail img {
    max-height: 166px;
  }
}

@media (max-width: 767px) {
  body#category .product_list.grid .product-image > .box-button {
    display: none !important;
  }

  body#category .product_list.grid .product-thumbnail {
    flex: 1 0 100%;
    min-width: 0;
  }
}

@media (max-width: 575px) {
  body#category {
    overflow-x: hidden;
  }

  body#category .deo-wrapper.container,
  body#category .deo-wrapper.container-fluid {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-right: 10px;
    padding-left: 10px;
  }

  body#category #content-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
  }

  body#category #js-product-list-header,
  body#category #subcategories,
  body#category #js-product-list-top.products-selection,
  body#category .category-additional-description {
    padding: 14px;
  }

  body#category .category-name {
    font-size: 22px;
  }

  body#category .subcategory-block {
    min-height: 92px;
  }

  body#category .subcategories-list,
  body#category .product_list.grid > .row {
    margin-right: 0;
    margin-left: 0;
  }

  body#category .subcategories-list > div {
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  body#category .product_list.grid .ajax_block_product {
    box-sizing: border-box;
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    padding-right: 7px;
    padding-left: 7px;
  }

  body#category .subcategory-image,
  body#category .subcategory-image a {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  body#category .subcategory-image img {
    max-width: 56px;
    max-height: 56px;
  }

  body#category .subcategory-meta,
  body#category .subcategory-name,
  body#category .subcategory-name a {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body#category .product_list.grid .thumbnail-container {
    padding: 0;
  }

  body#category .product_list.grid .product-image {
    min-height: 0;
  }

  body#category .product_list.grid .product-thumbnail img {
    max-height: 100%;
  }

  body#category .products-selection > .row,
  body#category .products-selection .sort-by-row {
    margin-right: 0;
    margin-left: 0;
  }

  body#category .products-selection .sort-by {
    display: none;
  }

  body#category .pagination .page-list {
    justify-content: center;
  }
}
