/* Tablet and mobile storefront layout: keep category filters and catalog inside the viewport. */
@media (max-width: 900px) {
  .store-catalog-layout {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-inline: 0;
  }

  .store-catalog-layout > *,
  .store-catalog-layout .store-catalog-premium,
  .store-category-sidebar {
    min-width: 0;
    max-width: 100%;
  }

  .store-category-sidebar {
    position: static;
  }

  .store-category-sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 9px;
    scrollbar-width: thin;
  }

  .store-category-sidebar nav a {
    flex: 0 0 auto;
    max-width: min(220px, 72vw);
    min-height: 40px;
  }

  .store-catalog-layout .store-product-grid-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-footer-links {
    min-width: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .store-catalog-layout {
    gap: 13px;
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .store-category-sidebar nav a {
    min-height: 42px;
  }

  .store-catalog-layout .store-product-grid-premium > * {
    min-width: 0;
  }
}
