/* ========== FUTURISTIC PURPLE DIGITAL STORE - INNOVATIVE ========== */

/* Modern Purple Palette */
:root {
    --color-primary: #8B5CF6 !important;
    --neon-purple: #A78BFA;
    --cyber-purple: #6D28D9;
    --glow-purple: rgba(139, 92, 246, 0.5);
}

/* ========== GLASSMORPHISM HEADER ========== */
.topnav {
    background: rgba(139, 92, 246, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1) !important;
}

/* NEON GLOW LINKS */
.topnav-link, .topnav a {
    color: #8B5CF6 !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5) !important;
    font-weight: 600 !important;
    position: relative !important;
}

.topnav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
    box-shadow: 0 0 10px #8B5CF6;
    transition: width 0.4s ease;
}

.topnav-link:hover::before {
    width: 100%;
}

/* ========== FUTURISTIC SEARCH BAR ========== */
.s-search-block-wrapper {
    position: relative;
    overflow: visible !important;
}

.s-search-block-wrapper input,
.s-search-input {
    background: rgba(139, 92, 246, 0.05) !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    padding: 14px 25px 14px 50px !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0) !important;
}

.s-search-block-wrapper input:focus,
.s-search-input:focus {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: #8B5CF6 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), 
                0 0 60px rgba(139, 92, 246, 0.1) !important;
}

/* Search Icon Glow */
.s-search-block-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
}

/* ========== 3D PRODUCT CARDS WITH HOVER EFFECTS ========== */
.s-product-card {
    background: linear-gradient(145deg, #ffffff, #f8f9ff) !important;
    border-radius: 20px !important;
    overflow: visible !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
    position: relative !important;
    transform-style: preserve-3d !important;
}

/* Animated Gradient Border on Hover */
.s-product-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #8B5CF6, #A78BFA, #C084FC, #8B5CF6);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: gradientRotate 3s ease infinite;
    pointer-events: none;
}

.s-product-card:hover::before {
    opacity: 1;
}

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

.s-product-card:hover {
    transform: translateY(-15px) rotateX(5deg) !important;
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25),
                0 0 50px rgba(139, 92, 246, 0.1),
                inset 0 0 20px rgba(139, 92, 246, 0.05) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* Holographic Effect on Image */
.s-product-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.s-product-card-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.s-product-card:hover .s-product-card-image::after {
    opacity: 1;
    animation: holographicShine 2s ease-in-out infinite;
}

@keyframes holographicShine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

/* ========== GLOWING PRICE TAG ========== */
.s-product-card-price,
.product-price {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 900 !important;
    font-size: 1.5rem !important;
    position: relative !important;
    display: inline-block !important;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

/* ========== CYBER DIGITAL BADGE ========== */
.s-product-card-badge,
.digital-product-badge {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
                0 0 40px rgba(139, 92, 246, 0.3) !important;
    animation: neonPulse 2s ease-in-out infinite !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.6),
                    0 0 40px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.8),
                    0 0 60px rgba(139, 92, 246, 0.5);
    }
}

/* ========== FUTURISTIC BUTTONS ========== */
.s-button-primary,
.btn-primary,
.s-add-product-button {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important;
    border: none !important;
    border-radius: 15px !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 14px 30px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3) !important;
}

/* Liquid Effect */
.s-button-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.s-button-primary:hover::before {
    width: 300px;
    height: 300px;
}

.s-button-primary:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5),
                0 0 30px rgba(139, 92, 246, 0.3) !important;
}

.s-button-primary:active {
    transform: translateY(-1px) scale(1.02) !important;
}

/* ========== ANIMATED BACKGROUND PARTICLES ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(192, 132, 252, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

/* ========== CATEGORY CARDS - NEON STYLE ========== */
.s-category-card {
    background: rgba(139, 92, 246, 0.05) !important;
    border: 2px solid rgba(139, 92, 246, 0.2) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    position: relative !important;
    overflow: hidden !important;
}

.s-category-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    border-radius: 50%;
}

.s-category-card:hover::before {
    width: 400px;
    height: 400px;
}

.s-category-card:hover {
    transform: scale(1.08) rotate(2deg) !important;
    border-color: #8B5CF6 !important;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3),
                0 0 50px rgba(139, 92, 246, 0.2) !important;
}

/* ========== FUTURISTIC FOOTER ========== */
footer, .footer {
    background: linear-gradient(180deg, #0F0F1E 0%, #1A1A2E 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        #8B5CF6, 
        #A78BFA, 
        #8B5CF6, 
        transparent
    );
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.footer-title, footer h3, footer h4 {
    color: #A78BFA !important;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5) !important;
    font-weight: 800 !important;
}

footer a {
    color: #9CA3AF !important;
    transition: all 0.3s ease !important;
}

footer a:hover {
    color: #A78BFA !important;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5) !important;
    transform: translateX(5px) !important;
}

/* ========== FLOATING CART ICON ========== */
.s-cart-icon {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9) !important;
    color: white !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4),
                0 0 20px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    animation: cartFloat 3s ease-in-out infinite !important;
}

@keyframes cartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.s-cart-icon:hover {
    transform: scale(1.2) rotate(10deg) !important;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6),
                0 0 40px rgba(139, 92, 246, 0.5) !important;
}

.s-cart-badge {
    background: linear-gradient(135deg, #DC2626, #EF4444) !important;
    animation: badgePulse 1s ease-in-out infinite !important;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========== LOADING ANIMATION ========== */
.loader, .spinner {
    border: 4px solid rgba(139, 92, 246, 0.1) !important;
    border-top: 4px solid #8B5CF6 !important;
    border-radius: 50%;
    animation: spinGlow 1s linear infinite !important;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

@keyframes spinGlow {
    0% { 
        transform: rotate(0deg);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% { 
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    }
    100% { 
        transform: rotate(360deg);
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
}

/* ========== CYBER GRID BACKGROUND ========== */
body {
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 50px 50px, 50px 50px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .s-product-card:hover {
        transform: translateY(-10px) !important;
    }
    
    body {
        background-size: 30px 30px;
    }
}