/* Catalogue: listings (/shop, /dogs, /cats, categories, search) and the product page. Builds on base.css. */

/* ---------- listing frame ---------- */
.catalog-wrap { max-width: calc(var(--container) + 2 * var(--gutter)); }
.catalog { padding: 1.125rem 0 1.875rem; }
.catalog.is-sub { padding-top: .375rem; }
.catalog-main { min-width: 0; scroll-margin-top: calc(var(--header-h) + .75rem); }
.catalog-title { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
.page-catalog .page-head { margin-bottom: .25rem; align-items: center; }
.page-catalog .sort label { color: var(--text); }
.sort-go { font-weight: 700; color: var(--blue); padding: 0 .75rem 0 0; }
.catalog [data-swap="results"].is-loading .product-grid, .catalog [data-swap="results"].is-loading .catalog-empty { opacity: .45; pointer-events: none; transition: opacity .15s; }

/* result count + active filters */
.catalog-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem .75rem; min-height: 1.625rem; margin-bottom: .5rem; }
.catalog-count { font-size: .8438rem; color: var(--muted); font-weight: 500; }
.catalog-chips { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem .5rem; margin: 0; }
.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; }
.catalog-filter-btn { display: none; }
.catalog-empty { padding: 2.5rem 1rem 3rem; background: var(--card); border-radius: var(--r-card); }
.catalog-empty h2 { font-size: clamp(1.3125rem, 2.2vw, 1.75rem); }
.catalog-empty .empty-actions { justify-content: center; }
.catalog-main > .trust-strip { margin-top: 1rem; }

/* ---------- sidebar (also the phone "Filter" drawer) ---------- */
@media (min-width: 901px) {
  .catalog-side.drawer { position: static; width: auto; transform: none; visibility: visible; display: block; background: none; box-shadow: none; z-index: auto; transition: none; }
  .catalog-side .drawer-head, .catalog-side .drawer-foot { display: none; }
  .catalog-side .drawer-body { padding: 0; overflow: visible; }
  .page-dogs .with-sidebar, .page-cats .with-sidebar { position: relative; }
  .page-dogs .catalog-main::before, .page-cats .catalog-main::before { content: ""; position: absolute; top: 0; bottom: 0; margin-left: -15px; width: 1px; background: var(--line-soft); }
}
.catalog-side .side-box-title { margin: 0; }
.catalog-side .side-box-body { padding: .5rem 0 .25rem; }
.catalog-side .side-list a.is-active { background: var(--card); }
.side-group-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .4375rem .75rem .125rem; font-size: .875rem; font-weight: 700; color: var(--navy); }
.side-group-head .ic { width: .875rem; height: .875rem; stroke-width: 2.6; }
.filter-form .side-group .count { color: var(--muted); font-weight: 500; }
.filter-form .check-rating { gap: .5rem; }
.filter-form .check-rating .stars .ic { width: .9375rem; height: .9375rem; }
.filter-price .side-group-body { padding-bottom: .5rem; }
.price-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 1.125rem; margin: 0; background: none; cursor: pointer; --pct: 100%; }
.price-range::-webkit-slider-runnable-track { height: .25rem; border-radius: 2px; background: linear-gradient(90deg, var(--blue) var(--pct), #C9D5E8 var(--pct)); }
.price-range::-moz-range-track { height: .25rem; border-radius: 2px; background: #C9D5E8; }
.price-range::-moz-range-progress { height: .25rem; border-radius: 2px; background: var(--blue); }
.price-range::-webkit-slider-thumb { -webkit-appearance: none; width: .875rem; height: .875rem; margin-top: -5px; border-radius: 50%; background: var(--navy); border: 0; }
.price-range::-moz-range-thumb { width: .875rem; height: .875rem; border-radius: 50%; background: var(--navy); border: 0; }
.price-range:focus-visible { outline: none; }
.price-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 .25rem rgba(21, 105, 230, .35); }
.price-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 .25rem rgba(21, 105, 230, .35); }
.price-out { display: block; text-align: center; font-size: .7812rem; font-weight: 600; color: var(--navy); margin-top: 2px; }
.filter-apply { padding: .25rem .875rem .875rem; }
.drawer-foot { padding: .875rem 0 .25rem; }

/* "More for dogs / cats" under a short list */
.catalog-more { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.catalog-more-title { font-size: 1.375rem; margin-bottom: .75rem; }
.catalog-empty + .catalog-more { border-top: 0; padding-top: 0; }
/* pet category pages: small breadcrumb above the title row, current category marked in the cat strip */
.catalog-main > .crumbs { padding: 0 0 .5rem; font-size: .8125rem; }
.cat-strip a.is-active { color: var(--blue); }

/* ---------- breadcrumb ---------- */
.crumbs { padding: 1rem 0 .5rem; 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; }

/* ---------- cat category strip (/cats) ---------- */
.cat-strip { background: var(--tint); }
.cat-strip ul { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; align-items: center; margin: 0; padding-block: .8125rem; }
.cat-strip li { display: flex; align-items: center; }
.cat-strip li + li { border-left: 1.5px solid #6F7F9C; padding-left: clamp(.5rem, 2.4vw, 2.875rem); }
.cat-strip li:not(:last-child) { padding-right: clamp(.5rem, 2.4vw, 2.875rem); }
.cat-strip a { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.5rem); padding: 2px .25rem; color: var(--navy); font-size: .9062rem; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.cat-strip a:hover { color: var(--blue); text-decoration: none; }
.cat-strip .ic { width: clamp(2rem, 3vw, 2.875rem); height: clamp(2rem, 3vw, 2.875rem); flex: none; stroke-width: 1.6; }

/* ---------- product page ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding: .375rem 0 2.25rem; }
.pd-image { position: relative; background: #F1F5FD; border: 1px solid #E6ECF7; border-radius: var(--r-card); aspect-ratio: 4 / 3; padding: 5%; display: flex; align-items: center; justify-content: center; }
.pd-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: darken; }
.pd-image .badge { position: absolute; top: .875rem; left: .875rem; z-index: 1; font-size: .875rem; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .75rem; }
.pd-thumb { width: 4.75rem; height: 4.75rem; padding: .375rem; background: var(--card); border: 2px solid transparent; border-radius: var(--r); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: darken; }
.pd-thumb:hover { border-color: var(--line); }
.pd-thumb.is-active { border-color: var(--navy); }
.pd-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; }
.pd-brand { margin-top: .375rem; font-size: .9375rem; color: var(--muted); }
.pd-brand a { font-weight: 700; }
.pd-rating { display: flex; align-items: center; gap: .625rem; margin-top: .625rem; }
.pd-rating-text { font-size: .9062rem; color: var(--text); }
.pd-price { font-feature-settings: "pnum"; letter-spacing: -.03em; margin-top: .875rem; font-size: clamp(1.75rem, 3vw, 2.125rem); font-weight: 800; line-height: 1.1; color: var(--navy); }
.pd-price s { font-size: 1.125rem; font-weight: 600; color: var(--muted); margin-left: .5rem; }
.pd-price.is-sale > span { color: var(--red); }
.pd-short { margin-top: .75rem; font-size: 1.0312rem; line-height: 1.5; max-width: 54ch; }
.pd-label { display: block; font-size: .875rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.pd-label strong { font-weight: 500; color: var(--text); }
.pd-options { margin-top: 1.25rem; }
.pd-variants { display: flex; flex-wrap: wrap; gap: .5rem; }
.pd-variant { min-height: 2.625rem; min-width: 3.25rem; padding: .5rem 1rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-size: .9062rem; font-weight: 600; color: var(--navy); transition: border-color .12s, background .12s; }
.pd-variant:hover:not([disabled]) { border-color: var(--navy); }
.pd-variant.is-selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.pd-variant[disabled] { color: #8D9AB3; background: var(--page); border-style: dashed; cursor: not-allowed; }
.pd-variant-note { text-decoration: none; display: inline-block; font-weight: 500; }
.pd-buy { display: grid; gap: 1rem; margin-top: 1.375rem; }
/* the stepper is the cart's (cart.css .cart-qty): same size, border and icon weight */
.pd-qty { display: flex; align-items: center; gap: 1rem; }
.pd-qty .pd-label { margin: 0; }
.pd-qty .qty { height: 2.2rem; border-color: #CFDAEA; border-radius: .34rem; }
.pd-qty .qty button { width: 2.2rem; }
.pd-qty .qty button[disabled] { color: var(--navy); }
.pd-qty .qty .ic { width: 1.25rem; height: 1.25rem; stroke-width: 2.5; }
.pd-qty .qty input { width: 3rem; font-size: 1.1rem; border-color: #CFDAEA; }
.pd-actions { display: flex; gap: .75rem; max-width: 32rem; }
.pd-actions .btn { flex: 1; padding-inline: 1.125rem; white-space: nowrap; font-weight: 800; border-radius: .34rem; }
.pd-notes { margin: 1.375rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5625rem; font-size: .9062rem; }
.pd-notes li { display: flex; align-items: center; gap: .625rem; color: var(--text); font-weight: 500; }
.pd-notes .ic { width: 1.25rem; height: 1.25rem; flex: none; color: var(--navy); }
.pd-notes .stock { font-size: .9375rem; font-weight: 700; color: var(--green); }
.pd-notes .stock .ic { color: currentColor; }
.pd-notes .stock.is-low { color: #C25E00; }
.pd-notes .stock.is-out { color: var(--red); }
.pd-sku { color: var(--muted); }
.pd-more { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding: 1.875rem 0 2.25rem; border-top: 1px solid var(--line); }
.pd-more h2 { font-size: 1.375rem; margin-bottom: .75rem; }
.pd-desc .prose { font-size: 1rem; line-height: 1.65; max-width: 68ch; }
.pd-details dl { margin: 0; }
.pd-details dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .75rem; padding: .5625rem 0; border-top: 1px solid var(--line-soft); font-size: .9062rem; }
.pd-details dl > div:first-child { border-top: 0; padding-top: 0; }
.pd-details dt { color: var(--muted); font-weight: 600; }
.pd-details dd { color: var(--navy); font-weight: 600; }
.pd-related { padding: 0 0 2.75rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cat-strip a { font-size: .8125rem; gap: .4rem; } .cat-strip .ic { width: 1.9rem; height: 1.9rem; }
  .cat-strip li + li { padding-left: .5rem; } .cat-strip li:not(:last-child) { padding-right: .5rem; }
  .pd { gap: 1.75rem; }
}
@media (max-width: 900px) {
  .with-sidebar > .catalog-side.drawer { display: flex; }
  .catalog-side .side-box { box-shadow: none; border: 1px solid var(--line-soft); }
  .catalog-side .drawer-body { padding-top: .875rem; }
  .catalog-filter-btn { display: inline-flex; }
  .catalog-bar { margin: .5rem 0 .75rem; }
  .cat-strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: .75rem; justify-content: stretch; }
  .cat-strip li, .cat-strip li + li, .cat-strip li:not(:last-child) { padding: 0 .5rem; }
  .cat-strip li:nth-child(3n + 1) { border-left: 0; }
  .pd-more { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 720px) {
  .pd { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .pd-image { aspect-ratio: 4 / 3; padding: 4%; }
}
@media (max-width: 640px) {
  .catalog { padding-top: .875rem; }
  .page-catalog .page-head { align-items: flex-start; }
  .page-catalog .page-head .sort { width: 100%; }
  .page-catalog .page-head .sort select { flex: 1; }
  .cat-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-strip li:nth-child(3n + 1) { border-left: 1.5px solid #6F7F9C; }
  .cat-strip li:nth-child(odd) { border-left: 0; }
  .cat-strip a { font-size: .8125rem; white-space: normal; gap: .5rem; }
  .pd-actions { max-width: none; }
  .pd-qty .qty { height: 2.75rem; } .pd-qty .qty button { width: 2.75rem; }
  .pd-variant { min-height: 2.75rem; }
  .pd-details dl > div { grid-template-columns: 5.75rem minmax(0, 1fr); }
}

/* the mock-ups show no result count under the title: on desktop it appears only with active filters */
@media (min-width: 901px) {
  .catalog-bar.is-empty { min-height: 0; margin: 0 0 .375rem; }
  .catalog-bar.is-empty .catalog-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
/* rating filter: a row of stars "& Up" (the checkbox itself stays for keyboard and screen readers) */
.filter-form .check-rating { position: relative; cursor: pointer; }
.filter-form .check-rating input { position: absolute; opacity: 0; width: 100%; height: 100%; left: 0; top: 0; margin: 0; cursor: pointer; }
.filter-form .check-rating > span[aria-hidden] { font-size: .8125rem; font-weight: 600; color: var(--navy); }
.filter-form .check-rating:has(input:checked) > span[aria-hidden] { color: var(--blue); font-weight: 800; }
.filter-form .check-rating:has(input:checked) { background: var(--card); border-radius: var(--r-sm); margin-inline: -.375rem; padding-inline: .375rem; }
.filter-form .check-rating:has(input:focus-visible) { outline: 3px solid rgba(21, 105, 230, .55); outline-offset: 2px; border-radius: 3px; }

/* =====================================================================================================================
   Exact match to the mock-ups: refs/dogs.png and refs/cats.png (1672 wide, root 16px), refs/shop.png (1024 wide, root 14px).
   Sizes are rem at their 1672px value. Everything here is per page (body class), so no other page changes.
   ===================================================================================================================== */
/* wider than the mock-ups: the whole listing page scales with the window (every size is rem) */
@media (min-width: 1673px) {
  html:has(body.page-catalog) { font-size: calc(100vw / 104.5); }
  .page-catalog .newsletter-peek { right: 0; }
}
/* product pictures: each one is placed as drawn in its mock-up card (--is scale, --ix / --iy shift in % of the picture box) */
.page-catalog .product-card-media img { transform: translate(var(--ix, 0%), var(--iy, 0%)) scale(var(--is, 1)); }
.page-catalog .product-card:hover .product-card-media img { transform: translate(var(--ix, 0%), var(--iy, 0%)) scale(calc(var(--is, 1) * 1.04)); }
/* the cards are a shade lighter on the pet pages (as drawn); lift the pictures' own tint with them so no square shows */
:is(.page-dogs, .page-cats) .product-card-media img { filter: brightness(1.03); }
/* trust strip icons (views/catalog/_trust.ejs) */
.trust-strip .ic-truck { aspect-ratio: 30 / 24; }

@media (min-width: 901px) {
  /* ---------- /dogs ---------- */
  .page-dogs { --page: #FBFCFE; --card: #F2F5FB; --header-h: 3.9375rem; }
  .page-dogs .announce { font-size: .61rem; font-weight: 700; word-spacing: 0; letter-spacing: 0; }
  .page-dogs .announce ul { min-height: 2rem; padding-left: 0; position: relative; left: -.25rem; }
  .page-dogs .announce li { padding: 0 .625rem; gap: .4375rem; }
  .page-dogs .announce li:first-child { gap: .1875rem; }
  .page-dogs .announce li:first-child .ic { width: 1.75rem; height: 1.3125rem; }
  .page-dogs .announce li:nth-child(3) .ic { width: 1.3125rem; height: 1.3125rem; }
  .page-dogs .site-header-inner { padding-top: .25rem; }
  .page-dogs .logo { font-size: 2.47rem; gap: .5rem; position: relative; top: .0625rem; transform: scaleY(.91); }
  .page-dogs .logo .ic { width: 3.9rem; height: 3.9rem; margin: -.55rem 0 -.55rem -.25rem; }
  .page-dogs .nav { position: relative; left: .25rem; }
  .page-dogs .nav-link { font-size: .78rem; }
  .page-dogs .nav-item.is-current > .nav-link, .page-dogs .nav-item.is-current > .nav-toggle { color: var(--navy); }
  .page-dogs .nav-item.is-current > .nav-link::after { left: 1.8rem; right: auto; width: .875rem; bottom: .22rem; height: 2px; }
  .page-dogs .header-actions { margin-right: .25rem; }

  .page-dogs .hero { --hero-h: 17.875rem; }
  .page-dogs .hero-copy { margin-bottom: .0625rem; }
  .page-dogs .hero::before { display: none; }
  /* the dog's head rises over the header (only while the page is at the top: the header is sticky) */
  .page-dogs.is-listing-root .site-header::after { content: ""; position: absolute; z-index: 1; bottom: -1px; right: calc(28.5rem - var(--dogs-shift, 0px)); width: 12rem; height: 2.375rem; background: no-repeat center bottom / 100% 100% var(--dogs-head); pointer-events: none; }
  .is-scrolled .page-dogs .site-header::after { display: none; }
  .page-dogs .hero-inner { position: static; }
  .page-dogs .hero-title { font-size: 6.08rem; gap: 0; }
  .page-dogs .hero-title > span:first-child { display: inline-block; margin-left: -.42rem; transform: scaleX(1.135); transform-origin: 0 50%; }
  .page-dogs .hero-title .ic { width: 5.15rem; height: 5.15rem; margin: 0 0 .0625rem 3.35rem; align-self: flex-end; transform: scaleY(.923); transform-origin: 50% 100%; }
  .page-dogs .hero-sub { font-size: 1.9rem; margin-top: .6875rem; width: max-content; transform: scaleX(1.085); transform-origin: 0 50%; }
  .page-dogs .hero-text { font-size: 1.156rem; }
  .page-dogs .hero-cta { margin-top: .8125rem; }
  .page-dogs .hero-cta .btn { min-height: 2.5625rem; }
  .page-dogs .hero-script { top: 0; right: 0; width: 30rem; height: 100%; }
  .page-dogs .hero-script .script { position: absolute; right: 5.25rem; top: 3rem; font-size: 3.3rem; transform-origin: 100% 100%; transform: rotate(-10deg) scaleY(1.1); }
  .page-dogs .hero-script .swoosh { display: none; }
  .page-dogs .hero-script::after { content: ""; position: absolute; right: 9.0625rem; top: 8.375rem; width: 13.75rem; height: 3.5625rem; background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 219 54' preserveAspectRatio='none'%3E%3Cpath fill='%23FD8204' d='M2 48C48 19 118 2 217 4c1.300 0 1.300 2.200 0 2.200C124 9 56 27 9 52c-4 2-9-1.500-7-4z'/%3E%3C/svg%3E"); }
  .page-dogs .hero-script .ic { position: absolute; right: 10.875rem; top: 10.3125rem; width: 3.375rem; height: 3.375rem; margin: 0; transform: rotate(14deg); stroke-width: 1.7; }
  .page-dogs .hero-script::before { right: 8.625rem; top: 2.9375rem; width: 1.875rem; height: 1.875rem; }

  .page-dogs .catalog { padding: 1.125rem 0 1.375rem; }
  .page-dogs .catalog-main::before { margin-left: -1.6875rem; }
  .page-dogs .side-box-title { padding: .42rem .75rem; font-size: 1.08rem; line-height: 1.354; }
  .page-dogs .catalog-side .side-box-body { padding: .625rem 0 0; }
  .page-dogs .side-box + .side-box { margin-top: .875rem; }
  .page-dogs .filter-form .side-box-title { padding-block: .28rem; }
  .page-dogs .side-list a { padding: .379rem .5625rem .379rem .75rem; gap: .9375rem; font-size: .86rem; letter-spacing: -.025em; }
  .page-dogs .side-list a .ic.chev { width: 1rem; height: 1rem; stroke-width: 2.2; }
  .page-dogs .catalog-title { font-size: 2.125rem; }
  .page-dogs .page-head { align-items: flex-start; margin-bottom: 0; }
  .page-dogs .page-head p { margin-top: -.27rem; }
  .page-dogs .page-head .sort { margin-top: .3125rem; }
  .page-dogs .sort label { font-weight: 500; color: var(--navy); }
  .page-dogs .sort select { min-height: 2.3125rem; padding-right: 1.875rem; background-position: right .9375rem center; background-size: .9375rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342557A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E"); }
  /* Filter By box */
  .page-dogs .filter-form .side-group { border-top: 0; }
  .page-dogs .filter-price { background: #F6F9FD; }
  .page-dogs .side-group-head { padding: .5rem .75rem .22rem; font-size: .8125rem; }
  .page-dogs .side-group > summary { font-size: .8125rem; }
  .page-dogs .filter-price .side-group-body { padding-bottom: 0; }
  .page-dogs .price-range::-webkit-slider-runnable-track { height: .1875rem; }
  .page-dogs .price-range::-moz-range-track, .page-dogs .price-range::-moz-range-progress { height: .1875rem; }
  .page-dogs .price-range::-webkit-slider-thumb { width: 1rem; height: 1rem; margin-top: -.40625rem; }
  .page-dogs .price-range::-moz-range-thumb { width: 1rem; height: 1rem; }
  .page-dogs .price-out { margin-top: -.0625rem; font-weight: 500; }
  .page-dogs .side-group > summary { padding-block: .234rem; }
  .page-dogs .side-group[data-group="rating"] { background: #F2F5FB; }

  .page-dogs .product-card { padding-bottom: 1rem; }
  .page-dogs .product-card .btn { font-size: .875rem; }
  .page-dogs .product-card-media { height: 10.3125rem; }
  .page-dogs .product-card .badge { font-size: .78rem; padding: .28rem .53rem; border-radius: .3rem .75rem .75rem .3rem; }
  .page-dogs .product-card-name { font-size: .84375rem; font-weight: 700; }
  .page-dogs .product-card .rating { margin-top: .4375rem; }
  .page-dogs .product-card .stars { gap: .14rem; }
  .page-dogs .product-card .stars .ic { width: 1.03rem; height: 1.03rem; }
  .page-dogs .product-card-price { margin: .3125rem 0 .6875rem; letter-spacing: -.03em; }
  .page-dogs .product-card-media[href$="/retractable-dog-leash"] img { --is: .908; --ix: .2%; --iy: -1.3%; }
  .page-dogs .product-card-media[href$="/no-pull-dog-harness"] img { --is: 1.08; --ix: -.3%; --iy: -2.7%; }
  .page-dogs .product-card-media[href$="/orthopedic-dog-bed"] img { --is: 1.21; --ix: .5%; --iy: .8%; }
  .page-dogs .product-card-media[href$="/interactive-dog-toy"] img { --is: .93; --ix: .5%; --iy: -2.2%; }

  /* trust panel under the grid + newsletter band */
  :is(.page-dogs, .page-cats) .catalog-main > .trust-strip { margin: 1rem 4.375rem 0 0; }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset ul { grid-template-columns: 15.375rem 17.5rem 17.4375rem minmax(0, 1fr); padding: 0; height: 4.4375rem; background: #F8F9FD; border-radius: .5rem; }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset li { justify-content: flex-start; padding: 0 0 0 3.0625rem; gap: 1.5rem; min-height: 2.25rem; font-size: .83rem; line-height: 1.13; font-weight: 700; white-space: nowrap; }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset li:first-child { padding-left: 2.0625rem; gap: 2.25rem; }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset .ic { width: 3rem; height: 3rem; margin-block: -.5rem; stroke-width: 1.7; }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset .ic-truck { width: 2.67rem; height: auto; color: #1E55C8; stroke-width: 1.9; transform: scaleY(1.2); }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset .ic-shield { width: 2.875rem; height: 2.875rem; }
  :is(.page-dogs, .page-cats) .trust-strip li:first-child span { position: relative; }
  :is(.page-dogs, .page-cats) .trust-strip li:first-child span::after { content: ""; position: absolute; left: calc(100% + .4375rem); top: .25rem; width: .5625rem; height: .5625rem; border-radius: 50%; background: var(--navy) radial-gradient(circle at 50% 50%, #C9D6EC 0 18%, transparent 20%); }
  .page-dogs .has-peek-dog .newsletter-inner { min-height: 4.75rem; padding-block: 0; }
  /* the form always ends before the dog's paws */
  .page-dogs .newsletter.has-peek-dog .newsletter-inner { padding-right: max(24.5%, calc(27rem - max(0px, (100vw - 97.875rem) / 2))); }
  .page-dogs .newsletter-paw { width: 5.6rem; height: 5.6rem; margin: -1.1rem 0 -1.3rem 0; position: relative; top: .1rem; }
  .page-dogs .newsletter-peek { height: 163%; aspect-ratio: 820 / 248; right: 0; bottom: 0; }
  .page-dogs .newsletter-copy { position: relative; top: .22rem; }
  .page-dogs .newsletter-form { top: -.125rem; }
  .page-dogs .newsletter-title { font-size: 1.32rem; }
  .page-dogs .newsletter-text { font-size: .906rem; margin-top: .0625rem; }
  .page-dogs .newsletter-fields .input { height: 2.4375rem; align-self: center; }
  .page-dogs .newsletter-fields .btn { font-size: .9rem; }
}
@media (min-width: 901px) {
  /* ---------- /cats ---------- */
  .page-cats { --page: #FBFCFE; --card: #F2F5FB; --header-h: 3.375rem; }
  .page-cats .announce { font-size: .625rem; font-weight: 700; word-spacing: 0; letter-spacing: 0; }
  .page-cats .announce ul { min-height: 1.625rem; padding-left: 0; }
  .page-cats .announce li { padding: 0 .625rem; gap: .4rem; }
  .page-cats .announce li:first-child { gap: .25rem; }
  .page-cats .announce li:first-child .ic { width: 1.875rem; height: 1.375rem; }
  .page-cats .announce li:nth-child(3) .ic { width: 1.3125rem; height: 1.3125rem; }
  .page-cats .site-header-inner { padding-top: .1875rem; position: relative; z-index: 1; }
  .page-cats .logo { font-size: 2.38rem; gap: .5rem; position: relative; top: .0625rem; left: .125rem; transform: scaleY(.91); }
  .page-cats .logo .ic { width: 3.7rem; height: 3.7rem; margin: -.55rem 0 -.55rem -.25rem; }
  .page-cats .nav { position: relative; left: .25rem; }
  .page-cats .nav-link { font-size: .78rem; font-weight: 700; }
  .page-cats .nav-item.is-current > .nav-link::after { bottom: .1875rem; height: 2px; }
  .page-cats .header-actions { margin-right: -.125rem; }
  .is-scrolled .page-cats .site-header::after { display: none; }

  .page-cats .hero { --hero-h: 15.5rem; }
  .page-cats .hero::before { display: none; }
  .page-cats .hero-inner { position: static; padding-left: calc(var(--gutter) + var(--inset) + .6875rem); }
  .page-cats .hero-title { font-size: 5.68rem; gap: 0; }
  .page-cats .hero-title > span:first-child { display: inline-block; margin-left: -.15rem; transform: scaleX(1.25); transform-origin: 0 50%; }
  .page-cats .hero-title .ic { width: 5.86rem; height: 5.86rem; margin: 0 0 0 3.6rem; transform: scaleY(.946); position: relative; top: .19rem; }
  .page-cats .hero-copy { margin-bottom: .25rem; }
  .page-cats .hero-sub { margin-top: -.0625rem; width: max-content; transform: scaleX(1.073); transform-origin: 0 50%; }
  .page-cats .hero .hero-copy > .swoosh { transform: translateX(.56rem); }
  .page-cats .hero-text { font-size: 1.09rem; font-weight: 600; line-height: 1.25rem; margin-top: 1rem; }
  .page-cats .hero-cta { margin-top: .6875rem; }
  .page-cats .hero-cta .btn { min-height: 2.3125rem; padding-inline: 1.08rem; }
  .page-cats .hero-script { top: 0; right: 0; width: 30rem; height: 100%; }
  .page-cats .hero-script .script { position: absolute; right: 6.5625rem; top: 1.5rem; font-size: 3rem; transform-origin: 100% 100%; transform: rotate(-8deg); }
  .page-cats .hero-script .swoosh { display: none; }
  .page-cats .hero-script::after { content: ""; position: absolute; right: 7.125rem; top: 5.9375rem; width: 13.625rem; height: 2.8125rem; background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 219 54' preserveAspectRatio='none'%3E%3Cpath fill='%23FD8204' d='M2 48C48 19 118 2 217 4c1.300 0 1.300 2.200 0 2.200C124 9 56 27 9 52c-4 2-9-1.500-7-4z'/%3E%3C/svg%3E"); }
  .page-cats .hero-script .ic { position: absolute; right: 10.5rem; top: 8.5rem; width: 3.75rem; height: 3.75rem; margin: 0; transform: rotate(14deg); stroke-width: 1.7; }

  .page-cats .catalog { padding: 1.125rem 0 .5625rem; }
  .page-cats .newsletter-inner { padding-block: 0 1.25rem; }
  .page-cats .newsletter-paw { width: 5.6rem; height: 5.6rem; margin: -.5rem -.375rem -.5rem .0625rem; color: #1A5ED8; position: relative; top: .44rem; }
  .page-cats .newsletter-copy { position: relative; top: .5rem; left: -.125rem; }
  .page-cats .newsletter-title { font-size: 1.39rem; }
  .page-cats .newsletter-text { margin-top: .25rem; font-size: .975rem; }
  .page-cats .newsletter.has-peek .newsletter-form { flex-basis: calc(53% - .375rem); margin-right: .625rem; }
  .page-cats .newsletter-fields { gap: .9375rem; }
  .page-cats .newsletter-fields .input, .page-cats .newsletter-fields .btn { height: 2.5rem; }
  .page-cats .side-group[data-group="stock"]:not([open]) > summary::after { background-image: 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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
  .page-cats .catalog-main::before { margin-left: -1.3125rem; }
  .page-cats .side-box-title { padding: .1875rem .75rem; font-size: 1.0625rem; line-height: 1.375; }
  .page-cats .catalog-side .side-box-body { padding: .5625rem 0 0; }
  .page-cats .filter-form .side-box-title { padding-block: .11rem; }
  .page-cats .side-box + .side-box { margin-top: .75rem; }
  .page-cats .side-list a { padding: .29rem .625rem .29rem .6875rem; gap: 1rem; font-size: .84375rem; letter-spacing: -.04em; }
  .page-cats .side-list a .ic.chev { width: 1rem; height: 1rem; stroke-width: 2.2; }
  .page-cats .catalog-title { font-size: 1.9rem; }
  .page-cats .page-head { align-items: flex-start; margin: -.375rem 0 0; }
  .page-cats .page-head p { margin-top: -.3125rem; font-size: 1rem; }
  .page-cats .page-head .sort { margin-top: .5rem; font-size: .78rem; }
  .page-cats .sort select { font-size: .78rem; }
  .page-cats .sort label { font-weight: 500; color: var(--navy); }
  .page-cats .sort { padding-left: .875rem; }
  .page-cats .sort select { min-height: 2rem; padding-right: 1.4375rem; background-position: right 1rem center; background-size: .75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342557A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E"); }
  .page-cats .filter-form .side-group { border-top: 0; }
  .page-cats .filter-price { background: #F6F9FD; }
  .page-cats .side-group-head { padding: .3125rem .75rem 0; font-size: .8125rem; }
  .page-cats .filter-price .side-group-body { padding-bottom: .125rem; }
  .page-cats .price-range::-webkit-slider-runnable-track { height: .1875rem; }
  .page-cats .price-range::-moz-range-track, .page-cats .price-range::-moz-range-progress { height: .1875rem; }
  .page-cats .price-range::-webkit-slider-thumb { margin-top: -.34rem; }
  .page-cats .price-out { margin-top: -.0625rem; font-weight: 500; }
  .page-cats .side-group > summary { padding-block: .165rem; font-size: .8125rem; }
  .page-cats .side-group[data-group="rating"] { background: #F2F5FB; }

  .page-cats .product-card { padding-bottom: .75rem; }
  .page-cats .product-card-media { height: 10.3125rem; }
  .page-cats .product-card .badge { font-size: .8125rem; padding: .25rem .625rem; border-radius: .5rem; top: .5625rem; left: .5rem; }
  .page-cats .product-card-name { font-size: .8125rem; font-weight: 700; }
  .page-cats .product-card .rating { margin-top: .125rem; }
  .page-cats .product-card .stars { gap: .16rem; }
  .page-cats .product-card .stars .ic { width: .9375rem; height: .9375rem; }
  .page-cats .product-card-price { font-size: 1.0625rem; margin: .3125rem 0 .28rem; letter-spacing: -.01em; }
  .page-cats .product-card .btn { font-size: .875rem; min-height: 1.625rem; }
  .page-cats .product-card-media[href$="/cozy-cat-bed"] img { --is: 1.14; --ix: .6%; --iy: 5.5%; }
  .page-cats .product-card-media[href$="/deluxe-cat-tree"] img { --is: 1.157; --ix: 1.8%; --iy: -3.2%; }
  .page-cats .product-card-media[href$="/interactive-cat-toy-set"] img { --is: 1.33; --ix: -7.9%; --iy: -5.9%; }
  .page-cats .product-card-media[href$="/premium-cat-food"] img { --is: 1.16; --ix: -2.4%; --iy: -3.3%; }
  .page-cats .catalog-main > .trust-strip { margin: 1.5rem 1.5rem 0 1.375rem; }
  .page-cats .trust-strip.is-inset ul { grid-template-columns: 14.75rem 17.5rem 17.5rem minmax(0, 1fr); height: 4rem; }
  .page-cats .trust-strip.is-inset li { padding-left: 3.3rem; gap: 1.3rem; }
  .page-cats .trust-strip.is-inset li:first-child { padding-left: 1.125rem; gap: 2.3rem; }
}
@media (min-width: 1463px) {
  /* the hero photo continues behind the right half of the header (only while the page is at the top: the header is sticky) */
  .page-cats.is-listing-root .site-header::after { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; right: calc(0px - var(--cats-shift, 0px)); width: 40.125rem; height: auto; background: no-repeat right top / 100% 100% var(--cats-top); pointer-events: none; }
  html:not(.is-scrolled) .page-cats.is-listing-root .site-header { box-shadow: none; }
  /* category strip */
  .page-cats .cat-strip ul { grid-template-columns: 15.3125rem 16.9375rem 13.5625rem 16rem 14.875rem minmax(0, 1fr); justify-content: stretch; padding: 0; height: 4.125rem; }
  .page-cats .cat-strip li, .page-cats .cat-strip li + li, .page-cats .cat-strip li:not(:last-child) { padding: 0 0 0 var(--pl, 3rem); height: 2.125rem; }
  .page-cats .cat-strip li + li { border-left: 1.5px solid #5F6F8E; }
  .page-cats .cat-strip a { gap: var(--gp, 1rem); padding: 0; font-size: .84375rem; line-height: 1rem; }
  .page-cats .cat-strip .ic { width: var(--iw, 2.75rem); height: var(--iw, 2.75rem); margin-block: -.5rem; }
  .page-cats .cat-strip li:nth-child(1) { --pl: 3.19rem; --gp: .56rem; --iw: 2.875rem; }
  .page-cats .cat-strip li:nth-child(2) { --pl: 4.5rem; --gp: 1.25rem; --iw: 2.5rem; }
  .page-cats .cat-strip li:nth-child(3) { --pl: 3rem; --gp: 1.125rem; --iw: 2.75rem; }
  .page-cats .cat-strip li:nth-child(4) { --pl: 3.125rem; --gp: 1.25rem; --iw: 2.875rem; }
  .page-cats .cat-strip li:nth-child(5) { --pl: 3.31rem; --gp: 1.375rem; --iw: 2.625rem; }
  .page-cats .cat-strip li:nth-child(6) { --pl: 2.625rem; --gp: 1.25rem; --iw: 2.875rem; }
  .page-cats .catalog .catalog-wrap { padding-left: calc(var(--gutter) + .125rem); padding-right: calc(var(--gutter) - .3125rem); }
  .page-cats .with-sidebar { grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5625rem; }
  .page-cats .product-grid { gap: .875rem; }
  .page-cats .hero-photo { -webkit-mask-image: none; mask-image: none; }
}
/* 1463 to 1672px wide: the pet pages are the mock-up scaled down (root 14px to 16px); narrower, the root stays 14px, the photo slides right so the
   animal clears the text and the menu, and the handwritten line (which would then sit on the animal) is hidden */
@media (min-width: 901px) and (max-width: 1672px) {
  html:has(body.page-dogs), html:has(body.page-cats) { font-size: clamp(14px, calc(100vw / 104.5), 16px); }
}
@media (min-width: 901px) and (max-width: 1462px) {
  .page-dogs .hero { --hero-shift: clamp(0px, (731.5px - 50vw) * 1.05, 250px); }
  .page-dogs .site-header { --dogs-shift: clamp(0px, (731.5px - 50vw) * 1.05, 250px); }
  .page-dogs .hero-script { display: none; }
  .page-cats .hero { --hero-shift: clamp(0px, 1463px - 100vw, 250px); }
  .page-cats .site-header { --cats-shift: clamp(0px, 1463px - 100vw, 250px); }
  .page-cats .hero-script { display: none; }
}
@media (min-width: 1463px) { .page-dogs .hero-photo { -webkit-mask-image: none; mask-image: none; } }
/* narrower desktops (down to the phone's "desktop site" width): the trust panel spans the grid in four equal columns, the band keeps one line */
@media (min-width: 901px) and (max-width: 1462px) {
  .page-dogs .page-head .sort { position: relative; z-index: 3; }
  :is(.page-dogs, .page-cats) .catalog-main > .trust-strip { margin-inline: 0; }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset li, :is(.page-dogs, .page-cats) .trust-strip.is-inset li:first-child { padding: 0 0 0 clamp(.5rem, 1.6vw, 2rem); gap: clamp(.5rem, 1.1vw, 1.25rem); font-size: clamp(.75rem, 1.15vw, .83rem); }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset li + li { border-left: 1.5px solid #6F7F9C; }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset .ic, :is(.page-dogs, .page-cats) .trust-strip.is-inset .ic-shield { width: clamp(2rem, 3.4vw, 3rem); height: clamp(2rem, 3.4vw, 3rem); }
  :is(.page-dogs, .page-cats) .trust-strip.is-inset .ic-truck { width: clamp(1.9rem, 3.1vw, 2.67rem); height: auto; }
  :is(.page-dogs, .page-cats) .trust-strip li:first-child span::after { display: none; }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .page-dogs .newsletter-paw { display: none; }
  .page-dogs .newsletter-inner { gap: 1.25rem; }
  .page-dogs .newsletter-text { font-size: .8125rem; }
  .page-dogs .newsletter-fields .btn { min-width: 7.5rem; }
  .page-dogs .newsletter-form { flex: 1 1 40%; }
}
@media (min-width: 901px) and (max-width: 1319px) { .page-dogs .hero-sub { font-size: 1.6rem; transform: none; width: auto; } }
@media (min-width: 901px) and (max-width: 1462px) {
  .page-cats .catalog { padding-bottom: 2rem; }
  .page-cats .newsletter-title { font-size: 1.25rem; }
  .page-cats .newsletter-paw { width: 4.5rem; height: 4.5rem; }
}
/* phones and small tablets: full-width newsletter form, 44px tap targets */
@media (max-width: 900px) {
  .page-catalog .newsletter.has-peek:not(.newsletter-loop) .newsletter-inner { padding-right: var(--gutter); }
  .page-catalog .catalog-filter-btn, .page-catalog .sort select { min-height: 2.75rem; }
  .page-catalog .header-action, .page-catalog .menu-btn { width: 2.75rem; height: 2.75rem; }
  .page-catalog .header-actions { gap: 0; margin-right: 0; }
  .page-catalog .pagination a, .page-catalog .pagination span:not(.gap) { min-width: 2.75rem; height: 2.75rem; }
  .page-catalog .product-card .btn { min-height: 2.75rem; }
  .page-catalog .cat-strip a { min-height: 2.75rem; }
  .page-catalog .side-list a { padding-block: .75rem; }
  .page-catalog .side-group > summary { padding-block: .75rem; }
  .page-catalog .side-group-body .check { padding-block: .625rem; }
}
