/* 🎨 تنسيقات نظام السلة المودرن المتوافقة مع المتجر الرئيسي (cart_system/cart_style.css) */

/* 🌟 الأيقونة العائمة للسلة المودرن الفاخرة (مرفوعة فوق الواتساب) 🌟 */
.circular-floating-cart {
    position: fixed !important;
    bottom: 100px !important; /* 💡 تم الرفع لتكون فوق أيقونة الواتساب */
    left: 30px !important; 
    width: 60px !important;
    height: 60px !important;
    background: var(--brand-color) !important; /* 💡 اللون العنابي */
    border: 2px solid var(--gold) !important; /* 💡 الإطار الذهبي */
    border-radius: 50% !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.2) !important; 
    z-index: 2147483647 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.circular-floating-cart:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.4) !important;
}

.circular-floating-cart i { 
    color: var(--gold) !important; /* 💡 أيقونة السلة ذهبية */
    font-size: 1.6rem !important; 
}

.circular-floating-cart .cart-badge-red {
    background-color: #e74c3c !important;
    color: #fff !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 0.85rem !important;
    min-width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border: 2px solid #fff !important;
    font-weight: bold !important;
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

/* 🌟 درج السلة والمحتوى 🌟 */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 100; display: none; opacity: 0; transition: opacity 0.3s;}
.cart-overlay.active { display: block; opacity: 1;}
.cart-drawer { position: fixed; bottom: -100%; left: 0; right: 0; max-width: 600px; margin: 0 auto; height: 85vh; background: #fff; z-index: 101; transition: bottom 0.4s ease-in-out; border-radius: 25px 25px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 30px rgba(0,0,0,0.2);}
.cart-drawer.active { bottom: 0;}
.cart-header { padding: 20px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;}
.cart-header h3 { margin: 0; color: var(--brand-color); font-size: 1.4rem;}
.close-btn { background: #f4f4f4; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; color: #555; cursor: pointer; transition: 0.2s;}
.cart-body { padding: 25px; flex: 1; overflow-y: auto;}

.cart-item-qty-controls { display: inline-flex; align-items: center; border: 1.5px solid var(--brand-color); border-radius: 6px; overflow: hidden; margin-top: 8px;}
.cart-item-qty-controls button { background: var(--brand-color); color: var(--gold); border: none; width: 25px; height: 25px; font-weight: bold; cursor: pointer; padding: 0; line-height: 1;}
.cart-item-qty-controls span { width: 30px; text-align: center; font-weight: bold; font-size: 0.95rem; color: var(--brand-color); background: #fff; display: inline-block; line-height: 25px;}

.options-group { margin-bottom: 25px;}
.options-title { font-weight: bold; margin-bottom: 12px; color: var(--brand-color); font-size: 1.15rem;}
.radio-option { display: flex; align-items: center; background: #fafafa; padding: 15px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 10px; cursor: pointer; transition: 0.2s; direction: rtl;}
.radio-option:hover { border-color: var(--brand-color); background: #fff;}
.radio-option input { margin-left: 15px; accent-color: var(--brand-color); width: 20px; height: 20px;}

.coupon-box { display: flex; gap: 10px; margin-bottom: 5px; }
.coupon-input { flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-family: 'Tajawal'; outline: none; }
.coupon-input:focus { border-color: var(--brand-color); }
.coupon-btn { background: var(--brand-color); color: var(--gold); border: none; padding: 0 20px; border-radius: 8px; font-weight: bold; cursor: pointer; font-family: 'Tajawal'; }
.coupon-msg { font-size: 0.9rem; font-weight: bold; margin-top: 5px; }

.totals-box { background: #f9f9f9; padding: 20px; border-radius: 10px; margin-bottom: 20px; border: 1px solid #eee;}
.total-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: #555; font-size: 1.05rem;}
.total-row.discount-row { color: #e74c3c; font-weight: bold; display: none; }
.total-row.final { font-weight: 900; color: var(--brand-color); font-size: 1.3rem; border-top: 1px solid #ddd; padding-top: 15px; margin-top: 15px;}

.cart-footer { padding: 20px; border-top: 1px solid #eee; background: #fff;}
.btn-whatsapp { display: block; width: 100%; background: var(--brand-color); color: #fff; text-align: center; padding: 20px; border-radius: 15px; font-weight: bold; font-size: 1.3rem; border: none; cursor: pointer; transition: 0.3s; font-family: 'Tajawal';}
.btn-whatsapp:hover { opacity: 0.9; transform: translateY(-2px); }

/* 🌟 السلة الفارغة 🌟 */
.empty-cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(5px); z-index: 999999; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.empty-cart-overlay.active { display: flex; opacity: 1; }
.empty-cart-box { background: #fff; width: 90%; max-width: 420px; border-radius: 16px; padding: 25px 30px; box-shadow: 0 15px 35px rgba(60, 9, 44, 0.15); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); position: relative; direction: rtl; }
.empty-cart-overlay.active .empty-cart-box { transform: scale(1); }
.empty-cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.empty-cart-title { font-family: 'Tajawal', sans-serif; color: var(--brand-color); font-weight: 900; font-size: 1.4rem; margin: 0; position: relative; }
.empty-cart-title::after { content: ''; position: absolute; bottom: -10px; right: 0; width: 100%; height: 2px; background-color: var(--gold); }
.empty-cart-close-btn { background: #95a5a6; color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; }
.empty-cart-close-btn:hover { background: #7f8c8d; transform: rotate(90deg); }
.empty-cart-message { text-align: center; font-family: 'Tajawal', sans-serif; color: #555; font-size: 1.15rem; font-weight: 700; padding: 10px 0 20px 0; }