/* 1. تنظيف شامل ومنع تداخل العناصر */
.single-product form.cart {
    display: flex !important;
    flex-wrap: wrap !important; /* يسمح بالعناصر تنزل سطر لو المساحة ضاقت */
    align-items: center !important;
    gap: 15px !important;
    margin-top: 25px !important;
    border: none !important; /* إلغاء أي برواز خارجي كان عامل تداخل */
}

/* 2. تحسين خانة اختيار المقاس (Size) */
.single-product table.variations {
    width: 100% !important;
    margin-bottom: 20px !important;
}

.single-product .variations select {
    width: 100% !important;
    max-width: 300px !important;
    height: 55px !important;
    border: 2.5px solid #000 !important;
    border-radius: 0px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    padding: 0 15px !important;
}

/* 3. تنسيق العداد (Quantity) لمنع اختفاء الأرقام */
.quantity {
    display: inline-flex !important;
    width: 100px !important;
    height: 55px !important;
    border: 2.5px solid #000 !important;
    border-radius: 0px !important;
    background: #fff !important;
    overflow: hidden !important;
}

.quantity input.qty {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    text-align: center !important;
}

/* 4. زر إضافة للسلة (Add to Cart) - إصلاح العرض والقص */
.single_add_to_cart_button {
    flex: 1 !important; /* بياخد باقي المساحة المتوفرة */
    min-width: 200px !important; /* ضمان إنه ما يصغر بزيادة */
    height: 55px !important;
    background: #000 !important;
    color: #fff !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 0px !important;
    cursor: pointer !important;
}

/* 5. إصلاح أرقام السعر والعملة (منع التداخل) */
.single-product .price {
    display: block !important;
    margin-bottom: 20px !important;
}

/* 6. إبادة أرقام العداد العربية (خاوة) */
.quantity input[type=number]::-webkit-inner-spin-button, 
.quantity input[type=number]::-webkit-outer-spin-button { 
    opacity: 1 !important; /* إظهار الأسهم عشان تسهل الاستخدام */
}