@media (max-width: 760px) {
  body main.retail .grid.grid:is([data-category-products], [data-shop-products]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body main.retail .grid.grid:is([data-category-products], [data-shop-products]) > a.card:has(figure):not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    justify-items: center;
    gap: 7px;
    box-sizing: border-box;
    min-width: 0;
    padding: 5px 5px 10px;
    border: 1px solid #a7b7c7;
    border-radius: 13px;
    background: #f6faffb3;
    box-shadow: none;
    transform: none;
    text-align: center;
  }

  body main.retail .grid.grid:is([data-category-products], [data-shop-products]) > a.card figure {
    grid-row: auto;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0;
    border-radius: 9px;
    background: #e9edf2;
  }

  body main.retail .grid.grid:is([data-category-products], [data-shop-products]) > a.card figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  body main.retail .grid.grid:is([data-category-products], [data-shop-products]) > a.card h3 {
    align-self: center;
    margin: 0;
    color: #153655;
    font-size: clamp(.8rem, 3.75vw, 1rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-align: center;
  }

  body main.retail .grid.grid:is([data-category-products], [data-shop-products]) > a.card small {
    justify-self: center;
    align-self: start;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: 3px 7px;
    border-radius: 999px;
    background: #dce9f6;
    color: #153655;
    font-size: clamp(.72rem, 3.45vw, .92rem);
    line-height: 1.5;
    letter-spacing: normal;
    white-space: normal;
    text-align: center;
  }

  body main.retail .grid.grid:is([data-category-products], [data-shop-products]) > :not(a.card) {
    grid-column: 1 / -1;
  }
}

@media (width > 760px) {
  body main.retail .grid.grid.grid:is([data-shop-products], [data-category-products]) > a.card:has(figure) {
    text-align: center;
  }
  body main.retail .grid.grid.grid:is([data-shop-products], [data-category-products]) > a.card:has(figure) :is(h3, small) {
    justify-self: center;
    text-align: center;
  }
}
