/* Shop listings and Favourites: not drawn in the PDFs, built from the design's pieces — the title band, the
   FEATURED PRODUCTS cards in a grid (4 across inside the featured window, 2 on phones), chips in the option-chip
   style, the ADD TO CART button. */
.pm-shop { width: min(100% - 40px, 1141.3px); margin: 0 auto; padding: 26px 0 78px; }
.pm-shop__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px 28px; }

/* category chips */
.pm-chips { flex: 1; min-width: 0; }
.pm-chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-chips__row--sub { margin-top: 10px; }
.pm-chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border: 1px solid var(--pm-rule); border-radius: 15px;
  font: 600 11px/1 var(--pm-font); letter-spacing: var(--pm-track); text-transform: uppercase; white-space: nowrap;
  transition: background var(--pm-fast), color var(--pm-fast), border-color var(--pm-fast);
}
.pm-chip:hover { border-color: var(--pm-thumb-active); }
.pm-chip[aria-current="page"] { background: var(--pm-thumb-active); border-color: var(--pm-thumb-active); color: var(--pm-blush); }
.pm-chips__row--sub .pm-chip { height: 26px; text-transform: none; font-weight: 500; }

/* sort */
.pm-sort { display: flex; align-items: center; gap: 10px; flex: none; }
.pm-sort__label { font: 600 11px/1 var(--pm-font); text-transform: uppercase; }
.pm-sort__select {
  height: 30px; padding: 0 30px 0 12px; border: 1px solid var(--pm-rule); border-radius: 15px; background: transparent; font-size: 12px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235D638C' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.js .pm-sort__go { display: none; }
.pm-sort__go { min-height: 30px; padding: 0 14px; }

.pm-shop__count { margin: 22px 0 18px; font-size: 12px; }

/* the grid: FEATURED PRODUCTS cards, 8.85 apart as in the carousel, rows 36 apart */
.pm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 8.85px; transition: opacity var(--pm-fast); }
.pm-grid.is-loading, .pm-archive.is-loading .pm-grid { opacity: .45; pointer-events: none; }
.pm-grid .pm-card__fav { right: 24px; bottom: 58px; }
.pm-grid .pm-card__add { right: 22px; bottom: 21px; }
.pm-grid .pm-card__name { margin-top: 20px; font-size: 16px; line-height: 19.2px; }
.pm-grid .pm-card__price { margin-top: 6px; font-size: 16px; line-height: 19.2px; }
.pm-grid > li.is-new { animation: pm-rise .5s var(--pm-ease) both; }
@keyframes pm-rise { from { opacity: 0; transform: translateY(16px); } }
.pm-grid > li.is-leaving { opacity: 0; transform: scale(.97); transition: opacity var(--pm-mid), transform var(--pm-mid); }

/* pages: a centred Load more, small numbers under it */
.pm-pager { display: grid; justify-items: center; gap: 18px; margin-top: 52px; }
.pm-pager__more { min-width: 186px; }
.pm-pager__more.is-loading { color: transparent; }
.pm-pager .page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 12px; }
.pm-pager .page-numbers a, .pm-pager .page-numbers span { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; }
.pm-pager .page-numbers a:hover { box-shadow: inset 0 0 0 1px var(--pm-rule); }
.pm-pager .page-numbers .current { background: var(--pm-thumb-active); color: var(--pm-blush); }

/* empty: the wave mark, a line and the button */
.pm-empty { display: grid; justify-items: center; gap: 18px; padding: 70px 20px 40px; text-align: center; }
.pm-empty__mark { width: 62px; height: 28px; color: var(--pm-periwinkle); }

@media (max-width: 1023px) {
  .pm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pm-shop { width: calc(100% - 25.6px); padding: 14px 0 48px; }
  .pm-shop__bar { flex-direction: column; gap: 12px; }
  .pm-chips { width: calc(100% + 25.6px); margin: 0 -12.8px; }
  .pm-chips__row { flex-wrap: nowrap; overflow-x: auto; padding: 0 12.8px; scrollbar-width: none; gap: 6px; }
  .pm-chips__row::-webkit-scrollbar { display: none; }
  .pm-chip { height: 26px; padding: 0 11px; font-size: 9.5px; }
  .pm-sort { align-self: flex-end; }
  .pm-sort__label { font-size: 9.5px; }
  .pm-sort__select { height: 26px; font-size: 11px; }
  .pm-shop__count { margin: 14px 0 12px; font-size: 10px; }
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 5.5vw; }
  .pm-grid .pm-card__add { right: 9px; bottom: 9px; }
  .pm-grid .pm-card__name { margin-top: 10px; font-size: 11px; line-height: 13.2px; }
  .pm-grid .pm-card__price { margin-top: 3px; font-size: 11px; line-height: 13.2px; }
  .pm-pager { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .pm-grid > li.is-new { animation: none; } }
