/* ============================================
   سبد خدمات دائمی + Drawer
   ============================================ */

/* نوار سبد شناور */
.cart-floating-bar {
    position: fixed;
    bottom: 100px;
    left: 16px;
    right: 16px;
   /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: linear-gradient(135deg, #2147b7 0%, #3677ea 100%);
    
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cart-floating-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}
.cart-floating-bar.show {
    display: flex;
}

/* Drawer سبد */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 1050;
}
.cart-drawer-overlay.open {
    display: flex;
}

.cart-drawer {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.cart-drawer-title {
    font-size: 17px;
    font-weight: bold;
    color: #1e293b;
    margin: 0;
}

.cart-drawer-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    color: #64748b;
}

.cart-drawer-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.cart-drawer-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cart-drawer-item-name {
    font-weight: bold;
    font-size: 14px;
    color: #1e293b;
}

.cart-drawer-item-price {
    font-size: 13px;
    color: #10b981;
    font-weight: 600;
}

.cart-drawer-item-options {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
}

.cart-drawer-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
    color: #64748b;
}

.cart-drawer-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.cart-drawer-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cart-drawer-btn-remove {
    background: #fee2e2;
    color: #dc2626;
}

.cart-drawer-btn-edit {
    background: #dbeafe;
    color: #2563eb;
}

.cart-drawer-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cart-drawer-total-label {
    font-size: 14px;
    color: #64748b;
}

.cart-drawer-total-amount {
    font-size: 20px;
    font-weight: bold;
    color: #10b981;
}

.cart-drawer-submit-btn {
    width: 100%;
    padding: 14px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.cart-drawer-submit-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* آیکون چرخ‌دنده در کارت */
.btn-settings {
    width: 80px;
    height: 30px;
    border: 1px dashed;
    background: #f1f5f9;
    border-radius: 1px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-settings:hover {
    background: #e2e8f0;
    color: #2563eb;
}
.btn-settings.has-options {
    background: #dbeafe;
    color: #2563eb;
}

@media (min-width: 768px) {
 /* نوار سبد شناور */
.cart-floating-bar {
    position: fixed;
    bottom: 1px;
    left: 16px;
    right: 16px;
    background: linear-gradient(135deg, #2147b7 0%, #3677ea 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 998;
    cursor: pointer;
    transition: all 0.3s ease;
}
}