/* ═══════════════════════════════════════════
   KAKOARA SHARED UI — Extracted from
   kakoara-anka-home.css for pages that
   don't load the full Anka theme.
   ═══════════════════════════════════════════ */

/* ─── Premium Icon Variables ─── */
:root {
  --icon-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --icon-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --icon-gold: #4E95BC;
  --icon-gold-glow: rgba(200, 148, 59, 0.25);
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(16, 12, 8, 0.04);
}
::-webkit-scrollbar-thumb {
  background: var(--icon-gold);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a6782e;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--icon-gold) rgba(16, 12, 8, 0.04);
}

/* ─── Icon System with Premium Hover Animations ─── */
.k-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 280ms var(--icon-ease), color 280ms ease, filter 280ms ease !important;
}
.k-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 280ms var(--icon-ease), color 280ms ease;
}
a:hover .k-icon,
button:hover .k-icon,
.bag-link:hover .k-icon,
.wishlist-link:hover .k-icon,
.auth-trigger:hover .k-icon {
  transform: scale(1.15);
  color: var(--icon-gold) !important;
  filter: drop-shadow(0 0 8px var(--icon-gold-glow));
}

/* ─── Individual Icon Animations ─── */
.k-icon--account:hover svg {
  animation: k-icon-bounce 0.5s var(--icon-ease);
}
.k-icon--heart:hover svg {
  animation: k-icon-heartbeat 0.6s var(--icon-ease);
}
.k-icon--heart.is-active svg {
  fill: var(--icon-gold);
  stroke: var(--icon-gold);
  filter: drop-shadow(0 0 6px var(--icon-gold-glow));
}
.k-icon--bag:hover svg {
  animation: k-icon-shake 0.5s var(--icon-ease);
}
.k-icon--menu:hover svg {
  animation: k-icon-wiggle 0.4s var(--icon-ease);
}
.k-icon--support:hover svg {
  animation: k-icon-pulse 0.6s ease-in-out;
}

/* ─── Header Icon Ring Effect ─── */
.kb-header-icon {
  position: relative;
  transition: transform 280ms var(--icon-ease), color 280ms ease;
}
.kb-header-icon:hover {
  transform: scale(1.15);
  color: var(--icon-gold);
}

/* ─── Premium Header Action Buttons ─── */
.site-nav__actions a,
.site-nav__actions button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 280ms var(--icon-ease);
}
.site-nav__actions a::after,
.site-nav__actions button::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 280ms var(--icon-ease);
  pointer-events: none;
}
.site-nav__actions a:hover::after,
.site-nav__actions button:hover::after {
  border-color: var(--icon-gold);
  opacity: 0.3;
  transform: scale(1.1);
}
.site-nav__actions a:hover,
.site-nav__actions button:hover {
  background: rgba(200, 148, 59, 0.06);
}

/* ─── Bottom Nav Icon Animation ─── */
.kb-bottom-nav__item svg {
  transition: transform 280ms var(--icon-ease-spring);
}
.kb-bottom-nav__item:hover svg {
  transform: scale(1.2) translateY(-1px);
}
.kb-bottom-nav__item.is-active svg {
  transform: scale(1.1);
}

@keyframes k-icon-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  65% { transform: translateY(-1px); }
}
@keyframes k-icon-heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  45% { transform: scale(1); }
  65% { transform: scale(1.12); }
}
@keyframes k-icon-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}
@keyframes k-icon-wiggle {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(4deg); }
  60% { transform: rotate(-4deg); }
}
@keyframes k-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ─── Cart Badge with Gold ─── */
.bag-link [data-cart-count],
.kb-bottom-nav__badge {
  background: var(--icon-gold) !important;
  box-shadow: 0 0 8px var(--icon-gold-glow), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: k-cart-badge-pop 0.3s var(--icon-ease-spring);
  color: #fff;
}
[data-cart-count]:empty { display: none; }

@keyframes k-cart-badge-pop {
  0% { transform: scale(0.5); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ─── Wishlist Button with Gold ─── */
.wishlist-button.is-active {
  color: var(--icon-gold) !important;
  border-color: rgba(200, 148, 59, 0.25) !important;
  background: rgba(200, 148, 59, 0.08) !important;
  box-shadow: 0 14px 28px rgba(200, 148, 59, 0.18) !important;
}
.wishlist-button.is-active .k-icon {
  color: var(--icon-gold) !important;
  filter: drop-shadow(0 0 6px var(--icon-gold-glow));
}
.wishlist-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 17, 20, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(16, 17, 20, 0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 220ms var(--icon-ease), color 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  cursor: pointer;
}
.wishlist-button:hover {
  transform: scale(1.1);
  color: var(--icon-gold);
  border-color: rgba(200, 148, 59, 0.2);
}
.wishlist-button .k-icon {
  width: 18px;
  height: 18px;
}

/* ─── Add to Cart Button Gold Pulse on Add ─── */
.add-to-cart-button.is-added {
  background: var(--icon-gold) !important;
  border-color: #a6782e !important;
  box-shadow: 0 18px 36px rgba(200, 148, 59, 0.25) !important;
}

/* ─── Scroll-triggered fade-in animation ─── */
.k-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--icon-ease), transform 600ms var(--icon-ease);
}
.k-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.k-reveal--left {
  transform: translateX(-24px);
}
.k-reveal--left.is-visible {
  transform: translateX(0);
}
.k-reveal--right {
  transform: translateX(24px);
}
.k-reveal--right.is-visible {
  transform: translateX(0);
}
.k-reveal--scale {
  transform: scale(0.92);
}
.k-reveal--scale.is-visible {
  transform: scale(1);
}

/* ─── Global Scroll-to-Top Button ─── */
.k-global-scroll-top {
  position: fixed;
  right: 28px;
  bottom: 134px;
  z-index: 9997;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--icon-gold), #a6782e);
  color: #fff;
  box-shadow: 0 4px 20px var(--icon-gold-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  cursor: pointer;
}
.k-global-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.k-global-scroll-top span {
  font-size: 1.2rem;
  font-weight: 900;
}

* {
  -webkit-tap-highlight-color: transparent;
}
button:active,
a:active {
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .k-icon, .k-icon svg {
    animation: none !important;
    transition: none !important;
  }
  .k-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .k-cart-popup {
    animation: none !important;
  }
}

/* ─── Skeleton Loading Shimmer ─── */
@keyframes k-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.k-product-skeleton {
  animation: k-skeleton-fade-in 0.3s ease;
}
@keyframes k-skeleton-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

