.product-reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.96);
  transition:
    opacity 0.75s cubic-bezier(.2, .9, .2, 1),
    transform 0.75s cubic-bezier(.2, .9, .2, 1);
}

.product-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.product-card-inner {
  position: relative;
  overflow: hidden;
}

.product-card-inner::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(
    120deg,
    transparent 35%,
    rgba(255, 255, 255, 0.65) 50%,
    transparent 65%
  );
  transform: translateX(-60%) rotate(12deg);
  opacity: 0;
  pointer-events: none;
}

.product-card:hover .product-card-inner::before {
  animation: productShine 0.9s ease;
}

@keyframes productShine {
  0% {
    opacity: 0;
    transform: translateX(-60%) rotate(12deg);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(60%) rotate(12deg);
  }
}

.cart-toast {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(.2, .9, .2, 1);
}

.cart-toast.is-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cart-toast-progress {
  width: 100%;
  transform-origin: left;
}

.cart-toast.is-show .cart-toast-progress {
  animation: toastProgress 1.8s linear forwards;
}

@keyframes toastProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-reveal,
  .cart-toast {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product-card:hover .product-card-inner::before,
  .cart-toast.is-show .cart-toast-progress {
    animation: none;
  }
}



.product-size-area {
  border-radius: 18px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.product-size-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 3px;
  width: 100%;
}

.product-size-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  background: rgba(253, 242, 248, 0.9);
  font-size: 8px;
  font-weight: 900;
  color: #334155;
  line-height: 1;
  transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.product-size-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.18);
}

.product-size-btn.is-selected {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(
    135deg,
    #ec4899,
    #a855f7,
    #6366f1,
    #06b6d4,
    #22c55e,
    #f97316,
    #ec4899
  );
  background-size: 500% 500%;
  animation: zestGradientMove 4s ease-in-out infinite;
  box-shadow: 0 10px 26px rgba(99, 102, 241, 0.28);
  transform: translateY(-1px) scale(1.04);
}

.product-size-area.size-warning {
  background: rgba(255, 241, 242, 0.95);
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.25), 0 14px 40px rgba(244, 63, 94, 0.18);
  animation: sizeShake 0.42s ease;
}

.size-warning-text {
  display: none;
}

.product-size-area.size-warning .size-warning-text {
  display: block;
}

@keyframes sizeShake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-3px);
  }
}

@media (min-width: 640px) {
  .product-size-list {
    gap: 6px;
  }

  .product-size-btn {
    flex: 0 0 auto;
    min-width: 42px;
    height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }
}





.cart-toast.hidden {
  display: none !important;
}







