/* Shop layout (views/catalog/shop.ejs): /shop, /shop/:category, /shop?collection=…, /search.
   Sizes are the mock-up's (refs/shop.png, 1024 wide, 14px root) written in rem: px / 14. */
.page-shopfront { --shop-pad: 1.4286rem; --shop-tint: #EDF2FB; --shop-line: #DCE5F3; }
.shop-wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--shop-pad)); margin-inline: auto; padding-inline: var(--shop-pad); }

/* ---------- hero: photo band with the copy on its white left side, two faint paws, blue underline ---------- */
.page-shopfront .hero { --hero-ratio: 4.129; --hero-bg: #F5F8FD; }
.page-shopfront .hero .swoosh { color: var(--blue-bright); transform: scaleY(-1) rotate(-1.5deg); }
.page-shopfront .hero-title .ic { color: #A9C8F6; }
@media (min-width: 901px) {
  .page-shopfront .hero { --hero-h: 17.5rem; }
  .page-shopfront .hero::before { display: none; }
  .page-shopfront .hero-photo { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%); mask-image: linear-gradient(90deg, transparent 0, #000 6%); }
  .page-shopfront .hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: .5rem; background: linear-gradient(rgba(248, 250, 254, 0), var(--page)); }
  .page-shopfront .hero-copy { margin-bottom: 2rem; }
  .page-shopfront .hero-title { font-size: 4.6rem; line-height: 1; letter-spacing: -.02em; gap: 0; }
  .page-shopfront .hero-title .ic { width: 1.22em; height: 1.22em; margin: -.22em 0 -.42em .5em; transform: rotate(9deg); }
  .page-shopfront .hero-sub { font-size: 1.72rem; line-height: 1.19; margin-top: .53rem; letter-spacing: -.028em; word-spacing: .09em; }
  .page-shopfront .hero .swoosh { width: 11.9rem; height: .8rem; margin-top: .3rem; }
  .page-shopfront .hero-text { font-size: 1.0357rem; line-height: 1.3; margin-top: .6rem; letter-spacing: -.03em; word-spacing: .05em; }
  .page-shopfront .hero::after { content: ""; position: absolute; z-index: -1; bottom: 2.3rem; width: 3.9rem; height: 3.9rem; opacity: .75; transform: rotate(-14deg);
    left: calc(max(0px, (100vw - var(--container) - 2 * var(--gutter)) / 2) + var(--gutter) + var(--inset) + 20.1rem);
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23A9C4F0'%3E%3Cellipse cx='4.600' cy='10.600' rx='2.150' ry='2.900' transform='rotate(-24 4.600 10.600)'/%3E%3Cellipse cx='9.100' cy='5.500' rx='2.300' ry='3.150' transform='rotate(-8 9.100 5.500)'/%3E%3Cellipse cx='14.900' cy='5.500' rx='2.300' ry='3.150' transform='rotate(8 14.900 5.500)'/%3E%3Cellipse cx='19.400' cy='10.600' rx='2.150' ry='2.900' transform='rotate(24 19.400 10.600)'/%3E%3Cpath d='M12 10.400c3 0 6.100 3.600 6.100 6.700 0 2.400-1.900 3.500-3.600 3.100-.9-.2-1.600-.5-2.500-.5s-1.600.3-2.500.5c-1.700.4-3.600-.7-3.600-3.100 0-3.100 3.100-6.700 6.100-6.700z'/%3E%3C/svg%3E"); }
  /* "Shop" in the header: navy with a thin underline, as drawn */
  .page-shopfront .nav-item.is-current > .nav-link, .page-shopfront .nav-item.is-current > .nav-toggle { color: var(--navy); }
  .page-shopfront .nav-item.is-current > .nav-link::after { background: var(--navy); height: 2px; bottom: .25rem; }
}

/* wider than 1672px: the band grows with the window, so the photo keeps filling it (as on the pet pages) */
@media (min-width: 1673px) { .page-shopfront .hero { --hero-h: 16.75vw; } }

/* ---------- For Dogs / For Cats ---------- */
.shop-pets { margin-top: .05rem; }
.shop-pets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.shop-pet { position: relative; display: block; aspect-ratio: 484 / 189; border-radius: .5rem; overflow: hidden; background: #032451; color: #fff; isolation: isolate; }
.shop-pet:hover { text-decoration: none; color: #fff; }
.shop-pet-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .25s; }
.shop-pet:hover .shop-pet-img { transform: scale(1.025); }
.shop-pet-copy { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; align-items: flex-start; padding: 1.3rem 0 0 2.3rem; }
.shop-pet-paw { width: 3.6rem; height: 3.6rem; color: #fff; margin: -.1rem 0 0 -.25rem; }
.shop-pet-title { font-size: 2.1rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; margin-top: .02rem; }
.shop-pet-text { font-size: 1.143rem; font-weight: 500; line-height: 1.43rem; margin-top: .57rem; letter-spacing: -.01em; }
.shop-pet-go { display: inline-flex; align-items: center; justify-content: center; width: 1.86rem; height: 1.86rem; margin-top: .42rem; border: .12rem solid #fff; border-radius: 50%; transition: background .15s, color .15s; }
.shop-pet-go .ic { width: 1rem; height: 1rem; stroke-width: 2.2; }
.shop-pet:hover .shop-pet-go, .shop-pet:focus-visible .shop-pet-go { background: #fff; color: var(--navy); }

/* ---------- heading above a category, a collection or a search ---------- */
.shop-head { padding-top: 1.1rem; }
.shop-head .crumbs { font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 0; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: ""; width: .375rem; height: .375rem; margin: 0 .625rem 0 .5rem; border-right: 1.6px solid #8D9AB3; border-top: 1.6px solid #8D9AB3; transform: rotate(45deg); }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--navy); font-weight: 700; }
.shop-title { font-size: 2.1rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--navy); margin-top: .35rem; overflow-wrap: anywhere; }

/* ---------- listing: sidebar + results ---------- */
.shop-list { padding: 1.43rem 0 1.7rem; scroll-margin-top: calc(var(--header-h) + .5rem); }
.shop-head + .shop-list { padding-top: 1rem; }
.shop-cols { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.93rem; align-items: start; }
@media (min-width: 901px) {
  .shop-side.drawer { position: static; width: auto; transform: none; visibility: visible; display: block; background: none; box-shadow: none; z-index: auto; transition: none; }
  .shop-side .drawer-head, .shop-side .drawer-foot { display: none; }
  .shop-side .drawer-body { padding: 0; overflow: visible; }
}

/* the "Filter By" box */
.shop-filter { background: #FBFCFE; border: 1px solid var(--shop-line); border-radius: .5rem; box-shadow: 0 .15rem .5rem rgba(11, 36, 71, .06); overflow: hidden; color: var(--navy); }
.shop-filter-title { display: flex; align-items: center; height: 2.72rem; padding: 0 .86rem .1rem; background: linear-gradient(90deg, #022A62, #02214F); color: #fff; font-size: 1.43rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.shop-filter-body { padding: 0 .86rem; }
.shop-group { padding: .8rem 0 .91rem; border-bottom: 1px solid var(--shop-line); }
.shop-group:last-of-type { border-bottom: 0; }
.shop-group-title { display: block; font-size: 1.0714rem; font-weight: 800; line-height: 1.25rem; letter-spacing: -.02em; color: var(--navy); list-style: none; pointer-events: none; }
.shop-group-title::-webkit-details-marker { display: none; }
.shop-group-body { padding-top: .57rem; }
.shop-group-body .muted { font-size: .93rem; }
/* price: two thumbs on one track */
.price-dual { position: relative; height: 1.3rem; margin: .72rem .5rem 0 .2rem; }
.price-dual::before, .price-dual::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .3rem; margin-top: -.15rem; border-radius: 1rem; }
.price-dual::before { background: #D6E0F0; }
.price-dual::after { left: var(--lo, 0%); right: calc(100% - var(--hi, 100%)); background: var(--blue-bright); }
.price-dual input { position: absolute; z-index: 1; inset: 0 -.6rem; width: calc(100% + 1.2rem); height: 100%; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.price-dual input:focus { outline: none; }
.price-dual input::-webkit-slider-runnable-track { background: none; height: 100%; }
.price-dual input::-moz-range-track { background: none; height: 100%; }
.price-dual input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 1.2rem; height: 1.2rem; margin-top: .05rem; border: 0; border-radius: 50%; background: #0B4DB4; box-shadow: 0 0 0 .08rem rgba(255, 255, 255, .7); cursor: grab; }
.price-dual input::-moz-range-thumb { pointer-events: auto; width: 1.2rem; height: 1.2rem; border: 0; border-radius: 50%; background: #0B4DB4; cursor: grab; }
.price-dual input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 .2rem rgba(19, 119, 250, .35); }
.price-dual input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 .2rem rgba(19, 119, 250, .35); }
.price-out { display: block; text-align: center; font-size: .9643rem; font-weight: 500; line-height: 1.2; margin-top: .27rem; letter-spacing: -.01em; }
.shop-price { padding-top: .84rem; padding-bottom: 1.2rem; }
/* checkboxes */
.shop-check { display: flex; align-items: center; gap: .72rem; min-height: 1.75rem; font-size: 1.0357rem; font-weight: 500; letter-spacing: -.012em; cursor: pointer; }
.shop-check input { -webkit-appearance: none; appearance: none; flex: none; width: 1.22rem; height: 1.22rem; margin: 0 0 0 .07rem; border: 1px solid #C9D5E8; border-radius: .22rem; background: #fff center / .9rem no-repeat; cursor: pointer; }
.shop-check input:checked { border-color: var(--blue); background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.500 4.500 4.500L19 7.500'/%3E%3C/svg%3E"); }
.shop-check input:focus-visible, .shop-rate input:focus-visible ~ .rating { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
/* rating rows: the row is the control */
.shop-rates { padding-top: .34rem; }
.shop-rate { position: relative; display: flex; align-items: center; gap: .6rem; min-height: 2.21rem; margin: 0 -.3rem; padding: 0 .3rem; border-radius: .3rem; font-size: 1.0357rem; font-weight: 500; letter-spacing: -.012em; cursor: pointer; }
.shop-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.shop-rate .stars { gap: .3rem; }
.shop-rate .stars .ic { width: 1.25rem; height: 1.25rem; }
.shop-rate:hover { background: #F0F5FD; }
.shop-rate.is-active { background: var(--blue-soft); font-weight: 700; }
.shop-group[data-group="rating"] { padding-bottom: .04rem; }
.shop-group[data-group="stock"] { padding-top: .59rem; padding-bottom: .77rem; }
.filter-apply { padding: 0 0 1rem; }
.shop-clear { display: flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: 0 .86rem 0 .93rem; border-top: 1px solid var(--shop-line); font-size: .9643rem; font-weight: 600; letter-spacing: -.015em; color: var(--navy); }
.shop-clear .ic { width: 1rem; height: 1rem; color: var(--blue-bright); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.shop-clear:hover { color: var(--blue); text-decoration: none; }
.drawer-foot { padding: .875rem 0 .25rem; }

/* result line + sort */
.shop-bar { display: flex; align-items: center; gap: .75rem; min-height: 2.21rem; margin-bottom: .43rem; }
.catalog-filter-btn { display: none; }
.catalog-count { flex: 1; min-width: 0; font-size: .9643rem; font-weight: 500; letter-spacing: -.015em; color: var(--navy); }
.shop-sort { display: flex; align-items: center; gap: .5rem; font-size: .9643rem; font-weight: 500; letter-spacing: -.015em; color: var(--navy); white-space: nowrap; }
.shop-sort-select { -webkit-appearance: none; appearance: none; height: 2.21rem; min-width: 11.1rem; padding: 0 2.2rem 0 .8rem; border: 1px solid var(--shop-line); border-radius: .36rem; font: inherit; color: var(--navy); cursor: pointer;
  background: #fff right .75rem center / .8rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2447' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E"); }
.shop-sort-select:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 1px; }
.sort-go { margin-left: .25rem; height: 2.21rem; padding: 0 .75rem; border: 0; border-radius: .36rem; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.catalog-chips { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem .5rem; margin: 0 0 .7rem; padding: 0; list-style: none; }
.catalog-chips .chip { padding: .1875rem .5rem .1875rem .6875rem; font-size: .8125rem; border-width: 1px; }
.catalog-chips .chip .ic { width: .75rem; height: .75rem; stroke-width: 2.6; }
.catalog-clear { font-size: .8438rem; font-weight: 700; margin-left: .25rem; text-decoration: underline; }

/* cards */
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
[data-swap="results"].is-loading .shop-grid, [data-swap="results"].is-loading .catalog-empty { opacity: .45; pointer-events: none; transition: opacity .15s; }
.shop-card { display: flex; flex-direction: column; align-items: center; padding: 0 .7rem .78rem; background: var(--shop-tint); border-radius: .5rem; text-align: center; color: var(--navy); transition: box-shadow .15s, transform .15s; }
.shop-card:hover { text-decoration: none; color: var(--navy); box-shadow: 0 .375rem 1.25rem rgba(11, 36, 71, .12); transform: translateY(-1px); }
.shop-card:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
.shop-card-media { display: block; position: relative; width: 100%; aspect-ratio: 226 / 131; }
/* the pictures are trimmed to the product, so the box is nearly the whole panel; it may reach a few px under the star row (same tint, blended) */
.shop-card-media img { position: absolute; inset: -1% 0 auto; width: 100%; height: 107%; padding: 0 3.5%; object-fit: contain; mix-blend-mode: darken; transition: transform .2s; }
.shop-card:hover .shop-card-media img { transform: scale(1.04); }
.shop-card-media img[src*="/retractable-dog-leash."] { padding-inline: 11%; }   /* drawn smaller than the others in the mock-up */
.shop-card.is-soldout .shop-card-media img { opacity: .55; }
.shop-card .rating { justify-content: center; gap: .5rem; margin-top: .1rem; }
.shop-card .stars { gap: .16rem; }
.shop-card .stars .ic { width: 1.07rem; height: 1.07rem; }
.shop-card .rating-count { font-size: .9643rem; font-weight: 500; color: var(--navy); letter-spacing: -.01em; }
.shop-card-name { display: block; margin-top: .3rem; font-size: 1.0357rem; font-weight: 700; line-height: 1.3; letter-spacing: -.03em; word-spacing: .05em; }
.shop-card:hover .shop-card-name { color: var(--blue); }
.shop-card-price { display: block; margin-top: .22rem; font-size: 1.25rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.shop-card-price s { font-size: .875rem; font-weight: 600; color: var(--muted); margin-left: .375rem; }
.shop-card-price.is-sale > span { color: var(--red); }
.shop-card-price em { display: block; font-style: normal; font-size: .8125rem; font-weight: 700; color: var(--muted); margin-top: .125rem; }
.catalog-empty { padding: 2.5rem 1rem 3rem; background: var(--shop-tint); border-radius: .5rem; }
.catalog-empty h2 { font-size: clamp(1.3125rem, 2.2vw, 1.75rem); }
.catalog-empty .empty-actions { justify-content: center; }
.shop-more { margin-top: 2rem; }
/* /search without words: no filters, a search field, popular products under it */
.shop-cols.is-search-start { display: block; max-width: 56rem; margin-left: auto; margin-right: auto; }
.search-start { display: flex; gap: .5rem; max-width: 30rem; margin: 0 auto; }
.search-start .input { flex: 1 1 auto; min-width: 0; }
.search-start .btn { flex: none; }
.shop-more-title { font-size: 1.43rem; font-weight: 800; color: var(--navy); margin-bottom: .8rem; }

/* pagination: small rounded squares, current page solid blue */
.pagination.shop-pages { gap: .5rem; margin-top: 1.36rem; }
.shop-pages a, .shop-pages span { min-width: 2.07rem; height: 2.07rem; padding: 0 .3rem; border: 1px solid var(--shop-line); border-radius: .36rem; font-size: 1.0357rem; font-weight: 600; }
.shop-pages a:hover { border-color: var(--blue-bright); }
.shop-pages .is-current { background: var(--blue-bright); border-color: var(--blue-bright); color: #fff; font-weight: 700; }
.shop-pages .gap { min-width: 1.6rem; border: 0; background: none; font-weight: 800; letter-spacing: .05em; }
.shop-pages .ic { width: 1rem; height: 1rem; stroke-width: 2.6; }

/* ---------- bottom banners ---------- */
.shop-banners { padding-bottom: 1.36rem; }
.shop-banners-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.shop-banner { position: relative; aspect-ratio: 484 / 136; border-radius: .5rem; overflow: hidden; isolation: isolate; }
.shop-banner-dark { background: #03224E; color: #fff; }
.shop-banner-light { background: #DFE0FE; color: var(--navy); }
.shop-banner-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.shop-banner-copy { position: absolute; inset: 0 auto 0 0; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: .1rem 0 0 1.7rem; }
.shop-banner-title { font-size: 2rem; font-weight: 700; line-height: 2.07rem; letter-spacing: -.015em; }
.shop-banner-text { font-size: 1.143rem; font-weight: 500; line-height: 1.43rem; margin-top: .6rem; letter-spacing: -.012em; }
.shop-banner-light .shop-banner-copy { padding: 0 0 .9rem 1.6rem; }
.shop-banner-light .shop-banner-title { color: #1558D6; font-weight: 800; }
.shop-banner-light .shop-banner-text { margin-top: .95rem; }

/* ---------- newsletter band as drawn on this page: big paw far left, heart doodle far right ---------- */
@media (min-width: 901px) {
  .page-shopfront .newsletter-inner { min-height: 4.64rem; padding-block: .3rem; gap: 2.2rem; max-width: none; padding-inline: 2.3rem 2rem; }
  .page-shopfront .newsletter:not(.newsletter-loop) .newsletter-inner { padding-right: 2rem; }
  .page-shopfront .newsletter-paw { width: 4.4rem; height: 4.4rem; margin: -.3rem -.1rem -.3rem 0; transform: rotate(-8deg); }
  .page-shopfront .newsletter-copy { padding-top: .3rem; }
  .page-shopfront .newsletter-title { font-size: 1.36rem; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
  .page-shopfront .newsletter-text { font-size: 1.0714rem; margin-top: .1rem; letter-spacing: -.015em; }
  .page-shopfront .newsletter-form { flex: 0 0 29.2rem; margin-left: auto; margin-right: 6.2rem; }
  .page-shopfront .newsletter-fields { gap: 1.07rem; }
  .page-shopfront .newsletter-fields .input, .page-shopfront .newsletter-fields .btn { height: 2.64rem; }
  .page-shopfront .newsletter-fields .btn { min-width: 10.6rem; font-size: 1.143rem; }
  .page-shopfront .newsletter-mark { display: none; }
  .page-shopfront .newsletter-inner::after { content: ""; position: absolute; right: 1.75rem; top: 50%; width: 4.3rem; height: 3.8rem; margin-top: -2rem; pointer-events: none;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 49' fill='none' stroke='%23fff' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22.500 39.500C17.500 31 8.500 24.500 9.500 15.500 10.200 9.800 15 6.500 19.500 8.200c3.600 1.400 5.200 5.200 5.600 9.300C27.500 11 32.500 5.500 38.500 6.800c5.400 1.200 7 7 5 12.200-3 7.800-12.500 14.500-21 20.500z'/%3E%3Cpath d='M4 44.500c14-6.500 31-9.500 48-7.500'/%3E%3C/svg%3E"); }
}

/* ---------- footer as drawn on this page: columns a little further right, room under the copyright line, larger paw mark ---------- */
@media (min-width: 901px) {
  .page-shopfront .footer-main { padding-top: 1.05rem; grid-template-columns: 33.2% 15.7% 22.7% minmax(0, 1fr); }
  .page-shopfront .footer-brand { padding: .55rem 0 0 1.65rem; }
  .page-shopfront .footer-tagline { margin-top: -.28rem; }
  .page-shopfront .footer-pay { margin-top: 1.9rem; margin-right: .8rem; }
  .page-shopfront .footer-bottom { padding-block: .8rem 5.55rem; margin-top: .08rem; }
  .page-shopfront .footer-mark { width: 6.4rem; height: 6.4rem; right: .95rem; bottom: .6rem; color: #2D4DA4; opacity: .9; transform: rotate(6deg); }
}

/* ---------- tablets and phones (root size is 16px here) ---------- */
@media (max-width: 900px) {
  .page-shopfront { --shop-pad: 1rem; }
  /* header icons: 44px tap targets, and the cart badge stays inside the screen (as on the pet pages) */
  .page-shopfront .header-action, .page-shopfront .menu-btn { width: 2.75rem; height: 2.75rem; }
  .page-shopfront .header-actions { gap: 0; margin-right: 0; }
  /* hero: the photo band shows the whole dog and cat (the right 62% of the picture), the copy sits under it */
  .page-shopfront .hero-media { height: auto; aspect-ratio: 2.55; max-height: 22rem; }
  .page-shopfront .hero-photo img { object-position: right center; }
  .page-shopfront .hero-title .ic { width: .8em; height: .8em; margin-left: .3em; transform: rotate(9deg); }
  .page-shopfront .hero .swoosh { width: 10rem; }
  .shop-pets { margin-top: 1rem; }
  .shop-pets-grid { gap: .75rem; }
  .shop-pet { aspect-ratio: 2 / 1; }
  .shop-pet-copy { padding: .75rem 0 0 1rem; width: 66%; background: linear-gradient(90deg, rgba(3, 32, 75, .82) 0, rgba(3, 32, 75, .62) 55%, rgba(3, 32, 75, 0)); }
  .shop-pet-paw { width: 2.5rem; height: 2.5rem; margin: 0 0 0 -.15rem; }
  .shop-pet-title { font-size: 1.5rem; margin-top: .25rem; }
  .shop-pet-text { font-size: .9375rem; line-height: 1.25rem; margin-top: .35rem; }
  .shop-pet-go { width: 1.75rem; height: 1.75rem; margin-top: .45rem; }
  .shop-title { font-size: 1.75rem; }
  /* filters in the "Filter" drawer; result line and sort above the grid */
  .shop-list { padding: 1.25rem 0 1.5rem; }
  .shop-cols { display: block; }
  .shop-side .drawer-body { padding-top: .875rem; }
  .shop-side .shop-filter { box-shadow: none; }
  .price-dual { height: 1.75rem; margin-inline: .6rem; }
  .price-dual input { inset: 0 -.75rem; width: calc(100% + 1.5rem); }
  .price-dual input::-webkit-slider-thumb { width: 1.5rem; height: 1.5rem; margin-top: 0; }
  .price-dual input::-moz-range-thumb { width: 1.5rem; height: 1.5rem; }
  .shop-check { min-height: 2.5rem; font-size: 1rem; }
  .shop-rate { min-height: 2.75rem; font-size: 1rem; }
  .shop-clear { min-height: 3rem; font-size: 1rem; }
  .shop-bar { flex-wrap: wrap; gap: .5rem .75rem; margin-bottom: .75rem; }
  .catalog-filter-btn { display: inline-flex; min-height: 2.75rem; }
  .shop-sort { margin-left: auto; }
  .shop-sort-select { height: 2.75rem; min-width: 0; font-size: 1rem; }
  .catalog-count { flex: 1 0 100%; order: 3; font-size: .9375rem; }
  .shop-grid { gap: .75rem; }
  .shop-card { padding: 0 .5rem .875rem; }
  .shop-card-name { font-size: 1rem; }
  .shop-card-price { font-size: 1.1875rem; }
  .shop-card .rating-count { font-size: .875rem; }
  /* pagination: comfortable to tap */
  .pagination.shop-pages { gap: .375rem; margin-top: 1.5rem; }
  .shop-pages a, .shop-pages span { min-width: 2.75rem; height: 2.75rem; font-size: 1rem; }
  .shop-pages .gap { min-width: 1.25rem; }
  /* banners: one under the other */
  .shop-banners-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .shop-banner-title { font-size: clamp(1.5rem, 4.6vw, 2.25rem); line-height: 1.08; }
  .shop-banner-text { font-size: clamp(.9375rem, 2.4vw, 1.25rem); line-height: 1.3; }
  .shop-banner-copy, .shop-banner-light .shop-banner-copy { padding: 0 0 0 clamp(1rem, 4vw, 2rem); }
}
@media (max-width: 640px) {
  .shop-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .shop-pets-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-card-name { font-size: .9375rem; line-height: 1.25; }
  .shop-card .stars .ic { width: 1rem; height: 1rem; }
  .shop-more .shop-grid > :nth-child(3) { display: none; }
  /* banners: words on the tile's colour, the animal in its own strip underneath: nothing is written over the picture */
  .shop-banner { aspect-ratio: auto; display: flex; flex-direction: column; }
  .shop-banner-copy, .shop-banner-light .shop-banner-copy { position: static; order: -1; padding: 1.125rem 1rem .25rem; }
  .shop-banner-dark { background: #03306C; }
  .shop-banner picture { display: block; }
  .shop-banner-img { position: static; z-index: auto; display: block; width: 100%; height: auto; aspect-ratio: 2.35; object-position: right bottom; -webkit-mask-image: linear-gradient(transparent, #000 12%); mask-image: linear-gradient(transparent, #000 12%); }
  .shop-banner-text br { display: none; }
}
@media (max-width: 380px) {
  .shop-card { padding-inline: .375rem; }
  .shop-card .rating { gap: .3rem; }
  .shop-card .stars .ic { width: .9375rem; height: .9375rem; }
}
