/* The indexed renderer uses the established Woo block classes so the current
   responsive card design remains the single visual source of truth. */
.graham-lightweight-products {
    width: 100%;
}

/* 0.13.687: keep the main product image fully visible when a card also has
 * a manufacturer logo and alternate-image rail.  An older narrow-card rule
 * translated these images left by 16px, which could clip the image at the
 * card edge. */
@media (min-width: 560px) {
  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product:has(> .graham-loop-alt-thumbnails)
  > .wc-block-components-product-image img {
    transform: none !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image > a {
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 176px !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 176px !important;
    overflow: hidden !important;
    width: 176px !important;
  }
}


/* 0.13.684: use one card anatomy for the normal and lightweight catalogue paths.
 * The lightweight mobile rules above were allowed to move the alternate-image
 * rail into normal document flow. Keep the card geometry identical instead. */
@media (max-width: 1400px) {
  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 148px !important;
    grid-template-rows: 176px 14px 2.4em 1.1em 28px 30px 10px 30px 0 !important;
    gap: 0 !important;
    height: 404px !important;
    min-height: 404px !important;
    overflow: hidden !important;
    padding: 10px !important;
    position: relative !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .wc-block-components-product-image {
    grid-area: 1 / 1 / 2 / -1 !important;
    height: 176px !important;
    min-height: 176px !important;
    margin: 0 !important;
    padding: 0 100px 0 0 !important;
    position: relative !important;
    width: auto !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .wc-block-components-product-image :is(a, img) {
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    height: 176px !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    width: 176px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) .graham-card-manufacturer {
    bottom: auto !important;
    height: 36px !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    width: 90px !important;
    z-index: 5 !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .graham-loop-alt-thumbnails {
    align-content: start !important;
    box-sizing: border-box !important;
    bottom: auto !important;
    display: grid !important;
    gap: 4px !important;
    grid-auto-rows: 60px !important;
    grid-template-columns: 90px !important;
    grid-template-rows: repeat(2, 60px) !important;
    height: 124px !important;
    left: auto !important;
    max-height: 124px !important;
    max-width: 90px !important;
    position: absolute !important;
    right: 10px !important;
    top: 50px !important;
    width: 90px !important;
    z-index: 4 !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 60px !important;
    height: 60px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 60px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail__image {
    aspect-ratio: 1 / 1 !important;
    height: 60px !important;
    max-height: 60px !important;
    max-width: 60px !important;
    object-fit: contain !important;
    width: 60px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > :is(.wc-block-components-product-title, .wp-block-post-title) {
    display: -webkit-box !important;
    grid-area: 3 / 1 / 4 / -1 !important;
    height: 2.4em !important;
    line-height: 1.28 !important;
    margin: 0 !important;
    max-height: 2.4em !important;
    min-height: 2.4em !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: auto !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .graham-card-identity {
    grid-area: 4 / 1 / 5 / -1 !important;
    height: 1.1em !important;
    min-height: 1.1em !important;
    overflow: hidden !important;
    position: static !important;
    width: auto !important;
  }
}

/* 0.13.686: keep alternate images inside the fixed image rail at narrow widths. */
@media (max-width: 1400px) {
  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product
  > .graham-loop-alt-thumbnails > .graham-loop-alt-thumbnail {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 60px !important;
    height: 60px !important;
    margin: 0 !important;
    min-height: 60px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 60px !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product
  > .graham-loop-alt-thumbnails > .graham-loop-alt-thumbnail > .graham-loop-alt-thumbnail__image {
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    height: 60px !important;
    max-height: 60px !important;
    max-width: 60px !important;
    object-fit: contain !important;
    padding: 0 !important;
    width: 60px !important;
  }
}

/* 0.13.683: final cross-width card anatomy.  This file loads after the
 * normal-card stylesheet, so keep one canonical internal layout here.  The
 * catalogue grid may change its number of columns; the card itself does not. */
@media (max-width: 1200px) {
  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product {
    align-content: start !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 148px !important;
    grid-template-rows: 176px 14px 2.4em 1.1em 28px 30px 10px 30px 0 !important;
    height: 404px !important;
    min-height: 404px !important;
    overflow: hidden !important;
    position: relative !important;
    width: 100% !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    grid-area: 1 / 1 / 2 / -1 !important;
    height: 176px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 176px !important;
    overflow: hidden !important;
    padding: 0 100px 0 0 !important;
    width: 100% !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image a,
  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image img {
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    height: 176px !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    width: 176px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > :is(.wc-block-components-product-title, .wp-block-post-title) {
    display: -webkit-box !important;
    grid-area: 3 / 1 / 4 / -1 !important;
    height: 2.4em !important;
    line-height: 1.28 !important;
    margin: 0 !important;
    max-height: 2.4em !important;
    min-height: 2.4em !important;
    min-width: 0 !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: 100% !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .graham-card-identity {
    grid-area: 4 / 1 / 5 / -1 !important;
    height: 1.1em !important;
    margin: 0 !important;
    min-height: 1.1em !important;
    min-width: 0 !important;
    overflow: hidden !important;
    position: static !important;
    width: 100% !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product .graham-card-manufacturer {
    bottom: auto !important;
    height: 36px !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    width: 90px !important;
    z-index: 5 !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product .graham-loop-alt-thumbnails {
    align-content: start !important;
    bottom: auto !important;
    display: grid !important;
    gap: 4px !important;
    grid-auto-rows: 61px !important;
    grid-template-columns: 90px !important;
    left: auto !important;
    max-width: 90px !important;
    position: absolute !important;
    right: 10px !important;
    top: 50px !important;
    width: 90px !important;
    z-index: 4 !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail {
    align-items: center !important;
    display: flex !important;
    flex: 0 0 90px !important;
    height: 61px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 90px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail__image {
    aspect-ratio: 1 / 1 !important;
    height: 61px !important;
    max-height: 61px !important;
    max-width: 61px !important;
    object-fit: contain !important;
    width: 61px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > :is(.wp-block-woocommerce-product-price, .graham-family-pricing) {
    align-items: center !important;
    align-self: start !important;
    display: flex !important;
    grid-area: 6 / 1 / 7 / 2 !important;
    height: 30px !important;
    line-height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > :is(.wc-block-components-product-button, .graham-card-uom) {
    align-self: start !important;
    grid-area: 6 / 2 / 7 / 3 !important;
    height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    width: 100% !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product :is(.graham-card-cart, .graham-card-cart__quantity-field, .graham-card-cart__submit, .wc-block-components-product-button__button) {
    box-sizing: border-box !important;
    height: 30px !important;
    min-height: 30px !important;
  }
}

.graham-lightweight-product .wc-block-components-product-title a {
    color: inherit;
    text-decoration: none;
}

.graham-lightweight-product .wc-block-components-product-title a:hover,
.graham-lightweight-product .wc-block-components-product-title a:focus-visible {
    color: #075b9d;
    text-decoration: underline;
}

.graham-lightweight-product .wc-block-product-button {
    box-sizing: border-box;
    width: 100%;
}

.graham-lightweight-product .wc-block-product-button > a,
.graham-lightweight-product .wc-block-product-button > button {
    box-sizing: border-box;
}

.graham-lightweight-product .wc-block-product-button > .button {
    align-items: center;
    background: var(--graham-green, #14843e) !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    display: inline-flex;
    font-weight: 750 !important;
    justify-content: center;
    min-height: 38px;
    text-align: center;
    text-decoration: none !important;
    width: 100%;
}

.graham-lightweight-product .wc-block-product-button > .button:hover,
.graham-lightweight-product .wc-block-product-button > .button:focus-visible {
    background: var(--graham-green-dark, #106f35) !important;
}

.graham-lightweight-empty {
    clear: both;
    margin: 16px 0;
}

.graham-lightweight-pagination {
    clear: both;
    margin-top: 20px;
}

@media (max-width: 700px) {
    .graham-lightweight-product .wc-block-product-button > .button {
        min-height: 42px;
    }
}

/* 0.13.623: final one-column card flow.  This stylesheet is loaded after the
 * catalogue refresh styles, so the lightweight cards keep one predictable
 * column at the tight phone/zoom widths instead of falling back to the old
 * image-and-content split. */
@media (max-width: 1200px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product {
        align-content: start !important;
        align-items: start !important;
        column-gap: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 150px 2.6em 1.2em minmax(30px, auto) minmax(38px, auto) 42px 30px !important;
        height: auto !important;
        min-height: 390px !important;
        overflow: visible !important;
        padding: 10px !important;
        position: relative !important;
        row-gap: 4px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > * {
        grid-column: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wc-block-components-product-image {
        align-self: stretch !important;
        grid-row: 1 !important;
        height: 150px !important;
        margin: 0 !important;
        max-height: 150px !important;
        min-height: 150px !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wc-block-components-product-image img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-alt-thumbnails {
        bottom: auto !important;
        display: flex !important;
        gap: 4px !important;
        grid-row: auto !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        position: absolute !important;
        top: 116px !important;
        z-index: 3 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail {
        flex: 0 0 32px !important;
        height: 32px !important;
        width: 32px !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > :is(.wc-block-components-product-title, .wp-block-post-title) {
        display: -webkit-box !important;
        grid-row: 2 !important;
        height: 2.6em !important;
        line-height: 1.28 !important;
        margin: 0 !important;
        max-height: 2.6em !important;
        min-height: 2.6em !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-card-identity {
        align-self: start !important;
        grid-row: 3 !important;
        height: 1.2em !important;
        min-height: 1.2em !important;
        overflow: visible !important;
        position: static !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-loop-product-sku {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-manufacturer {
        bottom: auto !important;
        left: auto !important;
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
        z-index: 4 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row {
        display: contents !important;
        height: auto !important;
        margin: 0 !important;
        min-height: 0 !important;
        position: static !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row > .graham-availability-with-help,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row > :is(.stock, mark[class*="graham-availability"]) {
        align-self: start !important;
        display: inline-flex !important;
        grid-row: 4 !important;
        justify-self: start !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > :is(.wc-block-components-product-price, .wp-block-woocommerce-product-price, .price) {
        align-items: center !important;
        align-self: stretch !important;
        display: flex !important;
        grid-row: 5 !important;
        height: auto !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 38px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wp-block-woocommerce-product-button,
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-select-uom {
        align-self: stretch !important;
        grid-row: 6 !important;
        height: 42px !important;
        margin: 0 !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart {
        align-self: stretch !important;
        height: 42px !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* 0.13.629: use the available catalogue width, not the browser viewport, to
 * choose the narrow card flow. A sidebar, app frame, or zoom level can make
 * the product area narrow while the viewport is still above the old phone
 * breakpoint. Container queries keep every one-column result on the same
 * predictable stack in those cases. */
.graham-catalog-main {
    container-name: graham-catalog-main;
    container-type: inline-size;
}

@container graham-catalog-main (max-width: 640px) {
    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products {
        display: grid !important;
        gap: 8px !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product {
        align-content: start !important;
        align-items: start !important;
        column-gap: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 150px 2.6em 1.2em minmax(30px, auto) minmax(38px, auto) 42px 30px !important;
        height: auto !important;
        min-height: 390px !important;
        overflow: visible !important;
        padding: 10px !important;
        position: relative !important;
        row-gap: 4px !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > * {
        grid-column: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wc-block-components-product-image {
        align-self: stretch !important;
        grid-row: 1 !important;
        height: 150px !important;
        margin: 0 !important;
        max-height: 150px !important;
        min-height: 150px !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wc-block-components-product-image img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-alt-thumbnails {
        display: flex !important;
        gap: 4px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        position: absolute !important;
        top: 116px !important;
        z-index: 3 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > :is(.wc-block-components-product-title, .wp-block-post-title) {
        display: -webkit-box !important;
        grid-row: 2 !important;
        height: 2.6em !important;
        line-height: 1.28 !important;
        margin: 0 !important;
        max-height: 2.6em !important;
        min-height: 2.6em !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-card-identity {
        align-self: start !important;
        display: block !important;
        grid-row: 3 !important;
        height: 1.2em !important;
        min-height: 1.2em !important;
        overflow: visible !important;
        position: static !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-loop-product-sku {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-manufacturer {
        bottom: auto !important;
        left: auto !important;
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
        z-index: 4 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row {
        display: contents !important;
        height: auto !important;
        margin: 0 !important;
        min-height: 0 !important;
        position: static !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row > :is(.graham-availability-with-help, .stock, mark[class*="graham-availability"]) {
        align-self: start !important;
        display: inline-flex !important;
        grid-row: 4 !important;
        justify-self: start !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > :is(.wc-block-components-product-price, .wp-block-woocommerce-product-price, .price) {
        align-items: center !important;
        align-self: stretch !important;
        display: flex !important;
        grid-row: 5 !important;
        height: auto !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 38px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wp-block-woocommerce-product-button {
        align-self: stretch !important;
        grid-row: 6 !important;
        height: 42px !important;
        margin: 0 !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart {
        align-self: stretch !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        height: 42px !important;
        justify-content: flex-end !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart > * {
        align-items: stretch !important;
        box-sizing: border-box !important;
        height: 42px !important;
        margin: 0 !important;
        max-height: 42px !important;
        min-height: 42px !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__quantity-field {
        display: flex !important;
        flex: 0 1 72px !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__quantity {
        align-self: stretch !important;
        box-sizing: border-box !important;
        height: 42px !important;
        margin: 0 !important;
        max-height: 42px !important;
        min-height: 0 !important;
        padding: 0 2px !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__submit {
        flex: 0 1 82px !important;
        min-width: 78px !important;
        padding: 0 8px !important;
    }
}

/* 0.13.632: keep the product-card anatomy stable at every card width.
 * The catalogue can change its column count, but a card always keeps the
 * image, title, item code, status, price, controls, and footer in order. */
html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product {
    align-content: start !important;
    align-items: start !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 150px 2.6em 1.2em minmax(30px, auto) minmax(38px, auto) 42px 30px !important;
    height: auto !important;
    min-height: 390px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product > * {
    grid-column: 1 !important;
    min-width: 0 !important;
    text-align: left !important;
}

html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product
    > :is(.wc-block-components-product-title, .wp-block-post-title) {
    display: block !important;
    grid-row: 2 !important;
    height: 2.6em !important;
    line-height: 1.28 !important;
    max-height: 2.6em !important;
    min-height: 2.6em !important;
    opacity: 1 !important;
    overflow: hidden !important;
    position: relative !important;
    visibility: visible !important;
    width: 100% !important;
    z-index: 3 !important;
}

html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product
    > :is(.wc-block-components-product-title, .wp-block-post-title) a {
    color: var(--graham-blue-dark, #17324a) !important;
    display: block !important;
    opacity: 1 !important;
    overflow: hidden !important;
    visibility: visible !important;
}

html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product > .graham-card-identity {
    display: block !important;
    grid-row: 3 !important;
    height: 1.2em !important;
    min-height: 1.2em !important;
    overflow: visible !important;
    position: relative !important;
    visibility: visible !important;
    width: 100% !important;
    z-index: 3 !important;
}

html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row {
    display: contents !important;
    grid-row: 4 !important;
    height: auto !important;
    min-height: 0 !important;
}

html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product
    > :is(.wc-block-components-product-price, .wp-block-woocommerce-product-price, .price) {
    grid-row: 5 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    visibility: visible !important;
}

html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product
    > .wp-block-woocommerce-product-button,
html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product > .graham-card-cart {
    grid-row: 6 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
}

html body .graham-catalog-main ul.graham-lightweight-products
    > li.graham-lightweight-product.wc-block-product
    > :is(.graham-saved-list-controls, .graham-quote-list-button, .graham-card-footer) {
    grid-row: 7 !important;
    min-width: 0 !important;
}

/* 0.13.631 final cascade: apply the title/code stack to every catalogue card
 * renderer, including the standard Woo block cards used on the live catalogue. */
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
    :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
    > :is(.wc-block-components-product-title, .wp-block-post-title) {
    display: block !important;
    min-width: 0 !important;
    text-align: left !important;
    width: 100% !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
    :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
    > .graham-card-identity {
    align-self: start !important;
    display: block !important;
    min-width: 0 !important;
    text-align: left !important;
    width: 100% !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
    :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
    > .graham-card-identity .graham-loop-product-sku {
    display: block !important;
    margin: 0 0 6px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
}

@media (min-width: 821px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > :is(.wc-block-components-product-title, .wp-block-post-title) {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > .graham-card-identity {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
}

@media (min-width: 560px) and (max-width: 820px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > :is(.wc-block-components-product-title, .wp-block-post-title) {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > .graham-card-identity {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
}

@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > :is(.wc-block-components-product-title, .wp-block-post-title) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > .graham-card-identity {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}

@container graham-catalog-main (max-width: 640px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > :is(.wc-block-components-product-title, .wp-block-post-title) {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > .graham-card-identity {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}

/* The lightweight renderer can be used on catalogue routes that do not carry
 * the normal catalogue body marker. Keep the same final flow reachable from
 * the rendered list itself as well. */
@media (max-width: 559px) {
    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product {
        align-content: start !important;
        column-gap: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 150px 2.6em 1.2em minmax(30px, auto) minmax(38px, auto) 42px 30px !important;
        height: auto !important;
        min-height: 390px !important;
        overflow: visible !important;
        padding: 10px !important;
        position: relative !important;
        row-gap: 4px !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > * {
        grid-column: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wc-block-components-product-image {
        grid-row: 1 !important;
        height: 150px !important;
        margin: 0 !important;
        max-height: 150px !important;
        min-height: 150px !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wc-block-components-product-image img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
        width: 100% !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-alt-thumbnails {
        display: flex !important;
        gap: 4px !important;
        grid-row: auto !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        position: absolute !important;
        top: 116px !important;
        z-index: 3 !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > :is(.wc-block-components-product-title, .wp-block-post-title) {
        display: -webkit-box !important;
        grid-row: 2 !important;
        height: 2.6em !important;
        line-height: 1.28 !important;
        margin: 0 !important;
        max-height: 2.6em !important;
        min-height: 2.6em !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-card-identity {
        grid-row: 3 !important;
        height: 1.2em !important;
        min-height: 1.2em !important;
        overflow: visible !important;
        position: static !important;
        width: 100% !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-loop-product-sku {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-manufacturer {
        left: auto !important;
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
        z-index: 4 !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row {
        display: contents !important;
        height: auto !important;
        margin: 0 !important;
        min-height: 0 !important;
        position: static !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row > :is(.graham-availability-with-help, .stock, mark[class*="graham-availability"]) {
        align-self: start !important;
        display: inline-flex !important;
        grid-row: 4 !important;
        justify-self: start !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > :is(.wc-block-components-product-price, .wp-block-woocommerce-product-price, .price) {
        align-items: center !important;
        display: flex !important;
        grid-row: 5 !important;
        height: auto !important;
        margin: 0 !important;
        min-height: 38px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wp-block-woocommerce-product-button,
    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-select-uom {
        grid-row: 6 !important;
        height: 42px !important;
        margin: 0 !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .graham-catalog-main ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart {
        height: 42px !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* Final narrow-card fallback: the lightweight list is the stable hook on
 * compact catalogue routes, even when the page wrapper varies by template. */
@media (max-width: 559px) {
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product {
        align-content: start !important;
        column-gap: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 150px 2.6em 1.2em minmax(30px, auto) minmax(38px, auto) 42px 30px !important;
        height: auto !important;
        min-height: 390px !important;
        overflow: visible !important;
        padding: 10px !important;
        position: relative !important;
        row-gap: 4px !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > * {
        grid-column: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wc-block-components-product-image {
        grid-row: 1 !important;
        height: 150px !important;
        margin: 0 !important;
        max-height: 150px !important;
        min-height: 150px !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wc-block-components-product-image img {
        height: 100% !important;
        object-fit: contain !important;
        padding: 4px !important;
        width: 100% !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-alt-thumbnails {
        display: flex !important;
        gap: 4px !important;
        grid-row: auto !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        position: absolute !important;
        top: 116px !important;
        z-index: 3 !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > :is(.wc-block-components-product-title, .wp-block-post-title) {
        display: -webkit-box !important;
        grid-row: 2 !important;
        height: 2.6em !important;
        line-height: 1.28 !important;
        margin: 0 !important;
        max-height: 2.6em !important;
        min-height: 2.6em !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-card-identity {
        grid-row: 3 !important;
        height: 1.2em !important;
        min-height: 1.2em !important;
        overflow: visible !important;
        position: static !important;
        width: 100% !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-loop-product-sku {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-manufacturer {
        left: auto !important;
        position: absolute !important;
        right: 10px !important;
        top: 10px !important;
        z-index: 4 !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row {
        display: contents !important;
        height: auto !important;
        margin: 0 !important;
        min-height: 0 !important;
        position: static !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-loop-status-row > :is(.graham-availability-with-help, .stock, mark[class*="graham-availability"]) {
        align-self: start !important;
        display: inline-flex !important;
        grid-row: 4 !important;
        justify-self: start !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > :is(.wc-block-components-product-price, .wp-block-woocommerce-product-price, .price) {
        align-items: center !important;
        display: flex !important;
        grid-row: 5 !important;
        height: auto !important;
        margin: 0 !important;
        min-height: 38px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
        width: 100% !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .wp-block-woocommerce-product-button,
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-select-uom {
        grid-row: 6 !important;
        height: 42px !important;
        margin: 0 !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart {
        height: 42px !important;
        min-height: 42px !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart,
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart > * {
        align-items: stretch !important;
        box-sizing: border-box !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        justify-content: flex-end !important;
    }

    /* UOM is selected and displayed on the product page; keep catalogue
     * cards focused on quantity and Add so the compact row stays clean. */
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__uom-static {
        display: none !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product :is(.graham-card-cart__uom-static, .graham-card-cart__quantity-field, .graham-card-cart__submit) {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        margin: 0 !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__uom-static,
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__quantity-field {
        flex: 0 1 auto !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__submit {
        flex: 0 1 auto !important;
        min-width: 78px !important;
    }

    /* Keep WooCommerce's native number field inside the same compact box as
     * the UOM and Add controls. The field's default min-height/padding can
     * otherwise make the spinner control taller than its neighbours. */
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__quantity-field {
        align-items: stretch !important;
        display: flex !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product .graham-card-cart__quantity-field .graham-card-cart__quantity {
        align-self: stretch !important;
        box-sizing: border-box !important;
        height: 42px !important;
        min-height: 0 !important;
        max-height: 42px !important;
        margin: 0 !important;
        padding: 0 2px !important;
        width: 100% !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-card-identity {
        display: block !important;
        text-align: left !important;
    }

    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product > .graham-card-identity .graham-loop-product-sku {
        text-align: left !important;
    }
}

/* 0.13.630 final cascade: title first, item code second at every card width. */
body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product
    > :is(.wc-block-components-product-title, .wp-block-post-title) {
    display: block !important;
    min-width: 0 !important;
    text-align: left !important;
    width: 100% !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product
    > .graham-card-identity {
    align-self: start !important;
    display: block !important;
    min-width: 0 !important;
    text-align: left !important;
    width: 100% !important;
}

body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
    ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product
    > .graham-card-identity .graham-loop-product-sku {
    display: block !important;
    margin: 0 0 6px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
}

@media (min-width: 821px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-grid-view
        .graham-catalog-main ul.graham-lightweight-products
        > li.graham-lightweight-product.wc-block-product > .graham-card-identity {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
}

@media (min-width: 560px) and (max-width: 820px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product
        > .graham-card-identity {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }
}

@media (max-width: 559px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product
        > .graham-card-identity {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}

@container graham-catalog-main (max-width: 640px) {
    body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product
        > .graham-card-identity {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }
}

/* 0.13.640: final high-specificity guard for the normal responsive cards. */
@media (min-width: 560px) {
    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
        min-height: 416px !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product > * {
        grid-column: 1 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        grid-area: 1 / 1 / 2 / -1 !important;
        height: 148px !important;
        max-height: 148px !important;
        min-height: 148px !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product > .graham-loop-alt-thumbnails {
        grid-area: 2 / 1 / 3 / -1 !important;
        left: auto !important;
        max-width: 100% !important;
        position: static !important;
        top: auto !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product > :is(.wc-block-components-product-title, .wp-block-post-title) {
        grid-area: 3 / 1 / 4 / -1 !important;
        visibility: visible !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product > .graham-card-identity {
        grid-area: 4 / 1 / 5 / -1 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product > .graham-loop-status-row {
        display: flex !important;
        grid-area: 5 / 1 / 6 / -1 !important;
        position: static !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product > :is(.wp-block-woocommerce-product-price, .wc-block-components-product-price) {
        grid-area: 6 / 1 / 7 / -1 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main .wc-block-product > :is(.wp-block-woocommerce-product-button, .graham-select-uom, .graham-card-cart) {
        grid-area: 7 / 1 / 8 / -1 !important;
        width: 100% !important;
    }
}

/* 0.13.644: normalize WooCommerce image sizing in normal catalogue cards.
 * A theme/Woo rule was adding a large right padding to images when a
 * manufacturer logo existed. The logo is already independently anchored, so
 * the image must use the full square slot in every normal card. */
@media (min-width: 560px) {
  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product
  > .wc-block-components-product-image {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    height: 148px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 148px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product
  > .wc-block-components-product-image img {
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    display: block !important;
    height: 100% !important;
    margin: 0 !important;
    max-height: 148px !important;
    max-width: 148px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

/* 0.13.643: keep the manufacturer logo anchored to the card, not the
 * identity row. This reserves the same top-right logo area without changing
 * the image, title, or purchase rows. */
@media (min-width: 560px) {
  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .graham-card-identity {
    position: static !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product .graham-card-manufacturer {
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    z-index: 3 !important;
  }
}

/* 0.13.641: the responsive Woo product-template rule can outrank the
 * catalogue card rule at some widths.  Pin the normal card to one vertical
 * flow using the rendered list structure as well as the catalogue shell. */
@media (min-width: 560px) {
    html body.graham-catalog-view.graham-lightweight-catalogue .graham-catalog-shell.graham-catalog-grid-view section.graham-catalog-main ul.wc-block-product-template__responsive li.wc-block-product {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
    }
}

/* 0.13.639: target the responsive Woo product cards actually rendered on the
 * catalogue.  The earlier renderer-agnostic selector does not match the
 * responsive product-template class, so the normal card stayed two-column. */
@media (min-width: 560px) {
    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product {
        align-content: start !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
        min-height: 416px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > * {
        grid-column: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .wc-block-components-product-image {
        grid-area: 1 / 1 / 2 / -1 !important;
        height: 148px !important;
        max-height: 148px !important;
        min-height: 148px !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-loop-alt-thumbnails {
        align-self: center !important;
        grid-area: 2 / 1 / 3 / -1 !important;
        left: auto !important;
        max-width: 100% !important;
        position: static !important;
        top: auto !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > :is(.wc-block-components-product-title, .wp-block-post-title) {
        grid-area: 3 / 1 / 4 / -1 !important;
        height: 2.4em !important;
        max-height: 2.4em !important;
        min-height: 2.4em !important;
        overflow: hidden !important;
        visibility: visible !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-card-identity {
        grid-area: 4 / 1 / 5 / -1 !important;
        min-height: 1.1em !important;
        overflow: hidden !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > .graham-loop-status-row {
        display: flex !important;
        grid-area: 5 / 1 / 6 / -1 !important;
        height: 28px !important;
        min-height: 28px !important;
        position: static !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > :is(.wp-block-woocommerce-product-price, .wc-block-components-product-price) {
        grid-area: 6 / 1 / 7 / -1 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main .wc-block-product > :is(.wp-block-woocommerce-product-button, .graham-select-uom, .graham-card-cart) {
        grid-area: 7 / 1 / 8 / -1 !important;
        width: 100% !important;
    }
}

/* 0.13.638: normal catalogue cards use the same vertical card structure as
 * edit mode.  The previous desktop two-column rule placed the title and item
 * code beside the image; that made them disappear behind the image at wider
 * widths.  Admin-only controls are not changed. */
@media (min-width: 560px) {
    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product) {
        align-content: start !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
        min-height: 416px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > * {
        grid-column: 1 !important;
        min-width: 0 !important;
        text-align: left !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > .wc-block-components-product-image {
        grid-area: 1 / 1 / 2 / -1 !important;
        height: 148px !important;
        max-height: 148px !important;
        min-height: 148px !important;
        width: 100% !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > .graham-loop-alt-thumbnails {
        align-self: center !important;
        grid-area: 2 / 1 / 3 / -1 !important;
        left: auto !important;
        max-width: 100% !important;
        position: static !important;
        top: auto !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > :is(.wc-block-components-product-title, .wp-block-post-title) {
        grid-area: 3 / 1 / 4 / -1 !important;
        height: 2.4em !important;
        min-height: 2.4em !important;
        max-height: 2.4em !important;
        overflow: hidden !important;
        visibility: visible !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > .graham-card-identity {
        grid-area: 4 / 1 / 5 / -1 !important;
        min-height: 1.1em !important;
        overflow: hidden !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > .graham-loop-status-row {
        display: flex !important;
        grid-area: 5 / 1 / 6 / -1 !important;
        height: 28px !important;
        min-height: 28px !important;
        position: static !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > :is(.wp-block-woocommerce-product-price, .wc-block-components-product-price) {
        grid-area: 6 / 1 / 7 / -1 !important;
    }

    html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
        :is(.wc-block-product-template > .wc-block-product, ul.products > li.product, ul.graham-lightweight-products > li.graham-lightweight-product)
        > :is(.wp-block-woocommerce-product-button, .graham-select-uom, .graham-card-cart) {
        grid-area: 7 / 1 / 8 / -1 !important;
        width: 100% !important;
    }
}
/* 0.13.642: final normal catalogue-card layout. Keep the card anatomy stable
 * at every catalogue width; only the number of columns may change. */
@media (min-width: 560px) {
  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product {
    align-content: start !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
    min-height: 416px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image {
    grid-area: 1 / 1 / 2 / -1 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-title {
    grid-area: 3 / 1 / 4 / -1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wp-block-post-title {
    grid-area: 3 / 1 / 4 / -1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .graham-card-identity {
    grid-area: 4 / 1 / 5 / -1 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .graham-stock-status {
    grid-area: 5 / 1 / 6 / -1 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-price {
    grid-area: 6 / 1 / 7 / -1 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-button {
    grid-area: 7 / 1 / 8 / -1 !important;
    min-width: 0 !important;
    width: auto !important;
  }
}
/* 0.13.645: last-word normal-card image/logo normalization. This must remain
 * after the legacy responsive and WooCommerce card rules. */
@media (min-width: 560px) {
  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .graham-card-identity {
    position: static !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product .graham-card-manufacturer {
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    z-index: 3 !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    height: 148px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 148px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body.graham-catalog-view.graham-lightweight-catalogue
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image img {
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    display: block !important;
    height: 100% !important;
    margin: 0 !important;
    max-height: 148px !important;
    max-width: 148px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    width: 100% !important;
  }
}
/* 0.13.646: bring normal catalogue cards onto the same single-track anatomy
 * used by the working edit preview. The selector intentionally requires the
 * catalogue shell, so product-detail pages are unaffected. */
@media (min-width: 560px) {
  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product {
    align-content: start !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 148px 38px 2.4em 1.1em 28px 36px 40px 30px 0 !important;
    min-height: 416px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    grid-area: 1 / 1 / 2 / -1 !important;
    height: 148px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 148px !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wc-block-components-product-image img {
    aspect-ratio: 1 / 1 !important;
    box-sizing: border-box !important;
    display: block !important;
    height: 100% !important;
    margin: 0 !important;
    max-height: 148px !important;
    max-width: 148px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    width: 100% !important;
  }

  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wp-block-post-title {
    grid-area: 3 / 1 / 4 / -1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    width: auto !important;
  }

  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .graham-card-identity {
    grid-area: 4 / 1 / 5 / -1 !important;
    min-width: 0 !important;
    position: static !important;
    width: auto !important;
  }

  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product .graham-card-manufacturer {
    bottom: auto !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    z-index: 3 !important;
  }

  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .graham-loop-status-row {
    grid-area: 5 / 1 / 6 / -1 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wp-block-woocommerce-product-price {
    grid-area: 6 / 1 / 7 / -1 !important;
    min-width: 0 !important;
    width: auto !important;
  }

  html body.graham-catalog-view
  .graham-catalog-shell.graham-catalog-grid-view
  .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template
  > li.wc-block-product > .wp-block-button.wc-block-components-product-button {
    grid-area: 7 / 1 / 8 / -1 !important;
    min-width: 0 !important;
    width: auto !important;
  }
}

/* 0.13.681: final mobile parity pass.  lightweight-catalogue.css is loaded
 * after normal-card-final.css, so this is the last word for phone-width cards.
 * Keep the desktop anatomy: only the outer catalogue grid changes columns. */
@media (max-width: 559px) {
  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product {
    align-content: start !important;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 148px !important;
    grid-template-rows: 176px 14px 2.4em 1.1em 28px 36px 10px 30px 0 !important;
    height: 404px !important;
    min-height: 404px !important;
    overflow: hidden !important;
    padding: 10px !important;
    position: relative !important;
    width: 100% !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .wc-block-components-product-image {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    grid-area: 1 / 1 / 2 / -1 !important;
    height: 176px !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 176px !important;
    overflow: hidden !important;
    padding: 0 58px 0 0 !important;
    width: 100% !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .wc-block-components-product-image a,
  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .wc-block-components-product-image img {
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    height: 176px !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    width: 176px !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product .graham-card-manufacturer {
    bottom: auto !important;
    height: 36px !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    width: 90px !important;
    z-index: 5 !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product .graham-loop-alt-thumbnails {
    align-content: start !important;
    bottom: auto !important;
    display: grid !important;
    gap: 4px !important;
    grid-auto-rows: 68px !important;
    grid-template-columns: 90px !important;
    left: auto !important;
    max-width: 90px !important;
    position: absolute !important;
    right: 10px !important;
    top: 50px !important;
    width: 90px !important;
    z-index: 4 !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail {
    align-items: center !important;
    display: flex !important;
    flex: 0 0 68px !important;
    height: 68px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 68px !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail__image {
    aspect-ratio: 1 / 1 !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    width: 100% !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > :is(.wc-block-components-product-title, .wp-block-post-title) {
    display: -webkit-box !important;
    grid-area: 3 / 1 / 4 / -1 !important;
    height: 2.4em !important;
    line-height: 1.28 !important;
    margin: 0 !important;
    max-height: 2.4em !important;
    min-height: 2.4em !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .graham-card-identity {
    grid-area: 4 / 1 / 5 / -1 !important;
    height: 1.1em !important;
    min-height: 1.1em !important;
    overflow: hidden !important;
    position: static !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product .graham-loop-status-row {
    display: flex !important;
    grid-area: 5 / 1 / 6 / -1 !important;
    height: 28px !important;
    margin: 0 !important;
    min-height: 28px !important;
    position: static !important;
    width: auto !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > :is(.wp-block-woocommerce-product-price, .graham-family-pricing) {
    align-items: flex-end !important;
    align-self: start !important;
    display: flex !important;
    grid-area: 6 / 1 / 7 / 2 !important;
    height: 30px !important;
    line-height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > :is(.wc-block-components-product-button, .graham-card-uom) {
    align-self: start !important;
    grid-area: 6 / 2 / 7 / 3 !important;
    height: 30px !important;
    margin: 0 !important;
    min-height: 30px !important;
    width: 100% !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product :is(.graham-card-cart, .graham-card-cart__quantity-field, .graham-card-cart__submit, .wc-block-components-product-button__button) {
    height: 30px !important;
    min-height: 30px !important;
  }

  html body.graham-catalog-view.graham-catalog-view:not(.graham-shop-landing):not(.graham-shop-landing)
  .graham-catalog-shell.graham-catalog-grid-view .graham-catalog-main
  ul.wc-block-product-template__responsive.wc-block-product-template > li.wc-block-product > .graham-family-choose-options {
    grid-area: 7 / 1 / 8 / -1 !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    width: 100% !important;
  }
}

/* 0.13.684: final override for every catalogue card renderer. */
@media (max-width: 1400px) {
  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 148px !important;
    grid-template-rows: 176px 14px 2.4em 1.1em 28px 30px 10px 30px 0 !important;
    gap: 0 !important;
    height: 404px !important;
    min-height: 404px !important;
    overflow: hidden !important;
    padding: 10px !important;
    position: relative !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .wc-block-components-product-image {
    grid-area: 1 / 1 / 2 / -1 !important;
    height: 176px !important;
    min-height: 176px !important;
    margin: 0 !important;
    padding: 0 100px 0 0 !important;
    position: relative !important;
    width: auto !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .wc-block-components-product-image :is(a, img) {
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    height: 176px !important;
    max-height: 176px !important;
    max-width: 176px !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 0 !important;
    width: 176px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) .graham-card-manufacturer {
    bottom: auto !important;
    height: 36px !important;
    left: auto !important;
    margin: 0 !important;
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    width: 90px !important;
    z-index: 5 !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .graham-loop-alt-thumbnails {
    align-content: start !important;
    box-sizing: border-box !important;
    bottom: auto !important;
    display: grid !important;
    gap: 4px !important;
    grid-auto-rows: 60px !important;
    grid-template-columns: 90px !important;
    grid-template-rows: repeat(2, 60px) !important;
    height: 124px !important;
    left: auto !important;
    max-height: 124px !important;
    max-width: 90px !important;
    position: absolute !important;
    right: 10px !important;
    top: 50px !important;
    width: 90px !important;
    z-index: 4 !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail {
    align-items: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex: 0 0 60px !important;
    height: 60px !important;
    margin: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 60px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .graham-loop-alt-thumbnails .graham-loop-alt-thumbnail__image {
    aspect-ratio: 1 / 1 !important;
    height: 60px !important;
    max-height: 60px !important;
    max-width: 60px !important;
    object-fit: contain !important;
    width: 60px !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > :is(.wc-block-components-product-title, .wp-block-post-title) {
    display: -webkit-box !important;
    grid-area: 3 / 1 / 4 / -1 !important;
    height: 2.4em !important;
    line-height: 1.28 !important;
    margin: 0 !important;
    max-height: 2.4em !important;
    min-height: 2.4em !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    width: auto !important;
  }

  html body.graham-catalog-view:not(.graham-shop-landing) .graham-catalog-main
  :is(ul.wc-block-product-template > li.wc-block-product,
      ul.graham-lightweight-products > li.graham-lightweight-product.wc-block-product,
      ul.products > li.product) > .graham-card-identity {
    grid-area: 4 / 1 / 5 / -1 !important;
    height: 1.1em !important;
    min-height: 1.1em !important;
    overflow: hidden !important;
    position: static !important;
    width: auto !important;
  }
}
