/* 3D Red Blinking Border for Featured Products */

.featured-product {
    position: relative;
    border: 4px solid transparent;
    border-radius: 1rem;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #ef4444, #dc2626, #b91c1c, #ef4444) border-box;
    animation: featured-blink 2s ease-in-out infinite, featured-pulse 2s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.4),
        0 0 40px rgba(239, 68, 68, 0.2),
        inset 0 0 20px rgba(239, 68, 68, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.featured-product::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c, #ef4444);
    border-radius: 1.2rem;
    z-index: -1;
    opacity: 0;
    animation: featured-glow 2s ease-in-out infinite;
    filter: blur(10px);
}

.featured-product::after {
    content: '⭐ FEATURED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    animation: featured-badge-pulse 2s ease-in-out infinite;
    z-index: 10;
}

/* Blinking Animation */
@keyframes featured-blink {
    0%, 100% {
        border-color: #ef4444;
        box-shadow: 
            0 0 20px rgba(239, 68, 68, 0.6),
            0 0 40px rgba(239, 68, 68, 0.3),
            inset 0 0 20px rgba(239, 68, 68, 0.1),
            0 10px 30px rgba(0, 0, 0, 0.2);
    }
    50% {
        border-color: #dc2626;
        box-shadow: 
            0 0 30px rgba(220, 38, 38, 0.8),
            0 0 60px rgba(220, 38, 38, 0.4),
            inset 0 0 30px rgba(220, 38, 38, 0.2),
            0 15px 40px rgba(0, 0, 0, 0.3);
    }
}

/* Pulse Animation */
@keyframes featured-pulse {
    0%, 100% {
        transform: scale(1) translateZ(0);
    }
    50% {
        transform: scale(1.02) translateZ(10px);
    }
}

/* Glow Animation */
@keyframes featured-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Badge Pulse */
@keyframes featured-badge-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.1);
    }
}

/* Hover Effect */
.featured-product:hover {
    transform: translateY(-8px) scale(1.02) rotateX(2deg);
    box-shadow: 
        0 0 30px rgba(239, 68, 68, 0.7),
        0 0 60px rgba(239, 68, 68, 0.4),
        inset 0 0 30px rgba(239, 68, 68, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .featured-product::after {
        font-size: 0.65rem;
        padding: 3px 12px;
        top: -10px;
    }
}