/* Price block consistent styling */
.price-block {
    margin: 5px 0;
    /* text-align: center; */
    position: relative;
}

.price-block .d-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* Price styling */
.current-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ef262c;
    margin: 0;
    line-height: 1.2;
}

.original-price {
    /* color: #6c757d; */
    font-size: 1rem;
    line-height: 1.2;
}

.original-price del {
    text-decoration: line-through;
}

/* Discount badge styling */
.sale--box {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 3;
}

.sale--box .onsale {
    background: #fff;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #ee403d;
    border-radius: 50%;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .original-price {
        opacity: 0.3;
    }
    
    .sale--box .onsale {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .current-price {
        font-size: 1.1rem;
    }
    
    .original-price {
        font-size: 0.9rem;
    }
    
    .sale--box {
        right: 0;
        top: 1;
    }
    
    .sale--box .onsale {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

/* Animation for price updates */
@keyframes priceUpdate {
    0% { opacity: 0.8; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

.price-block .current-price,
.price-block .original-price {
    animation: priceUpdate 0.3s ease-in-out;
}

/* Product item bottom content adjustments */
.product-item .bottom-content {
    padding: 8px 8px;
}

.product-item .bottom-content .product-name {
    margin-bottom: 4px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

/* Improve price text alignment */
.current-price,
.original-price {
    display: inline-flex;
    align-items: center;
}

/* Product spacing fixes */
.product-item .product-image {
    margin-bottom: 0 !important; /* Override main.css */
    display: block;
}
