/* Reproduced responsive defects from the comprehensive 2026-10-30 audit. */

/* Author display rules must not reveal controls hidden by application state. */
[hidden] { display: none !important; }

/* Long pasted model identifiers must wrap without widening the catalogue. */
.catalog-heading > div { min-width: 0; }
.catalog-heading p { overflow-wrap: anywhere; }

/* Preserve the category composition while accommodating larger text spacing. */
.home-categories .category-card {
  height: auto;
  min-height: 304px;
  grid-template-rows: minmax(58px, auto) 204px;
}
.home-categories .category-card h3 { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .home-categories .category-card {
    min-height: 286px;
    grid-template-rows: minmax(56px, auto) 192px;
  }
}
@media (max-width: 600px) {
  .home-categories .category-card {
    min-height: 240px;
    grid-template-rows: minmax(72px, auto) 136px;
  }
}
@media (max-width: 350px) {
  .home-categories .category-card {
    min-height: 226px;
    grid-template-rows: minmax(72px, auto) 124px;
  }
}

/* On short screens, keep the cart contents reachable instead of letting the
   fixed summary consume the entire height of the product list. */
@media (max-height: 600px) {
  .cart-drawer { overflow-y: auto; overscroll-behavior: contain; }
  .drawer-heading {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    background: #fff;
  }
  .drawer-content {
    flex: 0 0 auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }
  .drawer-footer { flex: 0 0 auto; }
}
