/* --- زر الإضافة الرئيسي --- */
.artmc-add-to-quote {
    background-color: #d32f2f !important; /* لون أحمر */
    color: #fff !important;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.artmc-add-to-quote:hover {
    background-color: #b71c1c !important; /* أحمر داكن عند التحويم */
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.artmc-add-to-quote.added {
    background-color: #27ae60 !important; /* أخضر عند الإضافة */
    pointer-events: none; /* منع النقر المتكرر */
}

.artmc-add-to-quote.loading {
    cursor: wait;
}

/* --- تغليف صفحة طلب عرض السعر --- */
.artmc-quote-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
}

/* جدول المنتجات */
.artmc-quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e1e1e1;
}

.artmc-quote-table th, .artmc-quote-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: right; /* دعم RTL */
    vertical-align: middle;
}

.artmc-quote-table th {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #333;
}

/* تحسين حقل الكمية في الجدول */
.artmc-quote-table input[type="number"] {
    width: 70px !important;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* زر الحذف */
.remove-item {
    text-decoration: none;
    transition: color 0.2s;
}
.remove-item:hover {
    color: #a00 !important;
}

/* --- نموذج تفاصيل العميل --- */
.artmc-quote-customer-details {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.artmc-quote-customer-details h3 {
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    font-size: 18px;
}

.artmc-quote-customer-details .form-group {
    margin-bottom: 20px;
}

.artmc-quote-customer-details label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.artmc-quote-customer-details .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-size: 14px;
}

.artmc-quote-customer-details .form-control:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 5px rgba(41, 128, 185, 0.2);
}

/* زر الإرسال */
.artmc-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #2980b9 !important;
    color: white !important;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.artmc-submit-btn:hover {
    background-color: #3498db !important;
}

/* زر مسح القائمة */
.artmc-clear-btn {
    padding: 8px 15px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-block;
}
.artmc-clear-btn:hover {
    background-color: #a93226 !important;
    opacity: 0.9;
}

/* --- أيقونة الهيدر (Header Icon Shortcode) --- */
.artmc-header-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 0 10px;
    color: #333;
}

.artmc-icon-svg {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: inherit;
}

/* شارة العداد */
.artmc-icon-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #d32f2f; 
    color: white;
    border-radius: 10px; 
    padding: 2px 5px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
    border: 2px solid #fff;
    white-space: nowrap;
    z-index: 10;
}

/* --- زر داخل صفحة المنتج الفردي --- */
.single-quote-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 16px;
    padding: 15px;
}

/* --- التجاوب مع الموبايل (Responsive) --- */
@media (max-width: 600px) {
    .artmc-quote-table thead {
        display: none; /* إخفاء العناوين في الموبايل */
    }
    
    .artmc-quote-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    
    .artmc-quote-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border-bottom: 1px solid #eee;
        padding: 10px;
    }
    
    .artmc-quote-table td::before {
        content: attr(data-label); /* يمكن استخدامه إذا أضفنا data-label في HTML */
        font-weight: bold;
        margin-left: 10px;
    }
    
    .artmc-quote-customer-details {
        padding: 15px;
    }
}