/* Task 1298: compact horizontal desktop product-category cards. */
@media (min-width: 721px) {
  .product-index-page .product-category-card,
  .product-index-page .product-category-card.card,
  .product-index-page .product-category-card:hover,
  .product-index-page .product-category-card:focus,
  .product-index-page .product-category-card:focus-visible,
  .product-index-page .product-category-card:focus-within {
    grid-template-columns: 160px minmax(0, 1fr) !important;
    grid-template-rows: 160px !important;
    align-items: center !important;
    justify-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 188px !important;
    min-height: 188px !important;
    gap: 22px !important;
    padding: 14px 22px !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .product-index-page .product-category-card h2,
  .product-index-page .product-category-card:hover h2,
  .product-index-page .product-category-card:focus h2,
  .product-index-page .product-category-card:focus-visible h2,
  .product-index-page .product-category-card:focus-within h2 {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    text-wrap: balance !important;
  }

  .product-index-page .product-category-image-frame,
  .product-index-page .product-category-card:hover .product-category-image-frame,
  .product-index-page .product-category-card:focus .product-category-image-frame,
  .product-index-page .product-category-card:focus-visible .product-category-image-frame,
  .product-index-page .product-category-card:focus-within .product-category-image-frame {
    order: 0 !important;
    align-self: center !important;
    width: 160px !important;
    height: 160px !important;
    min-width: 160px !important;
    min-height: 160px !important;
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
  }
}
