.storefront-subcategory-more[hidden],
.storefront-subcategory-menu[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .container.storefront-category-container {
    padding-inline: 26px;
  }

  .novoLista.storefront-subcategory-row {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 13px;
    overflow: visible !important;
  }

  .storefront-subcategory-row > .subcateg,
  .storefront-subcategory-row > .storefront-subcategory-more {
    flex: 0 0 auto;
    margin: 5px 0;
  }

  .storefront-subcategory-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 2px solid #efefef;
    border-radius: 10px;
    background: #fff;
    color: #5a5a5a;
    font: inherit;
    font-size: 16px;
  }

  .storefront-subcategory-more::after {
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    content: '';
    transform: translateY(-2px) rotate(45deg);
  }

  .storefront-subcategory-more[aria-expanded='true']::after {
    transform: translateY(2px) rotate(225deg);
  }

  .storefront-subcategory-more:hover,
  .storefront-subcategory-more[aria-expanded='true'] {
    border-color: #5a5a5a;
  }

  .storefront-subcategory-menu {
    --storefront-subcategory-menu-width: min(260px, 100%);
    position: absolute;
    z-index: 10;
    top: 100%;
    left: clamp(0px, calc(var(--storefront-subcategory-more-edge) - var(--storefront-subcategory-menu-width)), calc(100% - var(--storefront-subcategory-menu-width)));
    width: var(--storefront-subcategory-menu-width);
    max-height: min(360px, 45vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #e7eaef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
    text-align: left;
  }

  .novoLista .storefront-subcategory-menu > .subcateg {
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    white-space: normal;
  }

  .storefront-subcategory-menu .subcateg a {
    display: block;
    padding: 8px 10px;
    border-radius: inherit;
    overflow-wrap: anywhere;
  }

  .storefront-subcategory-menu .subcateg a:hover,
  .storefront-subcategory-menu .subcateg.active a {
    background: #f3f4f6;
  }

  .storefront-subcategory-menu .subcateg.active a {
    font-weight: 600;
  }

  .storefront-subcategory-more:focus-visible,
  .storefront-subcategory-row .subcateg a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}
