/**
 * Shop Custom CSS - Professional Modern Design Enhancement v2.0
 * Enhanced with glassmorphism, 3D effects, and premium animations
 */

/* ============================================
   PREMIUM ANIMATIONS & KEYFRAMES
   ============================================ */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.05);
    }
}

@keyframes shimmer-wave {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotate-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .glass-card {
    background: rgba(17, 25, 40, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.25);
}

.dark .glass-card:hover {
    background: rgba(17, 25, 40, 0.95);
}

/* ============================================
   3D TRANSFORM EFFECTS
   ============================================ */

.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.05);
}

.shadow-3d {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.1);
}

.shadow-3d-hover:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PREMIUM GRADIENT BACKGROUNDS
   ============================================ */

.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% 200%;
    animation: rotate-gradient 10s ease infinite;
}

.gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    background-size: 200% 200%;
    animation: rotate-gradient 10s ease infinite;
}

.gradient-accent {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background-size: 200% 200%;
    animation: rotate-gradient 10s ease infinite;
}

.gradient-warm {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    background-size: 200% 200%;
    animation: rotate-gradient 10s ease infinite;
}

.gradient-mesh {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: rotate-gradient 15s ease infinite;
}

/* ============================================
   ENHANCED HERO SECTION
   ============================================ */

.hero-enhanced {
    position: relative;
    overflow: hidden;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0.5;
    z-index: 1;
}

.hero-text-enhanced {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slide-in-up 0.8s ease-out;
}

.hero-cta-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-cta-enhanced:hover::before {
    left: 100%;
}

.hero-cta-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   PREMIUM PRODUCT CARDS
   ============================================ */

.product-card-enhanced {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .product-card-enhanced {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card-enhanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.product-card-enhanced:hover::before {
    opacity: 1;
}

.product-card-enhanced:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 10px 40px rgba(102, 126, 234, 0.3),
        0 0 0 2px rgba(102, 126, 234, 0.2);
}

.product-image enhanced {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card-enhanced:hover .product-image-enhanced::after {
    opacity: 1;
}

.product-card-enhanced:hover .product-image-enhanced img {
    transform: scale(1.1) rotate(2deg);
}

/* ============================================
   ENHANCED BUTTONS
   ============================================ */

.btn-enhanced {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-enhanced:active {
    transform: translateY(0);
}

/* ============================================
   ENHANCED BADGES & TAGS
   ============================================ */

.badge-enhanced {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #667eea;
    transition: all 0.3s;
    animation: pulse-slow 3s ease-in-out infinite;
}

.badge-enhanced:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-delay-1 {
    animation-delay: 0.5s;
}

.float-delay-2 {
    animation-delay: 1s;
}

.float-delay-3 {
    animation-delay: 1.5s;
}

/* ============================================
   SHIMMER LOADING EFFECT
   ============================================ */

.shimmer-enhanced {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 1000px 100%;
    animation: shimmer-wave 2s infinite;
}

.dark .shimmer-enhanced {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            rgba(255, 255, 255, 0) 100%);
}

/* ============================================
   IMPROVED SCROLL BEHAVIOR
   ============================================ */

html {
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2 0%, #667eea 100%);
}

.dark html::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.dark html::-webkit-scrollbar-thumb {
    border-color: #1e293b;
}

/* ============================================
   MICRO INTERACTIONS
   ============================================ */

.micro-bounce {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.micro-bounce:hover {
    transform: scale(1.1);
}

.micro-rotate {
    transition: transform 0.3s ease;
}

.micro-rotate:hover {
    transform: rotate(5deg);
}

/* ============================================
   IMPROVED FOCUS STATES
   ============================================ */

*:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    .product-card-enhanced:hover {
        transform: translateY(-6px) scale(1.01);
    }

    .card-3d:hover {
        transform: scale(1.02);
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}