.mobile-cart-fab {
  display: none;
}

.cart-fly-card {
  position: fixed;
  z-index: 1049;
  overflow: hidden;
  pointer-events: none;
  transform-origin: center;
  box-shadow: 0 14px 36px rgba(29, 29, 27, 0.28);
}

.cart-row.is-catching {
  animation: cart-row-catch 0.5s ease-out;
}

@media (max-width: 767px) {
  .mobile-cart-fab {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 1050;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(29, 29, 27, 0.3);
    font-size: 1.35rem;
  }

  .mobile-cart-fab:hover,
  .mobile-cart-fab:focus-visible {
    background: #5f3b09;
    color: #fff;
  }

  .mobile-cart-fab-count {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--sand);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-cart-fab.is-catching {
    animation: cart-catch 0.4s ease-out;
  }
}

@keyframes cart-catch {
  50% {
    transform: scale(1.16);
  }
}

@keyframes cart-row-catch {
  50% {
    background: rgba(236, 214, 163, 0.58);
    box-shadow: 0 0 0 8px rgba(130, 82, 14, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-cart-fab.is-catching,
  .cart-row.is-catching {
    animation: none;
  }
}
