/**
 * Albasy Marketplace Premium Luxury UI/UX Effects
 *
 * This file extends the base Albasy design system with premium animations,
 * micro-interactions, and luxury effects suitable for high-end fashion marketplace.
 *
 * Dependencies: Design system variables (--alb-yellow, --alb-green, --alb-white, etc.)
 */

/* ============================================================================
   1. ENHANCED SCROLL BEHAVIOR
   ============================================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Scroll-linked progress indicator */
.alb-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--alb-yellow), var(--alb-green));
  transform-origin: left;
  z-index: 9999;
}

/* Scroll snap for product carousels */
.alb-carousel-scroll {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.alb-carousel-scroll > * {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ============================================================================
   2. PREMIUM BUTTON EFFECTS
   ============================================================================ */

/* Magnetic attraction hover effect */
.alb-btn-magnetic {
  position: relative;
  cursor: pointer;
  transition: all 0.3s var(--alb-ease);
}

.alb-btn-magnetic:hover {
  transform: scale(1.05);
}

.alb-btn-magnetic::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 214, 0, 0.1), transparent);
  border-radius: inherit;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s var(--alb-ease);
  pointer-events: none;
}

.alb-btn-magnetic:hover::before {
  opacity: 1;
}

/* Pulsating glow on primary buttons */
.alb-btn-glow {
  position: relative;
  background: var(--alb-yellow);
  color: var(--alb-black, #000);
  border: none;
  padding: 12px 24px;
  border-radius: var(--alb-radius-md);
  font-weight: 600;
  transition: all 0.3s var(--alb-ease);
  overflow: hidden;
}

.alb-btn-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: alb-pulse-glow 2s ease-out infinite;
}

@keyframes alb-pulse-glow {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

.alb-btn-glow:hover {
  box-shadow: 0 0 20px rgba(255, 214, 0, 0.5), var(--alb-shadow-lg);
  transform: translateY(-2px);
}

/* Diagonal shine sweep on hover */
.alb-btn-shine {
  position: relative;
  overflow: hidden;
  background: var(--alb-yellow);
  padding: 12px 24px;
  border-radius: var(--alb-radius-md);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--alb-ease);
}

.alb-btn-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s var(--alb-ease-out);
  pointer-events: none;
}

.alb-btn-shine:hover::before {
  transform: translateX(100%);
}

/* Enhanced primary button */
.alb-btn-primary {
  position: relative;
  background: linear-gradient(135deg, var(--alb-yellow), #FFC107);
  color: var(--alb-black, #000);
  border: none;
  padding: 12px 24px;
  border-radius: var(--alb-radius-md);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s var(--alb-ease);
  box-shadow: var(--alb-shadow-md);
  cursor: pointer;
}

.alb-btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--alb-shadow-lg), 0 12px 24px rgba(255, 214, 0, 0.3);
}

.alb-btn-primary:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: var(--alb-shadow-sm);
}

.alb-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Button press effect */
.alb-btn-press {
  position: relative;
  transition: all 0.1s var(--alb-ease);
}

.alb-btn-press:active {
  transform: scale(0.96);
}

/* Loading state with animated dots */
.alb-btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent;
  transition: all 0.3s var(--alb-ease);
}

.alb-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--alb-yellow);
  border-radius: 50%;
  animation: alb-spin 0.8s linear infinite;
}

@keyframes alb-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================================
   3. PREMIUM CARD EFFECTS
   ============================================================================ */

/* Luxury cards with border gradient */
.alb-card-luxury {
  position: relative;
  background: var(--alb-white);
  border-radius: var(--alb-radius-lg);
  padding: 24px;
  overflow: hidden;
  transition: all 0.4s var(--alb-ease);
  box-shadow: var(--alb-shadow-sm);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.alb-card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--alb-yellow), var(--alb-green));
  border-radius: var(--alb-radius-lg);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--alb-ease);
}

.alb-card-luxury:hover {
  transform: translateY(-8px);
  box-shadow: var(--alb-shadow-xl), 0 16px 32px rgba(255, 214, 0, 0.15);
  border-color: rgba(255, 214, 0, 0.3);
}

.alb-card-luxury:hover::before {
  opacity: 0.08;
}

/* 3D perspective tilt on hover */
.alb-card-3d {
  perspective: 1000px;
  transition: all 0.3s var(--alb-ease);
  transform-style: preserve-3d;
}

.alb-card-3d:hover {
  transform: rotateX(5deg) rotateY(-5deg) translateZ(20px);
}

/* Content reveal on hover with clip-path */
.alb-card-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--alb-radius-lg);
}

.alb-card-reveal .alb-card-reveal-content {
  position: relative;
  z-index: 1;
  transition: all 0.4s var(--alb-ease-spring);
}

.alb-card-reveal .alb-card-reveal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--alb-yellow), var(--alb-green));
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s var(--alb-ease);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alb-card-reveal:hover .alb-card-reveal-overlay {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* Product card with image zoom and overlay */
.alb-product-card {
  position: relative;
  border-radius: var(--alb-radius-lg);
  overflow: hidden;
  background: var(--alb-white);
  box-shadow: var(--alb-shadow-md);
  transition: all 0.4s var(--alb-ease);
}

.alb-product-card:hover {
  box-shadow: var(--alb-shadow-xl);
  transform: translateY(-8px);
}

.alb-product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #f5f5f5;
}

.alb-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--alb-ease);
}

.alb-product-card:hover .alb-product-card-image img {
  transform: scale(1.1);
}

.alb-product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--alb-ease);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.alb-product-card:hover .alb-product-card-overlay {
  opacity: 1;
}

/* Skeleton loader with shimmer */
.alb-skeleton {
  background: linear-gradient(
    90deg,
    var(--alb-white) 0%,
    #f0f0f0 50%,
    var(--alb-white) 100%
  );
  background-size: 200% 100%;
  animation: alb-shimmer 2s infinite;
  border-radius: var(--alb-radius-md);
}

@keyframes alb-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================================================
   4. GLASSMORPHISM ENHANCEMENTS
   ============================================================================ */

/* Enhanced glass morphism */
.alb-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--alb-radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium glass variant */
.alb-glass-premium {
  position: relative;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--alb-radius-lg);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: all 0.4s var(--alb-ease);
}

.alb-glass-premium:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 214, 0, 0.3);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Glass card */
.alb-glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--alb-radius-lg);
  padding: 24px;
  transition: all 0.4s var(--alb-ease);
  overflow: hidden;
}

.alb-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 214, 0, 0.05), transparent);
  pointer-events: none;
}

.alb-glass-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 214, 0, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   5. PREMIUM FORM INPUTS
   ============================================================================ */

/* Floating label animation */
.alb-form-group {
  position: relative;
  margin-bottom: 24px;
}

.alb-input-float {
  width: 100%;
  padding: 16px 12px 8px 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--alb-radius-md);
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  background: var(--alb-white);
  transition: all 0.3s var(--alb-ease);
}

.alb-input-float:focus {
  outline: none;
  border-color: var(--alb-yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
  background: rgba(255, 214, 0, 0.02);
}

.alb-input-float-label {
  position: absolute;
  top: 16px;
  left: 12px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  transition: all 0.3s var(--alb-ease);
  transform-origin: left bottom;
}

.alb-input-float:focus ~ .alb-input-float-label,
.alb-input-float:not(:placeholder-shown) ~ .alb-input-float-label {
  top: 4px;
  font-size: 12px;
  color: var(--alb-yellow);
  transform: scale(0.9);
}

/* Select dropdown styling */
.alb-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--alb-radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background: var(--alb-white);
  cursor: pointer;
  transition: all 0.3s var(--alb-ease);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD600' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.alb-select:focus {
  outline: none;
  border-color: var(--alb-yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.1);
}

/* Password strength bar */
.alb-password-strength {
  position: relative;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.alb-password-strength-bar {
  position: absolute;
  height: 100%;
  left: 0;
  transition: all 0.4s var(--alb-ease);
  border-radius: 2px;
}

.alb-password-strength-bar.weak {
  width: 33%;
  background: linear-gradient(90deg, #ff4444, #ff6b6b);
}

.alb-password-strength-bar.medium {
  width: 66%;
  background: linear-gradient(90deg, #ff9800, #ffb74d);
}

.alb-password-strength-bar.strong {
  width: 100%;
  background: linear-gradient(90deg, #ffd600, #4caf50);
}

/* Custom checkbox */
.alb-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.alb-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.alb-checkbox-mark {
  position: relative;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--alb-radius-sm);
  transition: all 0.3s var(--alb-ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.alb-checkbox input:checked ~ .alb-checkbox-mark {
  background: var(--alb-yellow);
  border-color: var(--alb-yellow);
  box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}

.alb-checkbox input:checked ~ .alb-checkbox-mark::after {
  content: '✓';
  color: var(--alb-black, #000);
  font-size: 12px;
  font-weight: bold;
}

/* ============================================================================
   6. PREMIUM BADGES & TAGS
   ============================================================================ */

/* Holographic badge */
.alb-badge-holographic {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(255, 214, 0, 0.8),
    rgba(0, 200, 83, 0.8)
  );
  color: var(--alb-white);
  overflow: hidden;
}

.alb-badge-holographic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: alb-hologram-shift 3s infinite;
}

@keyframes alb-hologram-shift {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

/* Glowing badge */
.alb-badge-glow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--alb-yellow);
  color: var(--alb-black, #000);
  box-shadow: 0 0 10px rgba(255, 214, 0, 0.5);
  animation: alb-badge-pulse 2s ease-in-out infinite;
}

@keyframes alb-badge-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 214, 0, 0.8);
  }
}

/* Status badges with dot */
.alb-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 214, 0, 0.1);
  color: var(--alb-yellow);
}

.alb-badge-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alb-yellow);
  animation: alb-badge-dot-pulse 2s ease-in-out infinite;
}

@keyframes alb-badge-dot-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Vendor tier badges */
.alb-badge-tier {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s var(--alb-ease);
}

.alb-badge-tier.bronze {
  background: linear-gradient(135deg, #cd7f32, #b8860b);
  color: var(--alb-white);
  box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
}

.alb-badge-tier.silver {
  background: linear-gradient(135deg, #c0c0c0, #808080);
  color: var(--alb-white);
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.alb-badge-tier.gold {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: var(--alb-black, #000);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.alb-badge-tier.diamond {
  background: linear-gradient(135deg, #b9f3fc, #ffffff);
  color: var(--alb-black, #000);
  box-shadow: 0 4px 15px rgba(185, 243, 252, 0.4);
}

.alb-badge-tier:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ============================================================================
   7. PREMIUM MODALS & OVERLAYS
   ============================================================================ */

/* Enhanced modal backdrop */
.alb-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: alb-fade-in 0.3s var(--alb-ease);
  z-index: 999;
}

@keyframes alb-fade-in {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

/* Modal with spring animation */
.alb-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--alb-white);
  border-radius: var(--alb-radius-lg);
  box-shadow: var(--alb-shadow-xl);
  max-width: 500px;
  width: 90%;
  z-index: 1000;
  animation: alb-modal-enter 0.4s var(--alb-ease-spring);
}

@keyframes alb-modal-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Bottom sheet */
.alb-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--alb-white);
  border-radius: var(--alb-radius-lg) var(--alb-radius-lg) 0 0;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
  animation: alb-slide-up 0.4s var(--alb-ease);
}

@keyframes alb-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.alb-bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 12px auto;
}

/* Toast notification */
.alb-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--alb-radius-md);
  padding: 16px 20px;
  box-shadow: var(--alb-shadow-lg);
  z-index: 9999;
  animation: alb-toast-enter 0.3s var(--alb-ease);
  max-width: 300px;
}

@keyframes alb-toast-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alb-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--alb-yellow);
  border-radius: 0 0 var(--alb-radius-md) var(--alb-radius-md);
  animation: alb-progress 3s linear forwards;
}

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

/* ============================================================================
   8. PRODUCT PAGE ENHANCEMENTS
   ============================================================================ */

/* Image gallery with zoom lens */
.alb-gallery-main {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--alb-radius-lg);
  background: #f5f5f5;
}

.alb-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--alb-ease);
  cursor: zoom-in;
}

.alb-zoom-lens {
  position: absolute;
  border: 2px solid var(--alb-yellow);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--alb-ease);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.alb-gallery-main:hover .alb-zoom-lens {
  opacity: 1;
}

/* Thumbnail strip */
.alb-gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.alb-gallery-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--alb-radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s var(--alb-ease);
  scroll-snap-align: start;
  flex-shrink: 0;
}

.alb-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--alb-ease);
}

.alb-gallery-thumb.active {
  border-color: var(--alb-yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.2);
}

.alb-gallery-thumb:hover img {
  transform: scale(1.1);
}

/* Price display */
.alb-price-display {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--alb-yellow);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.alb-price-currency {
  font-size: 18px;
  font-weight: 600;
}

.alb-price-original {
  text-decoration: line-through;
  color: rgba(0, 0, 0, 0.4);
  font-size: 18px;
  animation: alb-price-strike 0.5s var(--alb-ease);
}

@keyframes alb-price-strike {
  from {
    text-decoration: none;
    color: var(--alb-black, #000);
  }
  to {
    text-decoration: line-through;
    color: rgba(0, 0, 0, 0.4);
  }
}

/* Add to cart animation */
.alb-add-to-cart-btn {
  position: relative;
  overflow: hidden;
}

.alb-add-to-cart-btn.success::after {
  content: '✓ Added to cart';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: alb-cart-check 0.5s var(--alb-ease);
}

@keyframes alb-cart-check {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Product info tabs */
.alb-tab-nav {
  display: flex;
  gap: 24px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

.alb-tab-item {
  padding: 12px 0;
  cursor: pointer;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.6);
  transition: color 0.3s var(--alb-ease);
  position: relative;
}

.alb-tab-item.active {
  color: var(--alb-yellow);
}

.alb-tab-indicator {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--alb-yellow);
  transition: all 0.4s var(--alb-ease);
  left: 0;
  width: 0;
}

.alb-tab-item.active ~ .alb-tab-indicator {
  left: auto;
  width: 100%;
}

/* Related products carousel peek */
.alb-carousel-peek {
  overflow: hidden;
}

.alb-carousel-peek-item {
  transition: all 0.4s var(--alb-ease);
}

.alb-carousel-peek:hover .alb-carousel-peek-item {
  transform: translateX(-10px);
}

.alb-carousel-peek-item:hover {
  transform: translateX(10px) !important;
}

/* ============================================================================
   9. NAVIGATION ENHANCEMENTS
   ============================================================================ */

/* Navbar glassmorphism scroll transition */
.alb-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s var(--alb-ease);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 214, 0, 0.1);
}

.alb-navbar.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--alb-shadow-md);
}

/* Active link underline animation */
.alb-nav-link {
  position: relative;
  padding: 8px 0;
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  transition: color 0.3s var(--alb-ease);
}

.alb-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--alb-yellow);
  transform: translateX(-50%);
  transition: width 0.4s var(--alb-ease);
}

.alb-nav-link:hover::after,
.alb-nav-link.active::after {
  width: 100%;
}

/* Mobile bottom nav with bubble indicator */
.alb-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--alb-white);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}

.alb-bottom-nav-item {
  position: relative;
  flex: 1;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--alb-ease);
}

.alb-bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--alb-yellow);
  border-radius: 50%;
  z-index: -1;
  animation: alb-bubble-pop 0.4s var(--alb-ease-spring);
}

@keyframes alb-bubble-pop {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 1;
  }
}

/* Mega menu entrance */
.alb-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--alb-white);
  border-radius: 0 0 var(--alb-radius-lg) var(--alb-radius-lg);
  box-shadow: var(--alb-shadow-lg);
  min-width: 300px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--alb-ease);
}

.alb-nav-item:hover .alb-mega-menu {
  max-height: 500px;
}

.alb-mega-menu-item {
  padding: 12px 16px;
  transition: all 0.2s var(--alb-ease);
  animation: alb-stagger-in 0.4s var(--alb-ease) forwards;
  opacity: 0;
}

.alb-nav-item:hover .alb-mega-menu-item:nth-child(1) {
  animation-delay: 0s;
}

.alb-nav-item:hover .alb-mega-menu-item:nth-child(2) {
  animation-delay: 0.05s;
}

.alb-nav-item:hover .alb-mega-menu-item:nth-child(3) {
  animation-delay: 0.1s;
}

@keyframes alb-stagger-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alb-mega-menu-item:hover {
  background: rgba(255, 214, 0, 0.1);
  padding-left: 24px;
}

/* Search bar expand */
.alb-search-bar {
  position: relative;
  transition: all 0.3s var(--alb-ease);
}

.alb-search-bar.expanded {
  background: rgba(0, 0, 0, 0.05);
}

.alb-search-bar.expanded::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  z-index: -1;
}

/* ============================================================================
   10. DASHBOARD ENHANCEMENTS
   ============================================================================ */

/* Stats cards with count-up animation */
.alb-stat-card {
  background: var(--alb-white);
  border-radius: var(--alb-radius-lg);
  padding: 24px;
  box-shadow: var(--alb-shadow-md);
  transition: all 0.4s var(--alb-ease);
}

.alb-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--alb-yellow);
  line-height: 1;
}

.alb-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--alb-shadow-lg);
}

/* Progress rings */
.alb-progress-ring {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.alb-progress-ring-circle {
  transition: stroke-dashoffset 0.35s var(--alb-ease);
  transform-origin: 50% 50%;
}

/* Data table row hover */
.alb-table-row {
  transition: all 0.3s var(--alb-ease);
}

.alb-table-row:hover {
  background: rgba(255, 214, 0, 0.05);
  transform: scale(1.01);
  box-shadow: inset 0 0 0 2px rgba(255, 214, 0, 0.1);
}

/* Tab system with sliding indicator */
.alb-tabs {
  position: relative;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.alb-tab-button {
  position: relative;
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s var(--alb-ease);
}

.alb-tab-button.active {
  color: var(--alb-yellow);
}

.alb-tab-slider {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--alb-yellow);
  transition: all 0.4s var(--alb-ease);
}

/* Sidebar navigation hover */
.alb-sidebar-nav-item {
  position: relative;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s var(--alb-ease);
  border-left: 3px solid transparent;
}

.alb-sidebar-nav-item:hover {
  background: rgba(255, 214, 0, 0.05);
  border-left-color: var(--alb-yellow);
  padding-left: 20px;
}

.alb-sidebar-nav-item.active {
  background: rgba(255, 214, 0, 0.1);
  border-left-color: var(--alb-yellow);
  color: var(--alb-yellow);
}

/* Empty state with animation */
.alb-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

.alb-empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: alb-float 3s ease-in-out infinite;
}

@keyframes alb-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ============================================================================
   11. MICRO-INTERACTIONS
   ============================================================================ */

/* Like/heart animation */
.alb-heart {
  cursor: pointer;
  transition: all 0.2s var(--alb-ease);
}

.alb-heart.active {
  animation: alb-heart-burst 0.6s var(--alb-ease);
  color: var(--alb-yellow);
}

@keyframes alb-heart-burst {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.4);
  }
  50% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

/* Add to cart ripple */
.alb-ripple {
  position: relative;
  overflow: hidden;
}

.alb-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(255, 214, 0, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: alb-ripple-out 0.6s ease-out;
  pointer-events: none;
}

@keyframes alb-ripple-out {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Copy to clipboard checkmark */
.alb-copy-feedback {
  position: relative;
}

.alb-copy-feedback.copied {
  animation: alb-copy-pulse 0.4s var(--alb-ease);
}

@keyframes alb-copy-pulse {
  0% {
    color: var(--alb-black, #000);
  }
  50% {
    color: var(--alb-green);
  }
  100% {
    color: var(--alb-black, #000);
  }
}

/* Rating stars fill */
.alb-star {
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s var(--alb-ease);
  margin: 0 2px;
}

.alb-star:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.alb-star.filled {
  color: var(--alb-yellow);
  animation: alb-star-pop 0.4s var(--alb-ease-spring);
}

@keyframes alb-star-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Toggle switch with liquid morphing */
.alb-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s var(--alb-ease);
  border: none;
  padding: 0;
}

.alb-toggle.active {
  background: var(--alb-yellow);
}

.alb-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: var(--alb-white);
  border-radius: 50%;
  transition: all 0.3s var(--alb-ease-spring);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.alb-toggle.active::after {
  left: 22px;
}

/* Notification bell shake */
.alb-notification-bell {
  position: relative;
}

.alb-notification-bell.new {
  animation: alb-bell-shake 0.5s var(--alb-ease);
}

@keyframes alb-bell-shake {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

.alb-notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--alb-green);
  color: var(--alb-white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  animation: alb-badge-pop 0.4s var(--alb-ease-spring);
}

@keyframes alb-badge-pop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* Pull-to-refresh indicator */
.alb-pull-to-refresh {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--alb-yellow);
  animation: alb-refresh-spin 1s linear infinite;
}

@keyframes alb-refresh-spin {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

/* ============================================================================
   12. LUXURY TYPOGRAPHY
   ============================================================================ */

/* Text gradient */
.alb-text-gradient {
  background: linear-gradient(135deg, var(--alb-yellow), var(--alb-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Text reveal animation */
.alb-text-reveal {
  position: relative;
  overflow: hidden;
}

.alb-text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--alb-white);
  animation: alb-text-reveal-slide 0.6s var(--alb-ease) forwards;
}

@keyframes alb-text-reveal-slide {
  to {
    width: 100%;
    left: 100%;
  }
}

/* Typewriter effect */
.alb-typewriter {
  border-right: 3px solid var(--alb-yellow);
  animation: alb-typewriter-cursor 0.6s steps(1) infinite;
}

@keyframes alb-typewriter-cursor {
  50% {
    border-color: transparent;
  }
}

/* Premium price display */
.alb-price-large {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--alb-yellow);
}

.alb-price-large .alb-currency {
  font-size: 24px;
  vertical-align: super;
}

/* ============================================================================
   13. LOADING STATES
   ============================================================================ */

/* Premium spinner */
.alb-spinner-double {
  width: 40px;
  height: 40px;
  position: relative;
}

.alb-spinner-double::before,
.alb-spinner-double::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--alb-yellow);
  border-radius: 50%;
  animation: alb-double-spin 1.5s linear infinite;
}

.alb-spinner-double::after {
  border-top-color: var(--alb-green);
  animation-duration: 2s;
  animation-direction: reverse;
}

@keyframes alb-double-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Skeleton loader enhanced */
.alb-skeleton-card {
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: alb-shimmer 2s infinite;
  border-radius: var(--alb-radius-lg);
}

/* Progress bar with gradient */
.alb-progress-bar {
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.alb-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--alb-yellow), var(--alb-green));
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 214, 0, 0.4);
  transition: width 0.3s var(--alb-ease);
}

/* Page transition overlay */
.alb-page-transition {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--alb-white);
  z-index: 9998;
  animation: alb-fade-out 0.4s var(--alb-ease) forwards;
}

@keyframes alb-fade-out {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

/* Lazy image fade-in */
.alb-lazy-image {
  opacity: 0;
  transition: opacity 0.4s var(--alb-ease);
}

.alb-lazy-image.loaded {
  opacity: 1;
}

/* ============================================================================
   14. DARK MODE ADDITIONS
   ============================================================================ */

@media (prefers-color-scheme: dark) {
  .alb-glass,
  .alb-glass-premium,
  .alb-glass-card {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 214, 0, 0.2);
  }

  .alb-card-luxury {
    background: #1e1e1e;
    color: rgba(255, 255, 255, 0.9);
  }

  .alb-card-luxury:hover {
    border-color: rgba(255, 214, 0, 0.4);
  }

  .alb-input-float,
  .alb-select {
    background: #2a2a2a;
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 214, 0, 0.2);
  }

  .alb-input-float:focus,
  .alb-select:focus {
    background: rgba(255, 214, 0, 0.05);
    border-color: var(--alb-yellow);
  }

  .alb-modal {
    background: #1e1e1e;
    color: rgba(255, 255, 255, 0.9);
  }

  .alb-bottom-sheet {
    background: #1e1e1e;
  }

  .alb-navbar {
    background: rgba(30, 30, 30, 0.95);
  }

  .alb-navbar.scrolled {
    background: rgba(30, 30, 30, 0.8);
  }

  .alb-nav-link {
    color: rgba(255, 255, 255, 0.7);
  }

  .alb-stat-card {
    background: #2a2a2a;
    color: rgba(255, 255, 255, 0.9);
  }

  .alb-empty-state {
    color: rgba(255, 255, 255, 0.5);
  }

  .alb-toast {
    background: rgba(30, 30, 30, 0.95);
    color: rgba(255, 255, 255, 0.9);
  }

  .alb-table-row:hover {
    background: rgba(255, 214, 0, 0.1);
  }
}

/* ============================================================================
   15. REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .alb-btn-primary:hover {
    transform: none;
  }

  .alb-card-luxury:hover {
    transform: none;
  }

  .alb-product-card:hover {
    transform: none;
  }

  .alb-modal {
    animation: none;
  }

  .alb-bottom-sheet {
    animation: none;
  }
}
