/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* CSS for the sale percentage badge */
.sale-percentage-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    position: relative;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-subtle 2s infinite;
}

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

/* Hover effect */
.sale-percentage-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sale-percentage-badge {
        font-size: 11px;
        padding: 3px 6px;
        margin-left: 6px;
    }
}

/* Integration with your primary color #65B32E */
.product:hover .sale-percentage-badge {
    border-color: #65B32E;
    box-shadow: 0 2px 4px rgba(101, 179, 46, 0.3);
}

/* Alternative red colors that complement #65B32E */
.sale-percentage-badge.alt-style {
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

/* For Bricks Builder price elements */
.bricks-button .sale-percentage-badge,
.brxe-price .sale-percentage-badge {
    vertical-align: middle;
    margin-left: 10px;
}