@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes scroll-infinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% / 3));
  }
}

@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.skeleton {
  background: linear-gradient(to right, rgba(232, 234, 237, .85) 8%, rgba(248, 250, 253, 1) 18%, rgba(232, 234, 237, .85) 33%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

.payment-carousel {
  animation: scroll-infinite 10s linear infinite;
}

.payment-carousel-wrapper:hover .payment-carousel {
  animation-play-state: paused;
}

.animate-text-gradient {
  background: linear-gradient(90deg,
      #1a73e8 0%,
      #34a853 18%,
      #fbbc04 36%,
      #ea4335 54%,
      #1a73e8 72%,
      #34a853 100%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGradient 7s ease-in-out infinite alternate;
}

.hero-eyebrow {
  max-width: calc(100vw - 2rem);
  line-height: 1.35;
}

.animate-fade-in-up {
  animation: fadeInUp .8s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.animate-fade-in {
  animation: fadeIn .28s ease-out forwards;
}

.category-dropdown-panel {
  position: absolute;
  z-index: 90;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow-panel);
  width: min(20rem, calc(100vw - 1rem)) !important;
}

.category-search-input {
  background: rgba(248, 250, 253, .96);
}

.category-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 2.9rem;
  outline: 1px solid transparent;
  outline-offset: -1px;
  background: transparent;
}

.category-item > span {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.35;
}

.category-item:hover {
  background: rgba(248, 250, 253, .9);
  outline-color: rgba(218, 220, 224, .9);
}

.category-item.is-active {
  background: rgba(232, 240, 254, .95);
  color: #174ea6;
  outline-color: rgba(26, 115, 232, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85);
}

.category-item .check-shell {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  border-radius: .38rem;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(218, 220, 224, .95);
  transition: all .2s ease;
  flex: 0 0 auto;
}

.category-item.is-active .check-shell {
  background: linear-gradient(135deg, #1a73e8, #34a853);
  box-shadow: 0 6px 12px rgba(26, 115, 232, .24);
}

.category-item .check-icon {
  opacity: 0;
  transform: scale(.5);
  transition: all .2s ease;
}

#category-list {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}

.category-item.is-active .check-icon {
  opacity: 1;
  transform: scale(1);
}

.payment-logo-card {
  background: #fff !important;
  border-color: #dadce0 !important;
  border-radius: 1.5rem !important;
  box-shadow: var(--shadow-card);
}

.product-card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: #fff !important;
  border-color: #dadce0 !important;
  box-shadow: var(--shadow-card);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -50% -18%;
  height: 72%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 20%, rgba(26, 115, 232, .12), transparent 34%),
    radial-gradient(circle at 38% 78%, rgba(52, 168, 83, .12), transparent 30%),
    radial-gradient(circle at 68% 24%, rgba(251, 188, 5, .11), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(234, 67, 53, .12), transparent 32%);
  filter: blur(24px);
  transition: opacity .35s ease;
}

.product-card:hover {
  border-color: rgba(218, 220, 224, .92) !important;
  box-shadow: 0 16px 36px rgba(60, 64, 67, .14);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card h3 {
  color: #202124 !important;
}

.product-card .product-title-text {
  color: #202124;
  transition: background-position .55s ease, filter .35s ease, color .35s ease;
}

.product-card:hover .product-title-text {
  color: transparent !important;
  background-image: linear-gradient(90deg, #1a73e8 0%, #34a853 32%, #fbbc05 62%, #ea4335 100%);
  background-size: 220% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: saturate(1.08);
}

.product-card .product-media {
  background: #f8fafd !important;
  border: 1px solid rgba(218, 220, 224, .8);
}

.product-card .product-shell {
  position: relative;
  z-index: 1;
}

#products-grid .animate-pulse > div {
  background: #fff !important;
  border-color: #dadce0 !important;
  box-shadow: var(--shadow-card);
}

#theme-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .payment-carousel,
  .product-card,
  .product-card::before,
  .product-card .product-title-text,
  .animate-fade-in-up,
  .animate-fade-in {
    animation: none !important;
    transition: none !important;
  }
}
