.elementor-1255 .elementor-element.elementor-element-5faaedac{--display:flex;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-1255 .elementor-element.elementor-element-1b5001bf.xpro-widget-bg-overlay:before{transition:background 0.3s;}.elementor-1255 .elementor-element.elementor-element-1b5001bf{text-align:right;}.elementor-1255 .elementor-element.elementor-element-7702aeb{--display:flex;}.elementor-1255 .elementor-element.elementor-element-35d2927.xpro-widget-bg-overlay:before{transition:background 0.3s;}/* Start custom CSS for container, class: .elementor-element-5faaedac *//* تصميم سلة التسوق المحسن */

/* تخطيط عام للسلة */
.woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

/* تخطيط الشبكة الرئيسي - تعديل لضمان البقاء جنب بعض */
.cart-collaterals {
    display: flex;
    flex-wrap: nowrap; /* منع التفاف العناصر */
    gap: 30px;
    margin-top: 30px;
    align-items: flex-start;
}

.woocommerce-cart-form {
    flex: 1 1 calc(70% - 15px); /* حجز 70% من العرض */
    order: 2; /* المنتجات على اليمين */
}

.cart_totals {
    flex: 0 0 calc(30% - 15px); /* حجز 30% من العرض وعدم التمدد */
    order: 1; /* الإجمالي على الشمال */
    background: linear-gradient(135deg, #EACE97 0%, #f0d9a8 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(234, 206, 151, 0.3);
    border: 2px solid rgba(234, 206, 151, 0.5);
    position: sticky;
    top: 20px;
    height: fit-content;
    min-width: 280px; /* عرض أدنى */
}

/* عنوان إجمالي السلة */
.cart_totals h2 {
    color: #8B4513;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
    padding-bottom: 10px;
}

/* جدول المنتجات */
.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(234, 206, 151, 0.3);
}

/* رأس الجدول */
.shop_table thead th {
    background: linear-gradient(135deg, #EACE97 0%, #d4b883 100%);
    color: #8B4513;
    font-weight: bold;
    padding: 15px 10px;
    text-align: center;
    font-size: 14px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.2);
}

.shop_table thead th:first-child {
    border-top-right-radius: 15px;
}

.shop_table thead th:last-child {
    border-top-left-radius: 15px;
}

/* صفوف المنتجات */
.shop_table tbody tr {
    background: white;
    transition: all 0.3s ease;
}

.shop_table tbody tr:hover {
    background: rgba(234, 206, 151, 0.1);
    transform: translateY(-2px);
}

.shop_table tbody td {
    padding: 20px 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(234, 206, 151, 0.2);
}

/* صور المنتجات */
.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(234, 206, 151, 0.5);
    transition: transform 0.3s ease;
}

.product-thumbnail img:hover {
    transform: scale(1.1);
}

/* أسماء المنتجات */
.product-name a {
    color: #8B4513;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.4;
}

.product-name a:hover {
    color: #EACE97;
    text-decoration: underline;
}

/* الأسعار */
.woocommerce-Price-amount {
    color: #8B4513;
    font-weight: bold;
    font-size: 18px;
}

.woocommerce-Price-currencySymbol {
    color: #EACE97;
    margin-right: 5px;
}

/* حقل الكمية */
.quantity input {
    width: 60px;
    padding: 8px;
    border: 2px solid rgba(234, 206, 151, 0.5);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    background: white;
}

.quantity input:focus {
    outline: none;
    border-color: #EACE97;
    box-shadow: 0 0 5px rgba(234, 206, 151, 0.5);
}

/* زر الحذف */
.product-remove a {
    background: #e74c3c;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.product-remove a:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* صف الأزرار */
.actions {
    background: #f8f9fa !important;
    padding: 20px !important;
}

.actions:hover {
    background: #f8f9fa !important;
    transform: none !important;
}

/* حقل القسيمة */
.coupon {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.coupon input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid rgba(234, 206, 151, 0.5);
    border-radius: 8px;
    font-size: 14px;
}

.coupon input[type="text"]:focus {
    outline: none;
    border-color: #EACE97;
    box-shadow: 0 0 5px rgba(234, 206, 151, 0.3);
}

/* الأزرار */
.button, .checkout-button {
    background: linear-gradient(135deg, #EACE97 0%, #d4b883 100%);
    color: #8B4513;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.button:hover, .checkout-button:hover {
    background: linear-gradient(135deg, #d4b883 0%, #c2a66d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 206, 151, 0.4);
    color: #8B4513;
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* جدول الإجماليات */
.cart_totals .shop_table {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.cart_totals .shop_table th,
.cart_totals .shop_table td {
    padding: 15px;
    font-size: 16px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.cart_totals .shop_table th {
    background: rgba(255, 255, 255, 0.5);
    color: #8B4513;
    font-weight: bold;
}

.order-total th,
.order-total td {
    background: rgba(234, 206, 151, 0.3) !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: #8B4513 !important;
}

/* زر إتمام الطلب */
.wc-proceed-to-checkout {
    margin-top: 20px;
}

.checkout-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    text-align: center;
}

.checkout-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea080 100%);
    color: white;
}

/* معلومات الشحن */
.woocommerce-shipping-destination {
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.shipping-calculator-button {
    color: #8B4513;
    text-decoration: underline;
    font-size: 14px;
}

.shipping-calculator-button:hover {
    color: #EACE97;
}

/* تصميم متجاوب - تعديل نقاط الكسر */
@media (max-width: 1024px) {
    .cart-collaterals {
        flex-direction: column;
        flex-wrap: wrap;
    }
    
    .woocommerce-cart-form {
        order: 1;
        flex: 1 1 100%;
    }
    
    .cart_totals {
        order: 2;
        flex: 0 0 auto;
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .woocommerce {
        padding: 10px;
    }
    
    .shop_table {
        font-size: 12px;
    }
    
    .shop_table thead th,
    .shop_table tbody td {
        padding: 10px 5px;
    }
    
    .product-thumbnail img {
        width: 60px;
        height: 60px;
    }
    
    .coupon {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coupon input[type="text"] {
        min-width: 100%;
        margin-bottom: 10px;
    }
}

/* إخفاء العناصر غير المرغوب فيها في الجوال */
@media (max-width: 600px) {
    .shop_table .product-price,
    .shop_table thead th.product-price {
        display: none;
    }
    
    .shop_table tbody td {
        display: block;
        width: 100%;
        text-align: right;
        padding: 5px 10px;
    }
    
    .shop_table tbody td:before {
        content: attr(data-title) ": ";
        font-weight: bold;
        color: #8B4513;
    }
    
    .shop_table thead {
        display: none;
    }
    
    .shop_table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 2px solid rgba(234, 206, 151, 0.3);
        border-radius: 10px;
        padding: 15px;
    }
}

/* تحسينات إضافية للألوان */
.woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

.woocommerce-info,
.woocommerce-message {
    background: rgba(234, 206, 151, 0.2);
    border-left: 4px solid #EACE97;
    color: #8B4513;
    padding: 15px;
    border-radius: 5px;
}

/* تأكيد عدم الانكسار على الشاشات الكبيرة */
@media (min-width: 1025px) {
    .cart-collaterals {
        flex-wrap: nowrap !important;
    }
    
    .woocommerce-cart-form {
        flex: 1 1 calc(70% - 15px) !important;
        max-width: calc(70% - 15px);
    }
    
    .cart_totals {
        flex: 0 0 calc(30% - 15px) !important;
        max-width: calc(30% - 15px);
    }
}
.cart-collaterals {
    display: block !important;    /* بدل flex */
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 30px;
}

.woocommerce-cart-form {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 30px;
    order: unset !important;
    flex: unset !important;
    min-width: 0 !important;
}

.cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 0;
    order: unset !important;
    flex: unset !important;
    position: static !important;
    top: auto !important;
    height: auto !important;
    border-radius: 15px;
}/* End custom CSS */