/**
 * تنسيقات محسنة لعرض الأسعار
 * Enhanced Price Display Styling
 */

/* حاوية الأسعار الرئيسية */
.emg-product-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 10px;
    margin: 8px 0;
    position: relative;
    border-radius: 8px;
    background-color: #fafafa;
}

/* حاوية السعر قبل الخصم والسعر الحالي */
.price-discount-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
}

/* السعر الحالي */
.emg-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #8b0000;
    margin-left: 8px;
    position: relative;
    display: inline-block;
}

/* السعر قبل الخصم */
.emg-product-old-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
    margin-left: 8px;
    position: relative;
}

/* شريط الخصم */
.discount-badge-container {
    margin-top: 5px;
    width: 100%;
}

.emg-product-discount {
    display: inline-block;
}

.emg-product-discount .badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    background-color: #8b0000;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.emg-product-discount .badge::before {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 5px;
    font-size: 14px;
}

/* حاوية سعر التاجر المحسنة */
.emg-merchant-price-container {
    background-color: #f8f4f4;
    padding: 10px 12px;
    border-radius: 6px;
    border-right: 4px solid #8b0000;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.emg-merchant-price-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.emg-merchant-price-label {
    font-size: 14px;
    color: #8b0000;
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.emg-merchant-price-label::before {
    content: '\f02b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 14px;
}

/* نمط عرض السعر العادي في صفحة التاجر */
.merchant-regular-price {
    font-size: 12px;
    color: #777;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    top: 2px;
}

.merchant-regular-price small {
    opacity: 0.85;
}

/* تنسيقات الموبايل */
@media (max-width: 768px) {
    .emg-product-price {
        font-size: 16px;
    }
    
    .emg-product-old-price {
        font-size: 13px;
    }
    
    .emg-product-discount .badge {
        font-size: 11px;
        padding: 3px 6px;
    }
}
