/* ACO storefront motion — presence with a bit more life. */

@keyframes aco-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes aco-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@keyframes aco-soft-pulse-once {
  0% { box-shadow: 0 0 0 0 rgba(197, 158, 73, .3); }
  100% { box-shadow: 0 0 0 10px rgba(197, 158, 73, 0); }
}

@keyframes aco-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes aco-icon-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  40% { transform: scale(1.12) rotate(-8deg); opacity: .85; }
  70% { transform: scale(.96) rotate(6deg); opacity: 1; }
}
@keyframes aco-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}
@keyframes aco-icon-swing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(8deg); }
}
@keyframes aco-icon-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(0); }
  80% { transform: translateY(-2px); }
}
@keyframes aco-icon-heartbeat {
  0%, 100% { transform: scale(1); }
  20% { transform: scale(1.18); }
  40% { transform: scale(1); }
  60% { transform: scale(1.12); }
}
@keyframes aco-fade-slide {
  from { opacity: 0; transform: translate3d(12px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Reveal-on-scroll */
.aco-reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity .55s cubic-bezier(.22, 1, .36, 1),
    transform .55s cubic-bezier(.22, 1, .36, 1);
}
/* Sticky-safe: opacity only — transform would break position:sticky */
.aco-reveal-fade {
  opacity: 0;
  transition: opacity .5s ease;
}
.aco-will-change { will-change: opacity, transform; }
.aco-reveal.is-in,
.aco-reveal-fade.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.aco-reveal-stagger > .aco-reveal:nth-child(1) { transition-delay: .02s; }
.aco-reveal-stagger > .aco-reveal:nth-child(2) { transition-delay: .06s; }
.aco-reveal-stagger > .aco-reveal:nth-child(3) { transition-delay: .1s; }
.aco-reveal-stagger > .aco-reveal:nth-child(4) { transition-delay: .14s; }
.aco-reveal-stagger > .aco-reveal:nth-child(5) { transition-delay: .18s; }
.aco-reveal-stagger > .aco-reveal:nth-child(6) { transition-delay: .22s; }
.aco-reveal-stagger > .aco-reveal:nth-child(7) { transition-delay: .26s; }
.aco-reveal-stagger > .aco-reveal:nth-child(8) { transition-delay: .3s; }
.aco-reveal-stagger > .aco-reveal:nth-child(n+9) { transition-delay: .34s; }

/* Home hero — short-lived animations only */
.home-hero-slides { overflow: hidden; }
@keyframes aco-kenburns-soft {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}
.home-hero-slide.is-active .home-hero-photo {
  animation: aco-kenburns-soft 7s ease-out forwards;
  transform-origin: center 30%;
}
.home-hero-content.is-animating > * {
  animation: aco-rise .65s cubic-bezier(.22, 1, .36, 1) both;
}
.home-hero-content.is-animating > *:nth-child(1) { animation-delay: .04s; }
.home-hero-content.is-animating > *:nth-child(2) { animation-delay: .1s; }
.home-hero-content.is-animating > *:nth-child(3) { animation-delay: .16s; }
.home-hero-content.is-animating > *:nth-child(4) { animation-delay: .22s; }
.home-hero-content.is-animating > *:nth-child(5) { animation-delay: .28s; }
.home-hero-actions .btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(197, 158, 73, .32);
}

/* Cards — hover only (no permanent GPU cost) */
.category-card,
.type-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .2s ease;
}
.category-card:hover,
.type-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(23, 46, 85, .1);
}
.product-photo-link .asset-image,
.product-photo-link img,
.product-photo-link svg {
  transition: transform .4s ease;
}
.product-card:hover .product-photo-link .asset-image,
.product-card:hover .product-photo-link img,
.product-card:hover .product-photo-link svg {
  transform: scale(1.04);
}

/* Shop */
.co-check-chip span,
.co-color-chip-face {
  transition: transform .18s ease, background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.co-check-chip:hover span,
.co-color-chip:hover .co-color-chip-face {
  transform: translateY(-1px);
}
.co-check-chip input:checked + span,
.co-color-chip input:checked + .co-color-chip-face {
  animation: aco-soft-pulse-once .9s ease-out 1;
}
.co-filter-chip {
  transition: transform .18s ease, background .18s, border-color .18s;
}
.co-filter-chip:hover { transform: translateY(-1px); }

/* Product detail */
.co-color-option,
.co-size-option {
  transition: transform .18s ease, border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.co-color-option:hover:not(:disabled),
.co-size-option:hover:not(:disabled) {
  transform: translateY(-2px);
}
.co-screen-jw .co-add-cart.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(34, 63, 115, .26);
}
.co-screen-jw .co-sale-badge {
  animation: aco-soft-pulse-once 1.2s ease-out 1;
}
.co-buy-actions > .co-wish-button:hover { transform: scale(1.04); }
.co-quantity > button:active:not(:disabled) { transform: scale(.94); }
.co-product-details summary { transition: color .2s ease; }
.co-product-details summary:hover { color: var(--navy-deep); }

.home-expand-toggle {
  transition: transform .2s ease, background .2s, border-color .2s, color .2s;
}
.home-expand-toggle:hover { transform: translateY(-1px); }
.home-products.is-expanded [data-expand-panel] > .product-card,
.home-categories.is-expanded [data-expand-panel] > .category-card {
  animation: aco-rise .4s ease both;
}

/* Section / service icons */
.section-icon {
  display: inline-block;
  margin-inline-end: .35rem;
  color: var(--gold);
  vertical-align: -0.12em;
}
.section-icon-float { animation: aco-icon-float 2.8s ease-in-out infinite; }
.section-icon-twinkle { animation: aco-icon-twinkle 2.4s ease-in-out infinite; }
.section-icon-pulse { animation: aco-icon-pulse 1.8s ease-in-out infinite; }
.section-icon-swing { animation: aco-icon-swing 2.6s ease-in-out infinite; transform-origin: top center; }
.footer-icon-bounce i { display: inline-block; animation: aco-icon-bounce 2.2s ease-in-out infinite; }
.footer-icon-heartbeat i { display: inline-block; animation: aco-icon-heartbeat 1.7s ease-in-out infinite; }
.footer-service:hover .footer-service-icon { transform: translateY(-2px); }
.footer-service-icon { transition: transform .25s ease, border-color .2s; }

/* Extra life */
.header-catnav a {
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.header-catnav a:hover { transform: translateY(-1px); }
.btn, .text-link, .co-view-all {
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover, .text-link:hover, .co-view-all:hover { transform: translateY(-1px); }
.product-card {
  transition: transform .28s ease, box-shadow .28s ease, opacity .2s ease;
}
.home-hero-dot { transition: transform .22s ease, background .22s ease; }
.home-hero-dot:hover { transform: scale(1.25); }
.co-checkout-steps li { transition: color .2s ease, transform .2s ease; }
.co-checkout-steps li.active { animation: aco-fade-slide .45s ease both; }

@media (prefers-reduced-motion: reduce) {
  .aco-reveal,
  .aco-reveal-fade,
  .aco-reveal.is-in,
  .aco-reveal-fade.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .home-hero-slide.is-active .home-hero-photo,
  .home-hero-content.is-animating > *,
  .co-check-chip input:checked + span,
  .co-color-chip input:checked + .co-color-chip-face,
  .co-screen-jw .co-sale-badge,
  .home-products.is-expanded [data-expand-panel] > .product-card,
  .home-categories.is-expanded [data-expand-panel] > .category-card,
  .section-icon-float,
  .section-icon-twinkle,
  .section-icon-pulse,
  .section-icon-swing,
  .footer-icon-bounce i,
  .footer-icon-heartbeat i,
  .co-checkout-steps li.active {
    animation: none !important;
  }
  .category-card:hover,
  .type-card:hover,
  .product-card:hover,
  .co-screen-jw .co-add-cart.btn-primary:hover,
  .co-buy-actions > .co-wish-button:hover,
  .btn:hover,
  .text-link:hover,
  .co-view-all:hover,
  .header-catnav a:hover {
    transform: none !important;
  }
}
