/* Home page: Shop by Pet tiles, Best Sellers, testimonial band. */
.home-pets { padding-block: .875rem .5rem; }
.home-pets .section-heading { margin-inline: 2.6%; margin-bottom: .75rem; }
.pet-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
/* The tile keeps the mock-up's proportions (473 x 178), so the picture (the mock-up's own crop, 56% of the tile, fade included) sits exactly as drawn. */
.pet-tile { position: relative; isolation: isolate; display: flex; align-items: center; aspect-ratio: 473 / 178; border-radius: var(--r); background: linear-gradient(90deg, #0E2B4A 60%, #0F2D55 67%, #123563 72.5%, #11386A 78%, #133A6D 83%, #123B72 100%); color: #fff; }
.pet-tile-photo { position: absolute; inset: 0 auto 0 0; width: 56.24%; z-index: -1; overflow: hidden; border-radius: var(--r) 0 0 var(--r); }
.pet-tile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.pet-tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 43, 74, 0) 90%, #0E2B4A 100%); }
/* the dog's head rises above its tile: the picture is 15px (of 178) taller than the tile and only the head shows above the edge */
.pet-tile-dogs .pet-tile-photo { top: -8.43%; border-top-left-radius: 0; }
.pet-tile-dogs .pet-tile-photo img { clip-path: polygon(0 7.77%, 27.4% 7.77%, 28% 5.4%, 32.5% 3.2%, 38.5% 1.4%, 42.5% 0, 54% 0, 58.5% 1.4%, 62.5% 3.2%, 66.5% 5.4%, 67.2% 7.77%, 100% 7.77%, 100% 100%, 0 100%); }
.pet-tile-dogs .pet-tile-photo::after { top: 7.77%; }
.pet-tile-paw { position: absolute; right: 1.6%; top: 0; width: 15%; height: auto; aspect-ratio: 1; color: #2F5389; opacity: 1; transform: rotate(14deg); z-index: -1; }
.pet-tile-copy { margin-left: 56.5%; padding: .875rem .875rem .875rem 0; min-width: 0; }
.pet-tile-title { color: #fff; font-size: clamp(1.5rem, 2.75vw, 2.72rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.pet-tile-text { font-size: clamp(.875rem, 1.5vw, 1.125rem); font-weight: 500; line-height: 1.28; margin-top: .375rem; max-width: 12em; }
.pet-tile-btn { margin-top: .75rem; min-height: 2.125rem; padding: .3125rem 1.125rem; font-size: clamp(.8438rem, 1.3vw, .9688rem); font-weight: 700; }

.home-best { padding-block: 1.375rem 1.625rem; }
.home-best .section-heading { margin-bottom: .25rem; }
.home-best .product-grid { gap: .625rem; padding-inline: .8%; }
.home-best .product-card .badge { display: none; }   /* the mock-up shows the home cards without badges */

/* ---------- Trusted by Pet Lovers Everywhere ---------- */
.trusted { position: relative; overflow: hidden; background: linear-gradient(90deg, #F5F8FE 0%, #E9EFFC 45%, #E3EBFA 100%); }
.trusted-inner { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); align-items: stretch; column-gap: 4.5%; }
.trusted-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 1.375rem 0 1.25rem; min-height: clamp(10rem, 16.6vw, 13.125rem); background: var(--navy); color: #fff; isolation: isolate; }
.trusted-panel::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 100vw; background: var(--navy); }
.trusted-panel::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% - 1px); width: 2.875rem; background: var(--navy); clip-path: polygon(0 0, 100% 0, 0 100%); }
.trusted-paw { position: absolute; right: 0; top: 8%; width: clamp(3rem, 5.6vw, 4.375rem); height: clamp(3rem, 5.6vw, 4.375rem); color: #2A4F9E; opacity: .75; transform: rotate(14deg); z-index: -1; }
.trusted-title { color: #fff; font-size: clamp(1.375rem, 2.75vw, 2.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; max-width: 9.8em; }
.trusted-text { font-size: clamp(.875rem, 1.52vw, 1.1562rem); font-weight: 500; line-height: 1.25; margin-top: .625rem; max-width: 16.5em; }
.trusted-panel .rating { margin-top: .5rem; }
.trusted-panel .stars .ic { width: clamp(1.0625rem, 1.9vw, 1.4375rem); height: clamp(1.0625rem, 1.9vw, 1.4375rem); margin-right: .1875rem; }

.tslider { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "prev track next" ". dots ."; align-items: center; align-content: center; column-gap: 1.25rem; padding-block: 1.125rem .75rem; min-width: 0; }
.tslider-arrow { grid-area: prev; width: 2.375rem; height: 2.375rem; border-radius: 50%; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px .5rem rgba(11, 36, 71, .22); transition: background .15s, color .15s; }
.tslider-arrow[data-slider-next] { grid-area: next; }
.tslider-arrow:hover { background: var(--navy); color: #fff; }
.tslider-arrow .ic { width: 1.375rem; height: 1.375rem; stroke-width: 2.6; }
.tslider-track { grid-area: track; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: var(--r); }
.tslider-track::-webkit-scrollbar { display: none; }
.tslider-track:focus-visible { outline: 2px solid var(--blue); outline-offset: .25rem; }
.tslide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; display: flex; align-items: center; gap: clamp(.875rem, 1.8vw, 1.5rem); padding: 2px; }
.tslide-photo { flex: none; width: clamp(5.75rem, 11.3vw, 8.25rem); height: clamp(5.75rem, 11.3vw, 8.25rem); border-radius: 50%; object-fit: cover; background: var(--tint); }
.tslide-initial { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-size: clamp(2.25rem, 4.4vw, 3.25rem); font-weight: 800; }
.tslide-av { font-weight: 500; } /* testimonial pictures: the author's initial on a coloured circle, as e-mail accounts show it (colour from the name) */
.tslide-av.av-0 { background: #3949AB; } .tslide-av.av-1 { background: #00796B; } .tslide-av.av-2 { background: #C2185B; } .tslide-av.av-3 { background: #5E35B1; }
.tslide-av.av-4 { background: #8E24AA; } .tslide-av.av-5 { background: #0277BD; } .tslide-av.av-6 { background: #D84315; } .tslide-av.av-7 { background: #6D4C41; }
.tslide-body { min-width: 0; }
.tslide-quote { margin: 0; font-size: clamp(.9688rem, 1.68vw, 1.3125rem); font-style: italic; font-weight: 500; line-height: 1.32; letter-spacing: -.01em; color: var(--navy); }
.tslide-author { font-size: clamp(.875rem, 1.3vw, 1rem); font-weight: 500; color: var(--navy); margin-top: .625rem; }
.tslide .rating { margin: .625rem 0 0 4.6em; }
.tslide .stars .ic { width: .9375rem; height: .9375rem; margin-right: 2px; }
.tslider-dots { grid-area: dots; display: flex; justify-content: center; gap: .25rem; margin-top: .5rem; }
.tslider-dot { width: 1.125rem; height: 1.125rem; display: inline-flex; align-items: center; justify-content: center; }
.tslider-dot::before { content: ""; width: .4375rem; height: .4375rem; border-radius: 50%; background: #C2CEE4; transition: background .15s, transform .15s; }
.tslider-dot:hover::before { background: #8FA6CF; }
.tslider-dot.is-active::before { background: var(--blue); transform: scale(1.15); }

@media (max-width: 900px) {
  .pet-tile { aspect-ratio: auto; min-height: 10.625rem; }
  .pet-tile-dogs .pet-tile-photo img { clip-path: inset(7.77% 0 0 0); }   /* the tile's shape is free here: the head stays inside it */
  .home-best .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pet-tile-photo { width: 53%; }
  .pet-tile-copy { margin-left: 57%; }
  .trusted-inner { grid-template-columns: minmax(0, 1fr); }
  .trusted-panel { min-height: 0; padding: 1.375rem 0; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .trusted-panel::before, .trusted-panel::after { display: none; }
  .trusted-paw { right: var(--gutter); }
  .trusted-title, .trusted-text { max-width: none; }
  .tslider { padding-block: 1.375rem .875rem; column-gap: .875rem; }
  .tslider-arrow { width: 2.75rem; height: 2.75rem; }
  .tslider-dot { width: 1.75rem; height: 2.75rem; }
  .tslider-dots { gap: 0; margin-top: 0; }
}
@media (max-width: 640px) {
  .pet-tiles { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .pet-tile { aspect-ratio: auto; min-height: 10.5rem; }
  .pet-tile-title { font-size: 1.5rem; } .pet-tile-text { font-size: .875rem; }
  .pet-tile-btn { min-height: 2.75rem; }
  .trusted-title { padding-right: 4rem; }
  .trusted-paw { top: .75rem; width: 3rem; height: 3rem; }
  .home-best .product-grid { padding-inline: 0; }
  .tslider { grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr); grid-template-areas: "track track track track" ". prev next ." "dots dots dots dots"; row-gap: .875rem; column-gap: .75rem; }
  .tslider-dots { margin-top: 0; }
  .tslide { flex-direction: column; text-align: center; gap: .75rem; }
  .tslide .rating { margin-left: 0; justify-content: center; }
}

/* ---------- Exact match with refs/home.png ----------
   The home mock-up is drawn 1024 wide (1rem = 14px there); it has its own header, strip, card and footer metrics, so the shared parts are tuned here for this page only. */
@media (min-width: 901px) {
  .page-home { --gutter: clamp(16px, 3.125vw, 2.5rem); --header-h: 4.0714rem; }
  /* announcement bar + header */
  .page-home .announce { font-size: .643rem; letter-spacing: -.03em; word-spacing: .04em; }
  .page-home .announce ul { min-height: 2.143rem; padding: 0 1.2rem .143rem 0; }
  .page-home .announce li { gap: .36rem; padding: 0 .86rem; }
  .page-home .announce .ic { width: .9rem; height: .9rem; }
  .page-home .announce li:first-child .ic { width: 1.2rem; height: 1.03rem; }
  .page-home .site-header-inner { padding-top: .2857rem; }
  .page-home .site-header .logo { font-size: 2.29rem; letter-spacing: -.03em; gap: .25rem; }
  .page-home .site-header .logo .ic { width: 3.42rem; height: 3.42rem; margin-left: -.39rem; }
  .page-home .nav { gap: .16rem; margin-right: .57rem; position: relative; top: -1px; }
  .page-home .nav-link { font-size: .75rem; }
  .page-home .nav-item > .nav-link:only-child { padding-right: .6rem; }
  .page-home .nav-item:nth-child(4) > .nav-link { padding-right: .81rem; }
  .page-home .header-actions { gap: .34rem; margin-right: -.17rem; }
  .page-home .cart-count { top: .18rem; right: -.1rem; min-width: 1.21rem; height: 1.21rem; line-height: 1.21rem; border-radius: .605rem; }
  /* hero */
  /* the picture is the mock-up's own band (1024 x 349, text removed): it always spans the window, the band keeps its proportions */
  .page-home .hero-home { --hero-h: clamp(18.75rem, 34.1vw, 56rem); }
  .page-home .hero-img-home-hero { --hero-ratio: 2.934; --hero-bg: #EEF2F6; }
  .page-home .hero-home .hero-photo { -webkit-mask-image: none; mask-image: none; }
  .page-home .hero-home .hero-deco { display: none; }
  .page-home .hero-home .hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 349' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='%23FD8204' stroke-width='6.5' d='M515 26l7 20M496 37l15 16M486 55l18 10'/%3E%3Cpath stroke='%23fff' stroke-width='3.4' d='M867 159c-3-8-6-18-4-26 2-7 10-7 11 4l1 5c4-7 14-10 17-4 2 7-12 16-25 21z'/%3E%3C/svg%3E"); }
  .page-home .hero-home .hero-copy { max-width: none; margin-bottom: clamp(.3rem, 1.54vw, 1.7rem); }
  .page-home .hero-home .hero-title span { white-space: nowrap; }
  .page-home .hero-home .hero-title { font-size: clamp(2.375rem, 6.1vw, 6.5rem); line-height: .88; letter-spacing: -.008em; }
  .page-home .hero-home .swoosh { width: clamp(9rem, 23.7vw, 25rem); height: clamp(1.1rem, 2.44vw, 2.6rem); margin: clamp(.15rem, .367vw, .4rem) 0 0 .39vw; }
  .page-home .hero-home .hero-text { font-size: clamp(1rem, 1.515vw, 1.75rem); line-height: 1.355; margin-top: clamp(.4rem, .68vw, .75rem); }
  .page-home .hero-home .hero-cta { margin-top: clamp(.8rem, 1.76vw, 1.9rem); }
  .page-home .hero-home .hero-cta .btn { padding-inline: clamp(1.4rem, 2.5vw, 2.75rem) clamp(1.2rem, 2.1vw, 2.3rem); gap: clamp(.4rem, .8vw, .85rem); font-size: clamp(.9375rem, 1.4vw, 1.5rem); }
  .page-home .hero-home .hero-cta .btn .ic { width: 1.15em; height: 1.15em; }
  /* trust strip: the four columns are not equal in the mock-up */
  .page-home .trust-strip ul { grid-template-columns: 25.83% 24.58% 22.71% 26.88%; padding: 1.34rem 0; }
  .page-home .trust-strip li { justify-content: flex-start; padding-right: 0; }
  .page-home .trust-strip li:nth-child(1) { padding-left: 20.6%; gap: .86rem; }
  .page-home .trust-strip li:nth-child(2) { padding-left: 16.2%; gap: .79rem; }
  .page-home .trust-strip li:nth-child(3) { padding-left: 17%; gap: .64rem; }
  .page-home .trust-strip li:nth-child(4) { padding-left: 11.95%; }
  .page-home .trust-strip li:nth-child(1) .ic { width: 3.9rem; height: 3.9rem; margin-block: -1rem; }
  .page-home .trust-strip li:nth-child(2) .ic { width: 2.75rem; height: 2.75rem; }
  .page-home .trust-strip li:nth-child(3) .ic { width: 3.08rem; height: 3.08rem; }
  .page-home .trust-strip li:nth-child(4) .ic { width: 2.95rem; height: 2.95rem; }
  /* Shop by Pet */
  .home-pets .section-heading { margin-inline: 2.7%; margin-bottom: .82rem; }
  .pet-tile-copy { padding-top: clamp(2.075rem, 2.84vw, 2.81rem); }
  .pet-tile-text { font-size: clamp(.875rem, 1.4vw, 1.375rem); line-height: 1.4; margin-top: .23rem; }
  .pet-tile-btn { margin-top: 1.11rem; min-height: clamp(2.357rem, 3.22vw, 3.19rem); min-width: clamp(8.857rem, 12.1vw, 12rem); padding-inline: .8rem; font-size: clamp(.8438rem, 1.3vw, 1.29rem); }
  /* Best Sellers */
  .home-best { padding-block: .8rem 1.77rem; }
  .home-best .section-heading { margin: 0 -.57rem -.12rem; }
  .home-best .product-grid { gap: .643rem; padding-inline: 0; }
  .home-best .product-card.is-compact .product-card-media { height: 8.5rem; }
  .home-best .product-card.is-compact .product-card-name { font-size: .8rem; letter-spacing: -.01em; margin-top: .25rem; }
  .home-best .product-card .rating { margin-top: .57rem; }
  .home-best .product-card.is-compact .product-card-price { font-size: 1.043rem; margin: .56rem 0 .47rem; }
  .home-best .product-card.is-compact .btn { width: 8.79rem; min-height: 2.07rem; }
  .home-best .product-card.is-compact { padding-bottom: .78rem; }
  /* Trusted band */
  .trusted { background: linear-gradient(90deg, #D9E3F6 36%, #E6EDFB 50%, #F1F6FD 70%, #EDF3FD 100%); }
  .trusted-inner { grid-template-columns: minmax(0, 33.9%) minmax(0, 1fr); column-gap: 6.4%; }
  .trusted-panel { margin: 1px 0 .36rem; padding: 1.26rem 0 1.18rem; }
  .trusted-panel::before { top: -1px; }
  .trusted-panel::after { width: auto; aspect-ratio: 84 / 170; clip-path: none; pointer-events: none; background: linear-gradient(103.24deg, var(--navy) 0, var(--navy) 32.2%, #B4C6EC 32.6%, #C6D6F8 46%, rgba(200, 216, 248, .85) 60%, rgba(200, 216, 248, 0) 66%); }
  .trusted-paw { right: -1.5rem; top: 5%; color: #24386C; opacity: 1; z-index: 1; }
  .trusted-panel { min-height: clamp(10rem, 16.6vw, 16.45rem); }
  .trusted-title { font-size: clamp(1.375rem, 2.75vw, 2.72rem); line-height: 1.05; }
  .trusted-paw { width: clamp(3rem, 5.6vw, 5.5rem); height: clamp(3rem, 5.6vw, 5.5rem); }
  .trusted-panel .stars .ic { width: clamp(1.0625rem, 1.9vw, 1.88rem); height: clamp(1.0625rem, 1.9vw, 1.88rem); }
  .trusted-text { font-size: clamp(.875rem, 1.465vw, 1.45rem); margin-top: .55rem; }
  .trusted-panel .rating { margin-top: .57rem; }
  .trusted-panel .stars .ic { margin-right: .04rem; }
  .tslider { position: relative; z-index: 1; column-gap: 1.79rem; padding-block: 1.25rem .84rem; margin-right: -.36rem; }
  .tslider-arrow { width: clamp(2.43rem, 3.32vw, 3.29rem); height: clamp(2.43rem, 3.32vw, 3.29rem); margin-top: 1rem; }
  .tslide { gap: clamp(1.43rem, 1.95vw, 1.94rem); }
  .tslide-photo { width: clamp(5.75rem, 11.13vw, 11rem); height: clamp(5.75rem, 11.13vw, 11rem); }
  .tslider-track { margin-right: -1rem; }
  .tslide-body { position: relative; top: .2rem; }
  .tslide-quote { font-size: clamp(.9688rem, 1.615vw, 1.56rem); font-weight: 600; line-height: 1.33; max-width: 21em; }
  .tslide-author { font-size: clamp(.875rem, 1.3vw, 1.29rem); font-weight: 700; margin-top: .7rem; }
  .tslide .rating { margin: .7rem 0 0 clamp(5.29rem, 7.23vw, 7.16rem); }
  .tslide .stars .ic { width: clamp(.9375rem, 1.28vw, 1.27rem); height: clamp(.9375rem, 1.28vw, 1.27rem); margin-right: 1px; }
  .tslider-dots { gap: .09rem; margin-top: .04rem; margin-left: 1.57rem; }
  .tslider-dot.is-active::before { transform: scale(1.3); }
  /* newsletter band + footer */
  /* Stay in the Loop: the band and everything in it grow with the window (--u = one mock-up pixel), so the kitten picture (the mock-up's own crop, fade included) keeps its framing */
  .page-home .newsletter-loop { --u: clamp(.88px, .09766vw, 1.548px); background: #062041; }
  .page-home .newsletter-loop .newsletter-photo { top: calc(-3 * var(--u)); width: 45.9%; }
  .page-home .newsletter-loop .newsletter-photo::after { background: linear-gradient(270deg, #062041 0%, rgba(6, 32, 65, 0) 9%); }
  .page-home .newsletter-loop .newsletter-mark { display: block; width: calc(66.5 * var(--u)); height: calc(66.5 * var(--u)); }
  .page-home .newsletter-loop .newsletter-inner { min-height: calc(131.25 * var(--u)); padding-top: calc(9.5 * var(--u)); padding-bottom: calc(20.3 * var(--u)); }
  .page-home .newsletter-loop .newsletter-title { font-size: calc(23.6 * var(--u)); }
  .page-home .newsletter-loop .newsletter-text { font-size: calc(12.9 * var(--u)); margin-top: calc(5 * var(--u)); }
  .page-home .newsletter-loop .newsletter-form { margin-top: calc(10.8 * var(--u)); max-width: calc(413 * var(--u)); }
  .page-home .newsletter-loop .newsletter-fields { gap: calc(11.4 * var(--u)); }
  .page-home .newsletter-loop .newsletter-fields .input { height: calc(35 * var(--u)); font-size: calc(13.1 * var(--u)); padding-inline: calc(12.25 * var(--u)); }
  .page-home .newsletter-loop .newsletter-fields .btn { height: calc(35 * var(--u)); min-width: calc(129.5 * var(--u)); font-size: calc(14 * var(--u)); }
  .page-home .footer-main { grid-template-columns: 30.6% 15.55% 22.2% minmax(0, 1fr); padding-block: 1.28rem 1.14rem; }
  .page-home .footer-brand .logo { font-size: 2.26rem; }
  .page-home .footer-brand .logo .ic { width: 3.7rem; height: 3.7rem; margin-left: .19rem; }
  .page-home .footer-col h3 { font-size: .915rem; margin-bottom: .3rem; }
  .page-home .footer-brand { padding-top: .55rem; }
  .page-home .footer-col li { line-height: 1.4286rem; }
  .page-home .footer-tagline { font-size: .77rem; margin: -.46rem 0 0 4.39rem; }
  .page-home .footer-pay .pay-mc { height: 1.9rem; }
  .page-home .footer-pay svg:nth-child(3) { height: 1.55rem; }
  .page-home .footer-col a { font-size: .8rem; line-height: 1.4286rem; vertical-align: top; }
  .page-home .footer-pay { margin-top: 1.09rem; }
  .page-home .footer-bottom { font-size: .74rem; padding-block: .7rem 1.42rem; }
}
@media (max-width: 700px) { .home-best .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
