/* ===================================
   PREMIUM SALE BADGES AND PRICING
   Enhanced Styling for All Pages
================================== */

/* ===================================
   MAIN SALE BADGE - Premium Dark Style
=================================== */
.sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    z-index: 10;
    animation: badgeGlow 2.5s ease-in-out infinite;
}

@keyframes badgeGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
        transform: scale(1.02);
    }
}

/* Red/Hot Variant Badge */
.sale-badge.sale-badge-hot,
.sale-badge-hot {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
    animation: badgeHot 2.5s ease-in-out infinite;
}

@keyframes badgeHot {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(229, 62, 62, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 6px 25px rgba(229, 62, 62, 0.6);
        transform: scale(1.02);
    }
}

/* Discount Percentage Circle */
.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.45);
    z-index: 10;
    animation: discountPop 3s ease-in-out infinite;
}

@keyframes discountPop {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.08) rotate(-3deg);
    }

    75% {
        transform: scale(1.08) rotate(3deg);
    }
}

/* ===================================
   SALE BADGE LARGE (Product Details)
=================================== */
.sale-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 15px;
}

.sale-badge-large i {
    font-size: 16px;
}

/* ===================================
   PRICING STYLES
=================================== */
.price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.85;
}

.sale-price {
    color: #e53e3e;
    font-size: 22px;
    font-weight: 800;
}

.price {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
}

/* ===================================
   SAVINGS DISPLAY
=================================== */
.savings-text {
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    background: rgba(5, 150, 105, 0.1);
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.savings-text-large {
    color: #059669;
    font-size: 16px;
    font-weight: 700;
    background: rgba(5, 150, 105, 0.12);
    padding: 12px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    border: 2px solid rgba(5, 150, 105, 0.2);
}

.savings-text i,
.savings-text-large i {
    margin-right: 4px;
}

/* ===================================
   PRODUCT CARD SALE HIGHLIGHT
=================================== */
.product-card.on-sale {
    border: 2px solid rgba(26, 26, 26, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.product-card.on-sale:hover {
    border-color: rgba(26, 26, 26, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

/* Sale Shine Effect on Hover */
.sale-highlight {
    position: relative;
    overflow: hidden;
}

.sale-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    animation: saleShine 4s infinite;
    pointer-events: none;
}

@keyframes saleShine {
    0% {
        transform: rotate(0deg) translateX(-100%);
    }

    100% {
        transform: rotate(0deg) translateX(100%);
    }
}

/* ===================================
   CART SALE DISPLAY
=================================== */
.cart-sale-info {
    background: rgba(26, 26, 26, 0.05);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 13px;
    border-left: 3px solid #1a1a1a;
}

.cart-sale-badge {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cart Total Savings */
.cart-total-savings {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(5, 150, 105, 0.03) 100%);
    padding: 18px;
    border-radius: 12px;
    margin: 18px 0;
    border: 2px dashed rgba(5, 150, 105, 0.4);
}

.cart-total-savings h5 {
    color: #059669;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-total-savings .amount {
    font-size: 26px;
    color: #059669;
    font-weight: 800;
}

/* ===================================
   SALE TIMER BAR
=================================== */
.sale-info-bar {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.05) 0%, rgba(26, 26, 26, 0.02) 100%);
    padding: 14px 20px;
    border-radius: 10px;
    border-left: 4px solid #1a1a1a;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sale-info-bar .icon {
    color: #1a1a1a;
    font-size: 22px;
}

.sale-info-bar .text {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* ===================================
   SALE ACTIVE INDICATOR
=================================== */
.sale-active-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: badgeGlow 2.5s infinite;
}

.sale-active-indicator i {
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   PRODUCT DETAILS PAGE
=================================== */
.product-details-price {
    margin: 25px 0;
}

.product-details-price .original-price {
    font-size: 20px;
    margin-right: 12px;
}

.product-details-price .sale-price {
    font-size: 36px;
}

.product-details-price .price {
    font-size: 32px;
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */
@media (max-width: 768px) {
    .sale-badge {
        padding: 6px 12px;
        font-size: 10px;
        top: 8px;
        left: 8px;
    }

    .discount-badge {
        width: 42px;
        height: 42px;
        font-size: 11px;
    }

    .sale-price {
        font-size: 18px;
    }

    .original-price {
        font-size: 13px;
    }

    .savings-text {
        font-size: 11px;
        padding: 4px 10px;
    }

    .price-container {
        gap: 8px;
    }

    .product-details-price .sale-price {
        font-size: 28px;
    }
}