/* =============================================================================
   UNIVERSAL PRODUCTS — WOW2 Animation Layer
   Mind-blowing micro-interactions, GPU-accelerated reveals, luxury polish
   ============================================================================= */

/* ============================================================
   0. KEYFRAME LIBRARY
   ============================================================ */

@keyframes up-float-bob {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(1deg); }
  66%       { transform: translateY(-7px) rotate(-1deg); }
}

@keyframes up-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes up-glare-sweep {
  0%   { left: -120%; }
  100% { left: 160%; }
}

@keyframes up-count-pop {
  0%   { opacity: 0; transform: translateY(20px) scale(0.85); }
  70%  { transform: translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes up-blob-morph {
  0%,100% { border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%; }
  25%     { border-radius: 40% 60% 68% 32% / 52% 62% 38% 48%; }
  50%     { border-radius: 54% 46% 36% 64% / 40% 56% 44% 60%; }
  75%     { border-radius: 38% 62% 52% 48% / 64% 40% 60% 36%; }
}


@keyframes up-text-char-in {
  from { opacity: 0; transform: translateY(60%) rotateX(-50deg); }
  to   { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

@keyframes up-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes up-shimmer-line {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes up-ping {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes up-badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197,155,81,0); }
  50%       { box-shadow: 0 0 0 8px rgba(197,155,81,0.18); }
}

@keyframes up-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes up-progress-fill {
  from { width: 0%; }
  to   { width: 100%; }
}

@keyframes up-ripple {
  0%   { transform: scale(0); opacity: 0.45; }
  100% { transform: scale(3.5); opacity: 0; }
}

@keyframes up-slide-up-stagger {
  from { opacity: 0; transform: translateY(55px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes up-fade-blur {
  from { opacity: 0; filter: blur(10px); transform: translateY(20px); }
  to   { opacity: 1; filter: blur(0px);  transform: translateY(0); }
}

@keyframes up-line-draw {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* ============================================================
   1. MAGNETIC BUTTONS
   ============================================================ */

.btn-brass,
.btn-outline-brass {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 0.35s ease,
    background-color 0.3s ease,
    border-color 0.3s ease !important;
}

/* Ripple layer */
.btn-brass .up-ripple,
.btn-outline-brass .up-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  transform: scale(0);
  pointer-events: none;
  animation: up-ripple 0.65s linear forwards;
}

/* Glare sweep on hover */
.btn-brass::after,
.btn-outline-brass::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(105deg,
    transparent 20%,
    rgba(255,255,255,0.22) 50%,
    transparent 80%);
  transform: skewX(-15deg);
  pointer-events: none;
  transition: none;
}

.btn-brass:hover::after,
.btn-outline-brass:hover::after {
  animation: up-glare-sweep 0.55s ease-out forwards;
}

/* ============================================================
   2. PRODUCT CARD TILT + GLARE
   ============================================================ */

.product-card {
  transform-style: preserve-3d !important;
  perspective: 800px;
}

.product-card .card-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255,255,255,0.12) 0%,
    transparent 70%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}
.product-card:hover .card-glare { opacity: 1; }

/* ============================================================
   3. CATEGORY CARD ENHANCED HOVER
   ============================================================ */

a.product-card .product-media img {
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1), filter 0.4s ease !important;
}
a.product-card:hover .product-media img {
  transform: scale(1.08) !important;
  filter: brightness(0.92) saturate(1.15) !important;
}

/* Category card overlay label */
a.product-card .product-media::before {
  content: 'Explore →';
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(197,155,81,0.9);
  color: #0E0A06;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 6;
  white-space: nowrap;
}
a.product-card:hover .product-media::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   4. BRAND CARD MICRO-INTERACTIONS
   ============================================================ */

.brand-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.45s ease,
    border-color 0.3s ease !important;
}
.brand-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #C59B51, #E8C97A, #C59B51);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  border-radius: 0 0 4px 4px;
}
.brand-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 28px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(197,155,81,0.35) !important;
}
.brand-card:hover::after { transform: scaleX(1); }

/* Icon circle bounce */
.brand-card > div:first-child {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), background-color 0.3s ease !important;
}
.brand-card:hover > div:first-child {
  transform: scale(1.18) rotate(8deg) !important;
  background-color: rgba(197,155,81,0.25) !important;
}

/* ============================================================
   5. SCROLL REVEAL — MULTI-DIRECTION, BLUR, STAGGER
   ============================================================ */

/* Base hidden state */
[data-wow="fade-up"],
[data-wow="fade-left"],
[data-wow="fade-right"],
[data-wow="fade-scale"],
[data-wow="fade-blur"],
[data-wow="clip-up"] {
  will-change: opacity, transform, filter;
}

[data-wow="fade-up"]    { opacity: 0; transform: translateY(60px) scale(0.97); }
[data-wow="fade-left"]  { opacity: 0; transform: translateX(-60px); }
[data-wow="fade-right"] { opacity: 0; transform: translateX(60px); }
[data-wow="fade-scale"] { opacity: 0; transform: scale(0.82) rotate(-2deg); }
[data-wow="fade-blur"]  { opacity: 0; filter: blur(12px); transform: translateY(30px); }
[data-wow="clip-up"]    {
  opacity: 1;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transform: none;
}

[data-wow].wow-in[data-wow="fade-up"]    { opacity: 1; transform: none; transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1) var(--wow-delay,0s), transform 0.85s cubic-bezier(0.16,1,0.3,1) var(--wow-delay,0s); }
[data-wow].wow-in[data-wow="fade-left"]  { opacity: 1; transform: none; transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1) var(--wow-delay,0s), transform 0.85s cubic-bezier(0.16,1,0.3,1) var(--wow-delay,0s); }
[data-wow].wow-in[data-wow="fade-right"] { opacity: 1; transform: none; transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1) var(--wow-delay,0s), transform 0.85s cubic-bezier(0.16,1,0.3,1) var(--wow-delay,0s); }
[data-wow].wow-in[data-wow="fade-scale"] { opacity: 1; transform: none; transition: opacity 0.9s cubic-bezier(0.34,1.2,0.64,1) var(--wow-delay,0s), transform 0.9s cubic-bezier(0.34,1.2,0.64,1) var(--wow-delay,0s); }
[data-wow].wow-in[data-wow="fade-blur"]  { opacity: 1; filter: blur(0); transform: none; transition: opacity 0.95s ease var(--wow-delay,0s), filter 0.95s ease var(--wow-delay,0s), transform 0.95s ease var(--wow-delay,0s); }
[data-wow].wow-in[data-wow="clip-up"]    { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: clip-path 0.9s cubic-bezier(0.16,1,0.3,1) var(--wow-delay,0s); }

/* ============================================================
   6. SECTION HEADING ANIMATED UNDERLINE
   ============================================================ */

.section-heading-animated {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.section-heading-animated::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #C59B51 0%, #E8C97A 50%, #C59B51 100%);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.22,1,0.36,1);
  animation: up-gradient-shift 3s ease infinite;
  border-radius: 2px;
}
.section-heading-animated.wow-in::after {
  transform: scaleX(1);
}

/* ============================================================
   7. NUMBER COUNTER WIDGET
   ============================================================ */

.up-counter-wrap {
  text-align: center;
}

.up-counter {
  font-family: 'Cormorant Garamond', 'Outfit', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--foundry-brass);
  line-height: 1;
  display: inline-block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.up-counter.counting { opacity: 1; }

.up-counter-label {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-top: 0.4rem;
}

/* ============================================================
   8. MARQUEE BRAND TICKER
   ============================================================ */

.up-marquee-section {
  overflow: hidden;
  background: linear-gradient(90deg, #0E0A06 0%, #17120E 50%, #0E0A06 100%);
  border-top: 1px solid rgba(197,155,81,0.15);
  border-bottom: 1px solid rgba(197,155,81,0.15);
  padding: 1rem 0;
  position: relative;
}
.up-marquee-section::before,
.up-marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.up-marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, #0E0A06, transparent);
}
.up-marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, #0E0A06, transparent);
}

.up-marquee-track {
  display: flex;
  width: max-content;
  animation: up-marquee 28s linear infinite;
  gap: 0;
}
.up-marquee-track:hover { animation-play-state: paused; }

.up-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2.5rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(197,155,81,0.6);
  white-space: nowrap;
}
.up-marquee-item .sep {
  display: inline-block;
  width: 4px; height: 4px;
  background: rgba(197,155,81,0.4);
  border-radius: 50%;
  flex-shrink: 0;
}
.up-marquee-item:hover { color: rgba(197,155,81,1); }

/* ============================================================
   9. STATS STRIP  (floating counters section)
   ============================================================ */

.up-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  background: linear-gradient(135deg, #17120E 0%, #201810 100%);
  border-top: 1px solid rgba(197,155,81,0.18);
  border-bottom: 1px solid rgba(197,155,81,0.18);
}

.up-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(197,155,81,0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}
.up-stat-item:last-child { border-right: none; }
.up-stat-item:hover { background: rgba(197,155,81,0.04); }

.up-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #C59B51;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.1em;
}
.up-stat-num .suffix {
  font-size: 0.5em;
  font-weight: 600;
  color: #E8C97A;
}
.up-stat-lbl {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  margin-top: 0.5rem;
}


/* ============================================================
   11. ANIMATED SECTION DIVIDERS
   ============================================================ */


.up-section-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
.up-section-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ============================================================
   12. FAQ ACCORDION ANIMATION
   ============================================================ */

.faq-item {
  background: var(--linen-card, #F9F5EE);
  border: 1px solid var(--linen-border, #E5DDD0);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}
.faq-item:hover {
  border-color: rgba(197,155,81,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.faq-item .faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  gap: 1rem;
  user-select: none;
}
.faq-item .faq-icon {
  width: 28px; height: 28px;
  background: rgba(197,155,81,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #C59B51;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(197,155,81,0.22);
}
.faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1), padding 0.35s ease;
}
.faq-item.open .faq-body {
  max-height: 400px;
  padding-bottom: 1.5rem;
}
.faq-item .faq-body-inner { padding: 0 2rem; }

/* ============================================================
   13. FLOATING PARTICLES CANVAS
   ============================================================ */

#up-particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ============================================================
   14. LOADING SCREEN + PAGE TRANSITION
   ============================================================ */

#up-page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #0E0A06;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#up-page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.up-loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #C59B51;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: up-fade-blur 0.8s ease 0.3s forwards;
}
.up-loader-bar-wrap {
  width: 180px; height: 2px;
  background: rgba(197,155,81,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.up-loader-bar {
  height: 100%;
  background: linear-gradient(90deg, #C59B51, #E8C97A, #C59B51);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: up-gradient-shift 1.5s ease infinite, up-progress-fill 1.4s cubic-bezier(0.4,0,0.2,1) 0.5s forwards;
  width: 0%;
}

/* ============================================================
   15. HERO STATS ROW UPGRADE
   ============================================================ */

.hero-stats-row {
  gap: 2rem;
}

.hero-stat-item {
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1) !important;
}
.hero-stat-item:hover {
  transform: translateY(-4px) scale(1.04) !important;
}
.hero-stat-val {
  background: linear-gradient(120deg, #E8C97A 0%, #C59B51 60%, #E8C97A 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: up-gradient-shift 4s ease infinite;
}

/* ============================================================
   16. NAV LINK ANIMATED UNDERLINE
   ============================================================ */

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, #C59B51, #E8C97A);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================================
   17. REVIEW CARD HOVER
   ============================================================ */

.review-card-item {
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease !important;
}
.review-card-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12) !important;
}

/* ============================================================
   18. FOOTER ANIMATED LINK HOVER
   ============================================================ */

.footer-links a {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease, padding-left 0.3s ease !important;
}
.footer-links a::before {
  content: '→';
  position: absolute;
  left: -1.2em;
  opacity: 0;
  transition: opacity 0.3s ease, left 0.3s ease;
  color: #C59B51;
  font-size: 0.85em;
}
.footer-links a:hover {
  color: #C59B51 !important;
  padding-left: 1.3em;
}
.footer-links a:hover::before {
  opacity: 1;
  left: 0;
}

/* ============================================================
   19. SCROLL PROGRESS BAR
   ============================================================ */

#up-scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, #C59B51, #E8C97A, #C59B51);
  background-size: 200% 100%;
  animation: up-gradient-shift 3s ease infinite;
  z-index: 99999;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   20. WHATSAPP FLOAT BUTTON UPGRADE
   ============================================================ */

.whatsapp-float-btn,
a[href*="wa.me"].wa-fab {
  position: fixed !important;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #fff !important;
  border-radius: 50%;
  display: flex !important;
  align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(37,211,102,0.38), 0 2px 8px rgba(0,0,0,0.35);
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease !important;
  text-decoration: none !important;
}
.whatsapp-float-btn::before,
a[href*="wa.me"].wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.5);
  animation: up-ping 2s cubic-bezier(0,0,0.2,1) infinite;
  z-index: -1;
}
.whatsapp-float-btn:hover,
a[href*="wa.me"].wa-fab:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 12px 40px rgba(37,211,102,0.5) !important;
}

/* ============================================================
   21. HEADER SCROLL EFFECT
   ============================================================ */

.site-header.scrolled {
  background-color: rgba(14,10,6,0.97) !important;
  border-bottom-color: rgba(197,155,81,0.35) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

/* ============================================================
   22. CATALOG FILTER PILLS UPGRADE
   ============================================================ */

.filter-btn {
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1) !important;
  position: relative;
  overflow: hidden;
}
.filter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.filter-btn:hover::after { opacity: 1; }
.filter-btn:active { transform: scale(0.96) !important; }

/* ============================================================
   23. COMPARISON TABLE HOVER ROWS
   ============================================================ */

tbody tr {
  transition: background 0.25s ease;
}
tbody tr:hover {
  background: rgba(197,155,81,0.04);
}

/* ============================================================
   24. MEDIA QUERIES — keep effects on mobile
   ============================================================ */

@media (max-width: 768px) {
  #up-cursor-dot,
  #up-cursor-ring { display: none; }

  .up-stat-item { padding: 2rem 1rem; }

  .up-marquee-track { animation-duration: 18s; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-wow] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}
