.product-buy {
  position: relative;
  display: inline-grid;
  place-items: center;
  isolation: isolate;
}

.product-buy .add {
  min-width: 74px;
}

.buy-dog {
  display: none;
}

@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
  .products article,
  .product-copy,
  .product-copy > div {
    overflow: visible;
  }

  .products article:hover,
  .products article:focus-within {
    position: relative;
    z-index: 4;
  }

  .product-copy > div {
    margin-top: 36px;
  }

  .product-buy {
    margin-left: 12px;
  }

  .product-buy .add {
    position: relative;
    z-index: 3;
    min-width: 94px;
    min-height: 36px;
    padding: 9px 13px;
    overflow: hidden;
    border: 1px solid #d6ddd8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(11, 48, 72, 0.08);
    font-weight: 800;
    color: var(--navy);
    transition: background-color 0.2s ease, border-color 0.2s ease,
      color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .product-buy:hover .add,
  .product-buy:focus-within .add,
  .product-buy .add.is-added {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
    box-shadow: 0 9px 20px rgba(11, 48, 72, 0.22);
    transform: translateY(-1px);
  }

  .product-buy .add:focus-visible {
    outline: 3px solid rgba(158, 47, 43, 0.24);
    outline-offset: 3px;
  }

  .buy-dog,
  .buy-dog span,
  .buy-dog i {
    position: absolute;
  }

  .buy-dog {
    display: block;
    z-index: 2;
    top: 50%;
    right: 4px;
    width: 66px;
    height: 66px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -24%, 0) scale(0.8) rotate(-4deg);
    transform-origin: 50% 100%;
    transition: transform 0.38s cubic-bezier(0.33, 1, 0.68, 1),
      opacity 0.16s ease;
  }

  .product-buy:hover .buy-dog,
  .product-buy:focus-within .buy-dog {
    opacity: 1;
    transform: translate3d(10px, -91%, 0) scale(1) rotate(8deg);
    transition-delay: 0.06s;
  }

  .buy-dog-tail {
    z-index: 0;
    left: 4px;
    bottom: 7px;
    width: 8px;
    height: 25px;
    opacity: 0;
    border-radius: 999px 999px 2px 2px;
    background: #e1a46e;
    transform: rotate(-42deg);
    transform-origin: 50% 100%;
  }

  .product-buy:hover .buy-dog-tail,
  .product-buy:focus-within .buy-dog-tail {
    opacity: 1;
    animation: tlb-buy-tail 0.28s ease-in-out infinite alternate;
  }

  .buy-dog-body {
    z-index: 1;
    left: 50%;
    bottom: 0;
    width: 50%;
    height: 42%;
    border-radius: 55% 55% 10% 10%;
    background: #9f6a43;
    transform: translateX(-50%);
  }

  .buy-dog-head {
    z-index: 3;
    left: 50%;
    bottom: 9%;
    width: 68%;
    height: 72%;
    border-radius: 48% 48% 42% 42%;
    background: #e1a46e;
    transform: translateX(-50%);
  }

  .buy-dog-ears {
    z-index: 2;
    top: 9%;
    left: 50%;
    width: 82%;
    height: 42%;
    transform: translateX(-50%);
  }

  .buy-dog-ears i {
    top: 0;
    left: 0;
    width: 29%;
    height: 82%;
    border-radius: 65% 20% 80% 14%;
    background: #9f6a43;
    transform: rotate(16deg);
  }

  .buy-dog-ears i:last-child {
    right: 0;
    left: auto;
    transform: rotate(-16deg) scaleX(-1);
  }

  .buy-dog-eyes {
    top: 27%;
    left: 50%;
    width: 70%;
    height: 25%;
    transform: translateX(-50%);
  }

  .buy-dog-eyes i {
    top: 50%;
    left: 12%;
    width: 22%;
    height: 62%;
    overflow: hidden;
    border-radius: 999px;
    background: #151515;
    transform: translateY(-50%);
  }

  .buy-dog-eyes i:last-child {
    right: 12%;
    left: auto;
  }

  .buy-dog-eyes i::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 17%;
    width: 32%;
    height: 32%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
  }

  .buy-dog-eyes i::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: -105%;
    right: 0;
    left: 0;
    height: 100%;
    border-radius: 999px;
    background: #e1a46e;
    animation: tlb-buy-blink 4.6s ease-in-out infinite;
  }

  .buy-dog-muzzle {
    z-index: 4;
    bottom: 6%;
    left: 50%;
    width: 65%;
    height: 37%;
    transform: translateX(-50%);
  }

  .buy-dog-muzzle::before,
  .buy-dog-muzzle::after {
    content: "";
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 54%;
    height: 88%;
    border-radius: 68% 35% 55% 34%;
    background: #c28e5f;
  }

  .buy-dog-muzzle::after {
    right: 0;
    left: auto;
    transform: scaleX(-1);
  }

  .buy-dog-mouth {
    z-index: 1;
    bottom: -17%;
    left: 50%;
    width: 48%;
    height: 84%;
    overflow: hidden;
    border-radius: 50%;
    background: #18231d;
    transform: translateX(-50%);
  }

  .buy-dog-mouth i {
    bottom: 5%;
    left: 50%;
    width: 55%;
    height: 48%;
    border-radius: 50%;
    background: #df615d;
    transform: translateX(-50%);
    animation: tlb-buy-tongue 0.34s ease-in-out infinite alternate;
  }

  .buy-dog-nose {
    z-index: 5;
    top: -8%;
    left: 50%;
    width: 31%;
    height: 26%;
    border-radius: 48% 48% 58% 58%;
    background: #1f2937;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16);
    transform: translateX(-50%);
  }

  .buy-dog-nose::before,
  .buy-dog-nose::after {
    content: "";
    position: absolute;
    top: 48%;
    width: 20%;
    height: 25%;
    border-radius: 50%;
    background: #080b0e;
  }

  .buy-dog-nose::before {
    left: 22%;
  }

  .buy-dog-nose::after {
    right: 22%;
  }
}

@keyframes tlb-buy-tail {
  from {
    transform: rotate(-52deg) skewX(6deg);
  }
  to {
    transform: rotate(-27deg) skewX(-6deg);
  }
}

@keyframes tlb-buy-tongue {
  from {
    transform: translate(-50%, 1px);
  }
  to {
    transform: translate(-50%, 4px);
  }
}

@keyframes tlb-buy-blink {
  0%,
  91%,
  96%,
  100% {
    top: -105%;
  }
  93%,
  94% {
    top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buy-dog,
  .buy-dog-tail,
  .buy-dog-mouth i,
  .buy-dog-eyes i::after,
  .product-buy .add {
    animation: none !important;
    transition: none !important;
  }
}
