/* Narrow corrections discovered by disposable design-recovery QA. */

@media (min-width: 1024px) {
  /* The viewport adapter removes [hidden] and aria-hidden on desktop/tablet.
     Only then may the mobile sheet element participate as the persistent rail. */
  .nana-shop-archive #nanaShopFilters:not([hidden]) {
    display: block !important;
    position: sticky;
    left: auto;
    right: auto;
    bottom: auto;
    top: 96px;
    max-height: calc(100vh - 118px);
    transform: none !important;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    z-index: auto;
    overflow: auto;
  }

  .nana-shop-archive__filter-toggle,
  .nana-shop-archive__filter-close,
  .nana-shop-archive__sheet-overlay {
    display: none !important;
  }

  /* With the mobile-only trigger removed, keep the collection controls clean:
     sorting on the left, result count on the right. */
  .nana-shop-archive__controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nana-shop-archive__sort {
    justify-content: flex-start;
  }
}

/* WooCommerce gives sale old-prices an inherited opacity in addition to their
   color. Normalize both at the actual text node so the neutral Pebble old-price
   remains WCAG AA on white without changing layout or sale semantics. */
.nana-shop-archive ul.products li.product .price del,
.nana-shop-archive ul.products li.product .price del .woocommerce-Price-amount,
.nana-shop-archive ul.products li.product .price del bdi,
.nana-shop-archive.woocommerce ul.products li.product .price del,
.nana-shop-archive.woocommerce ul.products li.product .price del .woocommerce-Price-amount,
.nana-shop-archive.woocommerce ul.products li.product .price del bdi {
  color: #5f5f5f !important;
  opacity: 1 !important;
}
