* {
    font-family: 'Rubik', sans-serif;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* Enhanced Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #FF6B6B, #FFE66D, #4ECDC4, #A855F7, #FF6B6B);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
}

.gradient-text-glow {
    background: linear-gradient(135deg, #FF6B6B, #FFE66D, #4ECDC4, #A855F7, #FF6B6B);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.5));
}

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

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.8); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.float-animation-delay {
    animation: float 3s ease-in-out infinite 1.5s;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
}

.btn-glow:hover {
    animation: pulse-glow 1.5s ease infinite;
}

.bg-grid {
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.product-card {
    position: relative;
}

/* 产品卡片悬停3D效果 */
.product-card:hover {
    z-index: 10;
}

/* 确保卡片内容层级正确 */
.product-card > * {
    position: relative;
}

/* 按钮手型指针 */
.add-to-cart-btn,
button:not(:disabled),
.thumb-item,
a,
[role="button"],
.cursor-pointer {
    cursor: pointer !important;
}

/* 禁用按钮 */
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 8s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

.cart-bounce {
    animation: cart-bounce 0.5s ease;
}

@keyframes cart-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #A855F7, #EC4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9333EA, #DB2777);
}

/* Page transition */
.page-enter {
    animation: pageEnter 0.3s ease-out;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #A855F7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Button active states */
button:active {
    transform: scale(0.98);
}

/* Checkbox custom style */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.custom-checkbox:hover {
    border-color: rgba(168, 85, 247, 0.8);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.custom-checkbox:checked {
    background: linear-gradient(135deg, #A855F7, #EC4899);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

.custom-checkbox:checked::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #A855F7, #EC4899);
    border-radius: 10px;
    opacity: 0.3;
    z-index: -1;
    animation: checkbox-pulse 1.5s ease-in-out infinite;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes checkbox-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: transparent;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 8px;
    background: transparent;
    border-radius: 10px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #A855F7, #EC4899);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 20;
    margin-top: -8px;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 6px 12px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #A855F7, #EC4899);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
    transition: transform 0.2s ease;
}

input[type="range"]::-moz-range-track {
    height: 8px;
    background: transparent;
    border-radius: 10px;
}

/* Custom Select Dropdown */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A855F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

select:focus {
    border-color: #A855F7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2), 0 0 20px rgba(168, 85, 247, 0.1);
    outline: none;
}

/* Select Option Styling - Dark Theme */
select option {
    background-color: #0f0f1a !important;
    color: #e5e5e5 !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

select option:hover {
    background-color: rgba(168, 85, 247, 0.3) !important;
    color: white !important;
}

select option:checked,
select option:focus {
    background: rgba(168, 85, 247, 0.4) !important;
    background-color: rgba(168, 85, 247, 0.4) !important;
    color: white !important;
}

select option:disabled {
    color: #6b7280 !important;
    background-color: #0a0a12 !important;
}

/* Firefox specific */
@-moz-document url-prefix() {
    select option {
        background-color: #1a1a2e !important;
        color: white !important;
    }
    
    select option:checked {
        background: linear-gradient(135deg, #A855F7, #EC4899) !important;
    }
}

/* Select dropdown arrow color */
select {
    color-scheme: dark;
}

/* Custom Confirm Modal */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(22, 22, 40, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(168, 85, 247, 0.1);
}

.confirm-modal-overlay.active .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.2));
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.confirm-modal-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.confirm-modal-message {
    color: #9ca3af;
    margin-bottom: 24px;
    line-height: 1.6;
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
}

.confirm-modal-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.confirm-modal-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.confirm-modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.confirm-modal-btn.confirm {
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
}

.confirm-modal-btn.confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* Custom styled select wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #A855F7;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-wrapper:hover::after {
    border-top-color: #EC4899;
}

.select-wrapper select:focus + ::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Styled scrollbar for select */
select::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track {
    background: #1a1a2e;
}

select::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #A855F7, #EC4899);
    border-radius: 4px;
}

/* Filter section styling */
.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.5);
}

.filter-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #A855F7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Custom styled select wrapper */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #A855F7;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.select-wrapper:hover::after {
    border-top-color: #EC4899;
}

.select-wrapper select:focus + ::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Styled scrollbar for select */
select::-webkit-scrollbar {
    width: 8px;
}

select::-webkit-scrollbar-track {
    background: #1a1a2e;
}

select::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #A855F7, #EC4899);
    border-radius: 4px;
}

/* Filter section styling */
.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.5);
}

.filter-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #A855F7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Toast notification */
.toast {
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100px);
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Side Cart */
.cart-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.cart-sidebar.active {
    transform: translateX(0);
}

/* Checkout Steps */
.checkout-step {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.checkout-step.active {
    opacity: 1;
}

.checkout-step.completed {
    opacity: 1;
}

/* Blog Card Hover */
.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-image {
    transition: transform 0.3s ease;
}

/* Animate shake for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.3s ease-in-out;
}

/* Product image gallery */
#product-emoji {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.thumb-item {
    transition: all 0.2s ease;
}

.thumb-item:hover {
    transform: scale(1.05);
}

/* Search Modal */
.search-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==================== ENHANCED ANIMATIONS ==================== */

/* Glow pulse for buttons */
@keyframes glow-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4), 
                    0 0 40px rgba(168, 85, 247, 0.2),
                    0 0 60px rgba(168, 85, 247, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(236, 72, 153, 0.6), 
                    0 0 60px rgba(236, 72, 153, 0.3),
                    0 0 90px rgba(236, 72, 153, 0.15);
    }
}

.btn-glow-animated {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* Floating particles animation */
@keyframes particle-float {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(-30px) translateX(10px) rotate(90deg);
    }
    50% { 
        transform: translateY(-20px) translateX(-10px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-40px) translateX(5px) rotate(270deg);
    }
}

.particle {
    animation: particle-float 6s ease-in-out infinite;
}

.particle-delay-1 { animation-delay: 0s; }
.particle-delay-2 { animation-delay: 1s; }
.particle-delay-3 { animation-delay: 2s; }
.particle-delay-4 { animation-delay: 3s; }
.particle-delay-5 { animation-delay: 4s; }

/* Shine effect */
@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s ease-in-out infinite;
}

/* Neon border animation */
@keyframes neon-border {
    0%, 100% { 
        border-color: rgba(168, 85, 247, 0.5);
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.3), inset 0 0 10px rgba(168, 85, 247, 0.1);
    }
    33% { 
        border-color: rgba(236, 72, 153, 0.5);
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.3), inset 0 0 10px rgba(236, 72, 153, 0.1);
    }
    66% { 
        border-color: rgba(6, 182, 212, 0.5);
        box-shadow: 0 0 10px rgba(6, 182, 212, 0.3), inset 0 0 10px rgba(6, 182, 212, 0.1);
    }
}

.neon-border {
    animation: neon-border 4s ease-in-out infinite;
}

/* Scroll reveal animations */
@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes reveal-left {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reveal-right {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reveal-scale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-up {
    animation: reveal-up 0.8s ease-out forwards;
}

.reveal-left {
    animation: reveal-left 0.8s ease-out forwards;
}

.reveal-right {
    animation: reveal-right 0.8s ease-out forwards;
}

.reveal-scale {
    animation: reveal-scale 0.6s ease-out forwards;
}

/* Stagger delays for child animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(168, 85, 247, 0.2);
}

/* 3D tilt effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

/* Glitch effect for text */
@keyframes glitch {
    0%, 100% { 
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
    25% { 
        text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
    }
    50% { 
        text-shadow: -2px 2px #ff00ff, 2px -2px #00ffff;
    }
    75% { 
        text-shadow: 2px -2px #ff00ff, -2px 2px #00ffff;
    }
}

.glitch-text:hover {
    animation: glitch 0.3s ease infinite;
}

/* Rainbow border */
@keyframes rainbow-border {
    0% { border-color: #ff0000; }
    16% { border-color: #ff8800; }
    33% { border-color: #ffff00; }
    50% { border-color: #00ff00; }
    66% { border-color: #0088ff; }
    83% { border-color: #8800ff; }
    100% { border-color: #ff0000; }
}

.rainbow-border {
    animation: rainbow-border 3s linear infinite;
}

/* Morphing background shapes */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }
    75% {
        border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    }
}

.morph-shape {
    animation: morph 8s ease-in-out infinite;
}

/* Icon bounce on hover */
@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.icon-bounce:hover {
    animation: icon-bounce 0.5s ease infinite;
}

/* Rotate on hover */
.rotate-hover {
    transition: transform 0.5s ease;
}

.rotate-hover:hover {
    transform: rotate(360deg);
}

/* Scale pulse */
@keyframes scale-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scale-pulse {
    animation: scale-pulse 2s ease-in-out infinite;
}

/* Typewriter effect */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    50% { border-color: transparent; }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #A855F7;
    animation: typewriter 3s steps(30) 1s forwards, blink-caret 0.75s step-end infinite;
}

/* Gradient background animation */
@keyframes gradient-bg {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section Enhanced Background */
.hero-mesh-bg {
    background: 
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.animated-gradient-bg {
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
}

/* Spotlight effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.spotlight:hover::before {
    opacity: 1;
}

/* Badge pulse */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
    }
}

.badge-pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Cyber lines decoration */
.cyber-lines {
    position: relative;
}

.cyber-lines::before,
.cyber-lines::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, transparent, #A855F7, transparent);
    height: 1px;
    width: 100%;
    left: 0;
}

.cyber-lines::before { top: 0; }
.cyber-lines::after { bottom: 0; }

/* Frosted glass enhanced */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Neon text glow */
.neon-text {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
}

/* Cyber button */
.cyber-btn {
    position: relative;
    background: linear-gradient(135deg, #A855F7, #EC4899);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cyber-btn::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 ease;
}

.cyber-btn:hover::before {
    left: 100%;
}

.cyber-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

/* Product card enhanced hover */
.product-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    z-index: 10;
}

/* Product card floating animation on hover */
@keyframes card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.product-card:hover .card-float-animation {
    animation: card-float 2s ease-in-out infinite;
}

/* Wishlist heart animation */
@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

.product-card button:hover .heart-icon {
    animation: heart-beat 0.8s ease-in-out;
}

/* Add to cart button ripple effect */
@keyframes btn-ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.3);
    border-radius: inherit;
    transform: scale(0);
    opacity: 0;
}

.add-to-cart-btn:active::before {
    animation: btn-ripple 0.6s ease-out;
}

/* Card image zoom container */
.product-card .img-zoom-container {
    overflow: hidden;
}

.product-card .img-zoom-container img,
.product-card .img-zoom-container span {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .img-zoom-container img,
.product-card:hover .img-zoom-container span {
    transform: scale(1.1) rotate(3deg);
}

/* Number counter animation */
@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-up {
    animation: count-up 0.6s ease-out forwards;
}

/* Marquee animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee {
    animation: marquee 20s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

/* Loading dots */
@keyframes loading-dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

.loading-dot {
    animation: loading-dots 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(1) { animation-delay: 0s; }
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

/* Ripple effect */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
}

.ripple:active::after {
    animation: ripple 0.6s ease-out;
}

/* Floating elements */
@keyframes float-random {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(-15px, -10px) rotate(3deg); }
}

.float-random {
    animation: float-random 6s ease-in-out infinite;
}

/* Cursor glow effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}
