/* Мистические рамки для изображений - Красная версия */
.product-image img,
.product-card img,
.category-image img,
img[src*="product"] {
    position: relative;
    border-radius: 15px;
    
    /* Основная рамка с красным мистическим свечением */
    border: 2px solid transparent;
    background: linear-gradient(45deg, #8b0000, #4a0000, #2a0000) border-box;
    
    /* Внешнее свечение */
    box-shadow: 
        0 0 20px rgba(139, 0, 0, 0.6),
        0 0 40px rgba(100, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 60, 60, 0.3);
    
    /* Анимация мерцания */
    animation: mysticalRedGlow 3s ease-in-out infinite;
}

/* Декоративные углы */
.product-image {
    position: relative;
    display: inline-block;
}

.product-image::before,
.product-image::after,
.product-card::before,
.product-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #c41e1e;
    opacity: 0.7;
    z-index: 2;
    pointer-events: none;
}

.product-image::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.product-image::after {
    top: -5px;
    right: -5px;
    border-left: none;
    border-bottom: none;
}

.product-card::before {
    bottom: -5px;
    left: -5px;
    border-right: none;
    border-top: none;
}

.product-card::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

/* Красный мистический орнамент по краям */
.product-image img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(180, 0, 0, 0.15) 0%, 
        transparent 70%);
    pointer-events: none;
}

/* Анимация красного мерцания */
@keyframes mysticalRedGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(139, 0, 0, 0.6),
            0 0 40px rgba(100, 0, 0, 0.4),
            inset 0 0 20px rgba(255, 60, 60, 0.3);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(200, 0, 0, 0.9),
            0 0 70px rgba(150, 0, 0, 0.6),
            inset 0 0 35px rgba(255, 100, 100, 0.5);
    }
}

/* Эффект при наведении */
.product-image:hover img,
.product-card:hover img {
    transform: scale(1.02);
    transition: transform 0.3s ease;
    box-shadow: 
        0 0 40px rgba(220, 0, 0, 1),
        0 0 80px rgba(180, 0, 0, 0.7),
        inset 0 0 40px rgba(255, 120, 120, 0.6);
}

/* Красные мистические символы */
.product-image::before {
    content: '⚡';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #c41e1e;
    font-size: 24px;
    text-shadow: 0 0 15px #ff0000;
    opacity: 0.6;
    animation: redSymbolTwinkle 2s ease-in-out infinite;
}

/* Дополнительные красные акценты */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(180, 0, 0, 0.03) 10px,
        rgba(180, 0, 0, 0.03) 20px
    );
    pointer-events: none;
    animation: redPatternMove 20s linear infinite;
}

@keyframes redSymbolTwinkle {
    0%, 100% { 
        opacity: 0.4; 
        text-shadow: 0 0 10px #8b0000;
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 1; 
        text-shadow: 0 0 25px #ff4444, 0 0 35px #ff0000;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes redPatternMove {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Кроваво-красные уголки для особого эффекта */
.product-image .corner-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid #8b0000;
    filter: drop-shadow(0 0 5px #ff0000);
}

/* Альтернативный вариант с более тёмным красным */
.red-mystical-alt .product-image img {
    background: linear-gradient(45deg, #5e0000, #3a0000, #1f0000) border-box;
    box-shadow: 
        0 0 25px rgba(90, 0, 0, 0.8),
        0 0 50px rgba(60, 0, 0, 0.5),
        inset 0 0 25px rgba(200, 40, 40, 0.4);
}