/**
 * WooCommerce Promotions Frontend Styles
 */

/* Discount Badge Styles */
.wcp-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    text-align: center;
    min-width: 50px;
    line-height: 1.2;
}

.wcp-discount-badge .emoji {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.wcp-discount-badge .percentage {
    display: block;
    font-size: 11px;
    font-weight: bold;
}

/* Price Strikethrough Styles */
.wcp-price-container {
    display: inline-block;
}

.wcp-original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9em;
    margin-right: 8px;
}

.wcp-discounted-price {
    color: #e74c3c;
    font-weight: bold;
}

.wcp-promotion-info {
    display: inline-block;
    color: #9b59b6;
    font-size: 0.75em;
    font-weight: 600;
    background: rgba(155, 89, 182, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Benefit Attribute Indicator */
.wcp-benefit-indicator {
    display: inline-block;
    margin: 5px 0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcp-benefit-oferta {
    background-color: #3498db;
    color: white;
}

.wcp-benefit-promocion {
    background-color: #9b59b6;
    color: white;
}

.wcp-benefit-indicator .benefit-text {
    display: inline-block;
}

/* Shop Loop Adjustments */
.woocommerce ul.products li.product .wcp-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
}

.woocommerce ul.products li.product .wcp-benefit-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 3px 6px;
}

/* Single Product Adjustments */
.single-product .wcp-discount-badge {
    position: relative;
    display: inline-block;
    margin: 10px 0;
}

.single-product .wcp-benefit-indicator {
    display: inline-block;
    margin: 5px 10px 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcp-discount-badge {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 15px;
    }
    
    .wcp-benefit-indicator {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .wcp-price-container {
        display: block;
        line-height: 1.4;
    }
    
    .wcp-original-price {
        font-size: 0.85em;
        margin-right: 5px;
    }
    
    .wcp-promotion-info {
        display: block;
        margin-top: 3px;
        margin-left: 0;
        font-size: 0.7em;
    }
}

/* Animation for Badges */
.wcp-discount-badge {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }
    100% {
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
}

/* Hover Effects */
.wcp-benefit-indicator:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.wcp-discount-badge:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* ===== QUANTITY VALIDATION NOTICES ===== */
.wcp-quantity-notice {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
    line-height: 1.4;
}

.wcp-quantity-notice strong {
    color: #533f03;
}

.wcp-promotion-quantity-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    color: #004085;
    font-size: 13px;
}

.wcp-promotion-quantity-info i {
    margin-right: 5px;
    color: #0066cc;
}

.wcp-promotion-quantity-info strong {
    color: #003d82;
}

.wcp-frontend-notice {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.wcp-frontend-notice.woocommerce-info {
    background-color: #e7f3ff;
    border-left: 4px solid #0066cc;
    color: #004085;
}

/* Responsive adjustments for quantity validation */
@media (max-width: 768px) {
    .wcp-quantity-notice,
    .wcp-promotion-quantity-info {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .wcp-frontend-notice {
        font-size: 13px;
        padding: 10px 12px;
    }
}

