/* UtopiaGM: ITEMS/ACC desk 4-col must fill the row (no right-side dead gap).
 * Cause: storefront-routes locks tracks to --item-card-w (~230/248px) + justify-content:start
 *        via .item-grid / .item-grid--layout-grid / .acc-grid.
 * Ops in index-6EBPIFUM.css already has 1fr !important for .item-grid; this last-link
 * hotfix unsets --item-card-w, covers .acc-grid, and wins over lazy route CSS.
 * Append AFTER index + route CSS (do not Vite-rebuild to ship). */

@media (width >= 901px) {
  .shop-page .item-grid,
  .shop-page .item-grid.item-grid--layout-grid,
  .shop-page .item-grid.item-grid--layout-compact-grid,
  .shop-main .item-grid,
  .shop-main .item-grid.item-grid--layout-grid,
  .shop-main .item-grid.item-grid--layout-compact-grid,
  .acc-grid {
    --item-card-w: unset !important;
    --item-grid-cols: 4;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .shop-page .item-grid > .item-card,
  .shop-page .item-grid .item-card,
  .shop-main .item-grid > .item-card,
  .shop-main .item-grid .item-card,
  .acc-grid > .acc-card,
  .acc-grid .acc-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }
}

@media (width <= 900px) {
  .shop-page .item-grid,
  .shop-page .item-grid.item-grid--layout-grid,
  .shop-page .item-grid.item-grid--layout-compact-grid,
  .shop-main .item-grid,
  .acc-grid {
    --item-card-w: unset !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
  }

  .shop-page .item-grid .item-card,
  .shop-main .item-grid .item-card,
  .acc-grid .acc-card {
    max-width: none !important;
    justify-self: stretch !important;
  }
}

@media (width <= 560px) {
  .shop-page .item-grid,
  .shop-page .item-grid.item-grid--layout-grid,
  .shop-page .item-grid.item-grid--layout-compact-grid,
  .shop-main .item-grid,
  .acc-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
