/**
 * Premium Price Badge and Container Styles
 * These styles complement the price-animations.css file
 */

/* Premium Price Container */
.premium-price-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

/* "Save" Badge Styles */
.price-save-badge {
    display: inline-block;
    opacity: 1; /* Always show the badge */
    font-size: 0.7rem;
    background: #d4edda;
    color: #155724;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    font-weight: 600;
    border: 1px solid #c3e6cb;
}

/* Badge hover effect */
.product-card:hover .price-save-badge {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(21, 87, 36, 0.1);
}

/* Price Highlight Overlay */
.discount-price.price-animated::before,
.current-price.price-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover .discount-price.price-animated::before,
.product-card:hover .current-price.price-animated::before {
    opacity: 0.6;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { opacity: 0; }
    50% { opacity: 0.6; }
    100% { opacity: 0; }
}

/* Sparkle effect removed */
.discount-price.price-animated::after,
.current-price.price-animated::after {
    content: '';
    display: none;
}

/* Sparkle animations removed */

/* Removed sparkle elements */

/* Pulsating effect for prices */
@keyframes pulsatePrice {
    0% { transform: scale(1); filter: brightness(100%); }
    50% { transform: scale(1.05); filter: brightness(115%); }
    100% { transform: scale(1); filter: brightness(100%); }
}

.product-card:hover .discount-price.price-animated,
.product-card:hover .current-price.price-animated {
    animation: pulsatePrice 1.2s infinite ease-in-out;
    opacity: 1 !important; /* Ensure price always remains visible */
}

/* Sparkle effect animation */
@keyframes sparkleEffect {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    25% { box-shadow: 0 0 10px 4px rgba(255, 215, 0, 0.7); }
    50% { box-shadow: 0 0 15px 6px rgba(255, 100, 100, 0.5); }
    75% { box-shadow: 0 0 10px 4px rgba(100, 200, 255, 0.7); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.sparkle-effect {
    animation: sparkleEffect 1.5s ease-out;
    position: relative;
    z-index: 2;
}

/* Enhance 3D effect for prices */
.product-card:hover .price-animated {
    text-shadow: 0px 1px 1px rgba(0,0,0,0.1),
                 0px 2px 5px rgba(0,0,0,0.05);
}
